1 2000-01-17 Tom Tromey <tromey@cygnus.com>
3 * java/lang/Runtime.java (loadLibraryInternal): Declare.
4 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5 (_Jv_FindClassInCache): Likewise.
6 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7 (findSystemClass): Try to load class from compiled module.
9 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
10 (loadLibrary): Likewise.
11 (lt_preloaded_symbols): Define.
12 (loadLibraryInternal): New method.
13 * include/config.h.in: Rebuilt.
14 * acconfig.h (USE_LTDL): Added.
15 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
16 (INCLUDES): Added $(INCLTDL).b
17 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
18 (libgcj_la_LIBADD): Likewise.
19 * aclocal.m4, configure: Rebuilt.
20 * configure.in: Added libltdl support.
22 2000-01-15 Tom Tromey <tromey@cygnus.com>
24 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
26 2000-01-14 Andrew Haley <aph@cygnus.com>
28 * java/lang/natThrowable.cc: New file.
30 * java/lang/Throwable.java (fillInStackTrace): Make native.
31 (printStackTrace): Call native method to do this.
32 (Throwable): Call fillInStackTrace.
33 (stackTrace): New variable.
35 * include/jvm.h: Add _Jv_ThisExecutable functions.
37 * prims.cc: (_Jv_execName): New variable.
38 (catch_segv): Call fillInStackTrace.
40 (_Jv_ThisExecutable): New functions.
41 (JvRunMain): Set the name of this executable.
43 * Makefile.am: Add java/lang/natThrowable.cc.
45 * Makefile.in: Rebuilt.
47 * acconfig.h: Add HAVE_PROC_SELF_EXE.
49 * configure.in: Force link with __frame_state_for in
50 FORCELIBGCCSPEC. Add new checks for backtrace.
51 * include/config.h.in: Rebuilt.
53 * name-finder.cc: New file.
54 * include/name-finder.h: New file.
56 2000-01-16 Anthony Green <green@cygnus.com>
58 * java/lang/StringBuffer.java (StringBuffer): Don't special case
61 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
63 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
65 2000-01-13 Tom Tromey <tromey@cygnus.com>
67 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
68 not system loader, as initiating loader.
70 2000-01-11 Tom Tromey <tromey@cygnus.com>
72 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
73 HP/UX. From David Scott Urban.
75 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
77 * java/lang/natMath.cc (pow): Cast args to `double', not
80 (IEEEremainder): Likewise.
81 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
82 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
84 2000-01-09 Anthony Green <green@cygnus.com>
86 * java/lang/natString.cc (init): Test for overflow condition
87 during out of bounds check.
88 (getChars): Throw StringIndexOutOfBoundsException, not
89 ArrayIndexOutOfBoundsException.
91 (regionMatches): Obey case option during string comparison.
93 * configure.host (ligcj_interpreter): New variable. Enable
94 interpreter by default on IA-32.
95 * configure.in: Examine libgcj_interpreter.
98 2000-01-07 Tom Tromey <tromey@cygnus.com>
100 * mauve-libgcj: Don't disable ClassTest.
102 * java/lang/natClass.cc (getClasses): Wrote.
104 2000-01-06 Tom Tromey <tromey@cygnus.com>
106 * java/lang/natClass.cc (_getConstructors): Correctly check
107 whether method name is the init name.
108 (getMethod): Look at accflags on method in `klass', not `this'.
110 2000-01-05 Tom Tromey <tromey@cygnus.com>
112 * java/lang/natClass.cc (getMethod): Compute offset relative to
113 `klass's methods table, not `this's table.
115 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
116 In unwrapping/widening case, check whether `k' is null, not
117 whether it is primitive. Initialize `num' from `argelts', not
118 `paramelts'. Correct create and pass arguments to ffi_call.
119 Don't let presence of `this' argument affect index used to look in
121 (COPY): Set appropriate element in `values' vector.
123 * java/lang/natClass.cc: Include <gcj/method.h>.
125 * java/lang/Class.h (_getMethods): Correctly declare as private,
128 * java/lang/Class.h (_getMethods): Declare.
129 * java/lang/Class.java (_getMethods): Declare.
130 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
131 (getDeclaredClasses): Always return empty array.
132 (_getMethods): New method.
134 (getDeclaredMethod): Return `rmethod'.
135 (finit_name): New global.
136 (getDeclaredMethods): Check for finit_name.
137 (_getMethods): Likewise.
138 (getMethod): Only return public methods.
140 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
141 jboolean and select correct ffi type on that basis.
142 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
143 Constructor call always has `void' return type.
145 2000-01-04 Tom Tromey <tromey@cygnus.com>
147 * java/lang/Class.h (getSignature): Updated.
148 * java/lang/Class.java (getSignature): Updated.
149 * java/lang/natClass.cc (getSignature): Added `is_constructor'
151 (getConstructor): Ensure constructor is public.
152 (_getConstructors): Check for public-ness of constructor when
153 `declared' is false, not when it is true.
155 2000-01-04 Warren Levy <warrenl@cygnus.com>
157 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
159 (receive): Set the sender's address in the DatagramPacket.
161 2000-01-04 Tom Tromey <tromey@cygnus.com>
163 * java/lang/reflect/natConstructor.cc (newInstance): Pass
164 declaring class as return_type argument to
165 _Jv_CallNonvirtualMethodA.
166 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
167 constructor case, create object and use it as `this' argument.
168 * java/lang/Class.h (_getConstructors): Declare.
169 (_getFields): Declare.
170 * java/lang/Class.java (getConstructors): Wrote.
171 (_getConstructors): New native method.
172 (getDeclaredConstructors): Wrote.
173 (_getFields): Declare new native method.
174 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
176 (getMethod): Work correctly when class is primitive.
177 (getDeclaredMethods): Likewise. Compute offset using `method',
179 (getDeclaredMethod): Likewise.
180 (getConstructor): Wrote.
181 (ConstructorClass): New define.
182 (getDeclaredConstructor): Wrote.
183 (_getConstructors): New method.
184 (_getFields): New method.
187 * Makefile.in: Rebuilt.
188 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
190 * prims.cc: Remove `#pragma implementation'.
191 * gcj/array.h: Remove `#pragma interface'.
193 * prims.cc (_Jv_equaln): New function.
194 * java/lang/Class.java (getSignature): Declare.
195 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
196 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
198 (getSignature): New method.
199 (getDeclaredMethod): Wrote.
201 Include StringBuffer.h.
202 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
203 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
205 (getSignature): Declare.
206 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
207 (_Jv_equaln): Declare.
208 (_Jv_CallNonvirtualMethodA): Declare.
209 * Makefile.in: Rebuilt.
210 * Makefile.am (nat_source_files): Added natConstructor.cc.
211 (java/lang/reflect/Constructor.h): New target.
212 * java/lang/reflect/natConstructor.cc: New file.
213 * java/lang/reflect/Constructor.java (newInstance): Now native.
214 (declaringClass): Renamed from decl_class.
215 (offset): Renamed from index.
216 (getType): New native method.
217 (getModifiers): Now native.
218 (getParameterTypes): Call getType if required.
219 (hashCode): Include hash code from declaring class.
220 (modifiers): Removed.
221 (toString): Call getType if required.
222 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
223 * java/lang/reflect/natMethod.cc (hack_call): New method.
224 Removed `#if 0' around FFI code.
225 Include <gnu/gcj/RawData.h>.
226 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
227 IllegalArgumentException when argument object and class disagree.
228 (_Jv_GetTypesFromSignature): New function.
230 (ObjectClass): New define.
231 (_Jv_CallNonvirtualMethodA): New function.
232 * java/lang/reflect/Method.java (hack_trampoline): New method.
233 (hack_call): New native method.
235 1999-12-21 Per Bothner <per@bothner.com>
237 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
238 offset in new Method.
240 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
242 * java/lang/natObject.cc (notify): Throw message with
243 IllegalMonitorStateException.
246 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
247 (isInterrupted_): New function, which does clear interrupt_flag.
248 (interrupt): Use `isInterrupted_'.
249 * java/lang/natThread.cc (interrupt): Add comment.
250 (join): Set `prev' in joiner loop.
251 Change various calls to `isInterrupted' to use `isInterrupted_'.
252 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
253 on linux. Set result to 0 on an interrupt. Test interrupted status
254 of java Thread object directly.
255 FLAG_INTERRUPTED: removed.
256 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
257 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
258 (_Jv_InitThreads): Don't block SIGINT.
259 (_Jv_ThreadWait): Don't configure SIGINT handler.
261 1999-12-21 Tom Tromey <tromey@cygnus.com>
263 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
265 1999-12-20 Tom Tromey <tromey@cygnus.com>
267 * java/lang/reflect/Modifier.java (STRICT): New constant.
268 (isStrict): New method.
269 (toString): Added `strict'.
271 1999-12-23 Anthony Green <green@cygnus.com>
273 * configure: Rebuilt.
274 * configure.in (LIBDATASTARTSPEC): Force data_start in with
277 1999-12-19 Anthony Green <green@cygnus.com>
279 * libgcjdata.c: New file.
280 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
281 * configure: Rebuilt.
282 * configure.in (LIBDATASTARTSPEC): Force data with a known name
284 * Makefile.in: Rebuilt.
285 * Makefile.am: Build libgcjdata.a.
287 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
288 * configure: Rebuilt.
289 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
292 1999-12-17 Tom Tromey <tromey@cygnus.com>
294 * java/lang/reflect/Method.java (toString): Call getType if
295 required. Partial fix for PR libgcj/111. From Per Bothner.
297 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
299 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
301 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
302 null String constructor parameter.
303 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
304 for exception messages.
305 BooleanClass: declare.
306 (setOption): Use BooleanClass instead of Class.forName() for
308 (bind): Cast 4th parameter of setsockopt to `char *' for
309 compatibility with older Solaris headers.
310 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
311 sprintf calls for exception messages.
312 BooleanClass, IntegerClass: declare.
313 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
316 1999-12-15 Tom Tromey <tromey@cygnus.com>
318 * java/lang/natSystem.cc (init_properties): Don't set user.name or
319 user.home if NO_GETUID defined. Only set user.dir if getcwd
322 * include/config.h.in: Rebuilt.
323 * acconfig.h (NO_GETUID): New define.
324 * configure.in: Rebuilt.
325 * configure.in: Define NO_GETUID in cross case. Check for getcwd
328 1999-12-08 Tom Tromey <tromey@cygnus.com>
330 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
331 where no recursive mutexes exist. Fixes PR libgcj/117.
333 1999-12-05 Anthony Green <green@cygnus.com>
335 * include/jvm.h: Declare many functions with
336 __attribute__((__malloc__)).
337 * gcj/javaprims.h: Ditto.
339 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
341 * THANKS: Giving credit where credit is due.
343 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
345 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
347 * java/lang/natString.cc (equalsIgnoreCase): return false if
348 anotherString is null.
349 * java/lang/Boolean.java (valueOf): return FALSE if argument is
352 1999-11-30 Tom Tromey <tromey@cygnus.com>
354 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
355 mutex to initialize. Initialize `count' if required.
358 1999-11-27 Per Bothner <per@bothner.com>
360 * exception.cc: Remove prototype declarations for malloc and free.
361 These clash with recent versions of glibc, which specifies `throws ()'
362 when __cplusplus is defined. Instead, #include <stdlib.h>.
364 1999-11-24 Tom Tromey <tromey@cygnus.com>
366 * prims.cc (_Jv_NewObjectArray): Use
367 _Jv_GetArrayElementFromElementType.
368 (_Jv_NewPrimArray): Likewise.
369 * java/lang/natObject.cc (clone): Use
370 _Jv_GetArrayElementFromElementType instead of sizeof.
371 * java/lang/natSystem.cc (arraycopy): Use
372 _Jv_GetArrayElementFromElementType.
373 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
376 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
378 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
379 Exception messages. PR java.net/57.
380 (bind): set SO_REUSEADDR before bind.
381 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
382 overruns. PR java.net/57.
384 1999-11-19 Tom Tromey <tromey@cygnus.com>
386 * Makefile.am (DIVIDESPEC): Removed.
387 (EXCEPTIONSPEC): Removed.
389 1999-11-19 Andrew Haley <aph@cygnus.com>
391 * Makefile.am (JCFLAGS): Add -L$(here)
393 * Makefile.in: Rebuild.
395 1999-11-18 Tom Tromey <tromey@cygnus.com>
397 * java/lang/natDouble.cc: Include <config.h>.
399 * include/config.h.in: Rebuilt.
400 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
401 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
403 * configure: Rebuilt.
404 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
405 requested by configure.host. Don't put `-D' option into
406 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
408 * configure: Rebuilt.
409 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
412 1999-11-18 Andrew Haley <aph@cygnus.com>
414 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
415 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
417 * Makefile.in: Rebuild
418 * acconfig.h: remove SJLJ_EXCEPTIONS
419 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
420 Do not AC_DEFINE SJLJ_EXCEPTIONS.
421 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
422 * gcj/Makefile.in, include/Makefile.in: rebuild.
423 * include/config.h.in: remove SJLJ_EXCEPTIONS.
425 1999-11-18 Andrew Haley <aph@cygnus.com>
427 * gij.cc (main): Rename label to prevent conflict.
429 * exception.cc (_Jv_type_matcher): Don't check the table if we're
430 using setjmp/longjmp exceptions: there isn't one.
432 1999-11-17 Andrew Haley <aph@cygnus.com>
434 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
435 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
436 (__sjthrow): Add declaration.
437 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
441 * Makefile.in: Rebuild
442 * acconfig.h: Add SJLJ_EXCEPTIONS
443 * configure.in: Add SJLJ_EXCEPTIONS
444 * configure: Rebuild.
445 * gcj/Makefile.in: Rebuild.
446 * gcj/cni.h: Add support for sjlj-exceptions.
447 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
448 * include/Makefile.in: Rebuild.
449 * include/default-signal.h: Add support for sjlj-exceptions.
451 1999-11-18 Tom Tromey <tromey@cygnus.com>
453 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
455 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
457 (method_cache): Made larger.
459 1999-11-11 Tom Tromey <tromey@cygnus.com>
461 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
462 initializing mutex. Initialize `count' when required.
464 1999-11-07 Anthony Green <green@trip.cygnus.com>
466 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
469 1999-11-05 Tom Tromey <tromey@cygnus.com>
471 * java/lang/natThread.cc (destroy): Removed incorrect comment.
473 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
475 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
476 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
479 1999-11-05 Tom Tromey <tromey@cygnus.com>
481 * java/lang/natThread.cc (stop): Removed argument name.
483 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
484 `private'; now has default access.
485 * Makefile.in: Rebuilt.
486 * Makefile.am (java/lang/ThreadGroup.h): Removed.
488 1999-11-04 Tom Tromey <tromey@cygnus.com>
490 * java/lang/natClass.cc (method_cache_count): Removed.
491 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
492 (_Jv_AddMethodToCache): Don't loop.
494 * configure.in: Removed `qt' threads case.
495 * include/quick-threads.h: Removed.
496 * quick-threads.cc: Removed.
498 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
499 (_Jv_ThreadDestroy): Likewise.
500 * include/no-threads.h (_Jv_ThreadCancel): Removed.
501 (_Jv_ThreadDestroy): Likewise.
502 * include/posix-threads.h (struct _Jv_Thread_t): Removed
504 (_Jv_ThreadCancel): Removed decl.
505 (_Jv_ThreadDestroy): Removed.
506 * posix-threads.cc (_Jv_ThreadCancel): Removed.
507 (throw_cleanup): Removed.
508 (really_start): Don't push or pop cleanup.
509 (_Jv_ThreadInitData): Don't initialize `exception' field.
510 * java/lang/Thread.java (stop): Officially unimplemented.
511 * java/lang/natThread.cc (stop): Officially unimplemented.
513 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
515 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
518 1999-11-02 Tom Tromey <tromey@cygnus.com>
520 * boehm.cc: Don't include boehm-config.h.
522 1999-11-01 Tom Tromey <tromey@cygnus.com>
524 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
525 (sum_blocks): Removed.
526 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
528 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
530 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
532 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
533 * java/io/InputStreamReader (InputStreamReader): ditto.
535 1999-10-22 Tom Tromey <tromey@cygnus.com>
537 * Makefile.in: Rebuilt.
538 * Makefile.am (java/lang/ClassLoader.h): New target.
539 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
542 * include/java-props.h (_Jv_Compiler_Properties): Changed
544 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
545 * include/jvm.h (_Jv_GCSetInitialHeapSize,
546 _Jv_GCSetMaximumHeapSize): Declare.
547 (JvRunMain, _Jv_RunMain): Declare.
548 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
549 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
550 (_Jv_GCSetMaximumHeapSize): Likewise.
551 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
552 (_Jv_GCSetMaximumHeapSize): Likewise.
553 * prims.cc (parse_heap_size): New function.
554 (_Jv_SetInitialHeapSize): Likewise.
555 (_Jv_SetMaximumHeapSize): Likewise.
556 (_Jv_Compiler_Properties): New global.
557 * gij.cc (help): New function.
559 (heap_size): Likewise.
560 (heap_max_size): Likewise.
561 (main): Parse arguments. Set _Jv_Compiler_Properties.
562 Include <config.h>, <java-props.h>.
563 (_Jv_Compiler_Properties): Removed.
565 1999-10-18 Tom Tromey <tromey@cygnus.com>
567 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
569 (redirect): New static field.
570 * java/lang/ClassLoader.java (getSystemClassLoader): Now
572 (getVMClassLoader0): Removed.
573 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
575 (getSystemClassLoader): Implemented.
577 1999-10-16 Anthony Green <green@cygnus.com>
579 * java/lang/ClassLoader.java (getSystemResource): Use
580 getSystemClassLoader instead of ClassLoader.system.
581 (getSystemResourceAsStream): Ditto.
583 * java/lang/natClassLoader.cc (redirect): Make static and
584 remove #ifdef INTERPRETER so it is always defined.
585 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
586 returns a VMClassLoader.
588 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
589 PropertyResourceBundle if a properties file is found before a
590 ResourceBundle class.
592 1999-10-15 Tom Tromey <tromey@cygnus.com>
594 * gij.cc (main): Formatting fixes.
595 (_Jv_Compiler_Properties): Define.
596 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
598 (init_properties): Set properites from _Jv_Compiler_Properties.
599 * include/java-props.h (_Jv_Compiler_Properties,
600 _Jv_Environment_Properties): Declare.
602 * include/java-props.h: Added copyright.
604 1999-10-13 Anthony Green <green@cygnus.com>
606 * libtool-version: Catch up by incrementing current.
608 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
609 * configure, include/config.h.in: Rebuilt.
610 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
611 * configure.in: Added --disable-getenv-properties and new define
612 `DISABLE_GETENV_PROPERTIES'.
614 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
615 (next_property_key): New function.
616 (next_property_value): New function.
617 (process_gcj_properties): New function.
618 (JvRunMain): Call process_gcj_properties.
621 * java/lang/natSystem.cc (init_properties): Set properties defined
624 * include/java-props.h: New file.
626 * java/lang/natSystem.cc (init_properties): Add new properties to
627 conform with Java Product Versioning Specification.
629 1999-10-12 Tom Tromey <tromey@cygnus.com>
631 * configure: Rebuilt.
632 * configure.in: Fixed test for --disable-java-net.
634 1999-10-06 Tom Tromey <tromey@cygnus.com>
636 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
637 when building Canadian cross.
638 (NATIVE): Don't define when cross-compiling.
640 1999-10-04 Tom Tromey <tromey@cygnus.com>
642 * java/net/natPlainSocketImpl.cc: Don't include headers if
643 java.net is disabled.
645 * Makefile.in: Rebuilt.
646 * Makefile.am (ZINCS): Removed. This is defined in configure.in
647 when needed, and must be left empty when not needed.
649 1999-10-01 Anthony Green <green@cygnus.com>
651 * THANKS: Refreshed from htdocs version.
653 1999-10-01 Steve Chamberlain <sac@pobox.com>
655 * Makefile.in: Rebuilt.
656 * Makefile.am (ZINCS): Define
658 * configure: Rebuilt.
659 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
661 * java/lang/ieeefp.h: Add definitions for picoJava.
663 1999-10-01 Tom Tromey <tromey@cygnus.com>
665 * configure: Rebuilt.
666 * configure.in: Set classpath when invoking gcj. Use changequote
667 around sed invocation.
669 * java/net/natPlainSocketImpl.cc: Stub native functions if
670 DISABLE_JAVA_NET is defined.
671 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
672 typo in exception string.
673 (getTimeToLive): Likewise.
674 Stub native functions if DISABLE_JAVA_NET is defined.
675 * java/net/natInetAddress.cc: Stub native functions if
676 DISABLE_JAVA_NET is defined.
677 * configure.host: Disable java.net for mips-tx39.
678 * configure, include/config.h.in: Rebuilt.
679 * acconfig.h (DISABLE_JAVA_NET): Undefine.
680 * configure.in: Added --disable-java-net and new define
683 1999-09-30 Tom Tromey <tromey@cygnus.com>
685 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
687 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
691 1999-09-28 Tom Tromey <tromey@cygnus.com>
693 * configure: Rebuilt.
694 * configure.in (PROCESS): In POSIX case, only set if not already
696 * configure.host (PROCESS): Set in mips-tx39 case.
698 * aclocal.m4, configure: Rebuilt.
699 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
700 appropriate AC_PROG_ symbol.
702 1999-09-24 Tom Tromey <tromey@cygnus.com>
704 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
706 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
708 Fix for PR java.util/47:
709 * configure, include/config.h: Rebuilt.
710 * configure.in: Don't look for ctime or ctime_r.
711 * Makefile.in: Rebuilt.
712 * Makefile.am (nat_source_files): Don't mention natDate.cc.
713 * java/util/natDate.cc: Removed.
714 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
716 (getAvailableIDs): Rewrote.
717 (getTimeZone): Rewrote.
718 * java/util/Date.java (toGMTString): New method.
719 (toLocaleString): New method.
722 1999-09-23 Tom Tromey <tromey@cygnus.com>
724 * configure: Rebuilt.
725 * configure.in: Print message when checking to see if gcj can
726 handle -fuse-divide-subroutine.
728 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
730 * java/lang/FirstThread.java (run0): Renamed to `run'.
733 * prims.cc (main_init): New function.
734 (JvRunMain): Call it.
735 (_Jv_RunMain): Likewise.
737 (main_init): Ignore SIGPIPE. Fixes PR 51.
739 1999-09-22 Tom Tromey <tromey@cygnus.com>
741 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
743 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
745 * java/text/MessageFormat.java (MessageFormat(String)): Set the
747 * java/text/NumberFormat.java: Check that object is a Number. If
748 not, throw IllegialArgumentException.
750 1999-09-21 Tom Tromey <tromey@cygnus.com>
752 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
753 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
755 * include/posix-threads.h (_Jv_MutexDestroy): Use
757 (_Jv_MutexLock): Likewise.
758 (_Jv_MutexUnlock): Likewise.
760 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
761 previous patch; it too was incorrect.
762 * java/io/PrintStream.java (PrintStream): Likewise.
764 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
765 refer to `this' before calling superclass constructor.
766 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
767 before calling superclass constructor.
769 1999-09-20 Tom Tromey <tromey@cygnus.com>
771 * configure: Rebuilt.
772 * configure.in: Send output of `-fuse-divide-subroutine' test
773 compilation to /dev/null.
775 1999-09-14 Tom Tromey <tromey@cygnus.com>
777 * include/java-insns.h: Turned constants into an enum. Added
778 multiple-inclusion protection.
780 1999-09-10 Tom Tromey <tromey@cygnus.com>
782 * configure: Rebuilt.
783 * configure.in: Build include/Makefile.
784 * Makefile.in: Rebuilt.
785 * Makefile.am (SUBDIRS): Added gcj and include.
786 (install-data-local): New target.
787 (extra_headers): New macro.
788 * include/Makefile.in: New file.
789 * include/Makefile.am: New file.
791 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
792 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
794 * boehm.cc: Don't include java-threads.h or gcj/field.h.
795 * resolve.cc: Include config.h.
796 * defineclass.cc: Include config.h.
797 * include/java-interp.h: Don't include config.h.
798 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
801 * gcj/javaprims.h: Regenerated namespace decls.
802 * classes.pl (scan): Don't put `;' after closing brace.
804 * Makefile.in: Rebuilt.
805 * Makefile.am (INCLUDES): Added -I for top_srcdir.
806 * configure.in: Create gcj/Makefile.
807 * gcj/Makefile.in: New file.
808 * gcj/Makefile.am: New file.
809 * java/lang/Object.h: Don't include any other headers.
810 * gcj/array.h: Renamed from include/java-array.h.
811 * gcj/field.h: Renamed from include/java-field.h.
812 * gcj/method.h: Renamed from include/java-method.h.
813 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
814 Updated all files to reflect new include structure.
816 1999-09-09 Tom Tromey <tromey@cygnus.com>
818 * configure: Rebuilt.
819 * configure.in: Fixed typo; variable is THREADSPEC and not
822 1999-09-08 Tom Tromey <tromey@cygnus.com>
824 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
825 previous change and implemented a correct test in the __m_count
828 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
831 1999-09-07 Tom Tromey <tromey@cygnus.com>
833 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
834 code and don't set errno.
836 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
837 not `r'. Changed `done_sleeping' to a `bool'.
839 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
841 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
842 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
843 by another thread, rather than by the GC.
844 (_Jv_CondWait): Prevent premature thread wakeup by GC.
845 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
846 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
849 1999-09-03 Tom Tromey <tromey@cygnus.com>
851 * configure: Rebuilt.
852 * configure.in: Check for fstat function.
853 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
856 1999-09-02 Tom Tromey <tromey@cygnus.com>
858 * include/java-array.h (jobjectArrayjchar): Removed unused
861 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
862 _Jv_PrepareCompiledClass while holding class mutex.
864 1999-09-01 Tom Tromey <tromey@cygnus.com>
866 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
867 (_Jv_PthreadGetMutex): Use it.
868 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
869 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
870 (_Jv_MutexLock): Likewise.
871 (_Jv_MutexUnlock): Likewise.
872 * include/config.h.in: Rebuilt.
873 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
874 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
875 * configure: Rebuilt.
876 * libgcj.spec.in: Don't mention INTERPSPEC.
877 * configure.in (INTERPSPEC): Removed.
878 Only run pthreads-related checks when using POSIX threads. Check
879 for m_count and __m_count in mutex structure.
881 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
883 * java/lang/natClass.cc: Fixed notification of threads
884 when class initialization is complete.
886 1999-09-01 Tom Tromey <tromey@cygnus.com>
888 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
889 * resolve.cc: Removed constants defined by
890 java.lang.reflect.Modifier.
891 Include <java/lang/reflect/Modifier.h>.
892 (_Jv_ResolvePoolEntry): Use values from Modifier.
893 (_Jv_DetermineVTableIndex): Likewise.
894 (_Jv_PrepareClass): Likewise.
896 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
897 java.lang.reflect.Modifier.
898 Include <java/lang/reflect/Modifier.h>.
899 (checkExtends): Use values from Modifier.
900 (checkImplements): Likewise.
901 (handleField): Likewise.
902 (handleConstantValueAttribute): Likewise.
903 (handleFieldsEnd): Likewise.
904 (handleMethod ): Likewise.
905 (handleMethodsEnd): Likewise.
906 (handleClassBegin): Likewise.
907 * interpret.cc: Removed constants defined by
908 java.lang.reflect.Modifier.
909 (continue1): Use values from Modifier.
910 * java/lang/natClassLoader.cc: Removed constants defined by
911 java.lang.reflect.Modifier.
913 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
914 JV_STATE_NOTHING, not `0'.
915 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
917 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
918 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
920 (_Jv_PthreadGetMutex): New function.
921 (_Jv_PthreadCheckMonitor): Use it.
922 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
923 (_Jv_MutexLock): Update `count'.
924 (_Jv_MutexUnlock): Likewise.
925 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
928 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
930 * Makefile.am (.java.lo): Add rule.
932 * Makefile.in: Rebuilt.
934 1999-09-01 Tom Tromey <tromey@cygnus.com>
936 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
937 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
939 (_Jv_CondNotify): Use it.
940 (_Jv_CondNotifyAll): Likewise.
942 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
944 1999-08-31 Tom Tromey <tromey@cygnus.com>
946 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
949 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
951 * posix-threads.cc: Include <errno.h>.
953 1999-08-23 Tom Tromey <tromey@cygnus.com>
955 * boehm.cc: Undefine TRUE and FALSE.
957 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
959 1999-08-21 Tom Tromey <tromey@cygnus.com>
961 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
964 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
966 * configure.in: Check for in_addr_t in netinet/in.h too. Check
968 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
969 (HAVE_STRUCT_IP_MREQ): Added.
970 * configure, include/config.h.in: Rebuilt.
971 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
973 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
974 Disable if ip_mreq is not available.
976 * configure.in: Check types ssize_t and in_addr_t.
977 * acconfig.h: Undefine them.
978 * configure, include/config.h.in: Rebuilt.
980 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
981 function that detects the signature of getpwuid_r.
982 (init_properties): Use it.
983 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
986 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
988 * interpret.cc (continue1): Implement explicit dispatch table.
989 insn_target: Explicit interpreter switch table.
990 SAVE_PC: New macro, moves pc saving code into instructions that
992 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
993 PC_REGISTER_ASM: New macro.
994 INLINE_SWITCH: New macro. Constrols dispatching strategy.
995 opcode: Remove local variable.
996 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
997 (POKEI): Use _Jv_word.
998 (iinc): Use _Jv_word.
999 (dupx): Change reference argument (sp) to pointer.
1002 * interpret.cc: Remove instruction timing instrumentation.
1004 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1005 comment. Don't use _Jv_ClassNameSamePackage.
1007 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1008 URLPathEntry, CacheEntry}: Removed.
1010 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1012 (.java.lo): Rule removed.
1014 * Makefile.in: Rebuilt.
1016 1999-08-19 Tom Tromey <tromey@cygnus.com>
1018 * java/lang/natThread.cc (class locker): New class.
1019 (join): Use a locker around _Jv_CondWait.
1022 1999-08-18 Tom Tromey <tromey@cygnus.com>
1024 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1025 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1027 1999-08-18 Tom Tromey <tromey@cygnus.com>
1029 * include/javaprims.h ("Java"): Regenerated namespace decls.
1031 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1033 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1034 from _Jv_InternClassStrings.
1036 * prims.cc (_Jv_RunMain): New function.
1037 (JvRunMain): Remove gij-support.
1039 * gij.cc (main): Use _Jv_RunMain.
1041 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1043 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1044 argument in temp variable.
1045 (continue1): For all op_x2y insns, use temp variable for
1046 intermediate value. Also remove some comments.
1048 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1049 (forName): Don't call _Jv_InitClass.
1051 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1053 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1055 * java/util/jar/JarInputStream.java: New file.
1057 * java/util/jar/JarEntry.java: New file.
1059 * java/util/jar/JarFile.java: New file.
1061 * java/net/URLClassLoader.java: New file.
1063 * java/net/JarURLConnection.java: New file.
1065 * gnu/gcj/protocol/jar/Handler.java: New file.
1067 * gnu/gcj/protocol/jar/Connection.java: New file.
1069 * java/security/SecureClassLoader.java: New file.
1071 * java/lang/ClassLoader.java (parent): New variable.
1072 (ClassLoader (ClassLoader)): new constructor.
1073 (findClass): New method.
1074 (loadClass): Add default 1.2 implementation.
1075 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1076 (readfully): Removed.
1078 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1079 (findSystemClass): New method.
1080 (VMClassLoader): Constructor rewritten.
1082 All other methods removed.
1084 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1085 to gnu::gcj::runtime::VMClassLoader.
1086 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1088 (VMClassLoader::findSystemClass): renamed from findBootClass.
1090 * Makefile.am: Add new files.
1091 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1093 * Makefile.in: Rebuilt.
1095 1999-08-17 Tom Tromey <tromey@cygnus.com>
1097 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1099 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1102 1999-08-16 Tom Tromey <tromey@cygnus.com>
1104 * configure: Rebuilt.
1105 * configure.in: Set DIVIDESPEC to empty string if compiler does
1106 not support -fuse-divide-subroutine.
1108 1999-08-14 Per Bothner <per@bothner.com>
1110 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1111 * java/lang/natClass.cc (initializeClass): Likewise.
1112 * java/lang/ClassLoader.java (resolveClass0): New static method.
1113 (resolveClass): Call resolveClass0.
1114 (findSystemClass): No longer static.
1116 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1118 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1120 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1122 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1125 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1127 * Makefile: Rebuilt.
1128 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1131 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1134 * configure: Rebuilt.
1135 * configure.in: Properly align --help output, fix capitalization
1137 * acinclude.m4: Likewise.
1139 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1141 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1143 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1144 (_Jv_callInterpretedMethod): Unused. Remove.
1145 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1147 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1148 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1149 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1150 * interpret.cc: use _Jv_word.
1151 * defineclass.cc: use_Jv_word.
1152 * resolve.cc: Use _Jv_word.
1153 (_Jv_ResolvePoolEntry): Return _Jv_word.
1154 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1155 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1157 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1160 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1162 * configure: Rebuilt.
1163 * configure.in (sched_yield): Try librt first, then libposix4.
1164 Add -lrt, -lposix4 to THREADSPEC.
1166 1999-08-08 Anthony Green <green@cygnus.com>
1168 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1170 1999-08-08 Anthony Green <green@cygnus.com>
1172 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1175 1999-08-08 Anthony Green <green@cygnus.com>
1179 * include/config.h.in: Rebuilt.
1180 * acconfig.h: Add INTERPRETER.
1182 * Makefile.in: Rebuilt.
1183 * Makefile.am (libffi_files): Identify the libffi object files for
1184 inclusion in libgcj.
1185 (LIBFFIINCS): Define.
1187 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1188 Dummy definition for configurations without an interpreter.
1190 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1191 java::lang::Boolean constructor.
1193 * include/java-interp.h: Always include java-cpool.h.
1195 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1196 when INTERPRETER not defined.
1198 * java/lang/Class.h (finalize): Define.
1200 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1201 IOException from File.getCanonicalPath.
1202 (getStream): Likewise.
1205 * THANKS: More thanks.
1207 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1209 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1211 (_Jv_PrepareClass): Allow non-abstract classes to
1212 have abstract subclasses.
1213 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1215 * interpret.cc (continue1/perform_invoke): Don't sign extend
1217 (continue1/lshl,lshr): Push long, not int.
1218 (continue1/ulshr): Use UINT64, not long long.
1219 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1221 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1222 * java/lang/FirstThread.java (run): Add top-level exception
1224 (run0): Renamed from run.
1226 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1228 * configure.in (--with-interpreter): Added.
1229 * include/config.h.in (INTERPRETER): Added.
1231 * java/lang/ClassLoader.java: File replaced.
1232 * java/lang/VMClassLoader.java: New file.
1233 * java/lang/natClassLoader.cc: New file.
1234 * gnu/gcj/runtime/MethodInvocation.java: New file.
1235 * gnu/gcj/util/path/SearchPath.java: New file.
1236 * gnu/gcj/util/path/PathEntry.java: New file.
1237 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1238 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1239 * gnu/gcj/util/path/URLPathEntry.java: New file.
1240 * gnu/gcj/util/path/CacheEntry.java: New file.
1241 * include/java-interp.h: New file.
1242 * include/java-cpool.h: New file.
1243 * include/java-insns.h: New file.
1244 * defineclass.cc: New file.
1245 * interpret.cc: New file.
1246 * resolve.cc: New file.
1248 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1249 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1250 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1252 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1253 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1255 (initializeClass): Use new JV_ prefixed names. Also, call
1256 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1258 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1259 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1260 JV_STATE_LINKED): New.
1261 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1262 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1263 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1264 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1265 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1266 _Jv_InterpMethodInvocation): New friends for interpreter.
1268 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1269 include/java-cpool.h and renamed with JV_ prefix.
1271 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1273 (_Jv_UnregisterClass): New decl.
1275 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1276 class loader argument.
1277 (_Jv_FindClass): Use class loader.
1279 * prims.cc (_Jv_makeUtf8Const): New function.
1280 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1281 (_Jv_NewPrimArray): Ditto.
1282 (_Jv_FindClassFromSignature): Ditto.
1283 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1284 * java/lang/reflect/natMethod.cc (getType): Ditto.
1286 * include/java-field.h (_Jv_Field::isRef): Make robust for
1287 non-resolved contexts.
1289 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1290 Also, don't mark class->next field.
1292 * java/lang/VirtualMachineError.java: Added FIXME note.
1294 * configure.in (INTERPSPEC): New spec.
1295 * libgcj.spec.in: Added INTERPSPEC.
1296 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1297 gnu/gcj/runtime/MethodInvocation.
1298 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1299 (ordinary_java_source_files): Added above mentioned java classes.
1301 * configure: Rebuilt.
1302 * Makefile.in: Rebuilt.
1304 1999-08-06 Tom Tromey <tromey@cygnus.com>
1306 * configure: Rebuilt.
1307 * configure.in: Look for sched_yield in -lrt.
1309 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1311 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1312 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1313 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1315 (toString): Print correctly when `country' is empty.
1317 1999-08-04 Per Bothner <per@bothner.com>
1319 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1321 1999-08-02 Tom Tromey <tromey@cygnus.com>
1323 * aclocal.m4, configure: Rebuilt for new libtool.
1325 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1327 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1328 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1329 * java/net/ServerSocket.java: Define ANY_IF.
1330 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1331 all network interfaces.
1332 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1333 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1335 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1337 * java/io/natFile.cc (performMkdir): Remove FIXME.
1338 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1340 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1342 * configure.in: Check for bstring.h.
1343 * configure, include/config.h.in: Rebuilt.
1344 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1345 * java/net/natPlainSocketImpl.cc: Likewise.
1347 1999-07-31 Tom Tromey <tromey@cygnus.com>
1352 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1354 * configure.in: Check for struct hostent_data and need for
1355 -D_REENTRANT for gethostbyname_r declaration.
1356 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1357 (lookup): Use hostent_data for fixed_buffer.
1358 * configure, include/config.h.in: Rebuilt.
1360 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1362 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1363 available. Don't cast memmove args to (void*).
1364 * configure.in: Do not abort if memmove is not available.
1366 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1368 * java/lang/natString.cc (substring): optimize where substring is
1370 * java/io/File.java (getName): don't return separator with file name.
1371 * java/io/natFile.cc (attr): fix overflow.
1373 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1375 * mauve-libgcj: Disable Object Serialization tests.
1377 1999-07-20 Warren Levy <warrenl@cygnus.com>
1379 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1380 Default to using PlainDatagramSocketImpl.
1381 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1383 1999-07-19 Tom Tromey <tromey@cygnus.com>
1385 * include/stamp-h.in: New file.
1387 1999-07-12 Tom Tromey <tromey@cygnus.com>
1389 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1392 1999-07-07 Andrew Haley <aph@cygnus.com>
1394 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1395 bytes to make it point after the instruction where the trap
1397 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1399 1999-07-07 Tom Tromey <tromey@cygnus.com>
1401 * mauve-libgcj: Explicitly enable formerly disabled java.text
1404 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1407 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1409 * java/net/URL.java (equals): Compare strings using String.equals.
1410 * java/net/URL.java (sameFile): Ditto.
1412 1999-07-02 Warren Levy <warrenl@cygnus.com>
1414 * configure: Rebuilt.
1415 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1416 * include/config.h.in: Rebuilt.
1417 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1418 (mcastGrp): Updated FIXME comments.
1419 (setOption): Fixed typo.
1420 (getOption):Implemented IP_MULTICAST_IF.
1422 1999-07-02 Warren Levy <warrenl@cygnus.com>
1424 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1425 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1426 (getTimeToLive): Implemented.
1427 (setOption): Implemented IP_MULTICAST_IF.
1429 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1431 * java/lang/String.java (toString): Check for this == null and throw
1432 NullPointerException.
1434 1999-07-01 Warren Levy <warrenl@cygnus.com>
1436 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1437 to count and revised comments to match.
1438 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1439 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1440 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1441 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1442 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1443 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1445 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1447 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1448 properly as count rather than outlength.
1449 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1450 output on overflow rather than buffer fill.
1451 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1452 if markPos is 0 and there is still room in the buffer.
1454 1999-07-01 Andrew Haley <aph@cygnus.com>
1456 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1457 This is a workaround for a bug in glibc's pthreads package which
1458 doesn't deliver any sigcontext information to a signal handler.
1460 1999-06-24 Tom Tromey <tromey@cygnus.com>
1462 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1463 * java/lang/fdlibm.h (HUGE): Conditionally define.
1465 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1467 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1468 * java/lang/e_log.c: Don't use __uint32_t.
1470 1999-05-27 Eric Christopher <echristo@cygnus.com>
1472 * configure: Rebuilt
1473 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1474 * acconfig.h: Rebuilt
1475 * include/config.h.in: Rebuilt
1477 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1478 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1479 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1480 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1481 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1482 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1483 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1484 and namespace collision with __uint32_t
1486 1999-06-23 Tom Tromey <tromey@cygnus.com>
1488 * java/util/zip/InflaterInputStream.java (read): Throw
1489 ZipException if inflater throws a DataFormatException.
1491 1999-06-23 Warren Levy <warrenl@cygnus.com>
1493 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1494 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1495 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1496 is not final per JDK.
1497 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1499 * java/util/zip/DataFormatException.java: Class extends Exception.
1500 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1501 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1502 * java/util/zip/ZipInputStream.java: ditto.
1503 (closeEntry): Changed method name to match JDK spec.
1505 1999-06-21 Tom Tromey <tromey@cygnus.com>
1507 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1510 * Makefile.in: Rebuilt.
1511 * Makefile.am (toolexeclibdir): Define as libdir when
1513 * configure: Rebuilt.
1514 * configure.in (USE_LIBDIR): New conditional.
1516 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1518 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1519 hostname in returned InetAddress objects.
1520 (getLocalHostname): Fix typo.
1521 * java/net/InetAddress.java (getByName): Set hostname on return
1523 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1526 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1528 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1529 interfaces if host==NULL.
1530 (accept): Throw message with InterruptedIOException.
1531 (getOption): Cache localAddress.
1532 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1533 'address' for DatagramSocket.
1534 (setTimeToLive): Fix compiler warnings.
1535 (getOption): Cache localAddress.
1536 * java/net/Socket.java (getLocalAddress): Don't need local
1537 InetAddress object. Add FIXME comment about calling checkConnect().
1538 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1539 connection queue to 50 as per JDK 1.2 docs.
1540 (ServerSocket(int,int)): Listen on all network interfaces by
1541 default, per JDK 1.2 docs.
1542 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1543 Add localAddress caching.
1545 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1547 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1549 (write(byte[],int,int)): ditto.
1551 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1553 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1555 1999-06-11 Warren Levy <warrenl@cygnus.com>
1557 * mauve-libgcj: Activated java.net Mauve tests.
1559 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1561 * java/net/natInetAddress.cc (aton): Fix typos.
1562 (lookup): Use a bigger buffer size for gethostbyname_r on all
1563 versions of glibc. Updated FIXME comment explaining this.
1564 Modified while loops to not set herr = ERANGE to work around glibc
1565 problems. Use user specified hostname in InetAddress result when
1566 available (consistent with JDK).
1568 1999-06-10 Warren Levy <warrenl@cygnus.com>
1570 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1571 Throw FileNotFoundException instead of IOException.
1573 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1575 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1576 in static field name.
1577 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1578 throughout rather than ParseException.
1580 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1582 * java/lang/Runtime.java (exec): Convert prog name and arguments
1584 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1585 environment array conversion. Preserve current environment if envp
1586 not passed. Preserve PATH unless explicitly specified.
1587 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1588 followed by EOF. Set a flag when a line is terminated by '\r' and
1589 ignore following '\n' if set.
1591 1999-06-02 Warren Levy <warrenl@cygnus.com>
1593 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1594 Ignore context if spec is an absolute URL. Fix braindead
1596 (hashCode): Use JDK 1.2 style algorithm.
1597 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1598 context URL properly.
1600 1999-05-30 Anthony Green <green@cygnus.com>
1602 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1603 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1605 1999-05-28 Warren Levy <warrenl@cygnus.com>
1607 * java/net/DatagramSocket.java (laddr): Removed.
1608 (DatagramSocket): Removed attempts to get or set laddr if null.
1609 (getLocalAddress): Reimplemented per spec.
1610 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1612 (joinGroup): Throw NullPointerException if any argument is null.
1613 (leaveGroup): ditto.
1614 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1615 * java/net/PlainSocketImpl.java (timeout): Added.
1616 (getInputStream): Added FIXME comment on how to support timeouts
1618 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1619 * java/net/Socket.java: Added FIXME comments to identify
1620 conflicting specs between the JCL and JDK 1.2 documents.
1621 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1622 if host is null. Get localport value resolved by kernel if bind
1624 (receive): Implemented support for timeouts in UDP.
1625 (setOption): Implemented based on natPlainSocketImpl version.
1627 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1628 resolved by kernel if bind lport is 0.
1629 (connect): Get localport value resolved by kernel if bind wasn't
1630 done to set localport.
1631 (accept): Implemented support for timeouts for ServerSocket.
1632 (setOption): Save value for SO_TIMEOUT.
1633 (getOption): Return timeout for SO_TIMEOUT.
1635 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1637 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1638 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1639 (setOption): Made abstract.
1640 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1641 to avoid cpp conflicts in native code.
1642 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1643 cpp conflicts in native code.
1644 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1645 * java/net/Socket.java (getLocalAddress): Implemented.
1646 (setTcpNoDelay): Implemented.
1647 (getTcpNoDelay): Implemented.
1648 (setSoLinger): Implemented.
1649 (getSoLinger): Implemented.
1650 (getSoTimeout): Verify class type.
1651 (setSendBufferSize): Implemented.
1652 (getSendBufferSize): Implemented.
1653 (setReceiveBufferSize): Implemented.
1654 (getReceiveBufferSize): Implemented.
1655 (toString): Prepended "Socket".
1656 * java/net/SocketImpl.java (toString): Rewritten.
1657 (getOption): Made abstract.
1658 (setOption): Made abstract.
1659 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1660 (setOption): Implemented.
1661 (getOption): Implemented.
1663 1999-05-26 Warren Levy <warrenl@cygnus.com>
1665 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1666 address when null. Set SO_REUSEADDR for multicasts.
1667 (getSoTimeout): Implemented.
1668 (setSoTimeout): Implemented.
1669 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1670 * java/net/MulticastSocket.java (getInterface): Implemented.
1671 (setInterface): Implemented.
1672 (setTimeToLive): Check for invalid ttl.
1673 (joinGroup): Verify multicast address and security.
1674 (leaveGroup): Verify multicast address and security.
1675 (send): Implemented.
1676 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1682 (getTTL): Implemented as non-native.
1686 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1687 (getSoTimeout): Implemented.
1688 (setSocketFactory): Made synchronized.
1689 * java/net/Socket.java (setSoTimeout): Implemented.
1690 (getSoTimeout): Implemented.
1691 (close): Made synchronized.
1692 (setSocketImplFactory): Made synchronized.
1693 * java/net/SocketImpl.java: Implement SocketOptions interface.
1694 * java/net/natInetAddress.cc: Corrected module name at top of file.
1695 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1696 (bind): Added FIXME.
1697 (peek): Implemented.
1703 (setOption): Implemented for SO_REUSEADDR.
1704 (getOption): Implemented for SO_REUSEADDR.
1706 1999-05-24 Tom Tromey <tromey@cygnus.com>
1708 * java/util/ResourceBundle.java (getBundle): Throw
1709 NullPointerException if baseName is null.
1711 1999-05-22 Tom Tromey <tromey@cygnus.com>
1713 * java/util/zip/ZipInputStream.java (fill): New method.
1714 (compressed_len): New instance variable.
1715 (getNextStream): Set it.
1716 (read): Reset inflater on EOF. Only read via `super' if entry is
1718 (skip): Only skip via `super' if entry is deflated.
1719 * java/util/zip/Deflater.java (last_input_count): Removed.
1720 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1722 (needsInput): Don't use last_input_count.
1723 (setInput): Don't set last_input_count.
1724 * java/util/zip/natInflater.cc (getRemaining): Return correct
1726 (inflate): Return 0 if input array is length 0.
1727 (setInput): Don't set last_input_count.
1728 * java/util/zip/Inflater.java (last_input_count): Removed.
1730 1999-05-21 Tom Tromey <tromey@cygnus.com>
1732 * Makefile.in: Rebuilt.
1733 * Makefile.am (INCLUDES): Added $(ZINCS).
1734 * configure: Rebuilt.
1735 * configure.in (ZINCS): New subst.
1737 1999-05-21 Andrew Haley <aph@cygnus.com>
1739 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1740 to signal options to allow the same exceptions to be rethrown
1743 1999-05-20 Andrew Haley <aph@cygnus.com>
1745 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1747 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1748 (INIT_FPE): Exception string made more informative.
1749 * include/sparc-signal.h (INIT_FPE): Exception string made more
1751 * testsuite/libjava.lang/Divide_1.java: New file.
1752 * testsuite/libjava.lang/Divide_1.out: New file.
1754 1999-05-19 Tom Tromey <tromey@cygnus.com>
1756 * aclocal.m4, configure: Rebuilt.
1757 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1759 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1762 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1764 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1766 (update): Fail in default case. Always initialize `strat'.
1768 * mauve-libgcj: Enable java.util.zip.
1770 1999-05-18 Warren Levy <warrenl@cygnus.com>
1772 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1773 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1774 PlainDatagramSocketImpl.java, and SocketOptions.java.
1775 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1776 * Makefile.in: Rebuilt.
1778 * java/net/DatagramPacket.java: New file.
1779 * java/net/DatagramSocket.java: New file.
1780 * java/net/DatagramSocketImpl.java: New file.
1781 * java/net/MulticastSocket.java: New file.
1782 * java/net/PlainDatagramSocketImpl.java: New file.
1783 * java/net/SocketOptions.java: New file.
1784 * java/net/natPlainDatagramSocketImpl.cc: New file.
1786 1999-05-18 Tom Tromey <tromey@cygnus.com>
1788 * java/util/zip/ZipOutputStream.java (level): Initial value is
1789 Deflater.DEFAULT_COMPRESSION.
1790 (close): New method.
1791 (closeEntry): Likewise.
1793 (put_version): Likewise.
1794 (write_entry): Likewise.
1795 (put2, put4): Now return `int'.
1796 (comment): Default to empty string.
1797 (bytes_written): New instance variable.
1799 * java/util/zip/ZipEntry.java (setComment): Limit length of
1801 (setCrc): Check CRC validity.
1802 (setExtra): Check argument validity.
1803 (setMethod): Likewise.
1804 (setSize): Likewise.
1805 (ZipEntry): Likewise.
1806 * include/javaprims.h: Updated namespace declarations.
1807 * Makefile.in: Rebuilt.
1808 * Makefile.am (ordinary_java_source_files): Mention new files.
1809 (nat_source_files): Likewise.
1810 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1813 (getInputStream): Handle compressed entries.
1814 * java/util/zip/GZIPOutputStream.java: New file.
1815 * java/util/zip/GZIPInputStream.java: New file.
1816 * java/util/zip/DataFormatException.java: New file.
1817 * java/util/zip/CheckedInputStream.java: New file.
1818 * java/util/zip/CheckedOutputStream.java: New file.
1819 * java/util/zip/InflaterInputStream.java: Implemented.
1820 * java/util/zip/natInflater.cc: New file.
1821 * java/util/zip/Deflater.java: Implemented.
1822 * java/util/zip/natDeflater.cc: New file.
1823 * java/util/zip/DeflaterOutputStream.java: Implemented.
1825 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1826 ZipException, not IOException.
1827 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1830 1999-05-17 Tom Tromey <tromey@cygnus.com>
1832 * java/lang/natSystem.cc (init_properties): URL now points to
1835 1999-05-12 Per Bothner <bothner@cygnus.com>
1837 * java/util/Calendar.java (set): First call computeFields if needed.
1838 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1840 1999-05-12 Tom Tromey <tromey@cygnus.com>
1842 * configure: Rebuilt.
1843 * configure.in: Look for -ldl when using the Boehm collector.
1844 Look for sched_yield in -lposix4.
1846 1999-05-12 Per Bothner <bothner@cygnus.com>
1848 * java/io/File.java (mkdirs): Handle a null parent directory.
1850 1999-05-12 Tom Tromey <tromey@cygnus.com>
1852 * include/javaprims.h: Updated namespace declarations.
1853 * classes.pl (scan): Uniquify class list.
1854 * Makefile.in, configure: Rebuilt.
1855 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1856 (built_java_source_files): New macro.
1857 (nat_headers): Added built_java_source_files.
1858 (javao_files): Likewise.
1859 (EXTRA_libgcj_la_SOURCES): Likewise.
1860 (libgcj.zip): Create built class files.
1861 ($(built_java_source_files:.java=.class)): New target.
1862 (jv_convert_LDADD): Added -L$(here)/.libs.
1863 * configure.in: Create links for ConcreteProcess.java and
1864 natConcreteProcess.cc.
1865 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1866 * java/lang/natEcosProcess.cc: New file.
1867 * java/lang/EcosProcess.java: New file.
1868 * java/lang/PosixProcess.java: New file.
1869 * java/lang/natPosixProcess.cc: New file.
1871 1999-05-12 Warren Levy <warrenl@cygnus.com>
1873 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1874 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1875 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1876 (connect): Throw ConnectException.
1878 1999-05-11 Tom Tromey <tromey@cygnus.com>
1880 * Makefile.in: Rebuilt.
1881 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1882 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1885 * Makefile.in: Rebuilt.
1886 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1887 and it causes problems with libtool.
1889 * Makefile.in, configure: Rebuilt.
1890 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1891 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1892 (jv_convert_DEPENDENCIES): Added ZDEPS.
1893 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1895 (THREADSPEC): Added `-L' to point to qthreads build directory.
1899 * configure, Makefile.in: Rebuilt.
1900 * Makefile.am (toolexeclib_DATA): New macro.
1901 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1902 Recognize --with-system-zlib.
1903 (GCSPEC): New subst.
1904 (THREADSPEC): New subst.
1905 (SYSTEMSPEC): New subst.
1906 (ZLIBSPEC): New subst.
1907 * libgcj.spec.in: New file.
1909 1999-05-10 Tom Tromey <tromey@cygnus.com>
1911 * java/io/InputStreamReader.java (read): If length is 0, return
1912 0. Reset `wpos' and `wcount' when buffer has been filled and
1915 * java/util/Properties.java (save): Removed `FIXME' comment.
1916 (load): Invalid characters in \u now treated as terminators.
1917 Make sure to append character resulting from `\' handling.
1918 Cast to `char' when appending to key or value.
1919 (skip_ws): Inverted test for whitespace.
1921 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1923 (readLine): Likewise.
1924 (readFully): Implemented.
1926 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1928 * java/awt/natToolkit.cc: Added copyright header.
1929 * java/util/zip/InflaterInputStream.java: Added copyright header.
1931 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1933 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1935 (getNextStream): Likewise.
1937 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1939 (getBundle): Don't explicitly throw null pointer exception.
1941 * gnu/gcj/RawData.java: Added copyright header.
1943 * include/jni.h (_Jv_va_list): Always define as va_list.
1945 1999-05-9 Anthony Green <green@cygnus.com>
1947 * java/text/DateFormat.java (computeInstance): Separate time
1949 (getDateTimeInstance): Ditto.
1950 (getDateTimeInstance(int,int)): New method.
1952 * Makefile.in: Rebuilt.
1953 * Makefile.am (ordinary_java_source_files): Add new classes.
1955 * java/util/PropertyResourceBundle.java: New file.
1956 * gnu/gcj/util/EnumerationChain.java: New file.
1958 1999-05-07 Tom Tromey <tromey@cygnus.com>
1960 * acconfig.h (GCJVERSION): New undef.
1961 * java/lang/natSystem.cc (init_properties): Define java.version,
1962 java.class.version, os.name, os.arch, os.version.
1963 Include <sys/utsname.h> if required.
1964 * configure: Rebuilt.
1965 * configure.in: Compute and define GCJVERSION.
1967 * java/lang/natSystem.cc (default_file_encoding): Now static.
1969 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1971 * libtool-version: New file.
1972 * Makefile.in: Rebuilt.
1973 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1976 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1977 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1980 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1981 (we pick those up already).
1983 1999-05-05 Per Bothner <bothner@cygnus.com>
1985 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1986 stub classes. (This is enough to get Kawa to compile against libgcj.)
1988 * gnu/gcj/RawData.java: New class.
1989 * doc/cni.sgml: Document RawData.
1991 * java/util/zip/InflaterInputStream.java: New stub class.
1992 * java/util/zip/ZipInputStream.java: New class. Partly works.
1993 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1994 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1995 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1996 * java/util/zip/ZipOutputStream.java: Start implementation.
1998 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1999 (default_file_encoding): New global, initial value is above macro.
2000 (init_properties): Default file.encoding to default_file_encoding.
2002 * Makefile.am: Add new classes.
2004 1999-05-05 Tom Tromey <tromey@cygnus.com>
2006 * Makefile.in: Rebuilt.
2007 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2008 (clean-local): New target
2010 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2011 (load, loadLibrary): Now native.
2013 * java/lang/Runtime.java (load, loadLibrary): Now native.
2014 (init): New native method.
2015 (Runtime): Use init.
2016 * prims.cc: Include <ltdl.h> if required.
2017 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2019 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2021 * configure.in: Switch from irix threads to posix threads
2022 * configure: Regenerate.
2024 1999-04-30 Tom Tromey <tromey@cygnus.com>
2026 * Makefile.in: Rebuilt.
2027 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2029 1999-04-29 Tom Tromey <tromey@cygnus.com>
2031 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2034 * java/util/Locale.java (Locale(String,String)): Implement in
2035 terms of 3-argument version; variant now defaults to empty
2037 (toString): Assume variant is not null.
2038 (equals): Assume all strings are not null.
2039 (Locale): Throw NullPointerException if any argument is null.
2041 * java/util/ResourceBundle.java (getBundle): Don't try the base
2042 name; now implicit in partialGetBundle call.
2043 (trySomeGetBundle): Search for parent bundles and call setParent
2045 (partialGetBundle): Added `langStop' argument. Use
2046 `Locale.toString' to compute bundleName.
2047 (resource_cache): New static field.
2048 (partialGetBundle): Cache the returned resource bundle. Now
2051 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2054 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2055 * java/text/natCollator.cc (decomposeCharacter): `base' now
2057 * Makefile.in: Rebuilt.
2058 * Makefile.am (ordinary_java_source_files): Added
2059 CollationElementIterator, CollationKey, Collator,
2061 (nat_source_files): Added natCollator.cc.
2062 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2063 (compare): Pass `this' to CollationElementIterator constructor.
2064 (getCollationElementIterator): Likewise.
2065 (ceiNext): Fix off-by-one error when finding initial substring.
2066 (next): Correctly mask off bits when computing return value.
2067 Fixed return values when one string is shorter than the other.
2068 * java/text/CollationElementIterator.java (collator): New field.
2069 (CollationElementIterator): Added collator argument.
2070 (next): Call ceiNext on collator object.
2072 1999-04-26 Tom Tromey <tromey@cygnus.com>
2074 * natCollator.cc: New file.
2076 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2077 (GregorianCalendar): Use it in all constructors.
2078 * java/util/Calendar.java (Calendar): Changed argument name to
2079 `zone' to match code.
2081 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2082 * java/text/CollationKey.java: New file.
2083 * java/text/CollationElementIterator.java: New file.
2084 * java/text/Collator.java: New file.
2085 * java/text/RuleBasedCollator.java: New file.
2087 * Makefile.in: Rebuilt.
2088 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2089 (jv_convert_LDADD): Explicltly add -lm -lc.
2091 1999-04-26 Tom Tromey <tromey@cygnus.com>
2093 * configure, Makefile.in: Rebuilt.
2094 * configure.in: Added AM_PROG_LIBTOOL.
2095 (GCOBJS): Use `.lo' form of files.
2096 (THREADOBJS): Likewise.
2097 (GCDEPS): Use `.la' form of library.
2098 (GCLIBS): Set to be the same as GCDEPS.
2099 (THREADDEPS): Use `.la' form of library.
2100 (THREADLIBS): Set to be the same as THREADDEPS.
2101 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2102 toolexeclib_LIBRARIES.
2103 (libgcj_la_SOURCES): Renamed for libtoolization.
2104 (EXTRA_libgcj_la_SOURCES): Likewise.
2105 (libgcj_la_DEPENDENCIES): Likewise.
2106 (libgcj_la_LIBADD): Likewise.
2107 ($(nat_files)): Use LTCXXCOMPILE.
2108 ($(c_files)): Use LTCOMPILE.
2109 (GCJCOMPILE): New macro.
2111 (.java.o): Likewise.
2112 ($(javao_files)): Likewise.
2113 (jv_convert_LINK): Use LIBTOOL.
2114 (nat_files): Use `.lo' files.
2115 (c_files): Likewise.
2116 (javao_files): Likewise.
2117 (.class.lo): Renamed.
2118 (.java.lo): Likewise.
2119 ($(nat_files)): Depend on %.lo.
2120 ($(c_files)): Likewise.
2121 ($(javao_files)): Likewise.
2122 (jv_convert_LDADD): Link against .lo files.
2123 (jv_convert_DEPENDENCIES): Depend on .lo files.
2124 (maintainer-check): Depend on libgcj.la, but examine .a file.
2125 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2126 (libgcj_la_LDFLAGS): New macro.
2128 1999-04-23 Warren Levy <warrenl@cygnus.com>
2130 * Makefile.am: Added URLDecoder and URLEncoder.
2131 * Makefile.in: Rebuilt.
2133 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2134 setSocketImplFactory to match spec.
2135 * java/net/Socket.java (getSoLinger): Changed return type to
2138 * java/net/URLDecoder.java: New file.
2139 * java/net/URLEncoder.java: New file.
2141 1999-04-21 Tom Tromey <tromey@cygnus.com>
2143 * java/lang/natString.cc (getBytes): Reverted earlier change and
2144 applied correct fix from Per Bothner.
2146 * java/lang/String.java: Don't throw
2147 UnsupportedEncodingException.
2149 * java/lang/natString.cc (getBytes): Correctly size result
2150 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2152 1999-04-20 Andrew Haley <aph@cygnus.com>
2154 * include/sparc-signal.h: new file.
2155 * configure.in: include/sparc-signal.h added.
2156 * configure: regenerated.
2157 * prims.cc (JvRunMain): signal handling code rewritten to be more
2159 (catch_segv): ditto.
2161 * include/i386-signal.h: reorganized.
2162 * include/default-signal.h: reorganized.
2164 1999-04-19 Tom Tromey <tromey@cygnus.com>
2166 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2167 once. From Anthony Green.
2169 1999-04-19 Andrew Haley <aph@cygnus.com>
2171 * Makefile.in: Processed with new automake.
2173 1999-04-19 Tom Tromey <tromey@cygnus.com>
2175 * include/javaprims.h: Removed security namespace.
2177 1999-04-20 Anthony Green <green@cygnus.com>
2179 * java/io/PrintStream.java (println): Remove extra println.
2181 1999-04-19 Anthony Green <green@cygnus.com>
2183 * Makefile.in: Rebuilt.
2184 * Makefile.am (ordinary_java_source_files): Add new security files.
2186 * java/security/NoSuchAlgorithmException.java,
2187 java/security/MessageDigest.java: New files.
2189 * include/javaprims.h: Add security namespace.
2191 1999-04-16 Per Bothner <bothner@cygnus.com>
2193 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2194 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2195 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2196 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2197 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2198 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2199 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2200 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2201 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2202 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2203 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2204 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2205 * Makefile.am: Various changes for new files and conversions.
2207 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2208 New overloading, allows greater efficiency.
2209 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2210 New overloading (for efficiency - avoids copying).
2212 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2213 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2215 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2216 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2217 (writeChars): Don't be quite so eager to flush.
2218 * java/io/PrintStream.java: Rewrite. Now more similar to
2219 OutputStreamWriter, using explicit UnicodeToBytes converter.
2220 Also, autoflush does not need to flush so often.
2221 * java/lang/natString.cc (getBytes): More efficient algorithm.
2222 (init(jbyteArray,jint,jint,jstring)): More efficient.
2224 1999-04-15 Warren Levy <warrenl@cygnus.com>
2226 * Makefile.am (ordinary_java_source_files): Added new Connection
2227 and Handler classes in gnu.gcj.protocol.file package.
2228 * Makefile.in: Rebuilt.
2230 * gnu/gcj/protocol/file/Connection.java: New file.
2231 * gnu/gcj/protocol/file/Handler.java: New file.
2232 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2233 if doInput allows input.
2234 (getOutputStream): Check if doOutput allows output.
2235 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2237 1999-04-14 Tom Tromey <tromey@cygnus.com>
2239 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2240 buffer larger to work around bug.
2241 From Bryce McKinlay <bryce@albatross.co.nz>.
2243 1999-04-14 Andrew Haley <aph@cygnus.com>
2245 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2246 NaNs are always converted to the same long value.
2247 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2250 1999-04-13 Tom Tromey <tromey@cygnus.com>
2252 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2253 instead switch on actual element type.
2255 * Makefile.in: Rebuilt.
2256 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2258 1999-04-13 Andrew Haley <aph@cygnus.com>
2260 * include/i386-signal.h, include/default-signal.h: New files.
2261 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2263 (catch_fpe): New function.
2264 * configure.in: Make link to appropriate include/java-signal.h.
2265 * configure: Rebuilt.
2266 * Makefile.am: include/java-signal.h added to dependency list.
2267 * Makefile.in: Rebuilt.
2269 1999-04-12 Urban Widmark <urban@svenskatest.se>
2271 * java/io/DataInputStream.java (readLine): Corrected handling of
2272 empty lines, from null to "".
2274 1999-04-12 Tom Tromey <tromey@cygnus.com>
2276 * Makefile.in: Rebuilt.
2277 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2279 * java/lang/natSystem.cc (SystemClass): New define.
2280 (init_properties): Synchronize.
2282 1999-04-08 Geoff Berry <gcb@gnu.org>
2284 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2285 * natPlainSocketImpl.cc (accept): Add missing else if check
2288 1999-04-08 Tom Tromey <tromey@cygnus.com>
2290 * java/lang/Long.java (parseLong): Corrected overflow detection
2292 * java/lang/Integer.java (parseInt): Corrected overflow detection
2295 * java/io/PrintStream.java (print): Handle null string argument.
2296 (println): Likewise.
2298 1999-04-07 Warren Levy <warrenl@cygnus.com>
2300 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2301 Set count to 0 when InputStreamReader returns -1 for EOF.
2303 1999-04-07 Tom Tromey <tromey@cygnus.com>
2305 * mauve-libgcj: Omit java.text.Collator,
2306 java.text.RuleBasedCollator.
2308 1999-04-06 Tom Tromey <tromey@cygnus.com>
2310 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2311 IOException from getHttpHeaders().
2312 (getHeaderFieldKey): Likewise.
2314 * include/javaprims.h: Regenerated declarations.
2316 * Makefile.in: Rebuilt.
2317 * Makefile.am (ordinary_java_source_files): Updated for removed
2320 1999-04-06 Per Bothner <bothner@cygnus.com>
2322 * java/util/zip/Adler32.java: New class.
2323 * java/util/zip/CRC32.java: Add working method bodies.
2324 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2325 * Makefile.in: Re-generate.
2327 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2329 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2330 from version in removed www hierarchy.
2331 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2332 version in removed www hierarchy.
2334 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2335 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2336 * gnu/gcj/www/protocol/http: Removed dir.
2337 * gnu/gcj/www/protocol: Removed dir.
2338 * gnu/gcj/www: Removed dir.
2340 * java/net/HttpURLConnection.java: Revised comments to indicate
2341 missing JDK 1.2 methods.
2343 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2344 hierarchy rather than the gnu/gcj/www/protocol one.
2345 * java/net/URLConnection.java: Updated status comments.
2346 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2347 the gnu/gcj/www/content one.
2349 1999-04-06 Per Bothner <bothner@cygnus.com>
2351 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2352 The gen-from-JIS program is in $(CONVERT_DIR).
2354 1999-04-06 Tom Tromey <tromey@cygnus.com>
2356 * mauve-libgcj: Renamed from mauve-libjava.
2358 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2360 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2361 (getResponseMessage): Implemented.
2362 (getResponseVals): New private method.
2364 * java/net/URLConnection.java (getContent): Implemented.
2365 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2367 1999-04-05 Tom Tromey <tromey@cygnus.com>
2369 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2370 (jv_convert_SOURCES): Renamed.
2371 (EXTRA_jv_convert_SOURCES): Likewise.
2372 (jv_convert_LDFLAGS): Likewise.
2373 (jv_convert_LINK): Likewise.
2374 (jv_convert_LDADD): Likewise.
2375 (jv_convert_DEPENDENCIES): Likewise.
2377 * Makefile.in: Rebuilt.
2378 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2381 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2383 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2384 method for comparison.
2386 * java/net/URLConnection.java (getContentLength): Implemented.
2387 (getContentType): Implemented.
2388 (getContentEncoding): Implemented.
2389 (getExpiration): Implemented.
2390 (getDate): Implemented.
2391 (getLastModified): Implemented.
2392 (getHeaderFieldInt): Implemented.
2393 (getHeaderFieldDate): Implemented.
2395 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2397 * java/net/URLConnection.java (toString): Implemented.
2398 (setContentHandlerFactory): Implemented.
2399 (setContentHandler): Wrote new private helper method.
2401 1999-04-01 Tom Tromey <tromey@cygnus.com>
2403 * Makefile.in: Rebuilt.
2404 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2405 of 1999-03-31; we always want to build all the .class files.
2406 Depend on java_source_files, not libgcj.zip.
2407 (nat_headers): Define in terms of ordinary_java_source_files.
2409 1999-03-31 Tom Tromey <tromey@cygnus.com>
2411 * Makefile.in: Rebuilt.
2412 * Makefile.am (special_java_source_files): New macro.
2413 (java_source_files): Use it.
2414 (ordinary_java_source_files): New macro.
2415 (java_source_files): Use it.
2416 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2417 creating headers for those files with hand-maintained headers.
2419 * include/javaprims.h: Regenerated namespace declarations.
2420 * classes.pl (scan): Include [0-9] in regexp for matching class
2421 names; for java.util.zip.CRC32.
2423 * Makefile.in: Rebuilt.
2424 * Makefile.am (nat_headers): Redefined to generate all possible
2427 * java/util/zip/ZipException.java: In package java.util.zip, not
2430 1999-03-30 Tom Tromey <tromey@cygnus.com>
2432 * configure: Rebuilt.
2433 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2434 eh-common.h when not building in tree with gcc.
2436 * Makefile.in: Rebuilt.
2437 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2438 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2440 ($(java_source_files:.java=.class)): New target.
2442 * Makefile.in: Rebuilt.
2443 * Makefile.am (java_source_files): Added
2444 java/net/HttpURLConnection.java and
2445 gnu/gcj/www/protocol/http/Connection.java.
2447 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2449 * gnu/gcj/www/protocol/http/Connection.java: New file.
2450 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2451 * java/net/HttpURLConnection.java: New file.
2452 * java/net/URLConnection.java (getHeaderField): Implemented default.
2453 (getHeaderFieldKey): Implemented default method.
2455 1999-03-30 Tom Tromey <tromey@cygnus.com>
2457 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2459 * java/util/zip/Deflater.java: Added copyright header.
2460 * java/util/zip/CRC32.java: Added copyright header.
2462 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2463 that it is automatically generated.
2464 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2466 * gnu/gcj/convert/BytesToUnicode.java,
2467 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2468 gnu/gcj/convert/Input_EUCJIS.java,
2469 gnu/gcj/convert/Input_UTF8.java,
2470 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2471 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2472 gnu/gcj/convert/Output_8859_1.java,
2473 gnu/gcj/convert/Output_JavaSrc.java,
2474 gnu/gcj/convert/Output_UTF8.java,
2475 gnu/gcj/convert/UnicodeToBytes.java,
2476 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2478 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2480 * Makefile.in, configure: Rebuilt.
2481 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2482 not if test subdir exists.
2483 (--enable-gcj-classes): Removed; gcj always used to generate
2485 (JAVA, JAVAC): Removed.
2486 (--enable-single-compilation, --enable-source-compilation):
2489 (NATIVE): New conditional.
2490 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2491 `install-exec' to work.
2492 (toolexeclibdir): Likewise.
2493 (toollib_LIBRARIES): Likewise.
2494 (AM_MAKEFLAGS): Don't pass tooldir.
2496 (javao_files): Redefined.
2497 (java_source_files): New macro.
2498 (c_source_files): New macro.
2499 (c_files): Redefined in terms of c_source_files.
2500 (java_io_files, java_lang_files, java_net_files, java_text_files,
2501 java_util_files, gnu_files, java_files): Removed.
2502 (class_io_files, class_lang_files, class_net_files,
2503 class_text_files, class_util_files, class_gnu_files, class_files):
2505 (nat_source_files): New macro.
2506 (nat_files): Redefined in terms of nat_source_files.
2507 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2508 java_source_files. Removed no-such-file.c.
2510 (ETAGS_ARGS): Removed.
2511 (TAGS_DEPENDENCIES): Likewise.
2512 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2514 (src_io_files, src_lang_files, src_text_files, src_util_files,
2515 src_gnu_files): Removed.
2516 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2517 (BUILT_SOURCES): Removed.
2518 (header-check): New target.
2520 (noinst_PROGRAMS): New macro.
2521 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2523 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2524 (gen-from-JIS): Build in top directory.
2525 (convert_source_files): New macro.
2526 (convert_SOURCES): New macro.
2527 (convert_LDFLAGS): Likewise.
2528 (convert_LINK): Likewise.
2529 (convert_LDADD): Likewise.
2530 (convert_DEPENDENCIES): Likewise.
2532 (gen-from-JIS): Removed.
2533 (gen_from_JIS_SOURCES): New macro.
2534 (gen_from_JIS_LDADD): Likewise.
2535 (gen_from_JIS_DEPENDENCIES): Likewise.
2537 * configure: Rebuilt.
2538 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2539 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2540 when defining conditional.
2542 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2544 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2545 The Unicode Consortium does not permit their re-distribution.
2546 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2547 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2549 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2551 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2553 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2555 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2556 from Unicode Consortium.
2557 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2558 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2559 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2560 New tables, generated using gen-from-JIS.
2561 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2562 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2563 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2564 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2566 * gnu/gcj/convert/Convert.java: New application.
2567 * Makefile.am, Makefile.in (convert): New program, using Convert.
2568 Build the various JIS conversion tables (in maintainer mode).
2570 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2572 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2574 * java/net/URL.java (URL): Deal with null property value. Use "."
2575 as separator in building class name.
2576 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2577 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2578 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2579 beginning of the substring rather than 'start'.
2581 1999-03-26 Tom Tromey <tromey@cygnus.com>
2583 * include/java-chartables.h: Rebuilt.
2584 * include/java-chardecomp.h: New file.
2585 * chartables.pl: Generate output files directly. Added support
2586 for generating decomposition header.
2587 (canonical_decomposition, full_decomposition): New globals.
2588 (DECOMPOSITION): New constant.
2589 (process_char): Call add_decomposition.
2590 (add_decomposition): New sub.
2591 (write_decompositions): New sub.
2593 1999-03-25 Tom Tromey <tromey@cygnus.com>
2595 * java/text/CollationElementIterator.java: New file.
2597 * mauve-libjava: Omit StringTest.
2599 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2601 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2602 without a '/' when parsing protocol. Handle ref outside of parseURL.
2603 (hashCode): Implemented.
2604 (set): Don't expand -1 to default port.
2605 (getDefaultPort): Removed.
2607 * java/net/URLStreamHandler.java (parseURL): Implemented.
2608 (toExternalForm): Implemented.
2610 1999-03-23 Tom Tromey <tromey@cygnus.com>
2612 * java/text/BreakIterator.java (getSentenceInstance):
2614 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2616 * Makefile.in: Rebuilt.
2617 * Makefile.am (nat_headers): Added IllegalAccessException.
2618 * java/lang/natClass.cc (newInstance): Throw
2619 IllegalAccessException, not IllegalAccessError.
2620 Include IllegalAccessException.h.
2622 1999-03-22 Tom Tromey <tromey@cygnus.com>
2624 * gnu/gcj/text/LineBreakIterator.java: New file.
2625 * java/text/BreakIterator.java (getLineInstance): Implemented.
2627 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2628 copy constructor private.
2629 (previous, next): Removed erroneous comment about line
2631 (previous): Correctly recognize break between non-letter on the
2632 left and letter on the right. Handle apostrophes correctly.
2634 * java/text/BreakIterator.java (getWordInstance): Implemented.
2635 * gnu/gcj/text/WordBreakIterator.java: New file.
2636 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2638 * gnu/gcj/text/BaseBreakIterator.java: New file.
2640 1999-03-19 Tom Tromey <tromey@cygnus.com>
2642 * java/text/BreakIterator.java: New file (partially stubbed out).
2643 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2645 * include/config.h.in: Rebuilt.
2646 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2647 (HAVE_TIMEZONE): Likewise.
2648 * configure: Rebuilt.
2649 * configure.in: Added timezone checks.
2650 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2653 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2655 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2656 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2657 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2658 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2659 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2660 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2661 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2662 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2664 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2665 (BSD_COMP): Kludge needed for Solaris2.
2667 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2669 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2670 URL(java.net.URL, string, URLStreamHandler) and call it with a
2671 null handler. In latter constructor, added SecurityManager check.
2672 (set): Expect null handler on bad protocol rather than an exception.
2673 (setURLStreamHandler): Simplified exception handling; return null
2674 on invalid protocol.
2676 1999-03-18 Tom Tromey <tromey@cygnus.com>
2678 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2680 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2682 Include PrintStream.h, InputStream.h.
2683 * java/lang/System.java (ForwardingInputStream,
2684 ForwardingOutputStream): Removed.
2685 (setErr, setIn, setOut): Now native.
2687 Reverted patch from 1999-02-12 to work around problem in
2689 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2690 (_Jv_eh_free): Use free.
2692 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2693 for path name. Minor formatting fixes.
2695 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2697 * prims.cc (fail_on_finalization): New function.
2698 (_Jv_GCWatch): Likewise.
2700 * prims.cc (JvRunMain): Initialize `nullp'.
2701 (nullp): New global.
2702 (catch_segv): Throw nullp.
2704 * Makefile.in: Rebuilt.
2705 * Makefile.am (ZIP): In "null target" case, zip is found in the
2708 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2712 * java/lang/StringBuffer.java (StringBuffer): Don't use
2713 ensureCapacity to set initial capacity.
2714 (capacity): Subtract `length' from return result.
2716 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2718 * java/io/natFileDescriptorPosix.cc (open): Throw
2719 FileNotFoundException, but with filename and errno in msg.
2721 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2723 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2724 functionality folded into java/net/URL.java per spec.
2726 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2727 than EEXIST for throwing FileNotFoundException.
2729 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2730 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2732 * java/net/URLStreamHandler.java (parseURL): Added stub.
2734 1999-03-15 Andrew Haley <aph@cygnus.com>
2736 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2739 1999-03-15 Andrew Haley <aph@cygnus.com>
2741 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2744 1999-03-12 Tom Tromey <tromey@cygnus.com>
2746 * prims.cc (catch_segv): New function.
2747 Include <signal.h> if HANDLE_SEGV defined. Include
2748 NullPointerException.h.
2749 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2752 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2753 a SimpleDateFormat, not just a DateFormat.
2754 (defaultCenturyStart, formatData, pattern): Now private.
2755 (append): Now `final'. Use `NumberFormat.format'.
2757 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2759 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2762 * java/text/MessageFormat.java (format): Use default MessageFormat
2764 (parse, parseObject): Wrote.
2766 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2769 1999-03-12 Andrew Haley <aph@cygnus.com>
2771 * java/lang/String.java (indexOf): Replace with native method for
2773 * java/lang/natString.cc (IndexOf): As above.
2775 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2776 Argument check corrected.
2777 (init(jbyteArray,jint,jint,jstring)): Likewise.
2779 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2780 1.2 compliant method.
2782 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2784 * java/lang/Float.java (byteValue, shortValue): Likewise.
2786 1999-03-11 Tom Tromey <tromey@cygnus.com>
2788 * java/text/DecimalFormat.java (parse): Wrote.
2790 * java/text/ChoiceFormat.java (parse): Set error index on
2791 ParsePosition object.
2793 * java/lang/Integer.java (parseInt): Throw exception on overflow
2794 when intermediate result is most negative number. Changed
2795 overflow detection as well.
2796 * java/lang/Long.java (parseLong): Likewise.
2798 * configure, Makefile.in: Rebuilt.
2799 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2800 CANADIAN when building in source tree that doesn't include gcc.
2801 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2804 * java/text/ChoiceFormat.java (nextDouble): Correct some
2805 off-by-one errors when masking or adding.
2807 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2808 parameter, if given. Use `%', not IEEEremainder.
2809 (scanFix): Throw error if multiplier already set.
2810 (computePattern): Wrote.
2812 1999-03-11 Andrew Haley <aph@cygnus.com>
2814 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2816 (nextDouble): Corrected masking logic. Handle interaction between
2817 `next' and negative numbers.
2819 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2821 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2822 * java/net/URL.java: Added general comments.
2824 1999-03-10 Tom Tromey <tromey@cygnus.com>
2826 * java/text/ChoiceFormat.java (parse): Wrote.
2828 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2830 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2831 Create ChoiceFormat objects.
2832 (format): Special-case ChoiceFormat.
2833 (scanFormatElement): Include { and } in generated style string.
2835 1999-03-09 Tom Tromey <tromey@cygnus.com>
2837 * java/text/ChoiceFormat.java: New file.
2839 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2841 * java/net/BindException.java: Created.
2842 * java/net/ConnectException.java: Created.
2843 * java/net/ContentHandler.java: Created.
2844 * java/net/ContentHandlerFactory.java: Created.
2845 * java/net/FileNameMap.java: Created.
2846 * java/net/MalformedURLException.java: Created.
2847 * java/net/NoRouteToHostException.java: Created.
2848 * java/net/ProtocolException.java: Created.
2849 * java/net/ServerSocket.java (@author): Fixed typo.
2850 * java/net/Socket.java (@author): Fixed typo.
2851 * java/net/SocketImpl.java (@author): Fixed typo.
2852 * java/net/SocketImplFactory.java (@author): Fixed typo.
2853 * java/net/URL.java: Created - nearly complete.
2854 * java/net/URLConnection.java: Created - near-empty stub.
2855 * java/net/URLStreamHandler.java: Created - incomplete stub.
2856 * java/net/URLStreamHandlerFactory.java: Created.
2857 * java/net/UnknownServiceException.java: Created.
2859 1999-03-09 Tom Tromey <tromey@cygnus.com>
2861 * java/lang/System.java (ForwardingInputStream): New class.
2862 (ForwardingOutputStream): Likewise.
2863 (in, out, err): Now `final' forwarding streams.
2864 (setIn, setOut, setErr): Use appropriate method on forwarding
2867 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2870 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2872 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2873 * java/util/zip/Checksum.java: New interface (complete).
2874 * java/util/zip/Deflater.java: New class (near-empty stub).
2875 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2876 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2877 * java/util/zip/ZipEntry.java: New class (complete).
2878 * java/util/zip/ZipException.java: New class (complete).
2879 * java/util/zip/ZipFile.java: New class (incomplete stub).
2880 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2882 1999-03-09 Tom Tromey <tromey@cygnus.com>
2884 * java/text/MessageFormat.java (MessageFormatElement): Removed
2885 `public' specifiers.
2887 * java/text/DecimalFormat.java (scanFormat): Increment index
2888 before processing exponential format. Fixed a couple typos in
2890 (format): Correct normalization of exponent.
2892 1999-03-08 Tom Tromey <tromey@cygnus.com>
2894 * java/text/SimpleDateFormat.java (parse): Throw
2895 IllegalArgumentException, not ParseException.
2897 1999-03-05 Tom Tromey <tromey@cygnus.com>
2899 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2900 when constructing DateFormatSymbols. Initialize numberFormat
2901 field of superclass.
2903 * java/text/DateFormat.java (equals): Rewrote.
2904 (getAvailableLocales): New method.
2905 (getDateInstance): New methods.
2906 (getDateTimeInstance): Likewise.
2907 (getTimeInstance): Likewise.
2908 (getInstance): New method.
2909 (computeInstance): New method.
2911 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2913 (safeGetResource): New method.
2914 (DateFormatSymbols): Use Locale paramater.
2915 (equals): Now protected.
2916 Made instance variables private.
2918 1999-03-04 Tom Tromey <tromey@cygnus.com>
2920 * java/text/DecimalFormat.java: New file.
2922 * java/text/NumberFormat.java (groupingUsed,
2923 maximumFractionDigits, maximumIntegerDigits,
2924 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2926 (setDecimalSeparatorAlwaysShown, setMultiplier,
2927 setPositivePrefix): Removed.
2928 (setMinimumFractionDigits, setMaximumFractionDigits):
2930 (format): Now final.
2931 Added many new methods.
2933 * Makefile.in: Rebuilt.
2934 * Makefile.am (gnu_files): New macro.
2935 (java_files): Added gnu_files.
2936 (class_gnu_files): New macro.
2937 (class_files): Use it.
2938 (src_gnu_files): New macro.
2939 (gnu.o): New target.
2940 (javao_files): Added gnu.o.
2942 * gnu/gcj/text/LocaleData_en_US.java: New file.
2943 * gnu/gcj/text/LocaleData_en.java: New file.
2944 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2945 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2946 (safeGetString): New method.
2947 (safeGetChar): Likewise.
2949 1999-03-03 Tom Tromey <tromey@cygnus.com>
2951 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2954 * java/text/FieldPosition.java (equals): Don't check for null
2955 object; instanceof does this.
2957 * java/util/Locale.java (clone): New method.
2960 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2962 * doc/cni.sgml: New file.
2964 1999-03-03 Tom Tromey <tromey@cygnus.com>
2966 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2968 * java/text/DecimalFormatSymbols.java: New file.
2970 1999-03-02 Tom Tromey <tromey@cygnus.com>
2972 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2974 * configure: Rebuilt.
2975 * configure.in: Check for sys/filio.h.
2977 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2979 (load): Always throw UnsatisfiedLinkError.
2980 (loadLibrary): Likewise.
2982 1999-03-02 Anthony Green <green@cygnus.com>
2984 * LIBGCJ_LICENSE: New file.
2985 * LIBJAVA_LICENSE: Removed.
2986 * Many files: libjava now libgcj.
2988 1999-03-02 Tom Tromey <tromey@cygnus.com>
2990 * include/java-chartables.h: Rebuilt.
2991 * chartables.pl (print_block): Make table `const'.
2992 (print_numerics): Likewise.
2993 (print_single_map): Likewise.
2994 (print_all_block): Likewise.
2995 (print_case_table): Likewise.
2996 (print_fast_tables): Likewise.
2997 * java/lang/natCharacter.cc (table_search): `table' argument now
3000 1999-03-01 Tom Tromey <tromey@cygnus.com>
3002 * java/util/Date.java (before, after): Inverted logic.
3004 * java/util/Date.java (parse): Handle case where first character
3005 in string is open parenthesis.
3006 (skipParens): Rewrote.
3008 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3009 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3011 * java/util/Date.java (parse): Correctly compute beginning of
3014 * java/util/Hashtable.java (get): Throw NullPointerException if
3016 (containsKey): Likewise.
3018 * java/util/Properties.java (list): Truncate value to 37
3019 characters and add `...'.
3021 * java/lang/Byte.java (parseByte): Pass `radix' to
3024 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3026 Include System.h, PrintStream.h.
3028 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3031 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3033 * configure: Rebuilt.
3034 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3037 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3039 * java/lang/SecurityManager.java: Import java.net.*.
3040 (checkMulticast): New methods.
3042 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3044 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3045 (nat_files): Add java/lang/reflect/natArray.o.
3046 (nat_headers): Add Field.h and NoSuchFieldException.h.
3048 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3049 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3050 (_Jv_FromReflectedField): Fix buglet.
3051 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3052 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3053 * prims.cc (_Jv_Abort): Include message in print-out.
3055 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3056 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3057 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3059 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3060 * include/config.h.in (HAVE_PWD_H): New feature macro.
3061 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3062 user.name, user.home, user.dir.
3064 * java/lang/reflect/Array.java: New class.
3065 * java/lang/reflect/natArray.cc: New native methods.
3066 * include/javaprims.h: Declare java::lang::reflect::Array.
3068 * java/lang/Class.h (getField): New private method. Add friends.
3069 * java/lang/Class.java (getField): Add private overload.
3070 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3071 getDeclaredMethods): Add working implementations.
3072 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3073 Finish implementation, except for access control.
3075 * java/lang/reflect/Modifier.java (toString): New overload.
3076 * include/java-method.h: New file.
3077 * java/lang/reflect/Method.java (index): Replaced by offset field.
3078 Remove various private fields - get them from _Jv_Field instead.
3079 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3080 New method implementations.
3082 * java/text/NumberFormat.java: Add a bunch of methods.
3084 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3086 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3088 1999-02-26 Tom Tromey <tromey@cygnus.com>
3090 * include/config.h.in: Rebuilt.
3091 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3092 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3093 HAVE_GETHOSTBYADDR_R): New defines.
3094 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3095 gethostbyaddr_r if available.
3097 * configure: Rebuilt.
3098 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3100 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3104 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3105 * prims.cc (_Jv_AllocBytesChecked): New function.
3107 * Makefile.in: Rebuilt.
3108 * Makefile.am (SUBDIRS): Removed `test'.
3109 * configure: Rebuilt.
3110 * configure.in: Don't build test/Makefile.
3111 * test/*: Removed all files.
3113 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3115 * java/lang/reflect/Constructor.java: Make class final to match spec.
3116 * java/lang/reflect/Method.java: Ditto.
3118 1999-02-25 Tom Tromey <tromey@cygnus.com>
3120 * java/net/natInetAddress.cc: Include <sys/types.h> before
3122 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3125 * java/net/natInetAddress.cc: Declare gethostname if required.
3126 * include/config.h.in: Rebuilt.
3127 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3128 * configure: Rebuilt.
3129 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3130 declared in unistd.h.
3132 1999-02-24 Tom Tromey <tromey@cygnus.com>
3134 * Makefile.in: Rebuilt.
3135 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3136 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3137 from private to "none".
3139 * include/javaprims.h: Regenerated class declarations with new
3141 * classes.pl (scan): Only generate decls for java.lang, java.io,
3144 1999-02-24 Tom Tromey <tromey@cygnus.com>
3146 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3147 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3149 1999-02-23 Tom Tromey <tromey@cygnus.com>
3151 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3152 not already defined.
3153 * java/io/natFile.cc (_REENTRANT): Only define if not already
3155 * include/config.h.in: Rebuilt.
3156 * acconfig.h (HAVE_BOEHM_GC): New define.
3157 * configure: Rebuilt.
3158 * configure.in: Define HAVE_BOEHM_GC if using it.
3159 * posix-threads.cc: Include boehm-config.h and gc.h if
3161 * include/posix-threads.h: Added explanatory note about Boehm GC.
3163 * java/io/BufferedReader.java (readLine): Only return null when
3164 EOF seen before any characters read. (In particular, an empty
3165 line should not return null.)
3167 * java/io/BufferedInputStream.java (read): Only refill once per
3170 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3171 java.lang.Character.classify12, java.lang.String.hash,
3172 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3173 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3175 * java/text/StringCharacterIterator.java (setIndex): No error if
3177 (next): Check for `pos == end', not `end - 1'.
3178 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3179 for null text in each constructor.
3180 (clone): Fixed order of arguments to constructor.
3182 1999-02-22 Tom Tromey <tromey@cygnus.com>
3184 * include/config.h.in: Rebuilt.
3185 * acconfig.h (HAVE_INET6): New define.
3186 (HAVE_SOCKLEN_T): Likewise.
3187 * java/net/PlainSocketImpl.java: Added copyright header.
3188 * java/net/natPlainSocketImpl.cc: Added copyright header.
3189 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3191 (connect): Likewise.
3193 (socklen_t): New typedef.
3194 (accept): Use socklen_t.
3195 * java/net/natInetAddress.cc: Added copyright header.
3196 (HAVE_GETHOSTNAME): Don't define.
3197 (HAVE_INET_ADDR): Likewise.
3198 (lookup): Fixed typo.
3199 (aton): Don't use `address' as name of local variable.
3200 (lookup): Use HAVE_INET6, not AF_INET6.
3202 * configure: Rebuilt.
3203 * configure.in: Look for functions inet_aton, inet_addr,
3204 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3205 Check for socklen_t typedef.
3207 * exception.cc (__throw): Declare as __noreturn__.
3209 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3211 * Makefile.am, Makefile.in: Also build java/net.
3212 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3214 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3215 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3217 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3218 * include/cni.h (JvMalloc, JvFree): New inline functions.
3219 (JvThrow): Add __noreturn__ attribute.
3220 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3221 (_Jv_Throw): Add __noreturn__ attribute.
3223 * java/net/PlainSocketImpl.java: Init fnum to -1.
3224 * java/net/ServerSocket.java: Add missing throws clauses.
3225 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3226 don't call create on the latter. Instead, other constructors
3227 have to explicitly call SocketImpl.create.
3228 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3229 from size_t to int, to match ::accept prototype.
3230 * java/net/natInetAddress.cc: Use JvFree rather than free.
3233 1999-02-22 Tom Tromey <tromey@cygnus.com>
3235 * include/javaprims.h: Added new classes.
3236 * java/text/StringCharacterIterator.java: New file.
3237 * java/text/CharacterIterator.java: New file.
3239 * java/text/ParseException.java (errorOffset): Now private.
3241 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3243 * java/net: New package.
3244 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3245 Socket.java,SocketException.java,SocketImpl.java,
3246 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3247 natPlainSocketImpl.cc}: New classes.
3249 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3250 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3251 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3252 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3254 * classes.pl: Translate package into "namespace", not "class".
3255 * include/javaprims.h: Update class list, using "namespace".
3257 1999-02-21 Tom Tromey <tromey@cygnus.com>
3259 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3260 Define when appropriate.
3262 1999-02-20 Tom Tromey <tromey@cygnus.com>
3264 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3265 as a single byte and \u07ff as two bytes.
3266 (_Jv_GetStringUTFLength): Likewise.
3267 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3268 with 0x0f, not 0x1f.
3270 1999-02-19 Tom Tromey <tromey@cygnus.com>
3272 * java/io/DataOutputStream.java (writeUTF): When encoding
3273 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3274 * java/io/DataInputStream.java (readUTF): Mask second byte of
3275 3-byte character with 0x3f, not 0x1f.
3277 * java/io/DataInputStream.java (readLong): Cast result of
3278 readUnsignedByte to long before using.
3280 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3283 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3284 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3285 argument to avoid warning.
3286 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3287 argument to avoid warning.
3289 1999-02-18 Tom Tromey <tromey@cygnus.com>
3291 * mauve-libjava: Omit java.io.DataInputOutput and
3292 java.io.Utf8Encoding.
3294 1999-02-17 Tom Tromey <tromey@cygnus.com>
3296 * Makefile.in: Rebuilt.
3297 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3298 * java/io/natFileDescriptorPosix.cc: Include
3299 InterruptedIOException.h, Thread.h.
3300 (write): Throw InterruptedIOException when required.
3302 * posix-threads.cc: Include <signal.h>.
3303 (_Jv_ThreadInterrupt): New function.
3305 (handle_intr): New function.
3306 (_Jv_InitThreads): Register handle_intr via sigaction.
3307 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3308 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3309 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3310 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3312 1999-02-19 Andrew Haley <aph@cygnus.com>
3314 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3316 (ThreadGroup (int)): Set the maximum priority of the initial
3319 1999-02-18 Andrew Haley <aph@cygnus.com>
3321 * java/lang/natClass.cc (forName): Check for the case where a
3322 classname is the name of an array and call FindClassFromSignature
3325 1999-02-18 Andrew Haley <aph@cygnus.com>
3327 * java/lang/StringBuffer (insert (int, String)): Move up any
3328 characters above the insert position and increase the length of
3329 the string buffer by the length of the argument.
3330 (insert (int, char[])): Likewise.
3331 (insert (int, char)): Likewise.
3332 (StringBuffer (String)): The initial capacity of the string buffer
3333 is 16 plus the length of the argument.
3334 (getChars): Add a JDK 1.2 FIXME.
3336 1999-02-18 Andrew Haley <aph@cygnus.com>
3338 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3341 1999-02-18 Andrew Haley <aph@cygnus.com>
3343 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3344 instead of floating-point equality. This is necessary for
3345 correct floating-point Hashtables.
3346 * java/lang/Float.java (equals): Ditto.
3348 1999-02-16 Tom Tromey <tromey@cygnus.com>
3350 * java/util/Properties.java (list): Truncate value to 37
3351 characters and add "...".
3353 1999-02-16 Tom Tromey <tromey@cygnus.com>
3355 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3356 if initCap is negative.
3357 (contains): Implement JDK1.2-style handling of null argument.
3358 (removeElement): Likewise.
3359 (indexOf): Likewise. Also, correctly handle case where idx is
3361 (lastIndexOf): Likewise.
3363 1999-02-16 Tom Tromey <tromey@cygnus.com>
3365 * java/lang/natString.cc (init): Increment source pointer in
3368 1999-02-16 Tom Tromey <tromey@cygnus.com>
3370 * exception.cc: Include NullPointerException.h.
3371 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3373 1999-02-16 Tom Tromey <tromey@cygnus.com>
3375 * Makefile.in: Rebuilt.
3376 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3378 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3380 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3381 we're compiling canadian.
3382 * configure: Regenerated.
3384 1999-02-12 Andrew Haley <aph@cygnus.com>
3386 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3387 deleted from libgcj.
3389 1999-02-12 Tom Tromey <tromey@cygnus.com>
3391 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3392 (_Jv_eh_free): Don't call free.
3393 Don't declare malloc or free.
3395 1999-02-11 Tom Tromey <tromey@cygnus.com>
3397 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3399 1999-02-11 Andrew Haley <aph@cygnus.com>
3401 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3402 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3403 needed by java.lang.*.
3404 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3405 wf_fmod.o: Removed from libjava.a.
3407 1999-02-11 Tom Tromey <tromey@cygnus.com>
3409 * include/javaprims.h: Reverted previous change; with it
3410 exception.cc can't compile.
3412 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3414 * include/config.h.in: Rebuilt.
3415 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3417 * configure: Rebuilt.
3418 * configure.in: Check for sched_yield. Look in thread library for
3419 all thread functions.
3421 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3422 no recursive mutexes.
3423 (_Jv_MutexDestroy): Define when required.
3424 (_Jv_MutexLock): Likewise.
3425 (_Jv_MutexUnlock): Likewise.
3426 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3427 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3428 (_Jv_Mutex_t): New structure.
3429 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3430 (_Jv_MutexLock): Likewise.
3431 (_Jv_MutexUnlock): Likewise.
3433 1999-02-10 Tom Tromey <tromey@cygnus.com>
3435 * aclocal.m4, configure, Makefile.in: Rebuilt.
3436 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3438 * configure.in: Changed to track library changes.
3439 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3440 (AM_CXXFLAGS): Likewise.
3441 (data_DATA): Likewise.
3442 (AM_CFLAGS): Likewise.
3443 (JC1FLAGS): Likewise.
3444 (libgcj_a_SOURCES): Likewise.
3445 (EXTRA_libgcj_a_SOURCES): Likewise.
3446 (libgcj_a_DEPENDENCIES): Likewise.
3447 (libgcj_a_LIBADD): Likewise.
3448 (libgcj.zip): Likewise.
3449 (CLEANFILES): Likewise.
3450 ($(nat_headers)): Likewise.
3451 (java/lang/FirstThread.h): Likewise.
3452 (java/lang/ThreadGroup.h): Likewise.
3453 (java/lang/String.h): Likewise.
3454 (java/lang/reflect/Field.h): Likewise.
3455 (BUILT_SOURCES): Likewise.
3456 (maintainer-check): Likewise.
3457 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3458 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3460 * java/util/natGregorianCalendar.cc (computeFields): Only use
3461 gmtime_r and localtime_r when configured for posix threads.
3463 * java/io/natFile.cc (get_entry): Only use readdir_r when
3464 configured for posix threads.
3466 * java/util/natGregorianCalendar.cc: Update copyright notice.
3467 * java/util/TimeZone.java: Ditto.
3468 * java/util/SimpleTimeZone.java: Ditto.
3470 1999-02-08 Tom Tromey <tromey@cygnus.com>
3472 * java/io/PrintStream.java (line_separator): New constant.
3473 (print): Use line_separator, not `file.separator' property.
3474 (println): Use line_separator.
3476 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3477 when trying to instantiate Class.
3479 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3480 NullPointerException if argument is null.
3482 * java/lang/Thread.java (setName): Throw NullPointerException, not
3483 IllegalArgumentException.
3486 1999-02-08 Andrew Haley <aph@cygnus.com>
3488 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3489 create new Classes with Class.newInstance().
3491 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3492 semiciolon to end of an array Class's signature if the elements of
3493 the array aren't themselves arrays.
3495 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3496 array of objects is always sizeof(jobject), not the size of the
3497 object to which the reference points.
3499 1999-02-08 Tom Tromey <tromey@cygnus.com>
3501 * java/util/BitSet.java (and): Throw NullPointerException when
3506 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3507 if argument is negative.
3508 (clear): Correctly compute `offset'. Throw
3509 IndexOutOfBoundsException when required.
3511 (get): Likewise. Also, return correct value.
3512 (ensure): Changed meaning of argument.
3513 (toString): Wrap contents in `{}'; put spaces after commas.
3514 (hashCode): Don't try to examine elements off the end of array.
3515 (or): Correctly include bits past the end of this bit set.
3518 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3520 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3521 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3523 1999-02-04 Andrew Haley <aph@cygnus.com>
3525 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3526 '/' in signatures to '.'
3527 (Class::getName): Likewise,
3528 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3530 * java/lang/natFirstThread.cc (run): Change '/' in main's
3533 1999-02-03 Andrew Haley <aph@cygnus.com>
3535 * configure.host: -ffloat-store added when compiling libjava on
3536 x86. fdlibm apparently relies on this.
3538 * java/lang/ThreadGroup.java (add): throw an exception if the
3539 ThreadGroup has been destroyed.
3541 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3544 1999-01-27 Tom Tromey <tromey@cygnus.com>
3546 * java/lang/StringBuffer.java (StringBuffer): Handle null
3549 1999-01-21 Tom Tromey <tromey@cygnus.com>
3551 * java/lang/natFirstThread.cc (run): Don't require main to be
3554 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3556 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3558 1999-01-20 Tom Tromey <tromey@cygnus.com>
3560 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3564 (unintern): Likewise.
3565 (_Jv_NewStringUtf8Const): Likewise.
3567 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3568 Character.isLetter, to see if character is self-quoting. Also,
3569 correctly handle quoted characters.
3570 (parse): Fixed typo. Also now throws ParseException.
3572 1999-01-15 Tom Tromey <tromey@cygnus.com>
3574 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3576 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3577 _Jv_SyncInfo has `init' member.
3579 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3582 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3583 IllegalMonitorStateException if unlock fails.
3585 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3587 (_Jv_NewObjectArray): Likewise.
3589 1999-01-14 Tom Tromey <tromey@cygnus.com>
3591 * java/lang/Character.java (isJavaIdentifierPart): Allow
3592 LETTER_NUMBER characters.
3594 * chartables.pl (process_char): Fixed error messages.
3596 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3597 * chartables.pl: Updated comments. Changed detection of non-digit
3598 numeric values (no longer miss \u00b2 and friends).
3600 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3601 currency symbols and connector punctuation.
3602 (isIdentifierIgnorable): Make 7f-9f ignorable.
3604 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3605 (_Jv_NewPrimArray): Likewise.
3606 (SIZE_T_MAX): New define.
3608 * java/lang/ClassLoader.java (system): Now private and final.
3610 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3613 * configure: Rebuilt.
3614 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3616 * exception.cc: Include gansidecl.h.
3618 1999-01-14 Andrew Haley <aph@cygnus.com>
3620 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3621 corrected: they didn't treat -0.0 and NaNs correctly.
3623 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3625 * nogc.cc: Use calloc to zero out memory.
3627 1999-01-11 Tom Tromey <tromey@cygnus.com>
3629 * java/lang/natClass.cc (isInstance): Return false if this class
3630 is primitive, not if class of `obj' is primitive.
3631 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3633 * java/io/SequenceInputStream.java (close): Handle case where `in'
3636 * java/text/DateFormat.java (format): New method.
3638 * mauve-libjava: Omit java.text.DateFormat.
3640 1999-01-08 Tom Tromey <tromey@cygnus.com>
3642 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3644 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3646 (_Jv_CondNotifyAll): Likewise.
3648 * configure: Rebuilt.
3649 * configure.in: Change --enable-source-compilation logic to work
3652 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3654 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3655 and RUNTESTFLAGS from AM_MAKEFLAGS.
3656 * configure.in: AM_RUNTESTFLAGS added.
3657 * configure.host: AM_RUNTESTFLAGS added.
3658 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3659 * configure: rebuilt.
3660 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3662 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3663 argv[] made conditional because embedded targets may not have
3665 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3666 explanatory comments added in call to super.
3668 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3669 exception thrown in the test harness itself added.
3670 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3672 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3674 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3676 1999-01-06 Tom Tromey <tromey@cygnus.com>
3678 * java/io/natFile.cc (get_entry): New function.
3679 (performList): Use get_entry.
3680 * include/config.h.in: Rebuilt.
3681 * acconfig.h (HAVE_READDIR_R): New define.
3682 * configure: Rebuilt.
3683 * configure.in: Look for readdir_r.
3685 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3687 * java/util/natDate.cc: Added copyright header.
3689 1999-01-05 Tom Tromey <tromey@cygnus.com>
3691 * include/config.h.in: Rebuilt.
3692 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3693 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3694 * configure: Rebuilt.
3695 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3696 unlink, and realpath.
3697 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3698 (stat): Conditionalize on HAVE_STAT.
3700 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3701 (performMkdir): Conditionalize on HAVE_MKDIR.
3702 (performRenameTo): Conditionalize on HAVE_RENAME.
3703 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3705 * include/config.h.in: Rebuilt.
3706 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3707 * configure: Rebuilt.
3708 * configure.in: Check for gmtime_r and localtime_r. For cross
3709 builds, assume they exist.
3711 * mauve-libjava: Include java.text.DateFormatSymbols again.
3712 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3713 from setAmPmStrings.
3715 * mauve-libjava: Omit java.text.DateFormatSymbols.
3717 1999-01-04 Tom Tromey <tromey@cygnus.com>
3719 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3721 * java/io/LineNumberReader.java (read): Decrement `count' in
3724 * java/io/BufferedWriter.java (write): Correctly determine when
3725 incoming data would overrun buffer. Flush buffer if write causes
3728 * java/io/BufferedOutputStream.java (write): Increment `count'
3729 after copying data into buffer.
3731 * java/io/FilterOutputStream.java (close): Call flush first.
3733 * java/io/PipedReader.java (read): If read causes `out' to catch
3734 up with `in', then set `in' to -1.
3736 * java/io/LineNumberInputStream.java (read): If no bytes read,
3737 return -1. If no bytes requested, return 0.
3739 * java/lang/StringBuffer.java (insert): If `str' is null, use
3742 1998-12-30 Anthony Green <green@cygnus.com>
3745 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3747 1998-12-23 Tom Tromey <tromey@cygnus.com>
3749 * java/io/PushbackInputStream.java (read): `off' already includes
3752 1998-12-17 Tom Tromey <tromey@cygnus.com>
3754 * Makefile.in: Rebuilt.
3755 * Makefile.am (GCJ_canadian): Include target_alias.
3757 * java/lang/natFirstThread.cc (run): Require main's class to be
3760 1998-12-16 Tom Tromey <tromey@cygnus.com>
3762 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3764 * java/util/ResourceBundle.java (getBundle): Throw
3765 NullPointerException if locale argument is null.
3767 * java/lang/natClass.cc (forName): Throw NullPointerException if
3769 Include NullPointerException.h.
3771 1998-12-14 Tom Tromey <tromey@cygnus.com>
3773 * java/lang/Character.java (Character): Implement Comparable.
3774 (compareTo): New methods.
3776 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3777 correct country and language codes.
3778 (UK, US): New constants.
3779 (setDefault): Language codes are lower-case.
3781 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3782 (getDeclaredConstructors): Likewise.
3783 (getDeclaredField): Likewise.
3784 (getDeclaredFields): Likewise.
3785 (getDeclaredMethod): Likewise.
3786 (getDeclaredMethods): Likewise.
3787 (getField): Likewise.
3788 (getFields): Likewise.
3789 (getMethod): Likewise.
3790 (getMethods): Likewise.
3791 * java/lang/Class.java: Declare new methods.
3792 * java/lang/Class.h: Declare new methods.
3794 * java/lang/natString.cc: Removed `#pragma implementation'.
3795 * include/cni.h (_Jv_GetStringChars): New function.
3796 * Makefile.in: Rebuilt.
3797 * Makefile.am (java/lang/String.h): Don't generate definition for
3800 * java/lang/natString.cc: Added `#pragma implementation'.
3802 * Makefile.in: Rebuilt.
3803 * Makefile.am (libjava.zip): Put build directory first in class
3804 path to avoid bug in compiler.
3806 1998-12-14 Anthony Green <green@cygnus.com>
3808 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3810 * include/javaprims.h: Add EventObject, ListResourceBundle and
3813 1998-12-13 Anthony Green <green@cygnus.com>
3815 * mauve-libjava: Run the ResourceBundle tests.
3817 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3820 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3822 * configure.in, configure: Make --enable-gcj-classes and
3823 --enable-source-compilation the default. (Nervously...) Yeah!
3824 Based on a patch from Tom Tromey.
3826 1998-12-13 Tom Tromey <tromey@cygnus.com>
3828 * java/util/EventObject.java: New file.
3829 * java/util/EventListener.java: New file.
3831 * include/javaprims.h: Updated class declarations.
3832 * Makefile.in: Rebuilt.
3833 * Makefile.am (nat_headers): Added Constructor.h.
3834 (java/lang/String.h): Don't inline String::length().
3835 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3836 * java/lang/Class.java (initializeClass, hackRunInitializers,
3837 hackTrampoline): No need to mark `final'.
3838 (getConstructor, getConstructors): Declare.
3839 * java/lang/reflect/Field.java (equals): New method.
3840 * java/lang/natClass.cc (getConstructor): New method.
3841 (getConstructors): Likewise.
3842 Include Method.h, Field.h, Constructor.h.
3843 * java/lang/reflect/Constructor.java: New file.
3844 * java/lang/reflect/Method.java (toString): No space before open
3846 (equals): Simplified.
3848 1998-12-13 Anthony Green <green@cygnus.com>
3850 * java/util/ResourceBundle.java: New file.
3851 * java/util/ListResourceBundle.java: New file.
3853 1998-12-12 Tom Tromey <tromey@cygnus.com>
3855 * java/lang/System.java (in, out, err): Now buffered streams by
3858 * include/javaprims.h: Updated class declarations.
3859 * Makefile.in: Rebuilt.
3860 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3861 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3863 (nat_files): Added natMethod.o.
3864 * java/lang/reflect/natMethod.cc: New file.
3865 * java/lang/reflect/Field.java (Field): Now extends
3867 * java/lang/reflect/AccessibleObject.java: New file.
3868 * java/lang/reflect/InvocationTargetException.java: New file.
3870 1998-12-11 Tom Tromey <tromey@cygnus.com>
3872 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3873 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3874 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3876 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3878 1998-12-09 Tom Tromey <tromey@cygnus.com>
3880 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3883 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3884 character is already titlecase.
3886 * java/lang/Character.java (isJavaLetter): Follow spec.
3887 (isJavaLetterOrDigit): Likewise.
3889 * java/util/GregorianCalendar.java (gregorianCutover): Append
3892 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3894 1998-12-08 Tom Tromey <tromey@cygnus.com>
3896 * java/lang/reflect/Modifier.java (toString): Replace second
3897 `static' with `synchronized'.
3899 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3900 * java/lang/Object.h (Object::hack12_6): Declare.
3901 * java/lang/Object.java (hack12_6): New function.
3903 1998-12-07 Tom Tromey <tromey@cygnus.com>
3905 * include/java-array.h (__JArray::clone): Removed decl.
3906 * prims.cc (__JArray::clone): Removed.
3907 * java/lang/natObject.cc (clone): Incorporate code to clone an
3910 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3911 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3912 Correctly use dtable_method_count.
3914 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3916 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3919 1998-12-06 Anthony Green <green@cygnus.com>
3921 * mauve-libjava: Don't test ResourceBundle.
3923 1998-12-04 Tom Tromey <tromey@cygnus.com>
3925 More JDK 1.2 spec fixes:
3926 * java/util/Date.java (millis): Now private.
3927 * java/text/DateFormat.java (DateFormat): Constructor now
3929 * java/lang/Void.java (Void): New private constructor.
3930 * java/lang/System.java (System): New private constructor.
3931 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3933 (currentClassLoader): New method.
3934 (currentLoadedClass): New method.
3935 * java/lang/Math.java (Math): New private constructor.
3936 * java/lang/Compiler.java (Compiler): New private constructor.
3937 * java/lang/Class.java (Class): New private constructor.
3938 * java/lang/Double.java (toString): Removed access specifier from
3939 two-argument `toString' method.
3941 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3943 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3944 causes it to be flushed from an fp register (where it may be
3945 longer than double precision) to a double in memory. This is
3946 essential to ensure correct rounding behaviour.
3948 1998-12-04 Tom Tromey <tromey@cygnus.com>
3950 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3953 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3954 explaining apparent divergence from JDK 1.2.
3956 1998-12-04 Per Bothner <bothner@cygnus.com>
3958 * include/no-threads.h: Remove unused parameter names.
3959 This silences a bunch of warnings.
3961 1998-12-04 Tom Tromey <tromey@cygnus.com>
3963 * include/config.h.in: Rebuilt.
3964 * acconfig.h (HAVE_CTIME_R): New symbol.
3966 1998-12-03 Tom Tromey <tromey@cygnus.com>
3968 * mauve-libjava: Added many more categories to reject.
3970 Changes to follow JDK1.2 spec:
3971 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3972 setErr, setIn, setOut): No need to be `final'.
3973 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3974 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3975 * java/lang/Object.java (wait): `nanos' argument is an int.
3976 * java/lang/VirtualMachineError.java: Class is abstract.
3977 * java/lang/ThreadDeath.java: Made constructors public.
3978 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3981 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3983 * java/text/DateFormatSymbols.java (getAmPmStrings,
3984 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3986 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3988 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3989 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3990 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3993 * java/lang/IllegalThreadStateException.java
3994 (IllegalThreadStateException): Changed extending class to match spec.
3996 * java/lang/NumberFormatException.java
3997 (java/lang/NumberFormatException): Changed extending class to match
4000 * java/util/Observer.java (Observer): Changed sig to match JCL.
4002 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4004 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4005 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4006 signature to match JDK 1.1 and 1.2.
4008 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4010 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4011 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4012 * Makefile.in, configure: Rebuilt.
4014 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4017 1998-12-02 Tom Tromey <tromey@cygnus.com>
4019 * mauve-libjava: New file.
4021 The remaining `-W -Wall' fixes:
4022 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4024 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4026 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4028 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4030 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4032 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4034 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4036 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4038 * java/lang/mprec.c (Balloc): Removed unused variable.
4039 (mult): Added parentheses per gcc suggestion.
4040 (pow5mult): Likewise.
4045 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4046 suggestion. Added cast to `int' to avoid signed/unsigned
4048 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4050 (IsAssignableFrom): Likewise.
4051 (_Jv_JNI_GetObjectField): Likewise.
4052 (_Jv_JNI_GetByteField): Likewise.
4053 (_Jv_JNI_GetShortField): Likewise.
4054 (_Jv_JNI_GetIntField): Likewise.
4055 (_Jv_JNI_GetLongField): Likewise.
4056 (_Jv_JNI_GetStringLength): Likewise.
4057 (_Jv_JNI_ToReflectedField): Likewise.
4058 (_Jv_JNI_FromReflectedField): Likewise.
4059 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4061 * Makefile.in: Rebuilt.
4062 * Makefile.am (AM_CFLAGS): Define conditionally.
4063 (WARNINGS): New macro.
4064 (AM_CXXFLAGS): Include WARNINGS.
4065 * configure: Rebuilt.
4066 * configure.in (USING_GCC): New conditional.
4068 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4070 * java/lang/Character.java: Changed classification constants to
4071 type `byte' to match JDK 1.2 docs.
4073 1998-12-01 Tom Tromey <tromey@cygnus.com>
4075 Some fixes to be `-W -Wall' clean:
4076 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4077 (_Jv_MarkArray): Likewise.
4078 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4079 (to_upper_title): Likewise.
4080 (isTitleCase): Likewise.
4081 (toTitleCase): Likewise.
4082 (getNumericValue): Likewise.
4083 (isLowerCase): Likewise.
4084 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4085 (avoids compiler warning).
4086 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4088 (getDeclaringClass): Likewise.
4089 (_Jv_LookupInterfaceMethod): Likewise.
4090 (_Jv_NewClass): Removed name of unused parameter.
4091 * exception.cc (_Jv_type_matcher): Removed unused variable.
4092 (_Jv_setup_eh_info): Removed name of unused parameter.
4093 * prims.cc (_Jv_NewArray): Always return a value.
4094 (_Jv_FindClassFromSignature): Likewise.
4095 * include/java-field.h (getNameUtf8Const): Removed name of unused
4097 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4099 (_Jv_ThreadSetPriority): Likewise.
4101 * java/lang/natString.cc (hashChars): Now static.
4103 * java/lang/FirstThread.java (FirstThread): Now final.
4105 * java/io/File.java (performMkdir, performRenameTo): Now private.
4107 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4108 if no time function defined.
4110 * configure: Rebuilt.
4111 * configure.in: Look for ctime_r, ctime.
4112 * java/util/Date.java (toString): Now native.
4113 * java/util/natDate.cc (toString): Rewrote.
4115 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4117 * Add LDFLAGS line to allow TX39 test cases to link when cross
4120 1998-11-23 Anthony Green <green@cygnus.com>
4122 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4123 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4124 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4125 include/java-array.h, include/java-assert.h, include/java-field.h,
4126 include/javaprims.h, include/jni.h, include/jvm.h,
4127 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4128 include/quick-threads.h, java/io/BufferedInputStream.java,
4129 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4130 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4131 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4132 java/io/CharArrayWriter.java,
4133 java/io/CharConversionException.java, java/io/DataInput.java,
4134 java/io/DataInputStream.java, java/io/DataOutput.java,
4135 java/io/DataOutputStream.java, java/io/EOFException.java,
4136 java/io/File.java, java/io/FileDescriptor.java,
4137 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4138 java/io/FileOutputStream.java, java/io/FileReader.java,
4139 java/io/FileWriter.java, java/io/FilenameFilter.java,
4140 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4141 java/io/FilterReader.java, java/io/FilterWriter.java,
4142 java/io/IOException.java, java/io/InputStream.java,
4143 java/io/InputStreamReader.java,
4144 java/io/InterruptedIOException.java,
4145 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4146 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4147 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4148 java/io/PipedReader.java, java/io/PipedWriter.java,
4149 java/io/PrintStream.java, java/io/PrintWriter.java,
4150 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4151 java/io/RandomAccessFile.java, java/io/Reader.java,
4152 java/io/SequenceInputStream.java, java/io/Serializable.java,
4153 java/io/StreamTokenizer.java,
4154 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4155 java/io/StringWriter.java, java/io/SyncFailedException.java,
4156 java/io/UTFDataFormatException.java,
4157 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4158 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4159 java/io/natFileDescriptorPosix.cc,
4160 java/lang/AbstractMethodError.java,
4161 java/lang/ArithmeticException.java,
4162 java/lang/ArrayIndexOutOfBoundsException.java,
4163 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4164 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4165 java/lang/Class.java, java/lang/ClassCastException.java,
4166 java/lang/ClassCircularityError.java,
4167 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4168 java/lang/ClassNotFoundException.java,
4169 java/lang/CloneNotSupportedException.java,
4170 java/lang/Cloneable.java, java/lang/Comparable.java,
4171 java/lang/Compiler.java, java/lang/Double.java,
4172 java/lang/Error.java, java/lang/Exception.java,
4173 java/lang/ExceptionInInitializerError.java,
4174 java/lang/FirstThread.java, java/lang/Float.java,
4175 java/lang/IllegalAccessError.java,
4176 java/lang/IllegalAccessException.java,
4177 java/lang/IllegalArgumentException.java,
4178 java/lang/IllegalMonitorStateException.java,
4179 java/lang/IllegalStateException.java,
4180 java/lang/IllegalThreadStateException.java,
4181 java/lang/IncompatibleClassChangeError.java,
4182 java/lang/IndexOutOfBoundsException.java,
4183 java/lang/InstantiationError.java,
4184 java/lang/InstantiationException.java, java/lang/Integer.java,
4185 java/lang/InternalError.java, java/lang/InterruptedException.java,
4186 java/lang/LinkageError.java, java/lang/Long.java,
4187 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4188 java/lang/NoClassDefFoundError.java,
4189 java/lang/NoSuchFieldError.java,
4190 java/lang/NoSuchFieldException.java,
4191 java/lang/NoSuchMethodError.java,
4192 java/lang/NoSuchMethodException.java,
4193 java/lang/NullPointerException.java, java/lang/Number.java,
4194 java/lang/NumberFormatException.java, java/lang/Object.h,
4195 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4196 java/lang/Process.java, java/lang/Runnable.java,
4197 java/lang/Runtime.java, java/lang/RuntimeException.java,
4198 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4199 java/lang/Short.java, java/lang/StackOverflowError.java,
4200 java/lang/String.java, java/lang/StringBuffer.java,
4201 java/lang/StringIndexOutOfBoundsException.java,
4202 java/lang/System.java, java/lang/Thread.java,
4203 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4204 java/lang/Throwable.java, java/lang/UnknownError.java,
4205 java/lang/UnsatisfiedLinkError.java,
4206 java/lang/UnsupportedOperationException.java,
4207 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4208 java/lang/Void.java, java/lang/natCharacter.cc,
4209 java/lang/natClass.cc, java/lang/natDouble.cc,
4210 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4211 java/lang/natMath.cc, java/lang/natObject.cc,
4212 java/lang/natRuntime.cc, java/lang/natString.cc,
4213 java/lang/natSystem.cc, java/lang/natThread.cc,
4214 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4215 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4216 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4217 java/text/FieldPosition.java, java/text/Format.java,
4218 java/text/NumberFormat.java, java/text/ParseException.java,
4219 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4220 java/util/BitSet.java, java/util/Calendar.java,
4221 java/util/ConcurrentModificationException.java,
4222 java/util/Date.java, java/util/Dictionary.java,
4223 java/util/EmptyStackException.java, java/util/Enumeration.java,
4224 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4225 java/util/Locale.java, java/util/MissingResourceException.java,
4226 java/util/NoSuchElementException.java, java/util/Observable.java,
4227 java/util/Observer.java, java/util/Properties.java,
4228 java/util/Random.java, java/util/SimpleTimeZone.java,
4229 java/util/Stack.java, java/util/StringTokenizer.java,
4230 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4231 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4234 * exception.cc: Include eh-common.h instead of duplicating
4237 1998-11-23 Tom Tromey <tromey@cygnus.com>
4239 * configure.host: Don't add `-O2' to libjava_flags. Only add
4240 `-Os' to libjava_flags once.
4242 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4244 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4245 * Makefile.in: likewise
4246 * acconfig.h: add ECOS conditional for configure.h
4247 * config.h.in: likewise
4248 * configure: add test for --with-ecos
4249 * configure.in: likewise
4250 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4251 rename call to avoid name clash.
4252 * java/lang/natSystem.cc: add eCos clock support.
4253 * java/util/natGregorianCalendar.cc: add eCos support.
4255 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4257 * Makefile.am, Makefile.in, configure.host: tx39 build option
4260 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4262 * java/io/BufferedReader.java: Added more comments for clarity.
4263 (mark): Used more mnemonic name for local var extraBuffSpace.
4265 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4266 confusion with private method of same name in superclass.
4267 (skipRedundantLF): Set fields in special case to avoid infinite
4268 recursion. Check if markPos has been invalidated in special case.
4269 (readLine): Rewritten to use readLine method of superclass.
4270 (skip): Incorporated code from lineEnd.
4272 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4274 * java/io/BufferedReader.java (readLine): New method.
4275 (lineEnd): new private method.
4276 (mark): Track special case for readLine of getting '\r' at the
4283 * java/io/InputStreamReader.java (read): Return number chars skipped
4284 rather than requested.
4286 * java/lang/StringBuffer.java (append): Update count and differentiate
4287 between field and local variable.
4289 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4290 seconds. Deal with military style time.
4291 (parse): Consistently treat all timezones in minutes until final
4292 calculation. Flag as non-local timezone. Return value in milliseconds.
4293 (setTime): Adjust for year offset from 1900.
4294 (UTC): Adjust for year offset from 1900.
4296 1998-11-17 Tom Tromey <tromey@cygnus.com>
4298 * configure: Rebuilt.
4299 * configure.in: Switch on host, not target.
4301 * Makefile.in: Rebuilt.
4302 * Makefile.am (GCJ_no): New macro.
4303 (GCJ): Use @CANADIAN@.
4304 (GCJH_no): New macro
4305 (GCJH_canadian): New macro.
4306 (GCJH): Use @CANADIAN@.
4307 (ZIP_no): New macro.
4308 (ZIP_canadian): New macro.
4309 (ZIP): Use @CANADIAN@.
4310 * aclocal.m4, configure: Rebuilt.
4311 * configure.in (CANADIAN): Compute and subst.
4313 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4315 * java/io/FileDescriptor.java (finalize): Only close file
4316 descriptor if valid.
4318 1998-11-17 Tom Tromey <tromey@cygnus.com>
4320 * prims.cc (_Jv_InitRuntime): Removed.
4322 1998-11-16 Tom Tromey <tromey@cygnus.com>
4324 * java/io/FileOutputStream.java (close): Only close file
4325 descriptor if valid.
4326 (finalize): New method.
4328 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4329 (_Jv_NewPrimArray): Likewise.
4330 * boehm.cc (_Jv_RegisterFinalizer): Use
4331 GC_REGISTER_FINALIZER_NO_ORDER.
4332 (GC_GENERIC_MALLOC): New define.
4333 (_Jv_AllocObj): Use it.
4334 (_Jv_AllocArray): Likewise.
4335 (_Jv_AllocBytes): Likewise.
4336 (_Jv_MarkObj): Just return if vtbl not set.
4337 (_Jv_MarkArray): Likewise.
4338 (MAYBE_MARK): New macro; use everywhere.
4339 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4341 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4343 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4344 to a jlong before calculation to prevent overflow.
4346 1998-11-16 Tom Tromey <tromey@cygnus.com>
4348 * Makefile.in: Rebuilt.
4349 * Makefile.am (nat_headers): Fixed typo.
4351 1998-11-15 Tom Tromey <tromey@cygnus.com>
4353 * java/lang/Class.h (Class::getName): Removed definition.
4354 * Makefile.in: Rebuilt.
4355 * Makefile.am (nat_headers): Added InstantiationException.h,
4356 NoSuchMethodException.h.
4357 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4358 (init_name): New global.
4359 (hackRunInitializers): Use clinit_name.
4360 Include InstantiationException.h, NoSuchMethodException.h.
4361 (newInstance): Do some error checking (but not all). Call
4363 (forName): Throw exception if class not found.
4364 (getName): New method.
4365 (forName): Transform class name from external format to internal
4366 format before lookup.
4368 1998-11-15 Anthony Green <green@cygnus.com>
4370 * java/lang/Class.h (Class::forName): Method is static.
4372 * java/lang/natClass.cc (newInstance): Add simple implementation.
4375 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4377 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4378 int), for compatibility with jc1.
4380 1998-11-14 Tom Tromey <tromey@cygnus.com>
4382 * include/config.h.in: Rebuilt.
4383 * acconfig.h (LINUX_THREADS): New define.
4384 * configure: Rebuilt.
4385 * configure.in: Define LINUX_THREADS if using POSIX threads on
4386 Linux. Look for pthread_mutexattr_setkind_np function.
4387 * posix-threads.cc (throw_cleanup): New function.
4388 (really_start): Push cleanup function.
4389 (_Jv_ThreadCancel): New function.
4390 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4391 (_Jv_ThreadInitData): Set `exception' field in new structure.
4392 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4394 (_Jv_ThreadWait): New function.
4395 (_Jv_InitThreads): Initialize daemon globals.
4396 (FLAG_DAEMON): New macro.
4397 (really_start): Notify daemon_cond when non-daemon thread exits.
4398 Include <java/lang/System.h>.
4399 (struct starter): `object' field now a thread.
4400 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4401 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4402 (_Jv_ThreadWait): Removed definition.
4403 (_Jv_Thread_t): Added `exception' field.
4404 (_Jv_ThreadCancel): Removed definition.
4406 1998-11-13 Tom Tromey <tromey@cygnus.com>
4408 * Makefile.in: Rebuilt.
4409 * Makefile.am (libjava.zip): Compute javac before changing
4412 * Makefile.in: Rebuilt.
4413 * Makefile.am (libjava.zip): Include directory entries.
4415 * Makefile.in: Rebuilt.
4416 * Makefile.am (expanded): New macro.
4419 1998-11-12 Tom Tromey <tromey@cygnus.com>
4421 * prims.cc (clone): New function.
4422 * include/java-array.h (__JArray::clone): Removed definition.
4424 * java/lang/natObject.cc (clone): Don't assert that class is not
4425 an array; array's `clone' method just calls this one.
4427 * Makefile.in: Rebuilt.
4428 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4429 Now creates zip file. Changed all users.
4431 (data_DATA): New macro.
4433 1998-11-11 Tom Tromey <tromey@cygnus.com>
4435 * configure: Rebuilt.
4436 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4438 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4440 * java/io/InputStream.java (reset): Add msg to thrown exception.
4442 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4444 * java/io/LineNumberInputStream.java: Rewritten.
4446 * java/io/StringBufferInputStream.java: Removed extraneous import.
4448 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4450 * java/io/StringBufferInputStream.java: Rewritten.
4452 * java/util/Date.java (parseMonth): Optimize.
4453 (parseDayOfWeek): Created.
4454 (parse): Optimize to use parseDayOfWeek.
4456 1998-11-11 Tom Tromey <tromey@cygnus.com>
4458 * java/lang/StringBuffer.java (append): Handle case where STR is
4461 * include/javaprims.h: Regenerated class declarations.
4463 * configure: Rebuilt.
4464 * configure.in: Added --enable-gcj-classes,
4465 --enable-single-compilation, --enable-source-compilation flags.
4466 * Makefile.in: Rebuilt.
4467 * Makefile.am (java_io_files): New macro.
4468 (java_lang_files): Likewise.
4469 (java_text_files): Likewise.
4470 (java_util_files): Likewise.
4471 (java_files): Use new macros.
4472 (java-io.o): New target.
4473 (java-lang.o): Likewise.
4474 (java-text.o): Likewise.
4475 (java-util.o): Likewise.
4476 (src_io_files): New macro.
4477 (src_lang_files): Likewise.
4478 (src_text_files): Likewise.
4479 (src_util_files): Likewise.
4480 (class_io_files): New macro.
4481 (class_lang_files): Likewise.
4482 (class_text_files): Likewise.
4483 (class_util_files): Likewise.
4484 (class_files): Use new macros.
4485 (javao_files): Define conditionally.
4486 (.java.o): New target.
4487 ($(javao_files)): New target.
4489 (GCJH): Added $(EXEEXT).
4490 (CLASSPATH_ENV): Removed.
4491 (GCJCOMPILE): New macro.
4493 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4495 * java/util/Date.java (parse): Written from scratch.
4497 1998-11-11 Tom Tromey <tromey@cygnus.com>
4499 * java/lang/Throwable.java (toString): Correct sense of test for
4500 determining when to include detail message in result.
4502 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4505 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4507 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4509 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4510 (_Jv_RegisterClass): Use it.
4511 * include/jvm.h (_Jv_RegisterClasses): Declare.
4512 * java/lang/natObject.cc (init): Removed.
4513 (sync_init): Never call _Jv_InitializeSyncMutex.
4514 (_Jv_InitializeSyncMutex): Don't set `init'.
4515 * prims.cc (JvRunMain): Don't run init functions.
4517 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4519 * java/lang/natClass.cc (initializeClass): Set state before
4520 resolving constants.
4522 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4523 (STATE_RESOLVED): New macro.
4524 (initializeClass): Call resolveConstants.
4525 (hackRunInitializers): Don't call resolveConstants.
4526 (_Jv_FindArrayClass): Move short-circuit return for primitive
4527 element types earlier in function.
4529 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4531 * prims.cc (no_memory): New global.
4532 (_Jv_makeUtf8Const): Throw no_memory.
4533 (_Jv_AllocObject): Likewise.
4534 (_Jv_NewObjectArray): Likewise.
4535 (_Jv_NewPrimArray): Likewise.
4536 (JvRunMain): Initialize no_memory.
4538 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4540 * java/io/FileInputStream.java: Corrected date comment.
4541 * java/io/SequenceInputStream.java: Rewritten.
4543 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4545 * java/lang/FirstThread.java (die): New method.
4546 * java/lang/natFirstThread.cc (die): Removed.
4548 (run): Use `DIE', not `die'.
4550 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4552 * java/io/CharArrayReader.java (read): Move check into synchronized
4553 block to prevent a close while in progress.
4556 * java/io/PushbackReader.java (read): Ditto.
4559 * java/io/StringReader.java (mark): Ditto.
4564 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4566 * java/io/PipedInputStream.java: Updated status.
4567 (connect): Added code to prevent infinite recursion and to
4568 differentiate exception causes.
4569 (read): Added code to differentiate exception causes.
4570 (receive): Made exception pass string with the cause.
4572 * java/io/PipedOutputStream.java: Updated status.
4573 (connect): Added code to call connect at the other end of the pipe.
4575 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4577 * java/io/PipedInputStream.java (connect): Throw exception if
4578 already connected to the same output stream.
4579 (read): Do bounds checking first.
4581 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4583 * java/io/PipedInputStream.java: Added private boolean outClosed.
4584 (available): Removed check if output stream is open.
4585 (close): Mark the buffer as empty so available returns 0.
4586 (read): Check if the output stream was closed and then return EOF
4587 when the buffer is empty.
4588 (receive): Mark the output stream as closed when passed a -1.
4590 * java/io/PipedOutputStream.java (close): Notify the input stream
4591 that there's no more data coming.
4592 (connect): Added a FIXME comment to note more coordination needed
4593 with PipedInputStream.
4594 (flush): Added a FIXME comment to mark what this method might do
4597 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4599 * java/io/PipedInputStream.java: Rewritten.
4601 1998-10-30 Tom Tromey <tromey@cygnus.com>
4603 * java/lang/Throwable.java: Rewrote from scratch.
4605 * java/lang/Class.h (Class): Don't mention newMultiArray.
4606 * prims.cc (newMultiArray): Removed.
4607 (_Jv_NewMultiArray): Removed.
4608 (newArray): Removed.
4609 (new_multi_array): New function.
4610 (_Jv_NewMultiArray): Rewrote from scratch.
4612 * include/javaprims.h: Regenerated class declarations.
4613 * classes.pl (scan): Don't declare PrimClass.
4614 * include/cni.h (JvPrimClass): Use new names for classes.
4615 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4616 added _Jv_PrimClass.
4617 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4618 (_Jv_initPrimClass): Removed.
4619 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4620 (_Jv_AllocObject): Added comment.
4621 (_Jv_NewObjectArray): Likewise.
4622 (_Jv_NewPrimArray): Likewise.
4624 1998-10-29 Tom Tromey <tromey@cygnus.com>
4626 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4627 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4629 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4631 * java/lang/natObject.cc (init): New global.
4632 (sync_init): Call _Jv_InitializeSyncMutex if required.
4634 * Makefile.in: Rebuilt.
4635 * Makefile.am (nat_headers): Added ClassLoader.h.
4636 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4637 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4638 internalAddClass, lookupArray no longer friends.
4639 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4640 _Jv_FindArrayClass now friends.
4641 * java/lang/natClass.cc (HASH_LEN): New macro.
4642 (HASH_UTF): Likewise.
4643 (loaded_classes): New global.
4644 (_Jv_FindClass): New function.
4645 (ClassClass): New define.
4646 (_Jv_FindClassInCache): New function.
4647 (_Jv_RegisterClass): Likewise.
4648 (_Jv_NewClass): Likewise.
4650 (ObjectClass): New define.
4651 (CloneableClass): New define.
4652 * prims.cc (_Jv_FindClass): Removed.
4653 (simpleLookupClass): Removed.
4654 (insertClass): Removed.
4655 (CLASSHASHSZ): Removed.
4656 (classPool): Removed.
4657 (_Jv_RegisterClass): Removed.
4658 (internalAddClass): Removed.
4659 (ClassClass): Removed.
4660 (RuntimeClass): Removed.
4661 (lookupArray): Removed.
4662 (CloneableClass): Removed.
4663 (CLASSMAXSIG): Removed.
4664 Rearranged file to group related functions together.
4665 (_Jv_IsInstanceOf): Moved to natClass.cc.
4666 (abort_final): Removed.
4667 Removed some unused includes.
4668 (classFromSig): Removed.
4669 (_Jv_FindClassFromSignature): New function.
4670 (_Jv_initPrimClass): Renamed.
4671 (getClass): Removed.
4673 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4675 * java/io/FileDescriptor.java (finalize): Throws IOException
4676 instead of Throwable.
4678 * java/io/FileInputStream.java: Rewritten.
4680 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4681 at the end of a comment.
4683 1998-10-29 Tom Tromey <tromey@cygnus.com>
4685 * include/javaprims.h: Regenerated class declarations.
4686 * classes.pl (scan): Don't special-case ClassLoader.
4688 * prims.cc (processClass): Removed.
4689 (_Jv_InitClass): Removed.
4690 Removed all CSTATE_ macros.
4691 (resolveConstants): Removed.
4693 (_Jv_NewMultiArray): Cleaned up.
4694 * Makefile.in: Rebuilt.
4695 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4696 * java/lang/Class.h (Class): Declare new methods. processClass no
4698 * java/lang/Class.java (hackTrampoline): New method.
4699 (initializeClass): Declare.
4700 (hackRunInitializers): Declare.
4701 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4702 (initializeClass): New method.
4703 (hackRunInitializers): New method.
4704 (init_name, void_signature): Moved from prims.cc.
4705 (_Jv_InitClass): New function.
4706 (isAssignableFrom): Don't call processClass.
4707 (STATE_NOTHING): New macro.
4708 (resolveConstants): New function.
4710 (ErrorClass): New define.
4712 * java/lang/Class.java (getClassLoader): Declare.
4713 * java/lang/ClassLoader.java: Rewrote from scratch.
4715 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4716 AbstractMethodError.h, IllegalAccessError.h,
4717 NoClassDefFoundError.h.
4718 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4719 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4720 longer static. Changed return type.
4721 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4722 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4723 * prims.cc (findMethodLocal): Removed.
4724 (processClass): Use _Jv_GetMethodLocal.
4726 1998-10-28 Tom Tromey <tromey@cygnus.com>
4728 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4729 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4731 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4732 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4734 * include/jni.h: Added copyright header.
4735 * include/javaprims.h: Added copyright header.
4736 * include/java-field.h: Added copyright header.
4737 * include/java-array.h: Added copyright header.
4738 * include/cni.h: Added copyright header.
4740 * include/javaprims.h: Regenerated class declarations using
4741 classes.pl; now they are complete.
4742 * classes.pl: New file.
4744 * java/lang/natMath.cc: Include <config.h>.
4745 * java/lang/reflect/natField.cc: Include <config.h>.
4746 * java/util/NativeUtil.java: Removed.
4747 * Makefile.in: Rebuilt.
4748 * Makefile.am (nat_headers): Added Math.h.
4749 * java/lang/Math.h: Removed.
4750 * java/util/natGregorianCalendar.cc: Added copyright header.
4752 * java/lang/natFloat.cc: Added copyright header.
4753 * java/lang/Byte.java: Added copyright header.
4754 * java/lang/Void.java: Added copyright header.
4755 * java/lang/Short.java: Added copyright header.
4757 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4759 * include/javaprims.h (java::io): Added bunch of missing classes.
4761 * java/io/DataInputStream.java (readLine): Added a special case
4762 for handling BufferedInputStream data to reduce the likelihood
4763 of a pushback error.
4764 (skipBytes): Added code to handle negative number of skip bytes.
4766 * java/io/StreamTokenizer.java: Rewritten.
4768 1998-10-28 Tom Tromey <tromey@cygnus.com>
4770 * java/util/natGregorianCalendar.cc (computeFields): Call
4771 getRawOffset as a method.
4773 * include/javaprims.h (java::io): Added FilterOutputStream.
4774 * Makefile.in: Rebuilt.
4775 * Makefile.am (nat_headers): Added PrintStream.h,
4776 FilterOutputStream.h.
4777 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4779 (die): New function.
4780 (run): Die if `main' not found, is not public, or is not static.
4782 * boehm.cc (_Jv_MarkObj): Use new field names.
4783 * include/java-field.h (JvGetFirstInstanceField): Use new field
4785 (JvNumInstanceFields): Likewise.
4786 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4787 (getInterfaces): Likewise.
4788 * prims.cc (CLASS_CONSTANTS): Removed.
4789 (CLASS_CONST_SIZE): Likewise.
4790 (CLASS_CONST_TAG): Likewise.
4791 (CLASS_CONST_DATA): Likewise.
4792 (CLASS_CONST_UTF8): Likewise.
4793 (WORD2UTF): Likewise.
4794 (CLASS_CLASS): Likewise.
4795 (CLASS_PRIM_SIG): Likewise.
4796 (CLASS_ARRAY_CACHE): Likewise.
4797 (HASH_CHARS): Likewise.
4798 (hashClassName): Likewise.
4799 Many changes to use new field names.
4800 * java/lang/Class.h (Class): Renamed fields to track compiler.
4802 1998-10-27 Tom Tromey <tromey@cygnus.com>
4804 * java/lang/natClass.cc: Use #pragma implementation.
4805 (getComponentType): Moved into header.
4806 (getModifiers): Likewise.
4807 (getName): Likewise.
4808 (getSuperclass): Likewise.
4809 (isArray): Likewise.
4810 (isPrimitive): Likewise.
4811 * include/jvm.h (_Jv_FindClass): Declare.
4812 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4813 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4814 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4815 * java/lang/Class.h: Rewrote from scratch.
4816 * prims.cc: Many changes to work with new Class.h.
4817 * include/java-field.h (CLASS_FIELDS): Removed.
4818 (CLASS_SFIELDS): Likewise.
4819 (CLASS_IFIELDS): Likewise.
4820 (CLASS_NFIELDS): Likewise.
4821 (CLASS_NIFIELDS): Likewise.
4822 (CLASS_NSFIELDS): Likewise.
4823 (CLASS_FSIZE): Likewise.
4824 (JvGetFirstInstanceField): Rewrote.
4825 (JvNumInstanceFields): Likewise.
4827 * java/lang/Object.h: Added copyright comment.
4829 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4831 * java/text: New package directory.
4832 * java/text/FieldPosition.java: New class.
4833 * java/text/ParsePosition.java: New class.
4834 * java/text/ParseException.java: New Exception class.
4835 * java/text/Format.java: New class.
4836 * java/text/NumberFormat.java: New (empty placeholder) class.
4837 * java/text/DateFormatSymbols.java: New class (no Locales support).
4838 * java/text/DateFormat.java: New Format class (incomplete).
4839 * java/text/SimpleDateFormat.java: New DateFormat class.
4841 * include/javaprims.h (java::test): Added new package and classes.
4842 * java/util/Calendar.java (clone): New method.
4843 * java/util/Date.java (toString): Added non-native implementation.
4844 (parse): Made public instead of synchronized.
4845 * java/util/natDate.cc (toString): Removed.
4846 * java/util/natGregorianCalendar.cc (computeFields):
4847 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4849 1998-10-27 Tom Tromey <tromey@cygnus.com>
4851 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4853 * prims.cc (lookupArray): Added explanatory comment.
4854 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4855 class. Mark the class of each object.
4856 (_Jv_MarkArray): Mark the object's class.
4858 * configure: Rebuilt.
4859 * configure.in: Create java-gc.h.
4860 * include/boehm-gc.h: New file.
4861 * include/no-gc.h: New file.
4862 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4864 * java/lang/Object.h: Include java-gc.h.
4865 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4866 friends, if defined.
4867 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4869 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4871 1998-10-26 Tom Tromey <tromey@cygnus.com>
4873 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4874 paragraph separators, not numbers.
4876 * java/io/Writer.java (write): Removed write(char) to avoid
4878 * java/util/Properties.java: Rewrote from scratch.
4879 * include/javaprims.h (java::io): Added PrintWriter,
4880 BufferedWriter, PushbackReader.
4882 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4884 * java/lang/System.java: exit() is a static method.
4886 1998-10-26 Tom Tromey <tromey@cygnus.com>
4888 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4890 (_Jv_NewStringUtf8Const): Likewise.
4891 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4892 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4894 * java/lang/Object.h (Object): Add mark_array as friend function.
4895 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4896 _Jv_AllocBytes, to ensure that header is marked.
4897 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4899 (mark_array): Push sync_info field for array.
4901 1998-10-24 Tom Tromey <tromey@cygnus.com>
4903 * java/lang/String.java (String): Updated for StringBuffer
4905 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4907 * java/lang/StringBuffer.java: Renamed fields to conform to
4908 serialization spec: buffer->value, next->count, copy->shared.
4910 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4912 * java/util/TimeZone.java: New class.
4913 * java/util/SimpleTimeZone.java: New class.
4914 * java/util/Locale.java: New file.
4915 * java/util/Calendar.java: Make almost complete.
4916 * java/util/GregorianCalendar.java
4917 * java/util/natGregorianCalendar.cc: New file.
4918 * java/util/Date.java: Re-written from scratch.
4919 * java/util/natDate.cc (setTime): Removed - no longer native.
4920 * include/javaprims.h (java::util): Add new classes.
4921 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4922 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4924 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4926 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4927 returning it as a jint.
4929 1998-10-23 Tom Tromey <tromey@cygnus.com>
4931 * prims.cc (arg_vec, main_group, main_thread): New globals.
4932 (JvRunMain): Use them.
4934 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4936 * java/io/DataInputStream.java: Rewritten.
4938 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4939 tertiary bytes with 0x80 per spec.
4941 1998-10-23 Tom Tromey <tromey@cygnus.com>
4943 * java/lang/String.java (init): Changed name of `copy' argument.
4944 * java/lang/natString.cc (init): Inverted sense of `copy'
4947 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4948 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4949 * boehm.cc (ObjectClass): New define.
4950 (ClassClass): Likewise.
4951 (mark_obj): Special-case Object and Class.
4953 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4955 * java/util/BitSet.java: Rewrote from scratch.
4957 * prims.cc (lookupArray): Removed useless cast.
4959 * java/lang/natObject.cc: Use `#pragma implementation'.
4961 * java/lang/String.java (init): Added `copy' argument.
4962 (String): Look in StringBuffer to find char array.
4963 * java/lang/natString.cc (init): Added `copy' argument.
4964 * java/lang/StringBuffer.java: Rewrote from scratch.
4966 * java/lang/Compiler.java: Rewrote from scratch.
4967 * java/lang/Throwable.java: Don't use NativeLang.
4968 * include/javaprims.h (java::lang): Don't mention NativeLang.
4969 * java/lang/Process.java: Rewrote from scratch.
4970 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4972 (currentClassLoader): Likewise.
4973 (currentLoadedClass): Likewise.
4974 * java/lang/natClass.cc (getClassLoader): Commented out.
4975 * java/lang/Class.java (getClassLoader): Commented out.
4976 * java/lang/Compiler.java: Removed.
4977 * java/lang/NativeLang.java: Removed.
4979 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4980 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4981 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4982 (_Jv_hashUtf8String): Now static.
4983 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4984 name of return type.
4986 * java/lang/Class.h (Class): Declare checkMemberAccess.
4987 * Makefile.in: Rebuilt.
4988 * Makefile.am (nat_headers): Added Member.h.
4989 * java/lang/natClass.cc: Include Member.h.
4990 (getDeclaredClasses): Call checkMemberAccess.
4991 * java/lang/Class.java (checkMemberAccess): Call
4992 SecurityManager.checkMemberAccess.
4994 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4996 * java/lang/SecurityManager.java: Rewritten.
4998 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5000 * java/applet/Applet.java, java/applet/AppletContext.java,
5001 java/applet/AppletStub.java, java/applet/AudioClip.java,
5002 java/awt/AWTError.java, java/awt/AWTException.java,
5003 java/awt/BorderLayout.java, java/awt/Button.java,
5004 java/awt/Canvas.java, java/awt/CardLayout.java,
5005 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5006 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5007 java/awt/Color.java, java/awt/Component.java,
5008 java/awt/Container.java, java/awt/Dialog.java,
5009 java/awt/Dimension.java, java/awt/Event.java,
5010 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5011 java/awt/Font.java, java/awt/FontMetrics.java,
5012 java/awt/Frame.java, java/awt/Graphics.java,
5013 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5014 java/awt/GridLayout.java, java/awt/Image.java,
5015 java/awt/Insets.java, java/awt/Label.java,
5016 java/awt/LayoutManager.java, java/awt/List.java,
5017 java/awt/MediaTracker.java, java/awt/Menu.java,
5018 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5019 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5020 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5021 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5022 java/awt/TextArea.java, java/awt/TextComponent.java,
5023 java/awt/TextField.java, java/awt/Toolkit.java,
5024 java/awt/Window.java, java/awt/image/ColorModel.java,
5025 java/awt/image/CropImageFilter.java,
5026 java/awt/image/DirectColorModel.java,
5027 java/awt/image/FilteredImageSource.java,
5028 java/awt/image/ImageConsumer.java,
5029 java/awt/image/ImageFilter.java,
5030 java/awt/image/ImageObserver.java,
5031 java/awt/image/ImageProducer.java,
5032 java/awt/image/IndexColorModel.java,
5033 java/awt/image/MemoryImageSource.java,
5034 java/awt/image/PixelGrabber.java,
5035 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5036 java/awt/peer/CanvasPeer.java,
5037 java/awt/peer/CheckboxMenuItemPeer.java,
5038 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5039 java/awt/peer/ComponentPeer.java,
5040 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5041 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5042 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5043 java/awt/peer/MenuBarPeer.java,
5044 java/awt/peer/MenuComponentPeer.java,
5045 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5046 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5047 java/awt/peer/TextAreaPeer.java,
5048 java/awt/peer/TextComponentPeer.java,
5049 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5050 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5051 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5052 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5053 java/net/MalformedURLException.java, java/net/NativeNet.java,
5054 java/net/ProtocolException.java, java/net/ServerSocket.java,
5055 java/net/Socket.java, java/net/SocketException.java,
5056 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5057 java/net/URL.java, java/net/URLConnection.java,
5058 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5059 java/net/URLStreamHandlerFactory.java,
5060 java/net/UnknownHostException.java,
5061 java/net/UnknownServiceException.java: Removed.
5063 1998-10-22 Tom Tromey <tromey@cygnus.com>
5065 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5066 finalizer is not Object.finalize.
5067 (internalAddClass): Don't set `final' member of class.
5068 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5069 other places that know about finalize() location.
5070 * java/lang/Class.h (Class): Removed `final' field.
5072 * aclocal.m4, configure: Rebuilt.
5073 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5074 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5076 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5077 * Makefile.in: Rebuilt.
5078 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5080 1998-10-21 Tom Tromey <tromey@cygnus.com>
5082 * java/lang/Object.java (finalize): Move to be first method in
5085 * configure: Rebuilt.
5086 * configure.in (GCINCS): Include contents of boehm-cflags file.
5088 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5090 * java/lang/ArrayIndexOutOfBoundsException.java
5091 (ArrayIndexOutOfBoundsException): Fixed string literal.
5092 * java/lang/StringIndexOutOfBoundsException.java
5093 (StringIndexOutOfBoundsException): Fixed string literal.
5095 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5097 * natFileDescriptorEcos.cc added.
5098 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5100 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5102 * acconfig.h: test for __int32_t and __uint32_t added.
5103 * include/config.h.in: test for __int32_t and __uint32_t added.
5104 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5105 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5106 * configure.in: test for __int32_t and __uint32_t added.
5107 * configure: test for __int32_t and __uint32_t added.
5109 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5111 * configure.in: Test for --enable ecos and link
5112 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5113 natFileDescriptorPosix.cc
5115 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5117 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5119 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5122 * java/io/CharArrayReader.java (close): Synchronize on lock
5123 object per Reader contract.
5124 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5125 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5126 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5127 Ensure that arg passed in isn't negative.
5129 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5130 constructing the superclass.
5132 * java/io/PushbackReader.java (close): Synchronize on lock
5133 object per Reader contract.
5134 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5135 (ready): Synchronize on lock obj. Throw IOException if reader
5137 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5138 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5139 Ensure that arg passed in isn't negative.
5140 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5142 * java/io/StringReader.java: Created.
5144 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5146 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5148 (read): Removed synchronized modifier to match JCL.
5149 (reset): Removed synchronized modifier to match JCL.
5150 (skip): Removed synchronized modifier to match JCL.
5152 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5154 * java/io/PushbackReader.java (PushbackReader): Made
5155 constructors public.
5157 1998-10-17 Tom Tromey <tromey@cygnus.com>
5159 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5160 constructors public.
5162 1998-10-16 Anthony Green <green@cygnus.com>
5164 * aclocal.m4, configure: Rebuilt.
5165 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5167 * configure.host: Rewrote.
5168 * Makefile.in: Rebuilt.
5169 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5170 (AM_CFLAGS): New macro.
5171 ($(c_files)): Use COMPILE macro.
5172 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5173 automake problem(s).
5175 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5177 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5179 * java/io/CharArrayReader.java: Created.
5181 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5183 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5184 size check to allow 0 per JCL.
5186 * java/io/PushbackReader.java: Created.
5188 1998-10-16 Tom Tromey <tromey@cygnus.com>
5190 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5191 <sys/time.h> includes.
5192 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5193 * include/no-threads.h: Conditionalize <unistd.h> include on
5196 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5198 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5201 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5203 * java/io/FilterReader.java: Created.
5205 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5207 * java/io/PushbackInputStream.java: Rewritten.
5209 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5210 that size passed to constructor is legal.
5211 (read): Check that args passed in are legal.
5212 (skip): Rewritten to get rid of the temporary buffer.
5213 (refill): Added marklimit check to grow the buffer.
5215 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5217 (bytesAvail): Removed.
5218 (read): Changed bytesAvail to Math.min.
5219 (skip): Changed bytesAvail to Math.min.
5221 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5222 from the throws clause.
5223 (skip): Rewritten to use a temporary buffer.
5225 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5227 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5230 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5232 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5233 to write the double one word at a time.
5235 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5237 * java/io/BufferedInputStream.java: Rewritten.
5239 1998-10-12 Tom Tromey <tromey@cygnus.com>
5241 * jni.cc: Include config.h and stddef.h.
5243 * java/lang/Class.h (_dispatchTable): Removed again.
5244 Removed all ACC_* defines again.
5246 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5248 * Makefile.am (nat_files): Add netField.o.
5249 (libjava_a_SOURCES): Add jni.cc.
5250 (java/lang/reflect/Field.h): New rule.
5251 * Makefile.in: Re-generated.
5252 * include/javaprims.h: Add some extra class and typedefs.
5253 * include/jni.h: New file.
5256 * include/java-field.h: New file.
5257 * include/jvm.h: #include <java-field.h>.
5258 * boehm.cc: #include <java-field.h>.
5259 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5260 * java/lang/reflect/Member.java: New class.
5261 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5262 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5264 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5266 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5267 testsuite/Makefile.in: Rebuilt.
5268 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5269 * configure.host: Created.
5271 1998-10-10 Tom Tromey <tromey@cygnus.com>
5273 * java/lang/natObject.cc (sync_init): Always allocate a new
5276 1998-10-09 Tom Tromey <tromey@cygnus.com>
5278 * java/io/ByteArrayInputStream.java (mark): Renamed from
5281 * java/io/FileOutputStream.java (finalize): Removed.
5282 * java/io/FileDescriptor.java (finalize): New method.
5284 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5286 * ByteArrayInputStream.java: Corrected status comment.
5288 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5290 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5292 1998-10-08 Tom Tromey <tromey@cygnus.com>
5294 * prims.cc (lookupArray): Use static array to initialize list of
5297 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5299 * prims.cc (lookupArray): Initialize the msize for new
5302 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5304 * configure: Rebuilt.
5305 * configure.in: Check for fsync and sleep.
5306 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5308 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5309 HAVE_SLEEP. Include config.h.
5311 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5312 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5315 1998-10-08 Tom Tromey <tromey@cygnus.com>
5317 * java/io/natFile.cc: Don't include SecurityManager.h.
5318 (performList): Renamed.
5319 (performMkdir): Likewise.
5320 (performRenameTo): Likewise.
5321 (performDelete): Likewise.
5323 * java/io/File.java (performDelete): Renamed from natDelete.
5324 (list): Now written in Java.
5325 (performList): New method.
5326 (performMkdir): New method.
5327 (mkdir): Now written in Java.
5328 (performRenameTo): New method.
5329 (renameTo): Now written in Java.
5331 1998-10-06 Tom Tromey <tromey@cygnus.com>
5333 * Makefile.in: Rebuilt.
5334 * Makefile.am (ETAGS_ARGS): New macro.
5335 (TAGS_DEPENDENCIES): Likewise.
5337 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5339 * Makefile.in: Rebuilt.
5340 * Makefile.am: Use -classpath option with javac.
5342 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5344 * java/io/FileOutputStream.java (finalize): Call
5347 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5349 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5351 * java/lang/mprec.c: Ditto.
5353 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5356 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5358 * java/io/InputStream.java (skip): Make local var i a long.
5360 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5362 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5363 * prims.cc (lookupArray): Use memcpy, not memmove.
5364 * include/config.h.in: Rebuilt.
5365 * acconfig.h (HAVE_MEMCPY): Added.
5366 * configure: Rebuilt.
5367 * configure.in: Check for memcpy again.
5369 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5370 String.compareTo, not ==.
5372 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5373 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5374 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5375 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5376 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5377 into new array's dtable.
5378 (_Jv_AllocObject): Use _Jv_DispatchTable.
5379 (_Jv_NewPrimArray): Likewise.
5380 (_Jv_NewObjectArray): Likewise.
5382 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5384 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5385 offending index value.
5386 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5388 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5389 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5391 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5393 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5395 * java/io/OutputStream.java (write): Use off and len parameters to
5396 output partial byte array.
5398 * java/io/BufferedReader.java, java/io/FileReader.java,
5399 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5400 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5401 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5402 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5404 * include/javaprims.h (java::lang): Added
5405 ExceptionInInitializerError, IllegalStateException,
5406 NoSuchFieldException, and UnsupportedOperationException.
5408 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5410 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5413 * include/java-array.h (__JArray): Added clone method.
5414 * prims.cc (CloneableClass): New define.
5415 (lookupArray): Initialize array class to indicate that it
5416 implements Cloneable.
5418 * java/lang/Class.h: Removed all ACC_* defines.
5419 * prims.cc: Include Modifier.h.
5420 (_Jv_LookupInterfaceMethod): Use methods in
5421 java.lang.reflect.Modifier, not ACC_ defines.
5423 * java/lang/Class.h (Class): Declare getClasses,
5424 getDeclaredClasses, getDeclaringClass, getModifiers,
5425 * java/lang/Class.java: Rewrote from scratch.
5427 * include/javaprims.h (java::lang): Added reflect and
5429 * Makefile.in: Rebuilt.
5430 * Makefile.am (nat_headers): Added Modifier.h.
5432 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5435 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5437 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5438 instead of test and abort.
5440 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5441 remove compiler warning.
5443 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5445 * java/lang/natDouble.cc: zero terminate string.
5446 * strtod.c: Set errno if no digits are found in fraction.
5448 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5450 * java/lang/reflect/Modifier.java: New file.
5452 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5453 * java/lang/VerifyError.java: Rewrote from scratch.
5454 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5455 * java/lang/UnknownError.java: Rewrote from scratch.
5456 * java/lang/StackOverflowError.java: Rewrote from scratch.
5457 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5458 * java/lang/InternalError.java: Rewrote from scratch.
5459 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5460 * java/lang/ExceptionInInitializerError.java: New file.
5461 * java/lang/Error.java: Rewrote from scratch.
5462 * java/lang/ClassFormatError.java: Rewrote from scratch.
5463 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5464 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5465 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5466 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5467 * java/lang/LinkageError.java: Rewrote from scratch.
5468 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5470 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5472 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5473 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5475 * include/cni.h (JvAllocObject): Moved from prims.cc.
5477 * prims.cc (JvAllocObject): Moved to cni.h.
5478 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5479 (finalize_name): Removed.
5481 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5483 * java/lang/Class.h (Class): Added size() method.
5484 * prims.cc (_Jv_MonitorEnter): Removed.
5485 (_Jv_MonitorExit): Removed.
5486 * java/lang/Object.h (JvSyncInfo): Removed.
5487 * Makefile.in: Rebuilt.
5488 * Makefile.am (nat_headers): Added Cloneable.h,
5489 CloneNotSupportedException.h.
5490 * java/lang/Object.h: Rewrote.
5491 * java/lang/natObject.cc: Rewrote from scratch.
5492 * java/lang/Object.java: Rewrote from scratch.
5494 * java/io/natFile.cc: Conditionally include <dirent.h>.
5495 (list): If no <dirent.h>, always return NULL.
5496 * configure: Rebuilt.
5497 * configure.in: Check for dirent.h.
5499 * prims.cc (lookupArray): Don't use sprintf.
5501 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5508 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5509 name conflict with method.
5511 * include/javaprims.h (java::util): Added HashtableEntry.
5513 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5515 * java/util/Hashtable.java: Rewritten.
5517 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5519 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5523 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5526 * posix-threads.cc (_Jv_CondWait): Now returns int.
5527 * include/javaprims.h (java::lang): Added
5528 IllegalMonitorStateException.
5529 * Makefile.in: Rebuilt.
5530 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5531 * include/no-threads.h (_Jv_CondDestroy): Removed.
5532 (_Jv_MutexDestroy): Removed.
5533 (_Jv_CondWait): Now returns int.
5534 (_Jv_CondNotify): Likewise. Added mutex argument.
5535 (_Jv_CondNotifyAll): Likewise.
5536 (_Jv_MutexLock): Always succeed.
5537 (_Jv_MutexUnlock): Likewise.
5538 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5539 (_Jv_HaveMutexDestroy): Define.
5540 (_Jv_CondNotify): Now returns int. Added mutex argument.
5541 (_Jv_CondNotifyAll): Likewise.
5542 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5543 (_Jv_MutexDestroy): Removed.
5544 (_Jv_CondWait): Now returns int.
5545 (_Jv_CondNotify): Likewise. Added mutex argument.
5546 (_Jv_CondNotifyAll): Likewise.
5547 * java/lang/natObject.cc (finalize_sync_info): New function.
5548 (init_mutex): Initialize `init' and register finalizer if
5551 (init_mutex): Use it.
5553 (notifyAll): Use it.
5555 (notify): Throw IllegalMonitorStateException on failure.
5556 (notifyAll): Likewise.
5557 (wait): Likewise. Also, throw InterruptedException if
5559 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5560 InterruptedException.h, IllegalArgumentException.h.
5561 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5563 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5564 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5565 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5566 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5567 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5568 * quick-threads.cc: Renamed all `JvPriv' functions.
5569 * prims.cc: Renamed all `JvPriv' functions.
5570 * posix-threads.cc: Renamed all `JvPriv' functions.
5571 * nogc.cc: Renamed all `JvPriv' functions.
5572 * no-threads.cc: Renamed all `JvPriv' functions.
5573 * boehm.cc: Renamed all `JvPriv' functions.
5574 * include/quick-threads.h: Renamed all `JvPriv' functions.
5575 * include/posix-threads.h: Renamed all `JvPriv' functions.
5576 * include/no-threads.h: Renamed all `JvPriv' functions.
5577 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5579 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5581 (JvPrivCondNotify): Do nothing.
5582 (JvPrivCondNotifyAll): Do nothing.
5584 * prims.cc (processClass): Handle case where state is
5587 * java/lang/natFirstThread.cc: Include <stdlib.h>
5589 * configure: Rebuilt.
5590 * configure.in: Fixed sense of --enable-libjava-debug.
5592 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5593 it can be used afterward by the assertion.
5595 * configure: Rebuilt.
5596 * configure.in: When cross-compiling, assume alloca.
5598 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5599 __builtin_alloca (autoconf docs are wrong here).
5601 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5603 (available): Use `FD_ZERO' (typo fix).
5605 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5607 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5608 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5610 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5611 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5614 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5616 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5618 * java/lang/natDouble.cc: Declare alloca safely.
5620 * configure, include/config.h.in: Rebuilt.
5621 * configure.in: Add alloca check.
5623 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5625 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5626 condition while calling notify.
5627 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5628 (interrupt): Hold mutex for interrupt condition while calling
5631 * java/lang/natString.cc (init): Allocate and try to read `count'
5632 characters, not `count - offset' characters.
5634 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5635 Correctly compute `count'.
5637 * java/lang/Boolean.java (getBoolean): Return false if property
5640 * java/lang/System.java (setProperties): Set prop_init.
5642 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5644 * java/io/PrintStream.java (println): Use line.separator, not
5646 * java/lang/System.java (out, err): Make both autoflush streams.
5647 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5649 * include/config.h.in: Rebuilt.
5650 * acconfig.h (HAVE_MEMCPY): Removed.
5651 * configure: Rebuilt.
5652 * configure.in: Never define HAVE_MEMCPY.
5654 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5656 (_Jv_AllocString): Use JvAllocObject again.
5657 * java/lang/Class.h (thread): New field.
5658 (_Jv_AllocString): No longer a friend.
5659 * prims.cc (processClass): Removed dead code. Changed to more
5660 closely follow the Java Language Specification.
5661 (processClass): Return early if already at the right state.
5663 * prims.cc (JvNewStringUTF): Removed.
5664 * include/cni.h (JvNewStringUTF): New function.
5665 (_Jv_NewStringUTF): Declare as `extern "C"'.
5666 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5668 * java/lang/natDouble.cc: Added copyright info and header
5669 comment. Include <stdlib.h>.
5670 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5671 bytes as are chars in string.
5673 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5675 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5679 * java/lang/System.java (init_properties): Now native.
5680 * java/lang/natSystem.cc (init_properties): New method.
5681 Include java/util/Properties.h.
5683 * Makefile.in: Rebuilt.
5684 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5685 OutputStreamWriter.h, ByteArrayInputStream.h,
5686 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5687 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5688 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5689 Properties.h, Hashtable.h, Dictionary.h.
5692 * include/javaprims.h (java::io): Added Reader, Writer,
5693 InputStreamReader, OutputStreamWriter,
5694 UnsupportedEncodingException, ByteArrayInputStream,
5695 ByteArrayOutputStream, EOFException, SyncFailedException,
5696 PushbackInputStream.
5697 (java::lang): Added Cloneable.
5698 (java::util): Added NoSuchElementException, VectorEnumeration,
5699 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5701 * java/io/PipedReader.java: New file.
5703 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5705 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5708 * java/io/io-defs.h: Removed.
5710 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5711 (FileInputStream): Use new constructor. Can throw IOException.
5713 * java/lang/System.java (getProperty): Don't throw
5714 NullPointerException.
5716 * java/io/RandomAccessFile.java: Rewrote from scratch.
5718 * java/io/natFileDescriptor.cc: Include EOFException.h.
5720 (length): New method.
5721 (getFilePointer): New method.
5723 (available): New method.
5724 * java/io/FileDescriptor.java (SET, CUR): New constants.
5725 (seek, length, getFilePointer, read, available): New decls.
5727 * java/io/PipedWriter.java: New file.
5728 * java/io/StringWriter.java: New file.
5729 * java/io/CharArrayWriter.java: New file.
5730 * java/io/CharConversionException.java: New file.
5731 * java/io/BufferedWriter.java: New file.
5732 * java/io/FilterWriter.java: New file.
5733 * java/io/FileWriter.java: New file.
5735 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5736 OutputStreamWriter.h, NullPointerException.h,
5737 ByteArrayInputStream.h, InputStreamReader.h.
5738 (getBytes): New method.
5739 (init): Throw NullPointerException.
5740 (init): New function.
5741 * java/lang/String.java (getBytes): Added missing decl.
5742 (getBytes): New method.
5743 (String): Added byte[]-based constructors.
5744 (copyValueOf): Wrote.
5745 (init): Declare variant which takes byte array and encoding.
5746 Import java.io.UnsupportedEncodingException.
5748 * java/io/File.java: Rewrote from scratch.
5749 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5750 * java/io/FileDescriptor.java: Rewrote from scratch.
5751 * java/io/FilenameFilter.java: Rewrote from scratch.
5753 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5755 * java/io/SyncFailedException.java: New file.
5756 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5757 * java/io/InterruptedIOException.java: Rewrote from scratch.
5758 * java/io/FileNotFoundException.java: Rewrote from scratch.
5759 * java/io/EOFException.java: Rewrote from scratch.
5760 * java/io/IOException.java: Rewrote from scratch.
5761 * java/io/PrintStream.java: Rewrote from scratch.
5762 * java/io/DataOutputStream.java: Rewrote from scratch.
5763 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5764 * java/io/FilterOutputStream.java: Rewrote from scratch.
5765 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5766 * java/io/PipedOutputStream.java: Rewrote from scratch.
5767 * java/io/FileOutputStream.java: Rewrote from scratch.
5768 * java/io/OutputStream.java: Rewrote from scratch.
5769 * java/io/DataOutput.java: Rewrote from scratch.
5771 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5773 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5775 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5777 * configure.in: Add --enable-libjava-debug
5779 * Makefile.am (nat_headers): Add java/lang/Float.h and
5782 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5784 * Makefile.in, configure, include/config.h.in: Rebuilt.
5786 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5788 * java/lang/Float.java: Rewritten
5789 * java/lang/Double.java: Rewritten
5790 * java/lang/natFloat.cc: toString() added.
5791 * java/lang/natDouble.cc: toString() added.
5792 * java/lang/natDouble.cc: doubleValueOf() added.
5793 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5794 java/lang/strtod.c: added.
5795 * ieeefp.h: __sparc added.
5796 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5798 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5800 * include/javaprims.h (java::lang): Added
5801 CloneNotSupportedException.
5803 * java/lang/Object.java (clone): No longer native. Implemented.
5804 * java/lang/natObject.cc (clone): Removed.
5806 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5808 * prims.cc: Don't make definitions `extern "C"'.
5809 (_Jv_RegisterClass): Renamed from registerClass.
5810 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5811 (_Jv_NewArray): Likewise.
5812 (_Jv_NewMultiArray): Likewise.
5813 (_Jv_CheckCast): Likewise.
5814 (_Jv_LookupInterfaceMethod): Likewise.
5815 (_Jv_CheckArrayStore): Likewise.
5816 (_Jv_RegisterClass): Likewise.
5818 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5819 * configure: Rebuilt.
5820 * configure.in: Don't check for fmod; it is provided by the fdlibm
5822 * prims.cc (fmod): Removed.
5824 * java/lang/natString.cc (charAt): Use _Jv_uint.
5825 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5826 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5827 (equalUtf8Consts): Likewise.
5828 (internalAddClass): Use _Jv_uint.
5829 (processClass): Likewise.
5830 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5831 (_Jv_uint): Renamed from uint32.
5832 (struct _Jv_Utf8Const): Changed members to use new type names.
5834 * configure: Rebuilt.
5835 * configure.in: Don't check for memcpy. Require memmove and a way
5837 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5839 (currentTimeMillis): Don't use #error.
5841 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5843 * java/lang/Math.java: static member random renamed to random_ to
5844 avoid conflict with member function of the same name.
5845 * include/javaprims.h: java.util.Random added.
5847 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5849 * include/java-chartables.h: Regenerated.
5850 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5853 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5855 * java/lang/Math.java: Rewritten.
5856 * java/lang/natMath.cc: New file.
5857 * Files added from fdlibm:
5858 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5859 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5860 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5861 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5862 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5863 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5864 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5865 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5866 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5867 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5868 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5869 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5870 java/lang/k_cos.c, java/lang/sf_ceil.c,
5871 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5872 java/lang/ieeefp.h, java/lang/fdlibm.h
5873 * Makefile.am: rules added for compiling C files from fdlibm.
5875 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5877 * chartables.pl: Minor documentation fixes.
5879 * configure: Rebuilt.
5880 * configure.in: Fixed --help output for --enable-fast-character.
5882 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5884 * configure: Rebuilt.
5885 * configure.in: Recognize --enable-fast-character.
5886 * acconfig.h (COMPACT_CHARACTER): New define.
5887 * include/config.h.in: Rebuilt.
5888 * include/java-chartables.h: New file.
5889 * Makefile.in: Rebuilt.
5890 * Makefile.am (nat_files): Added natCharacter.o.
5891 * java/lang/natCharacter.cc: New file.
5892 * chartables.pl (set_attribute): New function.
5893 (@attributes, @second_attributes): New globals.
5894 ($ROMAN_START, $ROMAN_END): Likewise.
5895 (process_char): Call set_attribute when required.
5896 (print_char): Just print hex value.
5897 (print_block): Generate C++ syntax.
5898 (print_numerics): Likewise.
5899 (print_single_map): Likewise.
5900 (print_all_block): Likewise.
5901 (print_case_table): Likewise.
5902 (print_fast_tables): New function.
5903 Generate C++ code suitable for a header file.
5904 * java/lang/Character.java (table_search): Removed.
5905 (digit_value): Now native.
5906 (getNumericValue): Likewise.
5907 (getType): Likewise.
5908 Removed all automatically-generated tables.
5909 (Tamil_Digit_One): Removed.
5910 (isSpaceChar): Now native.
5911 (isTitleCase): Likewise.
5912 (isLowerCase): Likewise.
5913 (isUpperCase): Likewise.
5914 (toLowerCase): Likewise.
5915 (toTitleCase): Likewise.
5916 (toUpperCase): Likewise.
5917 (isDefined): Fixed sense of test.
5919 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5921 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5923 (regionMatches): Likewise.
5925 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5927 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5929 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5931 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5934 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5937 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5939 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5941 * prims.cc (instanceof_class): Removed.
5942 (instanceof_array): Likewise.
5943 (instanceof): Likewise.
5944 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5945 (_Jv_CheckCast): Likewise.
5946 * java/lang/natClass.cc (isAssignableFrom): New method.
5947 * java/lang/Class.java (isAssignableFrom): Now native.
5949 * include/cni.h (JvThrow): Use `extern inline'.
5950 (JvAllocObject): Likewise.
5951 (JvInitClass): Likewise.
5953 * java/lang/natSystem.cc (arraycopy): Only check class of source
5956 * prims.cc (_Jv_CheckArrayStore): Wrote.
5957 (_Jv_MonitorEnter): Prefer `JvThrow'.
5958 Include ArrayStoreException.h.
5959 (_Jv_CheckCast): Indentation cleanup.
5961 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5963 * chartables.pl: New file.
5964 * java/lang/Character.java: Rewrote from scratch.
5966 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5968 * java/lang/ArithmeticException.java,
5969 java/lang/ArrayIndexOutOfBoundsException.java,
5970 java/lang/ArrayStoreException.java,
5971 java/lang/ClassCastException.java,
5972 java/lang/ClassNotFoundException.java,
5973 java/lang/CloneNotSupportedException.java,
5974 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5975 java/lang/IllegalArgumentException.java,
5976 java/lang/IllegalMonitorStateException.java,
5977 java/lang/IllegalThreadStateException.java,
5978 java/lang/IndexOutOfBoundsException.java,
5979 java/lang/InstantiationException.java,
5980 java/lang/InterruptedException.java,
5981 java/lang/NegativeArraySizeException.java,
5982 java/lang/NoSuchMethodException.java,
5983 java/lang/NullPointerException.java,
5984 java/lang/NumberFormatException.java,
5985 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5986 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5988 * java/lang/IllegalStateException.java,
5989 java/lang/NoSuchFieldException.java,
5990 java/lang/UnsupportedOperationException.java: Created.
5992 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5994 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5995 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5997 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5999 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6001 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6003 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6005 * Makefile.in: Rebuilt.
6007 * include/javaprims.h (java::lang): Added
6008 StringIndexOutOfBoundsException.
6010 * java/lang/String.java: Added header comment and FIXME comment for
6011 missing constructors/methods.
6012 (endsWith): Adjusted offset into string to look at just the last chars.
6013 Commented out undocumented method.
6015 * java/lang/natString.cc: Added includes for
6016 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6017 (String::init): Throw StringIndexOutOfBoundsException.
6018 (String::charAt): Throw StringIndexOutOfBoundsException.
6019 (String::substring): Throw StringIndexOutOfBoundsException.
6020 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6021 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6022 (String::compareTo): Return difference/offset between chars/strings.
6024 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6026 * java/lang/Boolean.java (TYPE): Added comment.
6028 * java/lang/Byte.java (decode): Added - commented out until dependent
6029 code for Integer is written.
6030 (compareTo): JDK 1.2 methods written.
6031 (hashCode): Added comment to note that values have been verified.
6033 * java/lang/Short.java (decode): Added - commented out until dependent
6034 code for Integer is written.
6035 (compareTo): JDK 1.2 methods written.
6036 (hashCode): Added comment to note that values have been verified.
6038 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6040 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6042 * include/javaprims.h (java::lang): Added VirtualMachineError,
6044 * Makefile.in: Rebuilt.
6045 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6046 VirtualMachineError.h.
6047 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6048 (lookupArray): Likewise.
6049 (makeUtf8Const): Likewise.
6050 (_Jv_AllocObject): Likewise.
6051 (_Jv_NewObjectArray): Likewise.
6052 Include OutOfMemoryError.h.
6054 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6055 to use JvNewStringLatin1.
6057 * java/io/io-defs.h: Include java/lang/IOException.h.
6058 * Makefile.in: Rebuilt.
6059 * Makefile.am (nat_headers): Added
6060 ArrayIndexOutOfBoundsException.h,
6061 ClassFormatError.h,ClassNotFoundException.h,
6062 ClassCircularityError.h, ClassCastException.h,
6063 IncompatibleClassChangeError.h, AbstractMethodError.h,
6064 IllegalAccessError.h, LinkageError.h, Error.h,
6065 NegativeArraySizeException.h, IOException.h.
6066 * include/cni.h (SignalError): Removed declaration.
6067 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6068 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6069 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6070 (newInstance): Likewise.
6071 (forName): Likewise.
6072 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6074 (read): Use JvThrow, not SignalError.
6079 (open_read): Likewise.
6080 (open_write): Likewise.
6083 (newstr): New function.
6084 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6086 (lastModifiedUnchecked): Likewise.
6087 (lengthUnchecked): Likewise.
6088 * include/javaprims.h (sorry): Removed declaration.
6089 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6090 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6091 ClassCastException, IncompatibleClassChangeError,
6092 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6093 * prims.cc (instanceof_array): Use JvFail, not sorry.
6095 Include ArrayIndexOutOfBoundsException.h,
6096 ClassFormatError.h,ClassNotFoundException.h,
6097 ClassCircularityError.h, ClassCastException.h,
6098 IncompatibleClassChangeError.h, AbstractMethodError.h,
6099 IllegalAccessError.h, NegativeArraySizeException.h.
6100 (_Jv_ThrowBadArrayIndex): Implemented.
6101 (JvNewStringUTF): Use JvFail, not sorry.
6102 (_Jv_FindClass): Likewise.
6103 (_Jv_NewArray): Likewise.
6104 (throwException): Removed.
6105 (getClass): Use JvThrow.
6106 (processClass): Likewise.
6107 (_Jv_NewObjectArray): Likewise.
6108 (_Jv_NewMultiArray): Likewise.
6109 (_Jv_CheckCast): Likewise.
6110 (_Jv_LookupInterfaceMethod): Likewise.
6111 (SignalError): Removed.
6112 (getClass): Use _Jv_NewStringUtf8Const to create String.
6114 * java/lang/natSystem.cc (arraycopy): Throw
6115 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6117 * Makefile.in: Rebuilt.
6118 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6120 * include/java-array.h: Mention gcjh, not gjavah.
6122 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6123 (canReadUnchecked): Likewise.
6124 (canWriteUnchecked): Likewise.
6125 (isFileUnchecked): Likewise.
6126 * java/io/natFileDescriptor.cc: Don't include cni.h.
6128 * java/lang/Thread.java (run__): Declare.
6129 * java/lang/natThread.cc (run__): New method, to avoid compiler
6131 (start): Use run__, not run_.
6133 * java/io/io-defs.h: Include cni.h and jvm.h.
6135 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6137 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6138 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6139 to natString.cc (with suitable renaming, inlines etc).
6140 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6141 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6142 * java/lang/String.h: Removed - now generated using gjavah.
6143 * java/lang/String.java: Re-written from scratch. Many native methods.
6144 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6145 * java/lang/natString.cc: Many functions re-written for "compact
6146 strings" representation, or native java.lang.String methods added.
6147 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6148 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6149 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6150 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6151 * include/cni.h: Add inline method.
6152 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6153 * include/javaprims.h: Moved some stuff frm String.h.
6154 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6155 * Makefile.am (nat_header): Added Character.h and String.h.
6156 (String.h): Add new rule.
6158 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6160 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6162 * posix-threads.cc: Include cni.h, jvm.h.
6163 * quick-threads.cc: Include cni.h, jvm.h.
6164 * nogc.cc: Include cni.h, not javaprims.h.
6165 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6166 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6167 include java-assert.h.
6168 * java/lang/natSystem.cc: Include cni.h. Don't include
6170 * java/lang/natRuntime.cc: Include cni.h. Don't include
6172 * prims.cc: Rearranged #include ordering. Don't include
6173 java-array.h or java-assert.h.
6174 * boehm.cc: Include config.h, cni.h.
6175 * exception.cc: Include config.h, cni.h.
6176 * include/jvm.h: Include java-assert.h.
6177 * include/cni.h: Include java/lang/Object.h. Don't include
6178 java-threads.h or java-array.h.
6180 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6182 * java/lang/Boolean.java: Rewritten.
6184 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6186 * java/lang/natFirstThread.cc (main_func): New typedef.
6187 (run): Use main_func, not JvPrivThreadStartFunc.
6188 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6190 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6192 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6195 Can't throw Java exceptions with C++ `throw':
6196 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6197 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6198 (setPriority): Likewise.
6202 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6203 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6205 Can't catch Java exceptions from C++:
6206 * java/lang/natThread.cc (finish_): New method.
6208 * java/lang/Thread.java (run_): Rewrote in Java.
6209 (finish_): New native method.
6211 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6213 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6215 * include/javaprims.h (java::io): Added Serializable.
6217 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6219 * java/util/EmptyStackException.java,
6220 java/util/NoSuchElementException.java: Rewritten.
6222 * java/util/ConcurrentModificationException.java,
6223 java/util/MissingResourceException.java,
6224 java/util/TooManyListenersException.java: Created.
6226 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6228 * include/cni.h (JvThrow): New function.
6229 * include/javaprims.h (_Jv_Throw): Declare.
6231 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6233 * java/util/Observable.java: Rewritten.
6235 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6237 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6238 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6239 Include NullPointerException.h.
6241 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6243 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6244 assignability checks. Don't bother using memcpy.
6246 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6248 * include/quick-threads.h (JvPrivThreadWait): New function.
6249 * include/no-threads.h (JvPrivThreadWait): New function.
6250 * include/posix-threads.h (JvPrivThreadWait): New function.
6251 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6253 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6255 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6256 offsets by size of type that is being copied.
6258 * java/lang/natThread.cc (start): Don't pass `object' argument to
6260 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6261 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6263 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6264 always pass thread as object.
6265 * include/quick-threads.h, include/posix-threads.h,
6266 include/no-threads.h (JvPrivThreadStart): Removed `object'
6269 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6271 * java/util/Dictionary.java: Rewritten.
6273 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6275 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6276 (JvPrivThreadDestroy): Likewise.
6278 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6280 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6282 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6284 * java/lang/natSystem.cc: Rewrote from scratch.
6285 * java/lang/System.java: Rewrote from scratch.
6286 * java/lang/Class.h (Class): Declare isAssignableFrom.
6287 * include/javaprims.h (java::lang): Added ArrayStoreException,
6288 IndexOutOfBoundsException.
6289 * Makefile.in: Rebuilt.
6290 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6291 IndexOutOfBoundsException.h.
6292 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6293 * include/jvm.h (_Jv_HashCode): New function.
6295 * java/lang/natThread.cc (suspend): Call checkAccess.
6297 * java/lang/Thread.java (setDaemon): Call checkAccess.
6299 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6301 * java/lang/Runtime.java: Rewrote from scratch.
6302 * java/lang/natRuntime.cc: Rewrote from scratch.
6304 * nogc.cc (JvPrivGCTotalMemory): New function.
6305 (JvPrivGCFreeMemory): Likewise.
6306 (total): New global.
6307 (JvPrivAllocObj): Increment total.
6308 (JvPrivAllocArray): Likewise.
6309 (JvPrivAllocBytes): Likewise.
6310 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6311 * boehm.cc (JvPrivGCTotalMemory): New function.
6312 (sum_blocks): Likewise.
6313 (JvPrivGCFreeMemory): Likewise.
6315 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6317 * include/javaprims.h (java::lang): Added FirstThread.
6318 * java/lang/natFirstThread.cc: New file.
6319 * java/lang/FirstThread.java: New file.
6320 * prims.cc (main_signature): Removed.
6321 (main_name): Removed.
6322 #include FirstThread.h.
6323 * Makefile.in: Rebuilt.
6324 * Makefile.am (TFRIEND): Removed.
6325 (java/lang/Thread.h): Likewise.
6326 (FTFRIEND): New macro.
6327 (java/lang/FirstThread.h): New target.
6328 (nat_files): Added natFirstThread.o.
6329 (nat_headers): Added FirstThread.h.
6330 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6331 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6333 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6337 * java/lang/natThread.cc (start): Synchronize the thread.
6338 (stop): Synchronize the thread.
6340 * java/lang/ThreadDeath.java: Rewrote from scratch.
6342 * Makefile.in: Rebuilt.
6343 * Makefile.am (TGFRIEND): New macro.
6344 (java/lang/ThreadGroup.h): New target.
6345 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6347 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6349 * nogc.cc: Include config.h.
6351 * java/lang/ThreadGroup.java: Rewrote from scratch.
6353 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6355 * java/lang/Thread.java (checkAccess): Only call in to security
6356 manager if it exists.
6357 (Thread): Don't check access when creating the first thread. Add
6358 this thread to the appropriate ThreadGroup.
6360 * java/lang/natThread.cc (run_): Call uncaughtException method on
6363 * java/lang/Runnable.java: Rewrote from scratch.
6364 * java/lang/Thread.java: Updated copyright comment to correct
6367 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6369 * java/util/Random.java: Rewritten.
6371 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6373 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6374 trailing 0 in array[].
6376 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6378 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6379 and RUNTESTFLAGS from AM_MAKEFLAGS.
6380 (SUBDIRS): Conditionally include testsuite.
6381 * Makefile.in: Rebuilt.
6383 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6385 * java/lang/Object.h: Include java-assert.h.
6387 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6389 * Makefile.am: Add testsuite directory.
6390 * configure.in: Build testsuite/Makefile.
6391 * Makefile.in, configure: Rebuilt.
6393 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6395 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6396 * include/jvm.h (_Jv_StartFirstThread): Declare.
6398 * include/javaprims.h (java::lang): Added Exception,
6401 * Makefile.in: Rebuilt.
6402 * Makefile.am (nat_headers): Added NullPointerException.h,
6403 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6404 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6405 (java/lang/Thread.h): New target.
6406 (TFRIEND): New macro
6408 * include/java-assert.h (JvFail): Use 0 and not NULL.
6410 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6411 instead of assuming we are a friend of Thread.
6412 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6413 instead of assuming we are a friend of Thread.
6415 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6417 * java/lang/natThread.cc: Rewrote from scratch.
6418 * java/lang/Thread.java: Rewrote from scratch.
6419 * prims.cc (JvRunMain): Use new Thread constructor.
6420 * include/javaprims.h (java::lang): Added InterruptedException.
6421 * Makefile.in: Rebuilt.
6422 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6423 * java/lang/Thread.h: Removed.
6424 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6425 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6427 * posix-threads.cc (JvPrivThreadJoin): Removed.
6428 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6429 (really_start): Don't notify join_cond.
6430 (JvPrivThreadStart): Added `data' argument.
6431 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6432 (JvPrivThreadJoin): Likewise.
6433 Use JvFail instead of sorry.
6434 (JvPrivThreadSuspend): Removed.
6435 (JvPrivThreadResume): Removed.
6436 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6437 (JvPrivThreadJoin): Likewise.
6438 (JvPrivThreadSuspend): Use JvFail.
6439 (JvPrivThreadResume): Likewise.
6440 (JvPrivThreadSuspend): Removed.
6441 (JvPrivThreadResume): Likewise.
6442 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6443 (JvPrivThread_t): Removed join_mutex, join_cond.
6444 Use JvFail instead of sorry.
6445 (JvPrivThreadSuspend): Removed.
6446 (JvPrivThreadResume): Likewise.
6448 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6450 * java/util/Observer.java: Rewritten
6451 * java/util/Enumeration.java: Rewritten
6453 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6455 * java/util/StringTokenizer.java: Rewritten
6456 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6457 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6458 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6460 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6462 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6465 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6466 Include java-assert.h.
6467 * include/java-assert.h: New file.
6468 * prims.cc (_Jv_Abort): New function.
6469 Include java-assert.h, not assert.h.
6470 (_Jv_MonitorExit): Use JvAssert.
6471 (resolveConstants): Likewise.
6472 (processClass): Likewise.
6473 (JvRunMain): Assert that method is found.
6475 * configure: Rebuilt.
6476 * configure.in: Check for test subdir.
6477 * Makefile.in: Rebuilt.
6478 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6480 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6481 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6483 * prims.cc (resolveConstants): Removed unused variables.
6484 (processClass): Likewise.
6486 * include/quick-threads.h (JvPrivThreadCurrent): Use
6488 * quick-threads.cc (destroy_data): New function.
6489 (JvPrivInitThreads): Create key.
6490 (JvPrivThreadKey): New global.
6491 (JvPrivThreadStart): Use coop_setspecific.
6493 * include/quick-threads.h, include/posix-threads.h,
6494 include/no-threads.h, no-threads.cc, quick-threads.cc,
6495 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6497 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6499 * include/no-threads.h (JvPrivThreadInitData): Don't set
6502 * include/quick-threads.h (JvPrivCondWait): coop function now
6504 (JvPrivThreadJoin): Likewise.
6506 * java/lang/Thread.h (Thread): Updated declaration of
6508 * include/quick-threads.h, include/posix-threads.h: Updated
6509 declaration of JvPrivThreadStart.
6510 * include/no-threads.h (JvPrivThreadStart): Changed definition
6512 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6513 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6514 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6516 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6518 * quick-threads.cc (qthrow): New function.
6519 (JvPrivInitThreads): New function.
6520 (started): New global.
6521 (JvPrivThreadStart): Call coop_start if required.
6522 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6523 (JvPrivThreadDestroy): Likewise.
6524 (JvPrivInitThreads): Removed.
6525 * include/posix-threads.h (JvPrivThreadCancel): Added error
6527 * java/lang/natThread.cc (stop_): Pass exception to
6530 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6532 * include/javaprims.h (java::lang): Added
6533 IllegalArgumentException, IllegalThreadStateException, Math,
6534 NullPointerException, ThreadDeath.
6535 (java::util): Added Enumeration.
6537 * Makefile.in: Rebuilt.
6538 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6540 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6542 (threadsv): Renamed from threads to avoid clash in C++ header.
6543 (groupsv): Likewise.
6544 * include/no-threads.h (JvPrivThreadStart): Removed.
6545 * no-threads.cc (JvPrivThreadStart): New function.
6546 * java/lang/Thread.java (Thread): New constructor for internal use.
6547 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6548 (Thread): Declare constructor.
6549 * prims.cc (JvRunMain): Create the initial Thread and
6551 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6552 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6553 Removed `daemon' argument.
6555 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6556 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6558 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6560 * Makefile.in: Rebuilt.
6561 * Makefile.am (INCLUDES): Include THREADINCS.
6563 * configure: Rebuilt.
6564 * configure.in: Recognize `qt' as a threads package.
6566 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6568 * java/util/Stack.java (pop): Null out topmost node for robustness.
6570 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6572 * java/util/Stack.java: Rewritten.
6573 * java/util/Vector.java (isEmpty): Simplified expression.
6575 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6577 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6578 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6580 * include/java-array.h (JvNewObjectArray): Created inline to
6583 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6586 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6588 * java/util/Vector.java: Rewritten.
6589 * java/io/Serializable.java: Created.
6591 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6593 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6594 Infinity is 1/0, not 1/1.
6596 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6598 * configure: Rebuilt.
6599 * configure.in: Removed duplicate AC_ARG_WITH.
6601 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6603 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6605 (_Jv_InitClass): Renamed from soft_initialise_class.
6606 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6607 (_Jv_CheckCast): Renamed from soft_checkcast.
6608 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6609 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6610 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6611 * include/cni.h (JvInitClass): New function.
6612 (_Jv_InitClass): Renamed from soft_initialise_class.
6614 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6616 * configure: Rebuilt.
6617 * configure.in (CXX): Don't set.
6618 * Makefile.in: Rebuilt.
6619 * Makefile.am (AM_CXXFLAGS): New macro.
6621 * Makefile.in: Rebuilt.
6622 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6623 nogc.o): New target.
6625 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6627 (mark_array): Likewise.
6629 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6631 * java/lang/Class.h (JvMethod): Removed some unused fields.
6632 (JvField.info): Removed unused idx union variant.
6634 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6636 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6639 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6641 * configure.in, configure (CXX): Add -fvtable-thunks.
6643 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6645 * java/lang/Object.java (finalize): Move first.
6646 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6647 (Object): Re-arrange order to match Object.java.
6649 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6651 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6652 * java/lang/natString.cc (hashChars): Likewise.
6654 * prims.cc (RuntimeClass): New macro.
6655 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6657 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6659 * Makefile.in: Rebuilt.
6660 * Makefile.am (AM_MAKEFLAGS): New macro.
6662 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6664 * nogc.cc: Include <javaprims.h>.
6666 * Makefile.in: Rebuilt.
6667 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6669 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6671 * exception.cc (terminate): Removed.
6672 (unexpected): Removed.
6674 * configure: Rebuilt.
6675 * configure.in: Handle case where target subdir is ".".
6677 * configure: Rebuilt.
6678 * configure.in: Compute COMPPATH based on --with-target-subdir
6679 option. Added --with-target-subdir and --with-cross-host. Use
6680 --with-cross-host to determine when a cross compiler is in use.
6682 * Makefile.in: Rebuilt.
6683 * Makefile.am (GJAVAH): Include COMPPATH.
6684 * configure: Rebuilt.
6685 * configure.in: Subst COMPPATH.
6687 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6689 * prims.cc (lockMutex): Removed.
6690 (unlockMutex): Likewise.
6691 (processClass): Lock the class using a JvSynchronize object.
6693 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6695 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6696 (gc_free_fixed): Removed.
6697 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6698 freeing old value of strhash.
6700 * exception.cc (_Jv_type_matcher): Cast first argument to
6703 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6705 * include/java-array.h (jstringArray): New type.
6706 * java/lang/natSystem.cc (setProperty): Removed.
6707 (initProperties): Directly call JvNewStringLatin1 for arguments.
6708 * java/util/natDate.cc: Include java/util/Date.h, not
6711 * java/io/FileDescriptor.java (available): No longer static.
6712 * java/lang/natDouble.cc (Double): Removed class definition.
6713 * include/javaprims.h (java::lang::Number): Declare.
6714 (java::lang::NumberFormatException): Likewise.
6715 (java::io::FilenameFilter): Likewise.
6716 (java::lang::Character): Likewise.
6717 (java::lang::Error): Likewise.
6718 (java::lang::SecurityManager): Likewise.
6719 (java::util::Vector): Likewise.
6720 (java::io::FileNotFoundException): Likewise.
6721 (java::io::IOException): Likewise.
6722 (java::lang::NativeLang): Likewise.
6723 (java::lang::UnsatisfiedLinkError): Likewise.
6724 (java::util::StringTokenizer): Likewise.
6725 (java::io::InputStream, java::io::OutputStream): Likewise.
6726 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6727 (java::util::Hashtable): Likewise.
6728 * Makefile.in: Rebuilt.
6729 * Makefile.am (nat_headers): Added java/lang/Double.h,
6730 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6731 (MOSTLYCLEANFILES): Added nat_headers.
6732 * include/jvm.h: Moved many defines, declarations, and functions
6733 to java/lang/Class.h.
6734 (struct JvSyncInfo): Moved to java/lang/Object.h.
6735 (UTF8_GET): Moved to java/lang/String.h.
6737 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6739 * java/io/io-defs.h: Don't include java-io.h.
6740 * include/java-io.h: Removed.
6741 * include/javaprims.h: Include java::io.
6743 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6745 * include/java-io.h (File): Removed
6746 (FileDescriptor): Likewise.
6748 * java/io/io-defs.h: Include java/io/File.h and
6749 java/io/FileDescriptor.h.
6751 * Makefile.in: Rebuilt.
6752 * Makefile.am (GJAVAH): New macro.
6753 (.class.h): New rule.
6754 (SUFFIXES): Added .h.
6755 (nat_headers): New macro.
6756 ($(nat_headers)): New target.
6757 (BUILT_SOURCES): Added nat_headers.
6759 * include/java-util.h: Removed.
6761 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6763 * include/java-io.h: Changed to avoid java-lang.h.
6764 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6766 * java/lang/natSystem.cc: Include java/lang/System.h, not
6768 * java/lang/natString.cc: Include java/lang/String.h, not
6770 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6772 * java/lang/natClass.cc: Include java/lang/Class.h, not
6774 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6776 * java/lang/natObject.cc: Include java/lang/Object.h, not
6778 * exception.cc: Don't include java-lang.h.
6779 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6780 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6781 * nogc.cc: Don't include java-lang.h.
6782 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6783 * prims.cc (processClass): Don't use `init_type'; just cast to
6785 Include java/lang/Class.h and jvm.h, not java-lang.h.
6786 (JvAllocObject): Wrote single-argument version.
6787 (PrimClass): Inherit from Class.
6788 (initPrimClass): Removed.
6789 * include/java-lang.h: Removed.
6790 * include/jvm.h: Declare struct _dispatchTable.
6791 * include/cni.h: Don't declare _Jv_MonitorEnter,
6792 _Jv_MonitorExit, struct _dispatchTable.
6793 * include/javaprims.h: Moved all typedefs here, from cni.h.
6794 * java/lang/Class.h: New file.
6795 * include/java-array.h: New file.
6796 * java/lang/Object.h: New file.
6798 * prims.cc (classFromSig): Now static.
6800 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6802 * include/cni.h: Don't mention soft_new.
6803 * include/java-lang.h (Object): Don't mention soft_new. Mention
6804 _Jv_NewPrimArray, not newPrimArray.
6805 * prims.cc (soft_new): Removed.
6806 (_Jv_NewArray): Renamed from soft_newarray.
6807 (soft_anewarray): Use JvNewObjectArray.
6808 (newArray): Likewise.
6809 (newRefArray): Removed.
6810 (_Jv_NewPrimArray): Renamed from newPrimArray.
6811 (equalUtf8Consts): Now static.
6812 (soft_instanceof): Removed.
6813 * java/lang/natDouble.cc (doubleToString): Now static.
6815 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6816 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6819 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6821 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6823 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6825 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6826 (JvPrivMutexUnlock): Likewise.
6827 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6828 Return value now jint.
6829 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6832 * Makefile.in: Rebuilt.
6833 * Makefile.am: Don't allow `jV' names.
6834 (maintainer-check): Depend on libjava.a.
6835 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6837 * Makefile.in: Rebuilt.
6838 * Makefile.am (NM): New macro.
6839 (maintainer-check): New target.
6841 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6843 * configure: Rebuilt.
6844 * configure.in: Use --enable-threads, not --enable-gc. Fix
6845 documentation for --enable-threads. Changed option to work like
6846 identical option in gcc/configure.
6848 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6850 * boehm.cc (mark_array): Use JvGetArrayLength.
6852 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6854 * exception.cc: New file (mostly written by Andrew MacLeod),
6855 exception handling support.
6856 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6857 Remove -fexceptions - it is now the default.
6859 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6860 (JvAllocObject): Renamed to _Jv_AllocObject.
6861 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6862 (loadClass): Renamed to _Jv_FindClass.
6863 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6864 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6865 * include/java-lang.h (JvGetArrayLength): New CNI function.
6866 * include/jvm.h (_Jv_FindClass): Added declaration.
6868 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6870 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6872 * java/lang/natClass.cc (getName): Add implementation.
6873 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6875 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6877 * Makefile.in: Rebuilt.
6878 * Makefile.am (.class.o): Added -fexceptions.
6880 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6882 * configure: Rebuilt.
6883 * configure.in: Don't check for __nanosleep.
6884 * posix-threads.cc (nanosleep): Never define.
6886 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6888 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6891 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6893 * java/lang/natThread.cc (enumerate): Uncommented.
6894 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6895 (interrupt): Call it.
6897 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6899 * configure: Rebuilt.
6900 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6902 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6904 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6905 * include/java-lang.h (Thread): Added `interrupted_' method.
6906 * java/lang/Thread.java (interrupted_): New method.
6907 * java/lang/natThread.cc (join): Possibly throw interrupted
6908 exception after join finishes.
6909 (interrupted_): New method.
6910 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6912 (JvPrivThreadJoin): New function.
6913 (really_start): Notify all threads waiting for this thread.
6914 (struct starter): Added `data' member.
6915 (JvPrivThreadStart): Set it.
6916 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6918 (JvPrivThreadJoin): No longer inline.
6919 (JvPrivThreadInterrupt): New function.
6921 * include/no-threads.h (JvPrivThreadSleep): Removed.
6922 * posix-threads.cc (JvPrivThreadSleep): Removed.
6924 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6926 * configure: Rebuilt.
6927 * configure.in (THREADOBJS): Initialize to no-threads.o in
6929 * posix-threads.cc (key): New global.
6930 (JvPrivInitThreads): New function.
6931 (really_start): Set thread-specific data to point to object.
6932 (JvPrivThreadStart): Added `daemon' argument.
6933 (JvPrivThreadSleep): Added `data' argument.
6934 * include/posix-threads.h (JvPrivInitThreads): Removed
6936 (JvPrivThreadCurrent): New function.
6937 * include/no-threads.h (JvPrivThreadInitData): Initialize
6938 JvPrivOnlyThread. Added `thread' argument.
6939 (JvPrivThreadCurrent): New function.
6940 (JvPrivThreadStart): Added `daemon' argument.
6941 * no-threads.cc: New file.
6942 * java/lang/natThread.cc (init_data): New function.
6944 (start): Set `alive' member.
6945 (stop_): Clear `alive' member.
6946 (destroy): Likewise.
6947 (currentThread): Implemented.
6948 (start): Pass `daemon' argument to JvPrivThreadStart.
6950 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6951 (Thread): Added `init_data' method.
6952 * java/lang/Thread.java (alive, data): New instance variables.
6953 (init_data): New private method.
6954 (isAlive): No longer native.
6956 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6958 * include/java-lang.h (JvRunMain): Declare.
6959 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6960 * prims.cc (JvRunMain): New function.
6961 (main_signature, main_name): New globals.
6963 * boehm.cc (mark_array): Use `elements' function and not
6964 operator[] on jarray.
6966 * posix-threads.cc: Include <config.h>. Define nanosleep if
6969 * configure: Rebuilt.
6970 * configure.in: Check for _nanosleep.
6972 * configure: Rebuilt.
6973 * configure.in: Check for pthread_mutexattr_settype.
6975 * include/cni.h (class JvSynchronize): New class.
6976 * java/lang/Thread.java (sleep): Throws InterruptedException.
6977 (join): Throws InterruptedException.
6978 (resume): Not native.
6979 (resume_): New method.
6980 (start): Now synchronized.
6981 (stop_): New method.
6982 (Thread): Synchronize when accessing threadNumber.
6984 * java/lang/natThread.cc (throwException): New macro.
6985 (sleep): Throw InterruptedException.
6988 * include/java-lang.h (Runtime): Added interrupted().
6990 * boehm.cc (call_finalizer): Correctly initialize jobj.
6991 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6993 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6996 * configure: Rebuilt.
6997 * configure.in: Added support for --disable-threads.
6998 * include/no-threads.h: New file.
7000 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7002 * Makefile.in: Rebuilt.
7003 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7004 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7005 (libjava_a_LIBADD): Added THREADOBJS.
7006 * configure: Rebuilt.
7007 * configure.in: Added --with-threads option.
7008 * posix-threads.cc: New file.
7009 * include/posix-threads.h: New file.
7010 * include/java-lang.h (Object): Added static member sync_mutex,
7011 member sync_info, method init_mutex.
7012 (struct JvSyncInfo): New struct.
7013 Include "java-threads.h".
7014 * prims.cc (soft_monitorenter): Wrote.
7015 (soft_monitorexit): Likewise.
7016 * java/lang/natObject.cc (init_mutex): New method.
7020 (sync_mutex): Define.
7021 Include "java-threads.h".
7023 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7025 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7026 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7028 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7030 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7031 Added extern "Java" in places to tell G++ Object is a "Java" type.
7032 Other minor renaming and fixes.
7033 * include/java-io.h (FileDescriptor): Add friend class declarations.
7034 G++ no longer allows non-Java types in method parameters and results
7035 of Java classes. Converted most offending methods to friends.
7036 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7037 * java/lang/natSystem.cc (setProperty): Make friend.
7038 * java/lang/natString.cc, include/java-lang.h (String): Rename
7039 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7040 * include/java-lang.h (JArray): Remove getData and eoprator[].
7041 Add elements friend function instead.
7042 * java/lang/natSystem.cc (arraycopy): Use elements function.
7043 * java/io/natFileDescriptor.cc (read, write): Likewise.
7044 * include/java-lang.h (Object): Remove unused make method.
7045 (System::setProperty(char*,char*)): Turn into friend function.
7046 (Class): Rename newObject by JvAllocObject.
7047 * prims.cc: Update to use JvAllocObject, and elements.
7049 * java/lang/natDouble.cc: Fix double -> jdouble.
7051 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7053 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7055 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7057 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7058 * include/java-lang.h (Runtime): finalize_on_exit and
7059 runFinalizersOnExit now static.
7060 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7062 (finalize_on_exit): Now static.
7064 * boehm.cc (mark_obj): Get class using getClass() method on
7066 (_dispatchTable): Removed.
7068 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7070 * java/io/natFileDescriptor.cc (open_read): Only call open if
7072 (open_write): Likewise.
7074 * Makefile.in: Rebuilt.
7075 * Makefile.am ($(nat_files)): Depend on config.h.
7077 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7079 * prims.cc (ObjectClass): Now a macro; updated for new class name
7081 (StringClass): Likewise.
7082 (ClassClass): Likewise.
7084 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7086 * java/io/natFileDescriptor.cc (available): Do nothing unless
7087 HAVE_SELECT defined.
7088 * java/util/natDate.cc (setTime): Conditional on
7090 (toString): Conditional on HAVE_TIME.
7091 * aclocal.m4, configure: Rebuilt.
7092 * acinclude.m4: New file.
7093 * configure.in: Don't actually call AM_EXEEXT. Call
7094 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7095 --with-target-subdir option. Check for select and open
7098 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7100 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7101 (call_finalizer): Likewise.
7102 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7103 * prims.cc (newObject): Pass actual method pointer to
7104 JvPrivRegisterFinalizer.
7105 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7106 (JvPrivRegisterFinalizer): Changed interface.
7108 * Makefile.in: Rebuilt.
7109 * Makefile.am (MOSTLYCLEANFILES): New macro.
7110 (CLEANFILES): Removed javao_files.
7112 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7114 * nogc.cc: New file.
7115 * Makefile.in: Rebuilt.
7116 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7117 (EXTRA_libjava_a_SOURCES): New macro.
7118 (libjava_a_SOURCES): Removed boehm.cc.
7119 (libjava_a_DEPENDENCIES): Added GCOBJS.
7120 (libjava_a_LIBADD): Likewise.
7121 * configure: Rebuilt.
7122 * configure.in: Added code for --enable-gc=TYPE.
7124 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7126 * boehm.cc (mark_array): Don't further dereference pointer from
7129 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7130 * Makefile.in: Rebuilt.
7131 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7132 one for boehm-gc build directory.
7134 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7136 * include/java-lang.h (finalize_on_exit): New instance variable in
7137 java::lang::Runtime.
7138 (runFinalizersOnExit): New method.
7139 * java/lang/Runtime.java (finalize_on_exit): New instance
7141 (runAllFinalizers_): New private method.
7142 (runFinalizersOnExit): New method.
7143 * boehm.cc (JvPrivRunFinalizers): New function.
7144 (JvPrivRunAllFinalizers): Likewise.
7145 (JvPrivRunGC): Likewise.
7146 * java/lang/natRuntime.cc: Include "jvm.h".
7147 (gc): Call JvPrivRunGC.
7148 (runFinalization): Call JvPrivRunFinalizers.
7149 (runFinalizersOnExit): New method.
7150 (exit_): Call JvPrivRunAllFinalizers if required.
7151 * include/jvm.h: Declare JvPrivRunFinalizers,
7152 JvPrivRunAllFinalizers, JvPrivRunGC.
7154 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7156 * boehm.cc (JvPrivRegisterFinalizer): New function.
7157 (call_finalizer): Likewise.
7158 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7159 * prims.cc (finalize_name): New global.
7160 (newObject): Just call other newObject.
7161 (newObject): Register finalizer if it exists.
7163 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7165 * prims.cc (gc_malloc): Removed.
7166 (makeUtf8Const): Use JvPrivAllocBytes.
7167 (lookupArray): Likewise.
7168 (newPrimArray): Likewise.
7169 (JvNewObjectArray): Use JvPrivAllocArray.
7170 (newObject): Use JvPrivAllocObj.
7171 (newObject): Likewise.
7172 Changed Method -> JvMethod everywhere.
7173 Changed Field -> JvField everywhere.
7174 * include/java-lang.h (Object): Changed type of `fields' to
7176 (jmethodID, jfieldID): New typedefs.
7177 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7179 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7181 (METHOD_NATIVECODE): Moved from java-lang.h.
7182 (class JvField): New class.
7183 (JvGetFirstInstanceField): New function.
7184 (JvFieldIsRef): Likewise.
7185 (JvGetObjectField): Likewise.
7186 (JvNumInstanceFields): Likewise.
7188 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7190 * boehm.cc: New file.
7191 * Makefile.in: Rebuilt.
7192 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7193 (INCLUDES): Added -I options to find boehm-gc files.
7195 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7197 * configure: Rebuilt.
7198 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7200 * Makefile.in: Rebuilt.
7201 * Makefile.am (nat_files): New macro.
7202 (libjava_a_DEPENDENCIES): Use it.
7203 (libjava_a_LIBADD): Likewise.
7204 ($(nat_files)): New static pattern rule.
7205 (class_files): Run separate find to find .class files.
7206 (javao_files): Compute based on class_files.
7207 (BUILT_SOURCES): New macro.
7209 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7211 * Makefile.am (java_files): New macro.
7212 (class_files): Likewise.
7213 (javao_files): Likewise.
7214 (libjava_a_DEPENDENCIES): Include $(javao_files).
7215 (libjava_a_LIBADD): Likewise.
7216 (classes.stamp): Depend on $(java_files); only recompile changed
7219 (CLEANFILES): Don't run find; use macros. Don't mention
7221 (.class.o): New target.
7222 (compiled.stamp): Removed.
7224 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7226 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7227 LineNumberReader}>java: Newly-implemented standard classes.
7229 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7231 * Makefile.in: Rebuilt.
7232 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7234 * Makefile.in: Rebuilt.
7235 * Makefile.am (hack): New macro.
7236 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7238 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7240 * include/config.h.in: New file.
7241 * include/config.h: Removed.
7242 * acconfig.h: New file.
7243 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7244 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7245 libjava_a_LIBADD): New macros.
7246 (INCLUDES): New macro.
7249 (SUFFIXES): Removed.
7251 (libjava.a): Removed.
7253 * configure: Rebuilt.
7254 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7255 Look for headers and functions we require. Create
7258 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7260 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7261 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7262 soft_lookupinterfacemethod): New functions.
7263 (PrimClass): Actually initialize the primitive classes.
7264 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7266 * include/java-util.h: Removed java::util definition.
7267 * include/cni.h: Moved java::util here and added Properties.
7268 Added more function prototypes.
7269 * include/java-lang.h: Added mroe methods and friend declarations.
7270 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7271 * include/jvm.h (strLengthUtf8): Add declaration.
7273 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7275 * java/lang/{Byte,Short,Void}.java: New classes.
7276 * java/lang/Character.java (isJavaIdentifierStart,
7277 JavaIdentifierPart): New static methods.
7278 * java/lang/Number.java (byteValue, shortValue): New methods.
7280 * java/lang/String.java (intern, hashCode): Make native.
7281 * java/lang/natString.cc: New file. Handle the string pool.
7282 * Makefile.am: Build natString.o. Use CXXFLAGS.
7284 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7285 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7286 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7287 * java/lang/System.java (setProperty): New private method.
7288 (initProperties): Take argument, and make native.
7289 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7290 (currentTimeMillis): Make more robust.
7292 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7293 * java/io/UnsupportedEncodingException.java: New exception class.
7295 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7296 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7298 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7300 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7301 * prims.cc: Added bunch of stuff.
7302 * include/cni.h: Added various definitions.
7303 * include/java-lang.h: Added Method, various friends, some macros.
7305 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7306 * java/lang/System.java (arraycopy): Make native.
7308 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7310 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7311 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7312 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7313 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7315 * java/lang/Runtime.java: Declare methods as native instead of
7317 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7318 * java/lang/System.java: Comment out some stuff, for now.
7319 * java/lang/Thread.java: Re-write. Use native methods.
7320 * java/lang/NativeLang.java: Remove most of it.
7322 * java/util/natDate.cc: Native (C++) methods for Date.
7323 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7324 * java/util/Date.java: Complete re-write.
7326 * java/io/io-defs.h: New header file.
7327 * java/io/FileDescriptor.java: Add a bunch of private methods,
7328 mostly moved from NativeIO.java and natNativeIO.cc.
7329 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7330 * java/io/File.java: Use new code.
7331 * java/io/{FileInputStream.java.FileOutputStream.java,
7332 RandomAccessFile.java}: Use new private FileDescriptor methods.
7333 * java/io/NativeIO.java: Removed, no longer used.
7335 * java/io/StreamTokenizer.java (numericChars): Make char array.
7337 * include/*.h: Various header files used by the C++ native code.
7339 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7340 New autoconf+automake-based setup.
7341 * prims.cc: New file for Java "primitives".