1 2000-01-17 Andrew Haley <aph@cygnus.com>
3 * prims.cc (_Jv_RunMain): Set the name of this executable.
5 2000-01-17 Tom Tromey <tromey@cygnus.com>
7 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8 when backtrace can't be computed.
11 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
13 * java/lang/Runtime.java (loadLibraryInternal): Declare.
14 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
15 (_Jv_FindClassInCache): Likewise.
16 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
17 (findSystemClass): Try to load class from compiled module.
19 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
20 (loadLibrary): Likewise.
21 (lt_preloaded_symbols): Define.
22 (loadLibraryInternal): New method.
23 * include/config.h.in: Rebuilt.
24 * acconfig.h (USE_LTDL): Added.
25 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
26 (INCLUDES): Added $(INCLTDL).
27 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
28 (libgcj_la_LIBADD): Likewise.
29 * aclocal.m4, configure: Rebuilt.
30 * configure.in: Added libltdl support.
32 2000-01-15 Tom Tromey <tromey@cygnus.com>
34 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
36 2000-01-14 Andrew Haley <aph@cygnus.com>
38 * java/lang/natThrowable.cc: New file.
40 * java/lang/Throwable.java (fillInStackTrace): Make native.
41 (printStackTrace): Call native method to do this.
42 (Throwable): Call fillInStackTrace.
43 (stackTrace): New variable.
45 * include/jvm.h: Add _Jv_ThisExecutable functions.
47 * prims.cc: (_Jv_execName): New variable.
48 (catch_segv): Call fillInStackTrace.
50 (_Jv_ThisExecutable): New functions.
51 (JvRunMain): Set the name of this executable.
53 * Makefile.am: Add java/lang/natThrowable.cc.
55 * Makefile.in: Rebuilt.
57 * acconfig.h: Add HAVE_PROC_SELF_EXE.
59 * configure.in: Force link with __frame_state_for in
60 FORCELIBGCCSPEC. Add new checks for backtrace.
61 * include/config.h.in: Rebuilt.
63 * name-finder.cc: New file.
64 * include/name-finder.h: New file.
66 2000-01-16 Anthony Green <green@cygnus.com>
68 * java/lang/StringBuffer.java (StringBuffer): Don't special case
71 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
73 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
75 2000-01-13 Tom Tromey <tromey@cygnus.com>
77 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
78 not system loader, as initiating loader.
80 2000-01-11 Tom Tromey <tromey@cygnus.com>
82 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
83 HP/UX. From David Scott Urban.
85 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
87 * java/lang/natMath.cc (pow): Cast args to `double', not
90 (IEEEremainder): Likewise.
91 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
92 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
94 2000-01-09 Anthony Green <green@cygnus.com>
96 * java/lang/natString.cc (init): Test for overflow condition
97 during out of bounds check.
98 (getChars): Throw StringIndexOutOfBoundsException, not
99 ArrayIndexOutOfBoundsException.
101 (regionMatches): Obey case option during string comparison.
103 * configure.host (ligcj_interpreter): New variable. Enable
104 interpreter by default on IA-32.
105 * configure.in: Examine libgcj_interpreter.
106 * configure: Rebuilt.
108 2000-01-07 Tom Tromey <tromey@cygnus.com>
110 * mauve-libgcj: Don't disable ClassTest.
112 * java/lang/natClass.cc (getClasses): Wrote.
114 2000-01-06 Tom Tromey <tromey@cygnus.com>
116 * java/lang/natClass.cc (_getConstructors): Correctly check
117 whether method name is the init name.
118 (getMethod): Look at accflags on method in `klass', not `this'.
120 2000-01-05 Tom Tromey <tromey@cygnus.com>
122 * java/lang/natClass.cc (getMethod): Compute offset relative to
123 `klass's methods table, not `this's table.
125 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
126 In unwrapping/widening case, check whether `k' is null, not
127 whether it is primitive. Initialize `num' from `argelts', not
128 `paramelts'. Correct create and pass arguments to ffi_call.
129 Don't let presence of `this' argument affect index used to look in
131 (COPY): Set appropriate element in `values' vector.
133 * java/lang/natClass.cc: Include <gcj/method.h>.
135 * java/lang/Class.h (_getMethods): Correctly declare as private,
138 * java/lang/Class.h (_getMethods): Declare.
139 * java/lang/Class.java (_getMethods): Declare.
140 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
141 (getDeclaredClasses): Always return empty array.
142 (_getMethods): New method.
144 (getDeclaredMethod): Return `rmethod'.
145 (finit_name): New global.
146 (getDeclaredMethods): Check for finit_name.
147 (_getMethods): Likewise.
148 (getMethod): Only return public methods.
150 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
151 jboolean and select correct ffi type on that basis.
152 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
153 Constructor call always has `void' return type.
155 2000-01-04 Tom Tromey <tromey@cygnus.com>
157 * java/lang/Class.h (getSignature): Updated.
158 * java/lang/Class.java (getSignature): Updated.
159 * java/lang/natClass.cc (getSignature): Added `is_constructor'
161 (getConstructor): Ensure constructor is public.
162 (_getConstructors): Check for public-ness of constructor when
163 `declared' is false, not when it is true.
165 2000-01-04 Warren Levy <warrenl@cygnus.com>
167 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
169 (receive): Set the sender's address in the DatagramPacket.
171 2000-01-04 Tom Tromey <tromey@cygnus.com>
173 * java/lang/reflect/natConstructor.cc (newInstance): Pass
174 declaring class as return_type argument to
175 _Jv_CallNonvirtualMethodA.
176 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
177 constructor case, create object and use it as `this' argument.
178 * java/lang/Class.h (_getConstructors): Declare.
179 (_getFields): Declare.
180 * java/lang/Class.java (getConstructors): Wrote.
181 (_getConstructors): New native method.
182 (getDeclaredConstructors): Wrote.
183 (_getFields): Declare new native method.
184 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
186 (getMethod): Work correctly when class is primitive.
187 (getDeclaredMethods): Likewise. Compute offset using `method',
189 (getDeclaredMethod): Likewise.
190 (getConstructor): Wrote.
191 (ConstructorClass): New define.
192 (getDeclaredConstructor): Wrote.
193 (_getConstructors): New method.
194 (_getFields): New method.
197 * Makefile.in: Rebuilt.
198 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
200 * prims.cc: Remove `#pragma implementation'.
201 * gcj/array.h: Remove `#pragma interface'.
203 * prims.cc (_Jv_equaln): New function.
204 * java/lang/Class.java (getSignature): Declare.
205 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
206 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
208 (getSignature): New method.
209 (getDeclaredMethod): Wrote.
211 Include StringBuffer.h.
212 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
213 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
215 (getSignature): Declare.
216 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
217 (_Jv_equaln): Declare.
218 (_Jv_CallNonvirtualMethodA): Declare.
219 * Makefile.in: Rebuilt.
220 * Makefile.am (nat_source_files): Added natConstructor.cc.
221 (java/lang/reflect/Constructor.h): New target.
222 * java/lang/reflect/natConstructor.cc: New file.
223 * java/lang/reflect/Constructor.java (newInstance): Now native.
224 (declaringClass): Renamed from decl_class.
225 (offset): Renamed from index.
226 (getType): New native method.
227 (getModifiers): Now native.
228 (getParameterTypes): Call getType if required.
229 (hashCode): Include hash code from declaring class.
230 (modifiers): Removed.
231 (toString): Call getType if required.
232 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
233 * java/lang/reflect/natMethod.cc (hack_call): New method.
234 Removed `#if 0' around FFI code.
235 Include <gnu/gcj/RawData.h>.
236 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
237 IllegalArgumentException when argument object and class disagree.
238 (_Jv_GetTypesFromSignature): New function.
240 (ObjectClass): New define.
241 (_Jv_CallNonvirtualMethodA): New function.
242 * java/lang/reflect/Method.java (hack_trampoline): New method.
243 (hack_call): New native method.
245 1999-12-21 Per Bothner <per@bothner.com>
247 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
248 offset in new Method.
250 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
252 * java/lang/natObject.cc (notify): Throw message with
253 IllegalMonitorStateException.
256 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
257 (isInterrupted_): New function, which does clear interrupt_flag.
258 (interrupt): Use `isInterrupted_'.
259 * java/lang/natThread.cc (interrupt): Add comment.
260 (join): Set `prev' in joiner loop.
261 Change various calls to `isInterrupted' to use `isInterrupted_'.
262 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
263 on linux. Set result to 0 on an interrupt. Test interrupted status
264 of java Thread object directly.
265 FLAG_INTERRUPTED: removed.
266 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
267 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
268 (_Jv_InitThreads): Don't block SIGINT.
269 (_Jv_ThreadWait): Don't configure SIGINT handler.
271 1999-12-21 Tom Tromey <tromey@cygnus.com>
273 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
275 1999-12-20 Tom Tromey <tromey@cygnus.com>
277 * java/lang/reflect/Modifier.java (STRICT): New constant.
278 (isStrict): New method.
279 (toString): Added `strict'.
281 1999-12-23 Anthony Green <green@cygnus.com>
283 * configure: Rebuilt.
284 * configure.in (LIBDATASTARTSPEC): Force data_start in with
287 1999-12-19 Anthony Green <green@cygnus.com>
289 * libgcjdata.c: New file.
290 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
291 * configure: Rebuilt.
292 * configure.in (LIBDATASTARTSPEC): Force data with a known name
294 * Makefile.in: Rebuilt.
295 * Makefile.am: Build libgcjdata.a.
297 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
298 * configure: Rebuilt.
299 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
302 1999-12-17 Tom Tromey <tromey@cygnus.com>
304 * java/lang/reflect/Method.java (toString): Call getType if
305 required. Partial fix for PR libgcj/111. From Per Bothner.
307 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
309 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
311 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
312 null String constructor parameter.
313 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
314 for exception messages.
315 BooleanClass: declare.
316 (setOption): Use BooleanClass instead of Class.forName() for
318 (bind): Cast 4th parameter of setsockopt to `char *' for
319 compatibility with older Solaris headers.
320 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
321 sprintf calls for exception messages.
322 BooleanClass, IntegerClass: declare.
323 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
326 1999-12-15 Tom Tromey <tromey@cygnus.com>
328 * java/lang/natSystem.cc (init_properties): Don't set user.name or
329 user.home if NO_GETUID defined. Only set user.dir if getcwd
332 * include/config.h.in: Rebuilt.
333 * acconfig.h (NO_GETUID): New define.
334 * configure.in: Rebuilt.
335 * configure.in: Define NO_GETUID in cross case. Check for getcwd
338 1999-12-08 Tom Tromey <tromey@cygnus.com>
340 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
341 where no recursive mutexes exist. Fixes PR libgcj/117.
343 1999-12-05 Anthony Green <green@cygnus.com>
345 * include/jvm.h: Declare many functions with
346 __attribute__((__malloc__)).
347 * gcj/javaprims.h: Ditto.
349 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
351 * THANKS: Giving credit where credit is due.
353 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
355 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
357 * java/lang/natString.cc (equalsIgnoreCase): return false if
358 anotherString is null.
359 * java/lang/Boolean.java (valueOf): return FALSE if argument is
362 1999-11-30 Tom Tromey <tromey@cygnus.com>
364 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
365 mutex to initialize. Initialize `count' if required.
368 1999-11-27 Per Bothner <per@bothner.com>
370 * exception.cc: Remove prototype declarations for malloc and free.
371 These clash with recent versions of glibc, which specifies `throws ()'
372 when __cplusplus is defined. Instead, #include <stdlib.h>.
374 1999-11-24 Tom Tromey <tromey@cygnus.com>
376 * prims.cc (_Jv_NewObjectArray): Use
377 _Jv_GetArrayElementFromElementType.
378 (_Jv_NewPrimArray): Likewise.
379 * java/lang/natObject.cc (clone): Use
380 _Jv_GetArrayElementFromElementType instead of sizeof.
381 * java/lang/natSystem.cc (arraycopy): Use
382 _Jv_GetArrayElementFromElementType.
383 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
386 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
388 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
389 Exception messages. PR java.net/57.
390 (bind): set SO_REUSEADDR before bind.
391 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
392 overruns. PR java.net/57.
394 1999-11-19 Tom Tromey <tromey@cygnus.com>
396 * Makefile.am (DIVIDESPEC): Removed.
397 (EXCEPTIONSPEC): Removed.
399 1999-11-19 Andrew Haley <aph@cygnus.com>
401 * Makefile.am (JCFLAGS): Add -L$(here)
403 * Makefile.in: Rebuild.
405 1999-11-18 Tom Tromey <tromey@cygnus.com>
407 * java/lang/natDouble.cc: Include <config.h>.
409 * include/config.h.in: Rebuilt.
410 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
411 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
413 * configure: Rebuilt.
414 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
415 requested by configure.host. Don't put `-D' option into
416 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
418 * configure: Rebuilt.
419 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
422 1999-11-18 Andrew Haley <aph@cygnus.com>
424 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
425 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
427 * Makefile.in: Rebuild
428 * acconfig.h: remove SJLJ_EXCEPTIONS
429 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
430 Do not AC_DEFINE SJLJ_EXCEPTIONS.
431 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
432 * gcj/Makefile.in, include/Makefile.in: rebuild.
433 * include/config.h.in: remove SJLJ_EXCEPTIONS.
435 1999-11-18 Andrew Haley <aph@cygnus.com>
437 * gij.cc (main): Rename label to prevent conflict.
439 * exception.cc (_Jv_type_matcher): Don't check the table if we're
440 using setjmp/longjmp exceptions: there isn't one.
442 1999-11-17 Andrew Haley <aph@cygnus.com>
444 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
445 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
446 (__sjthrow): Add declaration.
447 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
451 * Makefile.in: Rebuild
452 * acconfig.h: Add SJLJ_EXCEPTIONS
453 * configure.in: Add SJLJ_EXCEPTIONS
454 * configure: Rebuild.
455 * gcj/Makefile.in: Rebuild.
456 * gcj/cni.h: Add support for sjlj-exceptions.
457 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
458 * include/Makefile.in: Rebuild.
459 * include/default-signal.h: Add support for sjlj-exceptions.
461 1999-11-18 Tom Tromey <tromey@cygnus.com>
463 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
465 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
467 (method_cache): Made larger.
469 1999-11-11 Tom Tromey <tromey@cygnus.com>
471 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
472 initializing mutex. Initialize `count' when required.
474 1999-11-07 Anthony Green <green@trip.cygnus.com>
476 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
479 1999-11-05 Tom Tromey <tromey@cygnus.com>
481 * java/lang/natThread.cc (destroy): Removed incorrect comment.
483 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
485 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
486 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
489 1999-11-05 Tom Tromey <tromey@cygnus.com>
491 * java/lang/natThread.cc (stop): Removed argument name.
493 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
494 `private'; now has default access.
495 * Makefile.in: Rebuilt.
496 * Makefile.am (java/lang/ThreadGroup.h): Removed.
498 1999-11-04 Tom Tromey <tromey@cygnus.com>
500 * java/lang/natClass.cc (method_cache_count): Removed.
501 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
502 (_Jv_AddMethodToCache): Don't loop.
504 * configure.in: Removed `qt' threads case.
505 * include/quick-threads.h: Removed.
506 * quick-threads.cc: Removed.
508 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
509 (_Jv_ThreadDestroy): Likewise.
510 * include/no-threads.h (_Jv_ThreadCancel): Removed.
511 (_Jv_ThreadDestroy): Likewise.
512 * include/posix-threads.h (struct _Jv_Thread_t): Removed
514 (_Jv_ThreadCancel): Removed decl.
515 (_Jv_ThreadDestroy): Removed.
516 * posix-threads.cc (_Jv_ThreadCancel): Removed.
517 (throw_cleanup): Removed.
518 (really_start): Don't push or pop cleanup.
519 (_Jv_ThreadInitData): Don't initialize `exception' field.
520 * java/lang/Thread.java (stop): Officially unimplemented.
521 * java/lang/natThread.cc (stop): Officially unimplemented.
523 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
525 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
528 1999-11-02 Tom Tromey <tromey@cygnus.com>
530 * boehm.cc: Don't include boehm-config.h.
532 1999-11-01 Tom Tromey <tromey@cygnus.com>
534 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
535 (sum_blocks): Removed.
536 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
538 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
540 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
542 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
543 * java/io/InputStreamReader (InputStreamReader): ditto.
545 1999-10-22 Tom Tromey <tromey@cygnus.com>
547 * Makefile.in: Rebuilt.
548 * Makefile.am (java/lang/ClassLoader.h): New target.
549 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
552 * include/java-props.h (_Jv_Compiler_Properties): Changed
554 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
555 * include/jvm.h (_Jv_GCSetInitialHeapSize,
556 _Jv_GCSetMaximumHeapSize): Declare.
557 (JvRunMain, _Jv_RunMain): Declare.
558 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
559 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
560 (_Jv_GCSetMaximumHeapSize): Likewise.
561 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
562 (_Jv_GCSetMaximumHeapSize): Likewise.
563 * prims.cc (parse_heap_size): New function.
564 (_Jv_SetInitialHeapSize): Likewise.
565 (_Jv_SetMaximumHeapSize): Likewise.
566 (_Jv_Compiler_Properties): New global.
567 * gij.cc (help): New function.
569 (heap_size): Likewise.
570 (heap_max_size): Likewise.
571 (main): Parse arguments. Set _Jv_Compiler_Properties.
572 Include <config.h>, <java-props.h>.
573 (_Jv_Compiler_Properties): Removed.
575 1999-10-18 Tom Tromey <tromey@cygnus.com>
577 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
579 (redirect): New static field.
580 * java/lang/ClassLoader.java (getSystemClassLoader): Now
582 (getVMClassLoader0): Removed.
583 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
585 (getSystemClassLoader): Implemented.
587 1999-10-16 Anthony Green <green@cygnus.com>
589 * java/lang/ClassLoader.java (getSystemResource): Use
590 getSystemClassLoader instead of ClassLoader.system.
591 (getSystemResourceAsStream): Ditto.
593 * java/lang/natClassLoader.cc (redirect): Make static and
594 remove #ifdef INTERPRETER so it is always defined.
595 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
596 returns a VMClassLoader.
598 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
599 PropertyResourceBundle if a properties file is found before a
600 ResourceBundle class.
602 1999-10-15 Tom Tromey <tromey@cygnus.com>
604 * gij.cc (main): Formatting fixes.
605 (_Jv_Compiler_Properties): Define.
606 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
608 (init_properties): Set properites from _Jv_Compiler_Properties.
609 * include/java-props.h (_Jv_Compiler_Properties,
610 _Jv_Environment_Properties): Declare.
612 * include/java-props.h: Added copyright.
614 1999-10-13 Anthony Green <green@cygnus.com>
616 * libtool-version: Catch up by incrementing current.
618 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
619 * configure, include/config.h.in: Rebuilt.
620 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
621 * configure.in: Added --disable-getenv-properties and new define
622 `DISABLE_GETENV_PROPERTIES'.
624 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
625 (next_property_key): New function.
626 (next_property_value): New function.
627 (process_gcj_properties): New function.
628 (JvRunMain): Call process_gcj_properties.
631 * java/lang/natSystem.cc (init_properties): Set properties defined
634 * include/java-props.h: New file.
636 * java/lang/natSystem.cc (init_properties): Add new properties to
637 conform with Java Product Versioning Specification.
639 1999-10-12 Tom Tromey <tromey@cygnus.com>
641 * configure: Rebuilt.
642 * configure.in: Fixed test for --disable-java-net.
644 1999-10-06 Tom Tromey <tromey@cygnus.com>
646 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
647 when building Canadian cross.
648 (NATIVE): Don't define when cross-compiling.
650 1999-10-04 Tom Tromey <tromey@cygnus.com>
652 * java/net/natPlainSocketImpl.cc: Don't include headers if
653 java.net is disabled.
655 * Makefile.in: Rebuilt.
656 * Makefile.am (ZINCS): Removed. This is defined in configure.in
657 when needed, and must be left empty when not needed.
659 1999-10-01 Anthony Green <green@cygnus.com>
661 * THANKS: Refreshed from htdocs version.
663 1999-10-01 Steve Chamberlain <sac@pobox.com>
665 * Makefile.in: Rebuilt.
666 * Makefile.am (ZINCS): Define
668 * configure: Rebuilt.
669 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
671 * java/lang/ieeefp.h: Add definitions for picoJava.
673 1999-10-01 Tom Tromey <tromey@cygnus.com>
675 * configure: Rebuilt.
676 * configure.in: Set classpath when invoking gcj. Use changequote
677 around sed invocation.
679 * java/net/natPlainSocketImpl.cc: Stub native functions if
680 DISABLE_JAVA_NET is defined.
681 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
682 typo in exception string.
683 (getTimeToLive): Likewise.
684 Stub native functions if DISABLE_JAVA_NET is defined.
685 * java/net/natInetAddress.cc: Stub native functions if
686 DISABLE_JAVA_NET is defined.
687 * configure.host: Disable java.net for mips-tx39.
688 * configure, include/config.h.in: Rebuilt.
689 * acconfig.h (DISABLE_JAVA_NET): Undefine.
690 * configure.in: Added --disable-java-net and new define
693 1999-09-30 Tom Tromey <tromey@cygnus.com>
695 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
697 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
701 1999-09-28 Tom Tromey <tromey@cygnus.com>
703 * configure: Rebuilt.
704 * configure.in (PROCESS): In POSIX case, only set if not already
706 * configure.host (PROCESS): Set in mips-tx39 case.
708 * aclocal.m4, configure: Rebuilt.
709 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
710 appropriate AC_PROG_ symbol.
712 1999-09-24 Tom Tromey <tromey@cygnus.com>
714 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
716 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
718 Fix for PR java.util/47:
719 * configure, include/config.h: Rebuilt.
720 * configure.in: Don't look for ctime or ctime_r.
721 * Makefile.in: Rebuilt.
722 * Makefile.am (nat_source_files): Don't mention natDate.cc.
723 * java/util/natDate.cc: Removed.
724 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
726 (getAvailableIDs): Rewrote.
727 (getTimeZone): Rewrote.
728 * java/util/Date.java (toGMTString): New method.
729 (toLocaleString): New method.
732 1999-09-23 Tom Tromey <tromey@cygnus.com>
734 * configure: Rebuilt.
735 * configure.in: Print message when checking to see if gcj can
736 handle -fuse-divide-subroutine.
738 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
740 * java/lang/FirstThread.java (run0): Renamed to `run'.
743 * prims.cc (main_init): New function.
744 (JvRunMain): Call it.
745 (_Jv_RunMain): Likewise.
747 (main_init): Ignore SIGPIPE. Fixes PR 51.
749 1999-09-22 Tom Tromey <tromey@cygnus.com>
751 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
753 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
755 * java/text/MessageFormat.java (MessageFormat(String)): Set the
757 * java/text/NumberFormat.java: Check that object is a Number. If
758 not, throw IllegialArgumentException.
760 1999-09-21 Tom Tromey <tromey@cygnus.com>
762 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
763 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
765 * include/posix-threads.h (_Jv_MutexDestroy): Use
767 (_Jv_MutexLock): Likewise.
768 (_Jv_MutexUnlock): Likewise.
770 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
771 previous patch; it too was incorrect.
772 * java/io/PrintStream.java (PrintStream): Likewise.
774 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
775 refer to `this' before calling superclass constructor.
776 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
777 before calling superclass constructor.
779 1999-09-20 Tom Tromey <tromey@cygnus.com>
781 * configure: Rebuilt.
782 * configure.in: Send output of `-fuse-divide-subroutine' test
783 compilation to /dev/null.
785 1999-09-14 Tom Tromey <tromey@cygnus.com>
787 * include/java-insns.h: Turned constants into an enum. Added
788 multiple-inclusion protection.
790 1999-09-10 Tom Tromey <tromey@cygnus.com>
792 * configure: Rebuilt.
793 * configure.in: Build include/Makefile.
794 * Makefile.in: Rebuilt.
795 * Makefile.am (SUBDIRS): Added gcj and include.
796 (install-data-local): New target.
797 (extra_headers): New macro.
798 * include/Makefile.in: New file.
799 * include/Makefile.am: New file.
801 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
802 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
804 * boehm.cc: Don't include java-threads.h or gcj/field.h.
805 * resolve.cc: Include config.h.
806 * defineclass.cc: Include config.h.
807 * include/java-interp.h: Don't include config.h.
808 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
811 * gcj/javaprims.h: Regenerated namespace decls.
812 * classes.pl (scan): Don't put `;' after closing brace.
814 * Makefile.in: Rebuilt.
815 * Makefile.am (INCLUDES): Added -I for top_srcdir.
816 * configure.in: Create gcj/Makefile.
817 * gcj/Makefile.in: New file.
818 * gcj/Makefile.am: New file.
819 * java/lang/Object.h: Don't include any other headers.
820 * gcj/array.h: Renamed from include/java-array.h.
821 * gcj/field.h: Renamed from include/java-field.h.
822 * gcj/method.h: Renamed from include/java-method.h.
823 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
824 Updated all files to reflect new include structure.
826 1999-09-09 Tom Tromey <tromey@cygnus.com>
828 * configure: Rebuilt.
829 * configure.in: Fixed typo; variable is THREADSPEC and not
832 1999-09-08 Tom Tromey <tromey@cygnus.com>
834 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
835 previous change and implemented a correct test in the __m_count
838 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
841 1999-09-07 Tom Tromey <tromey@cygnus.com>
843 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
844 code and don't set errno.
846 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
847 not `r'. Changed `done_sleeping' to a `bool'.
849 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
851 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
852 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
853 by another thread, rather than by the GC.
854 (_Jv_CondWait): Prevent premature thread wakeup by GC.
855 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
856 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
859 1999-09-03 Tom Tromey <tromey@cygnus.com>
861 * configure: Rebuilt.
862 * configure.in: Check for fstat function.
863 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
866 1999-09-02 Tom Tromey <tromey@cygnus.com>
868 * include/java-array.h (jobjectArrayjchar): Removed unused
871 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
872 _Jv_PrepareCompiledClass while holding class mutex.
874 1999-09-01 Tom Tromey <tromey@cygnus.com>
876 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
877 (_Jv_PthreadGetMutex): Use it.
878 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
879 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
880 (_Jv_MutexLock): Likewise.
881 (_Jv_MutexUnlock): Likewise.
882 * include/config.h.in: Rebuilt.
883 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
884 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
885 * configure: Rebuilt.
886 * libgcj.spec.in: Don't mention INTERPSPEC.
887 * configure.in (INTERPSPEC): Removed.
888 Only run pthreads-related checks when using POSIX threads. Check
889 for m_count and __m_count in mutex structure.
891 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
893 * java/lang/natClass.cc: Fixed notification of threads
894 when class initialization is complete.
896 1999-09-01 Tom Tromey <tromey@cygnus.com>
898 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
899 * resolve.cc: Removed constants defined by
900 java.lang.reflect.Modifier.
901 Include <java/lang/reflect/Modifier.h>.
902 (_Jv_ResolvePoolEntry): Use values from Modifier.
903 (_Jv_DetermineVTableIndex): Likewise.
904 (_Jv_PrepareClass): Likewise.
906 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
907 java.lang.reflect.Modifier.
908 Include <java/lang/reflect/Modifier.h>.
909 (checkExtends): Use values from Modifier.
910 (checkImplements): Likewise.
911 (handleField): Likewise.
912 (handleConstantValueAttribute): Likewise.
913 (handleFieldsEnd): Likewise.
914 (handleMethod ): Likewise.
915 (handleMethodsEnd): Likewise.
916 (handleClassBegin): Likewise.
917 * interpret.cc: Removed constants defined by
918 java.lang.reflect.Modifier.
919 (continue1): Use values from Modifier.
920 * java/lang/natClassLoader.cc: Removed constants defined by
921 java.lang.reflect.Modifier.
923 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
924 JV_STATE_NOTHING, not `0'.
925 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
927 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
928 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
930 (_Jv_PthreadGetMutex): New function.
931 (_Jv_PthreadCheckMonitor): Use it.
932 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
933 (_Jv_MutexLock): Update `count'.
934 (_Jv_MutexUnlock): Likewise.
935 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
938 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
940 * Makefile.am (.java.lo): Add rule.
942 * Makefile.in: Rebuilt.
944 1999-09-01 Tom Tromey <tromey@cygnus.com>
946 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
947 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
949 (_Jv_CondNotify): Use it.
950 (_Jv_CondNotifyAll): Likewise.
952 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
954 1999-08-31 Tom Tromey <tromey@cygnus.com>
956 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
959 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
961 * posix-threads.cc: Include <errno.h>.
963 1999-08-23 Tom Tromey <tromey@cygnus.com>
965 * boehm.cc: Undefine TRUE and FALSE.
967 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
969 1999-08-21 Tom Tromey <tromey@cygnus.com>
971 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
974 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
976 * configure.in: Check for in_addr_t in netinet/in.h too. Check
978 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
979 (HAVE_STRUCT_IP_MREQ): Added.
980 * configure, include/config.h.in: Rebuilt.
981 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
983 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
984 Disable if ip_mreq is not available.
986 * configure.in: Check types ssize_t and in_addr_t.
987 * acconfig.h: Undefine them.
988 * configure, include/config.h.in: Rebuilt.
990 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
991 function that detects the signature of getpwuid_r.
992 (init_properties): Use it.
993 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
996 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
998 * interpret.cc (continue1): Implement explicit dispatch table.
999 insn_target: Explicit interpreter switch table.
1000 SAVE_PC: New macro, moves pc saving code into instructions that
1002 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1003 PC_REGISTER_ASM: New macro.
1004 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1005 opcode: Remove local variable.
1006 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1007 (POKEI): Use _Jv_word.
1008 (iinc): Use _Jv_word.
1009 (dupx): Change reference argument (sp) to pointer.
1012 * interpret.cc: Remove instruction timing instrumentation.
1014 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1015 comment. Don't use _Jv_ClassNameSamePackage.
1017 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1018 URLPathEntry, CacheEntry}: Removed.
1020 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1022 (.java.lo): Rule removed.
1024 * Makefile.in: Rebuilt.
1026 1999-08-19 Tom Tromey <tromey@cygnus.com>
1028 * java/lang/natThread.cc (class locker): New class.
1029 (join): Use a locker around _Jv_CondWait.
1032 1999-08-18 Tom Tromey <tromey@cygnus.com>
1034 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1035 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1037 1999-08-18 Tom Tromey <tromey@cygnus.com>
1039 * include/javaprims.h ("Java"): Regenerated namespace decls.
1041 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1043 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1044 from _Jv_InternClassStrings.
1046 * prims.cc (_Jv_RunMain): New function.
1047 (JvRunMain): Remove gij-support.
1049 * gij.cc (main): Use _Jv_RunMain.
1051 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1053 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1054 argument in temp variable.
1055 (continue1): For all op_x2y insns, use temp variable for
1056 intermediate value. Also remove some comments.
1058 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1059 (forName): Don't call _Jv_InitClass.
1061 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1063 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1065 * java/util/jar/JarInputStream.java: New file.
1067 * java/util/jar/JarEntry.java: New file.
1069 * java/util/jar/JarFile.java: New file.
1071 * java/net/URLClassLoader.java: New file.
1073 * java/net/JarURLConnection.java: New file.
1075 * gnu/gcj/protocol/jar/Handler.java: New file.
1077 * gnu/gcj/protocol/jar/Connection.java: New file.
1079 * java/security/SecureClassLoader.java: New file.
1081 * java/lang/ClassLoader.java (parent): New variable.
1082 (ClassLoader (ClassLoader)): new constructor.
1083 (findClass): New method.
1084 (loadClass): Add default 1.2 implementation.
1085 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1086 (readfully): Removed.
1088 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1089 (findSystemClass): New method.
1090 (VMClassLoader): Constructor rewritten.
1092 All other methods removed.
1094 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1095 to gnu::gcj::runtime::VMClassLoader.
1096 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1098 (VMClassLoader::findSystemClass): renamed from findBootClass.
1100 * Makefile.am: Add new files.
1101 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1103 * Makefile.in: Rebuilt.
1105 1999-08-17 Tom Tromey <tromey@cygnus.com>
1107 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1109 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1112 1999-08-16 Tom Tromey <tromey@cygnus.com>
1114 * configure: Rebuilt.
1115 * configure.in: Set DIVIDESPEC to empty string if compiler does
1116 not support -fuse-divide-subroutine.
1118 1999-08-14 Per Bothner <per@bothner.com>
1120 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1121 * java/lang/natClass.cc (initializeClass): Likewise.
1122 * java/lang/ClassLoader.java (resolveClass0): New static method.
1123 (resolveClass): Call resolveClass0.
1124 (findSystemClass): No longer static.
1126 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1128 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1130 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1132 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1135 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1137 * Makefile: Rebuilt.
1138 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1141 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1144 * configure: Rebuilt.
1145 * configure.in: Properly align --help output, fix capitalization
1147 * acinclude.m4: Likewise.
1149 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1151 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1153 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1154 (_Jv_callInterpretedMethod): Unused. Remove.
1155 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1157 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1158 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1159 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1160 * interpret.cc: use _Jv_word.
1161 * defineclass.cc: use_Jv_word.
1162 * resolve.cc: Use _Jv_word.
1163 (_Jv_ResolvePoolEntry): Return _Jv_word.
1164 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1165 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1167 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1170 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1172 * configure: Rebuilt.
1173 * configure.in (sched_yield): Try librt first, then libposix4.
1174 Add -lrt, -lposix4 to THREADSPEC.
1176 1999-08-08 Anthony Green <green@cygnus.com>
1178 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1180 1999-08-08 Anthony Green <green@cygnus.com>
1182 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1185 1999-08-08 Anthony Green <green@cygnus.com>
1189 * include/config.h.in: Rebuilt.
1190 * acconfig.h: Add INTERPRETER.
1192 * Makefile.in: Rebuilt.
1193 * Makefile.am (libffi_files): Identify the libffi object files for
1194 inclusion in libgcj.
1195 (LIBFFIINCS): Define.
1197 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1198 Dummy definition for configurations without an interpreter.
1200 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1201 java::lang::Boolean constructor.
1203 * include/java-interp.h: Always include java-cpool.h.
1205 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1206 when INTERPRETER not defined.
1208 * java/lang/Class.h (finalize): Define.
1210 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1211 IOException from File.getCanonicalPath.
1212 (getStream): Likewise.
1215 * THANKS: More thanks.
1217 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1219 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1221 (_Jv_PrepareClass): Allow non-abstract classes to
1222 have abstract subclasses.
1223 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1225 * interpret.cc (continue1/perform_invoke): Don't sign extend
1227 (continue1/lshl,lshr): Push long, not int.
1228 (continue1/ulshr): Use UINT64, not long long.
1229 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1231 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1232 * java/lang/FirstThread.java (run): Add top-level exception
1234 (run0): Renamed from run.
1236 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1238 * configure.in (--with-interpreter): Added.
1239 * include/config.h.in (INTERPRETER): Added.
1241 * java/lang/ClassLoader.java: File replaced.
1242 * java/lang/VMClassLoader.java: New file.
1243 * java/lang/natClassLoader.cc: New file.
1244 * gnu/gcj/runtime/MethodInvocation.java: New file.
1245 * gnu/gcj/util/path/SearchPath.java: New file.
1246 * gnu/gcj/util/path/PathEntry.java: New file.
1247 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1248 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1249 * gnu/gcj/util/path/URLPathEntry.java: New file.
1250 * gnu/gcj/util/path/CacheEntry.java: New file.
1251 * include/java-interp.h: New file.
1252 * include/java-cpool.h: New file.
1253 * include/java-insns.h: New file.
1254 * defineclass.cc: New file.
1255 * interpret.cc: New file.
1256 * resolve.cc: New file.
1258 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1259 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1260 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1262 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1263 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1265 (initializeClass): Use new JV_ prefixed names. Also, call
1266 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1268 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1269 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1270 JV_STATE_LINKED): New.
1271 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1272 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1273 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1274 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1275 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1276 _Jv_InterpMethodInvocation): New friends for interpreter.
1278 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1279 include/java-cpool.h and renamed with JV_ prefix.
1281 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1283 (_Jv_UnregisterClass): New decl.
1285 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1286 class loader argument.
1287 (_Jv_FindClass): Use class loader.
1289 * prims.cc (_Jv_makeUtf8Const): New function.
1290 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1291 (_Jv_NewPrimArray): Ditto.
1292 (_Jv_FindClassFromSignature): Ditto.
1293 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1294 * java/lang/reflect/natMethod.cc (getType): Ditto.
1296 * include/java-field.h (_Jv_Field::isRef): Make robust for
1297 non-resolved contexts.
1299 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1300 Also, don't mark class->next field.
1302 * java/lang/VirtualMachineError.java: Added FIXME note.
1304 * configure.in (INTERPSPEC): New spec.
1305 * libgcj.spec.in: Added INTERPSPEC.
1306 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1307 gnu/gcj/runtime/MethodInvocation.
1308 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1309 (ordinary_java_source_files): Added above mentioned java classes.
1311 * configure: Rebuilt.
1312 * Makefile.in: Rebuilt.
1314 1999-08-06 Tom Tromey <tromey@cygnus.com>
1316 * configure: Rebuilt.
1317 * configure.in: Look for sched_yield in -lrt.
1319 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1321 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1322 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1323 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1325 (toString): Print correctly when `country' is empty.
1327 1999-08-04 Per Bothner <per@bothner.com>
1329 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1331 1999-08-02 Tom Tromey <tromey@cygnus.com>
1333 * aclocal.m4, configure: Rebuilt for new libtool.
1335 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1337 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1338 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1339 * java/net/ServerSocket.java: Define ANY_IF.
1340 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1341 all network interfaces.
1342 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1343 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1345 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1347 * java/io/natFile.cc (performMkdir): Remove FIXME.
1348 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1350 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1352 * configure.in: Check for bstring.h.
1353 * configure, include/config.h.in: Rebuilt.
1354 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1355 * java/net/natPlainSocketImpl.cc: Likewise.
1357 1999-07-31 Tom Tromey <tromey@cygnus.com>
1362 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1364 * configure.in: Check for struct hostent_data and need for
1365 -D_REENTRANT for gethostbyname_r declaration.
1366 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1367 (lookup): Use hostent_data for fixed_buffer.
1368 * configure, include/config.h.in: Rebuilt.
1370 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1372 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1373 available. Don't cast memmove args to (void*).
1374 * configure.in: Do not abort if memmove is not available.
1376 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1378 * java/lang/natString.cc (substring): optimize where substring is
1380 * java/io/File.java (getName): don't return separator with file name.
1381 * java/io/natFile.cc (attr): fix overflow.
1383 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1385 * mauve-libgcj: Disable Object Serialization tests.
1387 1999-07-20 Warren Levy <warrenl@cygnus.com>
1389 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1390 Default to using PlainDatagramSocketImpl.
1391 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1393 1999-07-19 Tom Tromey <tromey@cygnus.com>
1395 * include/stamp-h.in: New file.
1397 1999-07-12 Tom Tromey <tromey@cygnus.com>
1399 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1402 1999-07-07 Andrew Haley <aph@cygnus.com>
1404 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1405 bytes to make it point after the instruction where the trap
1407 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1409 1999-07-07 Tom Tromey <tromey@cygnus.com>
1411 * mauve-libgcj: Explicitly enable formerly disabled java.text
1414 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1417 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1419 * java/net/URL.java (equals): Compare strings using String.equals.
1420 * java/net/URL.java (sameFile): Ditto.
1422 1999-07-02 Warren Levy <warrenl@cygnus.com>
1424 * configure: Rebuilt.
1425 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1426 * include/config.h.in: Rebuilt.
1427 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1428 (mcastGrp): Updated FIXME comments.
1429 (setOption): Fixed typo.
1430 (getOption):Implemented IP_MULTICAST_IF.
1432 1999-07-02 Warren Levy <warrenl@cygnus.com>
1434 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1435 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1436 (getTimeToLive): Implemented.
1437 (setOption): Implemented IP_MULTICAST_IF.
1439 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1441 * java/lang/String.java (toString): Check for this == null and throw
1442 NullPointerException.
1444 1999-07-01 Warren Levy <warrenl@cygnus.com>
1446 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1447 to count and revised comments to match.
1448 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1449 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1450 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1451 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1452 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1453 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1455 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1457 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1458 properly as count rather than outlength.
1459 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1460 output on overflow rather than buffer fill.
1461 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1462 if markPos is 0 and there is still room in the buffer.
1464 1999-07-01 Andrew Haley <aph@cygnus.com>
1466 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1467 This is a workaround for a bug in glibc's pthreads package which
1468 doesn't deliver any sigcontext information to a signal handler.
1470 1999-06-24 Tom Tromey <tromey@cygnus.com>
1472 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1473 * java/lang/fdlibm.h (HUGE): Conditionally define.
1475 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1477 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1478 * java/lang/e_log.c: Don't use __uint32_t.
1480 1999-05-27 Eric Christopher <echristo@cygnus.com>
1482 * configure: Rebuilt
1483 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1484 * acconfig.h: Rebuilt
1485 * include/config.h.in: Rebuilt
1487 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1488 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1489 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1490 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1491 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1492 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1493 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1494 and namespace collision with __uint32_t
1496 1999-06-23 Tom Tromey <tromey@cygnus.com>
1498 * java/util/zip/InflaterInputStream.java (read): Throw
1499 ZipException if inflater throws a DataFormatException.
1501 1999-06-23 Warren Levy <warrenl@cygnus.com>
1503 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1504 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1505 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1506 is not final per JDK.
1507 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1509 * java/util/zip/DataFormatException.java: Class extends Exception.
1510 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1511 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1512 * java/util/zip/ZipInputStream.java: ditto.
1513 (closeEntry): Changed method name to match JDK spec.
1515 1999-06-21 Tom Tromey <tromey@cygnus.com>
1517 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1520 * Makefile.in: Rebuilt.
1521 * Makefile.am (toolexeclibdir): Define as libdir when
1523 * configure: Rebuilt.
1524 * configure.in (USE_LIBDIR): New conditional.
1526 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1528 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1529 hostname in returned InetAddress objects.
1530 (getLocalHostname): Fix typo.
1531 * java/net/InetAddress.java (getByName): Set hostname on return
1533 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1536 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1538 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1539 interfaces if host==NULL.
1540 (accept): Throw message with InterruptedIOException.
1541 (getOption): Cache localAddress.
1542 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1543 'address' for DatagramSocket.
1544 (setTimeToLive): Fix compiler warnings.
1545 (getOption): Cache localAddress.
1546 * java/net/Socket.java (getLocalAddress): Don't need local
1547 InetAddress object. Add FIXME comment about calling checkConnect().
1548 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1549 connection queue to 50 as per JDK 1.2 docs.
1550 (ServerSocket(int,int)): Listen on all network interfaces by
1551 default, per JDK 1.2 docs.
1552 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1553 Add localAddress caching.
1555 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1557 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1559 (write(byte[],int,int)): ditto.
1561 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1563 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1565 1999-06-11 Warren Levy <warrenl@cygnus.com>
1567 * mauve-libgcj: Activated java.net Mauve tests.
1569 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1571 * java/net/natInetAddress.cc (aton): Fix typos.
1572 (lookup): Use a bigger buffer size for gethostbyname_r on all
1573 versions of glibc. Updated FIXME comment explaining this.
1574 Modified while loops to not set herr = ERANGE to work around glibc
1575 problems. Use user specified hostname in InetAddress result when
1576 available (consistent with JDK).
1578 1999-06-10 Warren Levy <warrenl@cygnus.com>
1580 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1581 Throw FileNotFoundException instead of IOException.
1583 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1585 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1586 in static field name.
1587 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1588 throughout rather than ParseException.
1590 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1592 * java/lang/Runtime.java (exec): Convert prog name and arguments
1594 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1595 environment array conversion. Preserve current environment if envp
1596 not passed. Preserve PATH unless explicitly specified.
1597 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1598 followed by EOF. Set a flag when a line is terminated by '\r' and
1599 ignore following '\n' if set.
1601 1999-06-02 Warren Levy <warrenl@cygnus.com>
1603 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1604 Ignore context if spec is an absolute URL. Fix braindead
1606 (hashCode): Use JDK 1.2 style algorithm.
1607 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1608 context URL properly.
1610 1999-05-30 Anthony Green <green@cygnus.com>
1612 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1613 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1615 1999-05-28 Warren Levy <warrenl@cygnus.com>
1617 * java/net/DatagramSocket.java (laddr): Removed.
1618 (DatagramSocket): Removed attempts to get or set laddr if null.
1619 (getLocalAddress): Reimplemented per spec.
1620 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1622 (joinGroup): Throw NullPointerException if any argument is null.
1623 (leaveGroup): ditto.
1624 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1625 * java/net/PlainSocketImpl.java (timeout): Added.
1626 (getInputStream): Added FIXME comment on how to support timeouts
1628 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1629 * java/net/Socket.java: Added FIXME comments to identify
1630 conflicting specs between the JCL and JDK 1.2 documents.
1631 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1632 if host is null. Get localport value resolved by kernel if bind
1634 (receive): Implemented support for timeouts in UDP.
1635 (setOption): Implemented based on natPlainSocketImpl version.
1637 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1638 resolved by kernel if bind lport is 0.
1639 (connect): Get localport value resolved by kernel if bind wasn't
1640 done to set localport.
1641 (accept): Implemented support for timeouts for ServerSocket.
1642 (setOption): Save value for SO_TIMEOUT.
1643 (getOption): Return timeout for SO_TIMEOUT.
1645 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1647 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1648 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1649 (setOption): Made abstract.
1650 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1651 to avoid cpp conflicts in native code.
1652 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1653 cpp conflicts in native code.
1654 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1655 * java/net/Socket.java (getLocalAddress): Implemented.
1656 (setTcpNoDelay): Implemented.
1657 (getTcpNoDelay): Implemented.
1658 (setSoLinger): Implemented.
1659 (getSoLinger): Implemented.
1660 (getSoTimeout): Verify class type.
1661 (setSendBufferSize): Implemented.
1662 (getSendBufferSize): Implemented.
1663 (setReceiveBufferSize): Implemented.
1664 (getReceiveBufferSize): Implemented.
1665 (toString): Prepended "Socket".
1666 * java/net/SocketImpl.java (toString): Rewritten.
1667 (getOption): Made abstract.
1668 (setOption): Made abstract.
1669 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1670 (setOption): Implemented.
1671 (getOption): Implemented.
1673 1999-05-26 Warren Levy <warrenl@cygnus.com>
1675 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1676 address when null. Set SO_REUSEADDR for multicasts.
1677 (getSoTimeout): Implemented.
1678 (setSoTimeout): Implemented.
1679 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1680 * java/net/MulticastSocket.java (getInterface): Implemented.
1681 (setInterface): Implemented.
1682 (setTimeToLive): Check for invalid ttl.
1683 (joinGroup): Verify multicast address and security.
1684 (leaveGroup): Verify multicast address and security.
1685 (send): Implemented.
1686 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1692 (getTTL): Implemented as non-native.
1696 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1697 (getSoTimeout): Implemented.
1698 (setSocketFactory): Made synchronized.
1699 * java/net/Socket.java (setSoTimeout): Implemented.
1700 (getSoTimeout): Implemented.
1701 (close): Made synchronized.
1702 (setSocketImplFactory): Made synchronized.
1703 * java/net/SocketImpl.java: Implement SocketOptions interface.
1704 * java/net/natInetAddress.cc: Corrected module name at top of file.
1705 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1706 (bind): Added FIXME.
1707 (peek): Implemented.
1713 (setOption): Implemented for SO_REUSEADDR.
1714 (getOption): Implemented for SO_REUSEADDR.
1716 1999-05-24 Tom Tromey <tromey@cygnus.com>
1718 * java/util/ResourceBundle.java (getBundle): Throw
1719 NullPointerException if baseName is null.
1721 1999-05-22 Tom Tromey <tromey@cygnus.com>
1723 * java/util/zip/ZipInputStream.java (fill): New method.
1724 (compressed_len): New instance variable.
1725 (getNextStream): Set it.
1726 (read): Reset inflater on EOF. Only read via `super' if entry is
1728 (skip): Only skip via `super' if entry is deflated.
1729 * java/util/zip/Deflater.java (last_input_count): Removed.
1730 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1732 (needsInput): Don't use last_input_count.
1733 (setInput): Don't set last_input_count.
1734 * java/util/zip/natInflater.cc (getRemaining): Return correct
1736 (inflate): Return 0 if input array is length 0.
1737 (setInput): Don't set last_input_count.
1738 * java/util/zip/Inflater.java (last_input_count): Removed.
1740 1999-05-21 Tom Tromey <tromey@cygnus.com>
1742 * Makefile.in: Rebuilt.
1743 * Makefile.am (INCLUDES): Added $(ZINCS).
1744 * configure: Rebuilt.
1745 * configure.in (ZINCS): New subst.
1747 1999-05-21 Andrew Haley <aph@cygnus.com>
1749 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1750 to signal options to allow the same exceptions to be rethrown
1753 1999-05-20 Andrew Haley <aph@cygnus.com>
1755 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1757 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1758 (INIT_FPE): Exception string made more informative.
1759 * include/sparc-signal.h (INIT_FPE): Exception string made more
1761 * testsuite/libjava.lang/Divide_1.java: New file.
1762 * testsuite/libjava.lang/Divide_1.out: New file.
1764 1999-05-19 Tom Tromey <tromey@cygnus.com>
1766 * aclocal.m4, configure: Rebuilt.
1767 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1769 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1772 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1774 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1776 (update): Fail in default case. Always initialize `strat'.
1778 * mauve-libgcj: Enable java.util.zip.
1780 1999-05-18 Warren Levy <warrenl@cygnus.com>
1782 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1783 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1784 PlainDatagramSocketImpl.java, and SocketOptions.java.
1785 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1786 * Makefile.in: Rebuilt.
1788 * java/net/DatagramPacket.java: New file.
1789 * java/net/DatagramSocket.java: New file.
1790 * java/net/DatagramSocketImpl.java: New file.
1791 * java/net/MulticastSocket.java: New file.
1792 * java/net/PlainDatagramSocketImpl.java: New file.
1793 * java/net/SocketOptions.java: New file.
1794 * java/net/natPlainDatagramSocketImpl.cc: New file.
1796 1999-05-18 Tom Tromey <tromey@cygnus.com>
1798 * java/util/zip/ZipOutputStream.java (level): Initial value is
1799 Deflater.DEFAULT_COMPRESSION.
1800 (close): New method.
1801 (closeEntry): Likewise.
1803 (put_version): Likewise.
1804 (write_entry): Likewise.
1805 (put2, put4): Now return `int'.
1806 (comment): Default to empty string.
1807 (bytes_written): New instance variable.
1809 * java/util/zip/ZipEntry.java (setComment): Limit length of
1811 (setCrc): Check CRC validity.
1812 (setExtra): Check argument validity.
1813 (setMethod): Likewise.
1814 (setSize): Likewise.
1815 (ZipEntry): Likewise.
1816 * include/javaprims.h: Updated namespace declarations.
1817 * Makefile.in: Rebuilt.
1818 * Makefile.am (ordinary_java_source_files): Mention new files.
1819 (nat_source_files): Likewise.
1820 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1823 (getInputStream): Handle compressed entries.
1824 * java/util/zip/GZIPOutputStream.java: New file.
1825 * java/util/zip/GZIPInputStream.java: New file.
1826 * java/util/zip/DataFormatException.java: New file.
1827 * java/util/zip/CheckedInputStream.java: New file.
1828 * java/util/zip/CheckedOutputStream.java: New file.
1829 * java/util/zip/InflaterInputStream.java: Implemented.
1830 * java/util/zip/natInflater.cc: New file.
1831 * java/util/zip/Deflater.java: Implemented.
1832 * java/util/zip/natDeflater.cc: New file.
1833 * java/util/zip/DeflaterOutputStream.java: Implemented.
1835 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1836 ZipException, not IOException.
1837 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1840 1999-05-17 Tom Tromey <tromey@cygnus.com>
1842 * java/lang/natSystem.cc (init_properties): URL now points to
1845 1999-05-12 Per Bothner <bothner@cygnus.com>
1847 * java/util/Calendar.java (set): First call computeFields if needed.
1848 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1850 1999-05-12 Tom Tromey <tromey@cygnus.com>
1852 * configure: Rebuilt.
1853 * configure.in: Look for -ldl when using the Boehm collector.
1854 Look for sched_yield in -lposix4.
1856 1999-05-12 Per Bothner <bothner@cygnus.com>
1858 * java/io/File.java (mkdirs): Handle a null parent directory.
1860 1999-05-12 Tom Tromey <tromey@cygnus.com>
1862 * include/javaprims.h: Updated namespace declarations.
1863 * classes.pl (scan): Uniquify class list.
1864 * Makefile.in, configure: Rebuilt.
1865 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1866 (built_java_source_files): New macro.
1867 (nat_headers): Added built_java_source_files.
1868 (javao_files): Likewise.
1869 (EXTRA_libgcj_la_SOURCES): Likewise.
1870 (libgcj.zip): Create built class files.
1871 ($(built_java_source_files:.java=.class)): New target.
1872 (jv_convert_LDADD): Added -L$(here)/.libs.
1873 * configure.in: Create links for ConcreteProcess.java and
1874 natConcreteProcess.cc.
1875 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1876 * java/lang/natEcosProcess.cc: New file.
1877 * java/lang/EcosProcess.java: New file.
1878 * java/lang/PosixProcess.java: New file.
1879 * java/lang/natPosixProcess.cc: New file.
1881 1999-05-12 Warren Levy <warrenl@cygnus.com>
1883 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1884 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1885 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1886 (connect): Throw ConnectException.
1888 1999-05-11 Tom Tromey <tromey@cygnus.com>
1890 * Makefile.in: Rebuilt.
1891 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1892 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1895 * Makefile.in: Rebuilt.
1896 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1897 and it causes problems with libtool.
1899 * Makefile.in, configure: Rebuilt.
1900 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1901 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1902 (jv_convert_DEPENDENCIES): Added ZDEPS.
1903 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1905 (THREADSPEC): Added `-L' to point to qthreads build directory.
1909 * configure, Makefile.in: Rebuilt.
1910 * Makefile.am (toolexeclib_DATA): New macro.
1911 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1912 Recognize --with-system-zlib.
1913 (GCSPEC): New subst.
1914 (THREADSPEC): New subst.
1915 (SYSTEMSPEC): New subst.
1916 (ZLIBSPEC): New subst.
1917 * libgcj.spec.in: New file.
1919 1999-05-10 Tom Tromey <tromey@cygnus.com>
1921 * java/io/InputStreamReader.java (read): If length is 0, return
1922 0. Reset `wpos' and `wcount' when buffer has been filled and
1925 * java/util/Properties.java (save): Removed `FIXME' comment.
1926 (load): Invalid characters in \u now treated as terminators.
1927 Make sure to append character resulting from `\' handling.
1928 Cast to `char' when appending to key or value.
1929 (skip_ws): Inverted test for whitespace.
1931 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1933 (readLine): Likewise.
1934 (readFully): Implemented.
1936 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1938 * java/awt/natToolkit.cc: Added copyright header.
1939 * java/util/zip/InflaterInputStream.java: Added copyright header.
1941 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1943 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1945 (getNextStream): Likewise.
1947 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1949 (getBundle): Don't explicitly throw null pointer exception.
1951 * gnu/gcj/RawData.java: Added copyright header.
1953 * include/jni.h (_Jv_va_list): Always define as va_list.
1955 1999-05-9 Anthony Green <green@cygnus.com>
1957 * java/text/DateFormat.java (computeInstance): Separate time
1959 (getDateTimeInstance): Ditto.
1960 (getDateTimeInstance(int,int)): New method.
1962 * Makefile.in: Rebuilt.
1963 * Makefile.am (ordinary_java_source_files): Add new classes.
1965 * java/util/PropertyResourceBundle.java: New file.
1966 * gnu/gcj/util/EnumerationChain.java: New file.
1968 1999-05-07 Tom Tromey <tromey@cygnus.com>
1970 * acconfig.h (GCJVERSION): New undef.
1971 * java/lang/natSystem.cc (init_properties): Define java.version,
1972 java.class.version, os.name, os.arch, os.version.
1973 Include <sys/utsname.h> if required.
1974 * configure: Rebuilt.
1975 * configure.in: Compute and define GCJVERSION.
1977 * java/lang/natSystem.cc (default_file_encoding): Now static.
1979 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1981 * libtool-version: New file.
1982 * Makefile.in: Rebuilt.
1983 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1986 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1987 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1990 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1991 (we pick those up already).
1993 1999-05-05 Per Bothner <bothner@cygnus.com>
1995 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1996 stub classes. (This is enough to get Kawa to compile against libgcj.)
1998 * gnu/gcj/RawData.java: New class.
1999 * doc/cni.sgml: Document RawData.
2001 * java/util/zip/InflaterInputStream.java: New stub class.
2002 * java/util/zip/ZipInputStream.java: New class. Partly works.
2003 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2004 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2005 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2006 * java/util/zip/ZipOutputStream.java: Start implementation.
2008 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2009 (default_file_encoding): New global, initial value is above macro.
2010 (init_properties): Default file.encoding to default_file_encoding.
2012 * Makefile.am: Add new classes.
2014 1999-05-05 Tom Tromey <tromey@cygnus.com>
2016 * Makefile.in: Rebuilt.
2017 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2018 (clean-local): New target
2020 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2021 (load, loadLibrary): Now native.
2023 * java/lang/Runtime.java (load, loadLibrary): Now native.
2024 (init): New native method.
2025 (Runtime): Use init.
2026 * prims.cc: Include <ltdl.h> if required.
2027 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2029 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2031 * configure.in: Switch from irix threads to posix threads
2032 * configure: Regenerate.
2034 1999-04-30 Tom Tromey <tromey@cygnus.com>
2036 * Makefile.in: Rebuilt.
2037 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2039 1999-04-29 Tom Tromey <tromey@cygnus.com>
2041 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2044 * java/util/Locale.java (Locale(String,String)): Implement in
2045 terms of 3-argument version; variant now defaults to empty
2047 (toString): Assume variant is not null.
2048 (equals): Assume all strings are not null.
2049 (Locale): Throw NullPointerException if any argument is null.
2051 * java/util/ResourceBundle.java (getBundle): Don't try the base
2052 name; now implicit in partialGetBundle call.
2053 (trySomeGetBundle): Search for parent bundles and call setParent
2055 (partialGetBundle): Added `langStop' argument. Use
2056 `Locale.toString' to compute bundleName.
2057 (resource_cache): New static field.
2058 (partialGetBundle): Cache the returned resource bundle. Now
2061 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2064 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2065 * java/text/natCollator.cc (decomposeCharacter): `base' now
2067 * Makefile.in: Rebuilt.
2068 * Makefile.am (ordinary_java_source_files): Added
2069 CollationElementIterator, CollationKey, Collator,
2071 (nat_source_files): Added natCollator.cc.
2072 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2073 (compare): Pass `this' to CollationElementIterator constructor.
2074 (getCollationElementIterator): Likewise.
2075 (ceiNext): Fix off-by-one error when finding initial substring.
2076 (next): Correctly mask off bits when computing return value.
2077 Fixed return values when one string is shorter than the other.
2078 * java/text/CollationElementIterator.java (collator): New field.
2079 (CollationElementIterator): Added collator argument.
2080 (next): Call ceiNext on collator object.
2082 1999-04-26 Tom Tromey <tromey@cygnus.com>
2084 * natCollator.cc: New file.
2086 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2087 (GregorianCalendar): Use it in all constructors.
2088 * java/util/Calendar.java (Calendar): Changed argument name to
2089 `zone' to match code.
2091 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2092 * java/text/CollationKey.java: New file.
2093 * java/text/CollationElementIterator.java: New file.
2094 * java/text/Collator.java: New file.
2095 * java/text/RuleBasedCollator.java: New file.
2097 * Makefile.in: Rebuilt.
2098 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2099 (jv_convert_LDADD): Explicltly add -lm -lc.
2101 1999-04-26 Tom Tromey <tromey@cygnus.com>
2103 * configure, Makefile.in: Rebuilt.
2104 * configure.in: Added AM_PROG_LIBTOOL.
2105 (GCOBJS): Use `.lo' form of files.
2106 (THREADOBJS): Likewise.
2107 (GCDEPS): Use `.la' form of library.
2108 (GCLIBS): Set to be the same as GCDEPS.
2109 (THREADDEPS): Use `.la' form of library.
2110 (THREADLIBS): Set to be the same as THREADDEPS.
2111 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2112 toolexeclib_LIBRARIES.
2113 (libgcj_la_SOURCES): Renamed for libtoolization.
2114 (EXTRA_libgcj_la_SOURCES): Likewise.
2115 (libgcj_la_DEPENDENCIES): Likewise.
2116 (libgcj_la_LIBADD): Likewise.
2117 ($(nat_files)): Use LTCXXCOMPILE.
2118 ($(c_files)): Use LTCOMPILE.
2119 (GCJCOMPILE): New macro.
2121 (.java.o): Likewise.
2122 ($(javao_files)): Likewise.
2123 (jv_convert_LINK): Use LIBTOOL.
2124 (nat_files): Use `.lo' files.
2125 (c_files): Likewise.
2126 (javao_files): Likewise.
2127 (.class.lo): Renamed.
2128 (.java.lo): Likewise.
2129 ($(nat_files)): Depend on %.lo.
2130 ($(c_files)): Likewise.
2131 ($(javao_files)): Likewise.
2132 (jv_convert_LDADD): Link against .lo files.
2133 (jv_convert_DEPENDENCIES): Depend on .lo files.
2134 (maintainer-check): Depend on libgcj.la, but examine .a file.
2135 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2136 (libgcj_la_LDFLAGS): New macro.
2138 1999-04-23 Warren Levy <warrenl@cygnus.com>
2140 * Makefile.am: Added URLDecoder and URLEncoder.
2141 * Makefile.in: Rebuilt.
2143 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2144 setSocketImplFactory to match spec.
2145 * java/net/Socket.java (getSoLinger): Changed return type to
2148 * java/net/URLDecoder.java: New file.
2149 * java/net/URLEncoder.java: New file.
2151 1999-04-21 Tom Tromey <tromey@cygnus.com>
2153 * java/lang/natString.cc (getBytes): Reverted earlier change and
2154 applied correct fix from Per Bothner.
2156 * java/lang/String.java: Don't throw
2157 UnsupportedEncodingException.
2159 * java/lang/natString.cc (getBytes): Correctly size result
2160 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2162 1999-04-20 Andrew Haley <aph@cygnus.com>
2164 * include/sparc-signal.h: new file.
2165 * configure.in: include/sparc-signal.h added.
2166 * configure: regenerated.
2167 * prims.cc (JvRunMain): signal handling code rewritten to be more
2169 (catch_segv): ditto.
2171 * include/i386-signal.h: reorganized.
2172 * include/default-signal.h: reorganized.
2174 1999-04-19 Tom Tromey <tromey@cygnus.com>
2176 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2177 once. From Anthony Green.
2179 1999-04-19 Andrew Haley <aph@cygnus.com>
2181 * Makefile.in: Processed with new automake.
2183 1999-04-19 Tom Tromey <tromey@cygnus.com>
2185 * include/javaprims.h: Removed security namespace.
2187 1999-04-20 Anthony Green <green@cygnus.com>
2189 * java/io/PrintStream.java (println): Remove extra println.
2191 1999-04-19 Anthony Green <green@cygnus.com>
2193 * Makefile.in: Rebuilt.
2194 * Makefile.am (ordinary_java_source_files): Add new security files.
2196 * java/security/NoSuchAlgorithmException.java,
2197 java/security/MessageDigest.java: New files.
2199 * include/javaprims.h: Add security namespace.
2201 1999-04-16 Per Bothner <bothner@cygnus.com>
2203 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2204 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2205 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2206 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2207 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2208 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2209 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2210 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2211 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2212 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2213 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2214 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2215 * Makefile.am: Various changes for new files and conversions.
2217 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2218 New overloading, allows greater efficiency.
2219 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2220 New overloading (for efficiency - avoids copying).
2222 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2223 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2225 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2226 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2227 (writeChars): Don't be quite so eager to flush.
2228 * java/io/PrintStream.java: Rewrite. Now more similar to
2229 OutputStreamWriter, using explicit UnicodeToBytes converter.
2230 Also, autoflush does not need to flush so often.
2231 * java/lang/natString.cc (getBytes): More efficient algorithm.
2232 (init(jbyteArray,jint,jint,jstring)): More efficient.
2234 1999-04-15 Warren Levy <warrenl@cygnus.com>
2236 * Makefile.am (ordinary_java_source_files): Added new Connection
2237 and Handler classes in gnu.gcj.protocol.file package.
2238 * Makefile.in: Rebuilt.
2240 * gnu/gcj/protocol/file/Connection.java: New file.
2241 * gnu/gcj/protocol/file/Handler.java: New file.
2242 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2243 if doInput allows input.
2244 (getOutputStream): Check if doOutput allows output.
2245 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2247 1999-04-14 Tom Tromey <tromey@cygnus.com>
2249 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2250 buffer larger to work around bug.
2251 From Bryce McKinlay <bryce@albatross.co.nz>.
2253 1999-04-14 Andrew Haley <aph@cygnus.com>
2255 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2256 NaNs are always converted to the same long value.
2257 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2260 1999-04-13 Tom Tromey <tromey@cygnus.com>
2262 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2263 instead switch on actual element type.
2265 * Makefile.in: Rebuilt.
2266 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2268 1999-04-13 Andrew Haley <aph@cygnus.com>
2270 * include/i386-signal.h, include/default-signal.h: New files.
2271 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2273 (catch_fpe): New function.
2274 * configure.in: Make link to appropriate include/java-signal.h.
2275 * configure: Rebuilt.
2276 * Makefile.am: include/java-signal.h added to dependency list.
2277 * Makefile.in: Rebuilt.
2279 1999-04-12 Urban Widmark <urban@svenskatest.se>
2281 * java/io/DataInputStream.java (readLine): Corrected handling of
2282 empty lines, from null to "".
2284 1999-04-12 Tom Tromey <tromey@cygnus.com>
2286 * Makefile.in: Rebuilt.
2287 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2289 * java/lang/natSystem.cc (SystemClass): New define.
2290 (init_properties): Synchronize.
2292 1999-04-08 Geoff Berry <gcb@gnu.org>
2294 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2295 * natPlainSocketImpl.cc (accept): Add missing else if check
2298 1999-04-08 Tom Tromey <tromey@cygnus.com>
2300 * java/lang/Long.java (parseLong): Corrected overflow detection
2302 * java/lang/Integer.java (parseInt): Corrected overflow detection
2305 * java/io/PrintStream.java (print): Handle null string argument.
2306 (println): Likewise.
2308 1999-04-07 Warren Levy <warrenl@cygnus.com>
2310 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2311 Set count to 0 when InputStreamReader returns -1 for EOF.
2313 1999-04-07 Tom Tromey <tromey@cygnus.com>
2315 * mauve-libgcj: Omit java.text.Collator,
2316 java.text.RuleBasedCollator.
2318 1999-04-06 Tom Tromey <tromey@cygnus.com>
2320 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2321 IOException from getHttpHeaders().
2322 (getHeaderFieldKey): Likewise.
2324 * include/javaprims.h: Regenerated declarations.
2326 * Makefile.in: Rebuilt.
2327 * Makefile.am (ordinary_java_source_files): Updated for removed
2330 1999-04-06 Per Bothner <bothner@cygnus.com>
2332 * java/util/zip/Adler32.java: New class.
2333 * java/util/zip/CRC32.java: Add working method bodies.
2334 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2335 * Makefile.in: Re-generate.
2337 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2339 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2340 from version in removed www hierarchy.
2341 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2342 version in removed www hierarchy.
2344 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2345 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2346 * gnu/gcj/www/protocol/http: Removed dir.
2347 * gnu/gcj/www/protocol: Removed dir.
2348 * gnu/gcj/www: Removed dir.
2350 * java/net/HttpURLConnection.java: Revised comments to indicate
2351 missing JDK 1.2 methods.
2353 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2354 hierarchy rather than the gnu/gcj/www/protocol one.
2355 * java/net/URLConnection.java: Updated status comments.
2356 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2357 the gnu/gcj/www/content one.
2359 1999-04-06 Per Bothner <bothner@cygnus.com>
2361 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2362 The gen-from-JIS program is in $(CONVERT_DIR).
2364 1999-04-06 Tom Tromey <tromey@cygnus.com>
2366 * mauve-libgcj: Renamed from mauve-libjava.
2368 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2370 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2371 (getResponseMessage): Implemented.
2372 (getResponseVals): New private method.
2374 * java/net/URLConnection.java (getContent): Implemented.
2375 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2377 1999-04-05 Tom Tromey <tromey@cygnus.com>
2379 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2380 (jv_convert_SOURCES): Renamed.
2381 (EXTRA_jv_convert_SOURCES): Likewise.
2382 (jv_convert_LDFLAGS): Likewise.
2383 (jv_convert_LINK): Likewise.
2384 (jv_convert_LDADD): Likewise.
2385 (jv_convert_DEPENDENCIES): Likewise.
2387 * Makefile.in: Rebuilt.
2388 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2391 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2393 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2394 method for comparison.
2396 * java/net/URLConnection.java (getContentLength): Implemented.
2397 (getContentType): Implemented.
2398 (getContentEncoding): Implemented.
2399 (getExpiration): Implemented.
2400 (getDate): Implemented.
2401 (getLastModified): Implemented.
2402 (getHeaderFieldInt): Implemented.
2403 (getHeaderFieldDate): Implemented.
2405 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2407 * java/net/URLConnection.java (toString): Implemented.
2408 (setContentHandlerFactory): Implemented.
2409 (setContentHandler): Wrote new private helper method.
2411 1999-04-01 Tom Tromey <tromey@cygnus.com>
2413 * Makefile.in: Rebuilt.
2414 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2415 of 1999-03-31; we always want to build all the .class files.
2416 Depend on java_source_files, not libgcj.zip.
2417 (nat_headers): Define in terms of ordinary_java_source_files.
2419 1999-03-31 Tom Tromey <tromey@cygnus.com>
2421 * Makefile.in: Rebuilt.
2422 * Makefile.am (special_java_source_files): New macro.
2423 (java_source_files): Use it.
2424 (ordinary_java_source_files): New macro.
2425 (java_source_files): Use it.
2426 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2427 creating headers for those files with hand-maintained headers.
2429 * include/javaprims.h: Regenerated namespace declarations.
2430 * classes.pl (scan): Include [0-9] in regexp for matching class
2431 names; for java.util.zip.CRC32.
2433 * Makefile.in: Rebuilt.
2434 * Makefile.am (nat_headers): Redefined to generate all possible
2437 * java/util/zip/ZipException.java: In package java.util.zip, not
2440 1999-03-30 Tom Tromey <tromey@cygnus.com>
2442 * configure: Rebuilt.
2443 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2444 eh-common.h when not building in tree with gcc.
2446 * Makefile.in: Rebuilt.
2447 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2448 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2450 ($(java_source_files:.java=.class)): New target.
2452 * Makefile.in: Rebuilt.
2453 * Makefile.am (java_source_files): Added
2454 java/net/HttpURLConnection.java and
2455 gnu/gcj/www/protocol/http/Connection.java.
2457 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2459 * gnu/gcj/www/protocol/http/Connection.java: New file.
2460 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2461 * java/net/HttpURLConnection.java: New file.
2462 * java/net/URLConnection.java (getHeaderField): Implemented default.
2463 (getHeaderFieldKey): Implemented default method.
2465 1999-03-30 Tom Tromey <tromey@cygnus.com>
2467 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2469 * java/util/zip/Deflater.java: Added copyright header.
2470 * java/util/zip/CRC32.java: Added copyright header.
2472 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2473 that it is automatically generated.
2474 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2476 * gnu/gcj/convert/BytesToUnicode.java,
2477 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2478 gnu/gcj/convert/Input_EUCJIS.java,
2479 gnu/gcj/convert/Input_UTF8.java,
2480 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2481 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2482 gnu/gcj/convert/Output_8859_1.java,
2483 gnu/gcj/convert/Output_JavaSrc.java,
2484 gnu/gcj/convert/Output_UTF8.java,
2485 gnu/gcj/convert/UnicodeToBytes.java,
2486 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2488 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2490 * Makefile.in, configure: Rebuilt.
2491 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2492 not if test subdir exists.
2493 (--enable-gcj-classes): Removed; gcj always used to generate
2495 (JAVA, JAVAC): Removed.
2496 (--enable-single-compilation, --enable-source-compilation):
2499 (NATIVE): New conditional.
2500 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2501 `install-exec' to work.
2502 (toolexeclibdir): Likewise.
2503 (toollib_LIBRARIES): Likewise.
2504 (AM_MAKEFLAGS): Don't pass tooldir.
2506 (javao_files): Redefined.
2507 (java_source_files): New macro.
2508 (c_source_files): New macro.
2509 (c_files): Redefined in terms of c_source_files.
2510 (java_io_files, java_lang_files, java_net_files, java_text_files,
2511 java_util_files, gnu_files, java_files): Removed.
2512 (class_io_files, class_lang_files, class_net_files,
2513 class_text_files, class_util_files, class_gnu_files, class_files):
2515 (nat_source_files): New macro.
2516 (nat_files): Redefined in terms of nat_source_files.
2517 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2518 java_source_files. Removed no-such-file.c.
2520 (ETAGS_ARGS): Removed.
2521 (TAGS_DEPENDENCIES): Likewise.
2522 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2524 (src_io_files, src_lang_files, src_text_files, src_util_files,
2525 src_gnu_files): Removed.
2526 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2527 (BUILT_SOURCES): Removed.
2528 (header-check): New target.
2530 (noinst_PROGRAMS): New macro.
2531 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2533 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2534 (gen-from-JIS): Build in top directory.
2535 (convert_source_files): New macro.
2536 (convert_SOURCES): New macro.
2537 (convert_LDFLAGS): Likewise.
2538 (convert_LINK): Likewise.
2539 (convert_LDADD): Likewise.
2540 (convert_DEPENDENCIES): Likewise.
2542 (gen-from-JIS): Removed.
2543 (gen_from_JIS_SOURCES): New macro.
2544 (gen_from_JIS_LDADD): Likewise.
2545 (gen_from_JIS_DEPENDENCIES): Likewise.
2547 * configure: Rebuilt.
2548 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2549 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2550 when defining conditional.
2552 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2554 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2555 The Unicode Consortium does not permit their re-distribution.
2556 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2557 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2559 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2561 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2563 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2565 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2566 from Unicode Consortium.
2567 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2568 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2569 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2570 New tables, generated using gen-from-JIS.
2571 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2572 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2573 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2574 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2576 * gnu/gcj/convert/Convert.java: New application.
2577 * Makefile.am, Makefile.in (convert): New program, using Convert.
2578 Build the various JIS conversion tables (in maintainer mode).
2580 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2582 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2584 * java/net/URL.java (URL): Deal with null property value. Use "."
2585 as separator in building class name.
2586 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2587 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2588 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2589 beginning of the substring rather than 'start'.
2591 1999-03-26 Tom Tromey <tromey@cygnus.com>
2593 * include/java-chartables.h: Rebuilt.
2594 * include/java-chardecomp.h: New file.
2595 * chartables.pl: Generate output files directly. Added support
2596 for generating decomposition header.
2597 (canonical_decomposition, full_decomposition): New globals.
2598 (DECOMPOSITION): New constant.
2599 (process_char): Call add_decomposition.
2600 (add_decomposition): New sub.
2601 (write_decompositions): New sub.
2603 1999-03-25 Tom Tromey <tromey@cygnus.com>
2605 * java/text/CollationElementIterator.java: New file.
2607 * mauve-libjava: Omit StringTest.
2609 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2611 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2612 without a '/' when parsing protocol. Handle ref outside of parseURL.
2613 (hashCode): Implemented.
2614 (set): Don't expand -1 to default port.
2615 (getDefaultPort): Removed.
2617 * java/net/URLStreamHandler.java (parseURL): Implemented.
2618 (toExternalForm): Implemented.
2620 1999-03-23 Tom Tromey <tromey@cygnus.com>
2622 * java/text/BreakIterator.java (getSentenceInstance):
2624 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2626 * Makefile.in: Rebuilt.
2627 * Makefile.am (nat_headers): Added IllegalAccessException.
2628 * java/lang/natClass.cc (newInstance): Throw
2629 IllegalAccessException, not IllegalAccessError.
2630 Include IllegalAccessException.h.
2632 1999-03-22 Tom Tromey <tromey@cygnus.com>
2634 * gnu/gcj/text/LineBreakIterator.java: New file.
2635 * java/text/BreakIterator.java (getLineInstance): Implemented.
2637 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2638 copy constructor private.
2639 (previous, next): Removed erroneous comment about line
2641 (previous): Correctly recognize break between non-letter on the
2642 left and letter on the right. Handle apostrophes correctly.
2644 * java/text/BreakIterator.java (getWordInstance): Implemented.
2645 * gnu/gcj/text/WordBreakIterator.java: New file.
2646 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2648 * gnu/gcj/text/BaseBreakIterator.java: New file.
2650 1999-03-19 Tom Tromey <tromey@cygnus.com>
2652 * java/text/BreakIterator.java: New file (partially stubbed out).
2653 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2655 * include/config.h.in: Rebuilt.
2656 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2657 (HAVE_TIMEZONE): Likewise.
2658 * configure: Rebuilt.
2659 * configure.in: Added timezone checks.
2660 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2663 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2665 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2666 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2667 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2668 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2669 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2670 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2671 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2672 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2674 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2675 (BSD_COMP): Kludge needed for Solaris2.
2677 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2679 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2680 URL(java.net.URL, string, URLStreamHandler) and call it with a
2681 null handler. In latter constructor, added SecurityManager check.
2682 (set): Expect null handler on bad protocol rather than an exception.
2683 (setURLStreamHandler): Simplified exception handling; return null
2684 on invalid protocol.
2686 1999-03-18 Tom Tromey <tromey@cygnus.com>
2688 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2690 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2692 Include PrintStream.h, InputStream.h.
2693 * java/lang/System.java (ForwardingInputStream,
2694 ForwardingOutputStream): Removed.
2695 (setErr, setIn, setOut): Now native.
2697 Reverted patch from 1999-02-12 to work around problem in
2699 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2700 (_Jv_eh_free): Use free.
2702 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2703 for path name. Minor formatting fixes.
2705 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2707 * prims.cc (fail_on_finalization): New function.
2708 (_Jv_GCWatch): Likewise.
2710 * prims.cc (JvRunMain): Initialize `nullp'.
2711 (nullp): New global.
2712 (catch_segv): Throw nullp.
2714 * Makefile.in: Rebuilt.
2715 * Makefile.am (ZIP): In "null target" case, zip is found in the
2718 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2722 * java/lang/StringBuffer.java (StringBuffer): Don't use
2723 ensureCapacity to set initial capacity.
2724 (capacity): Subtract `length' from return result.
2726 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2728 * java/io/natFileDescriptorPosix.cc (open): Throw
2729 FileNotFoundException, but with filename and errno in msg.
2731 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2733 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2734 functionality folded into java/net/URL.java per spec.
2736 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2737 than EEXIST for throwing FileNotFoundException.
2739 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2740 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2742 * java/net/URLStreamHandler.java (parseURL): Added stub.
2744 1999-03-15 Andrew Haley <aph@cygnus.com>
2746 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2749 1999-03-15 Andrew Haley <aph@cygnus.com>
2751 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2754 1999-03-12 Tom Tromey <tromey@cygnus.com>
2756 * prims.cc (catch_segv): New function.
2757 Include <signal.h> if HANDLE_SEGV defined. Include
2758 NullPointerException.h.
2759 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2762 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2763 a SimpleDateFormat, not just a DateFormat.
2764 (defaultCenturyStart, formatData, pattern): Now private.
2765 (append): Now `final'. Use `NumberFormat.format'.
2767 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2769 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2772 * java/text/MessageFormat.java (format): Use default MessageFormat
2774 (parse, parseObject): Wrote.
2776 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2779 1999-03-12 Andrew Haley <aph@cygnus.com>
2781 * java/lang/String.java (indexOf): Replace with native method for
2783 * java/lang/natString.cc (IndexOf): As above.
2785 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2786 Argument check corrected.
2787 (init(jbyteArray,jint,jint,jstring)): Likewise.
2789 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2790 1.2 compliant method.
2792 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2794 * java/lang/Float.java (byteValue, shortValue): Likewise.
2796 1999-03-11 Tom Tromey <tromey@cygnus.com>
2798 * java/text/DecimalFormat.java (parse): Wrote.
2800 * java/text/ChoiceFormat.java (parse): Set error index on
2801 ParsePosition object.
2803 * java/lang/Integer.java (parseInt): Throw exception on overflow
2804 when intermediate result is most negative number. Changed
2805 overflow detection as well.
2806 * java/lang/Long.java (parseLong): Likewise.
2808 * configure, Makefile.in: Rebuilt.
2809 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2810 CANADIAN when building in source tree that doesn't include gcc.
2811 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2814 * java/text/ChoiceFormat.java (nextDouble): Correct some
2815 off-by-one errors when masking or adding.
2817 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2818 parameter, if given. Use `%', not IEEEremainder.
2819 (scanFix): Throw error if multiplier already set.
2820 (computePattern): Wrote.
2822 1999-03-11 Andrew Haley <aph@cygnus.com>
2824 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2826 (nextDouble): Corrected masking logic. Handle interaction between
2827 `next' and negative numbers.
2829 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2831 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2832 * java/net/URL.java: Added general comments.
2834 1999-03-10 Tom Tromey <tromey@cygnus.com>
2836 * java/text/ChoiceFormat.java (parse): Wrote.
2838 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2840 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2841 Create ChoiceFormat objects.
2842 (format): Special-case ChoiceFormat.
2843 (scanFormatElement): Include { and } in generated style string.
2845 1999-03-09 Tom Tromey <tromey@cygnus.com>
2847 * java/text/ChoiceFormat.java: New file.
2849 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2851 * java/net/BindException.java: Created.
2852 * java/net/ConnectException.java: Created.
2853 * java/net/ContentHandler.java: Created.
2854 * java/net/ContentHandlerFactory.java: Created.
2855 * java/net/FileNameMap.java: Created.
2856 * java/net/MalformedURLException.java: Created.
2857 * java/net/NoRouteToHostException.java: Created.
2858 * java/net/ProtocolException.java: Created.
2859 * java/net/ServerSocket.java (@author): Fixed typo.
2860 * java/net/Socket.java (@author): Fixed typo.
2861 * java/net/SocketImpl.java (@author): Fixed typo.
2862 * java/net/SocketImplFactory.java (@author): Fixed typo.
2863 * java/net/URL.java: Created - nearly complete.
2864 * java/net/URLConnection.java: Created - near-empty stub.
2865 * java/net/URLStreamHandler.java: Created - incomplete stub.
2866 * java/net/URLStreamHandlerFactory.java: Created.
2867 * java/net/UnknownServiceException.java: Created.
2869 1999-03-09 Tom Tromey <tromey@cygnus.com>
2871 * java/lang/System.java (ForwardingInputStream): New class.
2872 (ForwardingOutputStream): Likewise.
2873 (in, out, err): Now `final' forwarding streams.
2874 (setIn, setOut, setErr): Use appropriate method on forwarding
2877 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2880 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2882 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2883 * java/util/zip/Checksum.java: New interface (complete).
2884 * java/util/zip/Deflater.java: New class (near-empty stub).
2885 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2886 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2887 * java/util/zip/ZipEntry.java: New class (complete).
2888 * java/util/zip/ZipException.java: New class (complete).
2889 * java/util/zip/ZipFile.java: New class (incomplete stub).
2890 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2892 1999-03-09 Tom Tromey <tromey@cygnus.com>
2894 * java/text/MessageFormat.java (MessageFormatElement): Removed
2895 `public' specifiers.
2897 * java/text/DecimalFormat.java (scanFormat): Increment index
2898 before processing exponential format. Fixed a couple typos in
2900 (format): Correct normalization of exponent.
2902 1999-03-08 Tom Tromey <tromey@cygnus.com>
2904 * java/text/SimpleDateFormat.java (parse): Throw
2905 IllegalArgumentException, not ParseException.
2907 1999-03-05 Tom Tromey <tromey@cygnus.com>
2909 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2910 when constructing DateFormatSymbols. Initialize numberFormat
2911 field of superclass.
2913 * java/text/DateFormat.java (equals): Rewrote.
2914 (getAvailableLocales): New method.
2915 (getDateInstance): New methods.
2916 (getDateTimeInstance): Likewise.
2917 (getTimeInstance): Likewise.
2918 (getInstance): New method.
2919 (computeInstance): New method.
2921 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2923 (safeGetResource): New method.
2924 (DateFormatSymbols): Use Locale paramater.
2925 (equals): Now protected.
2926 Made instance variables private.
2928 1999-03-04 Tom Tromey <tromey@cygnus.com>
2930 * java/text/DecimalFormat.java: New file.
2932 * java/text/NumberFormat.java (groupingUsed,
2933 maximumFractionDigits, maximumIntegerDigits,
2934 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2936 (setDecimalSeparatorAlwaysShown, setMultiplier,
2937 setPositivePrefix): Removed.
2938 (setMinimumFractionDigits, setMaximumFractionDigits):
2940 (format): Now final.
2941 Added many new methods.
2943 * Makefile.in: Rebuilt.
2944 * Makefile.am (gnu_files): New macro.
2945 (java_files): Added gnu_files.
2946 (class_gnu_files): New macro.
2947 (class_files): Use it.
2948 (src_gnu_files): New macro.
2949 (gnu.o): New target.
2950 (javao_files): Added gnu.o.
2952 * gnu/gcj/text/LocaleData_en_US.java: New file.
2953 * gnu/gcj/text/LocaleData_en.java: New file.
2954 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2955 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2956 (safeGetString): New method.
2957 (safeGetChar): Likewise.
2959 1999-03-03 Tom Tromey <tromey@cygnus.com>
2961 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2964 * java/text/FieldPosition.java (equals): Don't check for null
2965 object; instanceof does this.
2967 * java/util/Locale.java (clone): New method.
2970 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2972 * doc/cni.sgml: New file.
2974 1999-03-03 Tom Tromey <tromey@cygnus.com>
2976 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2978 * java/text/DecimalFormatSymbols.java: New file.
2980 1999-03-02 Tom Tromey <tromey@cygnus.com>
2982 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2984 * configure: Rebuilt.
2985 * configure.in: Check for sys/filio.h.
2987 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2989 (load): Always throw UnsatisfiedLinkError.
2990 (loadLibrary): Likewise.
2992 1999-03-02 Anthony Green <green@cygnus.com>
2994 * LIBGCJ_LICENSE: New file.
2995 * LIBJAVA_LICENSE: Removed.
2996 * Many files: libjava now libgcj.
2998 1999-03-02 Tom Tromey <tromey@cygnus.com>
3000 * include/java-chartables.h: Rebuilt.
3001 * chartables.pl (print_block): Make table `const'.
3002 (print_numerics): Likewise.
3003 (print_single_map): Likewise.
3004 (print_all_block): Likewise.
3005 (print_case_table): Likewise.
3006 (print_fast_tables): Likewise.
3007 * java/lang/natCharacter.cc (table_search): `table' argument now
3010 1999-03-01 Tom Tromey <tromey@cygnus.com>
3012 * java/util/Date.java (before, after): Inverted logic.
3014 * java/util/Date.java (parse): Handle case where first character
3015 in string is open parenthesis.
3016 (skipParens): Rewrote.
3018 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3019 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3021 * java/util/Date.java (parse): Correctly compute beginning of
3024 * java/util/Hashtable.java (get): Throw NullPointerException if
3026 (containsKey): Likewise.
3028 * java/util/Properties.java (list): Truncate value to 37
3029 characters and add `...'.
3031 * java/lang/Byte.java (parseByte): Pass `radix' to
3034 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3036 Include System.h, PrintStream.h.
3038 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3041 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3043 * configure: Rebuilt.
3044 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3047 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3049 * java/lang/SecurityManager.java: Import java.net.*.
3050 (checkMulticast): New methods.
3052 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3054 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3055 (nat_files): Add java/lang/reflect/natArray.o.
3056 (nat_headers): Add Field.h and NoSuchFieldException.h.
3058 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3059 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3060 (_Jv_FromReflectedField): Fix buglet.
3061 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3062 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3063 * prims.cc (_Jv_Abort): Include message in print-out.
3065 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3066 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3067 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3069 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3070 * include/config.h.in (HAVE_PWD_H): New feature macro.
3071 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3072 user.name, user.home, user.dir.
3074 * java/lang/reflect/Array.java: New class.
3075 * java/lang/reflect/natArray.cc: New native methods.
3076 * include/javaprims.h: Declare java::lang::reflect::Array.
3078 * java/lang/Class.h (getField): New private method. Add friends.
3079 * java/lang/Class.java (getField): Add private overload.
3080 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3081 getDeclaredMethods): Add working implementations.
3082 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3083 Finish implementation, except for access control.
3085 * java/lang/reflect/Modifier.java (toString): New overload.
3086 * include/java-method.h: New file.
3087 * java/lang/reflect/Method.java (index): Replaced by offset field.
3088 Remove various private fields - get them from _Jv_Field instead.
3089 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3090 New method implementations.
3092 * java/text/NumberFormat.java: Add a bunch of methods.
3094 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3096 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3098 1999-02-26 Tom Tromey <tromey@cygnus.com>
3100 * include/config.h.in: Rebuilt.
3101 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3102 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3103 HAVE_GETHOSTBYADDR_R): New defines.
3104 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3105 gethostbyaddr_r if available.
3107 * configure: Rebuilt.
3108 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3110 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3114 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3115 * prims.cc (_Jv_AllocBytesChecked): New function.
3117 * Makefile.in: Rebuilt.
3118 * Makefile.am (SUBDIRS): Removed `test'.
3119 * configure: Rebuilt.
3120 * configure.in: Don't build test/Makefile.
3121 * test/*: Removed all files.
3123 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3125 * java/lang/reflect/Constructor.java: Make class final to match spec.
3126 * java/lang/reflect/Method.java: Ditto.
3128 1999-02-25 Tom Tromey <tromey@cygnus.com>
3130 * java/net/natInetAddress.cc: Include <sys/types.h> before
3132 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3135 * java/net/natInetAddress.cc: Declare gethostname if required.
3136 * include/config.h.in: Rebuilt.
3137 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3138 * configure: Rebuilt.
3139 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3140 declared in unistd.h.
3142 1999-02-24 Tom Tromey <tromey@cygnus.com>
3144 * Makefile.in: Rebuilt.
3145 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3146 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3147 from private to "none".
3149 * include/javaprims.h: Regenerated class declarations with new
3151 * classes.pl (scan): Only generate decls for java.lang, java.io,
3154 1999-02-24 Tom Tromey <tromey@cygnus.com>
3156 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3157 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3159 1999-02-23 Tom Tromey <tromey@cygnus.com>
3161 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3162 not already defined.
3163 * java/io/natFile.cc (_REENTRANT): Only define if not already
3165 * include/config.h.in: Rebuilt.
3166 * acconfig.h (HAVE_BOEHM_GC): New define.
3167 * configure: Rebuilt.
3168 * configure.in: Define HAVE_BOEHM_GC if using it.
3169 * posix-threads.cc: Include boehm-config.h and gc.h if
3171 * include/posix-threads.h: Added explanatory note about Boehm GC.
3173 * java/io/BufferedReader.java (readLine): Only return null when
3174 EOF seen before any characters read. (In particular, an empty
3175 line should not return null.)
3177 * java/io/BufferedInputStream.java (read): Only refill once per
3180 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3181 java.lang.Character.classify12, java.lang.String.hash,
3182 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3183 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3185 * java/text/StringCharacterIterator.java (setIndex): No error if
3187 (next): Check for `pos == end', not `end - 1'.
3188 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3189 for null text in each constructor.
3190 (clone): Fixed order of arguments to constructor.
3192 1999-02-22 Tom Tromey <tromey@cygnus.com>
3194 * include/config.h.in: Rebuilt.
3195 * acconfig.h (HAVE_INET6): New define.
3196 (HAVE_SOCKLEN_T): Likewise.
3197 * java/net/PlainSocketImpl.java: Added copyright header.
3198 * java/net/natPlainSocketImpl.cc: Added copyright header.
3199 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3201 (connect): Likewise.
3203 (socklen_t): New typedef.
3204 (accept): Use socklen_t.
3205 * java/net/natInetAddress.cc: Added copyright header.
3206 (HAVE_GETHOSTNAME): Don't define.
3207 (HAVE_INET_ADDR): Likewise.
3208 (lookup): Fixed typo.
3209 (aton): Don't use `address' as name of local variable.
3210 (lookup): Use HAVE_INET6, not AF_INET6.
3212 * configure: Rebuilt.
3213 * configure.in: Look for functions inet_aton, inet_addr,
3214 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3215 Check for socklen_t typedef.
3217 * exception.cc (__throw): Declare as __noreturn__.
3219 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3221 * Makefile.am, Makefile.in: Also build java/net.
3222 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3224 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3225 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3227 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3228 * include/cni.h (JvMalloc, JvFree): New inline functions.
3229 (JvThrow): Add __noreturn__ attribute.
3230 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3231 (_Jv_Throw): Add __noreturn__ attribute.
3233 * java/net/PlainSocketImpl.java: Init fnum to -1.
3234 * java/net/ServerSocket.java: Add missing throws clauses.
3235 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3236 don't call create on the latter. Instead, other constructors
3237 have to explicitly call SocketImpl.create.
3238 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3239 from size_t to int, to match ::accept prototype.
3240 * java/net/natInetAddress.cc: Use JvFree rather than free.
3243 1999-02-22 Tom Tromey <tromey@cygnus.com>
3245 * include/javaprims.h: Added new classes.
3246 * java/text/StringCharacterIterator.java: New file.
3247 * java/text/CharacterIterator.java: New file.
3249 * java/text/ParseException.java (errorOffset): Now private.
3251 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3253 * java/net: New package.
3254 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3255 Socket.java,SocketException.java,SocketImpl.java,
3256 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3257 natPlainSocketImpl.cc}: New classes.
3259 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3260 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3261 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3262 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3264 * classes.pl: Translate package into "namespace", not "class".
3265 * include/javaprims.h: Update class list, using "namespace".
3267 1999-02-21 Tom Tromey <tromey@cygnus.com>
3269 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3270 Define when appropriate.
3272 1999-02-20 Tom Tromey <tromey@cygnus.com>
3274 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3275 as a single byte and \u07ff as two bytes.
3276 (_Jv_GetStringUTFLength): Likewise.
3277 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3278 with 0x0f, not 0x1f.
3280 1999-02-19 Tom Tromey <tromey@cygnus.com>
3282 * java/io/DataOutputStream.java (writeUTF): When encoding
3283 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3284 * java/io/DataInputStream.java (readUTF): Mask second byte of
3285 3-byte character with 0x3f, not 0x1f.
3287 * java/io/DataInputStream.java (readLong): Cast result of
3288 readUnsignedByte to long before using.
3290 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3293 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3294 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3295 argument to avoid warning.
3296 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3297 argument to avoid warning.
3299 1999-02-18 Tom Tromey <tromey@cygnus.com>
3301 * mauve-libjava: Omit java.io.DataInputOutput and
3302 java.io.Utf8Encoding.
3304 1999-02-17 Tom Tromey <tromey@cygnus.com>
3306 * Makefile.in: Rebuilt.
3307 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3308 * java/io/natFileDescriptorPosix.cc: Include
3309 InterruptedIOException.h, Thread.h.
3310 (write): Throw InterruptedIOException when required.
3312 * posix-threads.cc: Include <signal.h>.
3313 (_Jv_ThreadInterrupt): New function.
3315 (handle_intr): New function.
3316 (_Jv_InitThreads): Register handle_intr via sigaction.
3317 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3318 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3319 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3320 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3322 1999-02-19 Andrew Haley <aph@cygnus.com>
3324 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3326 (ThreadGroup (int)): Set the maximum priority of the initial
3329 1999-02-18 Andrew Haley <aph@cygnus.com>
3331 * java/lang/natClass.cc (forName): Check for the case where a
3332 classname is the name of an array and call FindClassFromSignature
3335 1999-02-18 Andrew Haley <aph@cygnus.com>
3337 * java/lang/StringBuffer (insert (int, String)): Move up any
3338 characters above the insert position and increase the length of
3339 the string buffer by the length of the argument.
3340 (insert (int, char[])): Likewise.
3341 (insert (int, char)): Likewise.
3342 (StringBuffer (String)): The initial capacity of the string buffer
3343 is 16 plus the length of the argument.
3344 (getChars): Add a JDK 1.2 FIXME.
3346 1999-02-18 Andrew Haley <aph@cygnus.com>
3348 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3351 1999-02-18 Andrew Haley <aph@cygnus.com>
3353 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3354 instead of floating-point equality. This is necessary for
3355 correct floating-point Hashtables.
3356 * java/lang/Float.java (equals): Ditto.
3358 1999-02-16 Tom Tromey <tromey@cygnus.com>
3360 * java/util/Properties.java (list): Truncate value to 37
3361 characters and add "...".
3363 1999-02-16 Tom Tromey <tromey@cygnus.com>
3365 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3366 if initCap is negative.
3367 (contains): Implement JDK1.2-style handling of null argument.
3368 (removeElement): Likewise.
3369 (indexOf): Likewise. Also, correctly handle case where idx is
3371 (lastIndexOf): Likewise.
3373 1999-02-16 Tom Tromey <tromey@cygnus.com>
3375 * java/lang/natString.cc (init): Increment source pointer in
3378 1999-02-16 Tom Tromey <tromey@cygnus.com>
3380 * exception.cc: Include NullPointerException.h.
3381 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3383 1999-02-16 Tom Tromey <tromey@cygnus.com>
3385 * Makefile.in: Rebuilt.
3386 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3388 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3390 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3391 we're compiling canadian.
3392 * configure: Regenerated.
3394 1999-02-12 Andrew Haley <aph@cygnus.com>
3396 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3397 deleted from libgcj.
3399 1999-02-12 Tom Tromey <tromey@cygnus.com>
3401 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3402 (_Jv_eh_free): Don't call free.
3403 Don't declare malloc or free.
3405 1999-02-11 Tom Tromey <tromey@cygnus.com>
3407 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3409 1999-02-11 Andrew Haley <aph@cygnus.com>
3411 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3412 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3413 needed by java.lang.*.
3414 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3415 wf_fmod.o: Removed from libjava.a.
3417 1999-02-11 Tom Tromey <tromey@cygnus.com>
3419 * include/javaprims.h: Reverted previous change; with it
3420 exception.cc can't compile.
3422 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3424 * include/config.h.in: Rebuilt.
3425 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3427 * configure: Rebuilt.
3428 * configure.in: Check for sched_yield. Look in thread library for
3429 all thread functions.
3431 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3432 no recursive mutexes.
3433 (_Jv_MutexDestroy): Define when required.
3434 (_Jv_MutexLock): Likewise.
3435 (_Jv_MutexUnlock): Likewise.
3436 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3437 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3438 (_Jv_Mutex_t): New structure.
3439 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3440 (_Jv_MutexLock): Likewise.
3441 (_Jv_MutexUnlock): Likewise.
3443 1999-02-10 Tom Tromey <tromey@cygnus.com>
3445 * aclocal.m4, configure, Makefile.in: Rebuilt.
3446 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3448 * configure.in: Changed to track library changes.
3449 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3450 (AM_CXXFLAGS): Likewise.
3451 (data_DATA): Likewise.
3452 (AM_CFLAGS): Likewise.
3453 (JC1FLAGS): Likewise.
3454 (libgcj_a_SOURCES): Likewise.
3455 (EXTRA_libgcj_a_SOURCES): Likewise.
3456 (libgcj_a_DEPENDENCIES): Likewise.
3457 (libgcj_a_LIBADD): Likewise.
3458 (libgcj.zip): Likewise.
3459 (CLEANFILES): Likewise.
3460 ($(nat_headers)): Likewise.
3461 (java/lang/FirstThread.h): Likewise.
3462 (java/lang/ThreadGroup.h): Likewise.
3463 (java/lang/String.h): Likewise.
3464 (java/lang/reflect/Field.h): Likewise.
3465 (BUILT_SOURCES): Likewise.
3466 (maintainer-check): Likewise.
3467 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3468 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3470 * java/util/natGregorianCalendar.cc (computeFields): Only use
3471 gmtime_r and localtime_r when configured for posix threads.
3473 * java/io/natFile.cc (get_entry): Only use readdir_r when
3474 configured for posix threads.
3476 * java/util/natGregorianCalendar.cc: Update copyright notice.
3477 * java/util/TimeZone.java: Ditto.
3478 * java/util/SimpleTimeZone.java: Ditto.
3480 1999-02-08 Tom Tromey <tromey@cygnus.com>
3482 * java/io/PrintStream.java (line_separator): New constant.
3483 (print): Use line_separator, not `file.separator' property.
3484 (println): Use line_separator.
3486 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3487 when trying to instantiate Class.
3489 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3490 NullPointerException if argument is null.
3492 * java/lang/Thread.java (setName): Throw NullPointerException, not
3493 IllegalArgumentException.
3496 1999-02-08 Andrew Haley <aph@cygnus.com>
3498 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3499 create new Classes with Class.newInstance().
3501 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3502 semiciolon to end of an array Class's signature if the elements of
3503 the array aren't themselves arrays.
3505 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3506 array of objects is always sizeof(jobject), not the size of the
3507 object to which the reference points.
3509 1999-02-08 Tom Tromey <tromey@cygnus.com>
3511 * java/util/BitSet.java (and): Throw NullPointerException when
3516 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3517 if argument is negative.
3518 (clear): Correctly compute `offset'. Throw
3519 IndexOutOfBoundsException when required.
3521 (get): Likewise. Also, return correct value.
3522 (ensure): Changed meaning of argument.
3523 (toString): Wrap contents in `{}'; put spaces after commas.
3524 (hashCode): Don't try to examine elements off the end of array.
3525 (or): Correctly include bits past the end of this bit set.
3528 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3530 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3531 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3533 1999-02-04 Andrew Haley <aph@cygnus.com>
3535 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3536 '/' in signatures to '.'
3537 (Class::getName): Likewise,
3538 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3540 * java/lang/natFirstThread.cc (run): Change '/' in main's
3543 1999-02-03 Andrew Haley <aph@cygnus.com>
3545 * configure.host: -ffloat-store added when compiling libjava on
3546 x86. fdlibm apparently relies on this.
3548 * java/lang/ThreadGroup.java (add): throw an exception if the
3549 ThreadGroup has been destroyed.
3551 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3554 1999-01-27 Tom Tromey <tromey@cygnus.com>
3556 * java/lang/StringBuffer.java (StringBuffer): Handle null
3559 1999-01-21 Tom Tromey <tromey@cygnus.com>
3561 * java/lang/natFirstThread.cc (run): Don't require main to be
3564 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3566 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3568 1999-01-20 Tom Tromey <tromey@cygnus.com>
3570 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3574 (unintern): Likewise.
3575 (_Jv_NewStringUtf8Const): Likewise.
3577 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3578 Character.isLetter, to see if character is self-quoting. Also,
3579 correctly handle quoted characters.
3580 (parse): Fixed typo. Also now throws ParseException.
3582 1999-01-15 Tom Tromey <tromey@cygnus.com>
3584 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3586 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3587 _Jv_SyncInfo has `init' member.
3589 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3592 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3593 IllegalMonitorStateException if unlock fails.
3595 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3597 (_Jv_NewObjectArray): Likewise.
3599 1999-01-14 Tom Tromey <tromey@cygnus.com>
3601 * java/lang/Character.java (isJavaIdentifierPart): Allow
3602 LETTER_NUMBER characters.
3604 * chartables.pl (process_char): Fixed error messages.
3606 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3607 * chartables.pl: Updated comments. Changed detection of non-digit
3608 numeric values (no longer miss \u00b2 and friends).
3610 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3611 currency symbols and connector punctuation.
3612 (isIdentifierIgnorable): Make 7f-9f ignorable.
3614 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3615 (_Jv_NewPrimArray): Likewise.
3616 (SIZE_T_MAX): New define.
3618 * java/lang/ClassLoader.java (system): Now private and final.
3620 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3623 * configure: Rebuilt.
3624 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3626 * exception.cc: Include gansidecl.h.
3628 1999-01-14 Andrew Haley <aph@cygnus.com>
3630 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3631 corrected: they didn't treat -0.0 and NaNs correctly.
3633 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3635 * nogc.cc: Use calloc to zero out memory.
3637 1999-01-11 Tom Tromey <tromey@cygnus.com>
3639 * java/lang/natClass.cc (isInstance): Return false if this class
3640 is primitive, not if class of `obj' is primitive.
3641 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3643 * java/io/SequenceInputStream.java (close): Handle case where `in'
3646 * java/text/DateFormat.java (format): New method.
3648 * mauve-libjava: Omit java.text.DateFormat.
3650 1999-01-08 Tom Tromey <tromey@cygnus.com>
3652 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3654 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3656 (_Jv_CondNotifyAll): Likewise.
3658 * configure: Rebuilt.
3659 * configure.in: Change --enable-source-compilation logic to work
3662 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3664 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3665 and RUNTESTFLAGS from AM_MAKEFLAGS.
3666 * configure.in: AM_RUNTESTFLAGS added.
3667 * configure.host: AM_RUNTESTFLAGS added.
3668 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3669 * configure: rebuilt.
3670 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3672 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3673 argv[] made conditional because embedded targets may not have
3675 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3676 explanatory comments added in call to super.
3678 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3679 exception thrown in the test harness itself added.
3680 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3682 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3684 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3686 1999-01-06 Tom Tromey <tromey@cygnus.com>
3688 * java/io/natFile.cc (get_entry): New function.
3689 (performList): Use get_entry.
3690 * include/config.h.in: Rebuilt.
3691 * acconfig.h (HAVE_READDIR_R): New define.
3692 * configure: Rebuilt.
3693 * configure.in: Look for readdir_r.
3695 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3697 * java/util/natDate.cc: Added copyright header.
3699 1999-01-05 Tom Tromey <tromey@cygnus.com>
3701 * include/config.h.in: Rebuilt.
3702 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3703 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3704 * configure: Rebuilt.
3705 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3706 unlink, and realpath.
3707 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3708 (stat): Conditionalize on HAVE_STAT.
3710 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3711 (performMkdir): Conditionalize on HAVE_MKDIR.
3712 (performRenameTo): Conditionalize on HAVE_RENAME.
3713 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3715 * include/config.h.in: Rebuilt.
3716 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3717 * configure: Rebuilt.
3718 * configure.in: Check for gmtime_r and localtime_r. For cross
3719 builds, assume they exist.
3721 * mauve-libjava: Include java.text.DateFormatSymbols again.
3722 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3723 from setAmPmStrings.
3725 * mauve-libjava: Omit java.text.DateFormatSymbols.
3727 1999-01-04 Tom Tromey <tromey@cygnus.com>
3729 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3731 * java/io/LineNumberReader.java (read): Decrement `count' in
3734 * java/io/BufferedWriter.java (write): Correctly determine when
3735 incoming data would overrun buffer. Flush buffer if write causes
3738 * java/io/BufferedOutputStream.java (write): Increment `count'
3739 after copying data into buffer.
3741 * java/io/FilterOutputStream.java (close): Call flush first.
3743 * java/io/PipedReader.java (read): If read causes `out' to catch
3744 up with `in', then set `in' to -1.
3746 * java/io/LineNumberInputStream.java (read): If no bytes read,
3747 return -1. If no bytes requested, return 0.
3749 * java/lang/StringBuffer.java (insert): If `str' is null, use
3752 1998-12-30 Anthony Green <green@cygnus.com>
3755 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3757 1998-12-23 Tom Tromey <tromey@cygnus.com>
3759 * java/io/PushbackInputStream.java (read): `off' already includes
3762 1998-12-17 Tom Tromey <tromey@cygnus.com>
3764 * Makefile.in: Rebuilt.
3765 * Makefile.am (GCJ_canadian): Include target_alias.
3767 * java/lang/natFirstThread.cc (run): Require main's class to be
3770 1998-12-16 Tom Tromey <tromey@cygnus.com>
3772 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3774 * java/util/ResourceBundle.java (getBundle): Throw
3775 NullPointerException if locale argument is null.
3777 * java/lang/natClass.cc (forName): Throw NullPointerException if
3779 Include NullPointerException.h.
3781 1998-12-14 Tom Tromey <tromey@cygnus.com>
3783 * java/lang/Character.java (Character): Implement Comparable.
3784 (compareTo): New methods.
3786 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3787 correct country and language codes.
3788 (UK, US): New constants.
3789 (setDefault): Language codes are lower-case.
3791 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3792 (getDeclaredConstructors): Likewise.
3793 (getDeclaredField): Likewise.
3794 (getDeclaredFields): Likewise.
3795 (getDeclaredMethod): Likewise.
3796 (getDeclaredMethods): Likewise.
3797 (getField): Likewise.
3798 (getFields): Likewise.
3799 (getMethod): Likewise.
3800 (getMethods): Likewise.
3801 * java/lang/Class.java: Declare new methods.
3802 * java/lang/Class.h: Declare new methods.
3804 * java/lang/natString.cc: Removed `#pragma implementation'.
3805 * include/cni.h (_Jv_GetStringChars): New function.
3806 * Makefile.in: Rebuilt.
3807 * Makefile.am (java/lang/String.h): Don't generate definition for
3810 * java/lang/natString.cc: Added `#pragma implementation'.
3812 * Makefile.in: Rebuilt.
3813 * Makefile.am (libjava.zip): Put build directory first in class
3814 path to avoid bug in compiler.
3816 1998-12-14 Anthony Green <green@cygnus.com>
3818 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3820 * include/javaprims.h: Add EventObject, ListResourceBundle and
3823 1998-12-13 Anthony Green <green@cygnus.com>
3825 * mauve-libjava: Run the ResourceBundle tests.
3827 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3830 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3832 * configure.in, configure: Make --enable-gcj-classes and
3833 --enable-source-compilation the default. (Nervously...) Yeah!
3834 Based on a patch from Tom Tromey.
3836 1998-12-13 Tom Tromey <tromey@cygnus.com>
3838 * java/util/EventObject.java: New file.
3839 * java/util/EventListener.java: New file.
3841 * include/javaprims.h: Updated class declarations.
3842 * Makefile.in: Rebuilt.
3843 * Makefile.am (nat_headers): Added Constructor.h.
3844 (java/lang/String.h): Don't inline String::length().
3845 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3846 * java/lang/Class.java (initializeClass, hackRunInitializers,
3847 hackTrampoline): No need to mark `final'.
3848 (getConstructor, getConstructors): Declare.
3849 * java/lang/reflect/Field.java (equals): New method.
3850 * java/lang/natClass.cc (getConstructor): New method.
3851 (getConstructors): Likewise.
3852 Include Method.h, Field.h, Constructor.h.
3853 * java/lang/reflect/Constructor.java: New file.
3854 * java/lang/reflect/Method.java (toString): No space before open
3856 (equals): Simplified.
3858 1998-12-13 Anthony Green <green@cygnus.com>
3860 * java/util/ResourceBundle.java: New file.
3861 * java/util/ListResourceBundle.java: New file.
3863 1998-12-12 Tom Tromey <tromey@cygnus.com>
3865 * java/lang/System.java (in, out, err): Now buffered streams by
3868 * include/javaprims.h: Updated class declarations.
3869 * Makefile.in: Rebuilt.
3870 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3871 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3873 (nat_files): Added natMethod.o.
3874 * java/lang/reflect/natMethod.cc: New file.
3875 * java/lang/reflect/Field.java (Field): Now extends
3877 * java/lang/reflect/AccessibleObject.java: New file.
3878 * java/lang/reflect/InvocationTargetException.java: New file.
3880 1998-12-11 Tom Tromey <tromey@cygnus.com>
3882 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3883 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3884 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3886 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3888 1998-12-09 Tom Tromey <tromey@cygnus.com>
3890 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3893 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3894 character is already titlecase.
3896 * java/lang/Character.java (isJavaLetter): Follow spec.
3897 (isJavaLetterOrDigit): Likewise.
3899 * java/util/GregorianCalendar.java (gregorianCutover): Append
3902 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3904 1998-12-08 Tom Tromey <tromey@cygnus.com>
3906 * java/lang/reflect/Modifier.java (toString): Replace second
3907 `static' with `synchronized'.
3909 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3910 * java/lang/Object.h (Object::hack12_6): Declare.
3911 * java/lang/Object.java (hack12_6): New function.
3913 1998-12-07 Tom Tromey <tromey@cygnus.com>
3915 * include/java-array.h (__JArray::clone): Removed decl.
3916 * prims.cc (__JArray::clone): Removed.
3917 * java/lang/natObject.cc (clone): Incorporate code to clone an
3920 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3921 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3922 Correctly use dtable_method_count.
3924 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3926 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3929 1998-12-06 Anthony Green <green@cygnus.com>
3931 * mauve-libjava: Don't test ResourceBundle.
3933 1998-12-04 Tom Tromey <tromey@cygnus.com>
3935 More JDK 1.2 spec fixes:
3936 * java/util/Date.java (millis): Now private.
3937 * java/text/DateFormat.java (DateFormat): Constructor now
3939 * java/lang/Void.java (Void): New private constructor.
3940 * java/lang/System.java (System): New private constructor.
3941 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3943 (currentClassLoader): New method.
3944 (currentLoadedClass): New method.
3945 * java/lang/Math.java (Math): New private constructor.
3946 * java/lang/Compiler.java (Compiler): New private constructor.
3947 * java/lang/Class.java (Class): New private constructor.
3948 * java/lang/Double.java (toString): Removed access specifier from
3949 two-argument `toString' method.
3951 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3953 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3954 causes it to be flushed from an fp register (where it may be
3955 longer than double precision) to a double in memory. This is
3956 essential to ensure correct rounding behaviour.
3958 1998-12-04 Tom Tromey <tromey@cygnus.com>
3960 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3963 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3964 explaining apparent divergence from JDK 1.2.
3966 1998-12-04 Per Bothner <bothner@cygnus.com>
3968 * include/no-threads.h: Remove unused parameter names.
3969 This silences a bunch of warnings.
3971 1998-12-04 Tom Tromey <tromey@cygnus.com>
3973 * include/config.h.in: Rebuilt.
3974 * acconfig.h (HAVE_CTIME_R): New symbol.
3976 1998-12-03 Tom Tromey <tromey@cygnus.com>
3978 * mauve-libjava: Added many more categories to reject.
3980 Changes to follow JDK1.2 spec:
3981 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3982 setErr, setIn, setOut): No need to be `final'.
3983 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3984 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3985 * java/lang/Object.java (wait): `nanos' argument is an int.
3986 * java/lang/VirtualMachineError.java: Class is abstract.
3987 * java/lang/ThreadDeath.java: Made constructors public.
3988 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3991 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3993 * java/text/DateFormatSymbols.java (getAmPmStrings,
3994 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3996 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3998 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3999 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4000 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4003 * java/lang/IllegalThreadStateException.java
4004 (IllegalThreadStateException): Changed extending class to match spec.
4006 * java/lang/NumberFormatException.java
4007 (java/lang/NumberFormatException): Changed extending class to match
4010 * java/util/Observer.java (Observer): Changed sig to match JCL.
4012 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4014 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4015 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4016 signature to match JDK 1.1 and 1.2.
4018 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4020 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4021 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4022 * Makefile.in, configure: Rebuilt.
4024 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4027 1998-12-02 Tom Tromey <tromey@cygnus.com>
4029 * mauve-libjava: New file.
4031 The remaining `-W -Wall' fixes:
4032 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4034 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4036 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4038 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4040 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4042 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4044 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4046 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4048 * java/lang/mprec.c (Balloc): Removed unused variable.
4049 (mult): Added parentheses per gcc suggestion.
4050 (pow5mult): Likewise.
4055 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4056 suggestion. Added cast to `int' to avoid signed/unsigned
4058 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4060 (IsAssignableFrom): Likewise.
4061 (_Jv_JNI_GetObjectField): Likewise.
4062 (_Jv_JNI_GetByteField): Likewise.
4063 (_Jv_JNI_GetShortField): Likewise.
4064 (_Jv_JNI_GetIntField): Likewise.
4065 (_Jv_JNI_GetLongField): Likewise.
4066 (_Jv_JNI_GetStringLength): Likewise.
4067 (_Jv_JNI_ToReflectedField): Likewise.
4068 (_Jv_JNI_FromReflectedField): Likewise.
4069 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4071 * Makefile.in: Rebuilt.
4072 * Makefile.am (AM_CFLAGS): Define conditionally.
4073 (WARNINGS): New macro.
4074 (AM_CXXFLAGS): Include WARNINGS.
4075 * configure: Rebuilt.
4076 * configure.in (USING_GCC): New conditional.
4078 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4080 * java/lang/Character.java: Changed classification constants to
4081 type `byte' to match JDK 1.2 docs.
4083 1998-12-01 Tom Tromey <tromey@cygnus.com>
4085 Some fixes to be `-W -Wall' clean:
4086 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4087 (_Jv_MarkArray): Likewise.
4088 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4089 (to_upper_title): Likewise.
4090 (isTitleCase): Likewise.
4091 (toTitleCase): Likewise.
4092 (getNumericValue): Likewise.
4093 (isLowerCase): Likewise.
4094 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4095 (avoids compiler warning).
4096 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4098 (getDeclaringClass): Likewise.
4099 (_Jv_LookupInterfaceMethod): Likewise.
4100 (_Jv_NewClass): Removed name of unused parameter.
4101 * exception.cc (_Jv_type_matcher): Removed unused variable.
4102 (_Jv_setup_eh_info): Removed name of unused parameter.
4103 * prims.cc (_Jv_NewArray): Always return a value.
4104 (_Jv_FindClassFromSignature): Likewise.
4105 * include/java-field.h (getNameUtf8Const): Removed name of unused
4107 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4109 (_Jv_ThreadSetPriority): Likewise.
4111 * java/lang/natString.cc (hashChars): Now static.
4113 * java/lang/FirstThread.java (FirstThread): Now final.
4115 * java/io/File.java (performMkdir, performRenameTo): Now private.
4117 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4118 if no time function defined.
4120 * configure: Rebuilt.
4121 * configure.in: Look for ctime_r, ctime.
4122 * java/util/Date.java (toString): Now native.
4123 * java/util/natDate.cc (toString): Rewrote.
4125 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4127 * Add LDFLAGS line to allow TX39 test cases to link when cross
4130 1998-11-23 Anthony Green <green@cygnus.com>
4132 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4133 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4134 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4135 include/java-array.h, include/java-assert.h, include/java-field.h,
4136 include/javaprims.h, include/jni.h, include/jvm.h,
4137 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4138 include/quick-threads.h, java/io/BufferedInputStream.java,
4139 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4140 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4141 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4142 java/io/CharArrayWriter.java,
4143 java/io/CharConversionException.java, java/io/DataInput.java,
4144 java/io/DataInputStream.java, java/io/DataOutput.java,
4145 java/io/DataOutputStream.java, java/io/EOFException.java,
4146 java/io/File.java, java/io/FileDescriptor.java,
4147 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4148 java/io/FileOutputStream.java, java/io/FileReader.java,
4149 java/io/FileWriter.java, java/io/FilenameFilter.java,
4150 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4151 java/io/FilterReader.java, java/io/FilterWriter.java,
4152 java/io/IOException.java, java/io/InputStream.java,
4153 java/io/InputStreamReader.java,
4154 java/io/InterruptedIOException.java,
4155 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4156 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4157 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4158 java/io/PipedReader.java, java/io/PipedWriter.java,
4159 java/io/PrintStream.java, java/io/PrintWriter.java,
4160 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4161 java/io/RandomAccessFile.java, java/io/Reader.java,
4162 java/io/SequenceInputStream.java, java/io/Serializable.java,
4163 java/io/StreamTokenizer.java,
4164 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4165 java/io/StringWriter.java, java/io/SyncFailedException.java,
4166 java/io/UTFDataFormatException.java,
4167 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4168 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4169 java/io/natFileDescriptorPosix.cc,
4170 java/lang/AbstractMethodError.java,
4171 java/lang/ArithmeticException.java,
4172 java/lang/ArrayIndexOutOfBoundsException.java,
4173 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4174 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4175 java/lang/Class.java, java/lang/ClassCastException.java,
4176 java/lang/ClassCircularityError.java,
4177 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4178 java/lang/ClassNotFoundException.java,
4179 java/lang/CloneNotSupportedException.java,
4180 java/lang/Cloneable.java, java/lang/Comparable.java,
4181 java/lang/Compiler.java, java/lang/Double.java,
4182 java/lang/Error.java, java/lang/Exception.java,
4183 java/lang/ExceptionInInitializerError.java,
4184 java/lang/FirstThread.java, java/lang/Float.java,
4185 java/lang/IllegalAccessError.java,
4186 java/lang/IllegalAccessException.java,
4187 java/lang/IllegalArgumentException.java,
4188 java/lang/IllegalMonitorStateException.java,
4189 java/lang/IllegalStateException.java,
4190 java/lang/IllegalThreadStateException.java,
4191 java/lang/IncompatibleClassChangeError.java,
4192 java/lang/IndexOutOfBoundsException.java,
4193 java/lang/InstantiationError.java,
4194 java/lang/InstantiationException.java, java/lang/Integer.java,
4195 java/lang/InternalError.java, java/lang/InterruptedException.java,
4196 java/lang/LinkageError.java, java/lang/Long.java,
4197 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4198 java/lang/NoClassDefFoundError.java,
4199 java/lang/NoSuchFieldError.java,
4200 java/lang/NoSuchFieldException.java,
4201 java/lang/NoSuchMethodError.java,
4202 java/lang/NoSuchMethodException.java,
4203 java/lang/NullPointerException.java, java/lang/Number.java,
4204 java/lang/NumberFormatException.java, java/lang/Object.h,
4205 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4206 java/lang/Process.java, java/lang/Runnable.java,
4207 java/lang/Runtime.java, java/lang/RuntimeException.java,
4208 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4209 java/lang/Short.java, java/lang/StackOverflowError.java,
4210 java/lang/String.java, java/lang/StringBuffer.java,
4211 java/lang/StringIndexOutOfBoundsException.java,
4212 java/lang/System.java, java/lang/Thread.java,
4213 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4214 java/lang/Throwable.java, java/lang/UnknownError.java,
4215 java/lang/UnsatisfiedLinkError.java,
4216 java/lang/UnsupportedOperationException.java,
4217 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4218 java/lang/Void.java, java/lang/natCharacter.cc,
4219 java/lang/natClass.cc, java/lang/natDouble.cc,
4220 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4221 java/lang/natMath.cc, java/lang/natObject.cc,
4222 java/lang/natRuntime.cc, java/lang/natString.cc,
4223 java/lang/natSystem.cc, java/lang/natThread.cc,
4224 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4225 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4226 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4227 java/text/FieldPosition.java, java/text/Format.java,
4228 java/text/NumberFormat.java, java/text/ParseException.java,
4229 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4230 java/util/BitSet.java, java/util/Calendar.java,
4231 java/util/ConcurrentModificationException.java,
4232 java/util/Date.java, java/util/Dictionary.java,
4233 java/util/EmptyStackException.java, java/util/Enumeration.java,
4234 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4235 java/util/Locale.java, java/util/MissingResourceException.java,
4236 java/util/NoSuchElementException.java, java/util/Observable.java,
4237 java/util/Observer.java, java/util/Properties.java,
4238 java/util/Random.java, java/util/SimpleTimeZone.java,
4239 java/util/Stack.java, java/util/StringTokenizer.java,
4240 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4241 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4244 * exception.cc: Include eh-common.h instead of duplicating
4247 1998-11-23 Tom Tromey <tromey@cygnus.com>
4249 * configure.host: Don't add `-O2' to libjava_flags. Only add
4250 `-Os' to libjava_flags once.
4252 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4254 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4255 * Makefile.in: likewise
4256 * acconfig.h: add ECOS conditional for configure.h
4257 * config.h.in: likewise
4258 * configure: add test for --with-ecos
4259 * configure.in: likewise
4260 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4261 rename call to avoid name clash.
4262 * java/lang/natSystem.cc: add eCos clock support.
4263 * java/util/natGregorianCalendar.cc: add eCos support.
4265 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4267 * Makefile.am, Makefile.in, configure.host: tx39 build option
4270 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4272 * java/io/BufferedReader.java: Added more comments for clarity.
4273 (mark): Used more mnemonic name for local var extraBuffSpace.
4275 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4276 confusion with private method of same name in superclass.
4277 (skipRedundantLF): Set fields in special case to avoid infinite
4278 recursion. Check if markPos has been invalidated in special case.
4279 (readLine): Rewritten to use readLine method of superclass.
4280 (skip): Incorporated code from lineEnd.
4282 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4284 * java/io/BufferedReader.java (readLine): New method.
4285 (lineEnd): new private method.
4286 (mark): Track special case for readLine of getting '\r' at the
4293 * java/io/InputStreamReader.java (read): Return number chars skipped
4294 rather than requested.
4296 * java/lang/StringBuffer.java (append): Update count and differentiate
4297 between field and local variable.
4299 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4300 seconds. Deal with military style time.
4301 (parse): Consistently treat all timezones in minutes until final
4302 calculation. Flag as non-local timezone. Return value in milliseconds.
4303 (setTime): Adjust for year offset from 1900.
4304 (UTC): Adjust for year offset from 1900.
4306 1998-11-17 Tom Tromey <tromey@cygnus.com>
4308 * configure: Rebuilt.
4309 * configure.in: Switch on host, not target.
4311 * Makefile.in: Rebuilt.
4312 * Makefile.am (GCJ_no): New macro.
4313 (GCJ): Use @CANADIAN@.
4314 (GCJH_no): New macro
4315 (GCJH_canadian): New macro.
4316 (GCJH): Use @CANADIAN@.
4317 (ZIP_no): New macro.
4318 (ZIP_canadian): New macro.
4319 (ZIP): Use @CANADIAN@.
4320 * aclocal.m4, configure: Rebuilt.
4321 * configure.in (CANADIAN): Compute and subst.
4323 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4325 * java/io/FileDescriptor.java (finalize): Only close file
4326 descriptor if valid.
4328 1998-11-17 Tom Tromey <tromey@cygnus.com>
4330 * prims.cc (_Jv_InitRuntime): Removed.
4332 1998-11-16 Tom Tromey <tromey@cygnus.com>
4334 * java/io/FileOutputStream.java (close): Only close file
4335 descriptor if valid.
4336 (finalize): New method.
4338 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4339 (_Jv_NewPrimArray): Likewise.
4340 * boehm.cc (_Jv_RegisterFinalizer): Use
4341 GC_REGISTER_FINALIZER_NO_ORDER.
4342 (GC_GENERIC_MALLOC): New define.
4343 (_Jv_AllocObj): Use it.
4344 (_Jv_AllocArray): Likewise.
4345 (_Jv_AllocBytes): Likewise.
4346 (_Jv_MarkObj): Just return if vtbl not set.
4347 (_Jv_MarkArray): Likewise.
4348 (MAYBE_MARK): New macro; use everywhere.
4349 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4351 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4353 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4354 to a jlong before calculation to prevent overflow.
4356 1998-11-16 Tom Tromey <tromey@cygnus.com>
4358 * Makefile.in: Rebuilt.
4359 * Makefile.am (nat_headers): Fixed typo.
4361 1998-11-15 Tom Tromey <tromey@cygnus.com>
4363 * java/lang/Class.h (Class::getName): Removed definition.
4364 * Makefile.in: Rebuilt.
4365 * Makefile.am (nat_headers): Added InstantiationException.h,
4366 NoSuchMethodException.h.
4367 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4368 (init_name): New global.
4369 (hackRunInitializers): Use clinit_name.
4370 Include InstantiationException.h, NoSuchMethodException.h.
4371 (newInstance): Do some error checking (but not all). Call
4373 (forName): Throw exception if class not found.
4374 (getName): New method.
4375 (forName): Transform class name from external format to internal
4376 format before lookup.
4378 1998-11-15 Anthony Green <green@cygnus.com>
4380 * java/lang/Class.h (Class::forName): Method is static.
4382 * java/lang/natClass.cc (newInstance): Add simple implementation.
4385 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4387 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4388 int), for compatibility with jc1.
4390 1998-11-14 Tom Tromey <tromey@cygnus.com>
4392 * include/config.h.in: Rebuilt.
4393 * acconfig.h (LINUX_THREADS): New define.
4394 * configure: Rebuilt.
4395 * configure.in: Define LINUX_THREADS if using POSIX threads on
4396 Linux. Look for pthread_mutexattr_setkind_np function.
4397 * posix-threads.cc (throw_cleanup): New function.
4398 (really_start): Push cleanup function.
4399 (_Jv_ThreadCancel): New function.
4400 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4401 (_Jv_ThreadInitData): Set `exception' field in new structure.
4402 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4404 (_Jv_ThreadWait): New function.
4405 (_Jv_InitThreads): Initialize daemon globals.
4406 (FLAG_DAEMON): New macro.
4407 (really_start): Notify daemon_cond when non-daemon thread exits.
4408 Include <java/lang/System.h>.
4409 (struct starter): `object' field now a thread.
4410 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4411 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4412 (_Jv_ThreadWait): Removed definition.
4413 (_Jv_Thread_t): Added `exception' field.
4414 (_Jv_ThreadCancel): Removed definition.
4416 1998-11-13 Tom Tromey <tromey@cygnus.com>
4418 * Makefile.in: Rebuilt.
4419 * Makefile.am (libjava.zip): Compute javac before changing
4422 * Makefile.in: Rebuilt.
4423 * Makefile.am (libjava.zip): Include directory entries.
4425 * Makefile.in: Rebuilt.
4426 * Makefile.am (expanded): New macro.
4429 1998-11-12 Tom Tromey <tromey@cygnus.com>
4431 * prims.cc (clone): New function.
4432 * include/java-array.h (__JArray::clone): Removed definition.
4434 * java/lang/natObject.cc (clone): Don't assert that class is not
4435 an array; array's `clone' method just calls this one.
4437 * Makefile.in: Rebuilt.
4438 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4439 Now creates zip file. Changed all users.
4441 (data_DATA): New macro.
4443 1998-11-11 Tom Tromey <tromey@cygnus.com>
4445 * configure: Rebuilt.
4446 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4448 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4450 * java/io/InputStream.java (reset): Add msg to thrown exception.
4452 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4454 * java/io/LineNumberInputStream.java: Rewritten.
4456 * java/io/StringBufferInputStream.java: Removed extraneous import.
4458 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4460 * java/io/StringBufferInputStream.java: Rewritten.
4462 * java/util/Date.java (parseMonth): Optimize.
4463 (parseDayOfWeek): Created.
4464 (parse): Optimize to use parseDayOfWeek.
4466 1998-11-11 Tom Tromey <tromey@cygnus.com>
4468 * java/lang/StringBuffer.java (append): Handle case where STR is
4471 * include/javaprims.h: Regenerated class declarations.
4473 * configure: Rebuilt.
4474 * configure.in: Added --enable-gcj-classes,
4475 --enable-single-compilation, --enable-source-compilation flags.
4476 * Makefile.in: Rebuilt.
4477 * Makefile.am (java_io_files): New macro.
4478 (java_lang_files): Likewise.
4479 (java_text_files): Likewise.
4480 (java_util_files): Likewise.
4481 (java_files): Use new macros.
4482 (java-io.o): New target.
4483 (java-lang.o): Likewise.
4484 (java-text.o): Likewise.
4485 (java-util.o): Likewise.
4486 (src_io_files): New macro.
4487 (src_lang_files): Likewise.
4488 (src_text_files): Likewise.
4489 (src_util_files): Likewise.
4490 (class_io_files): New macro.
4491 (class_lang_files): Likewise.
4492 (class_text_files): Likewise.
4493 (class_util_files): Likewise.
4494 (class_files): Use new macros.
4495 (javao_files): Define conditionally.
4496 (.java.o): New target.
4497 ($(javao_files)): New target.
4499 (GCJH): Added $(EXEEXT).
4500 (CLASSPATH_ENV): Removed.
4501 (GCJCOMPILE): New macro.
4503 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4505 * java/util/Date.java (parse): Written from scratch.
4507 1998-11-11 Tom Tromey <tromey@cygnus.com>
4509 * java/lang/Throwable.java (toString): Correct sense of test for
4510 determining when to include detail message in result.
4512 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4515 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4517 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4519 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4520 (_Jv_RegisterClass): Use it.
4521 * include/jvm.h (_Jv_RegisterClasses): Declare.
4522 * java/lang/natObject.cc (init): Removed.
4523 (sync_init): Never call _Jv_InitializeSyncMutex.
4524 (_Jv_InitializeSyncMutex): Don't set `init'.
4525 * prims.cc (JvRunMain): Don't run init functions.
4527 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4529 * java/lang/natClass.cc (initializeClass): Set state before
4530 resolving constants.
4532 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4533 (STATE_RESOLVED): New macro.
4534 (initializeClass): Call resolveConstants.
4535 (hackRunInitializers): Don't call resolveConstants.
4536 (_Jv_FindArrayClass): Move short-circuit return for primitive
4537 element types earlier in function.
4539 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4541 * prims.cc (no_memory): New global.
4542 (_Jv_makeUtf8Const): Throw no_memory.
4543 (_Jv_AllocObject): Likewise.
4544 (_Jv_NewObjectArray): Likewise.
4545 (_Jv_NewPrimArray): Likewise.
4546 (JvRunMain): Initialize no_memory.
4548 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4550 * java/io/FileInputStream.java: Corrected date comment.
4551 * java/io/SequenceInputStream.java: Rewritten.
4553 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4555 * java/lang/FirstThread.java (die): New method.
4556 * java/lang/natFirstThread.cc (die): Removed.
4558 (run): Use `DIE', not `die'.
4560 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4562 * java/io/CharArrayReader.java (read): Move check into synchronized
4563 block to prevent a close while in progress.
4566 * java/io/PushbackReader.java (read): Ditto.
4569 * java/io/StringReader.java (mark): Ditto.
4574 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4576 * java/io/PipedInputStream.java: Updated status.
4577 (connect): Added code to prevent infinite recursion and to
4578 differentiate exception causes.
4579 (read): Added code to differentiate exception causes.
4580 (receive): Made exception pass string with the cause.
4582 * java/io/PipedOutputStream.java: Updated status.
4583 (connect): Added code to call connect at the other end of the pipe.
4585 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4587 * java/io/PipedInputStream.java (connect): Throw exception if
4588 already connected to the same output stream.
4589 (read): Do bounds checking first.
4591 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4593 * java/io/PipedInputStream.java: Added private boolean outClosed.
4594 (available): Removed check if output stream is open.
4595 (close): Mark the buffer as empty so available returns 0.
4596 (read): Check if the output stream was closed and then return EOF
4597 when the buffer is empty.
4598 (receive): Mark the output stream as closed when passed a -1.
4600 * java/io/PipedOutputStream.java (close): Notify the input stream
4601 that there's no more data coming.
4602 (connect): Added a FIXME comment to note more coordination needed
4603 with PipedInputStream.
4604 (flush): Added a FIXME comment to mark what this method might do
4607 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4609 * java/io/PipedInputStream.java: Rewritten.
4611 1998-10-30 Tom Tromey <tromey@cygnus.com>
4613 * java/lang/Throwable.java: Rewrote from scratch.
4615 * java/lang/Class.h (Class): Don't mention newMultiArray.
4616 * prims.cc (newMultiArray): Removed.
4617 (_Jv_NewMultiArray): Removed.
4618 (newArray): Removed.
4619 (new_multi_array): New function.
4620 (_Jv_NewMultiArray): Rewrote from scratch.
4622 * include/javaprims.h: Regenerated class declarations.
4623 * classes.pl (scan): Don't declare PrimClass.
4624 * include/cni.h (JvPrimClass): Use new names for classes.
4625 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4626 added _Jv_PrimClass.
4627 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4628 (_Jv_initPrimClass): Removed.
4629 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4630 (_Jv_AllocObject): Added comment.
4631 (_Jv_NewObjectArray): Likewise.
4632 (_Jv_NewPrimArray): Likewise.
4634 1998-10-29 Tom Tromey <tromey@cygnus.com>
4636 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4637 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4639 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4641 * java/lang/natObject.cc (init): New global.
4642 (sync_init): Call _Jv_InitializeSyncMutex if required.
4644 * Makefile.in: Rebuilt.
4645 * Makefile.am (nat_headers): Added ClassLoader.h.
4646 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4647 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4648 internalAddClass, lookupArray no longer friends.
4649 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4650 _Jv_FindArrayClass now friends.
4651 * java/lang/natClass.cc (HASH_LEN): New macro.
4652 (HASH_UTF): Likewise.
4653 (loaded_classes): New global.
4654 (_Jv_FindClass): New function.
4655 (ClassClass): New define.
4656 (_Jv_FindClassInCache): New function.
4657 (_Jv_RegisterClass): Likewise.
4658 (_Jv_NewClass): Likewise.
4660 (ObjectClass): New define.
4661 (CloneableClass): New define.
4662 * prims.cc (_Jv_FindClass): Removed.
4663 (simpleLookupClass): Removed.
4664 (insertClass): Removed.
4665 (CLASSHASHSZ): Removed.
4666 (classPool): Removed.
4667 (_Jv_RegisterClass): Removed.
4668 (internalAddClass): Removed.
4669 (ClassClass): Removed.
4670 (RuntimeClass): Removed.
4671 (lookupArray): Removed.
4672 (CloneableClass): Removed.
4673 (CLASSMAXSIG): Removed.
4674 Rearranged file to group related functions together.
4675 (_Jv_IsInstanceOf): Moved to natClass.cc.
4676 (abort_final): Removed.
4677 Removed some unused includes.
4678 (classFromSig): Removed.
4679 (_Jv_FindClassFromSignature): New function.
4680 (_Jv_initPrimClass): Renamed.
4681 (getClass): Removed.
4683 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4685 * java/io/FileDescriptor.java (finalize): Throws IOException
4686 instead of Throwable.
4688 * java/io/FileInputStream.java: Rewritten.
4690 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4691 at the end of a comment.
4693 1998-10-29 Tom Tromey <tromey@cygnus.com>
4695 * include/javaprims.h: Regenerated class declarations.
4696 * classes.pl (scan): Don't special-case ClassLoader.
4698 * prims.cc (processClass): Removed.
4699 (_Jv_InitClass): Removed.
4700 Removed all CSTATE_ macros.
4701 (resolveConstants): Removed.
4703 (_Jv_NewMultiArray): Cleaned up.
4704 * Makefile.in: Rebuilt.
4705 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4706 * java/lang/Class.h (Class): Declare new methods. processClass no
4708 * java/lang/Class.java (hackTrampoline): New method.
4709 (initializeClass): Declare.
4710 (hackRunInitializers): Declare.
4711 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4712 (initializeClass): New method.
4713 (hackRunInitializers): New method.
4714 (init_name, void_signature): Moved from prims.cc.
4715 (_Jv_InitClass): New function.
4716 (isAssignableFrom): Don't call processClass.
4717 (STATE_NOTHING): New macro.
4718 (resolveConstants): New function.
4720 (ErrorClass): New define.
4722 * java/lang/Class.java (getClassLoader): Declare.
4723 * java/lang/ClassLoader.java: Rewrote from scratch.
4725 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4726 AbstractMethodError.h, IllegalAccessError.h,
4727 NoClassDefFoundError.h.
4728 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4729 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4730 longer static. Changed return type.
4731 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4732 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4733 * prims.cc (findMethodLocal): Removed.
4734 (processClass): Use _Jv_GetMethodLocal.
4736 1998-10-28 Tom Tromey <tromey@cygnus.com>
4738 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4739 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4741 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4742 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4744 * include/jni.h: Added copyright header.
4745 * include/javaprims.h: Added copyright header.
4746 * include/java-field.h: Added copyright header.
4747 * include/java-array.h: Added copyright header.
4748 * include/cni.h: Added copyright header.
4750 * include/javaprims.h: Regenerated class declarations using
4751 classes.pl; now they are complete.
4752 * classes.pl: New file.
4754 * java/lang/natMath.cc: Include <config.h>.
4755 * java/lang/reflect/natField.cc: Include <config.h>.
4756 * java/util/NativeUtil.java: Removed.
4757 * Makefile.in: Rebuilt.
4758 * Makefile.am (nat_headers): Added Math.h.
4759 * java/lang/Math.h: Removed.
4760 * java/util/natGregorianCalendar.cc: Added copyright header.
4762 * java/lang/natFloat.cc: Added copyright header.
4763 * java/lang/Byte.java: Added copyright header.
4764 * java/lang/Void.java: Added copyright header.
4765 * java/lang/Short.java: Added copyright header.
4767 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4769 * include/javaprims.h (java::io): Added bunch of missing classes.
4771 * java/io/DataInputStream.java (readLine): Added a special case
4772 for handling BufferedInputStream data to reduce the likelihood
4773 of a pushback error.
4774 (skipBytes): Added code to handle negative number of skip bytes.
4776 * java/io/StreamTokenizer.java: Rewritten.
4778 1998-10-28 Tom Tromey <tromey@cygnus.com>
4780 * java/util/natGregorianCalendar.cc (computeFields): Call
4781 getRawOffset as a method.
4783 * include/javaprims.h (java::io): Added FilterOutputStream.
4784 * Makefile.in: Rebuilt.
4785 * Makefile.am (nat_headers): Added PrintStream.h,
4786 FilterOutputStream.h.
4787 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4789 (die): New function.
4790 (run): Die if `main' not found, is not public, or is not static.
4792 * boehm.cc (_Jv_MarkObj): Use new field names.
4793 * include/java-field.h (JvGetFirstInstanceField): Use new field
4795 (JvNumInstanceFields): Likewise.
4796 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4797 (getInterfaces): Likewise.
4798 * prims.cc (CLASS_CONSTANTS): Removed.
4799 (CLASS_CONST_SIZE): Likewise.
4800 (CLASS_CONST_TAG): Likewise.
4801 (CLASS_CONST_DATA): Likewise.
4802 (CLASS_CONST_UTF8): Likewise.
4803 (WORD2UTF): Likewise.
4804 (CLASS_CLASS): Likewise.
4805 (CLASS_PRIM_SIG): Likewise.
4806 (CLASS_ARRAY_CACHE): Likewise.
4807 (HASH_CHARS): Likewise.
4808 (hashClassName): Likewise.
4809 Many changes to use new field names.
4810 * java/lang/Class.h (Class): Renamed fields to track compiler.
4812 1998-10-27 Tom Tromey <tromey@cygnus.com>
4814 * java/lang/natClass.cc: Use #pragma implementation.
4815 (getComponentType): Moved into header.
4816 (getModifiers): Likewise.
4817 (getName): Likewise.
4818 (getSuperclass): Likewise.
4819 (isArray): Likewise.
4820 (isPrimitive): Likewise.
4821 * include/jvm.h (_Jv_FindClass): Declare.
4822 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4823 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4824 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4825 * java/lang/Class.h: Rewrote from scratch.
4826 * prims.cc: Many changes to work with new Class.h.
4827 * include/java-field.h (CLASS_FIELDS): Removed.
4828 (CLASS_SFIELDS): Likewise.
4829 (CLASS_IFIELDS): Likewise.
4830 (CLASS_NFIELDS): Likewise.
4831 (CLASS_NIFIELDS): Likewise.
4832 (CLASS_NSFIELDS): Likewise.
4833 (CLASS_FSIZE): Likewise.
4834 (JvGetFirstInstanceField): Rewrote.
4835 (JvNumInstanceFields): Likewise.
4837 * java/lang/Object.h: Added copyright comment.
4839 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4841 * java/text: New package directory.
4842 * java/text/FieldPosition.java: New class.
4843 * java/text/ParsePosition.java: New class.
4844 * java/text/ParseException.java: New Exception class.
4845 * java/text/Format.java: New class.
4846 * java/text/NumberFormat.java: New (empty placeholder) class.
4847 * java/text/DateFormatSymbols.java: New class (no Locales support).
4848 * java/text/DateFormat.java: New Format class (incomplete).
4849 * java/text/SimpleDateFormat.java: New DateFormat class.
4851 * include/javaprims.h (java::test): Added new package and classes.
4852 * java/util/Calendar.java (clone): New method.
4853 * java/util/Date.java (toString): Added non-native implementation.
4854 (parse): Made public instead of synchronized.
4855 * java/util/natDate.cc (toString): Removed.
4856 * java/util/natGregorianCalendar.cc (computeFields):
4857 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4859 1998-10-27 Tom Tromey <tromey@cygnus.com>
4861 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4863 * prims.cc (lookupArray): Added explanatory comment.
4864 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4865 class. Mark the class of each object.
4866 (_Jv_MarkArray): Mark the object's class.
4868 * configure: Rebuilt.
4869 * configure.in: Create java-gc.h.
4870 * include/boehm-gc.h: New file.
4871 * include/no-gc.h: New file.
4872 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4874 * java/lang/Object.h: Include java-gc.h.
4875 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4876 friends, if defined.
4877 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4879 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4881 1998-10-26 Tom Tromey <tromey@cygnus.com>
4883 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4884 paragraph separators, not numbers.
4886 * java/io/Writer.java (write): Removed write(char) to avoid
4888 * java/util/Properties.java: Rewrote from scratch.
4889 * include/javaprims.h (java::io): Added PrintWriter,
4890 BufferedWriter, PushbackReader.
4892 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4894 * java/lang/System.java: exit() is a static method.
4896 1998-10-26 Tom Tromey <tromey@cygnus.com>
4898 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4900 (_Jv_NewStringUtf8Const): Likewise.
4901 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4902 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4904 * java/lang/Object.h (Object): Add mark_array as friend function.
4905 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4906 _Jv_AllocBytes, to ensure that header is marked.
4907 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4909 (mark_array): Push sync_info field for array.
4911 1998-10-24 Tom Tromey <tromey@cygnus.com>
4913 * java/lang/String.java (String): Updated for StringBuffer
4915 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4917 * java/lang/StringBuffer.java: Renamed fields to conform to
4918 serialization spec: buffer->value, next->count, copy->shared.
4920 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4922 * java/util/TimeZone.java: New class.
4923 * java/util/SimpleTimeZone.java: New class.
4924 * java/util/Locale.java: New file.
4925 * java/util/Calendar.java: Make almost complete.
4926 * java/util/GregorianCalendar.java
4927 * java/util/natGregorianCalendar.cc: New file.
4928 * java/util/Date.java: Re-written from scratch.
4929 * java/util/natDate.cc (setTime): Removed - no longer native.
4930 * include/javaprims.h (java::util): Add new classes.
4931 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4932 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4934 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4936 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4937 returning it as a jint.
4939 1998-10-23 Tom Tromey <tromey@cygnus.com>
4941 * prims.cc (arg_vec, main_group, main_thread): New globals.
4942 (JvRunMain): Use them.
4944 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4946 * java/io/DataInputStream.java: Rewritten.
4948 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4949 tertiary bytes with 0x80 per spec.
4951 1998-10-23 Tom Tromey <tromey@cygnus.com>
4953 * java/lang/String.java (init): Changed name of `copy' argument.
4954 * java/lang/natString.cc (init): Inverted sense of `copy'
4957 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4958 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4959 * boehm.cc (ObjectClass): New define.
4960 (ClassClass): Likewise.
4961 (mark_obj): Special-case Object and Class.
4963 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4965 * java/util/BitSet.java: Rewrote from scratch.
4967 * prims.cc (lookupArray): Removed useless cast.
4969 * java/lang/natObject.cc: Use `#pragma implementation'.
4971 * java/lang/String.java (init): Added `copy' argument.
4972 (String): Look in StringBuffer to find char array.
4973 * java/lang/natString.cc (init): Added `copy' argument.
4974 * java/lang/StringBuffer.java: Rewrote from scratch.
4976 * java/lang/Compiler.java: Rewrote from scratch.
4977 * java/lang/Throwable.java: Don't use NativeLang.
4978 * include/javaprims.h (java::lang): Don't mention NativeLang.
4979 * java/lang/Process.java: Rewrote from scratch.
4980 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4982 (currentClassLoader): Likewise.
4983 (currentLoadedClass): Likewise.
4984 * java/lang/natClass.cc (getClassLoader): Commented out.
4985 * java/lang/Class.java (getClassLoader): Commented out.
4986 * java/lang/Compiler.java: Removed.
4987 * java/lang/NativeLang.java: Removed.
4989 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4990 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4991 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4992 (_Jv_hashUtf8String): Now static.
4993 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4994 name of return type.
4996 * java/lang/Class.h (Class): Declare checkMemberAccess.
4997 * Makefile.in: Rebuilt.
4998 * Makefile.am (nat_headers): Added Member.h.
4999 * java/lang/natClass.cc: Include Member.h.
5000 (getDeclaredClasses): Call checkMemberAccess.
5001 * java/lang/Class.java (checkMemberAccess): Call
5002 SecurityManager.checkMemberAccess.
5004 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5006 * java/lang/SecurityManager.java: Rewritten.
5008 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5010 * java/applet/Applet.java, java/applet/AppletContext.java,
5011 java/applet/AppletStub.java, java/applet/AudioClip.java,
5012 java/awt/AWTError.java, java/awt/AWTException.java,
5013 java/awt/BorderLayout.java, java/awt/Button.java,
5014 java/awt/Canvas.java, java/awt/CardLayout.java,
5015 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5016 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5017 java/awt/Color.java, java/awt/Component.java,
5018 java/awt/Container.java, java/awt/Dialog.java,
5019 java/awt/Dimension.java, java/awt/Event.java,
5020 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5021 java/awt/Font.java, java/awt/FontMetrics.java,
5022 java/awt/Frame.java, java/awt/Graphics.java,
5023 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5024 java/awt/GridLayout.java, java/awt/Image.java,
5025 java/awt/Insets.java, java/awt/Label.java,
5026 java/awt/LayoutManager.java, java/awt/List.java,
5027 java/awt/MediaTracker.java, java/awt/Menu.java,
5028 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5029 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5030 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5031 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5032 java/awt/TextArea.java, java/awt/TextComponent.java,
5033 java/awt/TextField.java, java/awt/Toolkit.java,
5034 java/awt/Window.java, java/awt/image/ColorModel.java,
5035 java/awt/image/CropImageFilter.java,
5036 java/awt/image/DirectColorModel.java,
5037 java/awt/image/FilteredImageSource.java,
5038 java/awt/image/ImageConsumer.java,
5039 java/awt/image/ImageFilter.java,
5040 java/awt/image/ImageObserver.java,
5041 java/awt/image/ImageProducer.java,
5042 java/awt/image/IndexColorModel.java,
5043 java/awt/image/MemoryImageSource.java,
5044 java/awt/image/PixelGrabber.java,
5045 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5046 java/awt/peer/CanvasPeer.java,
5047 java/awt/peer/CheckboxMenuItemPeer.java,
5048 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5049 java/awt/peer/ComponentPeer.java,
5050 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5051 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5052 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5053 java/awt/peer/MenuBarPeer.java,
5054 java/awt/peer/MenuComponentPeer.java,
5055 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5056 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5057 java/awt/peer/TextAreaPeer.java,
5058 java/awt/peer/TextComponentPeer.java,
5059 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5060 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5061 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5062 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5063 java/net/MalformedURLException.java, java/net/NativeNet.java,
5064 java/net/ProtocolException.java, java/net/ServerSocket.java,
5065 java/net/Socket.java, java/net/SocketException.java,
5066 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5067 java/net/URL.java, java/net/URLConnection.java,
5068 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5069 java/net/URLStreamHandlerFactory.java,
5070 java/net/UnknownHostException.java,
5071 java/net/UnknownServiceException.java: Removed.
5073 1998-10-22 Tom Tromey <tromey@cygnus.com>
5075 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5076 finalizer is not Object.finalize.
5077 (internalAddClass): Don't set `final' member of class.
5078 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5079 other places that know about finalize() location.
5080 * java/lang/Class.h (Class): Removed `final' field.
5082 * aclocal.m4, configure: Rebuilt.
5083 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5084 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5086 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5087 * Makefile.in: Rebuilt.
5088 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5090 1998-10-21 Tom Tromey <tromey@cygnus.com>
5092 * java/lang/Object.java (finalize): Move to be first method in
5095 * configure: Rebuilt.
5096 * configure.in (GCINCS): Include contents of boehm-cflags file.
5098 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5100 * java/lang/ArrayIndexOutOfBoundsException.java
5101 (ArrayIndexOutOfBoundsException): Fixed string literal.
5102 * java/lang/StringIndexOutOfBoundsException.java
5103 (StringIndexOutOfBoundsException): Fixed string literal.
5105 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5107 * natFileDescriptorEcos.cc added.
5108 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5110 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5112 * acconfig.h: test for __int32_t and __uint32_t added.
5113 * include/config.h.in: test for __int32_t and __uint32_t added.
5114 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5115 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5116 * configure.in: test for __int32_t and __uint32_t added.
5117 * configure: test for __int32_t and __uint32_t added.
5119 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5121 * configure.in: Test for --enable ecos and link
5122 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5123 natFileDescriptorPosix.cc
5125 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5127 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5129 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5132 * java/io/CharArrayReader.java (close): Synchronize on lock
5133 object per Reader contract.
5134 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5135 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5136 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5137 Ensure that arg passed in isn't negative.
5139 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5140 constructing the superclass.
5142 * java/io/PushbackReader.java (close): Synchronize on lock
5143 object per Reader contract.
5144 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5145 (ready): Synchronize on lock obj. Throw IOException if reader
5147 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5148 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5149 Ensure that arg passed in isn't negative.
5150 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5152 * java/io/StringReader.java: Created.
5154 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5156 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5158 (read): Removed synchronized modifier to match JCL.
5159 (reset): Removed synchronized modifier to match JCL.
5160 (skip): Removed synchronized modifier to match JCL.
5162 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5164 * java/io/PushbackReader.java (PushbackReader): Made
5165 constructors public.
5167 1998-10-17 Tom Tromey <tromey@cygnus.com>
5169 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5170 constructors public.
5172 1998-10-16 Anthony Green <green@cygnus.com>
5174 * aclocal.m4, configure: Rebuilt.
5175 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5177 * configure.host: Rewrote.
5178 * Makefile.in: Rebuilt.
5179 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5180 (AM_CFLAGS): New macro.
5181 ($(c_files)): Use COMPILE macro.
5182 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5183 automake problem(s).
5185 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5187 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5189 * java/io/CharArrayReader.java: Created.
5191 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5193 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5194 size check to allow 0 per JCL.
5196 * java/io/PushbackReader.java: Created.
5198 1998-10-16 Tom Tromey <tromey@cygnus.com>
5200 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5201 <sys/time.h> includes.
5202 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5203 * include/no-threads.h: Conditionalize <unistd.h> include on
5206 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5208 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5211 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5213 * java/io/FilterReader.java: Created.
5215 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5217 * java/io/PushbackInputStream.java: Rewritten.
5219 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5220 that size passed to constructor is legal.
5221 (read): Check that args passed in are legal.
5222 (skip): Rewritten to get rid of the temporary buffer.
5223 (refill): Added marklimit check to grow the buffer.
5225 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5227 (bytesAvail): Removed.
5228 (read): Changed bytesAvail to Math.min.
5229 (skip): Changed bytesAvail to Math.min.
5231 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5232 from the throws clause.
5233 (skip): Rewritten to use a temporary buffer.
5235 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5237 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5240 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5242 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5243 to write the double one word at a time.
5245 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5247 * java/io/BufferedInputStream.java: Rewritten.
5249 1998-10-12 Tom Tromey <tromey@cygnus.com>
5251 * jni.cc: Include config.h and stddef.h.
5253 * java/lang/Class.h (_dispatchTable): Removed again.
5254 Removed all ACC_* defines again.
5256 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5258 * Makefile.am (nat_files): Add netField.o.
5259 (libjava_a_SOURCES): Add jni.cc.
5260 (java/lang/reflect/Field.h): New rule.
5261 * Makefile.in: Re-generated.
5262 * include/javaprims.h: Add some extra class and typedefs.
5263 * include/jni.h: New file.
5266 * include/java-field.h: New file.
5267 * include/jvm.h: #include <java-field.h>.
5268 * boehm.cc: #include <java-field.h>.
5269 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5270 * java/lang/reflect/Member.java: New class.
5271 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5272 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5274 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5276 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5277 testsuite/Makefile.in: Rebuilt.
5278 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5279 * configure.host: Created.
5281 1998-10-10 Tom Tromey <tromey@cygnus.com>
5283 * java/lang/natObject.cc (sync_init): Always allocate a new
5286 1998-10-09 Tom Tromey <tromey@cygnus.com>
5288 * java/io/ByteArrayInputStream.java (mark): Renamed from
5291 * java/io/FileOutputStream.java (finalize): Removed.
5292 * java/io/FileDescriptor.java (finalize): New method.
5294 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5296 * ByteArrayInputStream.java: Corrected status comment.
5298 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5300 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5302 1998-10-08 Tom Tromey <tromey@cygnus.com>
5304 * prims.cc (lookupArray): Use static array to initialize list of
5307 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5309 * prims.cc (lookupArray): Initialize the msize for new
5312 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5314 * configure: Rebuilt.
5315 * configure.in: Check for fsync and sleep.
5316 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5318 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5319 HAVE_SLEEP. Include config.h.
5321 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5322 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5325 1998-10-08 Tom Tromey <tromey@cygnus.com>
5327 * java/io/natFile.cc: Don't include SecurityManager.h.
5328 (performList): Renamed.
5329 (performMkdir): Likewise.
5330 (performRenameTo): Likewise.
5331 (performDelete): Likewise.
5333 * java/io/File.java (performDelete): Renamed from natDelete.
5334 (list): Now written in Java.
5335 (performList): New method.
5336 (performMkdir): New method.
5337 (mkdir): Now written in Java.
5338 (performRenameTo): New method.
5339 (renameTo): Now written in Java.
5341 1998-10-06 Tom Tromey <tromey@cygnus.com>
5343 * Makefile.in: Rebuilt.
5344 * Makefile.am (ETAGS_ARGS): New macro.
5345 (TAGS_DEPENDENCIES): Likewise.
5347 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5349 * Makefile.in: Rebuilt.
5350 * Makefile.am: Use -classpath option with javac.
5352 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5354 * java/io/FileOutputStream.java (finalize): Call
5357 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5359 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5361 * java/lang/mprec.c: Ditto.
5363 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5366 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5368 * java/io/InputStream.java (skip): Make local var i a long.
5370 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5372 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5373 * prims.cc (lookupArray): Use memcpy, not memmove.
5374 * include/config.h.in: Rebuilt.
5375 * acconfig.h (HAVE_MEMCPY): Added.
5376 * configure: Rebuilt.
5377 * configure.in: Check for memcpy again.
5379 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5380 String.compareTo, not ==.
5382 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5383 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5384 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5385 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5386 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5387 into new array's dtable.
5388 (_Jv_AllocObject): Use _Jv_DispatchTable.
5389 (_Jv_NewPrimArray): Likewise.
5390 (_Jv_NewObjectArray): Likewise.
5392 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5394 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5395 offending index value.
5396 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5398 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5399 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5401 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5403 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5405 * java/io/OutputStream.java (write): Use off and len parameters to
5406 output partial byte array.
5408 * java/io/BufferedReader.java, java/io/FileReader.java,
5409 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5410 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5411 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5412 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5414 * include/javaprims.h (java::lang): Added
5415 ExceptionInInitializerError, IllegalStateException,
5416 NoSuchFieldException, and UnsupportedOperationException.
5418 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5420 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5423 * include/java-array.h (__JArray): Added clone method.
5424 * prims.cc (CloneableClass): New define.
5425 (lookupArray): Initialize array class to indicate that it
5426 implements Cloneable.
5428 * java/lang/Class.h: Removed all ACC_* defines.
5429 * prims.cc: Include Modifier.h.
5430 (_Jv_LookupInterfaceMethod): Use methods in
5431 java.lang.reflect.Modifier, not ACC_ defines.
5433 * java/lang/Class.h (Class): Declare getClasses,
5434 getDeclaredClasses, getDeclaringClass, getModifiers,
5435 * java/lang/Class.java: Rewrote from scratch.
5437 * include/javaprims.h (java::lang): Added reflect and
5439 * Makefile.in: Rebuilt.
5440 * Makefile.am (nat_headers): Added Modifier.h.
5442 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5445 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5447 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5448 instead of test and abort.
5450 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5451 remove compiler warning.
5453 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5455 * java/lang/natDouble.cc: zero terminate string.
5456 * strtod.c: Set errno if no digits are found in fraction.
5458 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5460 * java/lang/reflect/Modifier.java: New file.
5462 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5463 * java/lang/VerifyError.java: Rewrote from scratch.
5464 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5465 * java/lang/UnknownError.java: Rewrote from scratch.
5466 * java/lang/StackOverflowError.java: Rewrote from scratch.
5467 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5468 * java/lang/InternalError.java: Rewrote from scratch.
5469 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5470 * java/lang/ExceptionInInitializerError.java: New file.
5471 * java/lang/Error.java: Rewrote from scratch.
5472 * java/lang/ClassFormatError.java: Rewrote from scratch.
5473 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5474 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5475 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5476 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5477 * java/lang/LinkageError.java: Rewrote from scratch.
5478 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5480 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5482 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5483 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5485 * include/cni.h (JvAllocObject): Moved from prims.cc.
5487 * prims.cc (JvAllocObject): Moved to cni.h.
5488 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5489 (finalize_name): Removed.
5491 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5493 * java/lang/Class.h (Class): Added size() method.
5494 * prims.cc (_Jv_MonitorEnter): Removed.
5495 (_Jv_MonitorExit): Removed.
5496 * java/lang/Object.h (JvSyncInfo): Removed.
5497 * Makefile.in: Rebuilt.
5498 * Makefile.am (nat_headers): Added Cloneable.h,
5499 CloneNotSupportedException.h.
5500 * java/lang/Object.h: Rewrote.
5501 * java/lang/natObject.cc: Rewrote from scratch.
5502 * java/lang/Object.java: Rewrote from scratch.
5504 * java/io/natFile.cc: Conditionally include <dirent.h>.
5505 (list): If no <dirent.h>, always return NULL.
5506 * configure: Rebuilt.
5507 * configure.in: Check for dirent.h.
5509 * prims.cc (lookupArray): Don't use sprintf.
5511 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5518 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5519 name conflict with method.
5521 * include/javaprims.h (java::util): Added HashtableEntry.
5523 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5525 * java/util/Hashtable.java: Rewritten.
5527 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5529 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5533 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5536 * posix-threads.cc (_Jv_CondWait): Now returns int.
5537 * include/javaprims.h (java::lang): Added
5538 IllegalMonitorStateException.
5539 * Makefile.in: Rebuilt.
5540 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5541 * include/no-threads.h (_Jv_CondDestroy): Removed.
5542 (_Jv_MutexDestroy): Removed.
5543 (_Jv_CondWait): Now returns int.
5544 (_Jv_CondNotify): Likewise. Added mutex argument.
5545 (_Jv_CondNotifyAll): Likewise.
5546 (_Jv_MutexLock): Always succeed.
5547 (_Jv_MutexUnlock): Likewise.
5548 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5549 (_Jv_HaveMutexDestroy): Define.
5550 (_Jv_CondNotify): Now returns int. Added mutex argument.
5551 (_Jv_CondNotifyAll): Likewise.
5552 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5553 (_Jv_MutexDestroy): Removed.
5554 (_Jv_CondWait): Now returns int.
5555 (_Jv_CondNotify): Likewise. Added mutex argument.
5556 (_Jv_CondNotifyAll): Likewise.
5557 * java/lang/natObject.cc (finalize_sync_info): New function.
5558 (init_mutex): Initialize `init' and register finalizer if
5561 (init_mutex): Use it.
5563 (notifyAll): Use it.
5565 (notify): Throw IllegalMonitorStateException on failure.
5566 (notifyAll): Likewise.
5567 (wait): Likewise. Also, throw InterruptedException if
5569 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5570 InterruptedException.h, IllegalArgumentException.h.
5571 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5573 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5574 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5575 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5576 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5577 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5578 * quick-threads.cc: Renamed all `JvPriv' functions.
5579 * prims.cc: Renamed all `JvPriv' functions.
5580 * posix-threads.cc: Renamed all `JvPriv' functions.
5581 * nogc.cc: Renamed all `JvPriv' functions.
5582 * no-threads.cc: Renamed all `JvPriv' functions.
5583 * boehm.cc: Renamed all `JvPriv' functions.
5584 * include/quick-threads.h: Renamed all `JvPriv' functions.
5585 * include/posix-threads.h: Renamed all `JvPriv' functions.
5586 * include/no-threads.h: Renamed all `JvPriv' functions.
5587 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5589 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5591 (JvPrivCondNotify): Do nothing.
5592 (JvPrivCondNotifyAll): Do nothing.
5594 * prims.cc (processClass): Handle case where state is
5597 * java/lang/natFirstThread.cc: Include <stdlib.h>
5599 * configure: Rebuilt.
5600 * configure.in: Fixed sense of --enable-libjava-debug.
5602 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5603 it can be used afterward by the assertion.
5605 * configure: Rebuilt.
5606 * configure.in: When cross-compiling, assume alloca.
5608 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5609 __builtin_alloca (autoconf docs are wrong here).
5611 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5613 (available): Use `FD_ZERO' (typo fix).
5615 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5617 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5618 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5620 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5621 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5624 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5626 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5628 * java/lang/natDouble.cc: Declare alloca safely.
5630 * configure, include/config.h.in: Rebuilt.
5631 * configure.in: Add alloca check.
5633 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5635 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5636 condition while calling notify.
5637 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5638 (interrupt): Hold mutex for interrupt condition while calling
5641 * java/lang/natString.cc (init): Allocate and try to read `count'
5642 characters, not `count - offset' characters.
5644 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5645 Correctly compute `count'.
5647 * java/lang/Boolean.java (getBoolean): Return false if property
5650 * java/lang/System.java (setProperties): Set prop_init.
5652 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5654 * java/io/PrintStream.java (println): Use line.separator, not
5656 * java/lang/System.java (out, err): Make both autoflush streams.
5657 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5659 * include/config.h.in: Rebuilt.
5660 * acconfig.h (HAVE_MEMCPY): Removed.
5661 * configure: Rebuilt.
5662 * configure.in: Never define HAVE_MEMCPY.
5664 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5666 (_Jv_AllocString): Use JvAllocObject again.
5667 * java/lang/Class.h (thread): New field.
5668 (_Jv_AllocString): No longer a friend.
5669 * prims.cc (processClass): Removed dead code. Changed to more
5670 closely follow the Java Language Specification.
5671 (processClass): Return early if already at the right state.
5673 * prims.cc (JvNewStringUTF): Removed.
5674 * include/cni.h (JvNewStringUTF): New function.
5675 (_Jv_NewStringUTF): Declare as `extern "C"'.
5676 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5678 * java/lang/natDouble.cc: Added copyright info and header
5679 comment. Include <stdlib.h>.
5680 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5681 bytes as are chars in string.
5683 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5685 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5689 * java/lang/System.java (init_properties): Now native.
5690 * java/lang/natSystem.cc (init_properties): New method.
5691 Include java/util/Properties.h.
5693 * Makefile.in: Rebuilt.
5694 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5695 OutputStreamWriter.h, ByteArrayInputStream.h,
5696 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5697 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5698 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5699 Properties.h, Hashtable.h, Dictionary.h.
5702 * include/javaprims.h (java::io): Added Reader, Writer,
5703 InputStreamReader, OutputStreamWriter,
5704 UnsupportedEncodingException, ByteArrayInputStream,
5705 ByteArrayOutputStream, EOFException, SyncFailedException,
5706 PushbackInputStream.
5707 (java::lang): Added Cloneable.
5708 (java::util): Added NoSuchElementException, VectorEnumeration,
5709 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5711 * java/io/PipedReader.java: New file.
5713 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5715 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5718 * java/io/io-defs.h: Removed.
5720 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5721 (FileInputStream): Use new constructor. Can throw IOException.
5723 * java/lang/System.java (getProperty): Don't throw
5724 NullPointerException.
5726 * java/io/RandomAccessFile.java: Rewrote from scratch.
5728 * java/io/natFileDescriptor.cc: Include EOFException.h.
5730 (length): New method.
5731 (getFilePointer): New method.
5733 (available): New method.
5734 * java/io/FileDescriptor.java (SET, CUR): New constants.
5735 (seek, length, getFilePointer, read, available): New decls.
5737 * java/io/PipedWriter.java: New file.
5738 * java/io/StringWriter.java: New file.
5739 * java/io/CharArrayWriter.java: New file.
5740 * java/io/CharConversionException.java: New file.
5741 * java/io/BufferedWriter.java: New file.
5742 * java/io/FilterWriter.java: New file.
5743 * java/io/FileWriter.java: New file.
5745 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5746 OutputStreamWriter.h, NullPointerException.h,
5747 ByteArrayInputStream.h, InputStreamReader.h.
5748 (getBytes): New method.
5749 (init): Throw NullPointerException.
5750 (init): New function.
5751 * java/lang/String.java (getBytes): Added missing decl.
5752 (getBytes): New method.
5753 (String): Added byte[]-based constructors.
5754 (copyValueOf): Wrote.
5755 (init): Declare variant which takes byte array and encoding.
5756 Import java.io.UnsupportedEncodingException.
5758 * java/io/File.java: Rewrote from scratch.
5759 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5760 * java/io/FileDescriptor.java: Rewrote from scratch.
5761 * java/io/FilenameFilter.java: Rewrote from scratch.
5763 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5765 * java/io/SyncFailedException.java: New file.
5766 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5767 * java/io/InterruptedIOException.java: Rewrote from scratch.
5768 * java/io/FileNotFoundException.java: Rewrote from scratch.
5769 * java/io/EOFException.java: Rewrote from scratch.
5770 * java/io/IOException.java: Rewrote from scratch.
5771 * java/io/PrintStream.java: Rewrote from scratch.
5772 * java/io/DataOutputStream.java: Rewrote from scratch.
5773 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5774 * java/io/FilterOutputStream.java: Rewrote from scratch.
5775 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5776 * java/io/PipedOutputStream.java: Rewrote from scratch.
5777 * java/io/FileOutputStream.java: Rewrote from scratch.
5778 * java/io/OutputStream.java: Rewrote from scratch.
5779 * java/io/DataOutput.java: Rewrote from scratch.
5781 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5783 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5785 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5787 * configure.in: Add --enable-libjava-debug
5789 * Makefile.am (nat_headers): Add java/lang/Float.h and
5792 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5794 * Makefile.in, configure, include/config.h.in: Rebuilt.
5796 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5798 * java/lang/Float.java: Rewritten
5799 * java/lang/Double.java: Rewritten
5800 * java/lang/natFloat.cc: toString() added.
5801 * java/lang/natDouble.cc: toString() added.
5802 * java/lang/natDouble.cc: doubleValueOf() added.
5803 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5804 java/lang/strtod.c: added.
5805 * ieeefp.h: __sparc added.
5806 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5808 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5810 * include/javaprims.h (java::lang): Added
5811 CloneNotSupportedException.
5813 * java/lang/Object.java (clone): No longer native. Implemented.
5814 * java/lang/natObject.cc (clone): Removed.
5816 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5818 * prims.cc: Don't make definitions `extern "C"'.
5819 (_Jv_RegisterClass): Renamed from registerClass.
5820 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5821 (_Jv_NewArray): Likewise.
5822 (_Jv_NewMultiArray): Likewise.
5823 (_Jv_CheckCast): Likewise.
5824 (_Jv_LookupInterfaceMethod): Likewise.
5825 (_Jv_CheckArrayStore): Likewise.
5826 (_Jv_RegisterClass): Likewise.
5828 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5829 * configure: Rebuilt.
5830 * configure.in: Don't check for fmod; it is provided by the fdlibm
5832 * prims.cc (fmod): Removed.
5834 * java/lang/natString.cc (charAt): Use _Jv_uint.
5835 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5836 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5837 (equalUtf8Consts): Likewise.
5838 (internalAddClass): Use _Jv_uint.
5839 (processClass): Likewise.
5840 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5841 (_Jv_uint): Renamed from uint32.
5842 (struct _Jv_Utf8Const): Changed members to use new type names.
5844 * configure: Rebuilt.
5845 * configure.in: Don't check for memcpy. Require memmove and a way
5847 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5849 (currentTimeMillis): Don't use #error.
5851 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5853 * java/lang/Math.java: static member random renamed to random_ to
5854 avoid conflict with member function of the same name.
5855 * include/javaprims.h: java.util.Random added.
5857 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5859 * include/java-chartables.h: Regenerated.
5860 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5863 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5865 * java/lang/Math.java: Rewritten.
5866 * java/lang/natMath.cc: New file.
5867 * Files added from fdlibm:
5868 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5869 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5870 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5871 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5872 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5873 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5874 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5875 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5876 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5877 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5878 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5879 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5880 java/lang/k_cos.c, java/lang/sf_ceil.c,
5881 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5882 java/lang/ieeefp.h, java/lang/fdlibm.h
5883 * Makefile.am: rules added for compiling C files from fdlibm.
5885 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5887 * chartables.pl: Minor documentation fixes.
5889 * configure: Rebuilt.
5890 * configure.in: Fixed --help output for --enable-fast-character.
5892 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5894 * configure: Rebuilt.
5895 * configure.in: Recognize --enable-fast-character.
5896 * acconfig.h (COMPACT_CHARACTER): New define.
5897 * include/config.h.in: Rebuilt.
5898 * include/java-chartables.h: New file.
5899 * Makefile.in: Rebuilt.
5900 * Makefile.am (nat_files): Added natCharacter.o.
5901 * java/lang/natCharacter.cc: New file.
5902 * chartables.pl (set_attribute): New function.
5903 (@attributes, @second_attributes): New globals.
5904 ($ROMAN_START, $ROMAN_END): Likewise.
5905 (process_char): Call set_attribute when required.
5906 (print_char): Just print hex value.
5907 (print_block): Generate C++ syntax.
5908 (print_numerics): Likewise.
5909 (print_single_map): Likewise.
5910 (print_all_block): Likewise.
5911 (print_case_table): Likewise.
5912 (print_fast_tables): New function.
5913 Generate C++ code suitable for a header file.
5914 * java/lang/Character.java (table_search): Removed.
5915 (digit_value): Now native.
5916 (getNumericValue): Likewise.
5917 (getType): Likewise.
5918 Removed all automatically-generated tables.
5919 (Tamil_Digit_One): Removed.
5920 (isSpaceChar): Now native.
5921 (isTitleCase): Likewise.
5922 (isLowerCase): Likewise.
5923 (isUpperCase): Likewise.
5924 (toLowerCase): Likewise.
5925 (toTitleCase): Likewise.
5926 (toUpperCase): Likewise.
5927 (isDefined): Fixed sense of test.
5929 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5931 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5933 (regionMatches): Likewise.
5935 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5937 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5939 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5941 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5944 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5947 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5949 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5951 * prims.cc (instanceof_class): Removed.
5952 (instanceof_array): Likewise.
5953 (instanceof): Likewise.
5954 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5955 (_Jv_CheckCast): Likewise.
5956 * java/lang/natClass.cc (isAssignableFrom): New method.
5957 * java/lang/Class.java (isAssignableFrom): Now native.
5959 * include/cni.h (JvThrow): Use `extern inline'.
5960 (JvAllocObject): Likewise.
5961 (JvInitClass): Likewise.
5963 * java/lang/natSystem.cc (arraycopy): Only check class of source
5966 * prims.cc (_Jv_CheckArrayStore): Wrote.
5967 (_Jv_MonitorEnter): Prefer `JvThrow'.
5968 Include ArrayStoreException.h.
5969 (_Jv_CheckCast): Indentation cleanup.
5971 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5973 * chartables.pl: New file.
5974 * java/lang/Character.java: Rewrote from scratch.
5976 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5978 * java/lang/ArithmeticException.java,
5979 java/lang/ArrayIndexOutOfBoundsException.java,
5980 java/lang/ArrayStoreException.java,
5981 java/lang/ClassCastException.java,
5982 java/lang/ClassNotFoundException.java,
5983 java/lang/CloneNotSupportedException.java,
5984 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5985 java/lang/IllegalArgumentException.java,
5986 java/lang/IllegalMonitorStateException.java,
5987 java/lang/IllegalThreadStateException.java,
5988 java/lang/IndexOutOfBoundsException.java,
5989 java/lang/InstantiationException.java,
5990 java/lang/InterruptedException.java,
5991 java/lang/NegativeArraySizeException.java,
5992 java/lang/NoSuchMethodException.java,
5993 java/lang/NullPointerException.java,
5994 java/lang/NumberFormatException.java,
5995 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5996 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5998 * java/lang/IllegalStateException.java,
5999 java/lang/NoSuchFieldException.java,
6000 java/lang/UnsupportedOperationException.java: Created.
6002 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6004 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6005 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6007 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6009 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6011 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6013 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6015 * Makefile.in: Rebuilt.
6017 * include/javaprims.h (java::lang): Added
6018 StringIndexOutOfBoundsException.
6020 * java/lang/String.java: Added header comment and FIXME comment for
6021 missing constructors/methods.
6022 (endsWith): Adjusted offset into string to look at just the last chars.
6023 Commented out undocumented method.
6025 * java/lang/natString.cc: Added includes for
6026 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6027 (String::init): Throw StringIndexOutOfBoundsException.
6028 (String::charAt): Throw StringIndexOutOfBoundsException.
6029 (String::substring): Throw StringIndexOutOfBoundsException.
6030 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6031 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6032 (String::compareTo): Return difference/offset between chars/strings.
6034 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6036 * java/lang/Boolean.java (TYPE): Added comment.
6038 * java/lang/Byte.java (decode): Added - commented out until dependent
6039 code for Integer is written.
6040 (compareTo): JDK 1.2 methods written.
6041 (hashCode): Added comment to note that values have been verified.
6043 * java/lang/Short.java (decode): Added - commented out until dependent
6044 code for Integer is written.
6045 (compareTo): JDK 1.2 methods written.
6046 (hashCode): Added comment to note that values have been verified.
6048 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6050 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6052 * include/javaprims.h (java::lang): Added VirtualMachineError,
6054 * Makefile.in: Rebuilt.
6055 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6056 VirtualMachineError.h.
6057 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6058 (lookupArray): Likewise.
6059 (makeUtf8Const): Likewise.
6060 (_Jv_AllocObject): Likewise.
6061 (_Jv_NewObjectArray): Likewise.
6062 Include OutOfMemoryError.h.
6064 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6065 to use JvNewStringLatin1.
6067 * java/io/io-defs.h: Include java/lang/IOException.h.
6068 * Makefile.in: Rebuilt.
6069 * Makefile.am (nat_headers): Added
6070 ArrayIndexOutOfBoundsException.h,
6071 ClassFormatError.h,ClassNotFoundException.h,
6072 ClassCircularityError.h, ClassCastException.h,
6073 IncompatibleClassChangeError.h, AbstractMethodError.h,
6074 IllegalAccessError.h, LinkageError.h, Error.h,
6075 NegativeArraySizeException.h, IOException.h.
6076 * include/cni.h (SignalError): Removed declaration.
6077 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6078 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6079 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6080 (newInstance): Likewise.
6081 (forName): Likewise.
6082 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6084 (read): Use JvThrow, not SignalError.
6089 (open_read): Likewise.
6090 (open_write): Likewise.
6093 (newstr): New function.
6094 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6096 (lastModifiedUnchecked): Likewise.
6097 (lengthUnchecked): Likewise.
6098 * include/javaprims.h (sorry): Removed declaration.
6099 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6100 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6101 ClassCastException, IncompatibleClassChangeError,
6102 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6103 * prims.cc (instanceof_array): Use JvFail, not sorry.
6105 Include ArrayIndexOutOfBoundsException.h,
6106 ClassFormatError.h,ClassNotFoundException.h,
6107 ClassCircularityError.h, ClassCastException.h,
6108 IncompatibleClassChangeError.h, AbstractMethodError.h,
6109 IllegalAccessError.h, NegativeArraySizeException.h.
6110 (_Jv_ThrowBadArrayIndex): Implemented.
6111 (JvNewStringUTF): Use JvFail, not sorry.
6112 (_Jv_FindClass): Likewise.
6113 (_Jv_NewArray): Likewise.
6114 (throwException): Removed.
6115 (getClass): Use JvThrow.
6116 (processClass): Likewise.
6117 (_Jv_NewObjectArray): Likewise.
6118 (_Jv_NewMultiArray): Likewise.
6119 (_Jv_CheckCast): Likewise.
6120 (_Jv_LookupInterfaceMethod): Likewise.
6121 (SignalError): Removed.
6122 (getClass): Use _Jv_NewStringUtf8Const to create String.
6124 * java/lang/natSystem.cc (arraycopy): Throw
6125 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6127 * Makefile.in: Rebuilt.
6128 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6130 * include/java-array.h: Mention gcjh, not gjavah.
6132 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6133 (canReadUnchecked): Likewise.
6134 (canWriteUnchecked): Likewise.
6135 (isFileUnchecked): Likewise.
6136 * java/io/natFileDescriptor.cc: Don't include cni.h.
6138 * java/lang/Thread.java (run__): Declare.
6139 * java/lang/natThread.cc (run__): New method, to avoid compiler
6141 (start): Use run__, not run_.
6143 * java/io/io-defs.h: Include cni.h and jvm.h.
6145 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6147 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6148 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6149 to natString.cc (with suitable renaming, inlines etc).
6150 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6151 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6152 * java/lang/String.h: Removed - now generated using gjavah.
6153 * java/lang/String.java: Re-written from scratch. Many native methods.
6154 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6155 * java/lang/natString.cc: Many functions re-written for "compact
6156 strings" representation, or native java.lang.String methods added.
6157 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6158 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6159 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6160 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6161 * include/cni.h: Add inline method.
6162 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6163 * include/javaprims.h: Moved some stuff frm String.h.
6164 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6165 * Makefile.am (nat_header): Added Character.h and String.h.
6166 (String.h): Add new rule.
6168 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6170 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6172 * posix-threads.cc: Include cni.h, jvm.h.
6173 * quick-threads.cc: Include cni.h, jvm.h.
6174 * nogc.cc: Include cni.h, not javaprims.h.
6175 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6176 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6177 include java-assert.h.
6178 * java/lang/natSystem.cc: Include cni.h. Don't include
6180 * java/lang/natRuntime.cc: Include cni.h. Don't include
6182 * prims.cc: Rearranged #include ordering. Don't include
6183 java-array.h or java-assert.h.
6184 * boehm.cc: Include config.h, cni.h.
6185 * exception.cc: Include config.h, cni.h.
6186 * include/jvm.h: Include java-assert.h.
6187 * include/cni.h: Include java/lang/Object.h. Don't include
6188 java-threads.h or java-array.h.
6190 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6192 * java/lang/Boolean.java: Rewritten.
6194 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6196 * java/lang/natFirstThread.cc (main_func): New typedef.
6197 (run): Use main_func, not JvPrivThreadStartFunc.
6198 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6200 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6202 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6205 Can't throw Java exceptions with C++ `throw':
6206 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6207 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6208 (setPriority): Likewise.
6212 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6213 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6215 Can't catch Java exceptions from C++:
6216 * java/lang/natThread.cc (finish_): New method.
6218 * java/lang/Thread.java (run_): Rewrote in Java.
6219 (finish_): New native method.
6221 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6223 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6225 * include/javaprims.h (java::io): Added Serializable.
6227 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6229 * java/util/EmptyStackException.java,
6230 java/util/NoSuchElementException.java: Rewritten.
6232 * java/util/ConcurrentModificationException.java,
6233 java/util/MissingResourceException.java,
6234 java/util/TooManyListenersException.java: Created.
6236 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6238 * include/cni.h (JvThrow): New function.
6239 * include/javaprims.h (_Jv_Throw): Declare.
6241 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6243 * java/util/Observable.java: Rewritten.
6245 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6247 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6248 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6249 Include NullPointerException.h.
6251 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6253 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6254 assignability checks. Don't bother using memcpy.
6256 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6258 * include/quick-threads.h (JvPrivThreadWait): New function.
6259 * include/no-threads.h (JvPrivThreadWait): New function.
6260 * include/posix-threads.h (JvPrivThreadWait): New function.
6261 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6263 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6265 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6266 offsets by size of type that is being copied.
6268 * java/lang/natThread.cc (start): Don't pass `object' argument to
6270 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6271 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6273 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6274 always pass thread as object.
6275 * include/quick-threads.h, include/posix-threads.h,
6276 include/no-threads.h (JvPrivThreadStart): Removed `object'
6279 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6281 * java/util/Dictionary.java: Rewritten.
6283 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6285 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6286 (JvPrivThreadDestroy): Likewise.
6288 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6290 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6292 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6294 * java/lang/natSystem.cc: Rewrote from scratch.
6295 * java/lang/System.java: Rewrote from scratch.
6296 * java/lang/Class.h (Class): Declare isAssignableFrom.
6297 * include/javaprims.h (java::lang): Added ArrayStoreException,
6298 IndexOutOfBoundsException.
6299 * Makefile.in: Rebuilt.
6300 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6301 IndexOutOfBoundsException.h.
6302 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6303 * include/jvm.h (_Jv_HashCode): New function.
6305 * java/lang/natThread.cc (suspend): Call checkAccess.
6307 * java/lang/Thread.java (setDaemon): Call checkAccess.
6309 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6311 * java/lang/Runtime.java: Rewrote from scratch.
6312 * java/lang/natRuntime.cc: Rewrote from scratch.
6314 * nogc.cc (JvPrivGCTotalMemory): New function.
6315 (JvPrivGCFreeMemory): Likewise.
6316 (total): New global.
6317 (JvPrivAllocObj): Increment total.
6318 (JvPrivAllocArray): Likewise.
6319 (JvPrivAllocBytes): Likewise.
6320 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6321 * boehm.cc (JvPrivGCTotalMemory): New function.
6322 (sum_blocks): Likewise.
6323 (JvPrivGCFreeMemory): Likewise.
6325 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6327 * include/javaprims.h (java::lang): Added FirstThread.
6328 * java/lang/natFirstThread.cc: New file.
6329 * java/lang/FirstThread.java: New file.
6330 * prims.cc (main_signature): Removed.
6331 (main_name): Removed.
6332 #include FirstThread.h.
6333 * Makefile.in: Rebuilt.
6334 * Makefile.am (TFRIEND): Removed.
6335 (java/lang/Thread.h): Likewise.
6336 (FTFRIEND): New macro.
6337 (java/lang/FirstThread.h): New target.
6338 (nat_files): Added natFirstThread.o.
6339 (nat_headers): Added FirstThread.h.
6340 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6341 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6343 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6347 * java/lang/natThread.cc (start): Synchronize the thread.
6348 (stop): Synchronize the thread.
6350 * java/lang/ThreadDeath.java: Rewrote from scratch.
6352 * Makefile.in: Rebuilt.
6353 * Makefile.am (TGFRIEND): New macro.
6354 (java/lang/ThreadGroup.h): New target.
6355 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6357 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6359 * nogc.cc: Include config.h.
6361 * java/lang/ThreadGroup.java: Rewrote from scratch.
6363 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6365 * java/lang/Thread.java (checkAccess): Only call in to security
6366 manager if it exists.
6367 (Thread): Don't check access when creating the first thread. Add
6368 this thread to the appropriate ThreadGroup.
6370 * java/lang/natThread.cc (run_): Call uncaughtException method on
6373 * java/lang/Runnable.java: Rewrote from scratch.
6374 * java/lang/Thread.java: Updated copyright comment to correct
6377 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6379 * java/util/Random.java: Rewritten.
6381 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6383 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6384 trailing 0 in array[].
6386 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6388 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6389 and RUNTESTFLAGS from AM_MAKEFLAGS.
6390 (SUBDIRS): Conditionally include testsuite.
6391 * Makefile.in: Rebuilt.
6393 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6395 * java/lang/Object.h: Include java-assert.h.
6397 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6399 * Makefile.am: Add testsuite directory.
6400 * configure.in: Build testsuite/Makefile.
6401 * Makefile.in, configure: Rebuilt.
6403 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6405 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6406 * include/jvm.h (_Jv_StartFirstThread): Declare.
6408 * include/javaprims.h (java::lang): Added Exception,
6411 * Makefile.in: Rebuilt.
6412 * Makefile.am (nat_headers): Added NullPointerException.h,
6413 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6414 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6415 (java/lang/Thread.h): New target.
6416 (TFRIEND): New macro
6418 * include/java-assert.h (JvFail): Use 0 and not NULL.
6420 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6421 instead of assuming we are a friend of Thread.
6422 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6423 instead of assuming we are a friend of Thread.
6425 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6427 * java/lang/natThread.cc: Rewrote from scratch.
6428 * java/lang/Thread.java: Rewrote from scratch.
6429 * prims.cc (JvRunMain): Use new Thread constructor.
6430 * include/javaprims.h (java::lang): Added InterruptedException.
6431 * Makefile.in: Rebuilt.
6432 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6433 * java/lang/Thread.h: Removed.
6434 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6435 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6437 * posix-threads.cc (JvPrivThreadJoin): Removed.
6438 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6439 (really_start): Don't notify join_cond.
6440 (JvPrivThreadStart): Added `data' argument.
6441 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6442 (JvPrivThreadJoin): Likewise.
6443 Use JvFail instead of sorry.
6444 (JvPrivThreadSuspend): Removed.
6445 (JvPrivThreadResume): Removed.
6446 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6447 (JvPrivThreadJoin): Likewise.
6448 (JvPrivThreadSuspend): Use JvFail.
6449 (JvPrivThreadResume): Likewise.
6450 (JvPrivThreadSuspend): Removed.
6451 (JvPrivThreadResume): Likewise.
6452 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6453 (JvPrivThread_t): Removed join_mutex, join_cond.
6454 Use JvFail instead of sorry.
6455 (JvPrivThreadSuspend): Removed.
6456 (JvPrivThreadResume): Likewise.
6458 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6460 * java/util/Observer.java: Rewritten
6461 * java/util/Enumeration.java: Rewritten
6463 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6465 * java/util/StringTokenizer.java: Rewritten
6466 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6467 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6468 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6470 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6472 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6475 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6476 Include java-assert.h.
6477 * include/java-assert.h: New file.
6478 * prims.cc (_Jv_Abort): New function.
6479 Include java-assert.h, not assert.h.
6480 (_Jv_MonitorExit): Use JvAssert.
6481 (resolveConstants): Likewise.
6482 (processClass): Likewise.
6483 (JvRunMain): Assert that method is found.
6485 * configure: Rebuilt.
6486 * configure.in: Check for test subdir.
6487 * Makefile.in: Rebuilt.
6488 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6490 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6491 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6493 * prims.cc (resolveConstants): Removed unused variables.
6494 (processClass): Likewise.
6496 * include/quick-threads.h (JvPrivThreadCurrent): Use
6498 * quick-threads.cc (destroy_data): New function.
6499 (JvPrivInitThreads): Create key.
6500 (JvPrivThreadKey): New global.
6501 (JvPrivThreadStart): Use coop_setspecific.
6503 * include/quick-threads.h, include/posix-threads.h,
6504 include/no-threads.h, no-threads.cc, quick-threads.cc,
6505 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6507 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6509 * include/no-threads.h (JvPrivThreadInitData): Don't set
6512 * include/quick-threads.h (JvPrivCondWait): coop function now
6514 (JvPrivThreadJoin): Likewise.
6516 * java/lang/Thread.h (Thread): Updated declaration of
6518 * include/quick-threads.h, include/posix-threads.h: Updated
6519 declaration of JvPrivThreadStart.
6520 * include/no-threads.h (JvPrivThreadStart): Changed definition
6522 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6523 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6524 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6526 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6528 * quick-threads.cc (qthrow): New function.
6529 (JvPrivInitThreads): New function.
6530 (started): New global.
6531 (JvPrivThreadStart): Call coop_start if required.
6532 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6533 (JvPrivThreadDestroy): Likewise.
6534 (JvPrivInitThreads): Removed.
6535 * include/posix-threads.h (JvPrivThreadCancel): Added error
6537 * java/lang/natThread.cc (stop_): Pass exception to
6540 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6542 * include/javaprims.h (java::lang): Added
6543 IllegalArgumentException, IllegalThreadStateException, Math,
6544 NullPointerException, ThreadDeath.
6545 (java::util): Added Enumeration.
6547 * Makefile.in: Rebuilt.
6548 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6550 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6552 (threadsv): Renamed from threads to avoid clash in C++ header.
6553 (groupsv): Likewise.
6554 * include/no-threads.h (JvPrivThreadStart): Removed.
6555 * no-threads.cc (JvPrivThreadStart): New function.
6556 * java/lang/Thread.java (Thread): New constructor for internal use.
6557 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6558 (Thread): Declare constructor.
6559 * prims.cc (JvRunMain): Create the initial Thread and
6561 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6562 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6563 Removed `daemon' argument.
6565 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6566 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6568 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6570 * Makefile.in: Rebuilt.
6571 * Makefile.am (INCLUDES): Include THREADINCS.
6573 * configure: Rebuilt.
6574 * configure.in: Recognize `qt' as a threads package.
6576 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6578 * java/util/Stack.java (pop): Null out topmost node for robustness.
6580 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6582 * java/util/Stack.java: Rewritten.
6583 * java/util/Vector.java (isEmpty): Simplified expression.
6585 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6587 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6588 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6590 * include/java-array.h (JvNewObjectArray): Created inline to
6593 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6596 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6598 * java/util/Vector.java: Rewritten.
6599 * java/io/Serializable.java: Created.
6601 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6603 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6604 Infinity is 1/0, not 1/1.
6606 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6608 * configure: Rebuilt.
6609 * configure.in: Removed duplicate AC_ARG_WITH.
6611 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6613 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6615 (_Jv_InitClass): Renamed from soft_initialise_class.
6616 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6617 (_Jv_CheckCast): Renamed from soft_checkcast.
6618 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6619 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6620 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6621 * include/cni.h (JvInitClass): New function.
6622 (_Jv_InitClass): Renamed from soft_initialise_class.
6624 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6626 * configure: Rebuilt.
6627 * configure.in (CXX): Don't set.
6628 * Makefile.in: Rebuilt.
6629 * Makefile.am (AM_CXXFLAGS): New macro.
6631 * Makefile.in: Rebuilt.
6632 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6633 nogc.o): New target.
6635 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6637 (mark_array): Likewise.
6639 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6641 * java/lang/Class.h (JvMethod): Removed some unused fields.
6642 (JvField.info): Removed unused idx union variant.
6644 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6646 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6649 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6651 * configure.in, configure (CXX): Add -fvtable-thunks.
6653 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6655 * java/lang/Object.java (finalize): Move first.
6656 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6657 (Object): Re-arrange order to match Object.java.
6659 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6661 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6662 * java/lang/natString.cc (hashChars): Likewise.
6664 * prims.cc (RuntimeClass): New macro.
6665 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6667 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6669 * Makefile.in: Rebuilt.
6670 * Makefile.am (AM_MAKEFLAGS): New macro.
6672 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6674 * nogc.cc: Include <javaprims.h>.
6676 * Makefile.in: Rebuilt.
6677 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6679 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6681 * exception.cc (terminate): Removed.
6682 (unexpected): Removed.
6684 * configure: Rebuilt.
6685 * configure.in: Handle case where target subdir is ".".
6687 * configure: Rebuilt.
6688 * configure.in: Compute COMPPATH based on --with-target-subdir
6689 option. Added --with-target-subdir and --with-cross-host. Use
6690 --with-cross-host to determine when a cross compiler is in use.
6692 * Makefile.in: Rebuilt.
6693 * Makefile.am (GJAVAH): Include COMPPATH.
6694 * configure: Rebuilt.
6695 * configure.in: Subst COMPPATH.
6697 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6699 * prims.cc (lockMutex): Removed.
6700 (unlockMutex): Likewise.
6701 (processClass): Lock the class using a JvSynchronize object.
6703 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6705 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6706 (gc_free_fixed): Removed.
6707 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6708 freeing old value of strhash.
6710 * exception.cc (_Jv_type_matcher): Cast first argument to
6713 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6715 * include/java-array.h (jstringArray): New type.
6716 * java/lang/natSystem.cc (setProperty): Removed.
6717 (initProperties): Directly call JvNewStringLatin1 for arguments.
6718 * java/util/natDate.cc: Include java/util/Date.h, not
6721 * java/io/FileDescriptor.java (available): No longer static.
6722 * java/lang/natDouble.cc (Double): Removed class definition.
6723 * include/javaprims.h (java::lang::Number): Declare.
6724 (java::lang::NumberFormatException): Likewise.
6725 (java::io::FilenameFilter): Likewise.
6726 (java::lang::Character): Likewise.
6727 (java::lang::Error): Likewise.
6728 (java::lang::SecurityManager): Likewise.
6729 (java::util::Vector): Likewise.
6730 (java::io::FileNotFoundException): Likewise.
6731 (java::io::IOException): Likewise.
6732 (java::lang::NativeLang): Likewise.
6733 (java::lang::UnsatisfiedLinkError): Likewise.
6734 (java::util::StringTokenizer): Likewise.
6735 (java::io::InputStream, java::io::OutputStream): Likewise.
6736 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6737 (java::util::Hashtable): Likewise.
6738 * Makefile.in: Rebuilt.
6739 * Makefile.am (nat_headers): Added java/lang/Double.h,
6740 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6741 (MOSTLYCLEANFILES): Added nat_headers.
6742 * include/jvm.h: Moved many defines, declarations, and functions
6743 to java/lang/Class.h.
6744 (struct JvSyncInfo): Moved to java/lang/Object.h.
6745 (UTF8_GET): Moved to java/lang/String.h.
6747 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6749 * java/io/io-defs.h: Don't include java-io.h.
6750 * include/java-io.h: Removed.
6751 * include/javaprims.h: Include java::io.
6753 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6755 * include/java-io.h (File): Removed
6756 (FileDescriptor): Likewise.
6758 * java/io/io-defs.h: Include java/io/File.h and
6759 java/io/FileDescriptor.h.
6761 * Makefile.in: Rebuilt.
6762 * Makefile.am (GJAVAH): New macro.
6763 (.class.h): New rule.
6764 (SUFFIXES): Added .h.
6765 (nat_headers): New macro.
6766 ($(nat_headers)): New target.
6767 (BUILT_SOURCES): Added nat_headers.
6769 * include/java-util.h: Removed.
6771 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6773 * include/java-io.h: Changed to avoid java-lang.h.
6774 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6776 * java/lang/natSystem.cc: Include java/lang/System.h, not
6778 * java/lang/natString.cc: Include java/lang/String.h, not
6780 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6782 * java/lang/natClass.cc: Include java/lang/Class.h, not
6784 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6786 * java/lang/natObject.cc: Include java/lang/Object.h, not
6788 * exception.cc: Don't include java-lang.h.
6789 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6790 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6791 * nogc.cc: Don't include java-lang.h.
6792 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6793 * prims.cc (processClass): Don't use `init_type'; just cast to
6795 Include java/lang/Class.h and jvm.h, not java-lang.h.
6796 (JvAllocObject): Wrote single-argument version.
6797 (PrimClass): Inherit from Class.
6798 (initPrimClass): Removed.
6799 * include/java-lang.h: Removed.
6800 * include/jvm.h: Declare struct _dispatchTable.
6801 * include/cni.h: Don't declare _Jv_MonitorEnter,
6802 _Jv_MonitorExit, struct _dispatchTable.
6803 * include/javaprims.h: Moved all typedefs here, from cni.h.
6804 * java/lang/Class.h: New file.
6805 * include/java-array.h: New file.
6806 * java/lang/Object.h: New file.
6808 * prims.cc (classFromSig): Now static.
6810 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6812 * include/cni.h: Don't mention soft_new.
6813 * include/java-lang.h (Object): Don't mention soft_new. Mention
6814 _Jv_NewPrimArray, not newPrimArray.
6815 * prims.cc (soft_new): Removed.
6816 (_Jv_NewArray): Renamed from soft_newarray.
6817 (soft_anewarray): Use JvNewObjectArray.
6818 (newArray): Likewise.
6819 (newRefArray): Removed.
6820 (_Jv_NewPrimArray): Renamed from newPrimArray.
6821 (equalUtf8Consts): Now static.
6822 (soft_instanceof): Removed.
6823 * java/lang/natDouble.cc (doubleToString): Now static.
6825 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6826 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6829 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6831 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6833 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6835 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6836 (JvPrivMutexUnlock): Likewise.
6837 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6838 Return value now jint.
6839 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6842 * Makefile.in: Rebuilt.
6843 * Makefile.am: Don't allow `jV' names.
6844 (maintainer-check): Depend on libjava.a.
6845 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6847 * Makefile.in: Rebuilt.
6848 * Makefile.am (NM): New macro.
6849 (maintainer-check): New target.
6851 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6853 * configure: Rebuilt.
6854 * configure.in: Use --enable-threads, not --enable-gc. Fix
6855 documentation for --enable-threads. Changed option to work like
6856 identical option in gcc/configure.
6858 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6860 * boehm.cc (mark_array): Use JvGetArrayLength.
6862 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6864 * exception.cc: New file (mostly written by Andrew MacLeod),
6865 exception handling support.
6866 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6867 Remove -fexceptions - it is now the default.
6869 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6870 (JvAllocObject): Renamed to _Jv_AllocObject.
6871 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6872 (loadClass): Renamed to _Jv_FindClass.
6873 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6874 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6875 * include/java-lang.h (JvGetArrayLength): New CNI function.
6876 * include/jvm.h (_Jv_FindClass): Added declaration.
6878 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6880 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6882 * java/lang/natClass.cc (getName): Add implementation.
6883 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6885 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6887 * Makefile.in: Rebuilt.
6888 * Makefile.am (.class.o): Added -fexceptions.
6890 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6892 * configure: Rebuilt.
6893 * configure.in: Don't check for __nanosleep.
6894 * posix-threads.cc (nanosleep): Never define.
6896 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6898 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6901 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6903 * java/lang/natThread.cc (enumerate): Uncommented.
6904 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6905 (interrupt): Call it.
6907 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6909 * configure: Rebuilt.
6910 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6912 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6914 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6915 * include/java-lang.h (Thread): Added `interrupted_' method.
6916 * java/lang/Thread.java (interrupted_): New method.
6917 * java/lang/natThread.cc (join): Possibly throw interrupted
6918 exception after join finishes.
6919 (interrupted_): New method.
6920 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6922 (JvPrivThreadJoin): New function.
6923 (really_start): Notify all threads waiting for this thread.
6924 (struct starter): Added `data' member.
6925 (JvPrivThreadStart): Set it.
6926 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6928 (JvPrivThreadJoin): No longer inline.
6929 (JvPrivThreadInterrupt): New function.
6931 * include/no-threads.h (JvPrivThreadSleep): Removed.
6932 * posix-threads.cc (JvPrivThreadSleep): Removed.
6934 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6936 * configure: Rebuilt.
6937 * configure.in (THREADOBJS): Initialize to no-threads.o in
6939 * posix-threads.cc (key): New global.
6940 (JvPrivInitThreads): New function.
6941 (really_start): Set thread-specific data to point to object.
6942 (JvPrivThreadStart): Added `daemon' argument.
6943 (JvPrivThreadSleep): Added `data' argument.
6944 * include/posix-threads.h (JvPrivInitThreads): Removed
6946 (JvPrivThreadCurrent): New function.
6947 * include/no-threads.h (JvPrivThreadInitData): Initialize
6948 JvPrivOnlyThread. Added `thread' argument.
6949 (JvPrivThreadCurrent): New function.
6950 (JvPrivThreadStart): Added `daemon' argument.
6951 * no-threads.cc: New file.
6952 * java/lang/natThread.cc (init_data): New function.
6954 (start): Set `alive' member.
6955 (stop_): Clear `alive' member.
6956 (destroy): Likewise.
6957 (currentThread): Implemented.
6958 (start): Pass `daemon' argument to JvPrivThreadStart.
6960 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6961 (Thread): Added `init_data' method.
6962 * java/lang/Thread.java (alive, data): New instance variables.
6963 (init_data): New private method.
6964 (isAlive): No longer native.
6966 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6968 * include/java-lang.h (JvRunMain): Declare.
6969 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6970 * prims.cc (JvRunMain): New function.
6971 (main_signature, main_name): New globals.
6973 * boehm.cc (mark_array): Use `elements' function and not
6974 operator[] on jarray.
6976 * posix-threads.cc: Include <config.h>. Define nanosleep if
6979 * configure: Rebuilt.
6980 * configure.in: Check for _nanosleep.
6982 * configure: Rebuilt.
6983 * configure.in: Check for pthread_mutexattr_settype.
6985 * include/cni.h (class JvSynchronize): New class.
6986 * java/lang/Thread.java (sleep): Throws InterruptedException.
6987 (join): Throws InterruptedException.
6988 (resume): Not native.
6989 (resume_): New method.
6990 (start): Now synchronized.
6991 (stop_): New method.
6992 (Thread): Synchronize when accessing threadNumber.
6994 * java/lang/natThread.cc (throwException): New macro.
6995 (sleep): Throw InterruptedException.
6998 * include/java-lang.h (Runtime): Added interrupted().
7000 * boehm.cc (call_finalizer): Correctly initialize jobj.
7001 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7003 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7006 * configure: Rebuilt.
7007 * configure.in: Added support for --disable-threads.
7008 * include/no-threads.h: New file.
7010 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7012 * Makefile.in: Rebuilt.
7013 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7014 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7015 (libjava_a_LIBADD): Added THREADOBJS.
7016 * configure: Rebuilt.
7017 * configure.in: Added --with-threads option.
7018 * posix-threads.cc: New file.
7019 * include/posix-threads.h: New file.
7020 * include/java-lang.h (Object): Added static member sync_mutex,
7021 member sync_info, method init_mutex.
7022 (struct JvSyncInfo): New struct.
7023 Include "java-threads.h".
7024 * prims.cc (soft_monitorenter): Wrote.
7025 (soft_monitorexit): Likewise.
7026 * java/lang/natObject.cc (init_mutex): New method.
7030 (sync_mutex): Define.
7031 Include "java-threads.h".
7033 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7035 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7036 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7038 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7040 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7041 Added extern "Java" in places to tell G++ Object is a "Java" type.
7042 Other minor renaming and fixes.
7043 * include/java-io.h (FileDescriptor): Add friend class declarations.
7044 G++ no longer allows non-Java types in method parameters and results
7045 of Java classes. Converted most offending methods to friends.
7046 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7047 * java/lang/natSystem.cc (setProperty): Make friend.
7048 * java/lang/natString.cc, include/java-lang.h (String): Rename
7049 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7050 * include/java-lang.h (JArray): Remove getData and eoprator[].
7051 Add elements friend function instead.
7052 * java/lang/natSystem.cc (arraycopy): Use elements function.
7053 * java/io/natFileDescriptor.cc (read, write): Likewise.
7054 * include/java-lang.h (Object): Remove unused make method.
7055 (System::setProperty(char*,char*)): Turn into friend function.
7056 (Class): Rename newObject by JvAllocObject.
7057 * prims.cc: Update to use JvAllocObject, and elements.
7059 * java/lang/natDouble.cc: Fix double -> jdouble.
7061 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7063 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7065 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7067 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7068 * include/java-lang.h (Runtime): finalize_on_exit and
7069 runFinalizersOnExit now static.
7070 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7072 (finalize_on_exit): Now static.
7074 * boehm.cc (mark_obj): Get class using getClass() method on
7076 (_dispatchTable): Removed.
7078 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7080 * java/io/natFileDescriptor.cc (open_read): Only call open if
7082 (open_write): Likewise.
7084 * Makefile.in: Rebuilt.
7085 * Makefile.am ($(nat_files)): Depend on config.h.
7087 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7089 * prims.cc (ObjectClass): Now a macro; updated for new class name
7091 (StringClass): Likewise.
7092 (ClassClass): Likewise.
7094 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7096 * java/io/natFileDescriptor.cc (available): Do nothing unless
7097 HAVE_SELECT defined.
7098 * java/util/natDate.cc (setTime): Conditional on
7100 (toString): Conditional on HAVE_TIME.
7101 * aclocal.m4, configure: Rebuilt.
7102 * acinclude.m4: New file.
7103 * configure.in: Don't actually call AM_EXEEXT. Call
7104 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7105 --with-target-subdir option. Check for select and open
7108 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7110 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7111 (call_finalizer): Likewise.
7112 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7113 * prims.cc (newObject): Pass actual method pointer to
7114 JvPrivRegisterFinalizer.
7115 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7116 (JvPrivRegisterFinalizer): Changed interface.
7118 * Makefile.in: Rebuilt.
7119 * Makefile.am (MOSTLYCLEANFILES): New macro.
7120 (CLEANFILES): Removed javao_files.
7122 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7124 * nogc.cc: New file.
7125 * Makefile.in: Rebuilt.
7126 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7127 (EXTRA_libjava_a_SOURCES): New macro.
7128 (libjava_a_SOURCES): Removed boehm.cc.
7129 (libjava_a_DEPENDENCIES): Added GCOBJS.
7130 (libjava_a_LIBADD): Likewise.
7131 * configure: Rebuilt.
7132 * configure.in: Added code for --enable-gc=TYPE.
7134 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7136 * boehm.cc (mark_array): Don't further dereference pointer from
7139 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7140 * Makefile.in: Rebuilt.
7141 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7142 one for boehm-gc build directory.
7144 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7146 * include/java-lang.h (finalize_on_exit): New instance variable in
7147 java::lang::Runtime.
7148 (runFinalizersOnExit): New method.
7149 * java/lang/Runtime.java (finalize_on_exit): New instance
7151 (runAllFinalizers_): New private method.
7152 (runFinalizersOnExit): New method.
7153 * boehm.cc (JvPrivRunFinalizers): New function.
7154 (JvPrivRunAllFinalizers): Likewise.
7155 (JvPrivRunGC): Likewise.
7156 * java/lang/natRuntime.cc: Include "jvm.h".
7157 (gc): Call JvPrivRunGC.
7158 (runFinalization): Call JvPrivRunFinalizers.
7159 (runFinalizersOnExit): New method.
7160 (exit_): Call JvPrivRunAllFinalizers if required.
7161 * include/jvm.h: Declare JvPrivRunFinalizers,
7162 JvPrivRunAllFinalizers, JvPrivRunGC.
7164 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7166 * boehm.cc (JvPrivRegisterFinalizer): New function.
7167 (call_finalizer): Likewise.
7168 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7169 * prims.cc (finalize_name): New global.
7170 (newObject): Just call other newObject.
7171 (newObject): Register finalizer if it exists.
7173 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7175 * prims.cc (gc_malloc): Removed.
7176 (makeUtf8Const): Use JvPrivAllocBytes.
7177 (lookupArray): Likewise.
7178 (newPrimArray): Likewise.
7179 (JvNewObjectArray): Use JvPrivAllocArray.
7180 (newObject): Use JvPrivAllocObj.
7181 (newObject): Likewise.
7182 Changed Method -> JvMethod everywhere.
7183 Changed Field -> JvField everywhere.
7184 * include/java-lang.h (Object): Changed type of `fields' to
7186 (jmethodID, jfieldID): New typedefs.
7187 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7189 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7191 (METHOD_NATIVECODE): Moved from java-lang.h.
7192 (class JvField): New class.
7193 (JvGetFirstInstanceField): New function.
7194 (JvFieldIsRef): Likewise.
7195 (JvGetObjectField): Likewise.
7196 (JvNumInstanceFields): Likewise.
7198 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7200 * boehm.cc: New file.
7201 * Makefile.in: Rebuilt.
7202 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7203 (INCLUDES): Added -I options to find boehm-gc files.
7205 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7207 * configure: Rebuilt.
7208 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7210 * Makefile.in: Rebuilt.
7211 * Makefile.am (nat_files): New macro.
7212 (libjava_a_DEPENDENCIES): Use it.
7213 (libjava_a_LIBADD): Likewise.
7214 ($(nat_files)): New static pattern rule.
7215 (class_files): Run separate find to find .class files.
7216 (javao_files): Compute based on class_files.
7217 (BUILT_SOURCES): New macro.
7219 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7221 * Makefile.am (java_files): New macro.
7222 (class_files): Likewise.
7223 (javao_files): Likewise.
7224 (libjava_a_DEPENDENCIES): Include $(javao_files).
7225 (libjava_a_LIBADD): Likewise.
7226 (classes.stamp): Depend on $(java_files); only recompile changed
7229 (CLEANFILES): Don't run find; use macros. Don't mention
7231 (.class.o): New target.
7232 (compiled.stamp): Removed.
7234 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7236 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7237 LineNumberReader}>java: Newly-implemented standard classes.
7239 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7241 * Makefile.in: Rebuilt.
7242 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7244 * Makefile.in: Rebuilt.
7245 * Makefile.am (hack): New macro.
7246 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7248 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7250 * include/config.h.in: New file.
7251 * include/config.h: Removed.
7252 * acconfig.h: New file.
7253 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7254 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7255 libjava_a_LIBADD): New macros.
7256 (INCLUDES): New macro.
7259 (SUFFIXES): Removed.
7261 (libjava.a): Removed.
7263 * configure: Rebuilt.
7264 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7265 Look for headers and functions we require. Create
7268 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7270 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7271 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7272 soft_lookupinterfacemethod): New functions.
7273 (PrimClass): Actually initialize the primitive classes.
7274 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7276 * include/java-util.h: Removed java::util definition.
7277 * include/cni.h: Moved java::util here and added Properties.
7278 Added more function prototypes.
7279 * include/java-lang.h: Added mroe methods and friend declarations.
7280 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7281 * include/jvm.h (strLengthUtf8): Add declaration.
7283 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7285 * java/lang/{Byte,Short,Void}.java: New classes.
7286 * java/lang/Character.java (isJavaIdentifierStart,
7287 JavaIdentifierPart): New static methods.
7288 * java/lang/Number.java (byteValue, shortValue): New methods.
7290 * java/lang/String.java (intern, hashCode): Make native.
7291 * java/lang/natString.cc: New file. Handle the string pool.
7292 * Makefile.am: Build natString.o. Use CXXFLAGS.
7294 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7295 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7296 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7297 * java/lang/System.java (setProperty): New private method.
7298 (initProperties): Take argument, and make native.
7299 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7300 (currentTimeMillis): Make more robust.
7302 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7303 * java/io/UnsupportedEncodingException.java: New exception class.
7305 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7306 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7308 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7310 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7311 * prims.cc: Added bunch of stuff.
7312 * include/cni.h: Added various definitions.
7313 * include/java-lang.h: Added Method, various friends, some macros.
7315 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7316 * java/lang/System.java (arraycopy): Make native.
7318 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7320 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7321 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7322 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7323 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7325 * java/lang/Runtime.java: Declare methods as native instead of
7327 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7328 * java/lang/System.java: Comment out some stuff, for now.
7329 * java/lang/Thread.java: Re-write. Use native methods.
7330 * java/lang/NativeLang.java: Remove most of it.
7332 * java/util/natDate.cc: Native (C++) methods for Date.
7333 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7334 * java/util/Date.java: Complete re-write.
7336 * java/io/io-defs.h: New header file.
7337 * java/io/FileDescriptor.java: Add a bunch of private methods,
7338 mostly moved from NativeIO.java and natNativeIO.cc.
7339 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7340 * java/io/File.java: Use new code.
7341 * java/io/{FileInputStream.java.FileOutputStream.java,
7342 RandomAccessFile.java}: Use new private FileDescriptor methods.
7343 * java/io/NativeIO.java: Removed, no longer used.
7345 * java/io/StreamTokenizer.java (numericChars): Make char array.
7347 * include/*.h: Various header files used by the C++ native code.
7349 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7350 New autoconf+automake-based setup.
7351 * prims.cc: New file for Java "primitives".