1 2000-01-19 Tom Tromey <tromey@cygnus.com>
3 * interpret.cc (PC_REGISTER_ASM): Removed.
5 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
8 * All files: Updated copyright to reflect Cygnus purchase.
10 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
13 * configure.in: Recognize --disable-interpreter.
15 2000-01-18 Andrew Haley <aph@cygnus.com>
17 * name-finder.cc (lookup): Check for dladdr function.
18 acconfig.h (HAVE_DLADDR): Add.
19 configure.in: Check for HAVE_DLADDR
21 include/config.h.in: Rebuilt.
23 2000-01-17 Andrew Haley <aph@cygnus.com>
25 * prims.cc (_Jv_RunMain): Set the name of this executable.
27 2000-01-17 Tom Tromey <tromey@cygnus.com>
29 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
30 when backtrace can't be computed.
33 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
35 * java/lang/Runtime.java (loadLibraryInternal): Declare.
36 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
37 (_Jv_FindClassInCache): Likewise.
38 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
39 (findSystemClass): Try to load class from compiled module.
41 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
42 (loadLibrary): Likewise.
43 (lt_preloaded_symbols): Define.
44 (loadLibraryInternal): New method.
45 * include/config.h.in: Rebuilt.
46 * acconfig.h (USE_LTDL): Added.
47 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
48 (INCLUDES): Added $(INCLTDL).
49 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
50 (libgcj_la_LIBADD): Likewise.
51 * aclocal.m4, configure: Rebuilt.
52 * configure.in: Added libltdl support.
54 2000-01-15 Tom Tromey <tromey@cygnus.com>
56 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
58 2000-01-14 Andrew Haley <aph@cygnus.com>
60 * java/lang/natThrowable.cc: New file.
62 * java/lang/Throwable.java (fillInStackTrace): Make native.
63 (printStackTrace): Call native method to do this.
64 (Throwable): Call fillInStackTrace.
65 (stackTrace): New variable.
67 * include/jvm.h: Add _Jv_ThisExecutable functions.
69 * prims.cc: (_Jv_execName): New variable.
70 (catch_segv): Call fillInStackTrace.
72 (_Jv_ThisExecutable): New functions.
73 (JvRunMain): Set the name of this executable.
75 * Makefile.am: Add java/lang/natThrowable.cc.
77 * Makefile.in: Rebuilt.
79 * acconfig.h: Add HAVE_PROC_SELF_EXE.
81 * configure.in: Force link with __frame_state_for in
82 FORCELIBGCCSPEC. Add new checks for backtrace.
83 * include/config.h.in: Rebuilt.
85 * name-finder.cc: New file.
86 * include/name-finder.h: New file.
88 2000-01-16 Anthony Green <green@cygnus.com>
90 * java/lang/StringBuffer.java (StringBuffer): Don't special case
93 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
95 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
97 2000-01-13 Tom Tromey <tromey@cygnus.com>
99 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
100 not system loader, as initiating loader.
102 2000-01-11 Tom Tromey <tromey@cygnus.com>
104 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
105 HP/UX. From David Scott Urban.
107 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
109 * java/lang/natMath.cc (pow): Cast args to `double', not
112 (IEEEremainder): Likewise.
113 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
114 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
116 2000-01-09 Anthony Green <green@cygnus.com>
118 * java/lang/natString.cc (init): Test for overflow condition
119 during out of bounds check.
120 (getChars): Throw StringIndexOutOfBoundsException, not
121 ArrayIndexOutOfBoundsException.
123 (regionMatches): Obey case option during string comparison.
125 * configure.host (ligcj_interpreter): New variable. Enable
126 interpreter by default on IA-32.
127 * configure.in: Examine libgcj_interpreter.
128 * configure: Rebuilt.
130 2000-01-07 Tom Tromey <tromey@cygnus.com>
132 * mauve-libgcj: Don't disable ClassTest.
134 * java/lang/natClass.cc (getClasses): Wrote.
136 2000-01-06 Tom Tromey <tromey@cygnus.com>
138 * java/lang/natClass.cc (_getConstructors): Correctly check
139 whether method name is the init name.
140 (getMethod): Look at accflags on method in `klass', not `this'.
142 2000-01-05 Tom Tromey <tromey@cygnus.com>
144 * java/lang/natClass.cc (getMethod): Compute offset relative to
145 `klass's methods table, not `this's table.
147 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
148 In unwrapping/widening case, check whether `k' is null, not
149 whether it is primitive. Initialize `num' from `argelts', not
150 `paramelts'. Correct create and pass arguments to ffi_call.
151 Don't let presence of `this' argument affect index used to look in
153 (COPY): Set appropriate element in `values' vector.
155 * java/lang/natClass.cc: Include <gcj/method.h>.
157 * java/lang/Class.h (_getMethods): Correctly declare as private,
160 * java/lang/Class.h (_getMethods): Declare.
161 * java/lang/Class.java (_getMethods): Declare.
162 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
163 (getDeclaredClasses): Always return empty array.
164 (_getMethods): New method.
166 (getDeclaredMethod): Return `rmethod'.
167 (finit_name): New global.
168 (getDeclaredMethods): Check for finit_name.
169 (_getMethods): Likewise.
170 (getMethod): Only return public methods.
172 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
173 jboolean and select correct ffi type on that basis.
174 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
175 Constructor call always has `void' return type.
177 2000-01-04 Tom Tromey <tromey@cygnus.com>
179 * java/lang/Class.h (getSignature): Updated.
180 * java/lang/Class.java (getSignature): Updated.
181 * java/lang/natClass.cc (getSignature): Added `is_constructor'
183 (getConstructor): Ensure constructor is public.
184 (_getConstructors): Check for public-ness of constructor when
185 `declared' is false, not when it is true.
187 2000-01-04 Warren Levy <warrenl@cygnus.com>
189 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
191 (receive): Set the sender's address in the DatagramPacket.
193 2000-01-04 Tom Tromey <tromey@cygnus.com>
195 * java/lang/reflect/natConstructor.cc (newInstance): Pass
196 declaring class as return_type argument to
197 _Jv_CallNonvirtualMethodA.
198 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
199 constructor case, create object and use it as `this' argument.
200 * java/lang/Class.h (_getConstructors): Declare.
201 (_getFields): Declare.
202 * java/lang/Class.java (getConstructors): Wrote.
203 (_getConstructors): New native method.
204 (getDeclaredConstructors): Wrote.
205 (_getFields): Declare new native method.
206 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
208 (getMethod): Work correctly when class is primitive.
209 (getDeclaredMethods): Likewise. Compute offset using `method',
211 (getDeclaredMethod): Likewise.
212 (getConstructor): Wrote.
213 (ConstructorClass): New define.
214 (getDeclaredConstructor): Wrote.
215 (_getConstructors): New method.
216 (_getFields): New method.
219 * Makefile.in: Rebuilt.
220 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
222 * prims.cc: Remove `#pragma implementation'.
223 * gcj/array.h: Remove `#pragma interface'.
225 * prims.cc (_Jv_equaln): New function.
226 * java/lang/Class.java (getSignature): Declare.
227 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
228 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
230 (getSignature): New method.
231 (getDeclaredMethod): Wrote.
233 Include StringBuffer.h.
234 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
235 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
237 (getSignature): Declare.
238 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
239 (_Jv_equaln): Declare.
240 (_Jv_CallNonvirtualMethodA): Declare.
241 * Makefile.in: Rebuilt.
242 * Makefile.am (nat_source_files): Added natConstructor.cc.
243 (java/lang/reflect/Constructor.h): New target.
244 * java/lang/reflect/natConstructor.cc: New file.
245 * java/lang/reflect/Constructor.java (newInstance): Now native.
246 (declaringClass): Renamed from decl_class.
247 (offset): Renamed from index.
248 (getType): New native method.
249 (getModifiers): Now native.
250 (getParameterTypes): Call getType if required.
251 (hashCode): Include hash code from declaring class.
252 (modifiers): Removed.
253 (toString): Call getType if required.
254 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
255 * java/lang/reflect/natMethod.cc (hack_call): New method.
256 Removed `#if 0' around FFI code.
257 Include <gnu/gcj/RawData.h>.
258 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
259 IllegalArgumentException when argument object and class disagree.
260 (_Jv_GetTypesFromSignature): New function.
262 (ObjectClass): New define.
263 (_Jv_CallNonvirtualMethodA): New function.
264 * java/lang/reflect/Method.java (hack_trampoline): New method.
265 (hack_call): New native method.
267 1999-12-21 Per Bothner <per@bothner.com>
269 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
270 offset in new Method.
272 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
274 * java/lang/natObject.cc (notify): Throw message with
275 IllegalMonitorStateException.
278 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
279 (isInterrupted_): New function, which does clear interrupt_flag.
280 (interrupt): Use `isInterrupted_'.
281 * java/lang/natThread.cc (interrupt): Add comment.
282 (join): Set `prev' in joiner loop.
283 Change various calls to `isInterrupted' to use `isInterrupted_'.
284 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
285 on linux. Set result to 0 on an interrupt. Test interrupted status
286 of java Thread object directly.
287 FLAG_INTERRUPTED: removed.
288 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
289 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
290 (_Jv_InitThreads): Don't block SIGINT.
291 (_Jv_ThreadWait): Don't configure SIGINT handler.
293 1999-12-21 Tom Tromey <tromey@cygnus.com>
295 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
297 1999-12-20 Tom Tromey <tromey@cygnus.com>
299 * java/lang/reflect/Modifier.java (STRICT): New constant.
300 (isStrict): New method.
301 (toString): Added `strict'.
303 1999-12-23 Anthony Green <green@cygnus.com>
305 * configure: Rebuilt.
306 * configure.in (LIBDATASTARTSPEC): Force data_start in with
309 1999-12-19 Anthony Green <green@cygnus.com>
311 * libgcjdata.c: New file.
312 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
313 * configure: Rebuilt.
314 * configure.in (LIBDATASTARTSPEC): Force data with a known name
316 * Makefile.in: Rebuilt.
317 * Makefile.am: Build libgcjdata.a.
319 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
320 * configure: Rebuilt.
321 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
324 1999-12-17 Tom Tromey <tromey@cygnus.com>
326 * java/lang/reflect/Method.java (toString): Call getType if
327 required. Partial fix for PR libgcj/111. From Per Bothner.
329 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
331 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
333 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
334 null String constructor parameter.
335 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
336 for exception messages.
337 BooleanClass: declare.
338 (setOption): Use BooleanClass instead of Class.forName() for
340 (bind): Cast 4th parameter of setsockopt to `char *' for
341 compatibility with older Solaris headers.
342 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
343 sprintf calls for exception messages.
344 BooleanClass, IntegerClass: declare.
345 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
348 1999-12-15 Tom Tromey <tromey@cygnus.com>
350 * java/lang/natSystem.cc (init_properties): Don't set user.name or
351 user.home if NO_GETUID defined. Only set user.dir if getcwd
354 * include/config.h.in: Rebuilt.
355 * acconfig.h (NO_GETUID): New define.
356 * configure.in: Rebuilt.
357 * configure.in: Define NO_GETUID in cross case. Check for getcwd
360 1999-12-08 Tom Tromey <tromey@cygnus.com>
362 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
363 where no recursive mutexes exist. Fixes PR libgcj/117.
365 1999-12-05 Anthony Green <green@cygnus.com>
367 * include/jvm.h: Declare many functions with
368 __attribute__((__malloc__)).
369 * gcj/javaprims.h: Ditto.
371 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
373 * THANKS: Giving credit where credit is due.
375 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
377 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
379 * java/lang/natString.cc (equalsIgnoreCase): return false if
380 anotherString is null.
381 * java/lang/Boolean.java (valueOf): return FALSE if argument is
384 1999-11-30 Tom Tromey <tromey@cygnus.com>
386 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
387 mutex to initialize. Initialize `count' if required.
390 1999-11-27 Per Bothner <per@bothner.com>
392 * exception.cc: Remove prototype declarations for malloc and free.
393 These clash with recent versions of glibc, which specifies `throws ()'
394 when __cplusplus is defined. Instead, #include <stdlib.h>.
396 1999-11-24 Tom Tromey <tromey@cygnus.com>
398 * prims.cc (_Jv_NewObjectArray): Use
399 _Jv_GetArrayElementFromElementType.
400 (_Jv_NewPrimArray): Likewise.
401 * java/lang/natObject.cc (clone): Use
402 _Jv_GetArrayElementFromElementType instead of sizeof.
403 * java/lang/natSystem.cc (arraycopy): Use
404 _Jv_GetArrayElementFromElementType.
405 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
408 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
410 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
411 Exception messages. PR java.net/57.
412 (bind): set SO_REUSEADDR before bind.
413 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
414 overruns. PR java.net/57.
416 1999-11-19 Tom Tromey <tromey@cygnus.com>
418 * Makefile.am (DIVIDESPEC): Removed.
419 (EXCEPTIONSPEC): Removed.
421 1999-11-19 Andrew Haley <aph@cygnus.com>
423 * Makefile.am (JCFLAGS): Add -L$(here)
425 * Makefile.in: Rebuild.
427 1999-11-18 Tom Tromey <tromey@cygnus.com>
429 * java/lang/natDouble.cc: Include <config.h>.
431 * include/config.h.in: Rebuilt.
432 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
433 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
435 * configure: Rebuilt.
436 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
437 requested by configure.host. Don't put `-D' option into
438 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
440 * configure: Rebuilt.
441 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
444 1999-11-18 Andrew Haley <aph@cygnus.com>
446 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
447 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
449 * Makefile.in: Rebuild
450 * acconfig.h: remove SJLJ_EXCEPTIONS
451 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
452 Do not AC_DEFINE SJLJ_EXCEPTIONS.
453 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
454 * gcj/Makefile.in, include/Makefile.in: rebuild.
455 * include/config.h.in: remove SJLJ_EXCEPTIONS.
457 1999-11-18 Andrew Haley <aph@cygnus.com>
459 * gij.cc (main): Rename label to prevent conflict.
461 * exception.cc (_Jv_type_matcher): Don't check the table if we're
462 using setjmp/longjmp exceptions: there isn't one.
464 1999-11-17 Andrew Haley <aph@cygnus.com>
466 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
467 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
468 (__sjthrow): Add declaration.
469 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
473 * Makefile.in: Rebuild
474 * acconfig.h: Add SJLJ_EXCEPTIONS
475 * configure.in: Add SJLJ_EXCEPTIONS
476 * configure: Rebuild.
477 * gcj/Makefile.in: Rebuild.
478 * gcj/cni.h: Add support for sjlj-exceptions.
479 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
480 * include/Makefile.in: Rebuild.
481 * include/default-signal.h: Add support for sjlj-exceptions.
483 1999-11-18 Tom Tromey <tromey@cygnus.com>
485 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
487 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
489 (method_cache): Made larger.
491 1999-11-11 Tom Tromey <tromey@cygnus.com>
493 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
494 initializing mutex. Initialize `count' when required.
496 1999-11-07 Anthony Green <green@trip.cygnus.com>
498 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
501 1999-11-05 Tom Tromey <tromey@cygnus.com>
503 * java/lang/natThread.cc (destroy): Removed incorrect comment.
505 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
507 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
508 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
511 1999-11-05 Tom Tromey <tromey@cygnus.com>
513 * java/lang/natThread.cc (stop): Removed argument name.
515 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
516 `private'; now has default access.
517 * Makefile.in: Rebuilt.
518 * Makefile.am (java/lang/ThreadGroup.h): Removed.
520 1999-11-04 Tom Tromey <tromey@cygnus.com>
522 * java/lang/natClass.cc (method_cache_count): Removed.
523 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
524 (_Jv_AddMethodToCache): Don't loop.
526 * configure.in: Removed `qt' threads case.
527 * include/quick-threads.h: Removed.
528 * quick-threads.cc: Removed.
530 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
531 (_Jv_ThreadDestroy): Likewise.
532 * include/no-threads.h (_Jv_ThreadCancel): Removed.
533 (_Jv_ThreadDestroy): Likewise.
534 * include/posix-threads.h (struct _Jv_Thread_t): Removed
536 (_Jv_ThreadCancel): Removed decl.
537 (_Jv_ThreadDestroy): Removed.
538 * posix-threads.cc (_Jv_ThreadCancel): Removed.
539 (throw_cleanup): Removed.
540 (really_start): Don't push or pop cleanup.
541 (_Jv_ThreadInitData): Don't initialize `exception' field.
542 * java/lang/Thread.java (stop): Officially unimplemented.
543 * java/lang/natThread.cc (stop): Officially unimplemented.
545 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
547 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
550 1999-11-02 Tom Tromey <tromey@cygnus.com>
552 * boehm.cc: Don't include boehm-config.h.
554 1999-11-01 Tom Tromey <tromey@cygnus.com>
556 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
557 (sum_blocks): Removed.
558 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
560 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
562 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
564 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
565 * java/io/InputStreamReader (InputStreamReader): ditto.
567 1999-10-22 Tom Tromey <tromey@cygnus.com>
569 * Makefile.in: Rebuilt.
570 * Makefile.am (java/lang/ClassLoader.h): New target.
571 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
574 * include/java-props.h (_Jv_Compiler_Properties): Changed
576 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
577 * include/jvm.h (_Jv_GCSetInitialHeapSize,
578 _Jv_GCSetMaximumHeapSize): Declare.
579 (JvRunMain, _Jv_RunMain): Declare.
580 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
581 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
582 (_Jv_GCSetMaximumHeapSize): Likewise.
583 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
584 (_Jv_GCSetMaximumHeapSize): Likewise.
585 * prims.cc (parse_heap_size): New function.
586 (_Jv_SetInitialHeapSize): Likewise.
587 (_Jv_SetMaximumHeapSize): Likewise.
588 (_Jv_Compiler_Properties): New global.
589 * gij.cc (help): New function.
591 (heap_size): Likewise.
592 (heap_max_size): Likewise.
593 (main): Parse arguments. Set _Jv_Compiler_Properties.
594 Include <config.h>, <java-props.h>.
595 (_Jv_Compiler_Properties): Removed.
597 1999-10-18 Tom Tromey <tromey@cygnus.com>
599 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
601 (redirect): New static field.
602 * java/lang/ClassLoader.java (getSystemClassLoader): Now
604 (getVMClassLoader0): Removed.
605 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
607 (getSystemClassLoader): Implemented.
609 1999-10-16 Anthony Green <green@cygnus.com>
611 * java/lang/ClassLoader.java (getSystemResource): Use
612 getSystemClassLoader instead of ClassLoader.system.
613 (getSystemResourceAsStream): Ditto.
615 * java/lang/natClassLoader.cc (redirect): Make static and
616 remove #ifdef INTERPRETER so it is always defined.
617 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
618 returns a VMClassLoader.
620 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
621 PropertyResourceBundle if a properties file is found before a
622 ResourceBundle class.
624 1999-10-15 Tom Tromey <tromey@cygnus.com>
626 * gij.cc (main): Formatting fixes.
627 (_Jv_Compiler_Properties): Define.
628 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
630 (init_properties): Set properites from _Jv_Compiler_Properties.
631 * include/java-props.h (_Jv_Compiler_Properties,
632 _Jv_Environment_Properties): Declare.
634 * include/java-props.h: Added copyright.
636 1999-10-13 Anthony Green <green@cygnus.com>
638 * libtool-version: Catch up by incrementing current.
640 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
641 * configure, include/config.h.in: Rebuilt.
642 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
643 * configure.in: Added --disable-getenv-properties and new define
644 `DISABLE_GETENV_PROPERTIES'.
646 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
647 (next_property_key): New function.
648 (next_property_value): New function.
649 (process_gcj_properties): New function.
650 (JvRunMain): Call process_gcj_properties.
653 * java/lang/natSystem.cc (init_properties): Set properties defined
656 * include/java-props.h: New file.
658 * java/lang/natSystem.cc (init_properties): Add new properties to
659 conform with Java Product Versioning Specification.
661 1999-10-12 Tom Tromey <tromey@cygnus.com>
663 * configure: Rebuilt.
664 * configure.in: Fixed test for --disable-java-net.
666 1999-10-06 Tom Tromey <tromey@cygnus.com>
668 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
669 when building Canadian cross.
670 (NATIVE): Don't define when cross-compiling.
672 1999-10-04 Tom Tromey <tromey@cygnus.com>
674 * java/net/natPlainSocketImpl.cc: Don't include headers if
675 java.net is disabled.
677 * Makefile.in: Rebuilt.
678 * Makefile.am (ZINCS): Removed. This is defined in configure.in
679 when needed, and must be left empty when not needed.
681 1999-10-01 Anthony Green <green@cygnus.com>
683 * THANKS: Refreshed from htdocs version.
685 1999-10-01 Steve Chamberlain <sac@pobox.com>
687 * Makefile.in: Rebuilt.
688 * Makefile.am (ZINCS): Define
690 * configure: Rebuilt.
691 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
693 * java/lang/ieeefp.h: Add definitions for picoJava.
695 1999-10-01 Tom Tromey <tromey@cygnus.com>
697 * configure: Rebuilt.
698 * configure.in: Set classpath when invoking gcj. Use changequote
699 around sed invocation.
701 * java/net/natPlainSocketImpl.cc: Stub native functions if
702 DISABLE_JAVA_NET is defined.
703 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
704 typo in exception string.
705 (getTimeToLive): Likewise.
706 Stub native functions if DISABLE_JAVA_NET is defined.
707 * java/net/natInetAddress.cc: Stub native functions if
708 DISABLE_JAVA_NET is defined.
709 * configure.host: Disable java.net for mips-tx39.
710 * configure, include/config.h.in: Rebuilt.
711 * acconfig.h (DISABLE_JAVA_NET): Undefine.
712 * configure.in: Added --disable-java-net and new define
715 1999-09-30 Tom Tromey <tromey@cygnus.com>
717 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
719 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
723 1999-09-28 Tom Tromey <tromey@cygnus.com>
725 * configure: Rebuilt.
726 * configure.in (PROCESS): In POSIX case, only set if not already
728 * configure.host (PROCESS): Set in mips-tx39 case.
730 * aclocal.m4, configure: Rebuilt.
731 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
732 appropriate AC_PROG_ symbol.
734 1999-09-24 Tom Tromey <tromey@cygnus.com>
736 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
738 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
740 Fix for PR java.util/47:
741 * configure, include/config.h: Rebuilt.
742 * configure.in: Don't look for ctime or ctime_r.
743 * Makefile.in: Rebuilt.
744 * Makefile.am (nat_source_files): Don't mention natDate.cc.
745 * java/util/natDate.cc: Removed.
746 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
748 (getAvailableIDs): Rewrote.
749 (getTimeZone): Rewrote.
750 * java/util/Date.java (toGMTString): New method.
751 (toLocaleString): New method.
754 1999-09-23 Tom Tromey <tromey@cygnus.com>
756 * configure: Rebuilt.
757 * configure.in: Print message when checking to see if gcj can
758 handle -fuse-divide-subroutine.
760 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
762 * java/lang/FirstThread.java (run0): Renamed to `run'.
765 * prims.cc (main_init): New function.
766 (JvRunMain): Call it.
767 (_Jv_RunMain): Likewise.
769 (main_init): Ignore SIGPIPE. Fixes PR 51.
771 1999-09-22 Tom Tromey <tromey@cygnus.com>
773 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
775 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
777 * java/text/MessageFormat.java (MessageFormat(String)): Set the
779 * java/text/NumberFormat.java: Check that object is a Number. If
780 not, throw IllegialArgumentException.
782 1999-09-21 Tom Tromey <tromey@cygnus.com>
784 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
785 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
787 * include/posix-threads.h (_Jv_MutexDestroy): Use
789 (_Jv_MutexLock): Likewise.
790 (_Jv_MutexUnlock): Likewise.
792 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
793 previous patch; it too was incorrect.
794 * java/io/PrintStream.java (PrintStream): Likewise.
796 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
797 refer to `this' before calling superclass constructor.
798 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
799 before calling superclass constructor.
801 1999-09-20 Tom Tromey <tromey@cygnus.com>
803 * configure: Rebuilt.
804 * configure.in: Send output of `-fuse-divide-subroutine' test
805 compilation to /dev/null.
807 1999-09-14 Tom Tromey <tromey@cygnus.com>
809 * include/java-insns.h: Turned constants into an enum. Added
810 multiple-inclusion protection.
812 1999-09-10 Tom Tromey <tromey@cygnus.com>
814 * configure: Rebuilt.
815 * configure.in: Build include/Makefile.
816 * Makefile.in: Rebuilt.
817 * Makefile.am (SUBDIRS): Added gcj and include.
818 (install-data-local): New target.
819 (extra_headers): New macro.
820 * include/Makefile.in: New file.
821 * include/Makefile.am: New file.
823 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
824 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
826 * boehm.cc: Don't include java-threads.h or gcj/field.h.
827 * resolve.cc: Include config.h.
828 * defineclass.cc: Include config.h.
829 * include/java-interp.h: Don't include config.h.
830 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
833 * gcj/javaprims.h: Regenerated namespace decls.
834 * classes.pl (scan): Don't put `;' after closing brace.
836 * Makefile.in: Rebuilt.
837 * Makefile.am (INCLUDES): Added -I for top_srcdir.
838 * configure.in: Create gcj/Makefile.
839 * gcj/Makefile.in: New file.
840 * gcj/Makefile.am: New file.
841 * java/lang/Object.h: Don't include any other headers.
842 * gcj/array.h: Renamed from include/java-array.h.
843 * gcj/field.h: Renamed from include/java-field.h.
844 * gcj/method.h: Renamed from include/java-method.h.
845 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
846 Updated all files to reflect new include structure.
848 1999-09-09 Tom Tromey <tromey@cygnus.com>
850 * configure: Rebuilt.
851 * configure.in: Fixed typo; variable is THREADSPEC and not
854 1999-09-08 Tom Tromey <tromey@cygnus.com>
856 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
857 previous change and implemented a correct test in the __m_count
860 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
863 1999-09-07 Tom Tromey <tromey@cygnus.com>
865 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
866 code and don't set errno.
868 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
869 not `r'. Changed `done_sleeping' to a `bool'.
871 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
873 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
874 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
875 by another thread, rather than by the GC.
876 (_Jv_CondWait): Prevent premature thread wakeup by GC.
877 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
878 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
881 1999-09-03 Tom Tromey <tromey@cygnus.com>
883 * configure: Rebuilt.
884 * configure.in: Check for fstat function.
885 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
888 1999-09-02 Tom Tromey <tromey@cygnus.com>
890 * include/java-array.h (jobjectArrayjchar): Removed unused
893 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
894 _Jv_PrepareCompiledClass while holding class mutex.
896 1999-09-01 Tom Tromey <tromey@cygnus.com>
898 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
899 (_Jv_PthreadGetMutex): Use it.
900 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
901 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
902 (_Jv_MutexLock): Likewise.
903 (_Jv_MutexUnlock): Likewise.
904 * include/config.h.in: Rebuilt.
905 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
906 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
907 * configure: Rebuilt.
908 * libgcj.spec.in: Don't mention INTERPSPEC.
909 * configure.in (INTERPSPEC): Removed.
910 Only run pthreads-related checks when using POSIX threads. Check
911 for m_count and __m_count in mutex structure.
913 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
915 * java/lang/natClass.cc: Fixed notification of threads
916 when class initialization is complete.
918 1999-09-01 Tom Tromey <tromey@cygnus.com>
920 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
921 * resolve.cc: Removed constants defined by
922 java.lang.reflect.Modifier.
923 Include <java/lang/reflect/Modifier.h>.
924 (_Jv_ResolvePoolEntry): Use values from Modifier.
925 (_Jv_DetermineVTableIndex): Likewise.
926 (_Jv_PrepareClass): Likewise.
928 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
929 java.lang.reflect.Modifier.
930 Include <java/lang/reflect/Modifier.h>.
931 (checkExtends): Use values from Modifier.
932 (checkImplements): Likewise.
933 (handleField): Likewise.
934 (handleConstantValueAttribute): Likewise.
935 (handleFieldsEnd): Likewise.
936 (handleMethod ): Likewise.
937 (handleMethodsEnd): Likewise.
938 (handleClassBegin): Likewise.
939 * interpret.cc: Removed constants defined by
940 java.lang.reflect.Modifier.
941 (continue1): Use values from Modifier.
942 * java/lang/natClassLoader.cc: Removed constants defined by
943 java.lang.reflect.Modifier.
945 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
946 JV_STATE_NOTHING, not `0'.
947 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
949 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
950 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
952 (_Jv_PthreadGetMutex): New function.
953 (_Jv_PthreadCheckMonitor): Use it.
954 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
955 (_Jv_MutexLock): Update `count'.
956 (_Jv_MutexUnlock): Likewise.
957 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
960 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
962 * Makefile.am (.java.lo): Add rule.
964 * Makefile.in: Rebuilt.
966 1999-09-01 Tom Tromey <tromey@cygnus.com>
968 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
969 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
971 (_Jv_CondNotify): Use it.
972 (_Jv_CondNotifyAll): Likewise.
974 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
976 1999-08-31 Tom Tromey <tromey@cygnus.com>
978 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
981 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
983 * posix-threads.cc: Include <errno.h>.
985 1999-08-23 Tom Tromey <tromey@cygnus.com>
987 * boehm.cc: Undefine TRUE and FALSE.
989 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
991 1999-08-21 Tom Tromey <tromey@cygnus.com>
993 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
996 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
998 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1000 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1001 (HAVE_STRUCT_IP_MREQ): Added.
1002 * configure, include/config.h.in: Rebuilt.
1003 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1005 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1006 Disable if ip_mreq is not available.
1008 * configure.in: Check types ssize_t and in_addr_t.
1009 * acconfig.h: Undefine them.
1010 * configure, include/config.h.in: Rebuilt.
1012 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1013 function that detects the signature of getpwuid_r.
1014 (init_properties): Use it.
1015 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1018 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1020 * interpret.cc (continue1): Implement explicit dispatch table.
1021 insn_target: Explicit interpreter switch table.
1022 SAVE_PC: New macro, moves pc saving code into instructions that
1024 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1025 PC_REGISTER_ASM: New macro.
1026 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1027 opcode: Remove local variable.
1028 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1029 (POKEI): Use _Jv_word.
1030 (iinc): Use _Jv_word.
1031 (dupx): Change reference argument (sp) to pointer.
1034 * interpret.cc: Remove instruction timing instrumentation.
1036 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1037 comment. Don't use _Jv_ClassNameSamePackage.
1039 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1040 URLPathEntry, CacheEntry}: Removed.
1042 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1044 (.java.lo): Rule removed.
1046 * Makefile.in: Rebuilt.
1048 1999-08-19 Tom Tromey <tromey@cygnus.com>
1050 * java/lang/natThread.cc (class locker): New class.
1051 (join): Use a locker around _Jv_CondWait.
1054 1999-08-18 Tom Tromey <tromey@cygnus.com>
1056 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1057 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1059 1999-08-18 Tom Tromey <tromey@cygnus.com>
1061 * include/javaprims.h ("Java"): Regenerated namespace decls.
1063 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1065 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1066 from _Jv_InternClassStrings.
1068 * prims.cc (_Jv_RunMain): New function.
1069 (JvRunMain): Remove gij-support.
1071 * gij.cc (main): Use _Jv_RunMain.
1073 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1075 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1076 argument in temp variable.
1077 (continue1): For all op_x2y insns, use temp variable for
1078 intermediate value. Also remove some comments.
1080 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1081 (forName): Don't call _Jv_InitClass.
1083 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1085 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1087 * java/util/jar/JarInputStream.java: New file.
1089 * java/util/jar/JarEntry.java: New file.
1091 * java/util/jar/JarFile.java: New file.
1093 * java/net/URLClassLoader.java: New file.
1095 * java/net/JarURLConnection.java: New file.
1097 * gnu/gcj/protocol/jar/Handler.java: New file.
1099 * gnu/gcj/protocol/jar/Connection.java: New file.
1101 * java/security/SecureClassLoader.java: New file.
1103 * java/lang/ClassLoader.java (parent): New variable.
1104 (ClassLoader (ClassLoader)): new constructor.
1105 (findClass): New method.
1106 (loadClass): Add default 1.2 implementation.
1107 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1108 (readfully): Removed.
1110 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1111 (findSystemClass): New method.
1112 (VMClassLoader): Constructor rewritten.
1114 All other methods removed.
1116 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1117 to gnu::gcj::runtime::VMClassLoader.
1118 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1120 (VMClassLoader::findSystemClass): renamed from findBootClass.
1122 * Makefile.am: Add new files.
1123 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1125 * Makefile.in: Rebuilt.
1127 1999-08-17 Tom Tromey <tromey@cygnus.com>
1129 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1131 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1134 1999-08-16 Tom Tromey <tromey@cygnus.com>
1136 * configure: Rebuilt.
1137 * configure.in: Set DIVIDESPEC to empty string if compiler does
1138 not support -fuse-divide-subroutine.
1140 1999-08-14 Per Bothner <per@bothner.com>
1142 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1143 * java/lang/natClass.cc (initializeClass): Likewise.
1144 * java/lang/ClassLoader.java (resolveClass0): New static method.
1145 (resolveClass): Call resolveClass0.
1146 (findSystemClass): No longer static.
1148 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1150 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1152 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1154 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1157 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1159 * Makefile: Rebuilt.
1160 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1163 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1166 * configure: Rebuilt.
1167 * configure.in: Properly align --help output, fix capitalization
1169 * acinclude.m4: Likewise.
1171 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1173 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1175 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1176 (_Jv_callInterpretedMethod): Unused. Remove.
1177 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1179 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1180 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1181 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1182 * interpret.cc: use _Jv_word.
1183 * defineclass.cc: use_Jv_word.
1184 * resolve.cc: Use _Jv_word.
1185 (_Jv_ResolvePoolEntry): Return _Jv_word.
1186 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1187 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1189 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1192 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1194 * configure: Rebuilt.
1195 * configure.in (sched_yield): Try librt first, then libposix4.
1196 Add -lrt, -lposix4 to THREADSPEC.
1198 1999-08-08 Anthony Green <green@cygnus.com>
1200 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1202 1999-08-08 Anthony Green <green@cygnus.com>
1204 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1207 1999-08-08 Anthony Green <green@cygnus.com>
1211 * include/config.h.in: Rebuilt.
1212 * acconfig.h: Add INTERPRETER.
1214 * Makefile.in: Rebuilt.
1215 * Makefile.am (libffi_files): Identify the libffi object files for
1216 inclusion in libgcj.
1217 (LIBFFIINCS): Define.
1219 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1220 Dummy definition for configurations without an interpreter.
1222 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1223 java::lang::Boolean constructor.
1225 * include/java-interp.h: Always include java-cpool.h.
1227 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1228 when INTERPRETER not defined.
1230 * java/lang/Class.h (finalize): Define.
1232 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1233 IOException from File.getCanonicalPath.
1234 (getStream): Likewise.
1237 * THANKS: More thanks.
1239 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1241 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1243 (_Jv_PrepareClass): Allow non-abstract classes to
1244 have abstract subclasses.
1245 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1247 * interpret.cc (continue1/perform_invoke): Don't sign extend
1249 (continue1/lshl,lshr): Push long, not int.
1250 (continue1/ulshr): Use UINT64, not long long.
1251 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1253 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1254 * java/lang/FirstThread.java (run): Add top-level exception
1256 (run0): Renamed from run.
1258 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1260 * configure.in (--with-interpreter): Added.
1261 * include/config.h.in (INTERPRETER): Added.
1263 * java/lang/ClassLoader.java: File replaced.
1264 * java/lang/VMClassLoader.java: New file.
1265 * java/lang/natClassLoader.cc: New file.
1266 * gnu/gcj/runtime/MethodInvocation.java: New file.
1267 * gnu/gcj/util/path/SearchPath.java: New file.
1268 * gnu/gcj/util/path/PathEntry.java: New file.
1269 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1270 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1271 * gnu/gcj/util/path/URLPathEntry.java: New file.
1272 * gnu/gcj/util/path/CacheEntry.java: New file.
1273 * include/java-interp.h: New file.
1274 * include/java-cpool.h: New file.
1275 * include/java-insns.h: New file.
1276 * defineclass.cc: New file.
1277 * interpret.cc: New file.
1278 * resolve.cc: New file.
1280 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1281 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1282 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1284 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1285 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1287 (initializeClass): Use new JV_ prefixed names. Also, call
1288 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1290 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1291 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1292 JV_STATE_LINKED): New.
1293 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1294 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1295 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1296 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1297 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1298 _Jv_InterpMethodInvocation): New friends for interpreter.
1300 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1301 include/java-cpool.h and renamed with JV_ prefix.
1303 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1305 (_Jv_UnregisterClass): New decl.
1307 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1308 class loader argument.
1309 (_Jv_FindClass): Use class loader.
1311 * prims.cc (_Jv_makeUtf8Const): New function.
1312 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1313 (_Jv_NewPrimArray): Ditto.
1314 (_Jv_FindClassFromSignature): Ditto.
1315 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1316 * java/lang/reflect/natMethod.cc (getType): Ditto.
1318 * include/java-field.h (_Jv_Field::isRef): Make robust for
1319 non-resolved contexts.
1321 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1322 Also, don't mark class->next field.
1324 * java/lang/VirtualMachineError.java: Added FIXME note.
1326 * configure.in (INTERPSPEC): New spec.
1327 * libgcj.spec.in: Added INTERPSPEC.
1328 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1329 gnu/gcj/runtime/MethodInvocation.
1330 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1331 (ordinary_java_source_files): Added above mentioned java classes.
1333 * configure: Rebuilt.
1334 * Makefile.in: Rebuilt.
1336 1999-08-06 Tom Tromey <tromey@cygnus.com>
1338 * configure: Rebuilt.
1339 * configure.in: Look for sched_yield in -lrt.
1341 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1343 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1344 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1345 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1347 (toString): Print correctly when `country' is empty.
1349 1999-08-04 Per Bothner <per@bothner.com>
1351 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1353 1999-08-02 Tom Tromey <tromey@cygnus.com>
1355 * aclocal.m4, configure: Rebuilt for new libtool.
1357 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1359 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1360 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1361 * java/net/ServerSocket.java: Define ANY_IF.
1362 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1363 all network interfaces.
1364 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1365 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1367 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1369 * java/io/natFile.cc (performMkdir): Remove FIXME.
1370 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1372 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1374 * configure.in: Check for bstring.h.
1375 * configure, include/config.h.in: Rebuilt.
1376 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1377 * java/net/natPlainSocketImpl.cc: Likewise.
1379 1999-07-31 Tom Tromey <tromey@cygnus.com>
1384 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1386 * configure.in: Check for struct hostent_data and need for
1387 -D_REENTRANT for gethostbyname_r declaration.
1388 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1389 (lookup): Use hostent_data for fixed_buffer.
1390 * configure, include/config.h.in: Rebuilt.
1392 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1394 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1395 available. Don't cast memmove args to (void*).
1396 * configure.in: Do not abort if memmove is not available.
1398 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1400 * java/lang/natString.cc (substring): optimize where substring is
1402 * java/io/File.java (getName): don't return separator with file name.
1403 * java/io/natFile.cc (attr): fix overflow.
1405 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1407 * mauve-libgcj: Disable Object Serialization tests.
1409 1999-07-20 Warren Levy <warrenl@cygnus.com>
1411 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1412 Default to using PlainDatagramSocketImpl.
1413 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1415 1999-07-19 Tom Tromey <tromey@cygnus.com>
1417 * include/stamp-h.in: New file.
1419 1999-07-12 Tom Tromey <tromey@cygnus.com>
1421 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1424 1999-07-07 Andrew Haley <aph@cygnus.com>
1426 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1427 bytes to make it point after the instruction where the trap
1429 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1431 1999-07-07 Tom Tromey <tromey@cygnus.com>
1433 * mauve-libgcj: Explicitly enable formerly disabled java.text
1436 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1439 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1441 * java/net/URL.java (equals): Compare strings using String.equals.
1442 * java/net/URL.java (sameFile): Ditto.
1444 1999-07-02 Warren Levy <warrenl@cygnus.com>
1446 * configure: Rebuilt.
1447 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1448 * include/config.h.in: Rebuilt.
1449 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1450 (mcastGrp): Updated FIXME comments.
1451 (setOption): Fixed typo.
1452 (getOption):Implemented IP_MULTICAST_IF.
1454 1999-07-02 Warren Levy <warrenl@cygnus.com>
1456 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1457 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1458 (getTimeToLive): Implemented.
1459 (setOption): Implemented IP_MULTICAST_IF.
1461 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1463 * java/lang/String.java (toString): Check for this == null and throw
1464 NullPointerException.
1466 1999-07-01 Warren Levy <warrenl@cygnus.com>
1468 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1469 to count and revised comments to match.
1470 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1471 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1472 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1473 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1474 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1475 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1477 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1479 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1480 properly as count rather than outlength.
1481 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1482 output on overflow rather than buffer fill.
1483 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1484 if markPos is 0 and there is still room in the buffer.
1486 1999-07-01 Andrew Haley <aph@cygnus.com>
1488 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1489 This is a workaround for a bug in glibc's pthreads package which
1490 doesn't deliver any sigcontext information to a signal handler.
1492 1999-06-24 Tom Tromey <tromey@cygnus.com>
1494 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1495 * java/lang/fdlibm.h (HUGE): Conditionally define.
1497 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1499 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1500 * java/lang/e_log.c: Don't use __uint32_t.
1502 1999-05-27 Eric Christopher <echristo@cygnus.com>
1504 * configure: Rebuilt
1505 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1506 * acconfig.h: Rebuilt
1507 * include/config.h.in: Rebuilt
1509 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1510 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1511 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1512 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1513 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1514 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1515 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1516 and namespace collision with __uint32_t
1518 1999-06-23 Tom Tromey <tromey@cygnus.com>
1520 * java/util/zip/InflaterInputStream.java (read): Throw
1521 ZipException if inflater throws a DataFormatException.
1523 1999-06-23 Warren Levy <warrenl@cygnus.com>
1525 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1526 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1527 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1528 is not final per JDK.
1529 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1531 * java/util/zip/DataFormatException.java: Class extends Exception.
1532 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1533 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1534 * java/util/zip/ZipInputStream.java: ditto.
1535 (closeEntry): Changed method name to match JDK spec.
1537 1999-06-21 Tom Tromey <tromey@cygnus.com>
1539 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1542 * Makefile.in: Rebuilt.
1543 * Makefile.am (toolexeclibdir): Define as libdir when
1545 * configure: Rebuilt.
1546 * configure.in (USE_LIBDIR): New conditional.
1548 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1550 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1551 hostname in returned InetAddress objects.
1552 (getLocalHostname): Fix typo.
1553 * java/net/InetAddress.java (getByName): Set hostname on return
1555 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1558 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1560 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1561 interfaces if host==NULL.
1562 (accept): Throw message with InterruptedIOException.
1563 (getOption): Cache localAddress.
1564 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1565 'address' for DatagramSocket.
1566 (setTimeToLive): Fix compiler warnings.
1567 (getOption): Cache localAddress.
1568 * java/net/Socket.java (getLocalAddress): Don't need local
1569 InetAddress object. Add FIXME comment about calling checkConnect().
1570 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1571 connection queue to 50 as per JDK 1.2 docs.
1572 (ServerSocket(int,int)): Listen on all network interfaces by
1573 default, per JDK 1.2 docs.
1574 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1575 Add localAddress caching.
1577 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1579 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1581 (write(byte[],int,int)): ditto.
1583 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1585 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1587 1999-06-11 Warren Levy <warrenl@cygnus.com>
1589 * mauve-libgcj: Activated java.net Mauve tests.
1591 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1593 * java/net/natInetAddress.cc (aton): Fix typos.
1594 (lookup): Use a bigger buffer size for gethostbyname_r on all
1595 versions of glibc. Updated FIXME comment explaining this.
1596 Modified while loops to not set herr = ERANGE to work around glibc
1597 problems. Use user specified hostname in InetAddress result when
1598 available (consistent with JDK).
1600 1999-06-10 Warren Levy <warrenl@cygnus.com>
1602 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1603 Throw FileNotFoundException instead of IOException.
1605 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1607 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1608 in static field name.
1609 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1610 throughout rather than ParseException.
1612 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1614 * java/lang/Runtime.java (exec): Convert prog name and arguments
1616 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1617 environment array conversion. Preserve current environment if envp
1618 not passed. Preserve PATH unless explicitly specified.
1619 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1620 followed by EOF. Set a flag when a line is terminated by '\r' and
1621 ignore following '\n' if set.
1623 1999-06-02 Warren Levy <warrenl@cygnus.com>
1625 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1626 Ignore context if spec is an absolute URL. Fix braindead
1628 (hashCode): Use JDK 1.2 style algorithm.
1629 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1630 context URL properly.
1632 1999-05-30 Anthony Green <green@cygnus.com>
1634 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1635 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1637 1999-05-28 Warren Levy <warrenl@cygnus.com>
1639 * java/net/DatagramSocket.java (laddr): Removed.
1640 (DatagramSocket): Removed attempts to get or set laddr if null.
1641 (getLocalAddress): Reimplemented per spec.
1642 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1644 (joinGroup): Throw NullPointerException if any argument is null.
1645 (leaveGroup): ditto.
1646 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1647 * java/net/PlainSocketImpl.java (timeout): Added.
1648 (getInputStream): Added FIXME comment on how to support timeouts
1650 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1651 * java/net/Socket.java: Added FIXME comments to identify
1652 conflicting specs between the JCL and JDK 1.2 documents.
1653 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1654 if host is null. Get localport value resolved by kernel if bind
1656 (receive): Implemented support for timeouts in UDP.
1657 (setOption): Implemented based on natPlainSocketImpl version.
1659 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1660 resolved by kernel if bind lport is 0.
1661 (connect): Get localport value resolved by kernel if bind wasn't
1662 done to set localport.
1663 (accept): Implemented support for timeouts for ServerSocket.
1664 (setOption): Save value for SO_TIMEOUT.
1665 (getOption): Return timeout for SO_TIMEOUT.
1667 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1669 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1670 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1671 (setOption): Made abstract.
1672 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1673 to avoid cpp conflicts in native code.
1674 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1675 cpp conflicts in native code.
1676 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1677 * java/net/Socket.java (getLocalAddress): Implemented.
1678 (setTcpNoDelay): Implemented.
1679 (getTcpNoDelay): Implemented.
1680 (setSoLinger): Implemented.
1681 (getSoLinger): Implemented.
1682 (getSoTimeout): Verify class type.
1683 (setSendBufferSize): Implemented.
1684 (getSendBufferSize): Implemented.
1685 (setReceiveBufferSize): Implemented.
1686 (getReceiveBufferSize): Implemented.
1687 (toString): Prepended "Socket".
1688 * java/net/SocketImpl.java (toString): Rewritten.
1689 (getOption): Made abstract.
1690 (setOption): Made abstract.
1691 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1692 (setOption): Implemented.
1693 (getOption): Implemented.
1695 1999-05-26 Warren Levy <warrenl@cygnus.com>
1697 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1698 address when null. Set SO_REUSEADDR for multicasts.
1699 (getSoTimeout): Implemented.
1700 (setSoTimeout): Implemented.
1701 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1702 * java/net/MulticastSocket.java (getInterface): Implemented.
1703 (setInterface): Implemented.
1704 (setTimeToLive): Check for invalid ttl.
1705 (joinGroup): Verify multicast address and security.
1706 (leaveGroup): Verify multicast address and security.
1707 (send): Implemented.
1708 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1714 (getTTL): Implemented as non-native.
1718 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1719 (getSoTimeout): Implemented.
1720 (setSocketFactory): Made synchronized.
1721 * java/net/Socket.java (setSoTimeout): Implemented.
1722 (getSoTimeout): Implemented.
1723 (close): Made synchronized.
1724 (setSocketImplFactory): Made synchronized.
1725 * java/net/SocketImpl.java: Implement SocketOptions interface.
1726 * java/net/natInetAddress.cc: Corrected module name at top of file.
1727 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1728 (bind): Added FIXME.
1729 (peek): Implemented.
1735 (setOption): Implemented for SO_REUSEADDR.
1736 (getOption): Implemented for SO_REUSEADDR.
1738 1999-05-24 Tom Tromey <tromey@cygnus.com>
1740 * java/util/ResourceBundle.java (getBundle): Throw
1741 NullPointerException if baseName is null.
1743 1999-05-22 Tom Tromey <tromey@cygnus.com>
1745 * java/util/zip/ZipInputStream.java (fill): New method.
1746 (compressed_len): New instance variable.
1747 (getNextStream): Set it.
1748 (read): Reset inflater on EOF. Only read via `super' if entry is
1750 (skip): Only skip via `super' if entry is deflated.
1751 * java/util/zip/Deflater.java (last_input_count): Removed.
1752 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1754 (needsInput): Don't use last_input_count.
1755 (setInput): Don't set last_input_count.
1756 * java/util/zip/natInflater.cc (getRemaining): Return correct
1758 (inflate): Return 0 if input array is length 0.
1759 (setInput): Don't set last_input_count.
1760 * java/util/zip/Inflater.java (last_input_count): Removed.
1762 1999-05-21 Tom Tromey <tromey@cygnus.com>
1764 * Makefile.in: Rebuilt.
1765 * Makefile.am (INCLUDES): Added $(ZINCS).
1766 * configure: Rebuilt.
1767 * configure.in (ZINCS): New subst.
1769 1999-05-21 Andrew Haley <aph@cygnus.com>
1771 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1772 to signal options to allow the same exceptions to be rethrown
1775 1999-05-20 Andrew Haley <aph@cygnus.com>
1777 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1779 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1780 (INIT_FPE): Exception string made more informative.
1781 * include/sparc-signal.h (INIT_FPE): Exception string made more
1783 * testsuite/libjava.lang/Divide_1.java: New file.
1784 * testsuite/libjava.lang/Divide_1.out: New file.
1786 1999-05-19 Tom Tromey <tromey@cygnus.com>
1788 * aclocal.m4, configure: Rebuilt.
1789 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1791 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1794 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1796 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1798 (update): Fail in default case. Always initialize `strat'.
1800 * mauve-libgcj: Enable java.util.zip.
1802 1999-05-18 Warren Levy <warrenl@cygnus.com>
1804 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1805 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1806 PlainDatagramSocketImpl.java, and SocketOptions.java.
1807 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1808 * Makefile.in: Rebuilt.
1810 * java/net/DatagramPacket.java: New file.
1811 * java/net/DatagramSocket.java: New file.
1812 * java/net/DatagramSocketImpl.java: New file.
1813 * java/net/MulticastSocket.java: New file.
1814 * java/net/PlainDatagramSocketImpl.java: New file.
1815 * java/net/SocketOptions.java: New file.
1816 * java/net/natPlainDatagramSocketImpl.cc: New file.
1818 1999-05-18 Tom Tromey <tromey@cygnus.com>
1820 * java/util/zip/ZipOutputStream.java (level): Initial value is
1821 Deflater.DEFAULT_COMPRESSION.
1822 (close): New method.
1823 (closeEntry): Likewise.
1825 (put_version): Likewise.
1826 (write_entry): Likewise.
1827 (put2, put4): Now return `int'.
1828 (comment): Default to empty string.
1829 (bytes_written): New instance variable.
1831 * java/util/zip/ZipEntry.java (setComment): Limit length of
1833 (setCrc): Check CRC validity.
1834 (setExtra): Check argument validity.
1835 (setMethod): Likewise.
1836 (setSize): Likewise.
1837 (ZipEntry): Likewise.
1838 * include/javaprims.h: Updated namespace declarations.
1839 * Makefile.in: Rebuilt.
1840 * Makefile.am (ordinary_java_source_files): Mention new files.
1841 (nat_source_files): Likewise.
1842 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1845 (getInputStream): Handle compressed entries.
1846 * java/util/zip/GZIPOutputStream.java: New file.
1847 * java/util/zip/GZIPInputStream.java: New file.
1848 * java/util/zip/DataFormatException.java: New file.
1849 * java/util/zip/CheckedInputStream.java: New file.
1850 * java/util/zip/CheckedOutputStream.java: New file.
1851 * java/util/zip/InflaterInputStream.java: Implemented.
1852 * java/util/zip/natInflater.cc: New file.
1853 * java/util/zip/Deflater.java: Implemented.
1854 * java/util/zip/natDeflater.cc: New file.
1855 * java/util/zip/DeflaterOutputStream.java: Implemented.
1857 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1858 ZipException, not IOException.
1859 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1862 1999-05-17 Tom Tromey <tromey@cygnus.com>
1864 * java/lang/natSystem.cc (init_properties): URL now points to
1867 1999-05-12 Per Bothner <bothner@cygnus.com>
1869 * java/util/Calendar.java (set): First call computeFields if needed.
1870 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1872 1999-05-12 Tom Tromey <tromey@cygnus.com>
1874 * configure: Rebuilt.
1875 * configure.in: Look for -ldl when using the Boehm collector.
1876 Look for sched_yield in -lposix4.
1878 1999-05-12 Per Bothner <bothner@cygnus.com>
1880 * java/io/File.java (mkdirs): Handle a null parent directory.
1882 1999-05-12 Tom Tromey <tromey@cygnus.com>
1884 * include/javaprims.h: Updated namespace declarations.
1885 * classes.pl (scan): Uniquify class list.
1886 * Makefile.in, configure: Rebuilt.
1887 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1888 (built_java_source_files): New macro.
1889 (nat_headers): Added built_java_source_files.
1890 (javao_files): Likewise.
1891 (EXTRA_libgcj_la_SOURCES): Likewise.
1892 (libgcj.zip): Create built class files.
1893 ($(built_java_source_files:.java=.class)): New target.
1894 (jv_convert_LDADD): Added -L$(here)/.libs.
1895 * configure.in: Create links for ConcreteProcess.java and
1896 natConcreteProcess.cc.
1897 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1898 * java/lang/natEcosProcess.cc: New file.
1899 * java/lang/EcosProcess.java: New file.
1900 * java/lang/PosixProcess.java: New file.
1901 * java/lang/natPosixProcess.cc: New file.
1903 1999-05-12 Warren Levy <warrenl@cygnus.com>
1905 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1906 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1907 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1908 (connect): Throw ConnectException.
1910 1999-05-11 Tom Tromey <tromey@cygnus.com>
1912 * Makefile.in: Rebuilt.
1913 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1914 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1917 * Makefile.in: Rebuilt.
1918 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1919 and it causes problems with libtool.
1921 * Makefile.in, configure: Rebuilt.
1922 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1923 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1924 (jv_convert_DEPENDENCIES): Added ZDEPS.
1925 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1927 (THREADSPEC): Added `-L' to point to qthreads build directory.
1931 * configure, Makefile.in: Rebuilt.
1932 * Makefile.am (toolexeclib_DATA): New macro.
1933 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1934 Recognize --with-system-zlib.
1935 (GCSPEC): New subst.
1936 (THREADSPEC): New subst.
1937 (SYSTEMSPEC): New subst.
1938 (ZLIBSPEC): New subst.
1939 * libgcj.spec.in: New file.
1941 1999-05-10 Tom Tromey <tromey@cygnus.com>
1943 * java/io/InputStreamReader.java (read): If length is 0, return
1944 0. Reset `wpos' and `wcount' when buffer has been filled and
1947 * java/util/Properties.java (save): Removed `FIXME' comment.
1948 (load): Invalid characters in \u now treated as terminators.
1949 Make sure to append character resulting from `\' handling.
1950 Cast to `char' when appending to key or value.
1951 (skip_ws): Inverted test for whitespace.
1953 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1955 (readLine): Likewise.
1956 (readFully): Implemented.
1958 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1960 * java/awt/natToolkit.cc: Added copyright header.
1961 * java/util/zip/InflaterInputStream.java: Added copyright header.
1963 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1965 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1967 (getNextStream): Likewise.
1969 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1971 (getBundle): Don't explicitly throw null pointer exception.
1973 * gnu/gcj/RawData.java: Added copyright header.
1975 * include/jni.h (_Jv_va_list): Always define as va_list.
1977 1999-05-9 Anthony Green <green@cygnus.com>
1979 * java/text/DateFormat.java (computeInstance): Separate time
1981 (getDateTimeInstance): Ditto.
1982 (getDateTimeInstance(int,int)): New method.
1984 * Makefile.in: Rebuilt.
1985 * Makefile.am (ordinary_java_source_files): Add new classes.
1987 * java/util/PropertyResourceBundle.java: New file.
1988 * gnu/gcj/util/EnumerationChain.java: New file.
1990 1999-05-07 Tom Tromey <tromey@cygnus.com>
1992 * acconfig.h (GCJVERSION): New undef.
1993 * java/lang/natSystem.cc (init_properties): Define java.version,
1994 java.class.version, os.name, os.arch, os.version.
1995 Include <sys/utsname.h> if required.
1996 * configure: Rebuilt.
1997 * configure.in: Compute and define GCJVERSION.
1999 * java/lang/natSystem.cc (default_file_encoding): Now static.
2001 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2003 * libtool-version: New file.
2004 * Makefile.in: Rebuilt.
2005 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2008 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2009 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2012 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2013 (we pick those up already).
2015 1999-05-05 Per Bothner <bothner@cygnus.com>
2017 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2018 stub classes. (This is enough to get Kawa to compile against libgcj.)
2020 * gnu/gcj/RawData.java: New class.
2021 * doc/cni.sgml: Document RawData.
2023 * java/util/zip/InflaterInputStream.java: New stub class.
2024 * java/util/zip/ZipInputStream.java: New class. Partly works.
2025 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2026 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2027 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2028 * java/util/zip/ZipOutputStream.java: Start implementation.
2030 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2031 (default_file_encoding): New global, initial value is above macro.
2032 (init_properties): Default file.encoding to default_file_encoding.
2034 * Makefile.am: Add new classes.
2036 1999-05-05 Tom Tromey <tromey@cygnus.com>
2038 * Makefile.in: Rebuilt.
2039 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2040 (clean-local): New target
2042 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2043 (load, loadLibrary): Now native.
2045 * java/lang/Runtime.java (load, loadLibrary): Now native.
2046 (init): New native method.
2047 (Runtime): Use init.
2048 * prims.cc: Include <ltdl.h> if required.
2049 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2051 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2053 * configure.in: Switch from irix threads to posix threads
2054 * configure: Regenerate.
2056 1999-04-30 Tom Tromey <tromey@cygnus.com>
2058 * Makefile.in: Rebuilt.
2059 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2061 1999-04-29 Tom Tromey <tromey@cygnus.com>
2063 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2066 * java/util/Locale.java (Locale(String,String)): Implement in
2067 terms of 3-argument version; variant now defaults to empty
2069 (toString): Assume variant is not null.
2070 (equals): Assume all strings are not null.
2071 (Locale): Throw NullPointerException if any argument is null.
2073 * java/util/ResourceBundle.java (getBundle): Don't try the base
2074 name; now implicit in partialGetBundle call.
2075 (trySomeGetBundle): Search for parent bundles and call setParent
2077 (partialGetBundle): Added `langStop' argument. Use
2078 `Locale.toString' to compute bundleName.
2079 (resource_cache): New static field.
2080 (partialGetBundle): Cache the returned resource bundle. Now
2083 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2086 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2087 * java/text/natCollator.cc (decomposeCharacter): `base' now
2089 * Makefile.in: Rebuilt.
2090 * Makefile.am (ordinary_java_source_files): Added
2091 CollationElementIterator, CollationKey, Collator,
2093 (nat_source_files): Added natCollator.cc.
2094 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2095 (compare): Pass `this' to CollationElementIterator constructor.
2096 (getCollationElementIterator): Likewise.
2097 (ceiNext): Fix off-by-one error when finding initial substring.
2098 (next): Correctly mask off bits when computing return value.
2099 Fixed return values when one string is shorter than the other.
2100 * java/text/CollationElementIterator.java (collator): New field.
2101 (CollationElementIterator): Added collator argument.
2102 (next): Call ceiNext on collator object.
2104 1999-04-26 Tom Tromey <tromey@cygnus.com>
2106 * natCollator.cc: New file.
2108 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2109 (GregorianCalendar): Use it in all constructors.
2110 * java/util/Calendar.java (Calendar): Changed argument name to
2111 `zone' to match code.
2113 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2114 * java/text/CollationKey.java: New file.
2115 * java/text/CollationElementIterator.java: New file.
2116 * java/text/Collator.java: New file.
2117 * java/text/RuleBasedCollator.java: New file.
2119 * Makefile.in: Rebuilt.
2120 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2121 (jv_convert_LDADD): Explicltly add -lm -lc.
2123 1999-04-26 Tom Tromey <tromey@cygnus.com>
2125 * configure, Makefile.in: Rebuilt.
2126 * configure.in: Added AM_PROG_LIBTOOL.
2127 (GCOBJS): Use `.lo' form of files.
2128 (THREADOBJS): Likewise.
2129 (GCDEPS): Use `.la' form of library.
2130 (GCLIBS): Set to be the same as GCDEPS.
2131 (THREADDEPS): Use `.la' form of library.
2132 (THREADLIBS): Set to be the same as THREADDEPS.
2133 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2134 toolexeclib_LIBRARIES.
2135 (libgcj_la_SOURCES): Renamed for libtoolization.
2136 (EXTRA_libgcj_la_SOURCES): Likewise.
2137 (libgcj_la_DEPENDENCIES): Likewise.
2138 (libgcj_la_LIBADD): Likewise.
2139 ($(nat_files)): Use LTCXXCOMPILE.
2140 ($(c_files)): Use LTCOMPILE.
2141 (GCJCOMPILE): New macro.
2143 (.java.o): Likewise.
2144 ($(javao_files)): Likewise.
2145 (jv_convert_LINK): Use LIBTOOL.
2146 (nat_files): Use `.lo' files.
2147 (c_files): Likewise.
2148 (javao_files): Likewise.
2149 (.class.lo): Renamed.
2150 (.java.lo): Likewise.
2151 ($(nat_files)): Depend on %.lo.
2152 ($(c_files)): Likewise.
2153 ($(javao_files)): Likewise.
2154 (jv_convert_LDADD): Link against .lo files.
2155 (jv_convert_DEPENDENCIES): Depend on .lo files.
2156 (maintainer-check): Depend on libgcj.la, but examine .a file.
2157 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2158 (libgcj_la_LDFLAGS): New macro.
2160 1999-04-23 Warren Levy <warrenl@cygnus.com>
2162 * Makefile.am: Added URLDecoder and URLEncoder.
2163 * Makefile.in: Rebuilt.
2165 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2166 setSocketImplFactory to match spec.
2167 * java/net/Socket.java (getSoLinger): Changed return type to
2170 * java/net/URLDecoder.java: New file.
2171 * java/net/URLEncoder.java: New file.
2173 1999-04-21 Tom Tromey <tromey@cygnus.com>
2175 * java/lang/natString.cc (getBytes): Reverted earlier change and
2176 applied correct fix from Per Bothner.
2178 * java/lang/String.java: Don't throw
2179 UnsupportedEncodingException.
2181 * java/lang/natString.cc (getBytes): Correctly size result
2182 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2184 1999-04-20 Andrew Haley <aph@cygnus.com>
2186 * include/sparc-signal.h: new file.
2187 * configure.in: include/sparc-signal.h added.
2188 * configure: regenerated.
2189 * prims.cc (JvRunMain): signal handling code rewritten to be more
2191 (catch_segv): ditto.
2193 * include/i386-signal.h: reorganized.
2194 * include/default-signal.h: reorganized.
2196 1999-04-19 Tom Tromey <tromey@cygnus.com>
2198 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2199 once. From Anthony Green.
2201 1999-04-19 Andrew Haley <aph@cygnus.com>
2203 * Makefile.in: Processed with new automake.
2205 1999-04-19 Tom Tromey <tromey@cygnus.com>
2207 * include/javaprims.h: Removed security namespace.
2209 1999-04-20 Anthony Green <green@cygnus.com>
2211 * java/io/PrintStream.java (println): Remove extra println.
2213 1999-04-19 Anthony Green <green@cygnus.com>
2215 * Makefile.in: Rebuilt.
2216 * Makefile.am (ordinary_java_source_files): Add new security files.
2218 * java/security/NoSuchAlgorithmException.java,
2219 java/security/MessageDigest.java: New files.
2221 * include/javaprims.h: Add security namespace.
2223 1999-04-16 Per Bothner <bothner@cygnus.com>
2225 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2226 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2227 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2228 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2229 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2230 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2231 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2232 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2233 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2234 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2235 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2236 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2237 * Makefile.am: Various changes for new files and conversions.
2239 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2240 New overloading, allows greater efficiency.
2241 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2242 New overloading (for efficiency - avoids copying).
2244 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2245 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2247 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2248 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2249 (writeChars): Don't be quite so eager to flush.
2250 * java/io/PrintStream.java: Rewrite. Now more similar to
2251 OutputStreamWriter, using explicit UnicodeToBytes converter.
2252 Also, autoflush does not need to flush so often.
2253 * java/lang/natString.cc (getBytes): More efficient algorithm.
2254 (init(jbyteArray,jint,jint,jstring)): More efficient.
2256 1999-04-15 Warren Levy <warrenl@cygnus.com>
2258 * Makefile.am (ordinary_java_source_files): Added new Connection
2259 and Handler classes in gnu.gcj.protocol.file package.
2260 * Makefile.in: Rebuilt.
2262 * gnu/gcj/protocol/file/Connection.java: New file.
2263 * gnu/gcj/protocol/file/Handler.java: New file.
2264 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2265 if doInput allows input.
2266 (getOutputStream): Check if doOutput allows output.
2267 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2269 1999-04-14 Tom Tromey <tromey@cygnus.com>
2271 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2272 buffer larger to work around bug.
2273 From Bryce McKinlay <bryce@albatross.co.nz>.
2275 1999-04-14 Andrew Haley <aph@cygnus.com>
2277 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2278 NaNs are always converted to the same long value.
2279 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2282 1999-04-13 Tom Tromey <tromey@cygnus.com>
2284 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2285 instead switch on actual element type.
2287 * Makefile.in: Rebuilt.
2288 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2290 1999-04-13 Andrew Haley <aph@cygnus.com>
2292 * include/i386-signal.h, include/default-signal.h: New files.
2293 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2295 (catch_fpe): New function.
2296 * configure.in: Make link to appropriate include/java-signal.h.
2297 * configure: Rebuilt.
2298 * Makefile.am: include/java-signal.h added to dependency list.
2299 * Makefile.in: Rebuilt.
2301 1999-04-12 Urban Widmark <urban@svenskatest.se>
2303 * java/io/DataInputStream.java (readLine): Corrected handling of
2304 empty lines, from null to "".
2306 1999-04-12 Tom Tromey <tromey@cygnus.com>
2308 * Makefile.in: Rebuilt.
2309 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2311 * java/lang/natSystem.cc (SystemClass): New define.
2312 (init_properties): Synchronize.
2314 1999-04-08 Geoff Berry <gcb@gnu.org>
2316 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2317 * natPlainSocketImpl.cc (accept): Add missing else if check
2320 1999-04-08 Tom Tromey <tromey@cygnus.com>
2322 * java/lang/Long.java (parseLong): Corrected overflow detection
2324 * java/lang/Integer.java (parseInt): Corrected overflow detection
2327 * java/io/PrintStream.java (print): Handle null string argument.
2328 (println): Likewise.
2330 1999-04-07 Warren Levy <warrenl@cygnus.com>
2332 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2333 Set count to 0 when InputStreamReader returns -1 for EOF.
2335 1999-04-07 Tom Tromey <tromey@cygnus.com>
2337 * mauve-libgcj: Omit java.text.Collator,
2338 java.text.RuleBasedCollator.
2340 1999-04-06 Tom Tromey <tromey@cygnus.com>
2342 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2343 IOException from getHttpHeaders().
2344 (getHeaderFieldKey): Likewise.
2346 * include/javaprims.h: Regenerated declarations.
2348 * Makefile.in: Rebuilt.
2349 * Makefile.am (ordinary_java_source_files): Updated for removed
2352 1999-04-06 Per Bothner <bothner@cygnus.com>
2354 * java/util/zip/Adler32.java: New class.
2355 * java/util/zip/CRC32.java: Add working method bodies.
2356 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2357 * Makefile.in: Re-generate.
2359 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2361 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2362 from version in removed www hierarchy.
2363 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2364 version in removed www hierarchy.
2366 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2367 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2368 * gnu/gcj/www/protocol/http: Removed dir.
2369 * gnu/gcj/www/protocol: Removed dir.
2370 * gnu/gcj/www: Removed dir.
2372 * java/net/HttpURLConnection.java: Revised comments to indicate
2373 missing JDK 1.2 methods.
2375 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2376 hierarchy rather than the gnu/gcj/www/protocol one.
2377 * java/net/URLConnection.java: Updated status comments.
2378 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2379 the gnu/gcj/www/content one.
2381 1999-04-06 Per Bothner <bothner@cygnus.com>
2383 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2384 The gen-from-JIS program is in $(CONVERT_DIR).
2386 1999-04-06 Tom Tromey <tromey@cygnus.com>
2388 * mauve-libgcj: Renamed from mauve-libjava.
2390 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2392 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2393 (getResponseMessage): Implemented.
2394 (getResponseVals): New private method.
2396 * java/net/URLConnection.java (getContent): Implemented.
2397 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2399 1999-04-05 Tom Tromey <tromey@cygnus.com>
2401 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2402 (jv_convert_SOURCES): Renamed.
2403 (EXTRA_jv_convert_SOURCES): Likewise.
2404 (jv_convert_LDFLAGS): Likewise.
2405 (jv_convert_LINK): Likewise.
2406 (jv_convert_LDADD): Likewise.
2407 (jv_convert_DEPENDENCIES): Likewise.
2409 * Makefile.in: Rebuilt.
2410 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2413 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2415 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2416 method for comparison.
2418 * java/net/URLConnection.java (getContentLength): Implemented.
2419 (getContentType): Implemented.
2420 (getContentEncoding): Implemented.
2421 (getExpiration): Implemented.
2422 (getDate): Implemented.
2423 (getLastModified): Implemented.
2424 (getHeaderFieldInt): Implemented.
2425 (getHeaderFieldDate): Implemented.
2427 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2429 * java/net/URLConnection.java (toString): Implemented.
2430 (setContentHandlerFactory): Implemented.
2431 (setContentHandler): Wrote new private helper method.
2433 1999-04-01 Tom Tromey <tromey@cygnus.com>
2435 * Makefile.in: Rebuilt.
2436 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2437 of 1999-03-31; we always want to build all the .class files.
2438 Depend on java_source_files, not libgcj.zip.
2439 (nat_headers): Define in terms of ordinary_java_source_files.
2441 1999-03-31 Tom Tromey <tromey@cygnus.com>
2443 * Makefile.in: Rebuilt.
2444 * Makefile.am (special_java_source_files): New macro.
2445 (java_source_files): Use it.
2446 (ordinary_java_source_files): New macro.
2447 (java_source_files): Use it.
2448 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2449 creating headers for those files with hand-maintained headers.
2451 * include/javaprims.h: Regenerated namespace declarations.
2452 * classes.pl (scan): Include [0-9] in regexp for matching class
2453 names; for java.util.zip.CRC32.
2455 * Makefile.in: Rebuilt.
2456 * Makefile.am (nat_headers): Redefined to generate all possible
2459 * java/util/zip/ZipException.java: In package java.util.zip, not
2462 1999-03-30 Tom Tromey <tromey@cygnus.com>
2464 * configure: Rebuilt.
2465 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2466 eh-common.h when not building in tree with gcc.
2468 * Makefile.in: Rebuilt.
2469 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2470 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2472 ($(java_source_files:.java=.class)): New target.
2474 * Makefile.in: Rebuilt.
2475 * Makefile.am (java_source_files): Added
2476 java/net/HttpURLConnection.java and
2477 gnu/gcj/www/protocol/http/Connection.java.
2479 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2481 * gnu/gcj/www/protocol/http/Connection.java: New file.
2482 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2483 * java/net/HttpURLConnection.java: New file.
2484 * java/net/URLConnection.java (getHeaderField): Implemented default.
2485 (getHeaderFieldKey): Implemented default method.
2487 1999-03-30 Tom Tromey <tromey@cygnus.com>
2489 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2491 * java/util/zip/Deflater.java: Added copyright header.
2492 * java/util/zip/CRC32.java: Added copyright header.
2494 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2495 that it is automatically generated.
2496 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2498 * gnu/gcj/convert/BytesToUnicode.java,
2499 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2500 gnu/gcj/convert/Input_EUCJIS.java,
2501 gnu/gcj/convert/Input_UTF8.java,
2502 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2503 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2504 gnu/gcj/convert/Output_8859_1.java,
2505 gnu/gcj/convert/Output_JavaSrc.java,
2506 gnu/gcj/convert/Output_UTF8.java,
2507 gnu/gcj/convert/UnicodeToBytes.java,
2508 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2510 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2512 * Makefile.in, configure: Rebuilt.
2513 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2514 not if test subdir exists.
2515 (--enable-gcj-classes): Removed; gcj always used to generate
2517 (JAVA, JAVAC): Removed.
2518 (--enable-single-compilation, --enable-source-compilation):
2521 (NATIVE): New conditional.
2522 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2523 `install-exec' to work.
2524 (toolexeclibdir): Likewise.
2525 (toollib_LIBRARIES): Likewise.
2526 (AM_MAKEFLAGS): Don't pass tooldir.
2528 (javao_files): Redefined.
2529 (java_source_files): New macro.
2530 (c_source_files): New macro.
2531 (c_files): Redefined in terms of c_source_files.
2532 (java_io_files, java_lang_files, java_net_files, java_text_files,
2533 java_util_files, gnu_files, java_files): Removed.
2534 (class_io_files, class_lang_files, class_net_files,
2535 class_text_files, class_util_files, class_gnu_files, class_files):
2537 (nat_source_files): New macro.
2538 (nat_files): Redefined in terms of nat_source_files.
2539 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2540 java_source_files. Removed no-such-file.c.
2542 (ETAGS_ARGS): Removed.
2543 (TAGS_DEPENDENCIES): Likewise.
2544 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2546 (src_io_files, src_lang_files, src_text_files, src_util_files,
2547 src_gnu_files): Removed.
2548 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2549 (BUILT_SOURCES): Removed.
2550 (header-check): New target.
2552 (noinst_PROGRAMS): New macro.
2553 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2555 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2556 (gen-from-JIS): Build in top directory.
2557 (convert_source_files): New macro.
2558 (convert_SOURCES): New macro.
2559 (convert_LDFLAGS): Likewise.
2560 (convert_LINK): Likewise.
2561 (convert_LDADD): Likewise.
2562 (convert_DEPENDENCIES): Likewise.
2564 (gen-from-JIS): Removed.
2565 (gen_from_JIS_SOURCES): New macro.
2566 (gen_from_JIS_LDADD): Likewise.
2567 (gen_from_JIS_DEPENDENCIES): Likewise.
2569 * configure: Rebuilt.
2570 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2571 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2572 when defining conditional.
2574 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2576 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2577 The Unicode Consortium does not permit their re-distribution.
2578 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2579 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2581 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2583 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2585 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2587 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2588 from Unicode Consortium.
2589 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2590 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2591 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2592 New tables, generated using gen-from-JIS.
2593 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2594 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2595 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2596 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2598 * gnu/gcj/convert/Convert.java: New application.
2599 * Makefile.am, Makefile.in (convert): New program, using Convert.
2600 Build the various JIS conversion tables (in maintainer mode).
2602 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2604 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2606 * java/net/URL.java (URL): Deal with null property value. Use "."
2607 as separator in building class name.
2608 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2609 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2610 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2611 beginning of the substring rather than 'start'.
2613 1999-03-26 Tom Tromey <tromey@cygnus.com>
2615 * include/java-chartables.h: Rebuilt.
2616 * include/java-chardecomp.h: New file.
2617 * chartables.pl: Generate output files directly. Added support
2618 for generating decomposition header.
2619 (canonical_decomposition, full_decomposition): New globals.
2620 (DECOMPOSITION): New constant.
2621 (process_char): Call add_decomposition.
2622 (add_decomposition): New sub.
2623 (write_decompositions): New sub.
2625 1999-03-25 Tom Tromey <tromey@cygnus.com>
2627 * java/text/CollationElementIterator.java: New file.
2629 * mauve-libjava: Omit StringTest.
2631 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2633 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2634 without a '/' when parsing protocol. Handle ref outside of parseURL.
2635 (hashCode): Implemented.
2636 (set): Don't expand -1 to default port.
2637 (getDefaultPort): Removed.
2639 * java/net/URLStreamHandler.java (parseURL): Implemented.
2640 (toExternalForm): Implemented.
2642 1999-03-23 Tom Tromey <tromey@cygnus.com>
2644 * java/text/BreakIterator.java (getSentenceInstance):
2646 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2648 * Makefile.in: Rebuilt.
2649 * Makefile.am (nat_headers): Added IllegalAccessException.
2650 * java/lang/natClass.cc (newInstance): Throw
2651 IllegalAccessException, not IllegalAccessError.
2652 Include IllegalAccessException.h.
2654 1999-03-22 Tom Tromey <tromey@cygnus.com>
2656 * gnu/gcj/text/LineBreakIterator.java: New file.
2657 * java/text/BreakIterator.java (getLineInstance): Implemented.
2659 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2660 copy constructor private.
2661 (previous, next): Removed erroneous comment about line
2663 (previous): Correctly recognize break between non-letter on the
2664 left and letter on the right. Handle apostrophes correctly.
2666 * java/text/BreakIterator.java (getWordInstance): Implemented.
2667 * gnu/gcj/text/WordBreakIterator.java: New file.
2668 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2670 * gnu/gcj/text/BaseBreakIterator.java: New file.
2672 1999-03-19 Tom Tromey <tromey@cygnus.com>
2674 * java/text/BreakIterator.java: New file (partially stubbed out).
2675 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2677 * include/config.h.in: Rebuilt.
2678 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2679 (HAVE_TIMEZONE): Likewise.
2680 * configure: Rebuilt.
2681 * configure.in: Added timezone checks.
2682 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2685 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2687 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2688 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2689 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2690 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2691 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2692 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2693 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2694 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2696 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2697 (BSD_COMP): Kludge needed for Solaris2.
2699 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2701 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2702 URL(java.net.URL, string, URLStreamHandler) and call it with a
2703 null handler. In latter constructor, added SecurityManager check.
2704 (set): Expect null handler on bad protocol rather than an exception.
2705 (setURLStreamHandler): Simplified exception handling; return null
2706 on invalid protocol.
2708 1999-03-18 Tom Tromey <tromey@cygnus.com>
2710 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2712 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2714 Include PrintStream.h, InputStream.h.
2715 * java/lang/System.java (ForwardingInputStream,
2716 ForwardingOutputStream): Removed.
2717 (setErr, setIn, setOut): Now native.
2719 Reverted patch from 1999-02-12 to work around problem in
2721 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2722 (_Jv_eh_free): Use free.
2724 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2725 for path name. Minor formatting fixes.
2727 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2729 * prims.cc (fail_on_finalization): New function.
2730 (_Jv_GCWatch): Likewise.
2732 * prims.cc (JvRunMain): Initialize `nullp'.
2733 (nullp): New global.
2734 (catch_segv): Throw nullp.
2736 * Makefile.in: Rebuilt.
2737 * Makefile.am (ZIP): In "null target" case, zip is found in the
2740 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2744 * java/lang/StringBuffer.java (StringBuffer): Don't use
2745 ensureCapacity to set initial capacity.
2746 (capacity): Subtract `length' from return result.
2748 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2750 * java/io/natFileDescriptorPosix.cc (open): Throw
2751 FileNotFoundException, but with filename and errno in msg.
2753 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2755 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2756 functionality folded into java/net/URL.java per spec.
2758 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2759 than EEXIST for throwing FileNotFoundException.
2761 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2762 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2764 * java/net/URLStreamHandler.java (parseURL): Added stub.
2766 1999-03-15 Andrew Haley <aph@cygnus.com>
2768 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2771 1999-03-15 Andrew Haley <aph@cygnus.com>
2773 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2776 1999-03-12 Tom Tromey <tromey@cygnus.com>
2778 * prims.cc (catch_segv): New function.
2779 Include <signal.h> if HANDLE_SEGV defined. Include
2780 NullPointerException.h.
2781 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2784 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2785 a SimpleDateFormat, not just a DateFormat.
2786 (defaultCenturyStart, formatData, pattern): Now private.
2787 (append): Now `final'. Use `NumberFormat.format'.
2789 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2791 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2794 * java/text/MessageFormat.java (format): Use default MessageFormat
2796 (parse, parseObject): Wrote.
2798 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2801 1999-03-12 Andrew Haley <aph@cygnus.com>
2803 * java/lang/String.java (indexOf): Replace with native method for
2805 * java/lang/natString.cc (IndexOf): As above.
2807 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2808 Argument check corrected.
2809 (init(jbyteArray,jint,jint,jstring)): Likewise.
2811 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2812 1.2 compliant method.
2814 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2816 * java/lang/Float.java (byteValue, shortValue): Likewise.
2818 1999-03-11 Tom Tromey <tromey@cygnus.com>
2820 * java/text/DecimalFormat.java (parse): Wrote.
2822 * java/text/ChoiceFormat.java (parse): Set error index on
2823 ParsePosition object.
2825 * java/lang/Integer.java (parseInt): Throw exception on overflow
2826 when intermediate result is most negative number. Changed
2827 overflow detection as well.
2828 * java/lang/Long.java (parseLong): Likewise.
2830 * configure, Makefile.in: Rebuilt.
2831 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2832 CANADIAN when building in source tree that doesn't include gcc.
2833 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2836 * java/text/ChoiceFormat.java (nextDouble): Correct some
2837 off-by-one errors when masking or adding.
2839 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2840 parameter, if given. Use `%', not IEEEremainder.
2841 (scanFix): Throw error if multiplier already set.
2842 (computePattern): Wrote.
2844 1999-03-11 Andrew Haley <aph@cygnus.com>
2846 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2848 (nextDouble): Corrected masking logic. Handle interaction between
2849 `next' and negative numbers.
2851 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2853 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2854 * java/net/URL.java: Added general comments.
2856 1999-03-10 Tom Tromey <tromey@cygnus.com>
2858 * java/text/ChoiceFormat.java (parse): Wrote.
2860 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2862 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2863 Create ChoiceFormat objects.
2864 (format): Special-case ChoiceFormat.
2865 (scanFormatElement): Include { and } in generated style string.
2867 1999-03-09 Tom Tromey <tromey@cygnus.com>
2869 * java/text/ChoiceFormat.java: New file.
2871 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2873 * java/net/BindException.java: Created.
2874 * java/net/ConnectException.java: Created.
2875 * java/net/ContentHandler.java: Created.
2876 * java/net/ContentHandlerFactory.java: Created.
2877 * java/net/FileNameMap.java: Created.
2878 * java/net/MalformedURLException.java: Created.
2879 * java/net/NoRouteToHostException.java: Created.
2880 * java/net/ProtocolException.java: Created.
2881 * java/net/ServerSocket.java (@author): Fixed typo.
2882 * java/net/Socket.java (@author): Fixed typo.
2883 * java/net/SocketImpl.java (@author): Fixed typo.
2884 * java/net/SocketImplFactory.java (@author): Fixed typo.
2885 * java/net/URL.java: Created - nearly complete.
2886 * java/net/URLConnection.java: Created - near-empty stub.
2887 * java/net/URLStreamHandler.java: Created - incomplete stub.
2888 * java/net/URLStreamHandlerFactory.java: Created.
2889 * java/net/UnknownServiceException.java: Created.
2891 1999-03-09 Tom Tromey <tromey@cygnus.com>
2893 * java/lang/System.java (ForwardingInputStream): New class.
2894 (ForwardingOutputStream): Likewise.
2895 (in, out, err): Now `final' forwarding streams.
2896 (setIn, setOut, setErr): Use appropriate method on forwarding
2899 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2902 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2904 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2905 * java/util/zip/Checksum.java: New interface (complete).
2906 * java/util/zip/Deflater.java: New class (near-empty stub).
2907 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2908 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2909 * java/util/zip/ZipEntry.java: New class (complete).
2910 * java/util/zip/ZipException.java: New class (complete).
2911 * java/util/zip/ZipFile.java: New class (incomplete stub).
2912 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2914 1999-03-09 Tom Tromey <tromey@cygnus.com>
2916 * java/text/MessageFormat.java (MessageFormatElement): Removed
2917 `public' specifiers.
2919 * java/text/DecimalFormat.java (scanFormat): Increment index
2920 before processing exponential format. Fixed a couple typos in
2922 (format): Correct normalization of exponent.
2924 1999-03-08 Tom Tromey <tromey@cygnus.com>
2926 * java/text/SimpleDateFormat.java (parse): Throw
2927 IllegalArgumentException, not ParseException.
2929 1999-03-05 Tom Tromey <tromey@cygnus.com>
2931 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2932 when constructing DateFormatSymbols. Initialize numberFormat
2933 field of superclass.
2935 * java/text/DateFormat.java (equals): Rewrote.
2936 (getAvailableLocales): New method.
2937 (getDateInstance): New methods.
2938 (getDateTimeInstance): Likewise.
2939 (getTimeInstance): Likewise.
2940 (getInstance): New method.
2941 (computeInstance): New method.
2943 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2945 (safeGetResource): New method.
2946 (DateFormatSymbols): Use Locale paramater.
2947 (equals): Now protected.
2948 Made instance variables private.
2950 1999-03-04 Tom Tromey <tromey@cygnus.com>
2952 * java/text/DecimalFormat.java: New file.
2954 * java/text/NumberFormat.java (groupingUsed,
2955 maximumFractionDigits, maximumIntegerDigits,
2956 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2958 (setDecimalSeparatorAlwaysShown, setMultiplier,
2959 setPositivePrefix): Removed.
2960 (setMinimumFractionDigits, setMaximumFractionDigits):
2962 (format): Now final.
2963 Added many new methods.
2965 * Makefile.in: Rebuilt.
2966 * Makefile.am (gnu_files): New macro.
2967 (java_files): Added gnu_files.
2968 (class_gnu_files): New macro.
2969 (class_files): Use it.
2970 (src_gnu_files): New macro.
2971 (gnu.o): New target.
2972 (javao_files): Added gnu.o.
2974 * gnu/gcj/text/LocaleData_en_US.java: New file.
2975 * gnu/gcj/text/LocaleData_en.java: New file.
2976 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2977 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2978 (safeGetString): New method.
2979 (safeGetChar): Likewise.
2981 1999-03-03 Tom Tromey <tromey@cygnus.com>
2983 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2986 * java/text/FieldPosition.java (equals): Don't check for null
2987 object; instanceof does this.
2989 * java/util/Locale.java (clone): New method.
2992 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2994 * doc/cni.sgml: New file.
2996 1999-03-03 Tom Tromey <tromey@cygnus.com>
2998 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3000 * java/text/DecimalFormatSymbols.java: New file.
3002 1999-03-02 Tom Tromey <tromey@cygnus.com>
3004 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3006 * configure: Rebuilt.
3007 * configure.in: Check for sys/filio.h.
3009 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3011 (load): Always throw UnsatisfiedLinkError.
3012 (loadLibrary): Likewise.
3014 1999-03-02 Anthony Green <green@cygnus.com>
3016 * LIBGCJ_LICENSE: New file.
3017 * LIBJAVA_LICENSE: Removed.
3018 * Many files: libjava now libgcj.
3020 1999-03-02 Tom Tromey <tromey@cygnus.com>
3022 * include/java-chartables.h: Rebuilt.
3023 * chartables.pl (print_block): Make table `const'.
3024 (print_numerics): Likewise.
3025 (print_single_map): Likewise.
3026 (print_all_block): Likewise.
3027 (print_case_table): Likewise.
3028 (print_fast_tables): Likewise.
3029 * java/lang/natCharacter.cc (table_search): `table' argument now
3032 1999-03-01 Tom Tromey <tromey@cygnus.com>
3034 * java/util/Date.java (before, after): Inverted logic.
3036 * java/util/Date.java (parse): Handle case where first character
3037 in string is open parenthesis.
3038 (skipParens): Rewrote.
3040 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3041 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3043 * java/util/Date.java (parse): Correctly compute beginning of
3046 * java/util/Hashtable.java (get): Throw NullPointerException if
3048 (containsKey): Likewise.
3050 * java/util/Properties.java (list): Truncate value to 37
3051 characters and add `...'.
3053 * java/lang/Byte.java (parseByte): Pass `radix' to
3056 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3058 Include System.h, PrintStream.h.
3060 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3063 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3065 * configure: Rebuilt.
3066 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3069 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3071 * java/lang/SecurityManager.java: Import java.net.*.
3072 (checkMulticast): New methods.
3074 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3076 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3077 (nat_files): Add java/lang/reflect/natArray.o.
3078 (nat_headers): Add Field.h and NoSuchFieldException.h.
3080 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3081 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3082 (_Jv_FromReflectedField): Fix buglet.
3083 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3084 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3085 * prims.cc (_Jv_Abort): Include message in print-out.
3087 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3088 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3089 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3091 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3092 * include/config.h.in (HAVE_PWD_H): New feature macro.
3093 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3094 user.name, user.home, user.dir.
3096 * java/lang/reflect/Array.java: New class.
3097 * java/lang/reflect/natArray.cc: New native methods.
3098 * include/javaprims.h: Declare java::lang::reflect::Array.
3100 * java/lang/Class.h (getField): New private method. Add friends.
3101 * java/lang/Class.java (getField): Add private overload.
3102 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3103 getDeclaredMethods): Add working implementations.
3104 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3105 Finish implementation, except for access control.
3107 * java/lang/reflect/Modifier.java (toString): New overload.
3108 * include/java-method.h: New file.
3109 * java/lang/reflect/Method.java (index): Replaced by offset field.
3110 Remove various private fields - get them from _Jv_Field instead.
3111 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3112 New method implementations.
3114 * java/text/NumberFormat.java: Add a bunch of methods.
3116 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3118 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3120 1999-02-26 Tom Tromey <tromey@cygnus.com>
3122 * include/config.h.in: Rebuilt.
3123 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3124 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3125 HAVE_GETHOSTBYADDR_R): New defines.
3126 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3127 gethostbyaddr_r if available.
3129 * configure: Rebuilt.
3130 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3132 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3136 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3137 * prims.cc (_Jv_AllocBytesChecked): New function.
3139 * Makefile.in: Rebuilt.
3140 * Makefile.am (SUBDIRS): Removed `test'.
3141 * configure: Rebuilt.
3142 * configure.in: Don't build test/Makefile.
3143 * test/*: Removed all files.
3145 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3147 * java/lang/reflect/Constructor.java: Make class final to match spec.
3148 * java/lang/reflect/Method.java: Ditto.
3150 1999-02-25 Tom Tromey <tromey@cygnus.com>
3152 * java/net/natInetAddress.cc: Include <sys/types.h> before
3154 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3157 * java/net/natInetAddress.cc: Declare gethostname if required.
3158 * include/config.h.in: Rebuilt.
3159 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3160 * configure: Rebuilt.
3161 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3162 declared in unistd.h.
3164 1999-02-24 Tom Tromey <tromey@cygnus.com>
3166 * Makefile.in: Rebuilt.
3167 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3168 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3169 from private to "none".
3171 * include/javaprims.h: Regenerated class declarations with new
3173 * classes.pl (scan): Only generate decls for java.lang, java.io,
3176 1999-02-24 Tom Tromey <tromey@cygnus.com>
3178 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3179 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3181 1999-02-23 Tom Tromey <tromey@cygnus.com>
3183 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3184 not already defined.
3185 * java/io/natFile.cc (_REENTRANT): Only define if not already
3187 * include/config.h.in: Rebuilt.
3188 * acconfig.h (HAVE_BOEHM_GC): New define.
3189 * configure: Rebuilt.
3190 * configure.in: Define HAVE_BOEHM_GC if using it.
3191 * posix-threads.cc: Include boehm-config.h and gc.h if
3193 * include/posix-threads.h: Added explanatory note about Boehm GC.
3195 * java/io/BufferedReader.java (readLine): Only return null when
3196 EOF seen before any characters read. (In particular, an empty
3197 line should not return null.)
3199 * java/io/BufferedInputStream.java (read): Only refill once per
3202 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3203 java.lang.Character.classify12, java.lang.String.hash,
3204 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3205 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3207 * java/text/StringCharacterIterator.java (setIndex): No error if
3209 (next): Check for `pos == end', not `end - 1'.
3210 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3211 for null text in each constructor.
3212 (clone): Fixed order of arguments to constructor.
3214 1999-02-22 Tom Tromey <tromey@cygnus.com>
3216 * include/config.h.in: Rebuilt.
3217 * acconfig.h (HAVE_INET6): New define.
3218 (HAVE_SOCKLEN_T): Likewise.
3219 * java/net/PlainSocketImpl.java: Added copyright header.
3220 * java/net/natPlainSocketImpl.cc: Added copyright header.
3221 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3223 (connect): Likewise.
3225 (socklen_t): New typedef.
3226 (accept): Use socklen_t.
3227 * java/net/natInetAddress.cc: Added copyright header.
3228 (HAVE_GETHOSTNAME): Don't define.
3229 (HAVE_INET_ADDR): Likewise.
3230 (lookup): Fixed typo.
3231 (aton): Don't use `address' as name of local variable.
3232 (lookup): Use HAVE_INET6, not AF_INET6.
3234 * configure: Rebuilt.
3235 * configure.in: Look for functions inet_aton, inet_addr,
3236 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3237 Check for socklen_t typedef.
3239 * exception.cc (__throw): Declare as __noreturn__.
3241 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3243 * Makefile.am, Makefile.in: Also build java/net.
3244 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3246 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3247 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3249 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3250 * include/cni.h (JvMalloc, JvFree): New inline functions.
3251 (JvThrow): Add __noreturn__ attribute.
3252 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3253 (_Jv_Throw): Add __noreturn__ attribute.
3255 * java/net/PlainSocketImpl.java: Init fnum to -1.
3256 * java/net/ServerSocket.java: Add missing throws clauses.
3257 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3258 don't call create on the latter. Instead, other constructors
3259 have to explicitly call SocketImpl.create.
3260 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3261 from size_t to int, to match ::accept prototype.
3262 * java/net/natInetAddress.cc: Use JvFree rather than free.
3265 1999-02-22 Tom Tromey <tromey@cygnus.com>
3267 * include/javaprims.h: Added new classes.
3268 * java/text/StringCharacterIterator.java: New file.
3269 * java/text/CharacterIterator.java: New file.
3271 * java/text/ParseException.java (errorOffset): Now private.
3273 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3275 * java/net: New package.
3276 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3277 Socket.java,SocketException.java,SocketImpl.java,
3278 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3279 natPlainSocketImpl.cc}: New classes.
3281 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3282 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3283 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3284 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3286 * classes.pl: Translate package into "namespace", not "class".
3287 * include/javaprims.h: Update class list, using "namespace".
3289 1999-02-21 Tom Tromey <tromey@cygnus.com>
3291 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3292 Define when appropriate.
3294 1999-02-20 Tom Tromey <tromey@cygnus.com>
3296 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3297 as a single byte and \u07ff as two bytes.
3298 (_Jv_GetStringUTFLength): Likewise.
3299 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3300 with 0x0f, not 0x1f.
3302 1999-02-19 Tom Tromey <tromey@cygnus.com>
3304 * java/io/DataOutputStream.java (writeUTF): When encoding
3305 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3306 * java/io/DataInputStream.java (readUTF): Mask second byte of
3307 3-byte character with 0x3f, not 0x1f.
3309 * java/io/DataInputStream.java (readLong): Cast result of
3310 readUnsignedByte to long before using.
3312 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3315 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3316 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3317 argument to avoid warning.
3318 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3319 argument to avoid warning.
3321 1999-02-18 Tom Tromey <tromey@cygnus.com>
3323 * mauve-libjava: Omit java.io.DataInputOutput and
3324 java.io.Utf8Encoding.
3326 1999-02-17 Tom Tromey <tromey@cygnus.com>
3328 * Makefile.in: Rebuilt.
3329 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3330 * java/io/natFileDescriptorPosix.cc: Include
3331 InterruptedIOException.h, Thread.h.
3332 (write): Throw InterruptedIOException when required.
3334 * posix-threads.cc: Include <signal.h>.
3335 (_Jv_ThreadInterrupt): New function.
3337 (handle_intr): New function.
3338 (_Jv_InitThreads): Register handle_intr via sigaction.
3339 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3340 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3341 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3342 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3344 1999-02-19 Andrew Haley <aph@cygnus.com>
3346 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3348 (ThreadGroup (int)): Set the maximum priority of the initial
3351 1999-02-18 Andrew Haley <aph@cygnus.com>
3353 * java/lang/natClass.cc (forName): Check for the case where a
3354 classname is the name of an array and call FindClassFromSignature
3357 1999-02-18 Andrew Haley <aph@cygnus.com>
3359 * java/lang/StringBuffer (insert (int, String)): Move up any
3360 characters above the insert position and increase the length of
3361 the string buffer by the length of the argument.
3362 (insert (int, char[])): Likewise.
3363 (insert (int, char)): Likewise.
3364 (StringBuffer (String)): The initial capacity of the string buffer
3365 is 16 plus the length of the argument.
3366 (getChars): Add a JDK 1.2 FIXME.
3368 1999-02-18 Andrew Haley <aph@cygnus.com>
3370 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3373 1999-02-18 Andrew Haley <aph@cygnus.com>
3375 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3376 instead of floating-point equality. This is necessary for
3377 correct floating-point Hashtables.
3378 * java/lang/Float.java (equals): Ditto.
3380 1999-02-16 Tom Tromey <tromey@cygnus.com>
3382 * java/util/Properties.java (list): Truncate value to 37
3383 characters and add "...".
3385 1999-02-16 Tom Tromey <tromey@cygnus.com>
3387 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3388 if initCap is negative.
3389 (contains): Implement JDK1.2-style handling of null argument.
3390 (removeElement): Likewise.
3391 (indexOf): Likewise. Also, correctly handle case where idx is
3393 (lastIndexOf): Likewise.
3395 1999-02-16 Tom Tromey <tromey@cygnus.com>
3397 * java/lang/natString.cc (init): Increment source pointer in
3400 1999-02-16 Tom Tromey <tromey@cygnus.com>
3402 * exception.cc: Include NullPointerException.h.
3403 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3405 1999-02-16 Tom Tromey <tromey@cygnus.com>
3407 * Makefile.in: Rebuilt.
3408 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3410 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3412 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3413 we're compiling canadian.
3414 * configure: Regenerated.
3416 1999-02-12 Andrew Haley <aph@cygnus.com>
3418 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3419 deleted from libgcj.
3421 1999-02-12 Tom Tromey <tromey@cygnus.com>
3423 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3424 (_Jv_eh_free): Don't call free.
3425 Don't declare malloc or free.
3427 1999-02-11 Tom Tromey <tromey@cygnus.com>
3429 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3431 1999-02-11 Andrew Haley <aph@cygnus.com>
3433 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3434 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3435 needed by java.lang.*.
3436 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3437 wf_fmod.o: Removed from libjava.a.
3439 1999-02-11 Tom Tromey <tromey@cygnus.com>
3441 * include/javaprims.h: Reverted previous change; with it
3442 exception.cc can't compile.
3444 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3446 * include/config.h.in: Rebuilt.
3447 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3449 * configure: Rebuilt.
3450 * configure.in: Check for sched_yield. Look in thread library for
3451 all thread functions.
3453 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3454 no recursive mutexes.
3455 (_Jv_MutexDestroy): Define when required.
3456 (_Jv_MutexLock): Likewise.
3457 (_Jv_MutexUnlock): Likewise.
3458 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3459 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3460 (_Jv_Mutex_t): New structure.
3461 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3462 (_Jv_MutexLock): Likewise.
3463 (_Jv_MutexUnlock): Likewise.
3465 1999-02-10 Tom Tromey <tromey@cygnus.com>
3467 * aclocal.m4, configure, Makefile.in: Rebuilt.
3468 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3470 * configure.in: Changed to track library changes.
3471 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3472 (AM_CXXFLAGS): Likewise.
3473 (data_DATA): Likewise.
3474 (AM_CFLAGS): Likewise.
3475 (JC1FLAGS): Likewise.
3476 (libgcj_a_SOURCES): Likewise.
3477 (EXTRA_libgcj_a_SOURCES): Likewise.
3478 (libgcj_a_DEPENDENCIES): Likewise.
3479 (libgcj_a_LIBADD): Likewise.
3480 (libgcj.zip): Likewise.
3481 (CLEANFILES): Likewise.
3482 ($(nat_headers)): Likewise.
3483 (java/lang/FirstThread.h): Likewise.
3484 (java/lang/ThreadGroup.h): Likewise.
3485 (java/lang/String.h): Likewise.
3486 (java/lang/reflect/Field.h): Likewise.
3487 (BUILT_SOURCES): Likewise.
3488 (maintainer-check): Likewise.
3489 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3490 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3492 * java/util/natGregorianCalendar.cc (computeFields): Only use
3493 gmtime_r and localtime_r when configured for posix threads.
3495 * java/io/natFile.cc (get_entry): Only use readdir_r when
3496 configured for posix threads.
3498 * java/util/natGregorianCalendar.cc: Update copyright notice.
3499 * java/util/TimeZone.java: Ditto.
3500 * java/util/SimpleTimeZone.java: Ditto.
3502 1999-02-08 Tom Tromey <tromey@cygnus.com>
3504 * java/io/PrintStream.java (line_separator): New constant.
3505 (print): Use line_separator, not `file.separator' property.
3506 (println): Use line_separator.
3508 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3509 when trying to instantiate Class.
3511 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3512 NullPointerException if argument is null.
3514 * java/lang/Thread.java (setName): Throw NullPointerException, not
3515 IllegalArgumentException.
3518 1999-02-08 Andrew Haley <aph@cygnus.com>
3520 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3521 create new Classes with Class.newInstance().
3523 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3524 semiciolon to end of an array Class's signature if the elements of
3525 the array aren't themselves arrays.
3527 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3528 array of objects is always sizeof(jobject), not the size of the
3529 object to which the reference points.
3531 1999-02-08 Tom Tromey <tromey@cygnus.com>
3533 * java/util/BitSet.java (and): Throw NullPointerException when
3538 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3539 if argument is negative.
3540 (clear): Correctly compute `offset'. Throw
3541 IndexOutOfBoundsException when required.
3543 (get): Likewise. Also, return correct value.
3544 (ensure): Changed meaning of argument.
3545 (toString): Wrap contents in `{}'; put spaces after commas.
3546 (hashCode): Don't try to examine elements off the end of array.
3547 (or): Correctly include bits past the end of this bit set.
3550 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3552 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3553 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3555 1999-02-04 Andrew Haley <aph@cygnus.com>
3557 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3558 '/' in signatures to '.'
3559 (Class::getName): Likewise,
3560 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3562 * java/lang/natFirstThread.cc (run): Change '/' in main's
3565 1999-02-03 Andrew Haley <aph@cygnus.com>
3567 * configure.host: -ffloat-store added when compiling libjava on
3568 x86. fdlibm apparently relies on this.
3570 * java/lang/ThreadGroup.java (add): throw an exception if the
3571 ThreadGroup has been destroyed.
3573 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3576 1999-01-27 Tom Tromey <tromey@cygnus.com>
3578 * java/lang/StringBuffer.java (StringBuffer): Handle null
3581 1999-01-21 Tom Tromey <tromey@cygnus.com>
3583 * java/lang/natFirstThread.cc (run): Don't require main to be
3586 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3588 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3590 1999-01-20 Tom Tromey <tromey@cygnus.com>
3592 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3596 (unintern): Likewise.
3597 (_Jv_NewStringUtf8Const): Likewise.
3599 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3600 Character.isLetter, to see if character is self-quoting. Also,
3601 correctly handle quoted characters.
3602 (parse): Fixed typo. Also now throws ParseException.
3604 1999-01-15 Tom Tromey <tromey@cygnus.com>
3606 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3608 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3609 _Jv_SyncInfo has `init' member.
3611 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3614 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3615 IllegalMonitorStateException if unlock fails.
3617 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3619 (_Jv_NewObjectArray): Likewise.
3621 1999-01-14 Tom Tromey <tromey@cygnus.com>
3623 * java/lang/Character.java (isJavaIdentifierPart): Allow
3624 LETTER_NUMBER characters.
3626 * chartables.pl (process_char): Fixed error messages.
3628 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3629 * chartables.pl: Updated comments. Changed detection of non-digit
3630 numeric values (no longer miss \u00b2 and friends).
3632 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3633 currency symbols and connector punctuation.
3634 (isIdentifierIgnorable): Make 7f-9f ignorable.
3636 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3637 (_Jv_NewPrimArray): Likewise.
3638 (SIZE_T_MAX): New define.
3640 * java/lang/ClassLoader.java (system): Now private and final.
3642 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3645 * configure: Rebuilt.
3646 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3648 * exception.cc: Include gansidecl.h.
3650 1999-01-14 Andrew Haley <aph@cygnus.com>
3652 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3653 corrected: they didn't treat -0.0 and NaNs correctly.
3655 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3657 * nogc.cc: Use calloc to zero out memory.
3659 1999-01-11 Tom Tromey <tromey@cygnus.com>
3661 * java/lang/natClass.cc (isInstance): Return false if this class
3662 is primitive, not if class of `obj' is primitive.
3663 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3665 * java/io/SequenceInputStream.java (close): Handle case where `in'
3668 * java/text/DateFormat.java (format): New method.
3670 * mauve-libjava: Omit java.text.DateFormat.
3672 1999-01-08 Tom Tromey <tromey@cygnus.com>
3674 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3676 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3678 (_Jv_CondNotifyAll): Likewise.
3680 * configure: Rebuilt.
3681 * configure.in: Change --enable-source-compilation logic to work
3684 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3686 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3687 and RUNTESTFLAGS from AM_MAKEFLAGS.
3688 * configure.in: AM_RUNTESTFLAGS added.
3689 * configure.host: AM_RUNTESTFLAGS added.
3690 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3691 * configure: rebuilt.
3692 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3694 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3695 argv[] made conditional because embedded targets may not have
3697 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3698 explanatory comments added in call to super.
3700 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3701 exception thrown in the test harness itself added.
3702 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3704 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3706 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3708 1999-01-06 Tom Tromey <tromey@cygnus.com>
3710 * java/io/natFile.cc (get_entry): New function.
3711 (performList): Use get_entry.
3712 * include/config.h.in: Rebuilt.
3713 * acconfig.h (HAVE_READDIR_R): New define.
3714 * configure: Rebuilt.
3715 * configure.in: Look for readdir_r.
3717 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3719 * java/util/natDate.cc: Added copyright header.
3721 1999-01-05 Tom Tromey <tromey@cygnus.com>
3723 * include/config.h.in: Rebuilt.
3724 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3725 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3726 * configure: Rebuilt.
3727 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3728 unlink, and realpath.
3729 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3730 (stat): Conditionalize on HAVE_STAT.
3732 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3733 (performMkdir): Conditionalize on HAVE_MKDIR.
3734 (performRenameTo): Conditionalize on HAVE_RENAME.
3735 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3737 * include/config.h.in: Rebuilt.
3738 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3739 * configure: Rebuilt.
3740 * configure.in: Check for gmtime_r and localtime_r. For cross
3741 builds, assume they exist.
3743 * mauve-libjava: Include java.text.DateFormatSymbols again.
3744 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3745 from setAmPmStrings.
3747 * mauve-libjava: Omit java.text.DateFormatSymbols.
3749 1999-01-04 Tom Tromey <tromey@cygnus.com>
3751 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3753 * java/io/LineNumberReader.java (read): Decrement `count' in
3756 * java/io/BufferedWriter.java (write): Correctly determine when
3757 incoming data would overrun buffer. Flush buffer if write causes
3760 * java/io/BufferedOutputStream.java (write): Increment `count'
3761 after copying data into buffer.
3763 * java/io/FilterOutputStream.java (close): Call flush first.
3765 * java/io/PipedReader.java (read): If read causes `out' to catch
3766 up with `in', then set `in' to -1.
3768 * java/io/LineNumberInputStream.java (read): If no bytes read,
3769 return -1. If no bytes requested, return 0.
3771 * java/lang/StringBuffer.java (insert): If `str' is null, use
3774 1998-12-30 Anthony Green <green@cygnus.com>
3777 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3779 1998-12-23 Tom Tromey <tromey@cygnus.com>
3781 * java/io/PushbackInputStream.java (read): `off' already includes
3784 1998-12-17 Tom Tromey <tromey@cygnus.com>
3786 * Makefile.in: Rebuilt.
3787 * Makefile.am (GCJ_canadian): Include target_alias.
3789 * java/lang/natFirstThread.cc (run): Require main's class to be
3792 1998-12-16 Tom Tromey <tromey@cygnus.com>
3794 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3796 * java/util/ResourceBundle.java (getBundle): Throw
3797 NullPointerException if locale argument is null.
3799 * java/lang/natClass.cc (forName): Throw NullPointerException if
3801 Include NullPointerException.h.
3803 1998-12-14 Tom Tromey <tromey@cygnus.com>
3805 * java/lang/Character.java (Character): Implement Comparable.
3806 (compareTo): New methods.
3808 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3809 correct country and language codes.
3810 (UK, US): New constants.
3811 (setDefault): Language codes are lower-case.
3813 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3814 (getDeclaredConstructors): Likewise.
3815 (getDeclaredField): Likewise.
3816 (getDeclaredFields): Likewise.
3817 (getDeclaredMethod): Likewise.
3818 (getDeclaredMethods): Likewise.
3819 (getField): Likewise.
3820 (getFields): Likewise.
3821 (getMethod): Likewise.
3822 (getMethods): Likewise.
3823 * java/lang/Class.java: Declare new methods.
3824 * java/lang/Class.h: Declare new methods.
3826 * java/lang/natString.cc: Removed `#pragma implementation'.
3827 * include/cni.h (_Jv_GetStringChars): New function.
3828 * Makefile.in: Rebuilt.
3829 * Makefile.am (java/lang/String.h): Don't generate definition for
3832 * java/lang/natString.cc: Added `#pragma implementation'.
3834 * Makefile.in: Rebuilt.
3835 * Makefile.am (libjava.zip): Put build directory first in class
3836 path to avoid bug in compiler.
3838 1998-12-14 Anthony Green <green@cygnus.com>
3840 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3842 * include/javaprims.h: Add EventObject, ListResourceBundle and
3845 1998-12-13 Anthony Green <green@cygnus.com>
3847 * mauve-libjava: Run the ResourceBundle tests.
3849 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3852 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3854 * configure.in, configure: Make --enable-gcj-classes and
3855 --enable-source-compilation the default. (Nervously...) Yeah!
3856 Based on a patch from Tom Tromey.
3858 1998-12-13 Tom Tromey <tromey@cygnus.com>
3860 * java/util/EventObject.java: New file.
3861 * java/util/EventListener.java: New file.
3863 * include/javaprims.h: Updated class declarations.
3864 * Makefile.in: Rebuilt.
3865 * Makefile.am (nat_headers): Added Constructor.h.
3866 (java/lang/String.h): Don't inline String::length().
3867 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3868 * java/lang/Class.java (initializeClass, hackRunInitializers,
3869 hackTrampoline): No need to mark `final'.
3870 (getConstructor, getConstructors): Declare.
3871 * java/lang/reflect/Field.java (equals): New method.
3872 * java/lang/natClass.cc (getConstructor): New method.
3873 (getConstructors): Likewise.
3874 Include Method.h, Field.h, Constructor.h.
3875 * java/lang/reflect/Constructor.java: New file.
3876 * java/lang/reflect/Method.java (toString): No space before open
3878 (equals): Simplified.
3880 1998-12-13 Anthony Green <green@cygnus.com>
3882 * java/util/ResourceBundle.java: New file.
3883 * java/util/ListResourceBundle.java: New file.
3885 1998-12-12 Tom Tromey <tromey@cygnus.com>
3887 * java/lang/System.java (in, out, err): Now buffered streams by
3890 * include/javaprims.h: Updated class declarations.
3891 * Makefile.in: Rebuilt.
3892 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3893 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3895 (nat_files): Added natMethod.o.
3896 * java/lang/reflect/natMethod.cc: New file.
3897 * java/lang/reflect/Field.java (Field): Now extends
3899 * java/lang/reflect/AccessibleObject.java: New file.
3900 * java/lang/reflect/InvocationTargetException.java: New file.
3902 1998-12-11 Tom Tromey <tromey@cygnus.com>
3904 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3905 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3906 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3908 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3910 1998-12-09 Tom Tromey <tromey@cygnus.com>
3912 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3915 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3916 character is already titlecase.
3918 * java/lang/Character.java (isJavaLetter): Follow spec.
3919 (isJavaLetterOrDigit): Likewise.
3921 * java/util/GregorianCalendar.java (gregorianCutover): Append
3924 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3926 1998-12-08 Tom Tromey <tromey@cygnus.com>
3928 * java/lang/reflect/Modifier.java (toString): Replace second
3929 `static' with `synchronized'.
3931 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3932 * java/lang/Object.h (Object::hack12_6): Declare.
3933 * java/lang/Object.java (hack12_6): New function.
3935 1998-12-07 Tom Tromey <tromey@cygnus.com>
3937 * include/java-array.h (__JArray::clone): Removed decl.
3938 * prims.cc (__JArray::clone): Removed.
3939 * java/lang/natObject.cc (clone): Incorporate code to clone an
3942 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3943 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3944 Correctly use dtable_method_count.
3946 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3948 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3951 1998-12-06 Anthony Green <green@cygnus.com>
3953 * mauve-libjava: Don't test ResourceBundle.
3955 1998-12-04 Tom Tromey <tromey@cygnus.com>
3957 More JDK 1.2 spec fixes:
3958 * java/util/Date.java (millis): Now private.
3959 * java/text/DateFormat.java (DateFormat): Constructor now
3961 * java/lang/Void.java (Void): New private constructor.
3962 * java/lang/System.java (System): New private constructor.
3963 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3965 (currentClassLoader): New method.
3966 (currentLoadedClass): New method.
3967 * java/lang/Math.java (Math): New private constructor.
3968 * java/lang/Compiler.java (Compiler): New private constructor.
3969 * java/lang/Class.java (Class): New private constructor.
3970 * java/lang/Double.java (toString): Removed access specifier from
3971 two-argument `toString' method.
3973 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3975 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3976 causes it to be flushed from an fp register (where it may be
3977 longer than double precision) to a double in memory. This is
3978 essential to ensure correct rounding behaviour.
3980 1998-12-04 Tom Tromey <tromey@cygnus.com>
3982 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3985 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3986 explaining apparent divergence from JDK 1.2.
3988 1998-12-04 Per Bothner <bothner@cygnus.com>
3990 * include/no-threads.h: Remove unused parameter names.
3991 This silences a bunch of warnings.
3993 1998-12-04 Tom Tromey <tromey@cygnus.com>
3995 * include/config.h.in: Rebuilt.
3996 * acconfig.h (HAVE_CTIME_R): New symbol.
3998 1998-12-03 Tom Tromey <tromey@cygnus.com>
4000 * mauve-libjava: Added many more categories to reject.
4002 Changes to follow JDK1.2 spec:
4003 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4004 setErr, setIn, setOut): No need to be `final'.
4005 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4006 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4007 * java/lang/Object.java (wait): `nanos' argument is an int.
4008 * java/lang/VirtualMachineError.java: Class is abstract.
4009 * java/lang/ThreadDeath.java: Made constructors public.
4010 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4013 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4015 * java/text/DateFormatSymbols.java (getAmPmStrings,
4016 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4018 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4020 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4021 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4022 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4025 * java/lang/IllegalThreadStateException.java
4026 (IllegalThreadStateException): Changed extending class to match spec.
4028 * java/lang/NumberFormatException.java
4029 (java/lang/NumberFormatException): Changed extending class to match
4032 * java/util/Observer.java (Observer): Changed sig to match JCL.
4034 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4036 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4037 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4038 signature to match JDK 1.1 and 1.2.
4040 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4042 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4043 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4044 * Makefile.in, configure: Rebuilt.
4046 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4049 1998-12-02 Tom Tromey <tromey@cygnus.com>
4051 * mauve-libjava: New file.
4053 The remaining `-W -Wall' fixes:
4054 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4056 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4058 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4060 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4062 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4064 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4066 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4068 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4070 * java/lang/mprec.c (Balloc): Removed unused variable.
4071 (mult): Added parentheses per gcc suggestion.
4072 (pow5mult): Likewise.
4077 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4078 suggestion. Added cast to `int' to avoid signed/unsigned
4080 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4082 (IsAssignableFrom): Likewise.
4083 (_Jv_JNI_GetObjectField): Likewise.
4084 (_Jv_JNI_GetByteField): Likewise.
4085 (_Jv_JNI_GetShortField): Likewise.
4086 (_Jv_JNI_GetIntField): Likewise.
4087 (_Jv_JNI_GetLongField): Likewise.
4088 (_Jv_JNI_GetStringLength): Likewise.
4089 (_Jv_JNI_ToReflectedField): Likewise.
4090 (_Jv_JNI_FromReflectedField): Likewise.
4091 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4093 * Makefile.in: Rebuilt.
4094 * Makefile.am (AM_CFLAGS): Define conditionally.
4095 (WARNINGS): New macro.
4096 (AM_CXXFLAGS): Include WARNINGS.
4097 * configure: Rebuilt.
4098 * configure.in (USING_GCC): New conditional.
4100 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4102 * java/lang/Character.java: Changed classification constants to
4103 type `byte' to match JDK 1.2 docs.
4105 1998-12-01 Tom Tromey <tromey@cygnus.com>
4107 Some fixes to be `-W -Wall' clean:
4108 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4109 (_Jv_MarkArray): Likewise.
4110 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4111 (to_upper_title): Likewise.
4112 (isTitleCase): Likewise.
4113 (toTitleCase): Likewise.
4114 (getNumericValue): Likewise.
4115 (isLowerCase): Likewise.
4116 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4117 (avoids compiler warning).
4118 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4120 (getDeclaringClass): Likewise.
4121 (_Jv_LookupInterfaceMethod): Likewise.
4122 (_Jv_NewClass): Removed name of unused parameter.
4123 * exception.cc (_Jv_type_matcher): Removed unused variable.
4124 (_Jv_setup_eh_info): Removed name of unused parameter.
4125 * prims.cc (_Jv_NewArray): Always return a value.
4126 (_Jv_FindClassFromSignature): Likewise.
4127 * include/java-field.h (getNameUtf8Const): Removed name of unused
4129 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4131 (_Jv_ThreadSetPriority): Likewise.
4133 * java/lang/natString.cc (hashChars): Now static.
4135 * java/lang/FirstThread.java (FirstThread): Now final.
4137 * java/io/File.java (performMkdir, performRenameTo): Now private.
4139 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4140 if no time function defined.
4142 * configure: Rebuilt.
4143 * configure.in: Look for ctime_r, ctime.
4144 * java/util/Date.java (toString): Now native.
4145 * java/util/natDate.cc (toString): Rewrote.
4147 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4149 * Add LDFLAGS line to allow TX39 test cases to link when cross
4152 1998-11-23 Anthony Green <green@cygnus.com>
4154 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4155 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4156 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4157 include/java-array.h, include/java-assert.h, include/java-field.h,
4158 include/javaprims.h, include/jni.h, include/jvm.h,
4159 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4160 include/quick-threads.h, java/io/BufferedInputStream.java,
4161 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4162 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4163 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4164 java/io/CharArrayWriter.java,
4165 java/io/CharConversionException.java, java/io/DataInput.java,
4166 java/io/DataInputStream.java, java/io/DataOutput.java,
4167 java/io/DataOutputStream.java, java/io/EOFException.java,
4168 java/io/File.java, java/io/FileDescriptor.java,
4169 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4170 java/io/FileOutputStream.java, java/io/FileReader.java,
4171 java/io/FileWriter.java, java/io/FilenameFilter.java,
4172 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4173 java/io/FilterReader.java, java/io/FilterWriter.java,
4174 java/io/IOException.java, java/io/InputStream.java,
4175 java/io/InputStreamReader.java,
4176 java/io/InterruptedIOException.java,
4177 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4178 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4179 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4180 java/io/PipedReader.java, java/io/PipedWriter.java,
4181 java/io/PrintStream.java, java/io/PrintWriter.java,
4182 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4183 java/io/RandomAccessFile.java, java/io/Reader.java,
4184 java/io/SequenceInputStream.java, java/io/Serializable.java,
4185 java/io/StreamTokenizer.java,
4186 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4187 java/io/StringWriter.java, java/io/SyncFailedException.java,
4188 java/io/UTFDataFormatException.java,
4189 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4190 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4191 java/io/natFileDescriptorPosix.cc,
4192 java/lang/AbstractMethodError.java,
4193 java/lang/ArithmeticException.java,
4194 java/lang/ArrayIndexOutOfBoundsException.java,
4195 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4196 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4197 java/lang/Class.java, java/lang/ClassCastException.java,
4198 java/lang/ClassCircularityError.java,
4199 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4200 java/lang/ClassNotFoundException.java,
4201 java/lang/CloneNotSupportedException.java,
4202 java/lang/Cloneable.java, java/lang/Comparable.java,
4203 java/lang/Compiler.java, java/lang/Double.java,
4204 java/lang/Error.java, java/lang/Exception.java,
4205 java/lang/ExceptionInInitializerError.java,
4206 java/lang/FirstThread.java, java/lang/Float.java,
4207 java/lang/IllegalAccessError.java,
4208 java/lang/IllegalAccessException.java,
4209 java/lang/IllegalArgumentException.java,
4210 java/lang/IllegalMonitorStateException.java,
4211 java/lang/IllegalStateException.java,
4212 java/lang/IllegalThreadStateException.java,
4213 java/lang/IncompatibleClassChangeError.java,
4214 java/lang/IndexOutOfBoundsException.java,
4215 java/lang/InstantiationError.java,
4216 java/lang/InstantiationException.java, java/lang/Integer.java,
4217 java/lang/InternalError.java, java/lang/InterruptedException.java,
4218 java/lang/LinkageError.java, java/lang/Long.java,
4219 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4220 java/lang/NoClassDefFoundError.java,
4221 java/lang/NoSuchFieldError.java,
4222 java/lang/NoSuchFieldException.java,
4223 java/lang/NoSuchMethodError.java,
4224 java/lang/NoSuchMethodException.java,
4225 java/lang/NullPointerException.java, java/lang/Number.java,
4226 java/lang/NumberFormatException.java, java/lang/Object.h,
4227 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4228 java/lang/Process.java, java/lang/Runnable.java,
4229 java/lang/Runtime.java, java/lang/RuntimeException.java,
4230 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4231 java/lang/Short.java, java/lang/StackOverflowError.java,
4232 java/lang/String.java, java/lang/StringBuffer.java,
4233 java/lang/StringIndexOutOfBoundsException.java,
4234 java/lang/System.java, java/lang/Thread.java,
4235 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4236 java/lang/Throwable.java, java/lang/UnknownError.java,
4237 java/lang/UnsatisfiedLinkError.java,
4238 java/lang/UnsupportedOperationException.java,
4239 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4240 java/lang/Void.java, java/lang/natCharacter.cc,
4241 java/lang/natClass.cc, java/lang/natDouble.cc,
4242 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4243 java/lang/natMath.cc, java/lang/natObject.cc,
4244 java/lang/natRuntime.cc, java/lang/natString.cc,
4245 java/lang/natSystem.cc, java/lang/natThread.cc,
4246 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4247 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4248 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4249 java/text/FieldPosition.java, java/text/Format.java,
4250 java/text/NumberFormat.java, java/text/ParseException.java,
4251 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4252 java/util/BitSet.java, java/util/Calendar.java,
4253 java/util/ConcurrentModificationException.java,
4254 java/util/Date.java, java/util/Dictionary.java,
4255 java/util/EmptyStackException.java, java/util/Enumeration.java,
4256 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4257 java/util/Locale.java, java/util/MissingResourceException.java,
4258 java/util/NoSuchElementException.java, java/util/Observable.java,
4259 java/util/Observer.java, java/util/Properties.java,
4260 java/util/Random.java, java/util/SimpleTimeZone.java,
4261 java/util/Stack.java, java/util/StringTokenizer.java,
4262 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4263 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4266 * exception.cc: Include eh-common.h instead of duplicating
4269 1998-11-23 Tom Tromey <tromey@cygnus.com>
4271 * configure.host: Don't add `-O2' to libjava_flags. Only add
4272 `-Os' to libjava_flags once.
4274 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4276 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4277 * Makefile.in: likewise
4278 * acconfig.h: add ECOS conditional for configure.h
4279 * config.h.in: likewise
4280 * configure: add test for --with-ecos
4281 * configure.in: likewise
4282 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4283 rename call to avoid name clash.
4284 * java/lang/natSystem.cc: add eCos clock support.
4285 * java/util/natGregorianCalendar.cc: add eCos support.
4287 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4289 * Makefile.am, Makefile.in, configure.host: tx39 build option
4292 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4294 * java/io/BufferedReader.java: Added more comments for clarity.
4295 (mark): Used more mnemonic name for local var extraBuffSpace.
4297 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4298 confusion with private method of same name in superclass.
4299 (skipRedundantLF): Set fields in special case to avoid infinite
4300 recursion. Check if markPos has been invalidated in special case.
4301 (readLine): Rewritten to use readLine method of superclass.
4302 (skip): Incorporated code from lineEnd.
4304 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4306 * java/io/BufferedReader.java (readLine): New method.
4307 (lineEnd): new private method.
4308 (mark): Track special case for readLine of getting '\r' at the
4315 * java/io/InputStreamReader.java (read): Return number chars skipped
4316 rather than requested.
4318 * java/lang/StringBuffer.java (append): Update count and differentiate
4319 between field and local variable.
4321 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4322 seconds. Deal with military style time.
4323 (parse): Consistently treat all timezones in minutes until final
4324 calculation. Flag as non-local timezone. Return value in milliseconds.
4325 (setTime): Adjust for year offset from 1900.
4326 (UTC): Adjust for year offset from 1900.
4328 1998-11-17 Tom Tromey <tromey@cygnus.com>
4330 * configure: Rebuilt.
4331 * configure.in: Switch on host, not target.
4333 * Makefile.in: Rebuilt.
4334 * Makefile.am (GCJ_no): New macro.
4335 (GCJ): Use @CANADIAN@.
4336 (GCJH_no): New macro
4337 (GCJH_canadian): New macro.
4338 (GCJH): Use @CANADIAN@.
4339 (ZIP_no): New macro.
4340 (ZIP_canadian): New macro.
4341 (ZIP): Use @CANADIAN@.
4342 * aclocal.m4, configure: Rebuilt.
4343 * configure.in (CANADIAN): Compute and subst.
4345 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4347 * java/io/FileDescriptor.java (finalize): Only close file
4348 descriptor if valid.
4350 1998-11-17 Tom Tromey <tromey@cygnus.com>
4352 * prims.cc (_Jv_InitRuntime): Removed.
4354 1998-11-16 Tom Tromey <tromey@cygnus.com>
4356 * java/io/FileOutputStream.java (close): Only close file
4357 descriptor if valid.
4358 (finalize): New method.
4360 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4361 (_Jv_NewPrimArray): Likewise.
4362 * boehm.cc (_Jv_RegisterFinalizer): Use
4363 GC_REGISTER_FINALIZER_NO_ORDER.
4364 (GC_GENERIC_MALLOC): New define.
4365 (_Jv_AllocObj): Use it.
4366 (_Jv_AllocArray): Likewise.
4367 (_Jv_AllocBytes): Likewise.
4368 (_Jv_MarkObj): Just return if vtbl not set.
4369 (_Jv_MarkArray): Likewise.
4370 (MAYBE_MARK): New macro; use everywhere.
4371 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4373 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4375 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4376 to a jlong before calculation to prevent overflow.
4378 1998-11-16 Tom Tromey <tromey@cygnus.com>
4380 * Makefile.in: Rebuilt.
4381 * Makefile.am (nat_headers): Fixed typo.
4383 1998-11-15 Tom Tromey <tromey@cygnus.com>
4385 * java/lang/Class.h (Class::getName): Removed definition.
4386 * Makefile.in: Rebuilt.
4387 * Makefile.am (nat_headers): Added InstantiationException.h,
4388 NoSuchMethodException.h.
4389 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4390 (init_name): New global.
4391 (hackRunInitializers): Use clinit_name.
4392 Include InstantiationException.h, NoSuchMethodException.h.
4393 (newInstance): Do some error checking (but not all). Call
4395 (forName): Throw exception if class not found.
4396 (getName): New method.
4397 (forName): Transform class name from external format to internal
4398 format before lookup.
4400 1998-11-15 Anthony Green <green@cygnus.com>
4402 * java/lang/Class.h (Class::forName): Method is static.
4404 * java/lang/natClass.cc (newInstance): Add simple implementation.
4407 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4409 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4410 int), for compatibility with jc1.
4412 1998-11-14 Tom Tromey <tromey@cygnus.com>
4414 * include/config.h.in: Rebuilt.
4415 * acconfig.h (LINUX_THREADS): New define.
4416 * configure: Rebuilt.
4417 * configure.in: Define LINUX_THREADS if using POSIX threads on
4418 Linux. Look for pthread_mutexattr_setkind_np function.
4419 * posix-threads.cc (throw_cleanup): New function.
4420 (really_start): Push cleanup function.
4421 (_Jv_ThreadCancel): New function.
4422 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4423 (_Jv_ThreadInitData): Set `exception' field in new structure.
4424 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4426 (_Jv_ThreadWait): New function.
4427 (_Jv_InitThreads): Initialize daemon globals.
4428 (FLAG_DAEMON): New macro.
4429 (really_start): Notify daemon_cond when non-daemon thread exits.
4430 Include <java/lang/System.h>.
4431 (struct starter): `object' field now a thread.
4432 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4433 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4434 (_Jv_ThreadWait): Removed definition.
4435 (_Jv_Thread_t): Added `exception' field.
4436 (_Jv_ThreadCancel): Removed definition.
4438 1998-11-13 Tom Tromey <tromey@cygnus.com>
4440 * Makefile.in: Rebuilt.
4441 * Makefile.am (libjava.zip): Compute javac before changing
4444 * Makefile.in: Rebuilt.
4445 * Makefile.am (libjava.zip): Include directory entries.
4447 * Makefile.in: Rebuilt.
4448 * Makefile.am (expanded): New macro.
4451 1998-11-12 Tom Tromey <tromey@cygnus.com>
4453 * prims.cc (clone): New function.
4454 * include/java-array.h (__JArray::clone): Removed definition.
4456 * java/lang/natObject.cc (clone): Don't assert that class is not
4457 an array; array's `clone' method just calls this one.
4459 * Makefile.in: Rebuilt.
4460 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4461 Now creates zip file. Changed all users.
4463 (data_DATA): New macro.
4465 1998-11-11 Tom Tromey <tromey@cygnus.com>
4467 * configure: Rebuilt.
4468 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4470 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4472 * java/io/InputStream.java (reset): Add msg to thrown exception.
4474 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4476 * java/io/LineNumberInputStream.java: Rewritten.
4478 * java/io/StringBufferInputStream.java: Removed extraneous import.
4480 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4482 * java/io/StringBufferInputStream.java: Rewritten.
4484 * java/util/Date.java (parseMonth): Optimize.
4485 (parseDayOfWeek): Created.
4486 (parse): Optimize to use parseDayOfWeek.
4488 1998-11-11 Tom Tromey <tromey@cygnus.com>
4490 * java/lang/StringBuffer.java (append): Handle case where STR is
4493 * include/javaprims.h: Regenerated class declarations.
4495 * configure: Rebuilt.
4496 * configure.in: Added --enable-gcj-classes,
4497 --enable-single-compilation, --enable-source-compilation flags.
4498 * Makefile.in: Rebuilt.
4499 * Makefile.am (java_io_files): New macro.
4500 (java_lang_files): Likewise.
4501 (java_text_files): Likewise.
4502 (java_util_files): Likewise.
4503 (java_files): Use new macros.
4504 (java-io.o): New target.
4505 (java-lang.o): Likewise.
4506 (java-text.o): Likewise.
4507 (java-util.o): Likewise.
4508 (src_io_files): New macro.
4509 (src_lang_files): Likewise.
4510 (src_text_files): Likewise.
4511 (src_util_files): Likewise.
4512 (class_io_files): New macro.
4513 (class_lang_files): Likewise.
4514 (class_text_files): Likewise.
4515 (class_util_files): Likewise.
4516 (class_files): Use new macros.
4517 (javao_files): Define conditionally.
4518 (.java.o): New target.
4519 ($(javao_files)): New target.
4521 (GCJH): Added $(EXEEXT).
4522 (CLASSPATH_ENV): Removed.
4523 (GCJCOMPILE): New macro.
4525 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4527 * java/util/Date.java (parse): Written from scratch.
4529 1998-11-11 Tom Tromey <tromey@cygnus.com>
4531 * java/lang/Throwable.java (toString): Correct sense of test for
4532 determining when to include detail message in result.
4534 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4537 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4539 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4541 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4542 (_Jv_RegisterClass): Use it.
4543 * include/jvm.h (_Jv_RegisterClasses): Declare.
4544 * java/lang/natObject.cc (init): Removed.
4545 (sync_init): Never call _Jv_InitializeSyncMutex.
4546 (_Jv_InitializeSyncMutex): Don't set `init'.
4547 * prims.cc (JvRunMain): Don't run init functions.
4549 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4551 * java/lang/natClass.cc (initializeClass): Set state before
4552 resolving constants.
4554 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4555 (STATE_RESOLVED): New macro.
4556 (initializeClass): Call resolveConstants.
4557 (hackRunInitializers): Don't call resolveConstants.
4558 (_Jv_FindArrayClass): Move short-circuit return for primitive
4559 element types earlier in function.
4561 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4563 * prims.cc (no_memory): New global.
4564 (_Jv_makeUtf8Const): Throw no_memory.
4565 (_Jv_AllocObject): Likewise.
4566 (_Jv_NewObjectArray): Likewise.
4567 (_Jv_NewPrimArray): Likewise.
4568 (JvRunMain): Initialize no_memory.
4570 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4572 * java/io/FileInputStream.java: Corrected date comment.
4573 * java/io/SequenceInputStream.java: Rewritten.
4575 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4577 * java/lang/FirstThread.java (die): New method.
4578 * java/lang/natFirstThread.cc (die): Removed.
4580 (run): Use `DIE', not `die'.
4582 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4584 * java/io/CharArrayReader.java (read): Move check into synchronized
4585 block to prevent a close while in progress.
4588 * java/io/PushbackReader.java (read): Ditto.
4591 * java/io/StringReader.java (mark): Ditto.
4596 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4598 * java/io/PipedInputStream.java: Updated status.
4599 (connect): Added code to prevent infinite recursion and to
4600 differentiate exception causes.
4601 (read): Added code to differentiate exception causes.
4602 (receive): Made exception pass string with the cause.
4604 * java/io/PipedOutputStream.java: Updated status.
4605 (connect): Added code to call connect at the other end of the pipe.
4607 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4609 * java/io/PipedInputStream.java (connect): Throw exception if
4610 already connected to the same output stream.
4611 (read): Do bounds checking first.
4613 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4615 * java/io/PipedInputStream.java: Added private boolean outClosed.
4616 (available): Removed check if output stream is open.
4617 (close): Mark the buffer as empty so available returns 0.
4618 (read): Check if the output stream was closed and then return EOF
4619 when the buffer is empty.
4620 (receive): Mark the output stream as closed when passed a -1.
4622 * java/io/PipedOutputStream.java (close): Notify the input stream
4623 that there's no more data coming.
4624 (connect): Added a FIXME comment to note more coordination needed
4625 with PipedInputStream.
4626 (flush): Added a FIXME comment to mark what this method might do
4629 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4631 * java/io/PipedInputStream.java: Rewritten.
4633 1998-10-30 Tom Tromey <tromey@cygnus.com>
4635 * java/lang/Throwable.java: Rewrote from scratch.
4637 * java/lang/Class.h (Class): Don't mention newMultiArray.
4638 * prims.cc (newMultiArray): Removed.
4639 (_Jv_NewMultiArray): Removed.
4640 (newArray): Removed.
4641 (new_multi_array): New function.
4642 (_Jv_NewMultiArray): Rewrote from scratch.
4644 * include/javaprims.h: Regenerated class declarations.
4645 * classes.pl (scan): Don't declare PrimClass.
4646 * include/cni.h (JvPrimClass): Use new names for classes.
4647 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4648 added _Jv_PrimClass.
4649 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4650 (_Jv_initPrimClass): Removed.
4651 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4652 (_Jv_AllocObject): Added comment.
4653 (_Jv_NewObjectArray): Likewise.
4654 (_Jv_NewPrimArray): Likewise.
4656 1998-10-29 Tom Tromey <tromey@cygnus.com>
4658 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4659 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4661 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4663 * java/lang/natObject.cc (init): New global.
4664 (sync_init): Call _Jv_InitializeSyncMutex if required.
4666 * Makefile.in: Rebuilt.
4667 * Makefile.am (nat_headers): Added ClassLoader.h.
4668 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4669 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4670 internalAddClass, lookupArray no longer friends.
4671 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4672 _Jv_FindArrayClass now friends.
4673 * java/lang/natClass.cc (HASH_LEN): New macro.
4674 (HASH_UTF): Likewise.
4675 (loaded_classes): New global.
4676 (_Jv_FindClass): New function.
4677 (ClassClass): New define.
4678 (_Jv_FindClassInCache): New function.
4679 (_Jv_RegisterClass): Likewise.
4680 (_Jv_NewClass): Likewise.
4682 (ObjectClass): New define.
4683 (CloneableClass): New define.
4684 * prims.cc (_Jv_FindClass): Removed.
4685 (simpleLookupClass): Removed.
4686 (insertClass): Removed.
4687 (CLASSHASHSZ): Removed.
4688 (classPool): Removed.
4689 (_Jv_RegisterClass): Removed.
4690 (internalAddClass): Removed.
4691 (ClassClass): Removed.
4692 (RuntimeClass): Removed.
4693 (lookupArray): Removed.
4694 (CloneableClass): Removed.
4695 (CLASSMAXSIG): Removed.
4696 Rearranged file to group related functions together.
4697 (_Jv_IsInstanceOf): Moved to natClass.cc.
4698 (abort_final): Removed.
4699 Removed some unused includes.
4700 (classFromSig): Removed.
4701 (_Jv_FindClassFromSignature): New function.
4702 (_Jv_initPrimClass): Renamed.
4703 (getClass): Removed.
4705 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4707 * java/io/FileDescriptor.java (finalize): Throws IOException
4708 instead of Throwable.
4710 * java/io/FileInputStream.java: Rewritten.
4712 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4713 at the end of a comment.
4715 1998-10-29 Tom Tromey <tromey@cygnus.com>
4717 * include/javaprims.h: Regenerated class declarations.
4718 * classes.pl (scan): Don't special-case ClassLoader.
4720 * prims.cc (processClass): Removed.
4721 (_Jv_InitClass): Removed.
4722 Removed all CSTATE_ macros.
4723 (resolveConstants): Removed.
4725 (_Jv_NewMultiArray): Cleaned up.
4726 * Makefile.in: Rebuilt.
4727 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4728 * java/lang/Class.h (Class): Declare new methods. processClass no
4730 * java/lang/Class.java (hackTrampoline): New method.
4731 (initializeClass): Declare.
4732 (hackRunInitializers): Declare.
4733 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4734 (initializeClass): New method.
4735 (hackRunInitializers): New method.
4736 (init_name, void_signature): Moved from prims.cc.
4737 (_Jv_InitClass): New function.
4738 (isAssignableFrom): Don't call processClass.
4739 (STATE_NOTHING): New macro.
4740 (resolveConstants): New function.
4742 (ErrorClass): New define.
4744 * java/lang/Class.java (getClassLoader): Declare.
4745 * java/lang/ClassLoader.java: Rewrote from scratch.
4747 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4748 AbstractMethodError.h, IllegalAccessError.h,
4749 NoClassDefFoundError.h.
4750 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4751 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4752 longer static. Changed return type.
4753 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4754 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4755 * prims.cc (findMethodLocal): Removed.
4756 (processClass): Use _Jv_GetMethodLocal.
4758 1998-10-28 Tom Tromey <tromey@cygnus.com>
4760 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4761 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4763 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4764 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4766 * include/jni.h: Added copyright header.
4767 * include/javaprims.h: Added copyright header.
4768 * include/java-field.h: Added copyright header.
4769 * include/java-array.h: Added copyright header.
4770 * include/cni.h: Added copyright header.
4772 * include/javaprims.h: Regenerated class declarations using
4773 classes.pl; now they are complete.
4774 * classes.pl: New file.
4776 * java/lang/natMath.cc: Include <config.h>.
4777 * java/lang/reflect/natField.cc: Include <config.h>.
4778 * java/util/NativeUtil.java: Removed.
4779 * Makefile.in: Rebuilt.
4780 * Makefile.am (nat_headers): Added Math.h.
4781 * java/lang/Math.h: Removed.
4782 * java/util/natGregorianCalendar.cc: Added copyright header.
4784 * java/lang/natFloat.cc: Added copyright header.
4785 * java/lang/Byte.java: Added copyright header.
4786 * java/lang/Void.java: Added copyright header.
4787 * java/lang/Short.java: Added copyright header.
4789 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4791 * include/javaprims.h (java::io): Added bunch of missing classes.
4793 * java/io/DataInputStream.java (readLine): Added a special case
4794 for handling BufferedInputStream data to reduce the likelihood
4795 of a pushback error.
4796 (skipBytes): Added code to handle negative number of skip bytes.
4798 * java/io/StreamTokenizer.java: Rewritten.
4800 1998-10-28 Tom Tromey <tromey@cygnus.com>
4802 * java/util/natGregorianCalendar.cc (computeFields): Call
4803 getRawOffset as a method.
4805 * include/javaprims.h (java::io): Added FilterOutputStream.
4806 * Makefile.in: Rebuilt.
4807 * Makefile.am (nat_headers): Added PrintStream.h,
4808 FilterOutputStream.h.
4809 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4811 (die): New function.
4812 (run): Die if `main' not found, is not public, or is not static.
4814 * boehm.cc (_Jv_MarkObj): Use new field names.
4815 * include/java-field.h (JvGetFirstInstanceField): Use new field
4817 (JvNumInstanceFields): Likewise.
4818 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4819 (getInterfaces): Likewise.
4820 * prims.cc (CLASS_CONSTANTS): Removed.
4821 (CLASS_CONST_SIZE): Likewise.
4822 (CLASS_CONST_TAG): Likewise.
4823 (CLASS_CONST_DATA): Likewise.
4824 (CLASS_CONST_UTF8): Likewise.
4825 (WORD2UTF): Likewise.
4826 (CLASS_CLASS): Likewise.
4827 (CLASS_PRIM_SIG): Likewise.
4828 (CLASS_ARRAY_CACHE): Likewise.
4829 (HASH_CHARS): Likewise.
4830 (hashClassName): Likewise.
4831 Many changes to use new field names.
4832 * java/lang/Class.h (Class): Renamed fields to track compiler.
4834 1998-10-27 Tom Tromey <tromey@cygnus.com>
4836 * java/lang/natClass.cc: Use #pragma implementation.
4837 (getComponentType): Moved into header.
4838 (getModifiers): Likewise.
4839 (getName): Likewise.
4840 (getSuperclass): Likewise.
4841 (isArray): Likewise.
4842 (isPrimitive): Likewise.
4843 * include/jvm.h (_Jv_FindClass): Declare.
4844 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4845 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4846 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4847 * java/lang/Class.h: Rewrote from scratch.
4848 * prims.cc: Many changes to work with new Class.h.
4849 * include/java-field.h (CLASS_FIELDS): Removed.
4850 (CLASS_SFIELDS): Likewise.
4851 (CLASS_IFIELDS): Likewise.
4852 (CLASS_NFIELDS): Likewise.
4853 (CLASS_NIFIELDS): Likewise.
4854 (CLASS_NSFIELDS): Likewise.
4855 (CLASS_FSIZE): Likewise.
4856 (JvGetFirstInstanceField): Rewrote.
4857 (JvNumInstanceFields): Likewise.
4859 * java/lang/Object.h: Added copyright comment.
4861 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4863 * java/text: New package directory.
4864 * java/text/FieldPosition.java: New class.
4865 * java/text/ParsePosition.java: New class.
4866 * java/text/ParseException.java: New Exception class.
4867 * java/text/Format.java: New class.
4868 * java/text/NumberFormat.java: New (empty placeholder) class.
4869 * java/text/DateFormatSymbols.java: New class (no Locales support).
4870 * java/text/DateFormat.java: New Format class (incomplete).
4871 * java/text/SimpleDateFormat.java: New DateFormat class.
4873 * include/javaprims.h (java::test): Added new package and classes.
4874 * java/util/Calendar.java (clone): New method.
4875 * java/util/Date.java (toString): Added non-native implementation.
4876 (parse): Made public instead of synchronized.
4877 * java/util/natDate.cc (toString): Removed.
4878 * java/util/natGregorianCalendar.cc (computeFields):
4879 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4881 1998-10-27 Tom Tromey <tromey@cygnus.com>
4883 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4885 * prims.cc (lookupArray): Added explanatory comment.
4886 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4887 class. Mark the class of each object.
4888 (_Jv_MarkArray): Mark the object's class.
4890 * configure: Rebuilt.
4891 * configure.in: Create java-gc.h.
4892 * include/boehm-gc.h: New file.
4893 * include/no-gc.h: New file.
4894 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4896 * java/lang/Object.h: Include java-gc.h.
4897 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4898 friends, if defined.
4899 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4901 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4903 1998-10-26 Tom Tromey <tromey@cygnus.com>
4905 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4906 paragraph separators, not numbers.
4908 * java/io/Writer.java (write): Removed write(char) to avoid
4910 * java/util/Properties.java: Rewrote from scratch.
4911 * include/javaprims.h (java::io): Added PrintWriter,
4912 BufferedWriter, PushbackReader.
4914 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4916 * java/lang/System.java: exit() is a static method.
4918 1998-10-26 Tom Tromey <tromey@cygnus.com>
4920 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4922 (_Jv_NewStringUtf8Const): Likewise.
4923 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4924 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4926 * java/lang/Object.h (Object): Add mark_array as friend function.
4927 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4928 _Jv_AllocBytes, to ensure that header is marked.
4929 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4931 (mark_array): Push sync_info field for array.
4933 1998-10-24 Tom Tromey <tromey@cygnus.com>
4935 * java/lang/String.java (String): Updated for StringBuffer
4937 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4939 * java/lang/StringBuffer.java: Renamed fields to conform to
4940 serialization spec: buffer->value, next->count, copy->shared.
4942 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4944 * java/util/TimeZone.java: New class.
4945 * java/util/SimpleTimeZone.java: New class.
4946 * java/util/Locale.java: New file.
4947 * java/util/Calendar.java: Make almost complete.
4948 * java/util/GregorianCalendar.java
4949 * java/util/natGregorianCalendar.cc: New file.
4950 * java/util/Date.java: Re-written from scratch.
4951 * java/util/natDate.cc (setTime): Removed - no longer native.
4952 * include/javaprims.h (java::util): Add new classes.
4953 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4954 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4956 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4958 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4959 returning it as a jint.
4961 1998-10-23 Tom Tromey <tromey@cygnus.com>
4963 * prims.cc (arg_vec, main_group, main_thread): New globals.
4964 (JvRunMain): Use them.
4966 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4968 * java/io/DataInputStream.java: Rewritten.
4970 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4971 tertiary bytes with 0x80 per spec.
4973 1998-10-23 Tom Tromey <tromey@cygnus.com>
4975 * java/lang/String.java (init): Changed name of `copy' argument.
4976 * java/lang/natString.cc (init): Inverted sense of `copy'
4979 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4980 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4981 * boehm.cc (ObjectClass): New define.
4982 (ClassClass): Likewise.
4983 (mark_obj): Special-case Object and Class.
4985 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4987 * java/util/BitSet.java: Rewrote from scratch.
4989 * prims.cc (lookupArray): Removed useless cast.
4991 * java/lang/natObject.cc: Use `#pragma implementation'.
4993 * java/lang/String.java (init): Added `copy' argument.
4994 (String): Look in StringBuffer to find char array.
4995 * java/lang/natString.cc (init): Added `copy' argument.
4996 * java/lang/StringBuffer.java: Rewrote from scratch.
4998 * java/lang/Compiler.java: Rewrote from scratch.
4999 * java/lang/Throwable.java: Don't use NativeLang.
5000 * include/javaprims.h (java::lang): Don't mention NativeLang.
5001 * java/lang/Process.java: Rewrote from scratch.
5002 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5004 (currentClassLoader): Likewise.
5005 (currentLoadedClass): Likewise.
5006 * java/lang/natClass.cc (getClassLoader): Commented out.
5007 * java/lang/Class.java (getClassLoader): Commented out.
5008 * java/lang/Compiler.java: Removed.
5009 * java/lang/NativeLang.java: Removed.
5011 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5012 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5013 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5014 (_Jv_hashUtf8String): Now static.
5015 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5016 name of return type.
5018 * java/lang/Class.h (Class): Declare checkMemberAccess.
5019 * Makefile.in: Rebuilt.
5020 * Makefile.am (nat_headers): Added Member.h.
5021 * java/lang/natClass.cc: Include Member.h.
5022 (getDeclaredClasses): Call checkMemberAccess.
5023 * java/lang/Class.java (checkMemberAccess): Call
5024 SecurityManager.checkMemberAccess.
5026 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5028 * java/lang/SecurityManager.java: Rewritten.
5030 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5032 * java/applet/Applet.java, java/applet/AppletContext.java,
5033 java/applet/AppletStub.java, java/applet/AudioClip.java,
5034 java/awt/AWTError.java, java/awt/AWTException.java,
5035 java/awt/BorderLayout.java, java/awt/Button.java,
5036 java/awt/Canvas.java, java/awt/CardLayout.java,
5037 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5038 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5039 java/awt/Color.java, java/awt/Component.java,
5040 java/awt/Container.java, java/awt/Dialog.java,
5041 java/awt/Dimension.java, java/awt/Event.java,
5042 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5043 java/awt/Font.java, java/awt/FontMetrics.java,
5044 java/awt/Frame.java, java/awt/Graphics.java,
5045 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5046 java/awt/GridLayout.java, java/awt/Image.java,
5047 java/awt/Insets.java, java/awt/Label.java,
5048 java/awt/LayoutManager.java, java/awt/List.java,
5049 java/awt/MediaTracker.java, java/awt/Menu.java,
5050 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5051 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5052 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5053 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5054 java/awt/TextArea.java, java/awt/TextComponent.java,
5055 java/awt/TextField.java, java/awt/Toolkit.java,
5056 java/awt/Window.java, java/awt/image/ColorModel.java,
5057 java/awt/image/CropImageFilter.java,
5058 java/awt/image/DirectColorModel.java,
5059 java/awt/image/FilteredImageSource.java,
5060 java/awt/image/ImageConsumer.java,
5061 java/awt/image/ImageFilter.java,
5062 java/awt/image/ImageObserver.java,
5063 java/awt/image/ImageProducer.java,
5064 java/awt/image/IndexColorModel.java,
5065 java/awt/image/MemoryImageSource.java,
5066 java/awt/image/PixelGrabber.java,
5067 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5068 java/awt/peer/CanvasPeer.java,
5069 java/awt/peer/CheckboxMenuItemPeer.java,
5070 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5071 java/awt/peer/ComponentPeer.java,
5072 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5073 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5074 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5075 java/awt/peer/MenuBarPeer.java,
5076 java/awt/peer/MenuComponentPeer.java,
5077 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5078 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5079 java/awt/peer/TextAreaPeer.java,
5080 java/awt/peer/TextComponentPeer.java,
5081 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5082 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5083 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5084 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5085 java/net/MalformedURLException.java, java/net/NativeNet.java,
5086 java/net/ProtocolException.java, java/net/ServerSocket.java,
5087 java/net/Socket.java, java/net/SocketException.java,
5088 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5089 java/net/URL.java, java/net/URLConnection.java,
5090 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5091 java/net/URLStreamHandlerFactory.java,
5092 java/net/UnknownHostException.java,
5093 java/net/UnknownServiceException.java: Removed.
5095 1998-10-22 Tom Tromey <tromey@cygnus.com>
5097 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5098 finalizer is not Object.finalize.
5099 (internalAddClass): Don't set `final' member of class.
5100 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5101 other places that know about finalize() location.
5102 * java/lang/Class.h (Class): Removed `final' field.
5104 * aclocal.m4, configure: Rebuilt.
5105 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5106 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5108 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5109 * Makefile.in: Rebuilt.
5110 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5112 1998-10-21 Tom Tromey <tromey@cygnus.com>
5114 * java/lang/Object.java (finalize): Move to be first method in
5117 * configure: Rebuilt.
5118 * configure.in (GCINCS): Include contents of boehm-cflags file.
5120 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5122 * java/lang/ArrayIndexOutOfBoundsException.java
5123 (ArrayIndexOutOfBoundsException): Fixed string literal.
5124 * java/lang/StringIndexOutOfBoundsException.java
5125 (StringIndexOutOfBoundsException): Fixed string literal.
5127 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5129 * natFileDescriptorEcos.cc added.
5130 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5132 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5134 * acconfig.h: test for __int32_t and __uint32_t added.
5135 * include/config.h.in: test for __int32_t and __uint32_t added.
5136 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5137 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5138 * configure.in: test for __int32_t and __uint32_t added.
5139 * configure: test for __int32_t and __uint32_t added.
5141 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5143 * configure.in: Test for --enable ecos and link
5144 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5145 natFileDescriptorPosix.cc
5147 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5149 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5151 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5154 * java/io/CharArrayReader.java (close): Synchronize on lock
5155 object per Reader contract.
5156 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5157 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5158 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5159 Ensure that arg passed in isn't negative.
5161 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5162 constructing the superclass.
5164 * java/io/PushbackReader.java (close): Synchronize on lock
5165 object per Reader contract.
5166 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5167 (ready): Synchronize on lock obj. Throw IOException if reader
5169 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5170 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5171 Ensure that arg passed in isn't negative.
5172 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5174 * java/io/StringReader.java: Created.
5176 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5178 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5180 (read): Removed synchronized modifier to match JCL.
5181 (reset): Removed synchronized modifier to match JCL.
5182 (skip): Removed synchronized modifier to match JCL.
5184 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5186 * java/io/PushbackReader.java (PushbackReader): Made
5187 constructors public.
5189 1998-10-17 Tom Tromey <tromey@cygnus.com>
5191 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5192 constructors public.
5194 1998-10-16 Anthony Green <green@cygnus.com>
5196 * aclocal.m4, configure: Rebuilt.
5197 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5199 * configure.host: Rewrote.
5200 * Makefile.in: Rebuilt.
5201 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5202 (AM_CFLAGS): New macro.
5203 ($(c_files)): Use COMPILE macro.
5204 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5205 automake problem(s).
5207 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5209 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5211 * java/io/CharArrayReader.java: Created.
5213 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5215 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5216 size check to allow 0 per JCL.
5218 * java/io/PushbackReader.java: Created.
5220 1998-10-16 Tom Tromey <tromey@cygnus.com>
5222 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5223 <sys/time.h> includes.
5224 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5225 * include/no-threads.h: Conditionalize <unistd.h> include on
5228 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5230 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5233 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5235 * java/io/FilterReader.java: Created.
5237 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5239 * java/io/PushbackInputStream.java: Rewritten.
5241 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5242 that size passed to constructor is legal.
5243 (read): Check that args passed in are legal.
5244 (skip): Rewritten to get rid of the temporary buffer.
5245 (refill): Added marklimit check to grow the buffer.
5247 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5249 (bytesAvail): Removed.
5250 (read): Changed bytesAvail to Math.min.
5251 (skip): Changed bytesAvail to Math.min.
5253 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5254 from the throws clause.
5255 (skip): Rewritten to use a temporary buffer.
5257 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5259 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5262 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5264 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5265 to write the double one word at a time.
5267 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5269 * java/io/BufferedInputStream.java: Rewritten.
5271 1998-10-12 Tom Tromey <tromey@cygnus.com>
5273 * jni.cc: Include config.h and stddef.h.
5275 * java/lang/Class.h (_dispatchTable): Removed again.
5276 Removed all ACC_* defines again.
5278 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5280 * Makefile.am (nat_files): Add netField.o.
5281 (libjava_a_SOURCES): Add jni.cc.
5282 (java/lang/reflect/Field.h): New rule.
5283 * Makefile.in: Re-generated.
5284 * include/javaprims.h: Add some extra class and typedefs.
5285 * include/jni.h: New file.
5288 * include/java-field.h: New file.
5289 * include/jvm.h: #include <java-field.h>.
5290 * boehm.cc: #include <java-field.h>.
5291 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5292 * java/lang/reflect/Member.java: New class.
5293 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5294 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5296 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5298 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5299 testsuite/Makefile.in: Rebuilt.
5300 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5301 * configure.host: Created.
5303 1998-10-10 Tom Tromey <tromey@cygnus.com>
5305 * java/lang/natObject.cc (sync_init): Always allocate a new
5308 1998-10-09 Tom Tromey <tromey@cygnus.com>
5310 * java/io/ByteArrayInputStream.java (mark): Renamed from
5313 * java/io/FileOutputStream.java (finalize): Removed.
5314 * java/io/FileDescriptor.java (finalize): New method.
5316 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5318 * ByteArrayInputStream.java: Corrected status comment.
5320 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5322 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5324 1998-10-08 Tom Tromey <tromey@cygnus.com>
5326 * prims.cc (lookupArray): Use static array to initialize list of
5329 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5331 * prims.cc (lookupArray): Initialize the msize for new
5334 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5336 * configure: Rebuilt.
5337 * configure.in: Check for fsync and sleep.
5338 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5340 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5341 HAVE_SLEEP. Include config.h.
5343 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5344 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5347 1998-10-08 Tom Tromey <tromey@cygnus.com>
5349 * java/io/natFile.cc: Don't include SecurityManager.h.
5350 (performList): Renamed.
5351 (performMkdir): Likewise.
5352 (performRenameTo): Likewise.
5353 (performDelete): Likewise.
5355 * java/io/File.java (performDelete): Renamed from natDelete.
5356 (list): Now written in Java.
5357 (performList): New method.
5358 (performMkdir): New method.
5359 (mkdir): Now written in Java.
5360 (performRenameTo): New method.
5361 (renameTo): Now written in Java.
5363 1998-10-06 Tom Tromey <tromey@cygnus.com>
5365 * Makefile.in: Rebuilt.
5366 * Makefile.am (ETAGS_ARGS): New macro.
5367 (TAGS_DEPENDENCIES): Likewise.
5369 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5371 * Makefile.in: Rebuilt.
5372 * Makefile.am: Use -classpath option with javac.
5374 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5376 * java/io/FileOutputStream.java (finalize): Call
5379 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5381 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5383 * java/lang/mprec.c: Ditto.
5385 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5388 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5390 * java/io/InputStream.java (skip): Make local var i a long.
5392 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5394 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5395 * prims.cc (lookupArray): Use memcpy, not memmove.
5396 * include/config.h.in: Rebuilt.
5397 * acconfig.h (HAVE_MEMCPY): Added.
5398 * configure: Rebuilt.
5399 * configure.in: Check for memcpy again.
5401 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5402 String.compareTo, not ==.
5404 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5405 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5406 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5407 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5408 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5409 into new array's dtable.
5410 (_Jv_AllocObject): Use _Jv_DispatchTable.
5411 (_Jv_NewPrimArray): Likewise.
5412 (_Jv_NewObjectArray): Likewise.
5414 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5416 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5417 offending index value.
5418 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5420 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5421 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5423 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5425 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5427 * java/io/OutputStream.java (write): Use off and len parameters to
5428 output partial byte array.
5430 * java/io/BufferedReader.java, java/io/FileReader.java,
5431 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5432 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5433 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5434 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5436 * include/javaprims.h (java::lang): Added
5437 ExceptionInInitializerError, IllegalStateException,
5438 NoSuchFieldException, and UnsupportedOperationException.
5440 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5442 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5445 * include/java-array.h (__JArray): Added clone method.
5446 * prims.cc (CloneableClass): New define.
5447 (lookupArray): Initialize array class to indicate that it
5448 implements Cloneable.
5450 * java/lang/Class.h: Removed all ACC_* defines.
5451 * prims.cc: Include Modifier.h.
5452 (_Jv_LookupInterfaceMethod): Use methods in
5453 java.lang.reflect.Modifier, not ACC_ defines.
5455 * java/lang/Class.h (Class): Declare getClasses,
5456 getDeclaredClasses, getDeclaringClass, getModifiers,
5457 * java/lang/Class.java: Rewrote from scratch.
5459 * include/javaprims.h (java::lang): Added reflect and
5461 * Makefile.in: Rebuilt.
5462 * Makefile.am (nat_headers): Added Modifier.h.
5464 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5467 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5469 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5470 instead of test and abort.
5472 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5473 remove compiler warning.
5475 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5477 * java/lang/natDouble.cc: zero terminate string.
5478 * strtod.c: Set errno if no digits are found in fraction.
5480 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5482 * java/lang/reflect/Modifier.java: New file.
5484 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5485 * java/lang/VerifyError.java: Rewrote from scratch.
5486 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5487 * java/lang/UnknownError.java: Rewrote from scratch.
5488 * java/lang/StackOverflowError.java: Rewrote from scratch.
5489 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5490 * java/lang/InternalError.java: Rewrote from scratch.
5491 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5492 * java/lang/ExceptionInInitializerError.java: New file.
5493 * java/lang/Error.java: Rewrote from scratch.
5494 * java/lang/ClassFormatError.java: Rewrote from scratch.
5495 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5496 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5497 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5498 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5499 * java/lang/LinkageError.java: Rewrote from scratch.
5500 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5502 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5504 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5505 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5507 * include/cni.h (JvAllocObject): Moved from prims.cc.
5509 * prims.cc (JvAllocObject): Moved to cni.h.
5510 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5511 (finalize_name): Removed.
5513 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5515 * java/lang/Class.h (Class): Added size() method.
5516 * prims.cc (_Jv_MonitorEnter): Removed.
5517 (_Jv_MonitorExit): Removed.
5518 * java/lang/Object.h (JvSyncInfo): Removed.
5519 * Makefile.in: Rebuilt.
5520 * Makefile.am (nat_headers): Added Cloneable.h,
5521 CloneNotSupportedException.h.
5522 * java/lang/Object.h: Rewrote.
5523 * java/lang/natObject.cc: Rewrote from scratch.
5524 * java/lang/Object.java: Rewrote from scratch.
5526 * java/io/natFile.cc: Conditionally include <dirent.h>.
5527 (list): If no <dirent.h>, always return NULL.
5528 * configure: Rebuilt.
5529 * configure.in: Check for dirent.h.
5531 * prims.cc (lookupArray): Don't use sprintf.
5533 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5540 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5541 name conflict with method.
5543 * include/javaprims.h (java::util): Added HashtableEntry.
5545 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5547 * java/util/Hashtable.java: Rewritten.
5549 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5551 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5555 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5558 * posix-threads.cc (_Jv_CondWait): Now returns int.
5559 * include/javaprims.h (java::lang): Added
5560 IllegalMonitorStateException.
5561 * Makefile.in: Rebuilt.
5562 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5563 * include/no-threads.h (_Jv_CondDestroy): Removed.
5564 (_Jv_MutexDestroy): Removed.
5565 (_Jv_CondWait): Now returns int.
5566 (_Jv_CondNotify): Likewise. Added mutex argument.
5567 (_Jv_CondNotifyAll): Likewise.
5568 (_Jv_MutexLock): Always succeed.
5569 (_Jv_MutexUnlock): Likewise.
5570 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5571 (_Jv_HaveMutexDestroy): Define.
5572 (_Jv_CondNotify): Now returns int. Added mutex argument.
5573 (_Jv_CondNotifyAll): Likewise.
5574 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5575 (_Jv_MutexDestroy): Removed.
5576 (_Jv_CondWait): Now returns int.
5577 (_Jv_CondNotify): Likewise. Added mutex argument.
5578 (_Jv_CondNotifyAll): Likewise.
5579 * java/lang/natObject.cc (finalize_sync_info): New function.
5580 (init_mutex): Initialize `init' and register finalizer if
5583 (init_mutex): Use it.
5585 (notifyAll): Use it.
5587 (notify): Throw IllegalMonitorStateException on failure.
5588 (notifyAll): Likewise.
5589 (wait): Likewise. Also, throw InterruptedException if
5591 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5592 InterruptedException.h, IllegalArgumentException.h.
5593 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5595 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5596 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5597 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5598 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5599 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5600 * quick-threads.cc: Renamed all `JvPriv' functions.
5601 * prims.cc: Renamed all `JvPriv' functions.
5602 * posix-threads.cc: Renamed all `JvPriv' functions.
5603 * nogc.cc: Renamed all `JvPriv' functions.
5604 * no-threads.cc: Renamed all `JvPriv' functions.
5605 * boehm.cc: Renamed all `JvPriv' functions.
5606 * include/quick-threads.h: Renamed all `JvPriv' functions.
5607 * include/posix-threads.h: Renamed all `JvPriv' functions.
5608 * include/no-threads.h: Renamed all `JvPriv' functions.
5609 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5611 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5613 (JvPrivCondNotify): Do nothing.
5614 (JvPrivCondNotifyAll): Do nothing.
5616 * prims.cc (processClass): Handle case where state is
5619 * java/lang/natFirstThread.cc: Include <stdlib.h>
5621 * configure: Rebuilt.
5622 * configure.in: Fixed sense of --enable-libjava-debug.
5624 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5625 it can be used afterward by the assertion.
5627 * configure: Rebuilt.
5628 * configure.in: When cross-compiling, assume alloca.
5630 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5631 __builtin_alloca (autoconf docs are wrong here).
5633 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5635 (available): Use `FD_ZERO' (typo fix).
5637 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5639 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5640 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5642 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5643 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5646 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5648 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5650 * java/lang/natDouble.cc: Declare alloca safely.
5652 * configure, include/config.h.in: Rebuilt.
5653 * configure.in: Add alloca check.
5655 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5657 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5658 condition while calling notify.
5659 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5660 (interrupt): Hold mutex for interrupt condition while calling
5663 * java/lang/natString.cc (init): Allocate and try to read `count'
5664 characters, not `count - offset' characters.
5666 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5667 Correctly compute `count'.
5669 * java/lang/Boolean.java (getBoolean): Return false if property
5672 * java/lang/System.java (setProperties): Set prop_init.
5674 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5676 * java/io/PrintStream.java (println): Use line.separator, not
5678 * java/lang/System.java (out, err): Make both autoflush streams.
5679 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5681 * include/config.h.in: Rebuilt.
5682 * acconfig.h (HAVE_MEMCPY): Removed.
5683 * configure: Rebuilt.
5684 * configure.in: Never define HAVE_MEMCPY.
5686 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5688 (_Jv_AllocString): Use JvAllocObject again.
5689 * java/lang/Class.h (thread): New field.
5690 (_Jv_AllocString): No longer a friend.
5691 * prims.cc (processClass): Removed dead code. Changed to more
5692 closely follow the Java Language Specification.
5693 (processClass): Return early if already at the right state.
5695 * prims.cc (JvNewStringUTF): Removed.
5696 * include/cni.h (JvNewStringUTF): New function.
5697 (_Jv_NewStringUTF): Declare as `extern "C"'.
5698 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5700 * java/lang/natDouble.cc: Added copyright info and header
5701 comment. Include <stdlib.h>.
5702 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5703 bytes as are chars in string.
5705 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5707 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5711 * java/lang/System.java (init_properties): Now native.
5712 * java/lang/natSystem.cc (init_properties): New method.
5713 Include java/util/Properties.h.
5715 * Makefile.in: Rebuilt.
5716 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5717 OutputStreamWriter.h, ByteArrayInputStream.h,
5718 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5719 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5720 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5721 Properties.h, Hashtable.h, Dictionary.h.
5724 * include/javaprims.h (java::io): Added Reader, Writer,
5725 InputStreamReader, OutputStreamWriter,
5726 UnsupportedEncodingException, ByteArrayInputStream,
5727 ByteArrayOutputStream, EOFException, SyncFailedException,
5728 PushbackInputStream.
5729 (java::lang): Added Cloneable.
5730 (java::util): Added NoSuchElementException, VectorEnumeration,
5731 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5733 * java/io/PipedReader.java: New file.
5735 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5737 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5740 * java/io/io-defs.h: Removed.
5742 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5743 (FileInputStream): Use new constructor. Can throw IOException.
5745 * java/lang/System.java (getProperty): Don't throw
5746 NullPointerException.
5748 * java/io/RandomAccessFile.java: Rewrote from scratch.
5750 * java/io/natFileDescriptor.cc: Include EOFException.h.
5752 (length): New method.
5753 (getFilePointer): New method.
5755 (available): New method.
5756 * java/io/FileDescriptor.java (SET, CUR): New constants.
5757 (seek, length, getFilePointer, read, available): New decls.
5759 * java/io/PipedWriter.java: New file.
5760 * java/io/StringWriter.java: New file.
5761 * java/io/CharArrayWriter.java: New file.
5762 * java/io/CharConversionException.java: New file.
5763 * java/io/BufferedWriter.java: New file.
5764 * java/io/FilterWriter.java: New file.
5765 * java/io/FileWriter.java: New file.
5767 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5768 OutputStreamWriter.h, NullPointerException.h,
5769 ByteArrayInputStream.h, InputStreamReader.h.
5770 (getBytes): New method.
5771 (init): Throw NullPointerException.
5772 (init): New function.
5773 * java/lang/String.java (getBytes): Added missing decl.
5774 (getBytes): New method.
5775 (String): Added byte[]-based constructors.
5776 (copyValueOf): Wrote.
5777 (init): Declare variant which takes byte array and encoding.
5778 Import java.io.UnsupportedEncodingException.
5780 * java/io/File.java: Rewrote from scratch.
5781 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5782 * java/io/FileDescriptor.java: Rewrote from scratch.
5783 * java/io/FilenameFilter.java: Rewrote from scratch.
5785 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5787 * java/io/SyncFailedException.java: New file.
5788 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5789 * java/io/InterruptedIOException.java: Rewrote from scratch.
5790 * java/io/FileNotFoundException.java: Rewrote from scratch.
5791 * java/io/EOFException.java: Rewrote from scratch.
5792 * java/io/IOException.java: Rewrote from scratch.
5793 * java/io/PrintStream.java: Rewrote from scratch.
5794 * java/io/DataOutputStream.java: Rewrote from scratch.
5795 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5796 * java/io/FilterOutputStream.java: Rewrote from scratch.
5797 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5798 * java/io/PipedOutputStream.java: Rewrote from scratch.
5799 * java/io/FileOutputStream.java: Rewrote from scratch.
5800 * java/io/OutputStream.java: Rewrote from scratch.
5801 * java/io/DataOutput.java: Rewrote from scratch.
5803 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5805 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5807 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5809 * configure.in: Add --enable-libjava-debug
5811 * Makefile.am (nat_headers): Add java/lang/Float.h and
5814 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5816 * Makefile.in, configure, include/config.h.in: Rebuilt.
5818 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5820 * java/lang/Float.java: Rewritten
5821 * java/lang/Double.java: Rewritten
5822 * java/lang/natFloat.cc: toString() added.
5823 * java/lang/natDouble.cc: toString() added.
5824 * java/lang/natDouble.cc: doubleValueOf() added.
5825 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5826 java/lang/strtod.c: added.
5827 * ieeefp.h: __sparc added.
5828 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5830 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5832 * include/javaprims.h (java::lang): Added
5833 CloneNotSupportedException.
5835 * java/lang/Object.java (clone): No longer native. Implemented.
5836 * java/lang/natObject.cc (clone): Removed.
5838 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5840 * prims.cc: Don't make definitions `extern "C"'.
5841 (_Jv_RegisterClass): Renamed from registerClass.
5842 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5843 (_Jv_NewArray): Likewise.
5844 (_Jv_NewMultiArray): Likewise.
5845 (_Jv_CheckCast): Likewise.
5846 (_Jv_LookupInterfaceMethod): Likewise.
5847 (_Jv_CheckArrayStore): Likewise.
5848 (_Jv_RegisterClass): Likewise.
5850 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5851 * configure: Rebuilt.
5852 * configure.in: Don't check for fmod; it is provided by the fdlibm
5854 * prims.cc (fmod): Removed.
5856 * java/lang/natString.cc (charAt): Use _Jv_uint.
5857 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5858 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5859 (equalUtf8Consts): Likewise.
5860 (internalAddClass): Use _Jv_uint.
5861 (processClass): Likewise.
5862 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5863 (_Jv_uint): Renamed from uint32.
5864 (struct _Jv_Utf8Const): Changed members to use new type names.
5866 * configure: Rebuilt.
5867 * configure.in: Don't check for memcpy. Require memmove and a way
5869 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5871 (currentTimeMillis): Don't use #error.
5873 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5875 * java/lang/Math.java: static member random renamed to random_ to
5876 avoid conflict with member function of the same name.
5877 * include/javaprims.h: java.util.Random added.
5879 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5881 * include/java-chartables.h: Regenerated.
5882 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5885 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5887 * java/lang/Math.java: Rewritten.
5888 * java/lang/natMath.cc: New file.
5889 * Files added from fdlibm:
5890 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5891 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5892 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5893 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5894 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5895 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5896 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5897 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5898 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5899 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5900 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5901 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5902 java/lang/k_cos.c, java/lang/sf_ceil.c,
5903 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5904 java/lang/ieeefp.h, java/lang/fdlibm.h
5905 * Makefile.am: rules added for compiling C files from fdlibm.
5907 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5909 * chartables.pl: Minor documentation fixes.
5911 * configure: Rebuilt.
5912 * configure.in: Fixed --help output for --enable-fast-character.
5914 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5916 * configure: Rebuilt.
5917 * configure.in: Recognize --enable-fast-character.
5918 * acconfig.h (COMPACT_CHARACTER): New define.
5919 * include/config.h.in: Rebuilt.
5920 * include/java-chartables.h: New file.
5921 * Makefile.in: Rebuilt.
5922 * Makefile.am (nat_files): Added natCharacter.o.
5923 * java/lang/natCharacter.cc: New file.
5924 * chartables.pl (set_attribute): New function.
5925 (@attributes, @second_attributes): New globals.
5926 ($ROMAN_START, $ROMAN_END): Likewise.
5927 (process_char): Call set_attribute when required.
5928 (print_char): Just print hex value.
5929 (print_block): Generate C++ syntax.
5930 (print_numerics): Likewise.
5931 (print_single_map): Likewise.
5932 (print_all_block): Likewise.
5933 (print_case_table): Likewise.
5934 (print_fast_tables): New function.
5935 Generate C++ code suitable for a header file.
5936 * java/lang/Character.java (table_search): Removed.
5937 (digit_value): Now native.
5938 (getNumericValue): Likewise.
5939 (getType): Likewise.
5940 Removed all automatically-generated tables.
5941 (Tamil_Digit_One): Removed.
5942 (isSpaceChar): Now native.
5943 (isTitleCase): Likewise.
5944 (isLowerCase): Likewise.
5945 (isUpperCase): Likewise.
5946 (toLowerCase): Likewise.
5947 (toTitleCase): Likewise.
5948 (toUpperCase): Likewise.
5949 (isDefined): Fixed sense of test.
5951 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5953 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5955 (regionMatches): Likewise.
5957 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5959 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5961 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5963 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5966 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5969 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5971 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5973 * prims.cc (instanceof_class): Removed.
5974 (instanceof_array): Likewise.
5975 (instanceof): Likewise.
5976 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5977 (_Jv_CheckCast): Likewise.
5978 * java/lang/natClass.cc (isAssignableFrom): New method.
5979 * java/lang/Class.java (isAssignableFrom): Now native.
5981 * include/cni.h (JvThrow): Use `extern inline'.
5982 (JvAllocObject): Likewise.
5983 (JvInitClass): Likewise.
5985 * java/lang/natSystem.cc (arraycopy): Only check class of source
5988 * prims.cc (_Jv_CheckArrayStore): Wrote.
5989 (_Jv_MonitorEnter): Prefer `JvThrow'.
5990 Include ArrayStoreException.h.
5991 (_Jv_CheckCast): Indentation cleanup.
5993 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5995 * chartables.pl: New file.
5996 * java/lang/Character.java: Rewrote from scratch.
5998 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6000 * java/lang/ArithmeticException.java,
6001 java/lang/ArrayIndexOutOfBoundsException.java,
6002 java/lang/ArrayStoreException.java,
6003 java/lang/ClassCastException.java,
6004 java/lang/ClassNotFoundException.java,
6005 java/lang/CloneNotSupportedException.java,
6006 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6007 java/lang/IllegalArgumentException.java,
6008 java/lang/IllegalMonitorStateException.java,
6009 java/lang/IllegalThreadStateException.java,
6010 java/lang/IndexOutOfBoundsException.java,
6011 java/lang/InstantiationException.java,
6012 java/lang/InterruptedException.java,
6013 java/lang/NegativeArraySizeException.java,
6014 java/lang/NoSuchMethodException.java,
6015 java/lang/NullPointerException.java,
6016 java/lang/NumberFormatException.java,
6017 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6018 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6020 * java/lang/IllegalStateException.java,
6021 java/lang/NoSuchFieldException.java,
6022 java/lang/UnsupportedOperationException.java: Created.
6024 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6026 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6027 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6029 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6031 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6033 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6035 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6037 * Makefile.in: Rebuilt.
6039 * include/javaprims.h (java::lang): Added
6040 StringIndexOutOfBoundsException.
6042 * java/lang/String.java: Added header comment and FIXME comment for
6043 missing constructors/methods.
6044 (endsWith): Adjusted offset into string to look at just the last chars.
6045 Commented out undocumented method.
6047 * java/lang/natString.cc: Added includes for
6048 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6049 (String::init): Throw StringIndexOutOfBoundsException.
6050 (String::charAt): Throw StringIndexOutOfBoundsException.
6051 (String::substring): Throw StringIndexOutOfBoundsException.
6052 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6053 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6054 (String::compareTo): Return difference/offset between chars/strings.
6056 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6058 * java/lang/Boolean.java (TYPE): Added comment.
6060 * java/lang/Byte.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/Short.java (decode): Added - commented out until dependent
6066 code for Integer is written.
6067 (compareTo): JDK 1.2 methods written.
6068 (hashCode): Added comment to note that values have been verified.
6070 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6072 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6074 * include/javaprims.h (java::lang): Added VirtualMachineError,
6076 * Makefile.in: Rebuilt.
6077 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6078 VirtualMachineError.h.
6079 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6080 (lookupArray): Likewise.
6081 (makeUtf8Const): Likewise.
6082 (_Jv_AllocObject): Likewise.
6083 (_Jv_NewObjectArray): Likewise.
6084 Include OutOfMemoryError.h.
6086 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6087 to use JvNewStringLatin1.
6089 * java/io/io-defs.h: Include java/lang/IOException.h.
6090 * Makefile.in: Rebuilt.
6091 * Makefile.am (nat_headers): Added
6092 ArrayIndexOutOfBoundsException.h,
6093 ClassFormatError.h,ClassNotFoundException.h,
6094 ClassCircularityError.h, ClassCastException.h,
6095 IncompatibleClassChangeError.h, AbstractMethodError.h,
6096 IllegalAccessError.h, LinkageError.h, Error.h,
6097 NegativeArraySizeException.h, IOException.h.
6098 * include/cni.h (SignalError): Removed declaration.
6099 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6100 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6101 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6102 (newInstance): Likewise.
6103 (forName): Likewise.
6104 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6106 (read): Use JvThrow, not SignalError.
6111 (open_read): Likewise.
6112 (open_write): Likewise.
6115 (newstr): New function.
6116 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6118 (lastModifiedUnchecked): Likewise.
6119 (lengthUnchecked): Likewise.
6120 * include/javaprims.h (sorry): Removed declaration.
6121 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6122 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6123 ClassCastException, IncompatibleClassChangeError,
6124 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6125 * prims.cc (instanceof_array): Use JvFail, not sorry.
6127 Include ArrayIndexOutOfBoundsException.h,
6128 ClassFormatError.h,ClassNotFoundException.h,
6129 ClassCircularityError.h, ClassCastException.h,
6130 IncompatibleClassChangeError.h, AbstractMethodError.h,
6131 IllegalAccessError.h, NegativeArraySizeException.h.
6132 (_Jv_ThrowBadArrayIndex): Implemented.
6133 (JvNewStringUTF): Use JvFail, not sorry.
6134 (_Jv_FindClass): Likewise.
6135 (_Jv_NewArray): Likewise.
6136 (throwException): Removed.
6137 (getClass): Use JvThrow.
6138 (processClass): Likewise.
6139 (_Jv_NewObjectArray): Likewise.
6140 (_Jv_NewMultiArray): Likewise.
6141 (_Jv_CheckCast): Likewise.
6142 (_Jv_LookupInterfaceMethod): Likewise.
6143 (SignalError): Removed.
6144 (getClass): Use _Jv_NewStringUtf8Const to create String.
6146 * java/lang/natSystem.cc (arraycopy): Throw
6147 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6149 * Makefile.in: Rebuilt.
6150 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6152 * include/java-array.h: Mention gcjh, not gjavah.
6154 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6155 (canReadUnchecked): Likewise.
6156 (canWriteUnchecked): Likewise.
6157 (isFileUnchecked): Likewise.
6158 * java/io/natFileDescriptor.cc: Don't include cni.h.
6160 * java/lang/Thread.java (run__): Declare.
6161 * java/lang/natThread.cc (run__): New method, to avoid compiler
6163 (start): Use run__, not run_.
6165 * java/io/io-defs.h: Include cni.h and jvm.h.
6167 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6169 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6170 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6171 to natString.cc (with suitable renaming, inlines etc).
6172 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6173 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6174 * java/lang/String.h: Removed - now generated using gjavah.
6175 * java/lang/String.java: Re-written from scratch. Many native methods.
6176 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6177 * java/lang/natString.cc: Many functions re-written for "compact
6178 strings" representation, or native java.lang.String methods added.
6179 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6180 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6181 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6182 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6183 * include/cni.h: Add inline method.
6184 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6185 * include/javaprims.h: Moved some stuff frm String.h.
6186 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6187 * Makefile.am (nat_header): Added Character.h and String.h.
6188 (String.h): Add new rule.
6190 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6192 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6194 * posix-threads.cc: Include cni.h, jvm.h.
6195 * quick-threads.cc: Include cni.h, jvm.h.
6196 * nogc.cc: Include cni.h, not javaprims.h.
6197 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6198 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6199 include java-assert.h.
6200 * java/lang/natSystem.cc: Include cni.h. Don't include
6202 * java/lang/natRuntime.cc: Include cni.h. Don't include
6204 * prims.cc: Rearranged #include ordering. Don't include
6205 java-array.h or java-assert.h.
6206 * boehm.cc: Include config.h, cni.h.
6207 * exception.cc: Include config.h, cni.h.
6208 * include/jvm.h: Include java-assert.h.
6209 * include/cni.h: Include java/lang/Object.h. Don't include
6210 java-threads.h or java-array.h.
6212 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6214 * java/lang/Boolean.java: Rewritten.
6216 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6218 * java/lang/natFirstThread.cc (main_func): New typedef.
6219 (run): Use main_func, not JvPrivThreadStartFunc.
6220 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6222 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6224 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6227 Can't throw Java exceptions with C++ `throw':
6228 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6229 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6230 (setPriority): Likewise.
6234 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6235 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6237 Can't catch Java exceptions from C++:
6238 * java/lang/natThread.cc (finish_): New method.
6240 * java/lang/Thread.java (run_): Rewrote in Java.
6241 (finish_): New native method.
6243 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6245 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6247 * include/javaprims.h (java::io): Added Serializable.
6249 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6251 * java/util/EmptyStackException.java,
6252 java/util/NoSuchElementException.java: Rewritten.
6254 * java/util/ConcurrentModificationException.java,
6255 java/util/MissingResourceException.java,
6256 java/util/TooManyListenersException.java: Created.
6258 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6260 * include/cni.h (JvThrow): New function.
6261 * include/javaprims.h (_Jv_Throw): Declare.
6263 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6265 * java/util/Observable.java: Rewritten.
6267 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6269 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6270 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6271 Include NullPointerException.h.
6273 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6275 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6276 assignability checks. Don't bother using memcpy.
6278 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6280 * include/quick-threads.h (JvPrivThreadWait): New function.
6281 * include/no-threads.h (JvPrivThreadWait): New function.
6282 * include/posix-threads.h (JvPrivThreadWait): New function.
6283 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6285 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6287 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6288 offsets by size of type that is being copied.
6290 * java/lang/natThread.cc (start): Don't pass `object' argument to
6292 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6293 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6295 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6296 always pass thread as object.
6297 * include/quick-threads.h, include/posix-threads.h,
6298 include/no-threads.h (JvPrivThreadStart): Removed `object'
6301 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6303 * java/util/Dictionary.java: Rewritten.
6305 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6307 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6308 (JvPrivThreadDestroy): Likewise.
6310 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6312 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6314 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6316 * java/lang/natSystem.cc: Rewrote from scratch.
6317 * java/lang/System.java: Rewrote from scratch.
6318 * java/lang/Class.h (Class): Declare isAssignableFrom.
6319 * include/javaprims.h (java::lang): Added ArrayStoreException,
6320 IndexOutOfBoundsException.
6321 * Makefile.in: Rebuilt.
6322 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6323 IndexOutOfBoundsException.h.
6324 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6325 * include/jvm.h (_Jv_HashCode): New function.
6327 * java/lang/natThread.cc (suspend): Call checkAccess.
6329 * java/lang/Thread.java (setDaemon): Call checkAccess.
6331 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6333 * java/lang/Runtime.java: Rewrote from scratch.
6334 * java/lang/natRuntime.cc: Rewrote from scratch.
6336 * nogc.cc (JvPrivGCTotalMemory): New function.
6337 (JvPrivGCFreeMemory): Likewise.
6338 (total): New global.
6339 (JvPrivAllocObj): Increment total.
6340 (JvPrivAllocArray): Likewise.
6341 (JvPrivAllocBytes): Likewise.
6342 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6343 * boehm.cc (JvPrivGCTotalMemory): New function.
6344 (sum_blocks): Likewise.
6345 (JvPrivGCFreeMemory): Likewise.
6347 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6349 * include/javaprims.h (java::lang): Added FirstThread.
6350 * java/lang/natFirstThread.cc: New file.
6351 * java/lang/FirstThread.java: New file.
6352 * prims.cc (main_signature): Removed.
6353 (main_name): Removed.
6354 #include FirstThread.h.
6355 * Makefile.in: Rebuilt.
6356 * Makefile.am (TFRIEND): Removed.
6357 (java/lang/Thread.h): Likewise.
6358 (FTFRIEND): New macro.
6359 (java/lang/FirstThread.h): New target.
6360 (nat_files): Added natFirstThread.o.
6361 (nat_headers): Added FirstThread.h.
6362 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6363 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6365 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6369 * java/lang/natThread.cc (start): Synchronize the thread.
6370 (stop): Synchronize the thread.
6372 * java/lang/ThreadDeath.java: Rewrote from scratch.
6374 * Makefile.in: Rebuilt.
6375 * Makefile.am (TGFRIEND): New macro.
6376 (java/lang/ThreadGroup.h): New target.
6377 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6379 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6381 * nogc.cc: Include config.h.
6383 * java/lang/ThreadGroup.java: Rewrote from scratch.
6385 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6387 * java/lang/Thread.java (checkAccess): Only call in to security
6388 manager if it exists.
6389 (Thread): Don't check access when creating the first thread. Add
6390 this thread to the appropriate ThreadGroup.
6392 * java/lang/natThread.cc (run_): Call uncaughtException method on
6395 * java/lang/Runnable.java: Rewrote from scratch.
6396 * java/lang/Thread.java: Updated copyright comment to correct
6399 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6401 * java/util/Random.java: Rewritten.
6403 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6405 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6406 trailing 0 in array[].
6408 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6410 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6411 and RUNTESTFLAGS from AM_MAKEFLAGS.
6412 (SUBDIRS): Conditionally include testsuite.
6413 * Makefile.in: Rebuilt.
6415 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6417 * java/lang/Object.h: Include java-assert.h.
6419 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6421 * Makefile.am: Add testsuite directory.
6422 * configure.in: Build testsuite/Makefile.
6423 * Makefile.in, configure: Rebuilt.
6425 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6427 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6428 * include/jvm.h (_Jv_StartFirstThread): Declare.
6430 * include/javaprims.h (java::lang): Added Exception,
6433 * Makefile.in: Rebuilt.
6434 * Makefile.am (nat_headers): Added NullPointerException.h,
6435 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6436 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6437 (java/lang/Thread.h): New target.
6438 (TFRIEND): New macro
6440 * include/java-assert.h (JvFail): Use 0 and not NULL.
6442 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6443 instead of assuming we are a friend of Thread.
6444 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6445 instead of assuming we are a friend of Thread.
6447 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6449 * java/lang/natThread.cc: Rewrote from scratch.
6450 * java/lang/Thread.java: Rewrote from scratch.
6451 * prims.cc (JvRunMain): Use new Thread constructor.
6452 * include/javaprims.h (java::lang): Added InterruptedException.
6453 * Makefile.in: Rebuilt.
6454 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6455 * java/lang/Thread.h: Removed.
6456 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6457 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6459 * posix-threads.cc (JvPrivThreadJoin): Removed.
6460 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6461 (really_start): Don't notify join_cond.
6462 (JvPrivThreadStart): Added `data' argument.
6463 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6464 (JvPrivThreadJoin): Likewise.
6465 Use JvFail instead of sorry.
6466 (JvPrivThreadSuspend): Removed.
6467 (JvPrivThreadResume): Removed.
6468 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6469 (JvPrivThreadJoin): Likewise.
6470 (JvPrivThreadSuspend): Use JvFail.
6471 (JvPrivThreadResume): Likewise.
6472 (JvPrivThreadSuspend): Removed.
6473 (JvPrivThreadResume): Likewise.
6474 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6475 (JvPrivThread_t): Removed join_mutex, join_cond.
6476 Use JvFail instead of sorry.
6477 (JvPrivThreadSuspend): Removed.
6478 (JvPrivThreadResume): Likewise.
6480 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6482 * java/util/Observer.java: Rewritten
6483 * java/util/Enumeration.java: Rewritten
6485 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6487 * java/util/StringTokenizer.java: Rewritten
6488 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6489 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6490 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6492 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6494 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6497 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6498 Include java-assert.h.
6499 * include/java-assert.h: New file.
6500 * prims.cc (_Jv_Abort): New function.
6501 Include java-assert.h, not assert.h.
6502 (_Jv_MonitorExit): Use JvAssert.
6503 (resolveConstants): Likewise.
6504 (processClass): Likewise.
6505 (JvRunMain): Assert that method is found.
6507 * configure: Rebuilt.
6508 * configure.in: Check for test subdir.
6509 * Makefile.in: Rebuilt.
6510 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6512 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6513 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6515 * prims.cc (resolveConstants): Removed unused variables.
6516 (processClass): Likewise.
6518 * include/quick-threads.h (JvPrivThreadCurrent): Use
6520 * quick-threads.cc (destroy_data): New function.
6521 (JvPrivInitThreads): Create key.
6522 (JvPrivThreadKey): New global.
6523 (JvPrivThreadStart): Use coop_setspecific.
6525 * include/quick-threads.h, include/posix-threads.h,
6526 include/no-threads.h, no-threads.cc, quick-threads.cc,
6527 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6529 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6531 * include/no-threads.h (JvPrivThreadInitData): Don't set
6534 * include/quick-threads.h (JvPrivCondWait): coop function now
6536 (JvPrivThreadJoin): Likewise.
6538 * java/lang/Thread.h (Thread): Updated declaration of
6540 * include/quick-threads.h, include/posix-threads.h: Updated
6541 declaration of JvPrivThreadStart.
6542 * include/no-threads.h (JvPrivThreadStart): Changed definition
6544 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6545 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6546 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6548 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6550 * quick-threads.cc (qthrow): New function.
6551 (JvPrivInitThreads): New function.
6552 (started): New global.
6553 (JvPrivThreadStart): Call coop_start if required.
6554 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6555 (JvPrivThreadDestroy): Likewise.
6556 (JvPrivInitThreads): Removed.
6557 * include/posix-threads.h (JvPrivThreadCancel): Added error
6559 * java/lang/natThread.cc (stop_): Pass exception to
6562 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6564 * include/javaprims.h (java::lang): Added
6565 IllegalArgumentException, IllegalThreadStateException, Math,
6566 NullPointerException, ThreadDeath.
6567 (java::util): Added Enumeration.
6569 * Makefile.in: Rebuilt.
6570 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6572 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6574 (threadsv): Renamed from threads to avoid clash in C++ header.
6575 (groupsv): Likewise.
6576 * include/no-threads.h (JvPrivThreadStart): Removed.
6577 * no-threads.cc (JvPrivThreadStart): New function.
6578 * java/lang/Thread.java (Thread): New constructor for internal use.
6579 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6580 (Thread): Declare constructor.
6581 * prims.cc (JvRunMain): Create the initial Thread and
6583 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6584 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6585 Removed `daemon' argument.
6587 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6588 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6590 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6592 * Makefile.in: Rebuilt.
6593 * Makefile.am (INCLUDES): Include THREADINCS.
6595 * configure: Rebuilt.
6596 * configure.in: Recognize `qt' as a threads package.
6598 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6600 * java/util/Stack.java (pop): Null out topmost node for robustness.
6602 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6604 * java/util/Stack.java: Rewritten.
6605 * java/util/Vector.java (isEmpty): Simplified expression.
6607 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6609 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6610 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6612 * include/java-array.h (JvNewObjectArray): Created inline to
6615 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6618 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6620 * java/util/Vector.java: Rewritten.
6621 * java/io/Serializable.java: Created.
6623 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6625 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6626 Infinity is 1/0, not 1/1.
6628 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6630 * configure: Rebuilt.
6631 * configure.in: Removed duplicate AC_ARG_WITH.
6633 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6635 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6637 (_Jv_InitClass): Renamed from soft_initialise_class.
6638 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6639 (_Jv_CheckCast): Renamed from soft_checkcast.
6640 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6641 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6642 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6643 * include/cni.h (JvInitClass): New function.
6644 (_Jv_InitClass): Renamed from soft_initialise_class.
6646 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6648 * configure: Rebuilt.
6649 * configure.in (CXX): Don't set.
6650 * Makefile.in: Rebuilt.
6651 * Makefile.am (AM_CXXFLAGS): New macro.
6653 * Makefile.in: Rebuilt.
6654 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6655 nogc.o): New target.
6657 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6659 (mark_array): Likewise.
6661 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6663 * java/lang/Class.h (JvMethod): Removed some unused fields.
6664 (JvField.info): Removed unused idx union variant.
6666 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6668 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6671 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6673 * configure.in, configure (CXX): Add -fvtable-thunks.
6675 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6677 * java/lang/Object.java (finalize): Move first.
6678 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6679 (Object): Re-arrange order to match Object.java.
6681 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6683 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6684 * java/lang/natString.cc (hashChars): Likewise.
6686 * prims.cc (RuntimeClass): New macro.
6687 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6689 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6691 * Makefile.in: Rebuilt.
6692 * Makefile.am (AM_MAKEFLAGS): New macro.
6694 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6696 * nogc.cc: Include <javaprims.h>.
6698 * Makefile.in: Rebuilt.
6699 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6701 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6703 * exception.cc (terminate): Removed.
6704 (unexpected): Removed.
6706 * configure: Rebuilt.
6707 * configure.in: Handle case where target subdir is ".".
6709 * configure: Rebuilt.
6710 * configure.in: Compute COMPPATH based on --with-target-subdir
6711 option. Added --with-target-subdir and --with-cross-host. Use
6712 --with-cross-host to determine when a cross compiler is in use.
6714 * Makefile.in: Rebuilt.
6715 * Makefile.am (GJAVAH): Include COMPPATH.
6716 * configure: Rebuilt.
6717 * configure.in: Subst COMPPATH.
6719 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6721 * prims.cc (lockMutex): Removed.
6722 (unlockMutex): Likewise.
6723 (processClass): Lock the class using a JvSynchronize object.
6725 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6727 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6728 (gc_free_fixed): Removed.
6729 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6730 freeing old value of strhash.
6732 * exception.cc (_Jv_type_matcher): Cast first argument to
6735 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6737 * include/java-array.h (jstringArray): New type.
6738 * java/lang/natSystem.cc (setProperty): Removed.
6739 (initProperties): Directly call JvNewStringLatin1 for arguments.
6740 * java/util/natDate.cc: Include java/util/Date.h, not
6743 * java/io/FileDescriptor.java (available): No longer static.
6744 * java/lang/natDouble.cc (Double): Removed class definition.
6745 * include/javaprims.h (java::lang::Number): Declare.
6746 (java::lang::NumberFormatException): Likewise.
6747 (java::io::FilenameFilter): Likewise.
6748 (java::lang::Character): Likewise.
6749 (java::lang::Error): Likewise.
6750 (java::lang::SecurityManager): Likewise.
6751 (java::util::Vector): Likewise.
6752 (java::io::FileNotFoundException): Likewise.
6753 (java::io::IOException): Likewise.
6754 (java::lang::NativeLang): Likewise.
6755 (java::lang::UnsatisfiedLinkError): Likewise.
6756 (java::util::StringTokenizer): Likewise.
6757 (java::io::InputStream, java::io::OutputStream): Likewise.
6758 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6759 (java::util::Hashtable): Likewise.
6760 * Makefile.in: Rebuilt.
6761 * Makefile.am (nat_headers): Added java/lang/Double.h,
6762 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6763 (MOSTLYCLEANFILES): Added nat_headers.
6764 * include/jvm.h: Moved many defines, declarations, and functions
6765 to java/lang/Class.h.
6766 (struct JvSyncInfo): Moved to java/lang/Object.h.
6767 (UTF8_GET): Moved to java/lang/String.h.
6769 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6771 * java/io/io-defs.h: Don't include java-io.h.
6772 * include/java-io.h: Removed.
6773 * include/javaprims.h: Include java::io.
6775 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6777 * include/java-io.h (File): Removed
6778 (FileDescriptor): Likewise.
6780 * java/io/io-defs.h: Include java/io/File.h and
6781 java/io/FileDescriptor.h.
6783 * Makefile.in: Rebuilt.
6784 * Makefile.am (GJAVAH): New macro.
6785 (.class.h): New rule.
6786 (SUFFIXES): Added .h.
6787 (nat_headers): New macro.
6788 ($(nat_headers)): New target.
6789 (BUILT_SOURCES): Added nat_headers.
6791 * include/java-util.h: Removed.
6793 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6795 * include/java-io.h: Changed to avoid java-lang.h.
6796 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6798 * java/lang/natSystem.cc: Include java/lang/System.h, not
6800 * java/lang/natString.cc: Include java/lang/String.h, not
6802 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6804 * java/lang/natClass.cc: Include java/lang/Class.h, not
6806 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6808 * java/lang/natObject.cc: Include java/lang/Object.h, not
6810 * exception.cc: Don't include java-lang.h.
6811 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6812 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6813 * nogc.cc: Don't include java-lang.h.
6814 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6815 * prims.cc (processClass): Don't use `init_type'; just cast to
6817 Include java/lang/Class.h and jvm.h, not java-lang.h.
6818 (JvAllocObject): Wrote single-argument version.
6819 (PrimClass): Inherit from Class.
6820 (initPrimClass): Removed.
6821 * include/java-lang.h: Removed.
6822 * include/jvm.h: Declare struct _dispatchTable.
6823 * include/cni.h: Don't declare _Jv_MonitorEnter,
6824 _Jv_MonitorExit, struct _dispatchTable.
6825 * include/javaprims.h: Moved all typedefs here, from cni.h.
6826 * java/lang/Class.h: New file.
6827 * include/java-array.h: New file.
6828 * java/lang/Object.h: New file.
6830 * prims.cc (classFromSig): Now static.
6832 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6834 * include/cni.h: Don't mention soft_new.
6835 * include/java-lang.h (Object): Don't mention soft_new. Mention
6836 _Jv_NewPrimArray, not newPrimArray.
6837 * prims.cc (soft_new): Removed.
6838 (_Jv_NewArray): Renamed from soft_newarray.
6839 (soft_anewarray): Use JvNewObjectArray.
6840 (newArray): Likewise.
6841 (newRefArray): Removed.
6842 (_Jv_NewPrimArray): Renamed from newPrimArray.
6843 (equalUtf8Consts): Now static.
6844 (soft_instanceof): Removed.
6845 * java/lang/natDouble.cc (doubleToString): Now static.
6847 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6848 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6851 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6853 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6855 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6857 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6858 (JvPrivMutexUnlock): Likewise.
6859 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6860 Return value now jint.
6861 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6864 * Makefile.in: Rebuilt.
6865 * Makefile.am: Don't allow `jV' names.
6866 (maintainer-check): Depend on libjava.a.
6867 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6869 * Makefile.in: Rebuilt.
6870 * Makefile.am (NM): New macro.
6871 (maintainer-check): New target.
6873 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6875 * configure: Rebuilt.
6876 * configure.in: Use --enable-threads, not --enable-gc. Fix
6877 documentation for --enable-threads. Changed option to work like
6878 identical option in gcc/configure.
6880 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6882 * boehm.cc (mark_array): Use JvGetArrayLength.
6884 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6886 * exception.cc: New file (mostly written by Andrew MacLeod),
6887 exception handling support.
6888 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6889 Remove -fexceptions - it is now the default.
6891 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6892 (JvAllocObject): Renamed to _Jv_AllocObject.
6893 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6894 (loadClass): Renamed to _Jv_FindClass.
6895 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6896 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6897 * include/java-lang.h (JvGetArrayLength): New CNI function.
6898 * include/jvm.h (_Jv_FindClass): Added declaration.
6900 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6902 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6904 * java/lang/natClass.cc (getName): Add implementation.
6905 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6907 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6909 * Makefile.in: Rebuilt.
6910 * Makefile.am (.class.o): Added -fexceptions.
6912 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6914 * configure: Rebuilt.
6915 * configure.in: Don't check for __nanosleep.
6916 * posix-threads.cc (nanosleep): Never define.
6918 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6920 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6923 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6925 * java/lang/natThread.cc (enumerate): Uncommented.
6926 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6927 (interrupt): Call it.
6929 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6931 * configure: Rebuilt.
6932 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6934 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6936 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6937 * include/java-lang.h (Thread): Added `interrupted_' method.
6938 * java/lang/Thread.java (interrupted_): New method.
6939 * java/lang/natThread.cc (join): Possibly throw interrupted
6940 exception after join finishes.
6941 (interrupted_): New method.
6942 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6944 (JvPrivThreadJoin): New function.
6945 (really_start): Notify all threads waiting for this thread.
6946 (struct starter): Added `data' member.
6947 (JvPrivThreadStart): Set it.
6948 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6950 (JvPrivThreadJoin): No longer inline.
6951 (JvPrivThreadInterrupt): New function.
6953 * include/no-threads.h (JvPrivThreadSleep): Removed.
6954 * posix-threads.cc (JvPrivThreadSleep): Removed.
6956 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6958 * configure: Rebuilt.
6959 * configure.in (THREADOBJS): Initialize to no-threads.o in
6961 * posix-threads.cc (key): New global.
6962 (JvPrivInitThreads): New function.
6963 (really_start): Set thread-specific data to point to object.
6964 (JvPrivThreadStart): Added `daemon' argument.
6965 (JvPrivThreadSleep): Added `data' argument.
6966 * include/posix-threads.h (JvPrivInitThreads): Removed
6968 (JvPrivThreadCurrent): New function.
6969 * include/no-threads.h (JvPrivThreadInitData): Initialize
6970 JvPrivOnlyThread. Added `thread' argument.
6971 (JvPrivThreadCurrent): New function.
6972 (JvPrivThreadStart): Added `daemon' argument.
6973 * no-threads.cc: New file.
6974 * java/lang/natThread.cc (init_data): New function.
6976 (start): Set `alive' member.
6977 (stop_): Clear `alive' member.
6978 (destroy): Likewise.
6979 (currentThread): Implemented.
6980 (start): Pass `daemon' argument to JvPrivThreadStart.
6982 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6983 (Thread): Added `init_data' method.
6984 * java/lang/Thread.java (alive, data): New instance variables.
6985 (init_data): New private method.
6986 (isAlive): No longer native.
6988 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6990 * include/java-lang.h (JvRunMain): Declare.
6991 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6992 * prims.cc (JvRunMain): New function.
6993 (main_signature, main_name): New globals.
6995 * boehm.cc (mark_array): Use `elements' function and not
6996 operator[] on jarray.
6998 * posix-threads.cc: Include <config.h>. Define nanosleep if
7001 * configure: Rebuilt.
7002 * configure.in: Check for _nanosleep.
7004 * configure: Rebuilt.
7005 * configure.in: Check for pthread_mutexattr_settype.
7007 * include/cni.h (class JvSynchronize): New class.
7008 * java/lang/Thread.java (sleep): Throws InterruptedException.
7009 (join): Throws InterruptedException.
7010 (resume): Not native.
7011 (resume_): New method.
7012 (start): Now synchronized.
7013 (stop_): New method.
7014 (Thread): Synchronize when accessing threadNumber.
7016 * java/lang/natThread.cc (throwException): New macro.
7017 (sleep): Throw InterruptedException.
7020 * include/java-lang.h (Runtime): Added interrupted().
7022 * boehm.cc (call_finalizer): Correctly initialize jobj.
7023 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7025 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7028 * configure: Rebuilt.
7029 * configure.in: Added support for --disable-threads.
7030 * include/no-threads.h: New file.
7032 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7034 * Makefile.in: Rebuilt.
7035 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7036 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7037 (libjava_a_LIBADD): Added THREADOBJS.
7038 * configure: Rebuilt.
7039 * configure.in: Added --with-threads option.
7040 * posix-threads.cc: New file.
7041 * include/posix-threads.h: New file.
7042 * include/java-lang.h (Object): Added static member sync_mutex,
7043 member sync_info, method init_mutex.
7044 (struct JvSyncInfo): New struct.
7045 Include "java-threads.h".
7046 * prims.cc (soft_monitorenter): Wrote.
7047 (soft_monitorexit): Likewise.
7048 * java/lang/natObject.cc (init_mutex): New method.
7052 (sync_mutex): Define.
7053 Include "java-threads.h".
7055 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7057 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7058 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7060 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7062 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7063 Added extern "Java" in places to tell G++ Object is a "Java" type.
7064 Other minor renaming and fixes.
7065 * include/java-io.h (FileDescriptor): Add friend class declarations.
7066 G++ no longer allows non-Java types in method parameters and results
7067 of Java classes. Converted most offending methods to friends.
7068 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7069 * java/lang/natSystem.cc (setProperty): Make friend.
7070 * java/lang/natString.cc, include/java-lang.h (String): Rename
7071 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7072 * include/java-lang.h (JArray): Remove getData and eoprator[].
7073 Add elements friend function instead.
7074 * java/lang/natSystem.cc (arraycopy): Use elements function.
7075 * java/io/natFileDescriptor.cc (read, write): Likewise.
7076 * include/java-lang.h (Object): Remove unused make method.
7077 (System::setProperty(char*,char*)): Turn into friend function.
7078 (Class): Rename newObject by JvAllocObject.
7079 * prims.cc: Update to use JvAllocObject, and elements.
7081 * java/lang/natDouble.cc: Fix double -> jdouble.
7083 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7085 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7087 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7089 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7090 * include/java-lang.h (Runtime): finalize_on_exit and
7091 runFinalizersOnExit now static.
7092 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7094 (finalize_on_exit): Now static.
7096 * boehm.cc (mark_obj): Get class using getClass() method on
7098 (_dispatchTable): Removed.
7100 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7102 * java/io/natFileDescriptor.cc (open_read): Only call open if
7104 (open_write): Likewise.
7106 * Makefile.in: Rebuilt.
7107 * Makefile.am ($(nat_files)): Depend on config.h.
7109 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7111 * prims.cc (ObjectClass): Now a macro; updated for new class name
7113 (StringClass): Likewise.
7114 (ClassClass): Likewise.
7116 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7118 * java/io/natFileDescriptor.cc (available): Do nothing unless
7119 HAVE_SELECT defined.
7120 * java/util/natDate.cc (setTime): Conditional on
7122 (toString): Conditional on HAVE_TIME.
7123 * aclocal.m4, configure: Rebuilt.
7124 * acinclude.m4: New file.
7125 * configure.in: Don't actually call AM_EXEEXT. Call
7126 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7127 --with-target-subdir option. Check for select and open
7130 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7132 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7133 (call_finalizer): Likewise.
7134 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7135 * prims.cc (newObject): Pass actual method pointer to
7136 JvPrivRegisterFinalizer.
7137 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7138 (JvPrivRegisterFinalizer): Changed interface.
7140 * Makefile.in: Rebuilt.
7141 * Makefile.am (MOSTLYCLEANFILES): New macro.
7142 (CLEANFILES): Removed javao_files.
7144 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7146 * nogc.cc: New file.
7147 * Makefile.in: Rebuilt.
7148 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7149 (EXTRA_libjava_a_SOURCES): New macro.
7150 (libjava_a_SOURCES): Removed boehm.cc.
7151 (libjava_a_DEPENDENCIES): Added GCOBJS.
7152 (libjava_a_LIBADD): Likewise.
7153 * configure: Rebuilt.
7154 * configure.in: Added code for --enable-gc=TYPE.
7156 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7158 * boehm.cc (mark_array): Don't further dereference pointer from
7161 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7162 * Makefile.in: Rebuilt.
7163 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7164 one for boehm-gc build directory.
7166 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7168 * include/java-lang.h (finalize_on_exit): New instance variable in
7169 java::lang::Runtime.
7170 (runFinalizersOnExit): New method.
7171 * java/lang/Runtime.java (finalize_on_exit): New instance
7173 (runAllFinalizers_): New private method.
7174 (runFinalizersOnExit): New method.
7175 * boehm.cc (JvPrivRunFinalizers): New function.
7176 (JvPrivRunAllFinalizers): Likewise.
7177 (JvPrivRunGC): Likewise.
7178 * java/lang/natRuntime.cc: Include "jvm.h".
7179 (gc): Call JvPrivRunGC.
7180 (runFinalization): Call JvPrivRunFinalizers.
7181 (runFinalizersOnExit): New method.
7182 (exit_): Call JvPrivRunAllFinalizers if required.
7183 * include/jvm.h: Declare JvPrivRunFinalizers,
7184 JvPrivRunAllFinalizers, JvPrivRunGC.
7186 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7188 * boehm.cc (JvPrivRegisterFinalizer): New function.
7189 (call_finalizer): Likewise.
7190 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7191 * prims.cc (finalize_name): New global.
7192 (newObject): Just call other newObject.
7193 (newObject): Register finalizer if it exists.
7195 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7197 * prims.cc (gc_malloc): Removed.
7198 (makeUtf8Const): Use JvPrivAllocBytes.
7199 (lookupArray): Likewise.
7200 (newPrimArray): Likewise.
7201 (JvNewObjectArray): Use JvPrivAllocArray.
7202 (newObject): Use JvPrivAllocObj.
7203 (newObject): Likewise.
7204 Changed Method -> JvMethod everywhere.
7205 Changed Field -> JvField everywhere.
7206 * include/java-lang.h (Object): Changed type of `fields' to
7208 (jmethodID, jfieldID): New typedefs.
7209 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7211 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7213 (METHOD_NATIVECODE): Moved from java-lang.h.
7214 (class JvField): New class.
7215 (JvGetFirstInstanceField): New function.
7216 (JvFieldIsRef): Likewise.
7217 (JvGetObjectField): Likewise.
7218 (JvNumInstanceFields): Likewise.
7220 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7222 * boehm.cc: New file.
7223 * Makefile.in: Rebuilt.
7224 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7225 (INCLUDES): Added -I options to find boehm-gc files.
7227 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7229 * configure: Rebuilt.
7230 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7232 * Makefile.in: Rebuilt.
7233 * Makefile.am (nat_files): New macro.
7234 (libjava_a_DEPENDENCIES): Use it.
7235 (libjava_a_LIBADD): Likewise.
7236 ($(nat_files)): New static pattern rule.
7237 (class_files): Run separate find to find .class files.
7238 (javao_files): Compute based on class_files.
7239 (BUILT_SOURCES): New macro.
7241 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7243 * Makefile.am (java_files): New macro.
7244 (class_files): Likewise.
7245 (javao_files): Likewise.
7246 (libjava_a_DEPENDENCIES): Include $(javao_files).
7247 (libjava_a_LIBADD): Likewise.
7248 (classes.stamp): Depend on $(java_files); only recompile changed
7251 (CLEANFILES): Don't run find; use macros. Don't mention
7253 (.class.o): New target.
7254 (compiled.stamp): Removed.
7256 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7258 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7259 LineNumberReader}>java: Newly-implemented standard classes.
7261 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7263 * Makefile.in: Rebuilt.
7264 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7266 * Makefile.in: Rebuilt.
7267 * Makefile.am (hack): New macro.
7268 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7270 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7272 * include/config.h.in: New file.
7273 * include/config.h: Removed.
7274 * acconfig.h: New file.
7275 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7276 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7277 libjava_a_LIBADD): New macros.
7278 (INCLUDES): New macro.
7281 (SUFFIXES): Removed.
7283 (libjava.a): Removed.
7285 * configure: Rebuilt.
7286 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7287 Look for headers and functions we require. Create
7290 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7292 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7293 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7294 soft_lookupinterfacemethod): New functions.
7295 (PrimClass): Actually initialize the primitive classes.
7296 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7298 * include/java-util.h: Removed java::util definition.
7299 * include/cni.h: Moved java::util here and added Properties.
7300 Added more function prototypes.
7301 * include/java-lang.h: Added mroe methods and friend declarations.
7302 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7303 * include/jvm.h (strLengthUtf8): Add declaration.
7305 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7307 * java/lang/{Byte,Short,Void}.java: New classes.
7308 * java/lang/Character.java (isJavaIdentifierStart,
7309 JavaIdentifierPart): New static methods.
7310 * java/lang/Number.java (byteValue, shortValue): New methods.
7312 * java/lang/String.java (intern, hashCode): Make native.
7313 * java/lang/natString.cc: New file. Handle the string pool.
7314 * Makefile.am: Build natString.o. Use CXXFLAGS.
7316 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7317 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7318 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7319 * java/lang/System.java (setProperty): New private method.
7320 (initProperties): Take argument, and make native.
7321 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7322 (currentTimeMillis): Make more robust.
7324 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7325 * java/io/UnsupportedEncodingException.java: New exception class.
7327 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7328 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7330 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7332 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7333 * prims.cc: Added bunch of stuff.
7334 * include/cni.h: Added various definitions.
7335 * include/java-lang.h: Added Method, various friends, some macros.
7337 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7338 * java/lang/System.java (arraycopy): Make native.
7340 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7342 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7343 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7344 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7345 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7347 * java/lang/Runtime.java: Declare methods as native instead of
7349 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7350 * java/lang/System.java: Comment out some stuff, for now.
7351 * java/lang/Thread.java: Re-write. Use native methods.
7352 * java/lang/NativeLang.java: Remove most of it.
7354 * java/util/natDate.cc: Native (C++) methods for Date.
7355 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7356 * java/util/Date.java: Complete re-write.
7358 * java/io/io-defs.h: New header file.
7359 * java/io/FileDescriptor.java: Add a bunch of private methods,
7360 mostly moved from NativeIO.java and natNativeIO.cc.
7361 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7362 * java/io/File.java: Use new code.
7363 * java/io/{FileInputStream.java.FileOutputStream.java,
7364 RandomAccessFile.java}: Use new private FileDescriptor methods.
7365 * java/io/NativeIO.java: Removed, no longer used.
7367 * java/io/StreamTokenizer.java (numericChars): Make char array.
7369 * include/*.h: Various header files used by the C++ native code.
7371 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7372 New autoconf+automake-based setup.
7373 * prims.cc: New file for Java "primitives".