1 2000-01-17 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
4 when backtrace can't be computed.
7 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
9 * java/lang/Runtime.java (loadLibraryInternal): Declare.
10 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
11 (_Jv_FindClassInCache): Likewise.
12 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
13 (findSystemClass): Try to load class from compiled module.
15 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
16 (loadLibrary): Likewise.
17 (lt_preloaded_symbols): Define.
18 (loadLibraryInternal): New method.
19 * include/config.h.in: Rebuilt.
20 * acconfig.h (USE_LTDL): Added.
21 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
22 (INCLUDES): Added $(INCLTDL).
23 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
24 (libgcj_la_LIBADD): Likewise.
25 * aclocal.m4, configure: Rebuilt.
26 * configure.in: Added libltdl support.
28 2000-01-15 Tom Tromey <tromey@cygnus.com>
30 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
32 2000-01-14 Andrew Haley <aph@cygnus.com>
34 * java/lang/natThrowable.cc: New file.
36 * java/lang/Throwable.java (fillInStackTrace): Make native.
37 (printStackTrace): Call native method to do this.
38 (Throwable): Call fillInStackTrace.
39 (stackTrace): New variable.
41 * include/jvm.h: Add _Jv_ThisExecutable functions.
43 * prims.cc: (_Jv_execName): New variable.
44 (catch_segv): Call fillInStackTrace.
46 (_Jv_ThisExecutable): New functions.
47 (JvRunMain): Set the name of this executable.
49 * Makefile.am: Add java/lang/natThrowable.cc.
51 * Makefile.in: Rebuilt.
53 * acconfig.h: Add HAVE_PROC_SELF_EXE.
55 * configure.in: Force link with __frame_state_for in
56 FORCELIBGCCSPEC. Add new checks for backtrace.
57 * include/config.h.in: Rebuilt.
59 * name-finder.cc: New file.
60 * include/name-finder.h: New file.
62 2000-01-16 Anthony Green <green@cygnus.com>
64 * java/lang/StringBuffer.java (StringBuffer): Don't special case
67 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
69 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
71 2000-01-13 Tom Tromey <tromey@cygnus.com>
73 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
74 not system loader, as initiating loader.
76 2000-01-11 Tom Tromey <tromey@cygnus.com>
78 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
79 HP/UX. From David Scott Urban.
81 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
83 * java/lang/natMath.cc (pow): Cast args to `double', not
86 (IEEEremainder): Likewise.
87 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
88 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
90 2000-01-09 Anthony Green <green@cygnus.com>
92 * java/lang/natString.cc (init): Test for overflow condition
93 during out of bounds check.
94 (getChars): Throw StringIndexOutOfBoundsException, not
95 ArrayIndexOutOfBoundsException.
97 (regionMatches): Obey case option during string comparison.
99 * configure.host (ligcj_interpreter): New variable. Enable
100 interpreter by default on IA-32.
101 * configure.in: Examine libgcj_interpreter.
102 * configure: Rebuilt.
104 2000-01-07 Tom Tromey <tromey@cygnus.com>
106 * mauve-libgcj: Don't disable ClassTest.
108 * java/lang/natClass.cc (getClasses): Wrote.
110 2000-01-06 Tom Tromey <tromey@cygnus.com>
112 * java/lang/natClass.cc (_getConstructors): Correctly check
113 whether method name is the init name.
114 (getMethod): Look at accflags on method in `klass', not `this'.
116 2000-01-05 Tom Tromey <tromey@cygnus.com>
118 * java/lang/natClass.cc (getMethod): Compute offset relative to
119 `klass's methods table, not `this's table.
121 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
122 In unwrapping/widening case, check whether `k' is null, not
123 whether it is primitive. Initialize `num' from `argelts', not
124 `paramelts'. Correct create and pass arguments to ffi_call.
125 Don't let presence of `this' argument affect index used to look in
127 (COPY): Set appropriate element in `values' vector.
129 * java/lang/natClass.cc: Include <gcj/method.h>.
131 * java/lang/Class.h (_getMethods): Correctly declare as private,
134 * java/lang/Class.h (_getMethods): Declare.
135 * java/lang/Class.java (_getMethods): Declare.
136 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
137 (getDeclaredClasses): Always return empty array.
138 (_getMethods): New method.
140 (getDeclaredMethod): Return `rmethod'.
141 (finit_name): New global.
142 (getDeclaredMethods): Check for finit_name.
143 (_getMethods): Likewise.
144 (getMethod): Only return public methods.
146 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
147 jboolean and select correct ffi type on that basis.
148 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
149 Constructor call always has `void' return type.
151 2000-01-04 Tom Tromey <tromey@cygnus.com>
153 * java/lang/Class.h (getSignature): Updated.
154 * java/lang/Class.java (getSignature): Updated.
155 * java/lang/natClass.cc (getSignature): Added `is_constructor'
157 (getConstructor): Ensure constructor is public.
158 (_getConstructors): Check for public-ness of constructor when
159 `declared' is false, not when it is true.
161 2000-01-04 Warren Levy <warrenl@cygnus.com>
163 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
165 (receive): Set the sender's address in the DatagramPacket.
167 2000-01-04 Tom Tromey <tromey@cygnus.com>
169 * java/lang/reflect/natConstructor.cc (newInstance): Pass
170 declaring class as return_type argument to
171 _Jv_CallNonvirtualMethodA.
172 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
173 constructor case, create object and use it as `this' argument.
174 * java/lang/Class.h (_getConstructors): Declare.
175 (_getFields): Declare.
176 * java/lang/Class.java (getConstructors): Wrote.
177 (_getConstructors): New native method.
178 (getDeclaredConstructors): Wrote.
179 (_getFields): Declare new native method.
180 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
182 (getMethod): Work correctly when class is primitive.
183 (getDeclaredMethods): Likewise. Compute offset using `method',
185 (getDeclaredMethod): Likewise.
186 (getConstructor): Wrote.
187 (ConstructorClass): New define.
188 (getDeclaredConstructor): Wrote.
189 (_getConstructors): New method.
190 (_getFields): New method.
193 * Makefile.in: Rebuilt.
194 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
196 * prims.cc: Remove `#pragma implementation'.
197 * gcj/array.h: Remove `#pragma interface'.
199 * prims.cc (_Jv_equaln): New function.
200 * java/lang/Class.java (getSignature): Declare.
201 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
202 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
204 (getSignature): New method.
205 (getDeclaredMethod): Wrote.
207 Include StringBuffer.h.
208 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
209 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
211 (getSignature): Declare.
212 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
213 (_Jv_equaln): Declare.
214 (_Jv_CallNonvirtualMethodA): Declare.
215 * Makefile.in: Rebuilt.
216 * Makefile.am (nat_source_files): Added natConstructor.cc.
217 (java/lang/reflect/Constructor.h): New target.
218 * java/lang/reflect/natConstructor.cc: New file.
219 * java/lang/reflect/Constructor.java (newInstance): Now native.
220 (declaringClass): Renamed from decl_class.
221 (offset): Renamed from index.
222 (getType): New native method.
223 (getModifiers): Now native.
224 (getParameterTypes): Call getType if required.
225 (hashCode): Include hash code from declaring class.
226 (modifiers): Removed.
227 (toString): Call getType if required.
228 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
229 * java/lang/reflect/natMethod.cc (hack_call): New method.
230 Removed `#if 0' around FFI code.
231 Include <gnu/gcj/RawData.h>.
232 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
233 IllegalArgumentException when argument object and class disagree.
234 (_Jv_GetTypesFromSignature): New function.
236 (ObjectClass): New define.
237 (_Jv_CallNonvirtualMethodA): New function.
238 * java/lang/reflect/Method.java (hack_trampoline): New method.
239 (hack_call): New native method.
241 1999-12-21 Per Bothner <per@bothner.com>
243 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
244 offset in new Method.
246 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
248 * java/lang/natObject.cc (notify): Throw message with
249 IllegalMonitorStateException.
252 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
253 (isInterrupted_): New function, which does clear interrupt_flag.
254 (interrupt): Use `isInterrupted_'.
255 * java/lang/natThread.cc (interrupt): Add comment.
256 (join): Set `prev' in joiner loop.
257 Change various calls to `isInterrupted' to use `isInterrupted_'.
258 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
259 on linux. Set result to 0 on an interrupt. Test interrupted status
260 of java Thread object directly.
261 FLAG_INTERRUPTED: removed.
262 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
263 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
264 (_Jv_InitThreads): Don't block SIGINT.
265 (_Jv_ThreadWait): Don't configure SIGINT handler.
267 1999-12-21 Tom Tromey <tromey@cygnus.com>
269 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
271 1999-12-20 Tom Tromey <tromey@cygnus.com>
273 * java/lang/reflect/Modifier.java (STRICT): New constant.
274 (isStrict): New method.
275 (toString): Added `strict'.
277 1999-12-23 Anthony Green <green@cygnus.com>
279 * configure: Rebuilt.
280 * configure.in (LIBDATASTARTSPEC): Force data_start in with
283 1999-12-19 Anthony Green <green@cygnus.com>
285 * libgcjdata.c: New file.
286 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
287 * configure: Rebuilt.
288 * configure.in (LIBDATASTARTSPEC): Force data with a known name
290 * Makefile.in: Rebuilt.
291 * Makefile.am: Build libgcjdata.a.
293 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
294 * configure: Rebuilt.
295 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
298 1999-12-17 Tom Tromey <tromey@cygnus.com>
300 * java/lang/reflect/Method.java (toString): Call getType if
301 required. Partial fix for PR libgcj/111. From Per Bothner.
303 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
305 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
307 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
308 null String constructor parameter.
309 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
310 for exception messages.
311 BooleanClass: declare.
312 (setOption): Use BooleanClass instead of Class.forName() for
314 (bind): Cast 4th parameter of setsockopt to `char *' for
315 compatibility with older Solaris headers.
316 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
317 sprintf calls for exception messages.
318 BooleanClass, IntegerClass: declare.
319 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
322 1999-12-15 Tom Tromey <tromey@cygnus.com>
324 * java/lang/natSystem.cc (init_properties): Don't set user.name or
325 user.home if NO_GETUID defined. Only set user.dir if getcwd
328 * include/config.h.in: Rebuilt.
329 * acconfig.h (NO_GETUID): New define.
330 * configure.in: Rebuilt.
331 * configure.in: Define NO_GETUID in cross case. Check for getcwd
334 1999-12-08 Tom Tromey <tromey@cygnus.com>
336 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
337 where no recursive mutexes exist. Fixes PR libgcj/117.
339 1999-12-05 Anthony Green <green@cygnus.com>
341 * include/jvm.h: Declare many functions with
342 __attribute__((__malloc__)).
343 * gcj/javaprims.h: Ditto.
345 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
347 * THANKS: Giving credit where credit is due.
349 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
351 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
353 * java/lang/natString.cc (equalsIgnoreCase): return false if
354 anotherString is null.
355 * java/lang/Boolean.java (valueOf): return FALSE if argument is
358 1999-11-30 Tom Tromey <tromey@cygnus.com>
360 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
361 mutex to initialize. Initialize `count' if required.
364 1999-11-27 Per Bothner <per@bothner.com>
366 * exception.cc: Remove prototype declarations for malloc and free.
367 These clash with recent versions of glibc, which specifies `throws ()'
368 when __cplusplus is defined. Instead, #include <stdlib.h>.
370 1999-11-24 Tom Tromey <tromey@cygnus.com>
372 * prims.cc (_Jv_NewObjectArray): Use
373 _Jv_GetArrayElementFromElementType.
374 (_Jv_NewPrimArray): Likewise.
375 * java/lang/natObject.cc (clone): Use
376 _Jv_GetArrayElementFromElementType instead of sizeof.
377 * java/lang/natSystem.cc (arraycopy): Use
378 _Jv_GetArrayElementFromElementType.
379 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
382 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
384 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
385 Exception messages. PR java.net/57.
386 (bind): set SO_REUSEADDR before bind.
387 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
388 overruns. PR java.net/57.
390 1999-11-19 Tom Tromey <tromey@cygnus.com>
392 * Makefile.am (DIVIDESPEC): Removed.
393 (EXCEPTIONSPEC): Removed.
395 1999-11-19 Andrew Haley <aph@cygnus.com>
397 * Makefile.am (JCFLAGS): Add -L$(here)
399 * Makefile.in: Rebuild.
401 1999-11-18 Tom Tromey <tromey@cygnus.com>
403 * java/lang/natDouble.cc: Include <config.h>.
405 * include/config.h.in: Rebuilt.
406 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
407 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
409 * configure: Rebuilt.
410 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
411 requested by configure.host. Don't put `-D' option into
412 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
414 * configure: Rebuilt.
415 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
418 1999-11-18 Andrew Haley <aph@cygnus.com>
420 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
421 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
423 * Makefile.in: Rebuild
424 * acconfig.h: remove SJLJ_EXCEPTIONS
425 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
426 Do not AC_DEFINE SJLJ_EXCEPTIONS.
427 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
428 * gcj/Makefile.in, include/Makefile.in: rebuild.
429 * include/config.h.in: remove SJLJ_EXCEPTIONS.
431 1999-11-18 Andrew Haley <aph@cygnus.com>
433 * gij.cc (main): Rename label to prevent conflict.
435 * exception.cc (_Jv_type_matcher): Don't check the table if we're
436 using setjmp/longjmp exceptions: there isn't one.
438 1999-11-17 Andrew Haley <aph@cygnus.com>
440 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
441 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
442 (__sjthrow): Add declaration.
443 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
447 * Makefile.in: Rebuild
448 * acconfig.h: Add SJLJ_EXCEPTIONS
449 * configure.in: Add SJLJ_EXCEPTIONS
450 * configure: Rebuild.
451 * gcj/Makefile.in: Rebuild.
452 * gcj/cni.h: Add support for sjlj-exceptions.
453 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
454 * include/Makefile.in: Rebuild.
455 * include/default-signal.h: Add support for sjlj-exceptions.
457 1999-11-18 Tom Tromey <tromey@cygnus.com>
459 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
461 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
463 (method_cache): Made larger.
465 1999-11-11 Tom Tromey <tromey@cygnus.com>
467 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
468 initializing mutex. Initialize `count' when required.
470 1999-11-07 Anthony Green <green@trip.cygnus.com>
472 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
475 1999-11-05 Tom Tromey <tromey@cygnus.com>
477 * java/lang/natThread.cc (destroy): Removed incorrect comment.
479 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
481 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
482 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
485 1999-11-05 Tom Tromey <tromey@cygnus.com>
487 * java/lang/natThread.cc (stop): Removed argument name.
489 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
490 `private'; now has default access.
491 * Makefile.in: Rebuilt.
492 * Makefile.am (java/lang/ThreadGroup.h): Removed.
494 1999-11-04 Tom Tromey <tromey@cygnus.com>
496 * java/lang/natClass.cc (method_cache_count): Removed.
497 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
498 (_Jv_AddMethodToCache): Don't loop.
500 * configure.in: Removed `qt' threads case.
501 * include/quick-threads.h: Removed.
502 * quick-threads.cc: Removed.
504 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
505 (_Jv_ThreadDestroy): Likewise.
506 * include/no-threads.h (_Jv_ThreadCancel): Removed.
507 (_Jv_ThreadDestroy): Likewise.
508 * include/posix-threads.h (struct _Jv_Thread_t): Removed
510 (_Jv_ThreadCancel): Removed decl.
511 (_Jv_ThreadDestroy): Removed.
512 * posix-threads.cc (_Jv_ThreadCancel): Removed.
513 (throw_cleanup): Removed.
514 (really_start): Don't push or pop cleanup.
515 (_Jv_ThreadInitData): Don't initialize `exception' field.
516 * java/lang/Thread.java (stop): Officially unimplemented.
517 * java/lang/natThread.cc (stop): Officially unimplemented.
519 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
521 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
524 1999-11-02 Tom Tromey <tromey@cygnus.com>
526 * boehm.cc: Don't include boehm-config.h.
528 1999-11-01 Tom Tromey <tromey@cygnus.com>
530 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
531 (sum_blocks): Removed.
532 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
534 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
536 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
538 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
539 * java/io/InputStreamReader (InputStreamReader): ditto.
541 1999-10-22 Tom Tromey <tromey@cygnus.com>
543 * Makefile.in: Rebuilt.
544 * Makefile.am (java/lang/ClassLoader.h): New target.
545 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
548 * include/java-props.h (_Jv_Compiler_Properties): Changed
550 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
551 * include/jvm.h (_Jv_GCSetInitialHeapSize,
552 _Jv_GCSetMaximumHeapSize): Declare.
553 (JvRunMain, _Jv_RunMain): Declare.
554 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
555 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
556 (_Jv_GCSetMaximumHeapSize): Likewise.
557 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
558 (_Jv_GCSetMaximumHeapSize): Likewise.
559 * prims.cc (parse_heap_size): New function.
560 (_Jv_SetInitialHeapSize): Likewise.
561 (_Jv_SetMaximumHeapSize): Likewise.
562 (_Jv_Compiler_Properties): New global.
563 * gij.cc (help): New function.
565 (heap_size): Likewise.
566 (heap_max_size): Likewise.
567 (main): Parse arguments. Set _Jv_Compiler_Properties.
568 Include <config.h>, <java-props.h>.
569 (_Jv_Compiler_Properties): Removed.
571 1999-10-18 Tom Tromey <tromey@cygnus.com>
573 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
575 (redirect): New static field.
576 * java/lang/ClassLoader.java (getSystemClassLoader): Now
578 (getVMClassLoader0): Removed.
579 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
581 (getSystemClassLoader): Implemented.
583 1999-10-16 Anthony Green <green@cygnus.com>
585 * java/lang/ClassLoader.java (getSystemResource): Use
586 getSystemClassLoader instead of ClassLoader.system.
587 (getSystemResourceAsStream): Ditto.
589 * java/lang/natClassLoader.cc (redirect): Make static and
590 remove #ifdef INTERPRETER so it is always defined.
591 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
592 returns a VMClassLoader.
594 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
595 PropertyResourceBundle if a properties file is found before a
596 ResourceBundle class.
598 1999-10-15 Tom Tromey <tromey@cygnus.com>
600 * gij.cc (main): Formatting fixes.
601 (_Jv_Compiler_Properties): Define.
602 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
604 (init_properties): Set properites from _Jv_Compiler_Properties.
605 * include/java-props.h (_Jv_Compiler_Properties,
606 _Jv_Environment_Properties): Declare.
608 * include/java-props.h: Added copyright.
610 1999-10-13 Anthony Green <green@cygnus.com>
612 * libtool-version: Catch up by incrementing current.
614 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
615 * configure, include/config.h.in: Rebuilt.
616 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
617 * configure.in: Added --disable-getenv-properties and new define
618 `DISABLE_GETENV_PROPERTIES'.
620 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
621 (next_property_key): New function.
622 (next_property_value): New function.
623 (process_gcj_properties): New function.
624 (JvRunMain): Call process_gcj_properties.
627 * java/lang/natSystem.cc (init_properties): Set properties defined
630 * include/java-props.h: New file.
632 * java/lang/natSystem.cc (init_properties): Add new properties to
633 conform with Java Product Versioning Specification.
635 1999-10-12 Tom Tromey <tromey@cygnus.com>
637 * configure: Rebuilt.
638 * configure.in: Fixed test for --disable-java-net.
640 1999-10-06 Tom Tromey <tromey@cygnus.com>
642 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
643 when building Canadian cross.
644 (NATIVE): Don't define when cross-compiling.
646 1999-10-04 Tom Tromey <tromey@cygnus.com>
648 * java/net/natPlainSocketImpl.cc: Don't include headers if
649 java.net is disabled.
651 * Makefile.in: Rebuilt.
652 * Makefile.am (ZINCS): Removed. This is defined in configure.in
653 when needed, and must be left empty when not needed.
655 1999-10-01 Anthony Green <green@cygnus.com>
657 * THANKS: Refreshed from htdocs version.
659 1999-10-01 Steve Chamberlain <sac@pobox.com>
661 * Makefile.in: Rebuilt.
662 * Makefile.am (ZINCS): Define
664 * configure: Rebuilt.
665 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
667 * java/lang/ieeefp.h: Add definitions for picoJava.
669 1999-10-01 Tom Tromey <tromey@cygnus.com>
671 * configure: Rebuilt.
672 * configure.in: Set classpath when invoking gcj. Use changequote
673 around sed invocation.
675 * java/net/natPlainSocketImpl.cc: Stub native functions if
676 DISABLE_JAVA_NET is defined.
677 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
678 typo in exception string.
679 (getTimeToLive): Likewise.
680 Stub native functions if DISABLE_JAVA_NET is defined.
681 * java/net/natInetAddress.cc: Stub native functions if
682 DISABLE_JAVA_NET is defined.
683 * configure.host: Disable java.net for mips-tx39.
684 * configure, include/config.h.in: Rebuilt.
685 * acconfig.h (DISABLE_JAVA_NET): Undefine.
686 * configure.in: Added --disable-java-net and new define
689 1999-09-30 Tom Tromey <tromey@cygnus.com>
691 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
693 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
697 1999-09-28 Tom Tromey <tromey@cygnus.com>
699 * configure: Rebuilt.
700 * configure.in (PROCESS): In POSIX case, only set if not already
702 * configure.host (PROCESS): Set in mips-tx39 case.
704 * aclocal.m4, configure: Rebuilt.
705 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
706 appropriate AC_PROG_ symbol.
708 1999-09-24 Tom Tromey <tromey@cygnus.com>
710 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
712 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
714 Fix for PR java.util/47:
715 * configure, include/config.h: Rebuilt.
716 * configure.in: Don't look for ctime or ctime_r.
717 * Makefile.in: Rebuilt.
718 * Makefile.am (nat_source_files): Don't mention natDate.cc.
719 * java/util/natDate.cc: Removed.
720 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
722 (getAvailableIDs): Rewrote.
723 (getTimeZone): Rewrote.
724 * java/util/Date.java (toGMTString): New method.
725 (toLocaleString): New method.
728 1999-09-23 Tom Tromey <tromey@cygnus.com>
730 * configure: Rebuilt.
731 * configure.in: Print message when checking to see if gcj can
732 handle -fuse-divide-subroutine.
734 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
736 * java/lang/FirstThread.java (run0): Renamed to `run'.
739 * prims.cc (main_init): New function.
740 (JvRunMain): Call it.
741 (_Jv_RunMain): Likewise.
743 (main_init): Ignore SIGPIPE. Fixes PR 51.
745 1999-09-22 Tom Tromey <tromey@cygnus.com>
747 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
749 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
751 * java/text/MessageFormat.java (MessageFormat(String)): Set the
753 * java/text/NumberFormat.java: Check that object is a Number. If
754 not, throw IllegialArgumentException.
756 1999-09-21 Tom Tromey <tromey@cygnus.com>
758 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
759 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
761 * include/posix-threads.h (_Jv_MutexDestroy): Use
763 (_Jv_MutexLock): Likewise.
764 (_Jv_MutexUnlock): Likewise.
766 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
767 previous patch; it too was incorrect.
768 * java/io/PrintStream.java (PrintStream): Likewise.
770 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
771 refer to `this' before calling superclass constructor.
772 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
773 before calling superclass constructor.
775 1999-09-20 Tom Tromey <tromey@cygnus.com>
777 * configure: Rebuilt.
778 * configure.in: Send output of `-fuse-divide-subroutine' test
779 compilation to /dev/null.
781 1999-09-14 Tom Tromey <tromey@cygnus.com>
783 * include/java-insns.h: Turned constants into an enum. Added
784 multiple-inclusion protection.
786 1999-09-10 Tom Tromey <tromey@cygnus.com>
788 * configure: Rebuilt.
789 * configure.in: Build include/Makefile.
790 * Makefile.in: Rebuilt.
791 * Makefile.am (SUBDIRS): Added gcj and include.
792 (install-data-local): New target.
793 (extra_headers): New macro.
794 * include/Makefile.in: New file.
795 * include/Makefile.am: New file.
797 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
798 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
800 * boehm.cc: Don't include java-threads.h or gcj/field.h.
801 * resolve.cc: Include config.h.
802 * defineclass.cc: Include config.h.
803 * include/java-interp.h: Don't include config.h.
804 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
807 * gcj/javaprims.h: Regenerated namespace decls.
808 * classes.pl (scan): Don't put `;' after closing brace.
810 * Makefile.in: Rebuilt.
811 * Makefile.am (INCLUDES): Added -I for top_srcdir.
812 * configure.in: Create gcj/Makefile.
813 * gcj/Makefile.in: New file.
814 * gcj/Makefile.am: New file.
815 * java/lang/Object.h: Don't include any other headers.
816 * gcj/array.h: Renamed from include/java-array.h.
817 * gcj/field.h: Renamed from include/java-field.h.
818 * gcj/method.h: Renamed from include/java-method.h.
819 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
820 Updated all files to reflect new include structure.
822 1999-09-09 Tom Tromey <tromey@cygnus.com>
824 * configure: Rebuilt.
825 * configure.in: Fixed typo; variable is THREADSPEC and not
828 1999-09-08 Tom Tromey <tromey@cygnus.com>
830 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
831 previous change and implemented a correct test in the __m_count
834 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
837 1999-09-07 Tom Tromey <tromey@cygnus.com>
839 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
840 code and don't set errno.
842 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
843 not `r'. Changed `done_sleeping' to a `bool'.
845 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
847 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
848 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
849 by another thread, rather than by the GC.
850 (_Jv_CondWait): Prevent premature thread wakeup by GC.
851 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
852 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
855 1999-09-03 Tom Tromey <tromey@cygnus.com>
857 * configure: Rebuilt.
858 * configure.in: Check for fstat function.
859 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
862 1999-09-02 Tom Tromey <tromey@cygnus.com>
864 * include/java-array.h (jobjectArrayjchar): Removed unused
867 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
868 _Jv_PrepareCompiledClass while holding class mutex.
870 1999-09-01 Tom Tromey <tromey@cygnus.com>
872 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
873 (_Jv_PthreadGetMutex): Use it.
874 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
875 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
876 (_Jv_MutexLock): Likewise.
877 (_Jv_MutexUnlock): Likewise.
878 * include/config.h.in: Rebuilt.
879 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
880 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
881 * configure: Rebuilt.
882 * libgcj.spec.in: Don't mention INTERPSPEC.
883 * configure.in (INTERPSPEC): Removed.
884 Only run pthreads-related checks when using POSIX threads. Check
885 for m_count and __m_count in mutex structure.
887 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
889 * java/lang/natClass.cc: Fixed notification of threads
890 when class initialization is complete.
892 1999-09-01 Tom Tromey <tromey@cygnus.com>
894 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
895 * resolve.cc: Removed constants defined by
896 java.lang.reflect.Modifier.
897 Include <java/lang/reflect/Modifier.h>.
898 (_Jv_ResolvePoolEntry): Use values from Modifier.
899 (_Jv_DetermineVTableIndex): Likewise.
900 (_Jv_PrepareClass): Likewise.
902 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
903 java.lang.reflect.Modifier.
904 Include <java/lang/reflect/Modifier.h>.
905 (checkExtends): Use values from Modifier.
906 (checkImplements): Likewise.
907 (handleField): Likewise.
908 (handleConstantValueAttribute): Likewise.
909 (handleFieldsEnd): Likewise.
910 (handleMethod ): Likewise.
911 (handleMethodsEnd): Likewise.
912 (handleClassBegin): Likewise.
913 * interpret.cc: Removed constants defined by
914 java.lang.reflect.Modifier.
915 (continue1): Use values from Modifier.
916 * java/lang/natClassLoader.cc: Removed constants defined by
917 java.lang.reflect.Modifier.
919 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
920 JV_STATE_NOTHING, not `0'.
921 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
923 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
924 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
926 (_Jv_PthreadGetMutex): New function.
927 (_Jv_PthreadCheckMonitor): Use it.
928 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
929 (_Jv_MutexLock): Update `count'.
930 (_Jv_MutexUnlock): Likewise.
931 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
934 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
936 * Makefile.am (.java.lo): Add rule.
938 * Makefile.in: Rebuilt.
940 1999-09-01 Tom Tromey <tromey@cygnus.com>
942 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
943 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
945 (_Jv_CondNotify): Use it.
946 (_Jv_CondNotifyAll): Likewise.
948 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
950 1999-08-31 Tom Tromey <tromey@cygnus.com>
952 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
955 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
957 * posix-threads.cc: Include <errno.h>.
959 1999-08-23 Tom Tromey <tromey@cygnus.com>
961 * boehm.cc: Undefine TRUE and FALSE.
963 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
965 1999-08-21 Tom Tromey <tromey@cygnus.com>
967 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
970 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
972 * configure.in: Check for in_addr_t in netinet/in.h too. Check
974 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
975 (HAVE_STRUCT_IP_MREQ): Added.
976 * configure, include/config.h.in: Rebuilt.
977 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
979 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
980 Disable if ip_mreq is not available.
982 * configure.in: Check types ssize_t and in_addr_t.
983 * acconfig.h: Undefine them.
984 * configure, include/config.h.in: Rebuilt.
986 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
987 function that detects the signature of getpwuid_r.
988 (init_properties): Use it.
989 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
992 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
994 * interpret.cc (continue1): Implement explicit dispatch table.
995 insn_target: Explicit interpreter switch table.
996 SAVE_PC: New macro, moves pc saving code into instructions that
998 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
999 PC_REGISTER_ASM: New macro.
1000 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1001 opcode: Remove local variable.
1002 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1003 (POKEI): Use _Jv_word.
1004 (iinc): Use _Jv_word.
1005 (dupx): Change reference argument (sp) to pointer.
1008 * interpret.cc: Remove instruction timing instrumentation.
1010 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1011 comment. Don't use _Jv_ClassNameSamePackage.
1013 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1014 URLPathEntry, CacheEntry}: Removed.
1016 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1018 (.java.lo): Rule removed.
1020 * Makefile.in: Rebuilt.
1022 1999-08-19 Tom Tromey <tromey@cygnus.com>
1024 * java/lang/natThread.cc (class locker): New class.
1025 (join): Use a locker around _Jv_CondWait.
1028 1999-08-18 Tom Tromey <tromey@cygnus.com>
1030 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1031 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1033 1999-08-18 Tom Tromey <tromey@cygnus.com>
1035 * include/javaprims.h ("Java"): Regenerated namespace decls.
1037 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1039 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1040 from _Jv_InternClassStrings.
1042 * prims.cc (_Jv_RunMain): New function.
1043 (JvRunMain): Remove gij-support.
1045 * gij.cc (main): Use _Jv_RunMain.
1047 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1049 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1050 argument in temp variable.
1051 (continue1): For all op_x2y insns, use temp variable for
1052 intermediate value. Also remove some comments.
1054 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1055 (forName): Don't call _Jv_InitClass.
1057 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1059 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1061 * java/util/jar/JarInputStream.java: New file.
1063 * java/util/jar/JarEntry.java: New file.
1065 * java/util/jar/JarFile.java: New file.
1067 * java/net/URLClassLoader.java: New file.
1069 * java/net/JarURLConnection.java: New file.
1071 * gnu/gcj/protocol/jar/Handler.java: New file.
1073 * gnu/gcj/protocol/jar/Connection.java: New file.
1075 * java/security/SecureClassLoader.java: New file.
1077 * java/lang/ClassLoader.java (parent): New variable.
1078 (ClassLoader (ClassLoader)): new constructor.
1079 (findClass): New method.
1080 (loadClass): Add default 1.2 implementation.
1081 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1082 (readfully): Removed.
1084 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1085 (findSystemClass): New method.
1086 (VMClassLoader): Constructor rewritten.
1088 All other methods removed.
1090 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1091 to gnu::gcj::runtime::VMClassLoader.
1092 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1094 (VMClassLoader::findSystemClass): renamed from findBootClass.
1096 * Makefile.am: Add new files.
1097 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1099 * Makefile.in: Rebuilt.
1101 1999-08-17 Tom Tromey <tromey@cygnus.com>
1103 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1105 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1108 1999-08-16 Tom Tromey <tromey@cygnus.com>
1110 * configure: Rebuilt.
1111 * configure.in: Set DIVIDESPEC to empty string if compiler does
1112 not support -fuse-divide-subroutine.
1114 1999-08-14 Per Bothner <per@bothner.com>
1116 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1117 * java/lang/natClass.cc (initializeClass): Likewise.
1118 * java/lang/ClassLoader.java (resolveClass0): New static method.
1119 (resolveClass): Call resolveClass0.
1120 (findSystemClass): No longer static.
1122 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1124 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1126 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1128 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1131 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1133 * Makefile: Rebuilt.
1134 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1137 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1140 * configure: Rebuilt.
1141 * configure.in: Properly align --help output, fix capitalization
1143 * acinclude.m4: Likewise.
1145 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1147 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1149 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1150 (_Jv_callInterpretedMethod): Unused. Remove.
1151 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1153 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1154 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1155 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1156 * interpret.cc: use _Jv_word.
1157 * defineclass.cc: use_Jv_word.
1158 * resolve.cc: Use _Jv_word.
1159 (_Jv_ResolvePoolEntry): Return _Jv_word.
1160 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1161 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1163 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1166 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1168 * configure: Rebuilt.
1169 * configure.in (sched_yield): Try librt first, then libposix4.
1170 Add -lrt, -lposix4 to THREADSPEC.
1172 1999-08-08 Anthony Green <green@cygnus.com>
1174 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1176 1999-08-08 Anthony Green <green@cygnus.com>
1178 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1181 1999-08-08 Anthony Green <green@cygnus.com>
1185 * include/config.h.in: Rebuilt.
1186 * acconfig.h: Add INTERPRETER.
1188 * Makefile.in: Rebuilt.
1189 * Makefile.am (libffi_files): Identify the libffi object files for
1190 inclusion in libgcj.
1191 (LIBFFIINCS): Define.
1193 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1194 Dummy definition for configurations without an interpreter.
1196 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1197 java::lang::Boolean constructor.
1199 * include/java-interp.h: Always include java-cpool.h.
1201 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1202 when INTERPRETER not defined.
1204 * java/lang/Class.h (finalize): Define.
1206 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1207 IOException from File.getCanonicalPath.
1208 (getStream): Likewise.
1211 * THANKS: More thanks.
1213 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1215 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1217 (_Jv_PrepareClass): Allow non-abstract classes to
1218 have abstract subclasses.
1219 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1221 * interpret.cc (continue1/perform_invoke): Don't sign extend
1223 (continue1/lshl,lshr): Push long, not int.
1224 (continue1/ulshr): Use UINT64, not long long.
1225 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1227 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1228 * java/lang/FirstThread.java (run): Add top-level exception
1230 (run0): Renamed from run.
1232 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1234 * configure.in (--with-interpreter): Added.
1235 * include/config.h.in (INTERPRETER): Added.
1237 * java/lang/ClassLoader.java: File replaced.
1238 * java/lang/VMClassLoader.java: New file.
1239 * java/lang/natClassLoader.cc: New file.
1240 * gnu/gcj/runtime/MethodInvocation.java: New file.
1241 * gnu/gcj/util/path/SearchPath.java: New file.
1242 * gnu/gcj/util/path/PathEntry.java: New file.
1243 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1244 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1245 * gnu/gcj/util/path/URLPathEntry.java: New file.
1246 * gnu/gcj/util/path/CacheEntry.java: New file.
1247 * include/java-interp.h: New file.
1248 * include/java-cpool.h: New file.
1249 * include/java-insns.h: New file.
1250 * defineclass.cc: New file.
1251 * interpret.cc: New file.
1252 * resolve.cc: New file.
1254 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1255 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1256 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1258 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1259 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1261 (initializeClass): Use new JV_ prefixed names. Also, call
1262 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1264 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1265 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1266 JV_STATE_LINKED): New.
1267 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1268 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1269 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1270 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1271 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1272 _Jv_InterpMethodInvocation): New friends for interpreter.
1274 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1275 include/java-cpool.h and renamed with JV_ prefix.
1277 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1279 (_Jv_UnregisterClass): New decl.
1281 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1282 class loader argument.
1283 (_Jv_FindClass): Use class loader.
1285 * prims.cc (_Jv_makeUtf8Const): New function.
1286 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1287 (_Jv_NewPrimArray): Ditto.
1288 (_Jv_FindClassFromSignature): Ditto.
1289 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1290 * java/lang/reflect/natMethod.cc (getType): Ditto.
1292 * include/java-field.h (_Jv_Field::isRef): Make robust for
1293 non-resolved contexts.
1295 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1296 Also, don't mark class->next field.
1298 * java/lang/VirtualMachineError.java: Added FIXME note.
1300 * configure.in (INTERPSPEC): New spec.
1301 * libgcj.spec.in: Added INTERPSPEC.
1302 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1303 gnu/gcj/runtime/MethodInvocation.
1304 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1305 (ordinary_java_source_files): Added above mentioned java classes.
1307 * configure: Rebuilt.
1308 * Makefile.in: Rebuilt.
1310 1999-08-06 Tom Tromey <tromey@cygnus.com>
1312 * configure: Rebuilt.
1313 * configure.in: Look for sched_yield in -lrt.
1315 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1317 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1318 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1319 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1321 (toString): Print correctly when `country' is empty.
1323 1999-08-04 Per Bothner <per@bothner.com>
1325 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1327 1999-08-02 Tom Tromey <tromey@cygnus.com>
1329 * aclocal.m4, configure: Rebuilt for new libtool.
1331 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1333 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1334 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1335 * java/net/ServerSocket.java: Define ANY_IF.
1336 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1337 all network interfaces.
1338 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1339 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1341 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1343 * java/io/natFile.cc (performMkdir): Remove FIXME.
1344 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1346 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1348 * configure.in: Check for bstring.h.
1349 * configure, include/config.h.in: Rebuilt.
1350 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1351 * java/net/natPlainSocketImpl.cc: Likewise.
1353 1999-07-31 Tom Tromey <tromey@cygnus.com>
1358 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1360 * configure.in: Check for struct hostent_data and need for
1361 -D_REENTRANT for gethostbyname_r declaration.
1362 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1363 (lookup): Use hostent_data for fixed_buffer.
1364 * configure, include/config.h.in: Rebuilt.
1366 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1368 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1369 available. Don't cast memmove args to (void*).
1370 * configure.in: Do not abort if memmove is not available.
1372 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1374 * java/lang/natString.cc (substring): optimize where substring is
1376 * java/io/File.java (getName): don't return separator with file name.
1377 * java/io/natFile.cc (attr): fix overflow.
1379 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1381 * mauve-libgcj: Disable Object Serialization tests.
1383 1999-07-20 Warren Levy <warrenl@cygnus.com>
1385 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1386 Default to using PlainDatagramSocketImpl.
1387 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1389 1999-07-19 Tom Tromey <tromey@cygnus.com>
1391 * include/stamp-h.in: New file.
1393 1999-07-12 Tom Tromey <tromey@cygnus.com>
1395 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1398 1999-07-07 Andrew Haley <aph@cygnus.com>
1400 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1401 bytes to make it point after the instruction where the trap
1403 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1405 1999-07-07 Tom Tromey <tromey@cygnus.com>
1407 * mauve-libgcj: Explicitly enable formerly disabled java.text
1410 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1413 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1415 * java/net/URL.java (equals): Compare strings using String.equals.
1416 * java/net/URL.java (sameFile): Ditto.
1418 1999-07-02 Warren Levy <warrenl@cygnus.com>
1420 * configure: Rebuilt.
1421 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1422 * include/config.h.in: Rebuilt.
1423 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1424 (mcastGrp): Updated FIXME comments.
1425 (setOption): Fixed typo.
1426 (getOption):Implemented IP_MULTICAST_IF.
1428 1999-07-02 Warren Levy <warrenl@cygnus.com>
1430 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1431 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1432 (getTimeToLive): Implemented.
1433 (setOption): Implemented IP_MULTICAST_IF.
1435 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1437 * java/lang/String.java (toString): Check for this == null and throw
1438 NullPointerException.
1440 1999-07-01 Warren Levy <warrenl@cygnus.com>
1442 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1443 to count and revised comments to match.
1444 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1445 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1446 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1447 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1448 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1449 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1451 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1453 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1454 properly as count rather than outlength.
1455 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1456 output on overflow rather than buffer fill.
1457 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1458 if markPos is 0 and there is still room in the buffer.
1460 1999-07-01 Andrew Haley <aph@cygnus.com>
1462 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1463 This is a workaround for a bug in glibc's pthreads package which
1464 doesn't deliver any sigcontext information to a signal handler.
1466 1999-06-24 Tom Tromey <tromey@cygnus.com>
1468 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1469 * java/lang/fdlibm.h (HUGE): Conditionally define.
1471 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1473 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1474 * java/lang/e_log.c: Don't use __uint32_t.
1476 1999-05-27 Eric Christopher <echristo@cygnus.com>
1478 * configure: Rebuilt
1479 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1480 * acconfig.h: Rebuilt
1481 * include/config.h.in: Rebuilt
1483 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1484 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1485 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1486 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1487 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1488 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1489 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1490 and namespace collision with __uint32_t
1492 1999-06-23 Tom Tromey <tromey@cygnus.com>
1494 * java/util/zip/InflaterInputStream.java (read): Throw
1495 ZipException if inflater throws a DataFormatException.
1497 1999-06-23 Warren Levy <warrenl@cygnus.com>
1499 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1500 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1501 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1502 is not final per JDK.
1503 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1505 * java/util/zip/DataFormatException.java: Class extends Exception.
1506 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1507 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1508 * java/util/zip/ZipInputStream.java: ditto.
1509 (closeEntry): Changed method name to match JDK spec.
1511 1999-06-21 Tom Tromey <tromey@cygnus.com>
1513 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1516 * Makefile.in: Rebuilt.
1517 * Makefile.am (toolexeclibdir): Define as libdir when
1519 * configure: Rebuilt.
1520 * configure.in (USE_LIBDIR): New conditional.
1522 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1524 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1525 hostname in returned InetAddress objects.
1526 (getLocalHostname): Fix typo.
1527 * java/net/InetAddress.java (getByName): Set hostname on return
1529 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1532 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1534 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1535 interfaces if host==NULL.
1536 (accept): Throw message with InterruptedIOException.
1537 (getOption): Cache localAddress.
1538 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1539 'address' for DatagramSocket.
1540 (setTimeToLive): Fix compiler warnings.
1541 (getOption): Cache localAddress.
1542 * java/net/Socket.java (getLocalAddress): Don't need local
1543 InetAddress object. Add FIXME comment about calling checkConnect().
1544 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1545 connection queue to 50 as per JDK 1.2 docs.
1546 (ServerSocket(int,int)): Listen on all network interfaces by
1547 default, per JDK 1.2 docs.
1548 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1549 Add localAddress caching.
1551 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1553 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1555 (write(byte[],int,int)): ditto.
1557 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1559 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1561 1999-06-11 Warren Levy <warrenl@cygnus.com>
1563 * mauve-libgcj: Activated java.net Mauve tests.
1565 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1567 * java/net/natInetAddress.cc (aton): Fix typos.
1568 (lookup): Use a bigger buffer size for gethostbyname_r on all
1569 versions of glibc. Updated FIXME comment explaining this.
1570 Modified while loops to not set herr = ERANGE to work around glibc
1571 problems. Use user specified hostname in InetAddress result when
1572 available (consistent with JDK).
1574 1999-06-10 Warren Levy <warrenl@cygnus.com>
1576 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1577 Throw FileNotFoundException instead of IOException.
1579 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1581 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1582 in static field name.
1583 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1584 throughout rather than ParseException.
1586 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1588 * java/lang/Runtime.java (exec): Convert prog name and arguments
1590 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1591 environment array conversion. Preserve current environment if envp
1592 not passed. Preserve PATH unless explicitly specified.
1593 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1594 followed by EOF. Set a flag when a line is terminated by '\r' and
1595 ignore following '\n' if set.
1597 1999-06-02 Warren Levy <warrenl@cygnus.com>
1599 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1600 Ignore context if spec is an absolute URL. Fix braindead
1602 (hashCode): Use JDK 1.2 style algorithm.
1603 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1604 context URL properly.
1606 1999-05-30 Anthony Green <green@cygnus.com>
1608 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1609 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1611 1999-05-28 Warren Levy <warrenl@cygnus.com>
1613 * java/net/DatagramSocket.java (laddr): Removed.
1614 (DatagramSocket): Removed attempts to get or set laddr if null.
1615 (getLocalAddress): Reimplemented per spec.
1616 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1618 (joinGroup): Throw NullPointerException if any argument is null.
1619 (leaveGroup): ditto.
1620 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1621 * java/net/PlainSocketImpl.java (timeout): Added.
1622 (getInputStream): Added FIXME comment on how to support timeouts
1624 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1625 * java/net/Socket.java: Added FIXME comments to identify
1626 conflicting specs between the JCL and JDK 1.2 documents.
1627 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1628 if host is null. Get localport value resolved by kernel if bind
1630 (receive): Implemented support for timeouts in UDP.
1631 (setOption): Implemented based on natPlainSocketImpl version.
1633 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1634 resolved by kernel if bind lport is 0.
1635 (connect): Get localport value resolved by kernel if bind wasn't
1636 done to set localport.
1637 (accept): Implemented support for timeouts for ServerSocket.
1638 (setOption): Save value for SO_TIMEOUT.
1639 (getOption): Return timeout for SO_TIMEOUT.
1641 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1643 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1644 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1645 (setOption): Made abstract.
1646 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1647 to avoid cpp conflicts in native code.
1648 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1649 cpp conflicts in native code.
1650 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1651 * java/net/Socket.java (getLocalAddress): Implemented.
1652 (setTcpNoDelay): Implemented.
1653 (getTcpNoDelay): Implemented.
1654 (setSoLinger): Implemented.
1655 (getSoLinger): Implemented.
1656 (getSoTimeout): Verify class type.
1657 (setSendBufferSize): Implemented.
1658 (getSendBufferSize): Implemented.
1659 (setReceiveBufferSize): Implemented.
1660 (getReceiveBufferSize): Implemented.
1661 (toString): Prepended "Socket".
1662 * java/net/SocketImpl.java (toString): Rewritten.
1663 (getOption): Made abstract.
1664 (setOption): Made abstract.
1665 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1666 (setOption): Implemented.
1667 (getOption): Implemented.
1669 1999-05-26 Warren Levy <warrenl@cygnus.com>
1671 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1672 address when null. Set SO_REUSEADDR for multicasts.
1673 (getSoTimeout): Implemented.
1674 (setSoTimeout): Implemented.
1675 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1676 * java/net/MulticastSocket.java (getInterface): Implemented.
1677 (setInterface): Implemented.
1678 (setTimeToLive): Check for invalid ttl.
1679 (joinGroup): Verify multicast address and security.
1680 (leaveGroup): Verify multicast address and security.
1681 (send): Implemented.
1682 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1688 (getTTL): Implemented as non-native.
1692 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1693 (getSoTimeout): Implemented.
1694 (setSocketFactory): Made synchronized.
1695 * java/net/Socket.java (setSoTimeout): Implemented.
1696 (getSoTimeout): Implemented.
1697 (close): Made synchronized.
1698 (setSocketImplFactory): Made synchronized.
1699 * java/net/SocketImpl.java: Implement SocketOptions interface.
1700 * java/net/natInetAddress.cc: Corrected module name at top of file.
1701 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1702 (bind): Added FIXME.
1703 (peek): Implemented.
1709 (setOption): Implemented for SO_REUSEADDR.
1710 (getOption): Implemented for SO_REUSEADDR.
1712 1999-05-24 Tom Tromey <tromey@cygnus.com>
1714 * java/util/ResourceBundle.java (getBundle): Throw
1715 NullPointerException if baseName is null.
1717 1999-05-22 Tom Tromey <tromey@cygnus.com>
1719 * java/util/zip/ZipInputStream.java (fill): New method.
1720 (compressed_len): New instance variable.
1721 (getNextStream): Set it.
1722 (read): Reset inflater on EOF. Only read via `super' if entry is
1724 (skip): Only skip via `super' if entry is deflated.
1725 * java/util/zip/Deflater.java (last_input_count): Removed.
1726 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1728 (needsInput): Don't use last_input_count.
1729 (setInput): Don't set last_input_count.
1730 * java/util/zip/natInflater.cc (getRemaining): Return correct
1732 (inflate): Return 0 if input array is length 0.
1733 (setInput): Don't set last_input_count.
1734 * java/util/zip/Inflater.java (last_input_count): Removed.
1736 1999-05-21 Tom Tromey <tromey@cygnus.com>
1738 * Makefile.in: Rebuilt.
1739 * Makefile.am (INCLUDES): Added $(ZINCS).
1740 * configure: Rebuilt.
1741 * configure.in (ZINCS): New subst.
1743 1999-05-21 Andrew Haley <aph@cygnus.com>
1745 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1746 to signal options to allow the same exceptions to be rethrown
1749 1999-05-20 Andrew Haley <aph@cygnus.com>
1751 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1753 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1754 (INIT_FPE): Exception string made more informative.
1755 * include/sparc-signal.h (INIT_FPE): Exception string made more
1757 * testsuite/libjava.lang/Divide_1.java: New file.
1758 * testsuite/libjava.lang/Divide_1.out: New file.
1760 1999-05-19 Tom Tromey <tromey@cygnus.com>
1762 * aclocal.m4, configure: Rebuilt.
1763 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1765 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1768 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1770 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1772 (update): Fail in default case. Always initialize `strat'.
1774 * mauve-libgcj: Enable java.util.zip.
1776 1999-05-18 Warren Levy <warrenl@cygnus.com>
1778 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1779 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1780 PlainDatagramSocketImpl.java, and SocketOptions.java.
1781 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1782 * Makefile.in: Rebuilt.
1784 * java/net/DatagramPacket.java: New file.
1785 * java/net/DatagramSocket.java: New file.
1786 * java/net/DatagramSocketImpl.java: New file.
1787 * java/net/MulticastSocket.java: New file.
1788 * java/net/PlainDatagramSocketImpl.java: New file.
1789 * java/net/SocketOptions.java: New file.
1790 * java/net/natPlainDatagramSocketImpl.cc: New file.
1792 1999-05-18 Tom Tromey <tromey@cygnus.com>
1794 * java/util/zip/ZipOutputStream.java (level): Initial value is
1795 Deflater.DEFAULT_COMPRESSION.
1796 (close): New method.
1797 (closeEntry): Likewise.
1799 (put_version): Likewise.
1800 (write_entry): Likewise.
1801 (put2, put4): Now return `int'.
1802 (comment): Default to empty string.
1803 (bytes_written): New instance variable.
1805 * java/util/zip/ZipEntry.java (setComment): Limit length of
1807 (setCrc): Check CRC validity.
1808 (setExtra): Check argument validity.
1809 (setMethod): Likewise.
1810 (setSize): Likewise.
1811 (ZipEntry): Likewise.
1812 * include/javaprims.h: Updated namespace declarations.
1813 * Makefile.in: Rebuilt.
1814 * Makefile.am (ordinary_java_source_files): Mention new files.
1815 (nat_source_files): Likewise.
1816 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1819 (getInputStream): Handle compressed entries.
1820 * java/util/zip/GZIPOutputStream.java: New file.
1821 * java/util/zip/GZIPInputStream.java: New file.
1822 * java/util/zip/DataFormatException.java: New file.
1823 * java/util/zip/CheckedInputStream.java: New file.
1824 * java/util/zip/CheckedOutputStream.java: New file.
1825 * java/util/zip/InflaterInputStream.java: Implemented.
1826 * java/util/zip/natInflater.cc: New file.
1827 * java/util/zip/Deflater.java: Implemented.
1828 * java/util/zip/natDeflater.cc: New file.
1829 * java/util/zip/DeflaterOutputStream.java: Implemented.
1831 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1832 ZipException, not IOException.
1833 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1836 1999-05-17 Tom Tromey <tromey@cygnus.com>
1838 * java/lang/natSystem.cc (init_properties): URL now points to
1841 1999-05-12 Per Bothner <bothner@cygnus.com>
1843 * java/util/Calendar.java (set): First call computeFields if needed.
1844 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1846 1999-05-12 Tom Tromey <tromey@cygnus.com>
1848 * configure: Rebuilt.
1849 * configure.in: Look for -ldl when using the Boehm collector.
1850 Look for sched_yield in -lposix4.
1852 1999-05-12 Per Bothner <bothner@cygnus.com>
1854 * java/io/File.java (mkdirs): Handle a null parent directory.
1856 1999-05-12 Tom Tromey <tromey@cygnus.com>
1858 * include/javaprims.h: Updated namespace declarations.
1859 * classes.pl (scan): Uniquify class list.
1860 * Makefile.in, configure: Rebuilt.
1861 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1862 (built_java_source_files): New macro.
1863 (nat_headers): Added built_java_source_files.
1864 (javao_files): Likewise.
1865 (EXTRA_libgcj_la_SOURCES): Likewise.
1866 (libgcj.zip): Create built class files.
1867 ($(built_java_source_files:.java=.class)): New target.
1868 (jv_convert_LDADD): Added -L$(here)/.libs.
1869 * configure.in: Create links for ConcreteProcess.java and
1870 natConcreteProcess.cc.
1871 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1872 * java/lang/natEcosProcess.cc: New file.
1873 * java/lang/EcosProcess.java: New file.
1874 * java/lang/PosixProcess.java: New file.
1875 * java/lang/natPosixProcess.cc: New file.
1877 1999-05-12 Warren Levy <warrenl@cygnus.com>
1879 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1880 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1881 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1882 (connect): Throw ConnectException.
1884 1999-05-11 Tom Tromey <tromey@cygnus.com>
1886 * Makefile.in: Rebuilt.
1887 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1888 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1891 * Makefile.in: Rebuilt.
1892 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1893 and it causes problems with libtool.
1895 * Makefile.in, configure: Rebuilt.
1896 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1897 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1898 (jv_convert_DEPENDENCIES): Added ZDEPS.
1899 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1901 (THREADSPEC): Added `-L' to point to qthreads build directory.
1905 * configure, Makefile.in: Rebuilt.
1906 * Makefile.am (toolexeclib_DATA): New macro.
1907 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1908 Recognize --with-system-zlib.
1909 (GCSPEC): New subst.
1910 (THREADSPEC): New subst.
1911 (SYSTEMSPEC): New subst.
1912 (ZLIBSPEC): New subst.
1913 * libgcj.spec.in: New file.
1915 1999-05-10 Tom Tromey <tromey@cygnus.com>
1917 * java/io/InputStreamReader.java (read): If length is 0, return
1918 0. Reset `wpos' and `wcount' when buffer has been filled and
1921 * java/util/Properties.java (save): Removed `FIXME' comment.
1922 (load): Invalid characters in \u now treated as terminators.
1923 Make sure to append character resulting from `\' handling.
1924 Cast to `char' when appending to key or value.
1925 (skip_ws): Inverted test for whitespace.
1927 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1929 (readLine): Likewise.
1930 (readFully): Implemented.
1932 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1934 * java/awt/natToolkit.cc: Added copyright header.
1935 * java/util/zip/InflaterInputStream.java: Added copyright header.
1937 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1939 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1941 (getNextStream): Likewise.
1943 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1945 (getBundle): Don't explicitly throw null pointer exception.
1947 * gnu/gcj/RawData.java: Added copyright header.
1949 * include/jni.h (_Jv_va_list): Always define as va_list.
1951 1999-05-9 Anthony Green <green@cygnus.com>
1953 * java/text/DateFormat.java (computeInstance): Separate time
1955 (getDateTimeInstance): Ditto.
1956 (getDateTimeInstance(int,int)): New method.
1958 * Makefile.in: Rebuilt.
1959 * Makefile.am (ordinary_java_source_files): Add new classes.
1961 * java/util/PropertyResourceBundle.java: New file.
1962 * gnu/gcj/util/EnumerationChain.java: New file.
1964 1999-05-07 Tom Tromey <tromey@cygnus.com>
1966 * acconfig.h (GCJVERSION): New undef.
1967 * java/lang/natSystem.cc (init_properties): Define java.version,
1968 java.class.version, os.name, os.arch, os.version.
1969 Include <sys/utsname.h> if required.
1970 * configure: Rebuilt.
1971 * configure.in: Compute and define GCJVERSION.
1973 * java/lang/natSystem.cc (default_file_encoding): Now static.
1975 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1977 * libtool-version: New file.
1978 * Makefile.in: Rebuilt.
1979 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1982 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1983 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1986 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1987 (we pick those up already).
1989 1999-05-05 Per Bothner <bothner@cygnus.com>
1991 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1992 stub classes. (This is enough to get Kawa to compile against libgcj.)
1994 * gnu/gcj/RawData.java: New class.
1995 * doc/cni.sgml: Document RawData.
1997 * java/util/zip/InflaterInputStream.java: New stub class.
1998 * java/util/zip/ZipInputStream.java: New class. Partly works.
1999 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2000 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2001 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2002 * java/util/zip/ZipOutputStream.java: Start implementation.
2004 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2005 (default_file_encoding): New global, initial value is above macro.
2006 (init_properties): Default file.encoding to default_file_encoding.
2008 * Makefile.am: Add new classes.
2010 1999-05-05 Tom Tromey <tromey@cygnus.com>
2012 * Makefile.in: Rebuilt.
2013 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2014 (clean-local): New target
2016 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2017 (load, loadLibrary): Now native.
2019 * java/lang/Runtime.java (load, loadLibrary): Now native.
2020 (init): New native method.
2021 (Runtime): Use init.
2022 * prims.cc: Include <ltdl.h> if required.
2023 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2025 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2027 * configure.in: Switch from irix threads to posix threads
2028 * configure: Regenerate.
2030 1999-04-30 Tom Tromey <tromey@cygnus.com>
2032 * Makefile.in: Rebuilt.
2033 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2035 1999-04-29 Tom Tromey <tromey@cygnus.com>
2037 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2040 * java/util/Locale.java (Locale(String,String)): Implement in
2041 terms of 3-argument version; variant now defaults to empty
2043 (toString): Assume variant is not null.
2044 (equals): Assume all strings are not null.
2045 (Locale): Throw NullPointerException if any argument is null.
2047 * java/util/ResourceBundle.java (getBundle): Don't try the base
2048 name; now implicit in partialGetBundle call.
2049 (trySomeGetBundle): Search for parent bundles and call setParent
2051 (partialGetBundle): Added `langStop' argument. Use
2052 `Locale.toString' to compute bundleName.
2053 (resource_cache): New static field.
2054 (partialGetBundle): Cache the returned resource bundle. Now
2057 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2060 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2061 * java/text/natCollator.cc (decomposeCharacter): `base' now
2063 * Makefile.in: Rebuilt.
2064 * Makefile.am (ordinary_java_source_files): Added
2065 CollationElementIterator, CollationKey, Collator,
2067 (nat_source_files): Added natCollator.cc.
2068 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2069 (compare): Pass `this' to CollationElementIterator constructor.
2070 (getCollationElementIterator): Likewise.
2071 (ceiNext): Fix off-by-one error when finding initial substring.
2072 (next): Correctly mask off bits when computing return value.
2073 Fixed return values when one string is shorter than the other.
2074 * java/text/CollationElementIterator.java (collator): New field.
2075 (CollationElementIterator): Added collator argument.
2076 (next): Call ceiNext on collator object.
2078 1999-04-26 Tom Tromey <tromey@cygnus.com>
2080 * natCollator.cc: New file.
2082 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2083 (GregorianCalendar): Use it in all constructors.
2084 * java/util/Calendar.java (Calendar): Changed argument name to
2085 `zone' to match code.
2087 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2088 * java/text/CollationKey.java: New file.
2089 * java/text/CollationElementIterator.java: New file.
2090 * java/text/Collator.java: New file.
2091 * java/text/RuleBasedCollator.java: New file.
2093 * Makefile.in: Rebuilt.
2094 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2095 (jv_convert_LDADD): Explicltly add -lm -lc.
2097 1999-04-26 Tom Tromey <tromey@cygnus.com>
2099 * configure, Makefile.in: Rebuilt.
2100 * configure.in: Added AM_PROG_LIBTOOL.
2101 (GCOBJS): Use `.lo' form of files.
2102 (THREADOBJS): Likewise.
2103 (GCDEPS): Use `.la' form of library.
2104 (GCLIBS): Set to be the same as GCDEPS.
2105 (THREADDEPS): Use `.la' form of library.
2106 (THREADLIBS): Set to be the same as THREADDEPS.
2107 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2108 toolexeclib_LIBRARIES.
2109 (libgcj_la_SOURCES): Renamed for libtoolization.
2110 (EXTRA_libgcj_la_SOURCES): Likewise.
2111 (libgcj_la_DEPENDENCIES): Likewise.
2112 (libgcj_la_LIBADD): Likewise.
2113 ($(nat_files)): Use LTCXXCOMPILE.
2114 ($(c_files)): Use LTCOMPILE.
2115 (GCJCOMPILE): New macro.
2117 (.java.o): Likewise.
2118 ($(javao_files)): Likewise.
2119 (jv_convert_LINK): Use LIBTOOL.
2120 (nat_files): Use `.lo' files.
2121 (c_files): Likewise.
2122 (javao_files): Likewise.
2123 (.class.lo): Renamed.
2124 (.java.lo): Likewise.
2125 ($(nat_files)): Depend on %.lo.
2126 ($(c_files)): Likewise.
2127 ($(javao_files)): Likewise.
2128 (jv_convert_LDADD): Link against .lo files.
2129 (jv_convert_DEPENDENCIES): Depend on .lo files.
2130 (maintainer-check): Depend on libgcj.la, but examine .a file.
2131 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2132 (libgcj_la_LDFLAGS): New macro.
2134 1999-04-23 Warren Levy <warrenl@cygnus.com>
2136 * Makefile.am: Added URLDecoder and URLEncoder.
2137 * Makefile.in: Rebuilt.
2139 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2140 setSocketImplFactory to match spec.
2141 * java/net/Socket.java (getSoLinger): Changed return type to
2144 * java/net/URLDecoder.java: New file.
2145 * java/net/URLEncoder.java: New file.
2147 1999-04-21 Tom Tromey <tromey@cygnus.com>
2149 * java/lang/natString.cc (getBytes): Reverted earlier change and
2150 applied correct fix from Per Bothner.
2152 * java/lang/String.java: Don't throw
2153 UnsupportedEncodingException.
2155 * java/lang/natString.cc (getBytes): Correctly size result
2156 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2158 1999-04-20 Andrew Haley <aph@cygnus.com>
2160 * include/sparc-signal.h: new file.
2161 * configure.in: include/sparc-signal.h added.
2162 * configure: regenerated.
2163 * prims.cc (JvRunMain): signal handling code rewritten to be more
2165 (catch_segv): ditto.
2167 * include/i386-signal.h: reorganized.
2168 * include/default-signal.h: reorganized.
2170 1999-04-19 Tom Tromey <tromey@cygnus.com>
2172 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2173 once. From Anthony Green.
2175 1999-04-19 Andrew Haley <aph@cygnus.com>
2177 * Makefile.in: Processed with new automake.
2179 1999-04-19 Tom Tromey <tromey@cygnus.com>
2181 * include/javaprims.h: Removed security namespace.
2183 1999-04-20 Anthony Green <green@cygnus.com>
2185 * java/io/PrintStream.java (println): Remove extra println.
2187 1999-04-19 Anthony Green <green@cygnus.com>
2189 * Makefile.in: Rebuilt.
2190 * Makefile.am (ordinary_java_source_files): Add new security files.
2192 * java/security/NoSuchAlgorithmException.java,
2193 java/security/MessageDigest.java: New files.
2195 * include/javaprims.h: Add security namespace.
2197 1999-04-16 Per Bothner <bothner@cygnus.com>
2199 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2200 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2201 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2202 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2203 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2204 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2205 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2206 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2207 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2208 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2209 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2210 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2211 * Makefile.am: Various changes for new files and conversions.
2213 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2214 New overloading, allows greater efficiency.
2215 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2216 New overloading (for efficiency - avoids copying).
2218 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2219 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2221 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2222 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2223 (writeChars): Don't be quite so eager to flush.
2224 * java/io/PrintStream.java: Rewrite. Now more similar to
2225 OutputStreamWriter, using explicit UnicodeToBytes converter.
2226 Also, autoflush does not need to flush so often.
2227 * java/lang/natString.cc (getBytes): More efficient algorithm.
2228 (init(jbyteArray,jint,jint,jstring)): More efficient.
2230 1999-04-15 Warren Levy <warrenl@cygnus.com>
2232 * Makefile.am (ordinary_java_source_files): Added new Connection
2233 and Handler classes in gnu.gcj.protocol.file package.
2234 * Makefile.in: Rebuilt.
2236 * gnu/gcj/protocol/file/Connection.java: New file.
2237 * gnu/gcj/protocol/file/Handler.java: New file.
2238 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2239 if doInput allows input.
2240 (getOutputStream): Check if doOutput allows output.
2241 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2243 1999-04-14 Tom Tromey <tromey@cygnus.com>
2245 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2246 buffer larger to work around bug.
2247 From Bryce McKinlay <bryce@albatross.co.nz>.
2249 1999-04-14 Andrew Haley <aph@cygnus.com>
2251 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2252 NaNs are always converted to the same long value.
2253 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2256 1999-04-13 Tom Tromey <tromey@cygnus.com>
2258 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2259 instead switch on actual element type.
2261 * Makefile.in: Rebuilt.
2262 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2264 1999-04-13 Andrew Haley <aph@cygnus.com>
2266 * include/i386-signal.h, include/default-signal.h: New files.
2267 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2269 (catch_fpe): New function.
2270 * configure.in: Make link to appropriate include/java-signal.h.
2271 * configure: Rebuilt.
2272 * Makefile.am: include/java-signal.h added to dependency list.
2273 * Makefile.in: Rebuilt.
2275 1999-04-12 Urban Widmark <urban@svenskatest.se>
2277 * java/io/DataInputStream.java (readLine): Corrected handling of
2278 empty lines, from null to "".
2280 1999-04-12 Tom Tromey <tromey@cygnus.com>
2282 * Makefile.in: Rebuilt.
2283 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2285 * java/lang/natSystem.cc (SystemClass): New define.
2286 (init_properties): Synchronize.
2288 1999-04-08 Geoff Berry <gcb@gnu.org>
2290 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2291 * natPlainSocketImpl.cc (accept): Add missing else if check
2294 1999-04-08 Tom Tromey <tromey@cygnus.com>
2296 * java/lang/Long.java (parseLong): Corrected overflow detection
2298 * java/lang/Integer.java (parseInt): Corrected overflow detection
2301 * java/io/PrintStream.java (print): Handle null string argument.
2302 (println): Likewise.
2304 1999-04-07 Warren Levy <warrenl@cygnus.com>
2306 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2307 Set count to 0 when InputStreamReader returns -1 for EOF.
2309 1999-04-07 Tom Tromey <tromey@cygnus.com>
2311 * mauve-libgcj: Omit java.text.Collator,
2312 java.text.RuleBasedCollator.
2314 1999-04-06 Tom Tromey <tromey@cygnus.com>
2316 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2317 IOException from getHttpHeaders().
2318 (getHeaderFieldKey): Likewise.
2320 * include/javaprims.h: Regenerated declarations.
2322 * Makefile.in: Rebuilt.
2323 * Makefile.am (ordinary_java_source_files): Updated for removed
2326 1999-04-06 Per Bothner <bothner@cygnus.com>
2328 * java/util/zip/Adler32.java: New class.
2329 * java/util/zip/CRC32.java: Add working method bodies.
2330 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2331 * Makefile.in: Re-generate.
2333 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2335 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2336 from version in removed www hierarchy.
2337 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2338 version in removed www hierarchy.
2340 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2341 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2342 * gnu/gcj/www/protocol/http: Removed dir.
2343 * gnu/gcj/www/protocol: Removed dir.
2344 * gnu/gcj/www: Removed dir.
2346 * java/net/HttpURLConnection.java: Revised comments to indicate
2347 missing JDK 1.2 methods.
2349 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2350 hierarchy rather than the gnu/gcj/www/protocol one.
2351 * java/net/URLConnection.java: Updated status comments.
2352 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2353 the gnu/gcj/www/content one.
2355 1999-04-06 Per Bothner <bothner@cygnus.com>
2357 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2358 The gen-from-JIS program is in $(CONVERT_DIR).
2360 1999-04-06 Tom Tromey <tromey@cygnus.com>
2362 * mauve-libgcj: Renamed from mauve-libjava.
2364 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2366 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2367 (getResponseMessage): Implemented.
2368 (getResponseVals): New private method.
2370 * java/net/URLConnection.java (getContent): Implemented.
2371 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2373 1999-04-05 Tom Tromey <tromey@cygnus.com>
2375 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2376 (jv_convert_SOURCES): Renamed.
2377 (EXTRA_jv_convert_SOURCES): Likewise.
2378 (jv_convert_LDFLAGS): Likewise.
2379 (jv_convert_LINK): Likewise.
2380 (jv_convert_LDADD): Likewise.
2381 (jv_convert_DEPENDENCIES): Likewise.
2383 * Makefile.in: Rebuilt.
2384 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2387 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2389 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2390 method for comparison.
2392 * java/net/URLConnection.java (getContentLength): Implemented.
2393 (getContentType): Implemented.
2394 (getContentEncoding): Implemented.
2395 (getExpiration): Implemented.
2396 (getDate): Implemented.
2397 (getLastModified): Implemented.
2398 (getHeaderFieldInt): Implemented.
2399 (getHeaderFieldDate): Implemented.
2401 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2403 * java/net/URLConnection.java (toString): Implemented.
2404 (setContentHandlerFactory): Implemented.
2405 (setContentHandler): Wrote new private helper method.
2407 1999-04-01 Tom Tromey <tromey@cygnus.com>
2409 * Makefile.in: Rebuilt.
2410 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2411 of 1999-03-31; we always want to build all the .class files.
2412 Depend on java_source_files, not libgcj.zip.
2413 (nat_headers): Define in terms of ordinary_java_source_files.
2415 1999-03-31 Tom Tromey <tromey@cygnus.com>
2417 * Makefile.in: Rebuilt.
2418 * Makefile.am (special_java_source_files): New macro.
2419 (java_source_files): Use it.
2420 (ordinary_java_source_files): New macro.
2421 (java_source_files): Use it.
2422 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2423 creating headers for those files with hand-maintained headers.
2425 * include/javaprims.h: Regenerated namespace declarations.
2426 * classes.pl (scan): Include [0-9] in regexp for matching class
2427 names; for java.util.zip.CRC32.
2429 * Makefile.in: Rebuilt.
2430 * Makefile.am (nat_headers): Redefined to generate all possible
2433 * java/util/zip/ZipException.java: In package java.util.zip, not
2436 1999-03-30 Tom Tromey <tromey@cygnus.com>
2438 * configure: Rebuilt.
2439 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2440 eh-common.h when not building in tree with gcc.
2442 * Makefile.in: Rebuilt.
2443 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2444 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2446 ($(java_source_files:.java=.class)): New target.
2448 * Makefile.in: Rebuilt.
2449 * Makefile.am (java_source_files): Added
2450 java/net/HttpURLConnection.java and
2451 gnu/gcj/www/protocol/http/Connection.java.
2453 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2455 * gnu/gcj/www/protocol/http/Connection.java: New file.
2456 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2457 * java/net/HttpURLConnection.java: New file.
2458 * java/net/URLConnection.java (getHeaderField): Implemented default.
2459 (getHeaderFieldKey): Implemented default method.
2461 1999-03-30 Tom Tromey <tromey@cygnus.com>
2463 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2465 * java/util/zip/Deflater.java: Added copyright header.
2466 * java/util/zip/CRC32.java: Added copyright header.
2468 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2469 that it is automatically generated.
2470 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2472 * gnu/gcj/convert/BytesToUnicode.java,
2473 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2474 gnu/gcj/convert/Input_EUCJIS.java,
2475 gnu/gcj/convert/Input_UTF8.java,
2476 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2477 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2478 gnu/gcj/convert/Output_8859_1.java,
2479 gnu/gcj/convert/Output_JavaSrc.java,
2480 gnu/gcj/convert/Output_UTF8.java,
2481 gnu/gcj/convert/UnicodeToBytes.java,
2482 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2484 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2486 * Makefile.in, configure: Rebuilt.
2487 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2488 not if test subdir exists.
2489 (--enable-gcj-classes): Removed; gcj always used to generate
2491 (JAVA, JAVAC): Removed.
2492 (--enable-single-compilation, --enable-source-compilation):
2495 (NATIVE): New conditional.
2496 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2497 `install-exec' to work.
2498 (toolexeclibdir): Likewise.
2499 (toollib_LIBRARIES): Likewise.
2500 (AM_MAKEFLAGS): Don't pass tooldir.
2502 (javao_files): Redefined.
2503 (java_source_files): New macro.
2504 (c_source_files): New macro.
2505 (c_files): Redefined in terms of c_source_files.
2506 (java_io_files, java_lang_files, java_net_files, java_text_files,
2507 java_util_files, gnu_files, java_files): Removed.
2508 (class_io_files, class_lang_files, class_net_files,
2509 class_text_files, class_util_files, class_gnu_files, class_files):
2511 (nat_source_files): New macro.
2512 (nat_files): Redefined in terms of nat_source_files.
2513 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2514 java_source_files. Removed no-such-file.c.
2516 (ETAGS_ARGS): Removed.
2517 (TAGS_DEPENDENCIES): Likewise.
2518 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2520 (src_io_files, src_lang_files, src_text_files, src_util_files,
2521 src_gnu_files): Removed.
2522 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2523 (BUILT_SOURCES): Removed.
2524 (header-check): New target.
2526 (noinst_PROGRAMS): New macro.
2527 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2529 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2530 (gen-from-JIS): Build in top directory.
2531 (convert_source_files): New macro.
2532 (convert_SOURCES): New macro.
2533 (convert_LDFLAGS): Likewise.
2534 (convert_LINK): Likewise.
2535 (convert_LDADD): Likewise.
2536 (convert_DEPENDENCIES): Likewise.
2538 (gen-from-JIS): Removed.
2539 (gen_from_JIS_SOURCES): New macro.
2540 (gen_from_JIS_LDADD): Likewise.
2541 (gen_from_JIS_DEPENDENCIES): Likewise.
2543 * configure: Rebuilt.
2544 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2545 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2546 when defining conditional.
2548 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2550 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2551 The Unicode Consortium does not permit their re-distribution.
2552 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2553 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2555 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2557 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2559 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2561 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2562 from Unicode Consortium.
2563 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2564 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2565 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2566 New tables, generated using gen-from-JIS.
2567 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2568 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2569 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2570 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2572 * gnu/gcj/convert/Convert.java: New application.
2573 * Makefile.am, Makefile.in (convert): New program, using Convert.
2574 Build the various JIS conversion tables (in maintainer mode).
2576 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2578 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2580 * java/net/URL.java (URL): Deal with null property value. Use "."
2581 as separator in building class name.
2582 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2583 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2584 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2585 beginning of the substring rather than 'start'.
2587 1999-03-26 Tom Tromey <tromey@cygnus.com>
2589 * include/java-chartables.h: Rebuilt.
2590 * include/java-chardecomp.h: New file.
2591 * chartables.pl: Generate output files directly. Added support
2592 for generating decomposition header.
2593 (canonical_decomposition, full_decomposition): New globals.
2594 (DECOMPOSITION): New constant.
2595 (process_char): Call add_decomposition.
2596 (add_decomposition): New sub.
2597 (write_decompositions): New sub.
2599 1999-03-25 Tom Tromey <tromey@cygnus.com>
2601 * java/text/CollationElementIterator.java: New file.
2603 * mauve-libjava: Omit StringTest.
2605 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2607 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2608 without a '/' when parsing protocol. Handle ref outside of parseURL.
2609 (hashCode): Implemented.
2610 (set): Don't expand -1 to default port.
2611 (getDefaultPort): Removed.
2613 * java/net/URLStreamHandler.java (parseURL): Implemented.
2614 (toExternalForm): Implemented.
2616 1999-03-23 Tom Tromey <tromey@cygnus.com>
2618 * java/text/BreakIterator.java (getSentenceInstance):
2620 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2622 * Makefile.in: Rebuilt.
2623 * Makefile.am (nat_headers): Added IllegalAccessException.
2624 * java/lang/natClass.cc (newInstance): Throw
2625 IllegalAccessException, not IllegalAccessError.
2626 Include IllegalAccessException.h.
2628 1999-03-22 Tom Tromey <tromey@cygnus.com>
2630 * gnu/gcj/text/LineBreakIterator.java: New file.
2631 * java/text/BreakIterator.java (getLineInstance): Implemented.
2633 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2634 copy constructor private.
2635 (previous, next): Removed erroneous comment about line
2637 (previous): Correctly recognize break between non-letter on the
2638 left and letter on the right. Handle apostrophes correctly.
2640 * java/text/BreakIterator.java (getWordInstance): Implemented.
2641 * gnu/gcj/text/WordBreakIterator.java: New file.
2642 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2644 * gnu/gcj/text/BaseBreakIterator.java: New file.
2646 1999-03-19 Tom Tromey <tromey@cygnus.com>
2648 * java/text/BreakIterator.java: New file (partially stubbed out).
2649 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2651 * include/config.h.in: Rebuilt.
2652 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2653 (HAVE_TIMEZONE): Likewise.
2654 * configure: Rebuilt.
2655 * configure.in: Added timezone checks.
2656 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2659 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2661 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2662 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2663 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2664 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2665 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2666 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2667 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2668 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2670 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2671 (BSD_COMP): Kludge needed for Solaris2.
2673 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2675 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2676 URL(java.net.URL, string, URLStreamHandler) and call it with a
2677 null handler. In latter constructor, added SecurityManager check.
2678 (set): Expect null handler on bad protocol rather than an exception.
2679 (setURLStreamHandler): Simplified exception handling; return null
2680 on invalid protocol.
2682 1999-03-18 Tom Tromey <tromey@cygnus.com>
2684 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2686 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2688 Include PrintStream.h, InputStream.h.
2689 * java/lang/System.java (ForwardingInputStream,
2690 ForwardingOutputStream): Removed.
2691 (setErr, setIn, setOut): Now native.
2693 Reverted patch from 1999-02-12 to work around problem in
2695 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2696 (_Jv_eh_free): Use free.
2698 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2699 for path name. Minor formatting fixes.
2701 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2703 * prims.cc (fail_on_finalization): New function.
2704 (_Jv_GCWatch): Likewise.
2706 * prims.cc (JvRunMain): Initialize `nullp'.
2707 (nullp): New global.
2708 (catch_segv): Throw nullp.
2710 * Makefile.in: Rebuilt.
2711 * Makefile.am (ZIP): In "null target" case, zip is found in the
2714 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2718 * java/lang/StringBuffer.java (StringBuffer): Don't use
2719 ensureCapacity to set initial capacity.
2720 (capacity): Subtract `length' from return result.
2722 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2724 * java/io/natFileDescriptorPosix.cc (open): Throw
2725 FileNotFoundException, but with filename and errno in msg.
2727 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2729 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2730 functionality folded into java/net/URL.java per spec.
2732 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2733 than EEXIST for throwing FileNotFoundException.
2735 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2736 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2738 * java/net/URLStreamHandler.java (parseURL): Added stub.
2740 1999-03-15 Andrew Haley <aph@cygnus.com>
2742 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2745 1999-03-15 Andrew Haley <aph@cygnus.com>
2747 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2750 1999-03-12 Tom Tromey <tromey@cygnus.com>
2752 * prims.cc (catch_segv): New function.
2753 Include <signal.h> if HANDLE_SEGV defined. Include
2754 NullPointerException.h.
2755 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2758 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2759 a SimpleDateFormat, not just a DateFormat.
2760 (defaultCenturyStart, formatData, pattern): Now private.
2761 (append): Now `final'. Use `NumberFormat.format'.
2763 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2765 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2768 * java/text/MessageFormat.java (format): Use default MessageFormat
2770 (parse, parseObject): Wrote.
2772 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2775 1999-03-12 Andrew Haley <aph@cygnus.com>
2777 * java/lang/String.java (indexOf): Replace with native method for
2779 * java/lang/natString.cc (IndexOf): As above.
2781 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2782 Argument check corrected.
2783 (init(jbyteArray,jint,jint,jstring)): Likewise.
2785 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2786 1.2 compliant method.
2788 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2790 * java/lang/Float.java (byteValue, shortValue): Likewise.
2792 1999-03-11 Tom Tromey <tromey@cygnus.com>
2794 * java/text/DecimalFormat.java (parse): Wrote.
2796 * java/text/ChoiceFormat.java (parse): Set error index on
2797 ParsePosition object.
2799 * java/lang/Integer.java (parseInt): Throw exception on overflow
2800 when intermediate result is most negative number. Changed
2801 overflow detection as well.
2802 * java/lang/Long.java (parseLong): Likewise.
2804 * configure, Makefile.in: Rebuilt.
2805 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2806 CANADIAN when building in source tree that doesn't include gcc.
2807 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2810 * java/text/ChoiceFormat.java (nextDouble): Correct some
2811 off-by-one errors when masking or adding.
2813 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2814 parameter, if given. Use `%', not IEEEremainder.
2815 (scanFix): Throw error if multiplier already set.
2816 (computePattern): Wrote.
2818 1999-03-11 Andrew Haley <aph@cygnus.com>
2820 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2822 (nextDouble): Corrected masking logic. Handle interaction between
2823 `next' and negative numbers.
2825 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2827 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2828 * java/net/URL.java: Added general comments.
2830 1999-03-10 Tom Tromey <tromey@cygnus.com>
2832 * java/text/ChoiceFormat.java (parse): Wrote.
2834 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2836 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2837 Create ChoiceFormat objects.
2838 (format): Special-case ChoiceFormat.
2839 (scanFormatElement): Include { and } in generated style string.
2841 1999-03-09 Tom Tromey <tromey@cygnus.com>
2843 * java/text/ChoiceFormat.java: New file.
2845 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2847 * java/net/BindException.java: Created.
2848 * java/net/ConnectException.java: Created.
2849 * java/net/ContentHandler.java: Created.
2850 * java/net/ContentHandlerFactory.java: Created.
2851 * java/net/FileNameMap.java: Created.
2852 * java/net/MalformedURLException.java: Created.
2853 * java/net/NoRouteToHostException.java: Created.
2854 * java/net/ProtocolException.java: Created.
2855 * java/net/ServerSocket.java (@author): Fixed typo.
2856 * java/net/Socket.java (@author): Fixed typo.
2857 * java/net/SocketImpl.java (@author): Fixed typo.
2858 * java/net/SocketImplFactory.java (@author): Fixed typo.
2859 * java/net/URL.java: Created - nearly complete.
2860 * java/net/URLConnection.java: Created - near-empty stub.
2861 * java/net/URLStreamHandler.java: Created - incomplete stub.
2862 * java/net/URLStreamHandlerFactory.java: Created.
2863 * java/net/UnknownServiceException.java: Created.
2865 1999-03-09 Tom Tromey <tromey@cygnus.com>
2867 * java/lang/System.java (ForwardingInputStream): New class.
2868 (ForwardingOutputStream): Likewise.
2869 (in, out, err): Now `final' forwarding streams.
2870 (setIn, setOut, setErr): Use appropriate method on forwarding
2873 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2876 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2878 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2879 * java/util/zip/Checksum.java: New interface (complete).
2880 * java/util/zip/Deflater.java: New class (near-empty stub).
2881 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2882 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2883 * java/util/zip/ZipEntry.java: New class (complete).
2884 * java/util/zip/ZipException.java: New class (complete).
2885 * java/util/zip/ZipFile.java: New class (incomplete stub).
2886 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2888 1999-03-09 Tom Tromey <tromey@cygnus.com>
2890 * java/text/MessageFormat.java (MessageFormatElement): Removed
2891 `public' specifiers.
2893 * java/text/DecimalFormat.java (scanFormat): Increment index
2894 before processing exponential format. Fixed a couple typos in
2896 (format): Correct normalization of exponent.
2898 1999-03-08 Tom Tromey <tromey@cygnus.com>
2900 * java/text/SimpleDateFormat.java (parse): Throw
2901 IllegalArgumentException, not ParseException.
2903 1999-03-05 Tom Tromey <tromey@cygnus.com>
2905 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2906 when constructing DateFormatSymbols. Initialize numberFormat
2907 field of superclass.
2909 * java/text/DateFormat.java (equals): Rewrote.
2910 (getAvailableLocales): New method.
2911 (getDateInstance): New methods.
2912 (getDateTimeInstance): Likewise.
2913 (getTimeInstance): Likewise.
2914 (getInstance): New method.
2915 (computeInstance): New method.
2917 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2919 (safeGetResource): New method.
2920 (DateFormatSymbols): Use Locale paramater.
2921 (equals): Now protected.
2922 Made instance variables private.
2924 1999-03-04 Tom Tromey <tromey@cygnus.com>
2926 * java/text/DecimalFormat.java: New file.
2928 * java/text/NumberFormat.java (groupingUsed,
2929 maximumFractionDigits, maximumIntegerDigits,
2930 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2932 (setDecimalSeparatorAlwaysShown, setMultiplier,
2933 setPositivePrefix): Removed.
2934 (setMinimumFractionDigits, setMaximumFractionDigits):
2936 (format): Now final.
2937 Added many new methods.
2939 * Makefile.in: Rebuilt.
2940 * Makefile.am (gnu_files): New macro.
2941 (java_files): Added gnu_files.
2942 (class_gnu_files): New macro.
2943 (class_files): Use it.
2944 (src_gnu_files): New macro.
2945 (gnu.o): New target.
2946 (javao_files): Added gnu.o.
2948 * gnu/gcj/text/LocaleData_en_US.java: New file.
2949 * gnu/gcj/text/LocaleData_en.java: New file.
2950 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2951 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2952 (safeGetString): New method.
2953 (safeGetChar): Likewise.
2955 1999-03-03 Tom Tromey <tromey@cygnus.com>
2957 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2960 * java/text/FieldPosition.java (equals): Don't check for null
2961 object; instanceof does this.
2963 * java/util/Locale.java (clone): New method.
2966 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2968 * doc/cni.sgml: New file.
2970 1999-03-03 Tom Tromey <tromey@cygnus.com>
2972 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2974 * java/text/DecimalFormatSymbols.java: New file.
2976 1999-03-02 Tom Tromey <tromey@cygnus.com>
2978 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2980 * configure: Rebuilt.
2981 * configure.in: Check for sys/filio.h.
2983 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2985 (load): Always throw UnsatisfiedLinkError.
2986 (loadLibrary): Likewise.
2988 1999-03-02 Anthony Green <green@cygnus.com>
2990 * LIBGCJ_LICENSE: New file.
2991 * LIBJAVA_LICENSE: Removed.
2992 * Many files: libjava now libgcj.
2994 1999-03-02 Tom Tromey <tromey@cygnus.com>
2996 * include/java-chartables.h: Rebuilt.
2997 * chartables.pl (print_block): Make table `const'.
2998 (print_numerics): Likewise.
2999 (print_single_map): Likewise.
3000 (print_all_block): Likewise.
3001 (print_case_table): Likewise.
3002 (print_fast_tables): Likewise.
3003 * java/lang/natCharacter.cc (table_search): `table' argument now
3006 1999-03-01 Tom Tromey <tromey@cygnus.com>
3008 * java/util/Date.java (before, after): Inverted logic.
3010 * java/util/Date.java (parse): Handle case where first character
3011 in string is open parenthesis.
3012 (skipParens): Rewrote.
3014 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3015 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3017 * java/util/Date.java (parse): Correctly compute beginning of
3020 * java/util/Hashtable.java (get): Throw NullPointerException if
3022 (containsKey): Likewise.
3024 * java/util/Properties.java (list): Truncate value to 37
3025 characters and add `...'.
3027 * java/lang/Byte.java (parseByte): Pass `radix' to
3030 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3032 Include System.h, PrintStream.h.
3034 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3037 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3039 * configure: Rebuilt.
3040 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3043 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3045 * java/lang/SecurityManager.java: Import java.net.*.
3046 (checkMulticast): New methods.
3048 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3050 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3051 (nat_files): Add java/lang/reflect/natArray.o.
3052 (nat_headers): Add Field.h and NoSuchFieldException.h.
3054 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3055 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3056 (_Jv_FromReflectedField): Fix buglet.
3057 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3058 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3059 * prims.cc (_Jv_Abort): Include message in print-out.
3061 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3062 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3063 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3065 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3066 * include/config.h.in (HAVE_PWD_H): New feature macro.
3067 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3068 user.name, user.home, user.dir.
3070 * java/lang/reflect/Array.java: New class.
3071 * java/lang/reflect/natArray.cc: New native methods.
3072 * include/javaprims.h: Declare java::lang::reflect::Array.
3074 * java/lang/Class.h (getField): New private method. Add friends.
3075 * java/lang/Class.java (getField): Add private overload.
3076 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3077 getDeclaredMethods): Add working implementations.
3078 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3079 Finish implementation, except for access control.
3081 * java/lang/reflect/Modifier.java (toString): New overload.
3082 * include/java-method.h: New file.
3083 * java/lang/reflect/Method.java (index): Replaced by offset field.
3084 Remove various private fields - get them from _Jv_Field instead.
3085 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3086 New method implementations.
3088 * java/text/NumberFormat.java: Add a bunch of methods.
3090 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3092 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3094 1999-02-26 Tom Tromey <tromey@cygnus.com>
3096 * include/config.h.in: Rebuilt.
3097 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3098 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3099 HAVE_GETHOSTBYADDR_R): New defines.
3100 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3101 gethostbyaddr_r if available.
3103 * configure: Rebuilt.
3104 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3106 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3110 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3111 * prims.cc (_Jv_AllocBytesChecked): New function.
3113 * Makefile.in: Rebuilt.
3114 * Makefile.am (SUBDIRS): Removed `test'.
3115 * configure: Rebuilt.
3116 * configure.in: Don't build test/Makefile.
3117 * test/*: Removed all files.
3119 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3121 * java/lang/reflect/Constructor.java: Make class final to match spec.
3122 * java/lang/reflect/Method.java: Ditto.
3124 1999-02-25 Tom Tromey <tromey@cygnus.com>
3126 * java/net/natInetAddress.cc: Include <sys/types.h> before
3128 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3131 * java/net/natInetAddress.cc: Declare gethostname if required.
3132 * include/config.h.in: Rebuilt.
3133 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3134 * configure: Rebuilt.
3135 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3136 declared in unistd.h.
3138 1999-02-24 Tom Tromey <tromey@cygnus.com>
3140 * Makefile.in: Rebuilt.
3141 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3142 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3143 from private to "none".
3145 * include/javaprims.h: Regenerated class declarations with new
3147 * classes.pl (scan): Only generate decls for java.lang, java.io,
3150 1999-02-24 Tom Tromey <tromey@cygnus.com>
3152 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3153 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3155 1999-02-23 Tom Tromey <tromey@cygnus.com>
3157 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3158 not already defined.
3159 * java/io/natFile.cc (_REENTRANT): Only define if not already
3161 * include/config.h.in: Rebuilt.
3162 * acconfig.h (HAVE_BOEHM_GC): New define.
3163 * configure: Rebuilt.
3164 * configure.in: Define HAVE_BOEHM_GC if using it.
3165 * posix-threads.cc: Include boehm-config.h and gc.h if
3167 * include/posix-threads.h: Added explanatory note about Boehm GC.
3169 * java/io/BufferedReader.java (readLine): Only return null when
3170 EOF seen before any characters read. (In particular, an empty
3171 line should not return null.)
3173 * java/io/BufferedInputStream.java (read): Only refill once per
3176 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3177 java.lang.Character.classify12, java.lang.String.hash,
3178 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3179 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3181 * java/text/StringCharacterIterator.java (setIndex): No error if
3183 (next): Check for `pos == end', not `end - 1'.
3184 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3185 for null text in each constructor.
3186 (clone): Fixed order of arguments to constructor.
3188 1999-02-22 Tom Tromey <tromey@cygnus.com>
3190 * include/config.h.in: Rebuilt.
3191 * acconfig.h (HAVE_INET6): New define.
3192 (HAVE_SOCKLEN_T): Likewise.
3193 * java/net/PlainSocketImpl.java: Added copyright header.
3194 * java/net/natPlainSocketImpl.cc: Added copyright header.
3195 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3197 (connect): Likewise.
3199 (socklen_t): New typedef.
3200 (accept): Use socklen_t.
3201 * java/net/natInetAddress.cc: Added copyright header.
3202 (HAVE_GETHOSTNAME): Don't define.
3203 (HAVE_INET_ADDR): Likewise.
3204 (lookup): Fixed typo.
3205 (aton): Don't use `address' as name of local variable.
3206 (lookup): Use HAVE_INET6, not AF_INET6.
3208 * configure: Rebuilt.
3209 * configure.in: Look for functions inet_aton, inet_addr,
3210 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3211 Check for socklen_t typedef.
3213 * exception.cc (__throw): Declare as __noreturn__.
3215 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3217 * Makefile.am, Makefile.in: Also build java/net.
3218 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3220 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3221 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3223 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3224 * include/cni.h (JvMalloc, JvFree): New inline functions.
3225 (JvThrow): Add __noreturn__ attribute.
3226 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3227 (_Jv_Throw): Add __noreturn__ attribute.
3229 * java/net/PlainSocketImpl.java: Init fnum to -1.
3230 * java/net/ServerSocket.java: Add missing throws clauses.
3231 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3232 don't call create on the latter. Instead, other constructors
3233 have to explicitly call SocketImpl.create.
3234 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3235 from size_t to int, to match ::accept prototype.
3236 * java/net/natInetAddress.cc: Use JvFree rather than free.
3239 1999-02-22 Tom Tromey <tromey@cygnus.com>
3241 * include/javaprims.h: Added new classes.
3242 * java/text/StringCharacterIterator.java: New file.
3243 * java/text/CharacterIterator.java: New file.
3245 * java/text/ParseException.java (errorOffset): Now private.
3247 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3249 * java/net: New package.
3250 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3251 Socket.java,SocketException.java,SocketImpl.java,
3252 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3253 natPlainSocketImpl.cc}: New classes.
3255 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3256 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3257 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3258 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3260 * classes.pl: Translate package into "namespace", not "class".
3261 * include/javaprims.h: Update class list, using "namespace".
3263 1999-02-21 Tom Tromey <tromey@cygnus.com>
3265 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3266 Define when appropriate.
3268 1999-02-20 Tom Tromey <tromey@cygnus.com>
3270 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3271 as a single byte and \u07ff as two bytes.
3272 (_Jv_GetStringUTFLength): Likewise.
3273 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3274 with 0x0f, not 0x1f.
3276 1999-02-19 Tom Tromey <tromey@cygnus.com>
3278 * java/io/DataOutputStream.java (writeUTF): When encoding
3279 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3280 * java/io/DataInputStream.java (readUTF): Mask second byte of
3281 3-byte character with 0x3f, not 0x1f.
3283 * java/io/DataInputStream.java (readLong): Cast result of
3284 readUnsignedByte to long before using.
3286 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3289 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3290 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3291 argument to avoid warning.
3292 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3293 argument to avoid warning.
3295 1999-02-18 Tom Tromey <tromey@cygnus.com>
3297 * mauve-libjava: Omit java.io.DataInputOutput and
3298 java.io.Utf8Encoding.
3300 1999-02-17 Tom Tromey <tromey@cygnus.com>
3302 * Makefile.in: Rebuilt.
3303 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3304 * java/io/natFileDescriptorPosix.cc: Include
3305 InterruptedIOException.h, Thread.h.
3306 (write): Throw InterruptedIOException when required.
3308 * posix-threads.cc: Include <signal.h>.
3309 (_Jv_ThreadInterrupt): New function.
3311 (handle_intr): New function.
3312 (_Jv_InitThreads): Register handle_intr via sigaction.
3313 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3314 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3315 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3316 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3318 1999-02-19 Andrew Haley <aph@cygnus.com>
3320 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3322 (ThreadGroup (int)): Set the maximum priority of the initial
3325 1999-02-18 Andrew Haley <aph@cygnus.com>
3327 * java/lang/natClass.cc (forName): Check for the case where a
3328 classname is the name of an array and call FindClassFromSignature
3331 1999-02-18 Andrew Haley <aph@cygnus.com>
3333 * java/lang/StringBuffer (insert (int, String)): Move up any
3334 characters above the insert position and increase the length of
3335 the string buffer by the length of the argument.
3336 (insert (int, char[])): Likewise.
3337 (insert (int, char)): Likewise.
3338 (StringBuffer (String)): The initial capacity of the string buffer
3339 is 16 plus the length of the argument.
3340 (getChars): Add a JDK 1.2 FIXME.
3342 1999-02-18 Andrew Haley <aph@cygnus.com>
3344 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3347 1999-02-18 Andrew Haley <aph@cygnus.com>
3349 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3350 instead of floating-point equality. This is necessary for
3351 correct floating-point Hashtables.
3352 * java/lang/Float.java (equals): Ditto.
3354 1999-02-16 Tom Tromey <tromey@cygnus.com>
3356 * java/util/Properties.java (list): Truncate value to 37
3357 characters and add "...".
3359 1999-02-16 Tom Tromey <tromey@cygnus.com>
3361 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3362 if initCap is negative.
3363 (contains): Implement JDK1.2-style handling of null argument.
3364 (removeElement): Likewise.
3365 (indexOf): Likewise. Also, correctly handle case where idx is
3367 (lastIndexOf): Likewise.
3369 1999-02-16 Tom Tromey <tromey@cygnus.com>
3371 * java/lang/natString.cc (init): Increment source pointer in
3374 1999-02-16 Tom Tromey <tromey@cygnus.com>
3376 * exception.cc: Include NullPointerException.h.
3377 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3379 1999-02-16 Tom Tromey <tromey@cygnus.com>
3381 * Makefile.in: Rebuilt.
3382 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3384 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3386 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3387 we're compiling canadian.
3388 * configure: Regenerated.
3390 1999-02-12 Andrew Haley <aph@cygnus.com>
3392 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3393 deleted from libgcj.
3395 1999-02-12 Tom Tromey <tromey@cygnus.com>
3397 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3398 (_Jv_eh_free): Don't call free.
3399 Don't declare malloc or free.
3401 1999-02-11 Tom Tromey <tromey@cygnus.com>
3403 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3405 1999-02-11 Andrew Haley <aph@cygnus.com>
3407 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3408 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3409 needed by java.lang.*.
3410 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3411 wf_fmod.o: Removed from libjava.a.
3413 1999-02-11 Tom Tromey <tromey@cygnus.com>
3415 * include/javaprims.h: Reverted previous change; with it
3416 exception.cc can't compile.
3418 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3420 * include/config.h.in: Rebuilt.
3421 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3423 * configure: Rebuilt.
3424 * configure.in: Check for sched_yield. Look in thread library for
3425 all thread functions.
3427 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3428 no recursive mutexes.
3429 (_Jv_MutexDestroy): Define when required.
3430 (_Jv_MutexLock): Likewise.
3431 (_Jv_MutexUnlock): Likewise.
3432 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3433 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3434 (_Jv_Mutex_t): New structure.
3435 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3436 (_Jv_MutexLock): Likewise.
3437 (_Jv_MutexUnlock): Likewise.
3439 1999-02-10 Tom Tromey <tromey@cygnus.com>
3441 * aclocal.m4, configure, Makefile.in: Rebuilt.
3442 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3444 * configure.in: Changed to track library changes.
3445 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3446 (AM_CXXFLAGS): Likewise.
3447 (data_DATA): Likewise.
3448 (AM_CFLAGS): Likewise.
3449 (JC1FLAGS): Likewise.
3450 (libgcj_a_SOURCES): Likewise.
3451 (EXTRA_libgcj_a_SOURCES): Likewise.
3452 (libgcj_a_DEPENDENCIES): Likewise.
3453 (libgcj_a_LIBADD): Likewise.
3454 (libgcj.zip): Likewise.
3455 (CLEANFILES): Likewise.
3456 ($(nat_headers)): Likewise.
3457 (java/lang/FirstThread.h): Likewise.
3458 (java/lang/ThreadGroup.h): Likewise.
3459 (java/lang/String.h): Likewise.
3460 (java/lang/reflect/Field.h): Likewise.
3461 (BUILT_SOURCES): Likewise.
3462 (maintainer-check): Likewise.
3463 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3464 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3466 * java/util/natGregorianCalendar.cc (computeFields): Only use
3467 gmtime_r and localtime_r when configured for posix threads.
3469 * java/io/natFile.cc (get_entry): Only use readdir_r when
3470 configured for posix threads.
3472 * java/util/natGregorianCalendar.cc: Update copyright notice.
3473 * java/util/TimeZone.java: Ditto.
3474 * java/util/SimpleTimeZone.java: Ditto.
3476 1999-02-08 Tom Tromey <tromey@cygnus.com>
3478 * java/io/PrintStream.java (line_separator): New constant.
3479 (print): Use line_separator, not `file.separator' property.
3480 (println): Use line_separator.
3482 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3483 when trying to instantiate Class.
3485 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3486 NullPointerException if argument is null.
3488 * java/lang/Thread.java (setName): Throw NullPointerException, not
3489 IllegalArgumentException.
3492 1999-02-08 Andrew Haley <aph@cygnus.com>
3494 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3495 create new Classes with Class.newInstance().
3497 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3498 semiciolon to end of an array Class's signature if the elements of
3499 the array aren't themselves arrays.
3501 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3502 array of objects is always sizeof(jobject), not the size of the
3503 object to which the reference points.
3505 1999-02-08 Tom Tromey <tromey@cygnus.com>
3507 * java/util/BitSet.java (and): Throw NullPointerException when
3512 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3513 if argument is negative.
3514 (clear): Correctly compute `offset'. Throw
3515 IndexOutOfBoundsException when required.
3517 (get): Likewise. Also, return correct value.
3518 (ensure): Changed meaning of argument.
3519 (toString): Wrap contents in `{}'; put spaces after commas.
3520 (hashCode): Don't try to examine elements off the end of array.
3521 (or): Correctly include bits past the end of this bit set.
3524 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3526 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3527 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3529 1999-02-04 Andrew Haley <aph@cygnus.com>
3531 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3532 '/' in signatures to '.'
3533 (Class::getName): Likewise,
3534 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3536 * java/lang/natFirstThread.cc (run): Change '/' in main's
3539 1999-02-03 Andrew Haley <aph@cygnus.com>
3541 * configure.host: -ffloat-store added when compiling libjava on
3542 x86. fdlibm apparently relies on this.
3544 * java/lang/ThreadGroup.java (add): throw an exception if the
3545 ThreadGroup has been destroyed.
3547 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3550 1999-01-27 Tom Tromey <tromey@cygnus.com>
3552 * java/lang/StringBuffer.java (StringBuffer): Handle null
3555 1999-01-21 Tom Tromey <tromey@cygnus.com>
3557 * java/lang/natFirstThread.cc (run): Don't require main to be
3560 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3562 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3564 1999-01-20 Tom Tromey <tromey@cygnus.com>
3566 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3570 (unintern): Likewise.
3571 (_Jv_NewStringUtf8Const): Likewise.
3573 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3574 Character.isLetter, to see if character is self-quoting. Also,
3575 correctly handle quoted characters.
3576 (parse): Fixed typo. Also now throws ParseException.
3578 1999-01-15 Tom Tromey <tromey@cygnus.com>
3580 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3582 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3583 _Jv_SyncInfo has `init' member.
3585 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3588 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3589 IllegalMonitorStateException if unlock fails.
3591 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3593 (_Jv_NewObjectArray): Likewise.
3595 1999-01-14 Tom Tromey <tromey@cygnus.com>
3597 * java/lang/Character.java (isJavaIdentifierPart): Allow
3598 LETTER_NUMBER characters.
3600 * chartables.pl (process_char): Fixed error messages.
3602 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3603 * chartables.pl: Updated comments. Changed detection of non-digit
3604 numeric values (no longer miss \u00b2 and friends).
3606 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3607 currency symbols and connector punctuation.
3608 (isIdentifierIgnorable): Make 7f-9f ignorable.
3610 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3611 (_Jv_NewPrimArray): Likewise.
3612 (SIZE_T_MAX): New define.
3614 * java/lang/ClassLoader.java (system): Now private and final.
3616 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3619 * configure: Rebuilt.
3620 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3622 * exception.cc: Include gansidecl.h.
3624 1999-01-14 Andrew Haley <aph@cygnus.com>
3626 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3627 corrected: they didn't treat -0.0 and NaNs correctly.
3629 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3631 * nogc.cc: Use calloc to zero out memory.
3633 1999-01-11 Tom Tromey <tromey@cygnus.com>
3635 * java/lang/natClass.cc (isInstance): Return false if this class
3636 is primitive, not if class of `obj' is primitive.
3637 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3639 * java/io/SequenceInputStream.java (close): Handle case where `in'
3642 * java/text/DateFormat.java (format): New method.
3644 * mauve-libjava: Omit java.text.DateFormat.
3646 1999-01-08 Tom Tromey <tromey@cygnus.com>
3648 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3650 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3652 (_Jv_CondNotifyAll): Likewise.
3654 * configure: Rebuilt.
3655 * configure.in: Change --enable-source-compilation logic to work
3658 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3660 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3661 and RUNTESTFLAGS from AM_MAKEFLAGS.
3662 * configure.in: AM_RUNTESTFLAGS added.
3663 * configure.host: AM_RUNTESTFLAGS added.
3664 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3665 * configure: rebuilt.
3666 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3668 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3669 argv[] made conditional because embedded targets may not have
3671 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3672 explanatory comments added in call to super.
3674 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3675 exception thrown in the test harness itself added.
3676 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3678 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3680 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3682 1999-01-06 Tom Tromey <tromey@cygnus.com>
3684 * java/io/natFile.cc (get_entry): New function.
3685 (performList): Use get_entry.
3686 * include/config.h.in: Rebuilt.
3687 * acconfig.h (HAVE_READDIR_R): New define.
3688 * configure: Rebuilt.
3689 * configure.in: Look for readdir_r.
3691 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3693 * java/util/natDate.cc: Added copyright header.
3695 1999-01-05 Tom Tromey <tromey@cygnus.com>
3697 * include/config.h.in: Rebuilt.
3698 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3699 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3700 * configure: Rebuilt.
3701 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3702 unlink, and realpath.
3703 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3704 (stat): Conditionalize on HAVE_STAT.
3706 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3707 (performMkdir): Conditionalize on HAVE_MKDIR.
3708 (performRenameTo): Conditionalize on HAVE_RENAME.
3709 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3711 * include/config.h.in: Rebuilt.
3712 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3713 * configure: Rebuilt.
3714 * configure.in: Check for gmtime_r and localtime_r. For cross
3715 builds, assume they exist.
3717 * mauve-libjava: Include java.text.DateFormatSymbols again.
3718 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3719 from setAmPmStrings.
3721 * mauve-libjava: Omit java.text.DateFormatSymbols.
3723 1999-01-04 Tom Tromey <tromey@cygnus.com>
3725 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3727 * java/io/LineNumberReader.java (read): Decrement `count' in
3730 * java/io/BufferedWriter.java (write): Correctly determine when
3731 incoming data would overrun buffer. Flush buffer if write causes
3734 * java/io/BufferedOutputStream.java (write): Increment `count'
3735 after copying data into buffer.
3737 * java/io/FilterOutputStream.java (close): Call flush first.
3739 * java/io/PipedReader.java (read): If read causes `out' to catch
3740 up with `in', then set `in' to -1.
3742 * java/io/LineNumberInputStream.java (read): If no bytes read,
3743 return -1. If no bytes requested, return 0.
3745 * java/lang/StringBuffer.java (insert): If `str' is null, use
3748 1998-12-30 Anthony Green <green@cygnus.com>
3751 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3753 1998-12-23 Tom Tromey <tromey@cygnus.com>
3755 * java/io/PushbackInputStream.java (read): `off' already includes
3758 1998-12-17 Tom Tromey <tromey@cygnus.com>
3760 * Makefile.in: Rebuilt.
3761 * Makefile.am (GCJ_canadian): Include target_alias.
3763 * java/lang/natFirstThread.cc (run): Require main's class to be
3766 1998-12-16 Tom Tromey <tromey@cygnus.com>
3768 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3770 * java/util/ResourceBundle.java (getBundle): Throw
3771 NullPointerException if locale argument is null.
3773 * java/lang/natClass.cc (forName): Throw NullPointerException if
3775 Include NullPointerException.h.
3777 1998-12-14 Tom Tromey <tromey@cygnus.com>
3779 * java/lang/Character.java (Character): Implement Comparable.
3780 (compareTo): New methods.
3782 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3783 correct country and language codes.
3784 (UK, US): New constants.
3785 (setDefault): Language codes are lower-case.
3787 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3788 (getDeclaredConstructors): Likewise.
3789 (getDeclaredField): Likewise.
3790 (getDeclaredFields): Likewise.
3791 (getDeclaredMethod): Likewise.
3792 (getDeclaredMethods): Likewise.
3793 (getField): Likewise.
3794 (getFields): Likewise.
3795 (getMethod): Likewise.
3796 (getMethods): Likewise.
3797 * java/lang/Class.java: Declare new methods.
3798 * java/lang/Class.h: Declare new methods.
3800 * java/lang/natString.cc: Removed `#pragma implementation'.
3801 * include/cni.h (_Jv_GetStringChars): New function.
3802 * Makefile.in: Rebuilt.
3803 * Makefile.am (java/lang/String.h): Don't generate definition for
3806 * java/lang/natString.cc: Added `#pragma implementation'.
3808 * Makefile.in: Rebuilt.
3809 * Makefile.am (libjava.zip): Put build directory first in class
3810 path to avoid bug in compiler.
3812 1998-12-14 Anthony Green <green@cygnus.com>
3814 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3816 * include/javaprims.h: Add EventObject, ListResourceBundle and
3819 1998-12-13 Anthony Green <green@cygnus.com>
3821 * mauve-libjava: Run the ResourceBundle tests.
3823 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3826 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3828 * configure.in, configure: Make --enable-gcj-classes and
3829 --enable-source-compilation the default. (Nervously...) Yeah!
3830 Based on a patch from Tom Tromey.
3832 1998-12-13 Tom Tromey <tromey@cygnus.com>
3834 * java/util/EventObject.java: New file.
3835 * java/util/EventListener.java: New file.
3837 * include/javaprims.h: Updated class declarations.
3838 * Makefile.in: Rebuilt.
3839 * Makefile.am (nat_headers): Added Constructor.h.
3840 (java/lang/String.h): Don't inline String::length().
3841 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3842 * java/lang/Class.java (initializeClass, hackRunInitializers,
3843 hackTrampoline): No need to mark `final'.
3844 (getConstructor, getConstructors): Declare.
3845 * java/lang/reflect/Field.java (equals): New method.
3846 * java/lang/natClass.cc (getConstructor): New method.
3847 (getConstructors): Likewise.
3848 Include Method.h, Field.h, Constructor.h.
3849 * java/lang/reflect/Constructor.java: New file.
3850 * java/lang/reflect/Method.java (toString): No space before open
3852 (equals): Simplified.
3854 1998-12-13 Anthony Green <green@cygnus.com>
3856 * java/util/ResourceBundle.java: New file.
3857 * java/util/ListResourceBundle.java: New file.
3859 1998-12-12 Tom Tromey <tromey@cygnus.com>
3861 * java/lang/System.java (in, out, err): Now buffered streams by
3864 * include/javaprims.h: Updated class declarations.
3865 * Makefile.in: Rebuilt.
3866 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3867 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3869 (nat_files): Added natMethod.o.
3870 * java/lang/reflect/natMethod.cc: New file.
3871 * java/lang/reflect/Field.java (Field): Now extends
3873 * java/lang/reflect/AccessibleObject.java: New file.
3874 * java/lang/reflect/InvocationTargetException.java: New file.
3876 1998-12-11 Tom Tromey <tromey@cygnus.com>
3878 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3879 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3880 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3882 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3884 1998-12-09 Tom Tromey <tromey@cygnus.com>
3886 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3889 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3890 character is already titlecase.
3892 * java/lang/Character.java (isJavaLetter): Follow spec.
3893 (isJavaLetterOrDigit): Likewise.
3895 * java/util/GregorianCalendar.java (gregorianCutover): Append
3898 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3900 1998-12-08 Tom Tromey <tromey@cygnus.com>
3902 * java/lang/reflect/Modifier.java (toString): Replace second
3903 `static' with `synchronized'.
3905 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3906 * java/lang/Object.h (Object::hack12_6): Declare.
3907 * java/lang/Object.java (hack12_6): New function.
3909 1998-12-07 Tom Tromey <tromey@cygnus.com>
3911 * include/java-array.h (__JArray::clone): Removed decl.
3912 * prims.cc (__JArray::clone): Removed.
3913 * java/lang/natObject.cc (clone): Incorporate code to clone an
3916 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3917 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3918 Correctly use dtable_method_count.
3920 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3922 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3925 1998-12-06 Anthony Green <green@cygnus.com>
3927 * mauve-libjava: Don't test ResourceBundle.
3929 1998-12-04 Tom Tromey <tromey@cygnus.com>
3931 More JDK 1.2 spec fixes:
3932 * java/util/Date.java (millis): Now private.
3933 * java/text/DateFormat.java (DateFormat): Constructor now
3935 * java/lang/Void.java (Void): New private constructor.
3936 * java/lang/System.java (System): New private constructor.
3937 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3939 (currentClassLoader): New method.
3940 (currentLoadedClass): New method.
3941 * java/lang/Math.java (Math): New private constructor.
3942 * java/lang/Compiler.java (Compiler): New private constructor.
3943 * java/lang/Class.java (Class): New private constructor.
3944 * java/lang/Double.java (toString): Removed access specifier from
3945 two-argument `toString' method.
3947 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3949 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3950 causes it to be flushed from an fp register (where it may be
3951 longer than double precision) to a double in memory. This is
3952 essential to ensure correct rounding behaviour.
3954 1998-12-04 Tom Tromey <tromey@cygnus.com>
3956 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3959 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3960 explaining apparent divergence from JDK 1.2.
3962 1998-12-04 Per Bothner <bothner@cygnus.com>
3964 * include/no-threads.h: Remove unused parameter names.
3965 This silences a bunch of warnings.
3967 1998-12-04 Tom Tromey <tromey@cygnus.com>
3969 * include/config.h.in: Rebuilt.
3970 * acconfig.h (HAVE_CTIME_R): New symbol.
3972 1998-12-03 Tom Tromey <tromey@cygnus.com>
3974 * mauve-libjava: Added many more categories to reject.
3976 Changes to follow JDK1.2 spec:
3977 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3978 setErr, setIn, setOut): No need to be `final'.
3979 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3980 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3981 * java/lang/Object.java (wait): `nanos' argument is an int.
3982 * java/lang/VirtualMachineError.java: Class is abstract.
3983 * java/lang/ThreadDeath.java: Made constructors public.
3984 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3987 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3989 * java/text/DateFormatSymbols.java (getAmPmStrings,
3990 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3992 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3994 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3995 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3996 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3999 * java/lang/IllegalThreadStateException.java
4000 (IllegalThreadStateException): Changed extending class to match spec.
4002 * java/lang/NumberFormatException.java
4003 (java/lang/NumberFormatException): Changed extending class to match
4006 * java/util/Observer.java (Observer): Changed sig to match JCL.
4008 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4010 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4011 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4012 signature to match JDK 1.1 and 1.2.
4014 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4016 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4017 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4018 * Makefile.in, configure: Rebuilt.
4020 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4023 1998-12-02 Tom Tromey <tromey@cygnus.com>
4025 * mauve-libjava: New file.
4027 The remaining `-W -Wall' fixes:
4028 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4030 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4032 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4034 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4036 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4038 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4040 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4042 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4044 * java/lang/mprec.c (Balloc): Removed unused variable.
4045 (mult): Added parentheses per gcc suggestion.
4046 (pow5mult): Likewise.
4051 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4052 suggestion. Added cast to `int' to avoid signed/unsigned
4054 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4056 (IsAssignableFrom): Likewise.
4057 (_Jv_JNI_GetObjectField): Likewise.
4058 (_Jv_JNI_GetByteField): Likewise.
4059 (_Jv_JNI_GetShortField): Likewise.
4060 (_Jv_JNI_GetIntField): Likewise.
4061 (_Jv_JNI_GetLongField): Likewise.
4062 (_Jv_JNI_GetStringLength): Likewise.
4063 (_Jv_JNI_ToReflectedField): Likewise.
4064 (_Jv_JNI_FromReflectedField): Likewise.
4065 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4067 * Makefile.in: Rebuilt.
4068 * Makefile.am (AM_CFLAGS): Define conditionally.
4069 (WARNINGS): New macro.
4070 (AM_CXXFLAGS): Include WARNINGS.
4071 * configure: Rebuilt.
4072 * configure.in (USING_GCC): New conditional.
4074 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4076 * java/lang/Character.java: Changed classification constants to
4077 type `byte' to match JDK 1.2 docs.
4079 1998-12-01 Tom Tromey <tromey@cygnus.com>
4081 Some fixes to be `-W -Wall' clean:
4082 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4083 (_Jv_MarkArray): Likewise.
4084 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4085 (to_upper_title): Likewise.
4086 (isTitleCase): Likewise.
4087 (toTitleCase): Likewise.
4088 (getNumericValue): Likewise.
4089 (isLowerCase): Likewise.
4090 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4091 (avoids compiler warning).
4092 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4094 (getDeclaringClass): Likewise.
4095 (_Jv_LookupInterfaceMethod): Likewise.
4096 (_Jv_NewClass): Removed name of unused parameter.
4097 * exception.cc (_Jv_type_matcher): Removed unused variable.
4098 (_Jv_setup_eh_info): Removed name of unused parameter.
4099 * prims.cc (_Jv_NewArray): Always return a value.
4100 (_Jv_FindClassFromSignature): Likewise.
4101 * include/java-field.h (getNameUtf8Const): Removed name of unused
4103 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4105 (_Jv_ThreadSetPriority): Likewise.
4107 * java/lang/natString.cc (hashChars): Now static.
4109 * java/lang/FirstThread.java (FirstThread): Now final.
4111 * java/io/File.java (performMkdir, performRenameTo): Now private.
4113 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4114 if no time function defined.
4116 * configure: Rebuilt.
4117 * configure.in: Look for ctime_r, ctime.
4118 * java/util/Date.java (toString): Now native.
4119 * java/util/natDate.cc (toString): Rewrote.
4121 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4123 * Add LDFLAGS line to allow TX39 test cases to link when cross
4126 1998-11-23 Anthony Green <green@cygnus.com>
4128 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4129 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4130 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4131 include/java-array.h, include/java-assert.h, include/java-field.h,
4132 include/javaprims.h, include/jni.h, include/jvm.h,
4133 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4134 include/quick-threads.h, java/io/BufferedInputStream.java,
4135 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4136 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4137 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4138 java/io/CharArrayWriter.java,
4139 java/io/CharConversionException.java, java/io/DataInput.java,
4140 java/io/DataInputStream.java, java/io/DataOutput.java,
4141 java/io/DataOutputStream.java, java/io/EOFException.java,
4142 java/io/File.java, java/io/FileDescriptor.java,
4143 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4144 java/io/FileOutputStream.java, java/io/FileReader.java,
4145 java/io/FileWriter.java, java/io/FilenameFilter.java,
4146 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4147 java/io/FilterReader.java, java/io/FilterWriter.java,
4148 java/io/IOException.java, java/io/InputStream.java,
4149 java/io/InputStreamReader.java,
4150 java/io/InterruptedIOException.java,
4151 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4152 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4153 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4154 java/io/PipedReader.java, java/io/PipedWriter.java,
4155 java/io/PrintStream.java, java/io/PrintWriter.java,
4156 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4157 java/io/RandomAccessFile.java, java/io/Reader.java,
4158 java/io/SequenceInputStream.java, java/io/Serializable.java,
4159 java/io/StreamTokenizer.java,
4160 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4161 java/io/StringWriter.java, java/io/SyncFailedException.java,
4162 java/io/UTFDataFormatException.java,
4163 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4164 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4165 java/io/natFileDescriptorPosix.cc,
4166 java/lang/AbstractMethodError.java,
4167 java/lang/ArithmeticException.java,
4168 java/lang/ArrayIndexOutOfBoundsException.java,
4169 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4170 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4171 java/lang/Class.java, java/lang/ClassCastException.java,
4172 java/lang/ClassCircularityError.java,
4173 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4174 java/lang/ClassNotFoundException.java,
4175 java/lang/CloneNotSupportedException.java,
4176 java/lang/Cloneable.java, java/lang/Comparable.java,
4177 java/lang/Compiler.java, java/lang/Double.java,
4178 java/lang/Error.java, java/lang/Exception.java,
4179 java/lang/ExceptionInInitializerError.java,
4180 java/lang/FirstThread.java, java/lang/Float.java,
4181 java/lang/IllegalAccessError.java,
4182 java/lang/IllegalAccessException.java,
4183 java/lang/IllegalArgumentException.java,
4184 java/lang/IllegalMonitorStateException.java,
4185 java/lang/IllegalStateException.java,
4186 java/lang/IllegalThreadStateException.java,
4187 java/lang/IncompatibleClassChangeError.java,
4188 java/lang/IndexOutOfBoundsException.java,
4189 java/lang/InstantiationError.java,
4190 java/lang/InstantiationException.java, java/lang/Integer.java,
4191 java/lang/InternalError.java, java/lang/InterruptedException.java,
4192 java/lang/LinkageError.java, java/lang/Long.java,
4193 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4194 java/lang/NoClassDefFoundError.java,
4195 java/lang/NoSuchFieldError.java,
4196 java/lang/NoSuchFieldException.java,
4197 java/lang/NoSuchMethodError.java,
4198 java/lang/NoSuchMethodException.java,
4199 java/lang/NullPointerException.java, java/lang/Number.java,
4200 java/lang/NumberFormatException.java, java/lang/Object.h,
4201 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4202 java/lang/Process.java, java/lang/Runnable.java,
4203 java/lang/Runtime.java, java/lang/RuntimeException.java,
4204 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4205 java/lang/Short.java, java/lang/StackOverflowError.java,
4206 java/lang/String.java, java/lang/StringBuffer.java,
4207 java/lang/StringIndexOutOfBoundsException.java,
4208 java/lang/System.java, java/lang/Thread.java,
4209 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4210 java/lang/Throwable.java, java/lang/UnknownError.java,
4211 java/lang/UnsatisfiedLinkError.java,
4212 java/lang/UnsupportedOperationException.java,
4213 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4214 java/lang/Void.java, java/lang/natCharacter.cc,
4215 java/lang/natClass.cc, java/lang/natDouble.cc,
4216 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4217 java/lang/natMath.cc, java/lang/natObject.cc,
4218 java/lang/natRuntime.cc, java/lang/natString.cc,
4219 java/lang/natSystem.cc, java/lang/natThread.cc,
4220 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4221 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4222 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4223 java/text/FieldPosition.java, java/text/Format.java,
4224 java/text/NumberFormat.java, java/text/ParseException.java,
4225 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4226 java/util/BitSet.java, java/util/Calendar.java,
4227 java/util/ConcurrentModificationException.java,
4228 java/util/Date.java, java/util/Dictionary.java,
4229 java/util/EmptyStackException.java, java/util/Enumeration.java,
4230 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4231 java/util/Locale.java, java/util/MissingResourceException.java,
4232 java/util/NoSuchElementException.java, java/util/Observable.java,
4233 java/util/Observer.java, java/util/Properties.java,
4234 java/util/Random.java, java/util/SimpleTimeZone.java,
4235 java/util/Stack.java, java/util/StringTokenizer.java,
4236 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4237 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4240 * exception.cc: Include eh-common.h instead of duplicating
4243 1998-11-23 Tom Tromey <tromey@cygnus.com>
4245 * configure.host: Don't add `-O2' to libjava_flags. Only add
4246 `-Os' to libjava_flags once.
4248 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4250 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4251 * Makefile.in: likewise
4252 * acconfig.h: add ECOS conditional for configure.h
4253 * config.h.in: likewise
4254 * configure: add test for --with-ecos
4255 * configure.in: likewise
4256 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4257 rename call to avoid name clash.
4258 * java/lang/natSystem.cc: add eCos clock support.
4259 * java/util/natGregorianCalendar.cc: add eCos support.
4261 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4263 * Makefile.am, Makefile.in, configure.host: tx39 build option
4266 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4268 * java/io/BufferedReader.java: Added more comments for clarity.
4269 (mark): Used more mnemonic name for local var extraBuffSpace.
4271 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4272 confusion with private method of same name in superclass.
4273 (skipRedundantLF): Set fields in special case to avoid infinite
4274 recursion. Check if markPos has been invalidated in special case.
4275 (readLine): Rewritten to use readLine method of superclass.
4276 (skip): Incorporated code from lineEnd.
4278 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4280 * java/io/BufferedReader.java (readLine): New method.
4281 (lineEnd): new private method.
4282 (mark): Track special case for readLine of getting '\r' at the
4289 * java/io/InputStreamReader.java (read): Return number chars skipped
4290 rather than requested.
4292 * java/lang/StringBuffer.java (append): Update count and differentiate
4293 between field and local variable.
4295 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4296 seconds. Deal with military style time.
4297 (parse): Consistently treat all timezones in minutes until final
4298 calculation. Flag as non-local timezone. Return value in milliseconds.
4299 (setTime): Adjust for year offset from 1900.
4300 (UTC): Adjust for year offset from 1900.
4302 1998-11-17 Tom Tromey <tromey@cygnus.com>
4304 * configure: Rebuilt.
4305 * configure.in: Switch on host, not target.
4307 * Makefile.in: Rebuilt.
4308 * Makefile.am (GCJ_no): New macro.
4309 (GCJ): Use @CANADIAN@.
4310 (GCJH_no): New macro
4311 (GCJH_canadian): New macro.
4312 (GCJH): Use @CANADIAN@.
4313 (ZIP_no): New macro.
4314 (ZIP_canadian): New macro.
4315 (ZIP): Use @CANADIAN@.
4316 * aclocal.m4, configure: Rebuilt.
4317 * configure.in (CANADIAN): Compute and subst.
4319 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4321 * java/io/FileDescriptor.java (finalize): Only close file
4322 descriptor if valid.
4324 1998-11-17 Tom Tromey <tromey@cygnus.com>
4326 * prims.cc (_Jv_InitRuntime): Removed.
4328 1998-11-16 Tom Tromey <tromey@cygnus.com>
4330 * java/io/FileOutputStream.java (close): Only close file
4331 descriptor if valid.
4332 (finalize): New method.
4334 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4335 (_Jv_NewPrimArray): Likewise.
4336 * boehm.cc (_Jv_RegisterFinalizer): Use
4337 GC_REGISTER_FINALIZER_NO_ORDER.
4338 (GC_GENERIC_MALLOC): New define.
4339 (_Jv_AllocObj): Use it.
4340 (_Jv_AllocArray): Likewise.
4341 (_Jv_AllocBytes): Likewise.
4342 (_Jv_MarkObj): Just return if vtbl not set.
4343 (_Jv_MarkArray): Likewise.
4344 (MAYBE_MARK): New macro; use everywhere.
4345 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4347 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4349 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4350 to a jlong before calculation to prevent overflow.
4352 1998-11-16 Tom Tromey <tromey@cygnus.com>
4354 * Makefile.in: Rebuilt.
4355 * Makefile.am (nat_headers): Fixed typo.
4357 1998-11-15 Tom Tromey <tromey@cygnus.com>
4359 * java/lang/Class.h (Class::getName): Removed definition.
4360 * Makefile.in: Rebuilt.
4361 * Makefile.am (nat_headers): Added InstantiationException.h,
4362 NoSuchMethodException.h.
4363 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4364 (init_name): New global.
4365 (hackRunInitializers): Use clinit_name.
4366 Include InstantiationException.h, NoSuchMethodException.h.
4367 (newInstance): Do some error checking (but not all). Call
4369 (forName): Throw exception if class not found.
4370 (getName): New method.
4371 (forName): Transform class name from external format to internal
4372 format before lookup.
4374 1998-11-15 Anthony Green <green@cygnus.com>
4376 * java/lang/Class.h (Class::forName): Method is static.
4378 * java/lang/natClass.cc (newInstance): Add simple implementation.
4381 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4383 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4384 int), for compatibility with jc1.
4386 1998-11-14 Tom Tromey <tromey@cygnus.com>
4388 * include/config.h.in: Rebuilt.
4389 * acconfig.h (LINUX_THREADS): New define.
4390 * configure: Rebuilt.
4391 * configure.in: Define LINUX_THREADS if using POSIX threads on
4392 Linux. Look for pthread_mutexattr_setkind_np function.
4393 * posix-threads.cc (throw_cleanup): New function.
4394 (really_start): Push cleanup function.
4395 (_Jv_ThreadCancel): New function.
4396 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4397 (_Jv_ThreadInitData): Set `exception' field in new structure.
4398 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4400 (_Jv_ThreadWait): New function.
4401 (_Jv_InitThreads): Initialize daemon globals.
4402 (FLAG_DAEMON): New macro.
4403 (really_start): Notify daemon_cond when non-daemon thread exits.
4404 Include <java/lang/System.h>.
4405 (struct starter): `object' field now a thread.
4406 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4407 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4408 (_Jv_ThreadWait): Removed definition.
4409 (_Jv_Thread_t): Added `exception' field.
4410 (_Jv_ThreadCancel): Removed definition.
4412 1998-11-13 Tom Tromey <tromey@cygnus.com>
4414 * Makefile.in: Rebuilt.
4415 * Makefile.am (libjava.zip): Compute javac before changing
4418 * Makefile.in: Rebuilt.
4419 * Makefile.am (libjava.zip): Include directory entries.
4421 * Makefile.in: Rebuilt.
4422 * Makefile.am (expanded): New macro.
4425 1998-11-12 Tom Tromey <tromey@cygnus.com>
4427 * prims.cc (clone): New function.
4428 * include/java-array.h (__JArray::clone): Removed definition.
4430 * java/lang/natObject.cc (clone): Don't assert that class is not
4431 an array; array's `clone' method just calls this one.
4433 * Makefile.in: Rebuilt.
4434 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4435 Now creates zip file. Changed all users.
4437 (data_DATA): New macro.
4439 1998-11-11 Tom Tromey <tromey@cygnus.com>
4441 * configure: Rebuilt.
4442 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4444 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4446 * java/io/InputStream.java (reset): Add msg to thrown exception.
4448 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4450 * java/io/LineNumberInputStream.java: Rewritten.
4452 * java/io/StringBufferInputStream.java: Removed extraneous import.
4454 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4456 * java/io/StringBufferInputStream.java: Rewritten.
4458 * java/util/Date.java (parseMonth): Optimize.
4459 (parseDayOfWeek): Created.
4460 (parse): Optimize to use parseDayOfWeek.
4462 1998-11-11 Tom Tromey <tromey@cygnus.com>
4464 * java/lang/StringBuffer.java (append): Handle case where STR is
4467 * include/javaprims.h: Regenerated class declarations.
4469 * configure: Rebuilt.
4470 * configure.in: Added --enable-gcj-classes,
4471 --enable-single-compilation, --enable-source-compilation flags.
4472 * Makefile.in: Rebuilt.
4473 * Makefile.am (java_io_files): New macro.
4474 (java_lang_files): Likewise.
4475 (java_text_files): Likewise.
4476 (java_util_files): Likewise.
4477 (java_files): Use new macros.
4478 (java-io.o): New target.
4479 (java-lang.o): Likewise.
4480 (java-text.o): Likewise.
4481 (java-util.o): Likewise.
4482 (src_io_files): New macro.
4483 (src_lang_files): Likewise.
4484 (src_text_files): Likewise.
4485 (src_util_files): Likewise.
4486 (class_io_files): New macro.
4487 (class_lang_files): Likewise.
4488 (class_text_files): Likewise.
4489 (class_util_files): Likewise.
4490 (class_files): Use new macros.
4491 (javao_files): Define conditionally.
4492 (.java.o): New target.
4493 ($(javao_files)): New target.
4495 (GCJH): Added $(EXEEXT).
4496 (CLASSPATH_ENV): Removed.
4497 (GCJCOMPILE): New macro.
4499 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4501 * java/util/Date.java (parse): Written from scratch.
4503 1998-11-11 Tom Tromey <tromey@cygnus.com>
4505 * java/lang/Throwable.java (toString): Correct sense of test for
4506 determining when to include detail message in result.
4508 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4511 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4513 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4515 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4516 (_Jv_RegisterClass): Use it.
4517 * include/jvm.h (_Jv_RegisterClasses): Declare.
4518 * java/lang/natObject.cc (init): Removed.
4519 (sync_init): Never call _Jv_InitializeSyncMutex.
4520 (_Jv_InitializeSyncMutex): Don't set `init'.
4521 * prims.cc (JvRunMain): Don't run init functions.
4523 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4525 * java/lang/natClass.cc (initializeClass): Set state before
4526 resolving constants.
4528 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4529 (STATE_RESOLVED): New macro.
4530 (initializeClass): Call resolveConstants.
4531 (hackRunInitializers): Don't call resolveConstants.
4532 (_Jv_FindArrayClass): Move short-circuit return for primitive
4533 element types earlier in function.
4535 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4537 * prims.cc (no_memory): New global.
4538 (_Jv_makeUtf8Const): Throw no_memory.
4539 (_Jv_AllocObject): Likewise.
4540 (_Jv_NewObjectArray): Likewise.
4541 (_Jv_NewPrimArray): Likewise.
4542 (JvRunMain): Initialize no_memory.
4544 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4546 * java/io/FileInputStream.java: Corrected date comment.
4547 * java/io/SequenceInputStream.java: Rewritten.
4549 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4551 * java/lang/FirstThread.java (die): New method.
4552 * java/lang/natFirstThread.cc (die): Removed.
4554 (run): Use `DIE', not `die'.
4556 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4558 * java/io/CharArrayReader.java (read): Move check into synchronized
4559 block to prevent a close while in progress.
4562 * java/io/PushbackReader.java (read): Ditto.
4565 * java/io/StringReader.java (mark): Ditto.
4570 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4572 * java/io/PipedInputStream.java: Updated status.
4573 (connect): Added code to prevent infinite recursion and to
4574 differentiate exception causes.
4575 (read): Added code to differentiate exception causes.
4576 (receive): Made exception pass string with the cause.
4578 * java/io/PipedOutputStream.java: Updated status.
4579 (connect): Added code to call connect at the other end of the pipe.
4581 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4583 * java/io/PipedInputStream.java (connect): Throw exception if
4584 already connected to the same output stream.
4585 (read): Do bounds checking first.
4587 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4589 * java/io/PipedInputStream.java: Added private boolean outClosed.
4590 (available): Removed check if output stream is open.
4591 (close): Mark the buffer as empty so available returns 0.
4592 (read): Check if the output stream was closed and then return EOF
4593 when the buffer is empty.
4594 (receive): Mark the output stream as closed when passed a -1.
4596 * java/io/PipedOutputStream.java (close): Notify the input stream
4597 that there's no more data coming.
4598 (connect): Added a FIXME comment to note more coordination needed
4599 with PipedInputStream.
4600 (flush): Added a FIXME comment to mark what this method might do
4603 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4605 * java/io/PipedInputStream.java: Rewritten.
4607 1998-10-30 Tom Tromey <tromey@cygnus.com>
4609 * java/lang/Throwable.java: Rewrote from scratch.
4611 * java/lang/Class.h (Class): Don't mention newMultiArray.
4612 * prims.cc (newMultiArray): Removed.
4613 (_Jv_NewMultiArray): Removed.
4614 (newArray): Removed.
4615 (new_multi_array): New function.
4616 (_Jv_NewMultiArray): Rewrote from scratch.
4618 * include/javaprims.h: Regenerated class declarations.
4619 * classes.pl (scan): Don't declare PrimClass.
4620 * include/cni.h (JvPrimClass): Use new names for classes.
4621 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4622 added _Jv_PrimClass.
4623 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4624 (_Jv_initPrimClass): Removed.
4625 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4626 (_Jv_AllocObject): Added comment.
4627 (_Jv_NewObjectArray): Likewise.
4628 (_Jv_NewPrimArray): Likewise.
4630 1998-10-29 Tom Tromey <tromey@cygnus.com>
4632 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4633 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4635 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4637 * java/lang/natObject.cc (init): New global.
4638 (sync_init): Call _Jv_InitializeSyncMutex if required.
4640 * Makefile.in: Rebuilt.
4641 * Makefile.am (nat_headers): Added ClassLoader.h.
4642 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4643 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4644 internalAddClass, lookupArray no longer friends.
4645 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4646 _Jv_FindArrayClass now friends.
4647 * java/lang/natClass.cc (HASH_LEN): New macro.
4648 (HASH_UTF): Likewise.
4649 (loaded_classes): New global.
4650 (_Jv_FindClass): New function.
4651 (ClassClass): New define.
4652 (_Jv_FindClassInCache): New function.
4653 (_Jv_RegisterClass): Likewise.
4654 (_Jv_NewClass): Likewise.
4656 (ObjectClass): New define.
4657 (CloneableClass): New define.
4658 * prims.cc (_Jv_FindClass): Removed.
4659 (simpleLookupClass): Removed.
4660 (insertClass): Removed.
4661 (CLASSHASHSZ): Removed.
4662 (classPool): Removed.
4663 (_Jv_RegisterClass): Removed.
4664 (internalAddClass): Removed.
4665 (ClassClass): Removed.
4666 (RuntimeClass): Removed.
4667 (lookupArray): Removed.
4668 (CloneableClass): Removed.
4669 (CLASSMAXSIG): Removed.
4670 Rearranged file to group related functions together.
4671 (_Jv_IsInstanceOf): Moved to natClass.cc.
4672 (abort_final): Removed.
4673 Removed some unused includes.
4674 (classFromSig): Removed.
4675 (_Jv_FindClassFromSignature): New function.
4676 (_Jv_initPrimClass): Renamed.
4677 (getClass): Removed.
4679 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4681 * java/io/FileDescriptor.java (finalize): Throws IOException
4682 instead of Throwable.
4684 * java/io/FileInputStream.java: Rewritten.
4686 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4687 at the end of a comment.
4689 1998-10-29 Tom Tromey <tromey@cygnus.com>
4691 * include/javaprims.h: Regenerated class declarations.
4692 * classes.pl (scan): Don't special-case ClassLoader.
4694 * prims.cc (processClass): Removed.
4695 (_Jv_InitClass): Removed.
4696 Removed all CSTATE_ macros.
4697 (resolveConstants): Removed.
4699 (_Jv_NewMultiArray): Cleaned up.
4700 * Makefile.in: Rebuilt.
4701 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4702 * java/lang/Class.h (Class): Declare new methods. processClass no
4704 * java/lang/Class.java (hackTrampoline): New method.
4705 (initializeClass): Declare.
4706 (hackRunInitializers): Declare.
4707 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4708 (initializeClass): New method.
4709 (hackRunInitializers): New method.
4710 (init_name, void_signature): Moved from prims.cc.
4711 (_Jv_InitClass): New function.
4712 (isAssignableFrom): Don't call processClass.
4713 (STATE_NOTHING): New macro.
4714 (resolveConstants): New function.
4716 (ErrorClass): New define.
4718 * java/lang/Class.java (getClassLoader): Declare.
4719 * java/lang/ClassLoader.java: Rewrote from scratch.
4721 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4722 AbstractMethodError.h, IllegalAccessError.h,
4723 NoClassDefFoundError.h.
4724 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4725 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4726 longer static. Changed return type.
4727 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4728 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4729 * prims.cc (findMethodLocal): Removed.
4730 (processClass): Use _Jv_GetMethodLocal.
4732 1998-10-28 Tom Tromey <tromey@cygnus.com>
4734 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4735 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4737 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4738 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4740 * include/jni.h: Added copyright header.
4741 * include/javaprims.h: Added copyright header.
4742 * include/java-field.h: Added copyright header.
4743 * include/java-array.h: Added copyright header.
4744 * include/cni.h: Added copyright header.
4746 * include/javaprims.h: Regenerated class declarations using
4747 classes.pl; now they are complete.
4748 * classes.pl: New file.
4750 * java/lang/natMath.cc: Include <config.h>.
4751 * java/lang/reflect/natField.cc: Include <config.h>.
4752 * java/util/NativeUtil.java: Removed.
4753 * Makefile.in: Rebuilt.
4754 * Makefile.am (nat_headers): Added Math.h.
4755 * java/lang/Math.h: Removed.
4756 * java/util/natGregorianCalendar.cc: Added copyright header.
4758 * java/lang/natFloat.cc: Added copyright header.
4759 * java/lang/Byte.java: Added copyright header.
4760 * java/lang/Void.java: Added copyright header.
4761 * java/lang/Short.java: Added copyright header.
4763 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4765 * include/javaprims.h (java::io): Added bunch of missing classes.
4767 * java/io/DataInputStream.java (readLine): Added a special case
4768 for handling BufferedInputStream data to reduce the likelihood
4769 of a pushback error.
4770 (skipBytes): Added code to handle negative number of skip bytes.
4772 * java/io/StreamTokenizer.java: Rewritten.
4774 1998-10-28 Tom Tromey <tromey@cygnus.com>
4776 * java/util/natGregorianCalendar.cc (computeFields): Call
4777 getRawOffset as a method.
4779 * include/javaprims.h (java::io): Added FilterOutputStream.
4780 * Makefile.in: Rebuilt.
4781 * Makefile.am (nat_headers): Added PrintStream.h,
4782 FilterOutputStream.h.
4783 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4785 (die): New function.
4786 (run): Die if `main' not found, is not public, or is not static.
4788 * boehm.cc (_Jv_MarkObj): Use new field names.
4789 * include/java-field.h (JvGetFirstInstanceField): Use new field
4791 (JvNumInstanceFields): Likewise.
4792 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4793 (getInterfaces): Likewise.
4794 * prims.cc (CLASS_CONSTANTS): Removed.
4795 (CLASS_CONST_SIZE): Likewise.
4796 (CLASS_CONST_TAG): Likewise.
4797 (CLASS_CONST_DATA): Likewise.
4798 (CLASS_CONST_UTF8): Likewise.
4799 (WORD2UTF): Likewise.
4800 (CLASS_CLASS): Likewise.
4801 (CLASS_PRIM_SIG): Likewise.
4802 (CLASS_ARRAY_CACHE): Likewise.
4803 (HASH_CHARS): Likewise.
4804 (hashClassName): Likewise.
4805 Many changes to use new field names.
4806 * java/lang/Class.h (Class): Renamed fields to track compiler.
4808 1998-10-27 Tom Tromey <tromey@cygnus.com>
4810 * java/lang/natClass.cc: Use #pragma implementation.
4811 (getComponentType): Moved into header.
4812 (getModifiers): Likewise.
4813 (getName): Likewise.
4814 (getSuperclass): Likewise.
4815 (isArray): Likewise.
4816 (isPrimitive): Likewise.
4817 * include/jvm.h (_Jv_FindClass): Declare.
4818 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4819 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4820 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4821 * java/lang/Class.h: Rewrote from scratch.
4822 * prims.cc: Many changes to work with new Class.h.
4823 * include/java-field.h (CLASS_FIELDS): Removed.
4824 (CLASS_SFIELDS): Likewise.
4825 (CLASS_IFIELDS): Likewise.
4826 (CLASS_NFIELDS): Likewise.
4827 (CLASS_NIFIELDS): Likewise.
4828 (CLASS_NSFIELDS): Likewise.
4829 (CLASS_FSIZE): Likewise.
4830 (JvGetFirstInstanceField): Rewrote.
4831 (JvNumInstanceFields): Likewise.
4833 * java/lang/Object.h: Added copyright comment.
4835 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4837 * java/text: New package directory.
4838 * java/text/FieldPosition.java: New class.
4839 * java/text/ParsePosition.java: New class.
4840 * java/text/ParseException.java: New Exception class.
4841 * java/text/Format.java: New class.
4842 * java/text/NumberFormat.java: New (empty placeholder) class.
4843 * java/text/DateFormatSymbols.java: New class (no Locales support).
4844 * java/text/DateFormat.java: New Format class (incomplete).
4845 * java/text/SimpleDateFormat.java: New DateFormat class.
4847 * include/javaprims.h (java::test): Added new package and classes.
4848 * java/util/Calendar.java (clone): New method.
4849 * java/util/Date.java (toString): Added non-native implementation.
4850 (parse): Made public instead of synchronized.
4851 * java/util/natDate.cc (toString): Removed.
4852 * java/util/natGregorianCalendar.cc (computeFields):
4853 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4855 1998-10-27 Tom Tromey <tromey@cygnus.com>
4857 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4859 * prims.cc (lookupArray): Added explanatory comment.
4860 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4861 class. Mark the class of each object.
4862 (_Jv_MarkArray): Mark the object's class.
4864 * configure: Rebuilt.
4865 * configure.in: Create java-gc.h.
4866 * include/boehm-gc.h: New file.
4867 * include/no-gc.h: New file.
4868 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4870 * java/lang/Object.h: Include java-gc.h.
4871 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4872 friends, if defined.
4873 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4875 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4877 1998-10-26 Tom Tromey <tromey@cygnus.com>
4879 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4880 paragraph separators, not numbers.
4882 * java/io/Writer.java (write): Removed write(char) to avoid
4884 * java/util/Properties.java: Rewrote from scratch.
4885 * include/javaprims.h (java::io): Added PrintWriter,
4886 BufferedWriter, PushbackReader.
4888 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4890 * java/lang/System.java: exit() is a static method.
4892 1998-10-26 Tom Tromey <tromey@cygnus.com>
4894 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4896 (_Jv_NewStringUtf8Const): Likewise.
4897 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4898 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4900 * java/lang/Object.h (Object): Add mark_array as friend function.
4901 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4902 _Jv_AllocBytes, to ensure that header is marked.
4903 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4905 (mark_array): Push sync_info field for array.
4907 1998-10-24 Tom Tromey <tromey@cygnus.com>
4909 * java/lang/String.java (String): Updated for StringBuffer
4911 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4913 * java/lang/StringBuffer.java: Renamed fields to conform to
4914 serialization spec: buffer->value, next->count, copy->shared.
4916 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4918 * java/util/TimeZone.java: New class.
4919 * java/util/SimpleTimeZone.java: New class.
4920 * java/util/Locale.java: New file.
4921 * java/util/Calendar.java: Make almost complete.
4922 * java/util/GregorianCalendar.java
4923 * java/util/natGregorianCalendar.cc: New file.
4924 * java/util/Date.java: Re-written from scratch.
4925 * java/util/natDate.cc (setTime): Removed - no longer native.
4926 * include/javaprims.h (java::util): Add new classes.
4927 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4928 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4930 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4932 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4933 returning it as a jint.
4935 1998-10-23 Tom Tromey <tromey@cygnus.com>
4937 * prims.cc (arg_vec, main_group, main_thread): New globals.
4938 (JvRunMain): Use them.
4940 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4942 * java/io/DataInputStream.java: Rewritten.
4944 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4945 tertiary bytes with 0x80 per spec.
4947 1998-10-23 Tom Tromey <tromey@cygnus.com>
4949 * java/lang/String.java (init): Changed name of `copy' argument.
4950 * java/lang/natString.cc (init): Inverted sense of `copy'
4953 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4954 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4955 * boehm.cc (ObjectClass): New define.
4956 (ClassClass): Likewise.
4957 (mark_obj): Special-case Object and Class.
4959 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4961 * java/util/BitSet.java: Rewrote from scratch.
4963 * prims.cc (lookupArray): Removed useless cast.
4965 * java/lang/natObject.cc: Use `#pragma implementation'.
4967 * java/lang/String.java (init): Added `copy' argument.
4968 (String): Look in StringBuffer to find char array.
4969 * java/lang/natString.cc (init): Added `copy' argument.
4970 * java/lang/StringBuffer.java: Rewrote from scratch.
4972 * java/lang/Compiler.java: Rewrote from scratch.
4973 * java/lang/Throwable.java: Don't use NativeLang.
4974 * include/javaprims.h (java::lang): Don't mention NativeLang.
4975 * java/lang/Process.java: Rewrote from scratch.
4976 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4978 (currentClassLoader): Likewise.
4979 (currentLoadedClass): Likewise.
4980 * java/lang/natClass.cc (getClassLoader): Commented out.
4981 * java/lang/Class.java (getClassLoader): Commented out.
4982 * java/lang/Compiler.java: Removed.
4983 * java/lang/NativeLang.java: Removed.
4985 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4986 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4987 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4988 (_Jv_hashUtf8String): Now static.
4989 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4990 name of return type.
4992 * java/lang/Class.h (Class): Declare checkMemberAccess.
4993 * Makefile.in: Rebuilt.
4994 * Makefile.am (nat_headers): Added Member.h.
4995 * java/lang/natClass.cc: Include Member.h.
4996 (getDeclaredClasses): Call checkMemberAccess.
4997 * java/lang/Class.java (checkMemberAccess): Call
4998 SecurityManager.checkMemberAccess.
5000 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5002 * java/lang/SecurityManager.java: Rewritten.
5004 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5006 * java/applet/Applet.java, java/applet/AppletContext.java,
5007 java/applet/AppletStub.java, java/applet/AudioClip.java,
5008 java/awt/AWTError.java, java/awt/AWTException.java,
5009 java/awt/BorderLayout.java, java/awt/Button.java,
5010 java/awt/Canvas.java, java/awt/CardLayout.java,
5011 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5012 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5013 java/awt/Color.java, java/awt/Component.java,
5014 java/awt/Container.java, java/awt/Dialog.java,
5015 java/awt/Dimension.java, java/awt/Event.java,
5016 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5017 java/awt/Font.java, java/awt/FontMetrics.java,
5018 java/awt/Frame.java, java/awt/Graphics.java,
5019 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5020 java/awt/GridLayout.java, java/awt/Image.java,
5021 java/awt/Insets.java, java/awt/Label.java,
5022 java/awt/LayoutManager.java, java/awt/List.java,
5023 java/awt/MediaTracker.java, java/awt/Menu.java,
5024 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5025 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5026 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5027 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5028 java/awt/TextArea.java, java/awt/TextComponent.java,
5029 java/awt/TextField.java, java/awt/Toolkit.java,
5030 java/awt/Window.java, java/awt/image/ColorModel.java,
5031 java/awt/image/CropImageFilter.java,
5032 java/awt/image/DirectColorModel.java,
5033 java/awt/image/FilteredImageSource.java,
5034 java/awt/image/ImageConsumer.java,
5035 java/awt/image/ImageFilter.java,
5036 java/awt/image/ImageObserver.java,
5037 java/awt/image/ImageProducer.java,
5038 java/awt/image/IndexColorModel.java,
5039 java/awt/image/MemoryImageSource.java,
5040 java/awt/image/PixelGrabber.java,
5041 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5042 java/awt/peer/CanvasPeer.java,
5043 java/awt/peer/CheckboxMenuItemPeer.java,
5044 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5045 java/awt/peer/ComponentPeer.java,
5046 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5047 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5048 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5049 java/awt/peer/MenuBarPeer.java,
5050 java/awt/peer/MenuComponentPeer.java,
5051 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5052 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5053 java/awt/peer/TextAreaPeer.java,
5054 java/awt/peer/TextComponentPeer.java,
5055 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5056 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5057 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5058 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5059 java/net/MalformedURLException.java, java/net/NativeNet.java,
5060 java/net/ProtocolException.java, java/net/ServerSocket.java,
5061 java/net/Socket.java, java/net/SocketException.java,
5062 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5063 java/net/URL.java, java/net/URLConnection.java,
5064 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5065 java/net/URLStreamHandlerFactory.java,
5066 java/net/UnknownHostException.java,
5067 java/net/UnknownServiceException.java: Removed.
5069 1998-10-22 Tom Tromey <tromey@cygnus.com>
5071 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5072 finalizer is not Object.finalize.
5073 (internalAddClass): Don't set `final' member of class.
5074 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5075 other places that know about finalize() location.
5076 * java/lang/Class.h (Class): Removed `final' field.
5078 * aclocal.m4, configure: Rebuilt.
5079 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5080 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5082 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5083 * Makefile.in: Rebuilt.
5084 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5086 1998-10-21 Tom Tromey <tromey@cygnus.com>
5088 * java/lang/Object.java (finalize): Move to be first method in
5091 * configure: Rebuilt.
5092 * configure.in (GCINCS): Include contents of boehm-cflags file.
5094 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5096 * java/lang/ArrayIndexOutOfBoundsException.java
5097 (ArrayIndexOutOfBoundsException): Fixed string literal.
5098 * java/lang/StringIndexOutOfBoundsException.java
5099 (StringIndexOutOfBoundsException): Fixed string literal.
5101 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5103 * natFileDescriptorEcos.cc added.
5104 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5106 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5108 * acconfig.h: test for __int32_t and __uint32_t added.
5109 * include/config.h.in: test for __int32_t and __uint32_t added.
5110 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5111 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5112 * configure.in: test for __int32_t and __uint32_t added.
5113 * configure: test for __int32_t and __uint32_t added.
5115 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5117 * configure.in: Test for --enable ecos and link
5118 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5119 natFileDescriptorPosix.cc
5121 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5123 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5125 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5128 * java/io/CharArrayReader.java (close): Synchronize on lock
5129 object per Reader contract.
5130 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5131 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5132 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5133 Ensure that arg passed in isn't negative.
5135 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5136 constructing the superclass.
5138 * java/io/PushbackReader.java (close): Synchronize on lock
5139 object per Reader contract.
5140 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5141 (ready): Synchronize on lock obj. Throw IOException if reader
5143 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5144 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5145 Ensure that arg passed in isn't negative.
5146 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5148 * java/io/StringReader.java: Created.
5150 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5152 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5154 (read): Removed synchronized modifier to match JCL.
5155 (reset): Removed synchronized modifier to match JCL.
5156 (skip): Removed synchronized modifier to match JCL.
5158 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5160 * java/io/PushbackReader.java (PushbackReader): Made
5161 constructors public.
5163 1998-10-17 Tom Tromey <tromey@cygnus.com>
5165 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5166 constructors public.
5168 1998-10-16 Anthony Green <green@cygnus.com>
5170 * aclocal.m4, configure: Rebuilt.
5171 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5173 * configure.host: Rewrote.
5174 * Makefile.in: Rebuilt.
5175 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5176 (AM_CFLAGS): New macro.
5177 ($(c_files)): Use COMPILE macro.
5178 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5179 automake problem(s).
5181 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5183 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5185 * java/io/CharArrayReader.java: Created.
5187 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5189 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5190 size check to allow 0 per JCL.
5192 * java/io/PushbackReader.java: Created.
5194 1998-10-16 Tom Tromey <tromey@cygnus.com>
5196 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5197 <sys/time.h> includes.
5198 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5199 * include/no-threads.h: Conditionalize <unistd.h> include on
5202 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5204 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5207 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5209 * java/io/FilterReader.java: Created.
5211 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5213 * java/io/PushbackInputStream.java: Rewritten.
5215 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5216 that size passed to constructor is legal.
5217 (read): Check that args passed in are legal.
5218 (skip): Rewritten to get rid of the temporary buffer.
5219 (refill): Added marklimit check to grow the buffer.
5221 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5223 (bytesAvail): Removed.
5224 (read): Changed bytesAvail to Math.min.
5225 (skip): Changed bytesAvail to Math.min.
5227 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5228 from the throws clause.
5229 (skip): Rewritten to use a temporary buffer.
5231 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5233 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5236 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5238 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5239 to write the double one word at a time.
5241 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5243 * java/io/BufferedInputStream.java: Rewritten.
5245 1998-10-12 Tom Tromey <tromey@cygnus.com>
5247 * jni.cc: Include config.h and stddef.h.
5249 * java/lang/Class.h (_dispatchTable): Removed again.
5250 Removed all ACC_* defines again.
5252 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5254 * Makefile.am (nat_files): Add netField.o.
5255 (libjava_a_SOURCES): Add jni.cc.
5256 (java/lang/reflect/Field.h): New rule.
5257 * Makefile.in: Re-generated.
5258 * include/javaprims.h: Add some extra class and typedefs.
5259 * include/jni.h: New file.
5262 * include/java-field.h: New file.
5263 * include/jvm.h: #include <java-field.h>.
5264 * boehm.cc: #include <java-field.h>.
5265 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5266 * java/lang/reflect/Member.java: New class.
5267 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5268 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5270 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5272 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5273 testsuite/Makefile.in: Rebuilt.
5274 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5275 * configure.host: Created.
5277 1998-10-10 Tom Tromey <tromey@cygnus.com>
5279 * java/lang/natObject.cc (sync_init): Always allocate a new
5282 1998-10-09 Tom Tromey <tromey@cygnus.com>
5284 * java/io/ByteArrayInputStream.java (mark): Renamed from
5287 * java/io/FileOutputStream.java (finalize): Removed.
5288 * java/io/FileDescriptor.java (finalize): New method.
5290 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5292 * ByteArrayInputStream.java: Corrected status comment.
5294 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5296 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5298 1998-10-08 Tom Tromey <tromey@cygnus.com>
5300 * prims.cc (lookupArray): Use static array to initialize list of
5303 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5305 * prims.cc (lookupArray): Initialize the msize for new
5308 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5310 * configure: Rebuilt.
5311 * configure.in: Check for fsync and sleep.
5312 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5314 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5315 HAVE_SLEEP. Include config.h.
5317 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5318 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5321 1998-10-08 Tom Tromey <tromey@cygnus.com>
5323 * java/io/natFile.cc: Don't include SecurityManager.h.
5324 (performList): Renamed.
5325 (performMkdir): Likewise.
5326 (performRenameTo): Likewise.
5327 (performDelete): Likewise.
5329 * java/io/File.java (performDelete): Renamed from natDelete.
5330 (list): Now written in Java.
5331 (performList): New method.
5332 (performMkdir): New method.
5333 (mkdir): Now written in Java.
5334 (performRenameTo): New method.
5335 (renameTo): Now written in Java.
5337 1998-10-06 Tom Tromey <tromey@cygnus.com>
5339 * Makefile.in: Rebuilt.
5340 * Makefile.am (ETAGS_ARGS): New macro.
5341 (TAGS_DEPENDENCIES): Likewise.
5343 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5345 * Makefile.in: Rebuilt.
5346 * Makefile.am: Use -classpath option with javac.
5348 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5350 * java/io/FileOutputStream.java (finalize): Call
5353 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5355 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5357 * java/lang/mprec.c: Ditto.
5359 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5362 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5364 * java/io/InputStream.java (skip): Make local var i a long.
5366 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5368 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5369 * prims.cc (lookupArray): Use memcpy, not memmove.
5370 * include/config.h.in: Rebuilt.
5371 * acconfig.h (HAVE_MEMCPY): Added.
5372 * configure: Rebuilt.
5373 * configure.in: Check for memcpy again.
5375 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5376 String.compareTo, not ==.
5378 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5379 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5380 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5381 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5382 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5383 into new array's dtable.
5384 (_Jv_AllocObject): Use _Jv_DispatchTable.
5385 (_Jv_NewPrimArray): Likewise.
5386 (_Jv_NewObjectArray): Likewise.
5388 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5390 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5391 offending index value.
5392 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5394 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5395 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5397 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5399 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5401 * java/io/OutputStream.java (write): Use off and len parameters to
5402 output partial byte array.
5404 * java/io/BufferedReader.java, java/io/FileReader.java,
5405 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5406 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5407 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5408 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5410 * include/javaprims.h (java::lang): Added
5411 ExceptionInInitializerError, IllegalStateException,
5412 NoSuchFieldException, and UnsupportedOperationException.
5414 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5416 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5419 * include/java-array.h (__JArray): Added clone method.
5420 * prims.cc (CloneableClass): New define.
5421 (lookupArray): Initialize array class to indicate that it
5422 implements Cloneable.
5424 * java/lang/Class.h: Removed all ACC_* defines.
5425 * prims.cc: Include Modifier.h.
5426 (_Jv_LookupInterfaceMethod): Use methods in
5427 java.lang.reflect.Modifier, not ACC_ defines.
5429 * java/lang/Class.h (Class): Declare getClasses,
5430 getDeclaredClasses, getDeclaringClass, getModifiers,
5431 * java/lang/Class.java: Rewrote from scratch.
5433 * include/javaprims.h (java::lang): Added reflect and
5435 * Makefile.in: Rebuilt.
5436 * Makefile.am (nat_headers): Added Modifier.h.
5438 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5441 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5443 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5444 instead of test and abort.
5446 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5447 remove compiler warning.
5449 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5451 * java/lang/natDouble.cc: zero terminate string.
5452 * strtod.c: Set errno if no digits are found in fraction.
5454 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5456 * java/lang/reflect/Modifier.java: New file.
5458 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5459 * java/lang/VerifyError.java: Rewrote from scratch.
5460 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5461 * java/lang/UnknownError.java: Rewrote from scratch.
5462 * java/lang/StackOverflowError.java: Rewrote from scratch.
5463 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5464 * java/lang/InternalError.java: Rewrote from scratch.
5465 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5466 * java/lang/ExceptionInInitializerError.java: New file.
5467 * java/lang/Error.java: Rewrote from scratch.
5468 * java/lang/ClassFormatError.java: Rewrote from scratch.
5469 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5470 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5471 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5472 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5473 * java/lang/LinkageError.java: Rewrote from scratch.
5474 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5476 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5478 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5479 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5481 * include/cni.h (JvAllocObject): Moved from prims.cc.
5483 * prims.cc (JvAllocObject): Moved to cni.h.
5484 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5485 (finalize_name): Removed.
5487 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5489 * java/lang/Class.h (Class): Added size() method.
5490 * prims.cc (_Jv_MonitorEnter): Removed.
5491 (_Jv_MonitorExit): Removed.
5492 * java/lang/Object.h (JvSyncInfo): Removed.
5493 * Makefile.in: Rebuilt.
5494 * Makefile.am (nat_headers): Added Cloneable.h,
5495 CloneNotSupportedException.h.
5496 * java/lang/Object.h: Rewrote.
5497 * java/lang/natObject.cc: Rewrote from scratch.
5498 * java/lang/Object.java: Rewrote from scratch.
5500 * java/io/natFile.cc: Conditionally include <dirent.h>.
5501 (list): If no <dirent.h>, always return NULL.
5502 * configure: Rebuilt.
5503 * configure.in: Check for dirent.h.
5505 * prims.cc (lookupArray): Don't use sprintf.
5507 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5514 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5515 name conflict with method.
5517 * include/javaprims.h (java::util): Added HashtableEntry.
5519 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5521 * java/util/Hashtable.java: Rewritten.
5523 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5525 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5529 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5532 * posix-threads.cc (_Jv_CondWait): Now returns int.
5533 * include/javaprims.h (java::lang): Added
5534 IllegalMonitorStateException.
5535 * Makefile.in: Rebuilt.
5536 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5537 * include/no-threads.h (_Jv_CondDestroy): Removed.
5538 (_Jv_MutexDestroy): Removed.
5539 (_Jv_CondWait): Now returns int.
5540 (_Jv_CondNotify): Likewise. Added mutex argument.
5541 (_Jv_CondNotifyAll): Likewise.
5542 (_Jv_MutexLock): Always succeed.
5543 (_Jv_MutexUnlock): Likewise.
5544 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5545 (_Jv_HaveMutexDestroy): Define.
5546 (_Jv_CondNotify): Now returns int. Added mutex argument.
5547 (_Jv_CondNotifyAll): Likewise.
5548 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5549 (_Jv_MutexDestroy): Removed.
5550 (_Jv_CondWait): Now returns int.
5551 (_Jv_CondNotify): Likewise. Added mutex argument.
5552 (_Jv_CondNotifyAll): Likewise.
5553 * java/lang/natObject.cc (finalize_sync_info): New function.
5554 (init_mutex): Initialize `init' and register finalizer if
5557 (init_mutex): Use it.
5559 (notifyAll): Use it.
5561 (notify): Throw IllegalMonitorStateException on failure.
5562 (notifyAll): Likewise.
5563 (wait): Likewise. Also, throw InterruptedException if
5565 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5566 InterruptedException.h, IllegalArgumentException.h.
5567 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5569 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5570 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5571 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5572 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5573 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5574 * quick-threads.cc: Renamed all `JvPriv' functions.
5575 * prims.cc: Renamed all `JvPriv' functions.
5576 * posix-threads.cc: Renamed all `JvPriv' functions.
5577 * nogc.cc: Renamed all `JvPriv' functions.
5578 * no-threads.cc: Renamed all `JvPriv' functions.
5579 * boehm.cc: Renamed all `JvPriv' functions.
5580 * include/quick-threads.h: Renamed all `JvPriv' functions.
5581 * include/posix-threads.h: Renamed all `JvPriv' functions.
5582 * include/no-threads.h: Renamed all `JvPriv' functions.
5583 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5585 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5587 (JvPrivCondNotify): Do nothing.
5588 (JvPrivCondNotifyAll): Do nothing.
5590 * prims.cc (processClass): Handle case where state is
5593 * java/lang/natFirstThread.cc: Include <stdlib.h>
5595 * configure: Rebuilt.
5596 * configure.in: Fixed sense of --enable-libjava-debug.
5598 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5599 it can be used afterward by the assertion.
5601 * configure: Rebuilt.
5602 * configure.in: When cross-compiling, assume alloca.
5604 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5605 __builtin_alloca (autoconf docs are wrong here).
5607 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5609 (available): Use `FD_ZERO' (typo fix).
5611 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5613 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5614 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5616 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5617 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5620 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5622 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5624 * java/lang/natDouble.cc: Declare alloca safely.
5626 * configure, include/config.h.in: Rebuilt.
5627 * configure.in: Add alloca check.
5629 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5631 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5632 condition while calling notify.
5633 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5634 (interrupt): Hold mutex for interrupt condition while calling
5637 * java/lang/natString.cc (init): Allocate and try to read `count'
5638 characters, not `count - offset' characters.
5640 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5641 Correctly compute `count'.
5643 * java/lang/Boolean.java (getBoolean): Return false if property
5646 * java/lang/System.java (setProperties): Set prop_init.
5648 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5650 * java/io/PrintStream.java (println): Use line.separator, not
5652 * java/lang/System.java (out, err): Make both autoflush streams.
5653 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5655 * include/config.h.in: Rebuilt.
5656 * acconfig.h (HAVE_MEMCPY): Removed.
5657 * configure: Rebuilt.
5658 * configure.in: Never define HAVE_MEMCPY.
5660 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5662 (_Jv_AllocString): Use JvAllocObject again.
5663 * java/lang/Class.h (thread): New field.
5664 (_Jv_AllocString): No longer a friend.
5665 * prims.cc (processClass): Removed dead code. Changed to more
5666 closely follow the Java Language Specification.
5667 (processClass): Return early if already at the right state.
5669 * prims.cc (JvNewStringUTF): Removed.
5670 * include/cni.h (JvNewStringUTF): New function.
5671 (_Jv_NewStringUTF): Declare as `extern "C"'.
5672 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5674 * java/lang/natDouble.cc: Added copyright info and header
5675 comment. Include <stdlib.h>.
5676 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5677 bytes as are chars in string.
5679 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5681 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5685 * java/lang/System.java (init_properties): Now native.
5686 * java/lang/natSystem.cc (init_properties): New method.
5687 Include java/util/Properties.h.
5689 * Makefile.in: Rebuilt.
5690 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5691 OutputStreamWriter.h, ByteArrayInputStream.h,
5692 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5693 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5694 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5695 Properties.h, Hashtable.h, Dictionary.h.
5698 * include/javaprims.h (java::io): Added Reader, Writer,
5699 InputStreamReader, OutputStreamWriter,
5700 UnsupportedEncodingException, ByteArrayInputStream,
5701 ByteArrayOutputStream, EOFException, SyncFailedException,
5702 PushbackInputStream.
5703 (java::lang): Added Cloneable.
5704 (java::util): Added NoSuchElementException, VectorEnumeration,
5705 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5707 * java/io/PipedReader.java: New file.
5709 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5711 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5714 * java/io/io-defs.h: Removed.
5716 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5717 (FileInputStream): Use new constructor. Can throw IOException.
5719 * java/lang/System.java (getProperty): Don't throw
5720 NullPointerException.
5722 * java/io/RandomAccessFile.java: Rewrote from scratch.
5724 * java/io/natFileDescriptor.cc: Include EOFException.h.
5726 (length): New method.
5727 (getFilePointer): New method.
5729 (available): New method.
5730 * java/io/FileDescriptor.java (SET, CUR): New constants.
5731 (seek, length, getFilePointer, read, available): New decls.
5733 * java/io/PipedWriter.java: New file.
5734 * java/io/StringWriter.java: New file.
5735 * java/io/CharArrayWriter.java: New file.
5736 * java/io/CharConversionException.java: New file.
5737 * java/io/BufferedWriter.java: New file.
5738 * java/io/FilterWriter.java: New file.
5739 * java/io/FileWriter.java: New file.
5741 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5742 OutputStreamWriter.h, NullPointerException.h,
5743 ByteArrayInputStream.h, InputStreamReader.h.
5744 (getBytes): New method.
5745 (init): Throw NullPointerException.
5746 (init): New function.
5747 * java/lang/String.java (getBytes): Added missing decl.
5748 (getBytes): New method.
5749 (String): Added byte[]-based constructors.
5750 (copyValueOf): Wrote.
5751 (init): Declare variant which takes byte array and encoding.
5752 Import java.io.UnsupportedEncodingException.
5754 * java/io/File.java: Rewrote from scratch.
5755 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5756 * java/io/FileDescriptor.java: Rewrote from scratch.
5757 * java/io/FilenameFilter.java: Rewrote from scratch.
5759 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5761 * java/io/SyncFailedException.java: New file.
5762 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5763 * java/io/InterruptedIOException.java: Rewrote from scratch.
5764 * java/io/FileNotFoundException.java: Rewrote from scratch.
5765 * java/io/EOFException.java: Rewrote from scratch.
5766 * java/io/IOException.java: Rewrote from scratch.
5767 * java/io/PrintStream.java: Rewrote from scratch.
5768 * java/io/DataOutputStream.java: Rewrote from scratch.
5769 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5770 * java/io/FilterOutputStream.java: Rewrote from scratch.
5771 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5772 * java/io/PipedOutputStream.java: Rewrote from scratch.
5773 * java/io/FileOutputStream.java: Rewrote from scratch.
5774 * java/io/OutputStream.java: Rewrote from scratch.
5775 * java/io/DataOutput.java: Rewrote from scratch.
5777 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5779 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5781 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5783 * configure.in: Add --enable-libjava-debug
5785 * Makefile.am (nat_headers): Add java/lang/Float.h and
5788 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5790 * Makefile.in, configure, include/config.h.in: Rebuilt.
5792 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5794 * java/lang/Float.java: Rewritten
5795 * java/lang/Double.java: Rewritten
5796 * java/lang/natFloat.cc: toString() added.
5797 * java/lang/natDouble.cc: toString() added.
5798 * java/lang/natDouble.cc: doubleValueOf() added.
5799 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5800 java/lang/strtod.c: added.
5801 * ieeefp.h: __sparc added.
5802 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5804 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5806 * include/javaprims.h (java::lang): Added
5807 CloneNotSupportedException.
5809 * java/lang/Object.java (clone): No longer native. Implemented.
5810 * java/lang/natObject.cc (clone): Removed.
5812 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5814 * prims.cc: Don't make definitions `extern "C"'.
5815 (_Jv_RegisterClass): Renamed from registerClass.
5816 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5817 (_Jv_NewArray): Likewise.
5818 (_Jv_NewMultiArray): Likewise.
5819 (_Jv_CheckCast): Likewise.
5820 (_Jv_LookupInterfaceMethod): Likewise.
5821 (_Jv_CheckArrayStore): Likewise.
5822 (_Jv_RegisterClass): Likewise.
5824 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5825 * configure: Rebuilt.
5826 * configure.in: Don't check for fmod; it is provided by the fdlibm
5828 * prims.cc (fmod): Removed.
5830 * java/lang/natString.cc (charAt): Use _Jv_uint.
5831 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5832 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5833 (equalUtf8Consts): Likewise.
5834 (internalAddClass): Use _Jv_uint.
5835 (processClass): Likewise.
5836 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5837 (_Jv_uint): Renamed from uint32.
5838 (struct _Jv_Utf8Const): Changed members to use new type names.
5840 * configure: Rebuilt.
5841 * configure.in: Don't check for memcpy. Require memmove and a way
5843 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5845 (currentTimeMillis): Don't use #error.
5847 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5849 * java/lang/Math.java: static member random renamed to random_ to
5850 avoid conflict with member function of the same name.
5851 * include/javaprims.h: java.util.Random added.
5853 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5855 * include/java-chartables.h: Regenerated.
5856 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5859 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5861 * java/lang/Math.java: Rewritten.
5862 * java/lang/natMath.cc: New file.
5863 * Files added from fdlibm:
5864 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5865 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5866 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5867 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5868 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5869 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5870 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5871 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5872 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5873 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5874 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5875 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5876 java/lang/k_cos.c, java/lang/sf_ceil.c,
5877 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5878 java/lang/ieeefp.h, java/lang/fdlibm.h
5879 * Makefile.am: rules added for compiling C files from fdlibm.
5881 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5883 * chartables.pl: Minor documentation fixes.
5885 * configure: Rebuilt.
5886 * configure.in: Fixed --help output for --enable-fast-character.
5888 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5890 * configure: Rebuilt.
5891 * configure.in: Recognize --enable-fast-character.
5892 * acconfig.h (COMPACT_CHARACTER): New define.
5893 * include/config.h.in: Rebuilt.
5894 * include/java-chartables.h: New file.
5895 * Makefile.in: Rebuilt.
5896 * Makefile.am (nat_files): Added natCharacter.o.
5897 * java/lang/natCharacter.cc: New file.
5898 * chartables.pl (set_attribute): New function.
5899 (@attributes, @second_attributes): New globals.
5900 ($ROMAN_START, $ROMAN_END): Likewise.
5901 (process_char): Call set_attribute when required.
5902 (print_char): Just print hex value.
5903 (print_block): Generate C++ syntax.
5904 (print_numerics): Likewise.
5905 (print_single_map): Likewise.
5906 (print_all_block): Likewise.
5907 (print_case_table): Likewise.
5908 (print_fast_tables): New function.
5909 Generate C++ code suitable for a header file.
5910 * java/lang/Character.java (table_search): Removed.
5911 (digit_value): Now native.
5912 (getNumericValue): Likewise.
5913 (getType): Likewise.
5914 Removed all automatically-generated tables.
5915 (Tamil_Digit_One): Removed.
5916 (isSpaceChar): Now native.
5917 (isTitleCase): Likewise.
5918 (isLowerCase): Likewise.
5919 (isUpperCase): Likewise.
5920 (toLowerCase): Likewise.
5921 (toTitleCase): Likewise.
5922 (toUpperCase): Likewise.
5923 (isDefined): Fixed sense of test.
5925 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5927 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5929 (regionMatches): Likewise.
5931 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5933 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5935 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5937 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5940 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5943 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5945 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5947 * prims.cc (instanceof_class): Removed.
5948 (instanceof_array): Likewise.
5949 (instanceof): Likewise.
5950 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5951 (_Jv_CheckCast): Likewise.
5952 * java/lang/natClass.cc (isAssignableFrom): New method.
5953 * java/lang/Class.java (isAssignableFrom): Now native.
5955 * include/cni.h (JvThrow): Use `extern inline'.
5956 (JvAllocObject): Likewise.
5957 (JvInitClass): Likewise.
5959 * java/lang/natSystem.cc (arraycopy): Only check class of source
5962 * prims.cc (_Jv_CheckArrayStore): Wrote.
5963 (_Jv_MonitorEnter): Prefer `JvThrow'.
5964 Include ArrayStoreException.h.
5965 (_Jv_CheckCast): Indentation cleanup.
5967 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5969 * chartables.pl: New file.
5970 * java/lang/Character.java: Rewrote from scratch.
5972 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5974 * java/lang/ArithmeticException.java,
5975 java/lang/ArrayIndexOutOfBoundsException.java,
5976 java/lang/ArrayStoreException.java,
5977 java/lang/ClassCastException.java,
5978 java/lang/ClassNotFoundException.java,
5979 java/lang/CloneNotSupportedException.java,
5980 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5981 java/lang/IllegalArgumentException.java,
5982 java/lang/IllegalMonitorStateException.java,
5983 java/lang/IllegalThreadStateException.java,
5984 java/lang/IndexOutOfBoundsException.java,
5985 java/lang/InstantiationException.java,
5986 java/lang/InterruptedException.java,
5987 java/lang/NegativeArraySizeException.java,
5988 java/lang/NoSuchMethodException.java,
5989 java/lang/NullPointerException.java,
5990 java/lang/NumberFormatException.java,
5991 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5992 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5994 * java/lang/IllegalStateException.java,
5995 java/lang/NoSuchFieldException.java,
5996 java/lang/UnsupportedOperationException.java: Created.
5998 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6000 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6001 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6003 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6005 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6007 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6009 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6011 * Makefile.in: Rebuilt.
6013 * include/javaprims.h (java::lang): Added
6014 StringIndexOutOfBoundsException.
6016 * java/lang/String.java: Added header comment and FIXME comment for
6017 missing constructors/methods.
6018 (endsWith): Adjusted offset into string to look at just the last chars.
6019 Commented out undocumented method.
6021 * java/lang/natString.cc: Added includes for
6022 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6023 (String::init): Throw StringIndexOutOfBoundsException.
6024 (String::charAt): Throw StringIndexOutOfBoundsException.
6025 (String::substring): Throw StringIndexOutOfBoundsException.
6026 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6027 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6028 (String::compareTo): Return difference/offset between chars/strings.
6030 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6032 * java/lang/Boolean.java (TYPE): Added comment.
6034 * java/lang/Byte.java (decode): Added - commented out until dependent
6035 code for Integer is written.
6036 (compareTo): JDK 1.2 methods written.
6037 (hashCode): Added comment to note that values have been verified.
6039 * java/lang/Short.java (decode): Added - commented out until dependent
6040 code for Integer is written.
6041 (compareTo): JDK 1.2 methods written.
6042 (hashCode): Added comment to note that values have been verified.
6044 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6046 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6048 * include/javaprims.h (java::lang): Added VirtualMachineError,
6050 * Makefile.in: Rebuilt.
6051 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6052 VirtualMachineError.h.
6053 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6054 (lookupArray): Likewise.
6055 (makeUtf8Const): Likewise.
6056 (_Jv_AllocObject): Likewise.
6057 (_Jv_NewObjectArray): Likewise.
6058 Include OutOfMemoryError.h.
6060 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6061 to use JvNewStringLatin1.
6063 * java/io/io-defs.h: Include java/lang/IOException.h.
6064 * Makefile.in: Rebuilt.
6065 * Makefile.am (nat_headers): Added
6066 ArrayIndexOutOfBoundsException.h,
6067 ClassFormatError.h,ClassNotFoundException.h,
6068 ClassCircularityError.h, ClassCastException.h,
6069 IncompatibleClassChangeError.h, AbstractMethodError.h,
6070 IllegalAccessError.h, LinkageError.h, Error.h,
6071 NegativeArraySizeException.h, IOException.h.
6072 * include/cni.h (SignalError): Removed declaration.
6073 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6074 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6075 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6076 (newInstance): Likewise.
6077 (forName): Likewise.
6078 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6080 (read): Use JvThrow, not SignalError.
6085 (open_read): Likewise.
6086 (open_write): Likewise.
6089 (newstr): New function.
6090 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6092 (lastModifiedUnchecked): Likewise.
6093 (lengthUnchecked): Likewise.
6094 * include/javaprims.h (sorry): Removed declaration.
6095 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6096 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6097 ClassCastException, IncompatibleClassChangeError,
6098 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6099 * prims.cc (instanceof_array): Use JvFail, not sorry.
6101 Include ArrayIndexOutOfBoundsException.h,
6102 ClassFormatError.h,ClassNotFoundException.h,
6103 ClassCircularityError.h, ClassCastException.h,
6104 IncompatibleClassChangeError.h, AbstractMethodError.h,
6105 IllegalAccessError.h, NegativeArraySizeException.h.
6106 (_Jv_ThrowBadArrayIndex): Implemented.
6107 (JvNewStringUTF): Use JvFail, not sorry.
6108 (_Jv_FindClass): Likewise.
6109 (_Jv_NewArray): Likewise.
6110 (throwException): Removed.
6111 (getClass): Use JvThrow.
6112 (processClass): Likewise.
6113 (_Jv_NewObjectArray): Likewise.
6114 (_Jv_NewMultiArray): Likewise.
6115 (_Jv_CheckCast): Likewise.
6116 (_Jv_LookupInterfaceMethod): Likewise.
6117 (SignalError): Removed.
6118 (getClass): Use _Jv_NewStringUtf8Const to create String.
6120 * java/lang/natSystem.cc (arraycopy): Throw
6121 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6123 * Makefile.in: Rebuilt.
6124 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6126 * include/java-array.h: Mention gcjh, not gjavah.
6128 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6129 (canReadUnchecked): Likewise.
6130 (canWriteUnchecked): Likewise.
6131 (isFileUnchecked): Likewise.
6132 * java/io/natFileDescriptor.cc: Don't include cni.h.
6134 * java/lang/Thread.java (run__): Declare.
6135 * java/lang/natThread.cc (run__): New method, to avoid compiler
6137 (start): Use run__, not run_.
6139 * java/io/io-defs.h: Include cni.h and jvm.h.
6141 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6143 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6144 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6145 to natString.cc (with suitable renaming, inlines etc).
6146 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6147 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6148 * java/lang/String.h: Removed - now generated using gjavah.
6149 * java/lang/String.java: Re-written from scratch. Many native methods.
6150 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6151 * java/lang/natString.cc: Many functions re-written for "compact
6152 strings" representation, or native java.lang.String methods added.
6153 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6154 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6155 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6156 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6157 * include/cni.h: Add inline method.
6158 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6159 * include/javaprims.h: Moved some stuff frm String.h.
6160 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6161 * Makefile.am (nat_header): Added Character.h and String.h.
6162 (String.h): Add new rule.
6164 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6166 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6168 * posix-threads.cc: Include cni.h, jvm.h.
6169 * quick-threads.cc: Include cni.h, jvm.h.
6170 * nogc.cc: Include cni.h, not javaprims.h.
6171 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6172 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6173 include java-assert.h.
6174 * java/lang/natSystem.cc: Include cni.h. Don't include
6176 * java/lang/natRuntime.cc: Include cni.h. Don't include
6178 * prims.cc: Rearranged #include ordering. Don't include
6179 java-array.h or java-assert.h.
6180 * boehm.cc: Include config.h, cni.h.
6181 * exception.cc: Include config.h, cni.h.
6182 * include/jvm.h: Include java-assert.h.
6183 * include/cni.h: Include java/lang/Object.h. Don't include
6184 java-threads.h or java-array.h.
6186 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6188 * java/lang/Boolean.java: Rewritten.
6190 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6192 * java/lang/natFirstThread.cc (main_func): New typedef.
6193 (run): Use main_func, not JvPrivThreadStartFunc.
6194 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6196 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6198 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6201 Can't throw Java exceptions with C++ `throw':
6202 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6203 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6204 (setPriority): Likewise.
6208 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6209 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6211 Can't catch Java exceptions from C++:
6212 * java/lang/natThread.cc (finish_): New method.
6214 * java/lang/Thread.java (run_): Rewrote in Java.
6215 (finish_): New native method.
6217 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6219 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6221 * include/javaprims.h (java::io): Added Serializable.
6223 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6225 * java/util/EmptyStackException.java,
6226 java/util/NoSuchElementException.java: Rewritten.
6228 * java/util/ConcurrentModificationException.java,
6229 java/util/MissingResourceException.java,
6230 java/util/TooManyListenersException.java: Created.
6232 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6234 * include/cni.h (JvThrow): New function.
6235 * include/javaprims.h (_Jv_Throw): Declare.
6237 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6239 * java/util/Observable.java: Rewritten.
6241 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6243 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6244 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6245 Include NullPointerException.h.
6247 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6249 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6250 assignability checks. Don't bother using memcpy.
6252 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6254 * include/quick-threads.h (JvPrivThreadWait): New function.
6255 * include/no-threads.h (JvPrivThreadWait): New function.
6256 * include/posix-threads.h (JvPrivThreadWait): New function.
6257 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6259 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6261 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6262 offsets by size of type that is being copied.
6264 * java/lang/natThread.cc (start): Don't pass `object' argument to
6266 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6267 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6269 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6270 always pass thread as object.
6271 * include/quick-threads.h, include/posix-threads.h,
6272 include/no-threads.h (JvPrivThreadStart): Removed `object'
6275 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6277 * java/util/Dictionary.java: Rewritten.
6279 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6281 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6282 (JvPrivThreadDestroy): Likewise.
6284 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6286 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6288 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6290 * java/lang/natSystem.cc: Rewrote from scratch.
6291 * java/lang/System.java: Rewrote from scratch.
6292 * java/lang/Class.h (Class): Declare isAssignableFrom.
6293 * include/javaprims.h (java::lang): Added ArrayStoreException,
6294 IndexOutOfBoundsException.
6295 * Makefile.in: Rebuilt.
6296 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6297 IndexOutOfBoundsException.h.
6298 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6299 * include/jvm.h (_Jv_HashCode): New function.
6301 * java/lang/natThread.cc (suspend): Call checkAccess.
6303 * java/lang/Thread.java (setDaemon): Call checkAccess.
6305 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6307 * java/lang/Runtime.java: Rewrote from scratch.
6308 * java/lang/natRuntime.cc: Rewrote from scratch.
6310 * nogc.cc (JvPrivGCTotalMemory): New function.
6311 (JvPrivGCFreeMemory): Likewise.
6312 (total): New global.
6313 (JvPrivAllocObj): Increment total.
6314 (JvPrivAllocArray): Likewise.
6315 (JvPrivAllocBytes): Likewise.
6316 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6317 * boehm.cc (JvPrivGCTotalMemory): New function.
6318 (sum_blocks): Likewise.
6319 (JvPrivGCFreeMemory): Likewise.
6321 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6323 * include/javaprims.h (java::lang): Added FirstThread.
6324 * java/lang/natFirstThread.cc: New file.
6325 * java/lang/FirstThread.java: New file.
6326 * prims.cc (main_signature): Removed.
6327 (main_name): Removed.
6328 #include FirstThread.h.
6329 * Makefile.in: Rebuilt.
6330 * Makefile.am (TFRIEND): Removed.
6331 (java/lang/Thread.h): Likewise.
6332 (FTFRIEND): New macro.
6333 (java/lang/FirstThread.h): New target.
6334 (nat_files): Added natFirstThread.o.
6335 (nat_headers): Added FirstThread.h.
6336 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6337 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6339 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6343 * java/lang/natThread.cc (start): Synchronize the thread.
6344 (stop): Synchronize the thread.
6346 * java/lang/ThreadDeath.java: Rewrote from scratch.
6348 * Makefile.in: Rebuilt.
6349 * Makefile.am (TGFRIEND): New macro.
6350 (java/lang/ThreadGroup.h): New target.
6351 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6353 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6355 * nogc.cc: Include config.h.
6357 * java/lang/ThreadGroup.java: Rewrote from scratch.
6359 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6361 * java/lang/Thread.java (checkAccess): Only call in to security
6362 manager if it exists.
6363 (Thread): Don't check access when creating the first thread. Add
6364 this thread to the appropriate ThreadGroup.
6366 * java/lang/natThread.cc (run_): Call uncaughtException method on
6369 * java/lang/Runnable.java: Rewrote from scratch.
6370 * java/lang/Thread.java: Updated copyright comment to correct
6373 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6375 * java/util/Random.java: Rewritten.
6377 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6379 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6380 trailing 0 in array[].
6382 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6384 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6385 and RUNTESTFLAGS from AM_MAKEFLAGS.
6386 (SUBDIRS): Conditionally include testsuite.
6387 * Makefile.in: Rebuilt.
6389 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6391 * java/lang/Object.h: Include java-assert.h.
6393 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6395 * Makefile.am: Add testsuite directory.
6396 * configure.in: Build testsuite/Makefile.
6397 * Makefile.in, configure: Rebuilt.
6399 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6401 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6402 * include/jvm.h (_Jv_StartFirstThread): Declare.
6404 * include/javaprims.h (java::lang): Added Exception,
6407 * Makefile.in: Rebuilt.
6408 * Makefile.am (nat_headers): Added NullPointerException.h,
6409 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6410 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6411 (java/lang/Thread.h): New target.
6412 (TFRIEND): New macro
6414 * include/java-assert.h (JvFail): Use 0 and not NULL.
6416 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6417 instead of assuming we are a friend of Thread.
6418 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6419 instead of assuming we are a friend of Thread.
6421 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6423 * java/lang/natThread.cc: Rewrote from scratch.
6424 * java/lang/Thread.java: Rewrote from scratch.
6425 * prims.cc (JvRunMain): Use new Thread constructor.
6426 * include/javaprims.h (java::lang): Added InterruptedException.
6427 * Makefile.in: Rebuilt.
6428 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6429 * java/lang/Thread.h: Removed.
6430 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6431 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6433 * posix-threads.cc (JvPrivThreadJoin): Removed.
6434 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6435 (really_start): Don't notify join_cond.
6436 (JvPrivThreadStart): Added `data' argument.
6437 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6438 (JvPrivThreadJoin): Likewise.
6439 Use JvFail instead of sorry.
6440 (JvPrivThreadSuspend): Removed.
6441 (JvPrivThreadResume): Removed.
6442 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6443 (JvPrivThreadJoin): Likewise.
6444 (JvPrivThreadSuspend): Use JvFail.
6445 (JvPrivThreadResume): Likewise.
6446 (JvPrivThreadSuspend): Removed.
6447 (JvPrivThreadResume): Likewise.
6448 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6449 (JvPrivThread_t): Removed join_mutex, join_cond.
6450 Use JvFail instead of sorry.
6451 (JvPrivThreadSuspend): Removed.
6452 (JvPrivThreadResume): Likewise.
6454 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6456 * java/util/Observer.java: Rewritten
6457 * java/util/Enumeration.java: Rewritten
6459 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6461 * java/util/StringTokenizer.java: Rewritten
6462 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6463 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6464 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6466 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6468 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6471 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6472 Include java-assert.h.
6473 * include/java-assert.h: New file.
6474 * prims.cc (_Jv_Abort): New function.
6475 Include java-assert.h, not assert.h.
6476 (_Jv_MonitorExit): Use JvAssert.
6477 (resolveConstants): Likewise.
6478 (processClass): Likewise.
6479 (JvRunMain): Assert that method is found.
6481 * configure: Rebuilt.
6482 * configure.in: Check for test subdir.
6483 * Makefile.in: Rebuilt.
6484 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6486 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6487 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6489 * prims.cc (resolveConstants): Removed unused variables.
6490 (processClass): Likewise.
6492 * include/quick-threads.h (JvPrivThreadCurrent): Use
6494 * quick-threads.cc (destroy_data): New function.
6495 (JvPrivInitThreads): Create key.
6496 (JvPrivThreadKey): New global.
6497 (JvPrivThreadStart): Use coop_setspecific.
6499 * include/quick-threads.h, include/posix-threads.h,
6500 include/no-threads.h, no-threads.cc, quick-threads.cc,
6501 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6503 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6505 * include/no-threads.h (JvPrivThreadInitData): Don't set
6508 * include/quick-threads.h (JvPrivCondWait): coop function now
6510 (JvPrivThreadJoin): Likewise.
6512 * java/lang/Thread.h (Thread): Updated declaration of
6514 * include/quick-threads.h, include/posix-threads.h: Updated
6515 declaration of JvPrivThreadStart.
6516 * include/no-threads.h (JvPrivThreadStart): Changed definition
6518 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6519 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6520 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6522 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6524 * quick-threads.cc (qthrow): New function.
6525 (JvPrivInitThreads): New function.
6526 (started): New global.
6527 (JvPrivThreadStart): Call coop_start if required.
6528 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6529 (JvPrivThreadDestroy): Likewise.
6530 (JvPrivInitThreads): Removed.
6531 * include/posix-threads.h (JvPrivThreadCancel): Added error
6533 * java/lang/natThread.cc (stop_): Pass exception to
6536 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6538 * include/javaprims.h (java::lang): Added
6539 IllegalArgumentException, IllegalThreadStateException, Math,
6540 NullPointerException, ThreadDeath.
6541 (java::util): Added Enumeration.
6543 * Makefile.in: Rebuilt.
6544 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6546 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6548 (threadsv): Renamed from threads to avoid clash in C++ header.
6549 (groupsv): Likewise.
6550 * include/no-threads.h (JvPrivThreadStart): Removed.
6551 * no-threads.cc (JvPrivThreadStart): New function.
6552 * java/lang/Thread.java (Thread): New constructor for internal use.
6553 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6554 (Thread): Declare constructor.
6555 * prims.cc (JvRunMain): Create the initial Thread and
6557 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6558 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6559 Removed `daemon' argument.
6561 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6562 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6564 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6566 * Makefile.in: Rebuilt.
6567 * Makefile.am (INCLUDES): Include THREADINCS.
6569 * configure: Rebuilt.
6570 * configure.in: Recognize `qt' as a threads package.
6572 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6574 * java/util/Stack.java (pop): Null out topmost node for robustness.
6576 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6578 * java/util/Stack.java: Rewritten.
6579 * java/util/Vector.java (isEmpty): Simplified expression.
6581 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6583 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6584 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6586 * include/java-array.h (JvNewObjectArray): Created inline to
6589 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6592 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6594 * java/util/Vector.java: Rewritten.
6595 * java/io/Serializable.java: Created.
6597 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6599 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6600 Infinity is 1/0, not 1/1.
6602 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6604 * configure: Rebuilt.
6605 * configure.in: Removed duplicate AC_ARG_WITH.
6607 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6609 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6611 (_Jv_InitClass): Renamed from soft_initialise_class.
6612 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6613 (_Jv_CheckCast): Renamed from soft_checkcast.
6614 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6615 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6616 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6617 * include/cni.h (JvInitClass): New function.
6618 (_Jv_InitClass): Renamed from soft_initialise_class.
6620 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6622 * configure: Rebuilt.
6623 * configure.in (CXX): Don't set.
6624 * Makefile.in: Rebuilt.
6625 * Makefile.am (AM_CXXFLAGS): New macro.
6627 * Makefile.in: Rebuilt.
6628 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6629 nogc.o): New target.
6631 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6633 (mark_array): Likewise.
6635 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6637 * java/lang/Class.h (JvMethod): Removed some unused fields.
6638 (JvField.info): Removed unused idx union variant.
6640 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6642 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6645 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6647 * configure.in, configure (CXX): Add -fvtable-thunks.
6649 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6651 * java/lang/Object.java (finalize): Move first.
6652 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6653 (Object): Re-arrange order to match Object.java.
6655 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6657 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6658 * java/lang/natString.cc (hashChars): Likewise.
6660 * prims.cc (RuntimeClass): New macro.
6661 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6663 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6665 * Makefile.in: Rebuilt.
6666 * Makefile.am (AM_MAKEFLAGS): New macro.
6668 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6670 * nogc.cc: Include <javaprims.h>.
6672 * Makefile.in: Rebuilt.
6673 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6675 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6677 * exception.cc (terminate): Removed.
6678 (unexpected): Removed.
6680 * configure: Rebuilt.
6681 * configure.in: Handle case where target subdir is ".".
6683 * configure: Rebuilt.
6684 * configure.in: Compute COMPPATH based on --with-target-subdir
6685 option. Added --with-target-subdir and --with-cross-host. Use
6686 --with-cross-host to determine when a cross compiler is in use.
6688 * Makefile.in: Rebuilt.
6689 * Makefile.am (GJAVAH): Include COMPPATH.
6690 * configure: Rebuilt.
6691 * configure.in: Subst COMPPATH.
6693 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6695 * prims.cc (lockMutex): Removed.
6696 (unlockMutex): Likewise.
6697 (processClass): Lock the class using a JvSynchronize object.
6699 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6701 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6702 (gc_free_fixed): Removed.
6703 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6704 freeing old value of strhash.
6706 * exception.cc (_Jv_type_matcher): Cast first argument to
6709 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6711 * include/java-array.h (jstringArray): New type.
6712 * java/lang/natSystem.cc (setProperty): Removed.
6713 (initProperties): Directly call JvNewStringLatin1 for arguments.
6714 * java/util/natDate.cc: Include java/util/Date.h, not
6717 * java/io/FileDescriptor.java (available): No longer static.
6718 * java/lang/natDouble.cc (Double): Removed class definition.
6719 * include/javaprims.h (java::lang::Number): Declare.
6720 (java::lang::NumberFormatException): Likewise.
6721 (java::io::FilenameFilter): Likewise.
6722 (java::lang::Character): Likewise.
6723 (java::lang::Error): Likewise.
6724 (java::lang::SecurityManager): Likewise.
6725 (java::util::Vector): Likewise.
6726 (java::io::FileNotFoundException): Likewise.
6727 (java::io::IOException): Likewise.
6728 (java::lang::NativeLang): Likewise.
6729 (java::lang::UnsatisfiedLinkError): Likewise.
6730 (java::util::StringTokenizer): Likewise.
6731 (java::io::InputStream, java::io::OutputStream): Likewise.
6732 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6733 (java::util::Hashtable): Likewise.
6734 * Makefile.in: Rebuilt.
6735 * Makefile.am (nat_headers): Added java/lang/Double.h,
6736 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6737 (MOSTLYCLEANFILES): Added nat_headers.
6738 * include/jvm.h: Moved many defines, declarations, and functions
6739 to java/lang/Class.h.
6740 (struct JvSyncInfo): Moved to java/lang/Object.h.
6741 (UTF8_GET): Moved to java/lang/String.h.
6743 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6745 * java/io/io-defs.h: Don't include java-io.h.
6746 * include/java-io.h: Removed.
6747 * include/javaprims.h: Include java::io.
6749 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6751 * include/java-io.h (File): Removed
6752 (FileDescriptor): Likewise.
6754 * java/io/io-defs.h: Include java/io/File.h and
6755 java/io/FileDescriptor.h.
6757 * Makefile.in: Rebuilt.
6758 * Makefile.am (GJAVAH): New macro.
6759 (.class.h): New rule.
6760 (SUFFIXES): Added .h.
6761 (nat_headers): New macro.
6762 ($(nat_headers)): New target.
6763 (BUILT_SOURCES): Added nat_headers.
6765 * include/java-util.h: Removed.
6767 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6769 * include/java-io.h: Changed to avoid java-lang.h.
6770 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6772 * java/lang/natSystem.cc: Include java/lang/System.h, not
6774 * java/lang/natString.cc: Include java/lang/String.h, not
6776 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6778 * java/lang/natClass.cc: Include java/lang/Class.h, not
6780 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6782 * java/lang/natObject.cc: Include java/lang/Object.h, not
6784 * exception.cc: Don't include java-lang.h.
6785 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6786 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6787 * nogc.cc: Don't include java-lang.h.
6788 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6789 * prims.cc (processClass): Don't use `init_type'; just cast to
6791 Include java/lang/Class.h and jvm.h, not java-lang.h.
6792 (JvAllocObject): Wrote single-argument version.
6793 (PrimClass): Inherit from Class.
6794 (initPrimClass): Removed.
6795 * include/java-lang.h: Removed.
6796 * include/jvm.h: Declare struct _dispatchTable.
6797 * include/cni.h: Don't declare _Jv_MonitorEnter,
6798 _Jv_MonitorExit, struct _dispatchTable.
6799 * include/javaprims.h: Moved all typedefs here, from cni.h.
6800 * java/lang/Class.h: New file.
6801 * include/java-array.h: New file.
6802 * java/lang/Object.h: New file.
6804 * prims.cc (classFromSig): Now static.
6806 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6808 * include/cni.h: Don't mention soft_new.
6809 * include/java-lang.h (Object): Don't mention soft_new. Mention
6810 _Jv_NewPrimArray, not newPrimArray.
6811 * prims.cc (soft_new): Removed.
6812 (_Jv_NewArray): Renamed from soft_newarray.
6813 (soft_anewarray): Use JvNewObjectArray.
6814 (newArray): Likewise.
6815 (newRefArray): Removed.
6816 (_Jv_NewPrimArray): Renamed from newPrimArray.
6817 (equalUtf8Consts): Now static.
6818 (soft_instanceof): Removed.
6819 * java/lang/natDouble.cc (doubleToString): Now static.
6821 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6822 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6825 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6827 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6829 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6831 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6832 (JvPrivMutexUnlock): Likewise.
6833 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6834 Return value now jint.
6835 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6838 * Makefile.in: Rebuilt.
6839 * Makefile.am: Don't allow `jV' names.
6840 (maintainer-check): Depend on libjava.a.
6841 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6843 * Makefile.in: Rebuilt.
6844 * Makefile.am (NM): New macro.
6845 (maintainer-check): New target.
6847 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6849 * configure: Rebuilt.
6850 * configure.in: Use --enable-threads, not --enable-gc. Fix
6851 documentation for --enable-threads. Changed option to work like
6852 identical option in gcc/configure.
6854 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6856 * boehm.cc (mark_array): Use JvGetArrayLength.
6858 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6860 * exception.cc: New file (mostly written by Andrew MacLeod),
6861 exception handling support.
6862 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6863 Remove -fexceptions - it is now the default.
6865 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6866 (JvAllocObject): Renamed to _Jv_AllocObject.
6867 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6868 (loadClass): Renamed to _Jv_FindClass.
6869 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6870 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6871 * include/java-lang.h (JvGetArrayLength): New CNI function.
6872 * include/jvm.h (_Jv_FindClass): Added declaration.
6874 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6876 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6878 * java/lang/natClass.cc (getName): Add implementation.
6879 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6881 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6883 * Makefile.in: Rebuilt.
6884 * Makefile.am (.class.o): Added -fexceptions.
6886 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6888 * configure: Rebuilt.
6889 * configure.in: Don't check for __nanosleep.
6890 * posix-threads.cc (nanosleep): Never define.
6892 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6894 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6897 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6899 * java/lang/natThread.cc (enumerate): Uncommented.
6900 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6901 (interrupt): Call it.
6903 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6905 * configure: Rebuilt.
6906 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6908 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6910 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6911 * include/java-lang.h (Thread): Added `interrupted_' method.
6912 * java/lang/Thread.java (interrupted_): New method.
6913 * java/lang/natThread.cc (join): Possibly throw interrupted
6914 exception after join finishes.
6915 (interrupted_): New method.
6916 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6918 (JvPrivThreadJoin): New function.
6919 (really_start): Notify all threads waiting for this thread.
6920 (struct starter): Added `data' member.
6921 (JvPrivThreadStart): Set it.
6922 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6924 (JvPrivThreadJoin): No longer inline.
6925 (JvPrivThreadInterrupt): New function.
6927 * include/no-threads.h (JvPrivThreadSleep): Removed.
6928 * posix-threads.cc (JvPrivThreadSleep): Removed.
6930 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6932 * configure: Rebuilt.
6933 * configure.in (THREADOBJS): Initialize to no-threads.o in
6935 * posix-threads.cc (key): New global.
6936 (JvPrivInitThreads): New function.
6937 (really_start): Set thread-specific data to point to object.
6938 (JvPrivThreadStart): Added `daemon' argument.
6939 (JvPrivThreadSleep): Added `data' argument.
6940 * include/posix-threads.h (JvPrivInitThreads): Removed
6942 (JvPrivThreadCurrent): New function.
6943 * include/no-threads.h (JvPrivThreadInitData): Initialize
6944 JvPrivOnlyThread. Added `thread' argument.
6945 (JvPrivThreadCurrent): New function.
6946 (JvPrivThreadStart): Added `daemon' argument.
6947 * no-threads.cc: New file.
6948 * java/lang/natThread.cc (init_data): New function.
6950 (start): Set `alive' member.
6951 (stop_): Clear `alive' member.
6952 (destroy): Likewise.
6953 (currentThread): Implemented.
6954 (start): Pass `daemon' argument to JvPrivThreadStart.
6956 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6957 (Thread): Added `init_data' method.
6958 * java/lang/Thread.java (alive, data): New instance variables.
6959 (init_data): New private method.
6960 (isAlive): No longer native.
6962 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6964 * include/java-lang.h (JvRunMain): Declare.
6965 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6966 * prims.cc (JvRunMain): New function.
6967 (main_signature, main_name): New globals.
6969 * boehm.cc (mark_array): Use `elements' function and not
6970 operator[] on jarray.
6972 * posix-threads.cc: Include <config.h>. Define nanosleep if
6975 * configure: Rebuilt.
6976 * configure.in: Check for _nanosleep.
6978 * configure: Rebuilt.
6979 * configure.in: Check for pthread_mutexattr_settype.
6981 * include/cni.h (class JvSynchronize): New class.
6982 * java/lang/Thread.java (sleep): Throws InterruptedException.
6983 (join): Throws InterruptedException.
6984 (resume): Not native.
6985 (resume_): New method.
6986 (start): Now synchronized.
6987 (stop_): New method.
6988 (Thread): Synchronize when accessing threadNumber.
6990 * java/lang/natThread.cc (throwException): New macro.
6991 (sleep): Throw InterruptedException.
6994 * include/java-lang.h (Runtime): Added interrupted().
6996 * boehm.cc (call_finalizer): Correctly initialize jobj.
6997 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6999 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7002 * configure: Rebuilt.
7003 * configure.in: Added support for --disable-threads.
7004 * include/no-threads.h: New file.
7006 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7008 * Makefile.in: Rebuilt.
7009 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7010 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7011 (libjava_a_LIBADD): Added THREADOBJS.
7012 * configure: Rebuilt.
7013 * configure.in: Added --with-threads option.
7014 * posix-threads.cc: New file.
7015 * include/posix-threads.h: New file.
7016 * include/java-lang.h (Object): Added static member sync_mutex,
7017 member sync_info, method init_mutex.
7018 (struct JvSyncInfo): New struct.
7019 Include "java-threads.h".
7020 * prims.cc (soft_monitorenter): Wrote.
7021 (soft_monitorexit): Likewise.
7022 * java/lang/natObject.cc (init_mutex): New method.
7026 (sync_mutex): Define.
7027 Include "java-threads.h".
7029 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7031 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7032 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7034 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7036 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7037 Added extern "Java" in places to tell G++ Object is a "Java" type.
7038 Other minor renaming and fixes.
7039 * include/java-io.h (FileDescriptor): Add friend class declarations.
7040 G++ no longer allows non-Java types in method parameters and results
7041 of Java classes. Converted most offending methods to friends.
7042 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7043 * java/lang/natSystem.cc (setProperty): Make friend.
7044 * java/lang/natString.cc, include/java-lang.h (String): Rename
7045 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7046 * include/java-lang.h (JArray): Remove getData and eoprator[].
7047 Add elements friend function instead.
7048 * java/lang/natSystem.cc (arraycopy): Use elements function.
7049 * java/io/natFileDescriptor.cc (read, write): Likewise.
7050 * include/java-lang.h (Object): Remove unused make method.
7051 (System::setProperty(char*,char*)): Turn into friend function.
7052 (Class): Rename newObject by JvAllocObject.
7053 * prims.cc: Update to use JvAllocObject, and elements.
7055 * java/lang/natDouble.cc: Fix double -> jdouble.
7057 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7059 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7061 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7063 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7064 * include/java-lang.h (Runtime): finalize_on_exit and
7065 runFinalizersOnExit now static.
7066 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7068 (finalize_on_exit): Now static.
7070 * boehm.cc (mark_obj): Get class using getClass() method on
7072 (_dispatchTable): Removed.
7074 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7076 * java/io/natFileDescriptor.cc (open_read): Only call open if
7078 (open_write): Likewise.
7080 * Makefile.in: Rebuilt.
7081 * Makefile.am ($(nat_files)): Depend on config.h.
7083 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7085 * prims.cc (ObjectClass): Now a macro; updated for new class name
7087 (StringClass): Likewise.
7088 (ClassClass): Likewise.
7090 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7092 * java/io/natFileDescriptor.cc (available): Do nothing unless
7093 HAVE_SELECT defined.
7094 * java/util/natDate.cc (setTime): Conditional on
7096 (toString): Conditional on HAVE_TIME.
7097 * aclocal.m4, configure: Rebuilt.
7098 * acinclude.m4: New file.
7099 * configure.in: Don't actually call AM_EXEEXT. Call
7100 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7101 --with-target-subdir option. Check for select and open
7104 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7106 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7107 (call_finalizer): Likewise.
7108 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7109 * prims.cc (newObject): Pass actual method pointer to
7110 JvPrivRegisterFinalizer.
7111 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7112 (JvPrivRegisterFinalizer): Changed interface.
7114 * Makefile.in: Rebuilt.
7115 * Makefile.am (MOSTLYCLEANFILES): New macro.
7116 (CLEANFILES): Removed javao_files.
7118 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7120 * nogc.cc: New file.
7121 * Makefile.in: Rebuilt.
7122 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7123 (EXTRA_libjava_a_SOURCES): New macro.
7124 (libjava_a_SOURCES): Removed boehm.cc.
7125 (libjava_a_DEPENDENCIES): Added GCOBJS.
7126 (libjava_a_LIBADD): Likewise.
7127 * configure: Rebuilt.
7128 * configure.in: Added code for --enable-gc=TYPE.
7130 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7132 * boehm.cc (mark_array): Don't further dereference pointer from
7135 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7136 * Makefile.in: Rebuilt.
7137 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7138 one for boehm-gc build directory.
7140 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7142 * include/java-lang.h (finalize_on_exit): New instance variable in
7143 java::lang::Runtime.
7144 (runFinalizersOnExit): New method.
7145 * java/lang/Runtime.java (finalize_on_exit): New instance
7147 (runAllFinalizers_): New private method.
7148 (runFinalizersOnExit): New method.
7149 * boehm.cc (JvPrivRunFinalizers): New function.
7150 (JvPrivRunAllFinalizers): Likewise.
7151 (JvPrivRunGC): Likewise.
7152 * java/lang/natRuntime.cc: Include "jvm.h".
7153 (gc): Call JvPrivRunGC.
7154 (runFinalization): Call JvPrivRunFinalizers.
7155 (runFinalizersOnExit): New method.
7156 (exit_): Call JvPrivRunAllFinalizers if required.
7157 * include/jvm.h: Declare JvPrivRunFinalizers,
7158 JvPrivRunAllFinalizers, JvPrivRunGC.
7160 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7162 * boehm.cc (JvPrivRegisterFinalizer): New function.
7163 (call_finalizer): Likewise.
7164 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7165 * prims.cc (finalize_name): New global.
7166 (newObject): Just call other newObject.
7167 (newObject): Register finalizer if it exists.
7169 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7171 * prims.cc (gc_malloc): Removed.
7172 (makeUtf8Const): Use JvPrivAllocBytes.
7173 (lookupArray): Likewise.
7174 (newPrimArray): Likewise.
7175 (JvNewObjectArray): Use JvPrivAllocArray.
7176 (newObject): Use JvPrivAllocObj.
7177 (newObject): Likewise.
7178 Changed Method -> JvMethod everywhere.
7179 Changed Field -> JvField everywhere.
7180 * include/java-lang.h (Object): Changed type of `fields' to
7182 (jmethodID, jfieldID): New typedefs.
7183 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7185 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7187 (METHOD_NATIVECODE): Moved from java-lang.h.
7188 (class JvField): New class.
7189 (JvGetFirstInstanceField): New function.
7190 (JvFieldIsRef): Likewise.
7191 (JvGetObjectField): Likewise.
7192 (JvNumInstanceFields): Likewise.
7194 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7196 * boehm.cc: New file.
7197 * Makefile.in: Rebuilt.
7198 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7199 (INCLUDES): Added -I options to find boehm-gc files.
7201 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7203 * configure: Rebuilt.
7204 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7206 * Makefile.in: Rebuilt.
7207 * Makefile.am (nat_files): New macro.
7208 (libjava_a_DEPENDENCIES): Use it.
7209 (libjava_a_LIBADD): Likewise.
7210 ($(nat_files)): New static pattern rule.
7211 (class_files): Run separate find to find .class files.
7212 (javao_files): Compute based on class_files.
7213 (BUILT_SOURCES): New macro.
7215 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7217 * Makefile.am (java_files): New macro.
7218 (class_files): Likewise.
7219 (javao_files): Likewise.
7220 (libjava_a_DEPENDENCIES): Include $(javao_files).
7221 (libjava_a_LIBADD): Likewise.
7222 (classes.stamp): Depend on $(java_files); only recompile changed
7225 (CLEANFILES): Don't run find; use macros. Don't mention
7227 (.class.o): New target.
7228 (compiled.stamp): Removed.
7230 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7232 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7233 LineNumberReader}>java: Newly-implemented standard classes.
7235 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7237 * Makefile.in: Rebuilt.
7238 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7240 * Makefile.in: Rebuilt.
7241 * Makefile.am (hack): New macro.
7242 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7244 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7246 * include/config.h.in: New file.
7247 * include/config.h: Removed.
7248 * acconfig.h: New file.
7249 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7250 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7251 libjava_a_LIBADD): New macros.
7252 (INCLUDES): New macro.
7255 (SUFFIXES): Removed.
7257 (libjava.a): Removed.
7259 * configure: Rebuilt.
7260 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7261 Look for headers and functions we require. Create
7264 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7266 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7267 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7268 soft_lookupinterfacemethod): New functions.
7269 (PrimClass): Actually initialize the primitive classes.
7270 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7272 * include/java-util.h: Removed java::util definition.
7273 * include/cni.h: Moved java::util here and added Properties.
7274 Added more function prototypes.
7275 * include/java-lang.h: Added mroe methods and friend declarations.
7276 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7277 * include/jvm.h (strLengthUtf8): Add declaration.
7279 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7281 * java/lang/{Byte,Short,Void}.java: New classes.
7282 * java/lang/Character.java (isJavaIdentifierStart,
7283 JavaIdentifierPart): New static methods.
7284 * java/lang/Number.java (byteValue, shortValue): New methods.
7286 * java/lang/String.java (intern, hashCode): Make native.
7287 * java/lang/natString.cc: New file. Handle the string pool.
7288 * Makefile.am: Build natString.o. Use CXXFLAGS.
7290 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7291 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7292 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7293 * java/lang/System.java (setProperty): New private method.
7294 (initProperties): Take argument, and make native.
7295 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7296 (currentTimeMillis): Make more robust.
7298 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7299 * java/io/UnsupportedEncodingException.java: New exception class.
7301 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7302 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7304 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7306 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7307 * prims.cc: Added bunch of stuff.
7308 * include/cni.h: Added various definitions.
7309 * include/java-lang.h: Added Method, various friends, some macros.
7311 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7312 * java/lang/System.java (arraycopy): Make native.
7314 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7316 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7317 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7318 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7319 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7321 * java/lang/Runtime.java: Declare methods as native instead of
7323 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7324 * java/lang/System.java: Comment out some stuff, for now.
7325 * java/lang/Thread.java: Re-write. Use native methods.
7326 * java/lang/NativeLang.java: Remove most of it.
7328 * java/util/natDate.cc: Native (C++) methods for Date.
7329 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7330 * java/util/Date.java: Complete re-write.
7332 * java/io/io-defs.h: New header file.
7333 * java/io/FileDescriptor.java: Add a bunch of private methods,
7334 mostly moved from NativeIO.java and natNativeIO.cc.
7335 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7336 * java/io/File.java: Use new code.
7337 * java/io/{FileInputStream.java.FileOutputStream.java,
7338 RandomAccessFile.java}: Use new private FileDescriptor methods.
7339 * java/io/NativeIO.java: Removed, no longer used.
7341 * java/io/StreamTokenizer.java (numericChars): Make char array.
7343 * include/*.h: Various header files used by the C++ native code.
7345 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7346 New autoconf+automake-based setup.
7347 * prims.cc: New file for Java "primitives".