Class.h (_getMethods): Declare.
[gcc.git] / libjava / ChangeLog
1 2000-01-05 Tom Tromey <tromey@cygnus.com>
2
3 * java/lang/Class.h (_getMethods): Declare.
4 * java/lang/Class.java (_getMethods): Declare.
5 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6 (getDeclaredClasses): Always return empty array.
7 (_getMethods): New method.
8 (getMethods): Wrote.
9 (getDeclaredMethod): Return `rmethod'.
10 (finit_name): New global.
11 (getDeclaredMethods): Check for finit_name.
12 (_getMethods): Likewise.
13 (getMethod): Only return public methods.
14
15 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
16 jboolean and select correct ffi type on that basis.
17 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
18 Constructor call always has `void' return type.
19
20 2000-01-04 Tom Tromey <tromey@cygnus.com>
21
22 * java/lang/Class.h (getSignature): Updated.
23 * java/lang/Class.java (getSignature): Updated.
24 * java/lang/natClass.cc (getSignature): Added `is_constructor'
25 argument.
26 (getConstructor): Ensure constructor is public.
27 (_getConstructors): Check for public-ness of constructor when
28 `declared' is false, not when it is true.
29
30 2000-01-04 Warren Levy <warrenl@cygnus.com>
31
32 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
33 comment.
34 (receive): Set the sender's address in the DatagramPacket.
35
36 2000-01-04 Tom Tromey <tromey@cygnus.com>
37
38 * java/lang/reflect/natConstructor.cc (newInstance): Pass
39 declaring class as return_type argument to
40 _Jv_CallNonvirtualMethodA.
41 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
42 constructor case, create object and use it as `this' argument.
43 * java/lang/Class.h (_getConstructors): Declare.
44 (_getFields): Declare.
45 * java/lang/Class.java (getConstructors): Wrote.
46 (_getConstructors): New native method.
47 (getDeclaredConstructors): Wrote.
48 (_getFields): Declare new native method.
49 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
50 incorrect comment.
51 (getMethod): Work correctly when class is primitive.
52 (getDeclaredMethods): Likewise. Compute offset using `method',
53 not `mptr'.
54 (getDeclaredMethod): Likewise.
55 (getConstructor): Wrote.
56 (ConstructorClass): New define.
57 (getDeclaredConstructor): Wrote.
58 (_getConstructors): New method.
59 (_getFields): New method.
60 (getFields): Wrote.
61
62 * Makefile.in: Rebuilt.
63 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
64
65 * prims.cc: Remove `#pragma implementation'.
66 * gcj/array.h: Remove `#pragma interface'.
67
68 * prims.cc (_Jv_equaln): New function.
69 * java/lang/Class.java (getSignature): Declare.
70 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
71 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
72 resolve.cc.
73 (getSignature): New method.
74 (getDeclaredMethod): Wrote.
75 (getMethod): Wrote.
76 Include StringBuffer.h.
77 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
78 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
79 a friend.
80 (getSignature): Declare.
81 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
82 (_Jv_equaln): Declare.
83 (_Jv_CallNonvirtualMethodA): Declare.
84 * Makefile.in: Rebuilt.
85 * Makefile.am (nat_source_files): Added natConstructor.cc.
86 (java/lang/reflect/Constructor.h): New target.
87 * java/lang/reflect/natConstructor.cc: New file.
88 * java/lang/reflect/Constructor.java (newInstance): Now native.
89 (declaringClass): Renamed from decl_class.
90 (offset): Renamed from index.
91 (getType): New native method.
92 (getModifiers): Now native.
93 (getParameterTypes): Call getType if required.
94 (hashCode): Include hash code from declaring class.
95 (modifiers): Removed.
96 (toString): Call getType if required.
97 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
98 * java/lang/reflect/natMethod.cc (hack_call): New method.
99 Removed `#if 0' around FFI code.
100 Include <gnu/gcj/RawData.h>.
101 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
102 IllegalArgumentException when argument object and class disagree.
103 (_Jv_GetTypesFromSignature): New function.
104 (getType): Use it.
105 (ObjectClass): New define.
106 (_Jv_CallNonvirtualMethodA): New function.
107 * java/lang/reflect/Method.java (hack_trampoline): New method.
108 (hack_call): New native method.
109
110 1999-12-21 Per Bothner <per@bothner.com>
111
112 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
113 offset in new Method.
114
115 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
116
117 * java/lang/natObject.cc (notify): Throw message with
118 IllegalMonitorStateException.
119 (notifyAll): Ditto.
120 (wait): Ditto.
121 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
122 (isInterrupted_): New function, which does clear interrupt_flag.
123 (interrupt): Use `isInterrupted_'.
124 * java/lang/natThread.cc (interrupt): Add comment.
125 (join): Set `prev' in joiner loop.
126 Change various calls to `isInterrupted' to use `isInterrupted_'.
127 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
128 on linux. Set result to 0 on an interrupt. Test interrupted status
129 of java Thread object directly.
130 FLAG_INTERRUPTED: removed.
131 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
132 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
133 (_Jv_InitThreads): Don't block SIGINT.
134 (_Jv_ThreadWait): Don't configure SIGINT handler.
135
136 1999-12-21 Tom Tromey <tromey@cygnus.com>
137
138 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
139
140 1999-12-20 Tom Tromey <tromey@cygnus.com>
141
142 * java/lang/reflect/Modifier.java (STRICT): New constant.
143 (isStrict): New method.
144 (toString): Added `strict'.
145
146 1999-12-23 Anthony Green <green@cygnus.com>
147
148 * configure: Rebuilt.
149 * configure.in (LIBDATASTARTSPEC): Force data_start in with
150 linker trick.
151
152 1999-12-19 Anthony Green <green@cygnus.com>
153
154 * libgcjdata.c: New file.
155 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
156 * configure: Rebuilt.
157 * configure.in (LIBDATASTARTSPEC): Force data with a known name
158 into the program.
159 * Makefile.in: Rebuilt.
160 * Makefile.am: Build libgcjdata.a.
161
162 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
163 * configure: Rebuilt.
164 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
165 into every program.
166
167 1999-12-17 Tom Tromey <tromey@cygnus.com>
168
169 * java/lang/reflect/Method.java (toString): Call getType if
170 required. Partial fix for PR libgcj/111. From Per Bothner.
171
172 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
173
174 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
175
176 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
177 null String constructor parameter.
178 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
179 for exception messages.
180 BooleanClass: declare.
181 (setOption): Use BooleanClass instead of Class.forName() for
182 instanceof test.
183 (bind): Cast 4th parameter of setsockopt to `char *' for
184 compatibility with older Solaris headers.
185 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
186 sprintf calls for exception messages.
187 BooleanClass, IntegerClass: declare.
188 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
189 for instanceof test.
190
191 1999-12-15 Tom Tromey <tromey@cygnus.com>
192
193 * java/lang/natSystem.cc (init_properties): Don't set user.name or
194 user.home if NO_GETUID defined. Only set user.dir if getcwd
195 exists.
196
197 * include/config.h.in: Rebuilt.
198 * acconfig.h (NO_GETUID): New define.
199 * configure.in: Rebuilt.
200 * configure.in: Define NO_GETUID in cross case. Check for getcwd
201 in native case.
202
203 1999-12-08 Tom Tromey <tromey@cygnus.com>
204
205 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
206 where no recursive mutexes exist. Fixes PR libgcj/117.
207
208 1999-12-05 Anthony Green <green@cygnus.com>
209
210 * include/jvm.h: Declare many functions with
211 __attribute__((__malloc__)).
212 * gcj/javaprims.h: Ditto.
213
214 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
215
216 * THANKS: Giving credit where credit is due.
217
218 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
219
220 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
221 if bindAddr is null.
222 * java/lang/natString.cc (equalsIgnoreCase): return false if
223 anotherString is null.
224 * java/lang/Boolean.java (valueOf): return FALSE if argument is
225 null.
226
227 1999-11-30 Tom Tromey <tromey@cygnus.com>
228
229 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
230 mutex to initialize. Initialize `count' if required.
231 Fixes PR libgcj/98.
232
233 1999-11-27 Per Bothner <per@bothner.com>
234
235 * exception.cc: Remove prototype declarations for malloc and free.
236 These clash with recent versions of glibc, which specifies `throws ()'
237 when __cplusplus is defined. Instead, #include <stdlib.h>.
238
239 1999-11-24 Tom Tromey <tromey@cygnus.com>
240
241 * prims.cc (_Jv_NewObjectArray): Use
242 _Jv_GetArrayElementFromElementType.
243 (_Jv_NewPrimArray): Likewise.
244 * java/lang/natObject.cc (clone): Use
245 _Jv_GetArrayElementFromElementType instead of sizeof.
246 * java/lang/natSystem.cc (arraycopy): Use
247 _Jv_GetArrayElementFromElementType.
248 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
249 function.
250
251 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
252
253 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
254 Exception messages. PR java.net/57.
255 (bind): set SO_REUSEADDR before bind.
256 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
257 overruns. PR java.net/57.
258
259 1999-11-19 Tom Tromey <tromey@cygnus.com>
260
261 * Makefile.am (DIVIDESPEC): Removed.
262 (EXCEPTIONSPEC): Removed.
263
264 1999-11-19 Andrew Haley <aph@cygnus.com>
265
266 * Makefile.am (JCFLAGS): Add -L$(here)
267 (JC1FLAGS): Ditto.
268 * Makefile.in: Rebuild.
269
270 1999-11-18 Tom Tromey <tromey@cygnus.com>
271
272 * java/lang/natDouble.cc: Include <config.h>.
273
274 * include/config.h.in: Rebuilt.
275 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
276 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
277 targets.
278 * configure: Rebuilt.
279 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
280 requested by configure.host. Don't put `-D' option into
281 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
282
283 * configure: Rebuilt.
284 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
285 sjlj-exceptions.
286
287 1999-11-18 Andrew Haley <aph@cygnus.com>
288
289 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
290 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
291 (JC1FLAGS): Ditto.
292 * Makefile.in: Rebuild
293 * acconfig.h: remove SJLJ_EXCEPTIONS
294 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
295 Do not AC_DEFINE SJLJ_EXCEPTIONS.
296 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
297 * gcj/Makefile.in, include/Makefile.in: rebuild.
298 * include/config.h.in: remove SJLJ_EXCEPTIONS.
299
300 1999-11-18 Andrew Haley <aph@cygnus.com>
301
302 * gij.cc (main): Rename label to prevent conflict.
303
304 * exception.cc (_Jv_type_matcher): Don't check the table if we're
305 using setjmp/longjmp exceptions: there isn't one.
306
307 1999-11-17 Andrew Haley <aph@cygnus.com>
308
309 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
310 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
311 (__sjthrow): Add declaration.
312 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
313 (JC1FLAGS): Ditto
314 (AM_CFLAGS): Ditto
315 (AM_CXXFLAGS): Ditto
316 * Makefile.in: Rebuild
317 * acconfig.h: Add SJLJ_EXCEPTIONS
318 * configure.in: Add SJLJ_EXCEPTIONS
319 * configure: Rebuild.
320 * gcj/Makefile.in: Rebuild.
321 * gcj/cni.h: Add support for sjlj-exceptions.
322 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
323 * include/Makefile.in: Rebuild.
324 * include/default-signal.h: Add support for sjlj-exceptions.
325
326 1999-11-18 Tom Tromey <tromey@cygnus.com>
327
328 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
329
330 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
331 minus 1.
332 (method_cache): Made larger.
333
334 1999-11-11 Tom Tromey <tromey@cygnus.com>
335
336 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
337 initializing mutex. Initialize `count' when required.
338
339 1999-11-07 Anthony Green <green@trip.cygnus.com>
340
341 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
342 data correctly.
343
344 1999-11-05 Tom Tromey <tromey@cygnus.com>
345
346 * java/lang/natThread.cc (destroy): Removed incorrect comment.
347
348 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
349
350 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
351 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
352 multipler for `k'.
353
354 1999-11-05 Tom Tromey <tromey@cygnus.com>
355
356 * java/lang/natThread.cc (stop): Removed argument name.
357
358 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
359 `private'; now has default access.
360 * Makefile.in: Rebuilt.
361 * Makefile.am (java/lang/ThreadGroup.h): Removed.
362
363 1999-11-04 Tom Tromey <tromey@cygnus.com>
364
365 * java/lang/natClass.cc (method_cache_count): Removed.
366 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
367 (_Jv_AddMethodToCache): Don't loop.
368
369 * configure.in: Removed `qt' threads case.
370 * include/quick-threads.h: Removed.
371 * quick-threads.cc: Removed.
372
373 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
374 (_Jv_ThreadDestroy): Likewise.
375 * include/no-threads.h (_Jv_ThreadCancel): Removed.
376 (_Jv_ThreadDestroy): Likewise.
377 * include/posix-threads.h (struct _Jv_Thread_t): Removed
378 `exception' field.
379 (_Jv_ThreadCancel): Removed decl.
380 (_Jv_ThreadDestroy): Removed.
381 * posix-threads.cc (_Jv_ThreadCancel): Removed.
382 (throw_cleanup): Removed.
383 (really_start): Don't push or pop cleanup.
384 (_Jv_ThreadInitData): Don't initialize `exception' field.
385 * java/lang/Thread.java (stop): Officially unimplemented.
386 * java/lang/natThread.cc (stop): Officially unimplemented.
387
388 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
389
390 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
391 instead.
392
393 1999-11-02 Tom Tromey <tromey@cygnus.com>
394
395 * boehm.cc: Don't include boehm-config.h.
396
397 1999-11-01 Tom Tromey <tromey@cygnus.com>
398
399 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
400 (sum_blocks): Removed.
401 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
402
403 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
404
405 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
406 before "super".
407 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
408 * java/io/InputStreamReader (InputStreamReader): ditto.
409
410 1999-10-22 Tom Tromey <tromey@cygnus.com>
411
412 * Makefile.in: Rebuilt.
413 * Makefile.am (java/lang/ClassLoader.h): New target.
414 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
415 to `redirect'.
416
417 * include/java-props.h (_Jv_Compiler_Properties): Changed
418 declaration.
419 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
420 * include/jvm.h (_Jv_GCSetInitialHeapSize,
421 _Jv_GCSetMaximumHeapSize): Declare.
422 (JvRunMain, _Jv_RunMain): Declare.
423 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
424 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
425 (_Jv_GCSetMaximumHeapSize): Likewise.
426 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
427 (_Jv_GCSetMaximumHeapSize): Likewise.
428 * prims.cc (parse_heap_size): New function.
429 (_Jv_SetInitialHeapSize): Likewise.
430 (_Jv_SetMaximumHeapSize): Likewise.
431 (_Jv_Compiler_Properties): New global.
432 * gij.cc (help): New function.
433 (version): Likewise.
434 (heap_size): Likewise.
435 (heap_max_size): Likewise.
436 (main): Parse arguments. Set _Jv_Compiler_Properties.
437 Include <config.h>, <java-props.h>.
438 (_Jv_Compiler_Properties): Removed.
439
440 1999-10-18 Tom Tromey <tromey@cygnus.com>
441
442 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
443 method.
444 (redirect): New static field.
445 * java/lang/ClassLoader.java (getSystemClassLoader): Now
446 native
447 (getVMClassLoader0): Removed.
448 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
449 (redirect): Removed.
450 (getSystemClassLoader): Implemented.
451
452 1999-10-16 Anthony Green <green@cygnus.com>
453
454 * java/lang/ClassLoader.java (getSystemResource): Use
455 getSystemClassLoader instead of ClassLoader.system.
456 (getSystemResourceAsStream): Ditto.
457
458 * java/lang/natClassLoader.cc (redirect): Make static and
459 remove #ifdef INTERPRETER so it is always defined.
460 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
461 returns a VMClassLoader.
462
463 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
464 PropertyResourceBundle if a properties file is found before a
465 ResourceBundle class.
466
467 1999-10-15 Tom Tromey <tromey@cygnus.com>
468
469 * gij.cc (main): Formatting fixes.
470 (_Jv_Compiler_Properties): Define.
471 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
472 declare.
473 (init_properties): Set properites from _Jv_Compiler_Properties.
474 * include/java-props.h (_Jv_Compiler_Properties,
475 _Jv_Environment_Properties): Declare.
476
477 * include/java-props.h: Added copyright.
478
479 1999-10-13 Anthony Green <green@cygnus.com>
480
481 * libtool-version: Catch up by incrementing current.
482
483 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
484 * configure, include/config.h.in: Rebuilt.
485 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
486 * configure.in: Added --disable-getenv-properties and new define
487 `DISABLE_GETENV_PROPERTIES'.
488
489 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
490 (next_property_key): New function.
491 (next_property_value): New function.
492 (process_gcj_properties): New function.
493 (JvRunMain): Call process_gcj_properties.
494 (_JvRunMain): Ditto.
495
496 * java/lang/natSystem.cc (init_properties): Set properties defined
497 in GCJ_PROPERTIES.
498
499 * include/java-props.h: New file.
500
501 * java/lang/natSystem.cc (init_properties): Add new properties to
502 conform with Java Product Versioning Specification.
503
504 1999-10-12 Tom Tromey <tromey@cygnus.com>
505
506 * configure: Rebuilt.
507 * configure.in: Fixed test for --disable-java-net.
508
509 1999-10-06 Tom Tromey <tromey@cygnus.com>
510
511 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
512 when building Canadian cross.
513 (NATIVE): Don't define when cross-compiling.
514
515 1999-10-04 Tom Tromey <tromey@cygnus.com>
516
517 * java/net/natPlainSocketImpl.cc: Don't include headers if
518 java.net is disabled.
519
520 * Makefile.in: Rebuilt.
521 * Makefile.am (ZINCS): Removed. This is defined in configure.in
522 when needed, and must be left empty when not needed.
523
524 1999-10-01 Anthony Green <green@cygnus.com>
525
526 * THANKS: Refreshed from htdocs version.
527
528 1999-10-01 Steve Chamberlain <sac@pobox.com>
529
530 * Makefile.in: Rebuilt.
531 * Makefile.am (ZINCS): Define
532
533 * configure: Rebuilt.
534 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
535
536 * java/lang/ieeefp.h: Add definitions for picoJava.
537
538 1999-10-01 Tom Tromey <tromey@cygnus.com>
539
540 * configure: Rebuilt.
541 * configure.in: Set classpath when invoking gcj. Use changequote
542 around sed invocation.
543
544 * java/net/natPlainSocketImpl.cc: Stub native functions if
545 DISABLE_JAVA_NET is defined.
546 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
547 typo in exception string.
548 (getTimeToLive): Likewise.
549 Stub native functions if DISABLE_JAVA_NET is defined.
550 * java/net/natInetAddress.cc: Stub native functions if
551 DISABLE_JAVA_NET is defined.
552 * configure.host: Disable java.net for mips-tx39.
553 * configure, include/config.h.in: Rebuilt.
554 * acconfig.h (DISABLE_JAVA_NET): Undefine.
555 * configure.in: Added --disable-java-net and new define
556 `DISABLE_JAVA_NET'.
557
558 1999-09-30 Tom Tromey <tromey@cygnus.com>
559
560 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
561
562 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
563
564 * README: New file.
565
566 1999-09-28 Tom Tromey <tromey@cygnus.com>
567
568 * configure: Rebuilt.
569 * configure.in (PROCESS): In POSIX case, only set if not already
570 set.
571 * configure.host (PROCESS): Set in mips-tx39 case.
572
573 * aclocal.m4, configure: Rebuilt.
574 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
575 appropriate AC_PROG_ symbol.
576
577 1999-09-24 Tom Tromey <tromey@cygnus.com>
578
579 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
580 `void *'.
581 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
582
583 Fix for PR java.util/47:
584 * configure, include/config.h: Rebuilt.
585 * configure.in: Don't look for ctime or ctime_r.
586 * Makefile.in: Rebuilt.
587 * Makefile.am (nat_source_files): Don't mention natDate.cc.
588 * java/util/natDate.cc: Removed.
589 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
590 static fields.
591 (getAvailableIDs): Rewrote.
592 (getTimeZone): Rewrote.
593 * java/util/Date.java (toGMTString): New method.
594 (toLocaleString): New method.
595 (toString): Rewrote.
596
597 1999-09-23 Tom Tromey <tromey@cygnus.com>
598
599 * configure: Rebuilt.
600 * configure.in: Print message when checking to see if gcj can
601 handle -fuse-divide-subroutine.
602
603 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
604 dead code.
605 * java/lang/FirstThread.java (run0): Renamed to `run'.
606 (run): Removed.
607
608 * prims.cc (main_init): New function.
609 (JvRunMain): Call it.
610 (_Jv_RunMain): Likewise.
611 Include <signal.h>.
612 (main_init): Ignore SIGPIPE. Fixes PR 51.
613
614 1999-09-22 Tom Tromey <tromey@cygnus.com>
615
616 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
617
618 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
619
620 * java/text/MessageFormat.java (MessageFormat(String)): Set the
621 default locale.
622 * java/text/NumberFormat.java: Check that object is a Number. If
623 not, throw IllegialArgumentException.
624
625 1999-09-21 Tom Tromey <tromey@cygnus.com>
626
627 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
628 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
629
630 * include/posix-threads.h (_Jv_MutexDestroy): Use
631 _Jv_PthreadGetMutex.
632 (_Jv_MutexLock): Likewise.
633 (_Jv_MutexUnlock): Likewise.
634
635 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
636 previous patch; it too was incorrect.
637 * java/io/PrintStream.java (PrintStream): Likewise.
638
639 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
640 refer to `this' before calling superclass constructor.
641 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
642 before calling superclass constructor.
643
644 1999-09-20 Tom Tromey <tromey@cygnus.com>
645
646 * configure: Rebuilt.
647 * configure.in: Send output of `-fuse-divide-subroutine' test
648 compilation to /dev/null.
649
650 1999-09-14 Tom Tromey <tromey@cygnus.com>
651
652 * include/java-insns.h: Turned constants into an enum. Added
653 multiple-inclusion protection.
654
655 1999-09-10 Tom Tromey <tromey@cygnus.com>
656
657 * configure: Rebuilt.
658 * configure.in: Build include/Makefile.
659 * Makefile.in: Rebuilt.
660 * Makefile.am (SUBDIRS): Added gcj and include.
661 (install-data-local): New target.
662 (extra_headers): New macro.
663 * include/Makefile.in: New file.
664 * include/Makefile.am: New file.
665
666 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
667 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
668 gcj/cni.h.
669 * boehm.cc: Don't include java-threads.h or gcj/field.h.
670 * resolve.cc: Include config.h.
671 * defineclass.cc: Include config.h.
672 * include/java-interp.h: Don't include config.h.
673 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
674 cni.h.
675
676 * gcj/javaprims.h: Regenerated namespace decls.
677 * classes.pl (scan): Don't put `;' after closing brace.
678
679 * Makefile.in: Rebuilt.
680 * Makefile.am (INCLUDES): Added -I for top_srcdir.
681 * configure.in: Create gcj/Makefile.
682 * gcj/Makefile.in: New file.
683 * gcj/Makefile.am: New file.
684 * java/lang/Object.h: Don't include any other headers.
685 * gcj/array.h: Renamed from include/java-array.h.
686 * gcj/field.h: Renamed from include/java-field.h.
687 * gcj/method.h: Renamed from include/java-method.h.
688 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
689 Updated all files to reflect new include structure.
690
691 1999-09-09 Tom Tromey <tromey@cygnus.com>
692
693 * configure: Rebuilt.
694 * configure.in: Fixed typo; variable is THREADSPEC and not
695 THREADSPECS.
696
697 1999-09-08 Tom Tromey <tromey@cygnus.com>
698
699 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
700 previous change and implemented a correct test in the __m_count
701 case.
702
703 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
704 in __m_count case.
705
706 1999-09-07 Tom Tromey <tromey@cygnus.com>
707
708 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
709 code and don't set errno.
710
711 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
712 not `r'. Changed `done_sleeping' to a `bool'.
713
714 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
715
716 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
717 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
718 by another thread, rather than by the GC.
719 (_Jv_CondWait): Prevent premature thread wakeup by GC.
720 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
721 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
722 function.
723
724 1999-09-03 Tom Tromey <tromey@cygnus.com>
725
726 * configure: Rebuilt.
727 * configure.in: Check for fstat function.
728 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
729 FIONREAD fails.
730
731 1999-09-02 Tom Tromey <tromey@cygnus.com>
732
733 * include/java-array.h (jobjectArrayjchar): Removed unused
734 declaration.
735
736 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
737 _Jv_PrepareCompiledClass while holding class mutex.
738
739 1999-09-01 Tom Tromey <tromey@cygnus.com>
740
741 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
742 (_Jv_PthreadGetMutex): Use it.
743 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
744 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
745 (_Jv_MutexLock): Likewise.
746 (_Jv_MutexUnlock): Likewise.
747 * include/config.h.in: Rebuilt.
748 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
749 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
750 * configure: Rebuilt.
751 * libgcj.spec.in: Don't mention INTERPSPEC.
752 * configure.in (INTERPSPEC): Removed.
753 Only run pthreads-related checks when using POSIX threads. Check
754 for m_count and __m_count in mutex structure.
755
756 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
757
758 * java/lang/natClass.cc: Fixed notification of threads
759 when class initialization is complete.
760
761 1999-09-01 Tom Tromey <tromey@cygnus.com>
762
763 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
764 * resolve.cc: Removed constants defined by
765 java.lang.reflect.Modifier.
766 Include <java/lang/reflect/Modifier.h>.
767 (_Jv_ResolvePoolEntry): Use values from Modifier.
768 (_Jv_DetermineVTableIndex): Likewise.
769 (_Jv_PrepareClass): Likewise.
770 (ncode): Likewise.
771 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
772 java.lang.reflect.Modifier.
773 Include <java/lang/reflect/Modifier.h>.
774 (checkExtends): Use values from Modifier.
775 (checkImplements): Likewise.
776 (handleField): Likewise.
777 (handleConstantValueAttribute): Likewise.
778 (handleFieldsEnd): Likewise.
779 (handleMethod ): Likewise.
780 (handleMethodsEnd): Likewise.
781 (handleClassBegin): Likewise.
782 * interpret.cc: Removed constants defined by
783 java.lang.reflect.Modifier.
784 (continue1): Use values from Modifier.
785 * java/lang/natClassLoader.cc: Removed constants defined by
786 java.lang.reflect.Modifier.
787
788 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
789 JV_STATE_NOTHING, not `0'.
790 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
791
792 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
793 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
794 except on Linux.
795 (_Jv_PthreadGetMutex): New function.
796 (_Jv_PthreadCheckMonitor): Use it.
797 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
798 (_Jv_MutexLock): Update `count'.
799 (_Jv_MutexUnlock): Likewise.
800 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
801 appropriate.
802
803 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
804
805 * Makefile.am (.java.lo): Add rule.
806
807 * Makefile.in: Rebuilt.
808
809 1999-09-01 Tom Tromey <tromey@cygnus.com>
810
811 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
812 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
813 function.
814 (_Jv_CondNotify): Use it.
815 (_Jv_CondNotifyAll): Likewise.
816
817 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
818
819 1999-08-31 Tom Tromey <tromey@cygnus.com>
820
821 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
822 declaration.
823
824 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
825
826 * posix-threads.cc: Include <errno.h>.
827
828 1999-08-23 Tom Tromey <tromey@cygnus.com>
829
830 * boehm.cc: Undefine TRUE and FALSE.
831
832 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
833
834 1999-08-21 Tom Tromey <tromey@cygnus.com>
835
836 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
837 result. PR 40.
838
839 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
840
841 * configure.in: Check for in_addr_t in netinet/in.h too. Check
842 for ip_mreq too.
843 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
844 (HAVE_STRUCT_IP_MREQ): Added.
845 * configure, include/config.h.in: Rebuilt.
846 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
847 if needed.
848 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
849 Disable if ip_mreq is not available.
850
851 * configure.in: Check types ssize_t and in_addr_t.
852 * acconfig.h: Undefine them.
853 * configure, include/config.h.in: Rebuilt.
854
855 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
856 function that detects the signature of getpwuid_r.
857 (init_properties): Use it.
858 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
859 (toString): Use it.
860
861 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
862
863 * interpret.cc (continue1): Implement explicit dispatch table.
864 insn_target: Explicit interpreter switch table.
865 SAVE_PC: New macro, moves pc saving code into instructions that
866 require so.
867 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
868 PC_REGISTER_ASM: New macro.
869 INLINE_SWITCH: New macro. Constrols dispatching strategy.
870 opcode: Remove local variable.
871 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
872 (POKEI): Use _Jv_word.
873 (iinc): Use _Jv_word.
874 (dupx): Change reference argument (sp) to pointer.
875 (jvdump): Remove
876
877 * interpret.cc: Remove instruction timing instrumentation.
878
879 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
880 comment. Don't use _Jv_ClassNameSamePackage.
881
882 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
883 URLPathEntry, CacheEntry}: Removed.
884
885 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
886 package.
887 (.java.lo): Rule removed.
888
889 * Makefile.in: Rebuilt.
890
891 1999-08-19 Tom Tromey <tromey@cygnus.com>
892
893 * java/lang/natThread.cc (class locker): New class.
894 (join): Use a locker around _Jv_CondWait.
895 (sleep): Likewise.
896
897 1999-08-18 Tom Tromey <tromey@cygnus.com>
898
899 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
900 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
901
902 1999-08-18 Tom Tromey <tromey@cygnus.com>
903
904 * include/javaprims.h ("Java"): Regenerated namespace decls.
905
906 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
907
908 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
909 from _Jv_InternClassStrings.
910
911 * prims.cc (_Jv_RunMain): New function.
912 (JvRunMain): Remove gij-support.
913
914 * gij.cc (main): Use _Jv_RunMain.
915
916 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
917
918 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
919 argument in temp variable.
920 (continue1): For all op_x2y insns, use temp variable for
921 intermediate value. Also remove some comments.
922
923 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
924 (forName): Don't call _Jv_InitClass.
925
926 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
927
928 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
929
930 * java/util/jar/JarInputStream.java: New file.
931
932 * java/util/jar/JarEntry.java: New file.
933
934 * java/util/jar/JarFile.java: New file.
935
936 * java/net/URLClassLoader.java: New file.
937
938 * java/net/JarURLConnection.java: New file.
939
940 * gnu/gcj/protocol/jar/Handler.java: New file.
941
942 * gnu/gcj/protocol/jar/Connection.java: New file.
943
944 * java/security/SecureClassLoader.java: New file.
945
946 * java/lang/ClassLoader.java (parent): New variable.
947 (ClassLoader (ClassLoader)): new constructor.
948 (findClass): New method.
949 (loadClass): Add default 1.2 implementation.
950 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
951 (readfully): Removed.
952
953 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
954 (findSystemClass): New method.
955 (VMClassLoader): Constructor rewritten.
956 (init): New method.
957 All other methods removed.
958
959 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
960 to gnu::gcj::runtime::VMClassLoader.
961 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
962 class entries.
963 (VMClassLoader::findSystemClass): renamed from findBootClass.
964
965 * Makefile.am: Add new files.
966 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
967
968 * Makefile.in: Rebuilt.
969
970 1999-08-17 Tom Tromey <tromey@cygnus.com>
971
972 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
973 nano.
974 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
975 inappropriately.
976
977 1999-08-16 Tom Tromey <tromey@cygnus.com>
978
979 * configure: Rebuilt.
980 * configure.in: Set DIVIDESPEC to empty string if compiler does
981 not support -fuse-divide-subroutine.
982
983 1999-08-14 Per Bothner <per@bothner.com>
984
985 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
986 * java/lang/natClass.cc (initializeClass): Likewise.
987 * java/lang/ClassLoader.java (resolveClass0): New static method.
988 (resolveClass): Call resolveClass0.
989 (findSystemClass): No longer static.
990
991 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
992
993 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
994
995 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
996
997 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
998 as long.
999
1000 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1001
1002 * Makefile: Rebuilt.
1003 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1004 builds.
1005
1006 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1007 present.
1008
1009 * configure: Rebuilt.
1010 * configure.in: Properly align --help output, fix capitalization
1011 and punctuation.
1012 * acinclude.m4: Likewise.
1013
1014 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1015
1016 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1017
1018 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1019 (_Jv_callInterpretedMethod): Unused. Remove.
1020 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1021 Use ffi_raw.
1022 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1023 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1024 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1025 * interpret.cc: use _Jv_word.
1026 * defineclass.cc: use_Jv_word.
1027 * resolve.cc: Use _Jv_word.
1028 (_Jv_ResolvePoolEntry): Return _Jv_word.
1029 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1030 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1031
1032 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1033 Change comment.
1034
1035 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1036
1037 * configure: Rebuilt.
1038 * configure.in (sched_yield): Try librt first, then libposix4.
1039 Add -lrt, -lposix4 to THREADSPEC.
1040
1041 1999-08-08 Anthony Green <green@cygnus.com>
1042
1043 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1044
1045 1999-08-08 Anthony Green <green@cygnus.com>
1046
1047 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1048 correctly.
1049
1050 1999-08-08 Anthony Green <green@cygnus.com>
1051
1052 * gij.cc: New file.
1053
1054 * include/config.h.in: Rebuilt.
1055 * acconfig.h: Add INTERPRETER.
1056
1057 * Makefile.in: Rebuilt.
1058 * Makefile.am (libffi_files): Identify the libffi object files for
1059 inclusion in libgcj.
1060 (LIBFFIINCS): Define.
1061
1062 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1063 Dummy definition for configurations without an interpreter.
1064
1065 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1066 java::lang::Boolean constructor.
1067
1068 * include/java-interp.h: Always include java-cpool.h.
1069
1070 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1071 when INTERPRETER not defined.
1072
1073 * java/lang/Class.h (finalize): Define.
1074
1075 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1076 IOException from File.getCanonicalPath.
1077 (getStream): Likewise.
1078
1079 * NEWS: More news.
1080 * THANKS: More thanks.
1081
1082 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1083
1084 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1085 jchar type.
1086 (_Jv_PrepareClass): Allow non-abstract classes to
1087 have abstract subclasses.
1088 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1089 fields and methods.
1090 * interpret.cc (continue1/perform_invoke): Don't sign extend
1091 uint16 return val.
1092 (continue1/lshl,lshr): Push long, not int.
1093 (continue1/ulshr): Use UINT64, not long long.
1094 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1095 are static.
1096 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1097 * java/lang/FirstThread.java (run): Add top-level exception
1098 handler.
1099 (run0): Renamed from run.
1100
1101 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1102
1103 * configure.in (--with-interpreter): Added.
1104 * include/config.h.in (INTERPRETER): Added.
1105
1106 * java/lang/ClassLoader.java: File replaced.
1107 * java/lang/VMClassLoader.java: New file.
1108 * java/lang/natClassLoader.cc: New file.
1109 * gnu/gcj/runtime/MethodInvocation.java: New file.
1110 * gnu/gcj/util/path/SearchPath.java: New file.
1111 * gnu/gcj/util/path/PathEntry.java: New file.
1112 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1113 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1114 * gnu/gcj/util/path/URLPathEntry.java: New file.
1115 * gnu/gcj/util/path/CacheEntry.java: New file.
1116 * include/java-interp.h: New file.
1117 * include/java-cpool.h: New file.
1118 * include/java-insns.h: New file.
1119 * defineclass.cc: New file.
1120 * interpret.cc: New file.
1121 * resolve.cc: New file.
1122
1123 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1124 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1125 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1126 (finalize): New.
1127 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1128 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1129 prefix.
1130 (initializeClass): Use new JV_ prefixed names. Also, call
1131 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1132
1133 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1134 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1135 JV_STATE_LINKED): New.
1136 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1137 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1138 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1139 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1140 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1141 _Jv_InterpMethodInvocation): New friends for interpreter.
1142 (finalize): New.
1143 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1144 include/java-cpool.h and renamed with JV_ prefix.
1145
1146 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1147 decls.
1148 (_Jv_UnregisterClass): New decl.
1149
1150 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1151 class loader argument.
1152 (_Jv_FindClass): Use class loader.
1153
1154 * prims.cc (_Jv_makeUtf8Const): New function.
1155 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1156 (_Jv_NewPrimArray): Ditto.
1157 (_Jv_FindClassFromSignature): Ditto.
1158 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1159 * java/lang/reflect/natMethod.cc (getType): Ditto.
1160
1161 * include/java-field.h (_Jv_Field::isRef): Make robust for
1162 non-resolved contexts.
1163
1164 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1165 Also, don't mark class->next field.
1166
1167 * java/lang/VirtualMachineError.java: Added FIXME note.
1168
1169 * configure.in (INTERPSPEC): New spec.
1170 * libgcj.spec.in: Added INTERPSPEC.
1171 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1172 gnu/gcj/runtime/MethodInvocation.
1173 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1174 (ordinary_java_source_files): Added above mentioned java classes.
1175
1176 * configure: Rebuilt.
1177 * Makefile.in: Rebuilt.
1178
1179 1999-08-06 Tom Tromey <tromey@cygnus.com>
1180
1181 * configure: Rebuilt.
1182 * configure.in: Look for sched_yield in -lrt.
1183
1184 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1185
1186 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1187 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1188 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1189 locales.
1190 (toString): Print correctly when `country' is empty.
1191
1192 1999-08-04 Per Bothner <per@bothner.com>
1193
1194 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1195
1196 1999-08-02 Tom Tromey <tromey@cygnus.com>
1197
1198 * aclocal.m4, configure: Rebuilt for new libtool.
1199
1200 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1201
1202 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1203 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1204 * java/net/ServerSocket.java: Define ANY_IF.
1205 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1206 all network interfaces.
1207 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1208 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1209 null.
1210 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1211 instead of null.
1212 * java/io/natFile.cc (performMkdir): Remove FIXME.
1213 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1214
1215 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1216
1217 * configure.in: Check for bstring.h.
1218 * configure, include/config.h.in: Rebuilt.
1219 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1220 * java/net/natPlainSocketImpl.cc: Likewise.
1221
1222 1999-07-31 Tom Tromey <tromey@cygnus.com>
1223
1224 * NEWS: Likewise.
1225 * THANKS: New file.
1226
1227 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1228
1229 * configure.in: Check for struct hostent_data and need for
1230 -D_REENTRANT for gethostbyname_r declaration.
1231 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1232 (lookup): Use hostent_data for fixed_buffer.
1233 * configure, include/config.h.in: Rebuilt.
1234
1235 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1236
1237 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1238 available. Don't cast memmove args to (void*).
1239 * configure.in: Do not abort if memmove is not available.
1240
1241 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1242
1243 * java/lang/natString.cc (substring): optimize where substring is
1244 entire String.
1245 * java/io/File.java (getName): don't return separator with file name.
1246 * java/io/natFile.cc (attr): fix overflow.
1247
1248 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1249
1250 * mauve-libgcj: Disable Object Serialization tests.
1251
1252 1999-07-20 Warren Levy <warrenl@cygnus.com>
1253
1254 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1255 Default to using PlainDatagramSocketImpl.
1256 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1257
1258 1999-07-19 Tom Tromey <tromey@cygnus.com>
1259
1260 * include/stamp-h.in: New file.
1261
1262 1999-07-12 Tom Tromey <tromey@cygnus.com>
1263
1264 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1265 _UINT32_T.
1266
1267 1999-07-07 Andrew Haley <aph@cygnus.com>
1268
1269 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1270 bytes to make it point after the instruction where the trap
1271 occurred.
1272 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1273
1274 1999-07-07 Tom Tromey <tromey@cygnus.com>
1275
1276 * mauve-libgcj: Explicitly enable formerly disabled java.text
1277 tests.
1278
1279 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1280 again.
1281
1282 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1283
1284 * java/net/URL.java (equals): Compare strings using String.equals.
1285 * java/net/URL.java (sameFile): Ditto.
1286
1287 1999-07-02 Warren Levy <warrenl@cygnus.com>
1288
1289 * configure: Rebuilt.
1290 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1291 * include/config.h.in: Rebuilt.
1292 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1293 (mcastGrp): Updated FIXME comments.
1294 (setOption): Fixed typo.
1295 (getOption):Implemented IP_MULTICAST_IF.
1296
1297 1999-07-02 Warren Levy <warrenl@cygnus.com>
1298
1299 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1300 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1301 (getTimeToLive): Implemented.
1302 (setOption): Implemented IP_MULTICAST_IF.
1303
1304 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1305
1306 * java/lang/String.java (toString): Check for this == null and throw
1307 NullPointerException.
1308
1309 1999-07-01 Warren Levy <warrenl@cygnus.com>
1310
1311 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1312 to count and revised comments to match.
1313 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1314 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1315 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1316 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1317 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1318 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1319
1320 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1321
1322 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1323 properly as count rather than outlength.
1324 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1325 output on overflow rather than buffer fill.
1326 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1327 if markPos is 0 and there is still room in the buffer.
1328
1329 1999-07-01 Andrew Haley <aph@cygnus.com>
1330
1331 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1332 This is a workaround for a bug in glibc's pthreads package which
1333 doesn't deliver any sigcontext information to a signal handler.
1334
1335 1999-06-24 Tom Tromey <tromey@cygnus.com>
1336
1337 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1338 * java/lang/fdlibm.h (HUGE): Conditionally define.
1339
1340 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1341
1342 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1343 * java/lang/e_log.c: Don't use __uint32_t.
1344
1345 1999-05-27 Eric Christopher <echristo@cygnus.com>
1346
1347 * configure: Rebuilt
1348 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1349 * acconfig.h: Rebuilt
1350 * include/config.h.in: Rebuilt
1351
1352 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1353 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1354 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1355 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1356 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1357 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1358 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1359 and namespace collision with __uint32_t
1360
1361 1999-06-23 Tom Tromey <tromey@cygnus.com>
1362
1363 * java/util/zip/InflaterInputStream.java (read): Throw
1364 ZipException if inflater throws a DataFormatException.
1365
1366 1999-06-23 Warren Levy <warrenl@cygnus.com>
1367
1368 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1369 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1370 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1371 is not final per JDK.
1372 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1373 public per JDK.
1374 * java/util/zip/DataFormatException.java: Class extends Exception.
1375 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1376 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1377 * java/util/zip/ZipInputStream.java: ditto.
1378 (closeEntry): Changed method name to match JDK spec.
1379
1380 1999-06-21 Tom Tromey <tromey@cygnus.com>
1381
1382 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1383 From Jeff Sturm.
1384
1385 * Makefile.in: Rebuilt.
1386 * Makefile.am (toolexeclibdir): Define as libdir when
1387 appropriate.
1388 * configure: Rebuilt.
1389 * configure.in (USE_LIBDIR): New conditional.
1390
1391 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1392
1393 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1394 hostname in returned InetAddress objects.
1395 (getLocalHostname): Fix typo.
1396 * java/net/InetAddress.java (getByName): Set hostname on return
1397 object.
1398 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1399 name is returned.
1400
1401 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1402
1403 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1404 interfaces if host==NULL.
1405 (accept): Throw message with InterruptedIOException.
1406 (getOption): Cache localAddress.
1407 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1408 'address' for DatagramSocket.
1409 (setTimeToLive): Fix compiler warnings.
1410 (getOption): Cache localAddress.
1411 * java/net/Socket.java (getLocalAddress): Don't need local
1412 InetAddress object. Add FIXME comment about calling checkConnect().
1413 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1414 connection queue to 50 as per JDK 1.2 docs.
1415 (ServerSocket(int,int)): Listen on all network interfaces by
1416 default, per JDK 1.2 docs.
1417 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1418 Add localAddress caching.
1419
1420 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1421
1422 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1423 to JDK 1.2 docs.
1424 (write(byte[],int,int)): ditto.
1425
1426 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1427
1428 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1429
1430 1999-06-11 Warren Levy <warrenl@cygnus.com>
1431
1432 * mauve-libgcj: Activated java.net Mauve tests.
1433
1434 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1435
1436 * java/net/natInetAddress.cc (aton): Fix typos.
1437 (lookup): Use a bigger buffer size for gethostbyname_r on all
1438 versions of glibc. Updated FIXME comment explaining this.
1439 Modified while loops to not set herr = ERANGE to work around glibc
1440 problems. Use user specified hostname in InetAddress result when
1441 available (consistent with JDK).
1442
1443 1999-06-10 Warren Levy <warrenl@cygnus.com>
1444
1445 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1446 Throw FileNotFoundException instead of IOException.
1447 (open): ditto.
1448 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1449 IOException.
1450 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1451 in static field name.
1452 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1453 throughout rather than ParseException.
1454
1455 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1456
1457 * java/lang/Runtime.java (exec): Convert prog name and arguments
1458 to string array.
1459 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1460 environment array conversion. Preserve current environment if envp
1461 not passed. Preserve PATH unless explicitly specified.
1462 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1463 followed by EOF. Set a flag when a line is terminated by '\r' and
1464 ignore following '\n' if set.
1465
1466 1999-06-02 Warren Levy <warrenl@cygnus.com>
1467
1468 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1469 Ignore context if spec is an absolute URL. Fix braindead
1470 string comparison.
1471 (hashCode): Use JDK 1.2 style algorithm.
1472 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1473 context URL properly.
1474
1475 1999-05-30 Anthony Green <green@cygnus.com>
1476
1477 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1478 correctly. Clean up "/../" an\e[Bd "/./" path fragments.
1479
1480 1999-05-28 Warren Levy <warrenl@cygnus.com>
1481
1482 * java/net/DatagramSocket.java (laddr): Removed.
1483 (DatagramSocket): Removed attempts to get or set laddr if null.
1484 (getLocalAddress): Reimplemented per spec.
1485 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1486 when ttl is 0.
1487 (joinGroup): Throw NullPointerException if any argument is null.
1488 (leaveGroup): ditto.
1489 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1490 * java/net/PlainSocketImpl.java (timeout): Added.
1491 (getInputStream): Added FIXME comment on how to support timeouts
1492 for TCP.
1493 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1494 * java/net/Socket.java: Added FIXME comments to identify
1495 conflicting specs between the JCL and JDK 1.2 documents.
1496 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1497 if host is null. Get localport value resolved by kernel if bind
1498 lport is 0.
1499 (receive): Implemented support for timeouts in UDP.
1500 (setOption): Implemented based on natPlainSocketImpl version.
1501 (getOption): ditto.
1502 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1503 resolved by kernel if bind lport is 0.
1504 (connect): Get localport value resolved by kernel if bind wasn't
1505 done to set localport.
1506 (accept): Implemented support for timeouts for ServerSocket.
1507 (setOption): Save value for SO_TIMEOUT.
1508 (getOption): Return timeout for SO_TIMEOUT.
1509
1510 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1511
1512 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1513 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1514 (setOption): Made abstract.
1515 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1516 to avoid cpp conflicts in native code.
1517 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1518 cpp conflicts in native code.
1519 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1520 * java/net/Socket.java (getLocalAddress): Implemented.
1521 (setTcpNoDelay): Implemented.
1522 (getTcpNoDelay): Implemented.
1523 (setSoLinger): Implemented.
1524 (getSoLinger): Implemented.
1525 (getSoTimeout): Verify class type.
1526 (setSendBufferSize): Implemented.
1527 (getSendBufferSize): Implemented.
1528 (setReceiveBufferSize): Implemented.
1529 (getReceiveBufferSize): Implemented.
1530 (toString): Prepended "Socket".
1531 * java/net/SocketImpl.java (toString): Rewritten.
1532 (getOption): Made abstract.
1533 (setOption): Made abstract.
1534 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1535 (setOption): Implemented.
1536 (getOption): Implemented.
1537
1538 1999-05-26 Warren Levy <warrenl@cygnus.com>
1539
1540 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1541 address when null. Set SO_REUSEADDR for multicasts.
1542 (getSoTimeout): Implemented.
1543 (setSoTimeout): Implemented.
1544 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1545 * java/net/MulticastSocket.java (getInterface): Implemented.
1546 (setInterface): Implemented.
1547 (setTimeToLive): Check for invalid ttl.
1548 (joinGroup): Verify multicast address and security.
1549 (leaveGroup): Verify multicast address and security.
1550 (send): Implemented.
1551 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1552 (iface): Added.
1553 (ttl): Added.
1554 (setOption): Added.
1555 (getOption): Added.
1556 (mcastGrp): Added.
1557 (getTTL): Implemented as non-native.
1558 (setTTL): ditto.
1559 (join): ditto.
1560 (leave): ditto.
1561 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1562 (getSoTimeout): Implemented.
1563 (setSocketFactory): Made synchronized.
1564 * java/net/Socket.java (setSoTimeout): Implemented.
1565 (getSoTimeout): Implemented.
1566 (close): Made synchronized.
1567 (setSocketImplFactory): Made synchronized.
1568 * java/net/SocketImpl.java: Implement SocketOptions interface.
1569 * java/net/natInetAddress.cc: Corrected module name at top of file.
1570 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1571 (bind): Added FIXME.
1572 (peek): Implemented.
1573 (setTTL): Removed.
1574 (getTTL): Removed.
1575 (join): Removed.
1576 (leave): Removed.
1577 (mcastGrp): Added.
1578 (setOption): Implemented for SO_REUSEADDR.
1579 (getOption): Implemented for SO_REUSEADDR.
1580
1581 1999-05-24 Tom Tromey <tromey@cygnus.com>
1582
1583 * java/util/ResourceBundle.java (getBundle): Throw
1584 NullPointerException if baseName is null.
1585
1586 1999-05-22 Tom Tromey <tromey@cygnus.com>
1587
1588 * java/util/zip/ZipInputStream.java (fill): New method.
1589 (compressed_len): New instance variable.
1590 (getNextStream): Set it.
1591 (read): Reset inflater on EOF. Only read via `super' if entry is
1592 deflated.
1593 (skip): Only skip via `super' if entry is deflated.
1594 * java/util/zip/Deflater.java (last_input_count): Removed.
1595 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1596 is length 0.
1597 (needsInput): Don't use last_input_count.
1598 (setInput): Don't set last_input_count.
1599 * java/util/zip/natInflater.cc (getRemaining): Return correct
1600 result.
1601 (inflate): Return 0 if input array is length 0.
1602 (setInput): Don't set last_input_count.
1603 * java/util/zip/Inflater.java (last_input_count): Removed.
1604
1605 1999-05-21 Tom Tromey <tromey@cygnus.com>
1606
1607 * Makefile.in: Rebuilt.
1608 * Makefile.am (INCLUDES): Added $(ZINCS).
1609 * configure: Rebuilt.
1610 * configure.in (ZINCS): New subst.
1611
1612 1999-05-21 Andrew Haley <aph@cygnus.com>
1613
1614 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1615 to signal options to allow the same exceptions to be rethrown
1616 later.
1617
1618 1999-05-20 Andrew Haley <aph@cygnus.com>
1619
1620 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1621 added.
1622 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1623 (INIT_FPE): Exception string made more informative.
1624 * include/sparc-signal.h (INIT_FPE): Exception string made more
1625 informative.
1626 * testsuite/libjava.lang/Divide_1.java: New file.
1627 * testsuite/libjava.lang/Divide_1.out: New file.
1628
1629 1999-05-19 Tom Tromey <tromey@cygnus.com>
1630
1631 * aclocal.m4, configure: Rebuilt.
1632 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1633
1634 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1635 method.
1636
1637 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1638 Include <stdlib.h>.
1639 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1640 Include <stdlib.h>.
1641 (update): Fail in default case. Always initialize `strat'.
1642
1643 * mauve-libgcj: Enable java.util.zip.
1644
1645 1999-05-18 Warren Levy <warrenl@cygnus.com>
1646
1647 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1648 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1649 PlainDatagramSocketImpl.java, and SocketOptions.java.
1650 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1651 * Makefile.in: Rebuilt.
1652
1653 * java/net/DatagramPacket.java: New file.
1654 * java/net/DatagramSocket.java: New file.
1655 * java/net/DatagramSocketImpl.java: New file.
1656 * java/net/MulticastSocket.java: New file.
1657 * java/net/PlainDatagramSocketImpl.java: New file.
1658 * java/net/SocketOptions.java: New file.
1659 * java/net/natPlainDatagramSocketImpl.cc: New file.
1660
1661 1999-05-18 Tom Tromey <tromey@cygnus.com>
1662
1663 * java/util/zip/ZipOutputStream.java (level): Initial value is
1664 Deflater.DEFAULT_COMPRESSION.
1665 (close): New method.
1666 (closeEntry): Likewise.
1667 (finish): Likewise.
1668 (put_version): Likewise.
1669 (write_entry): Likewise.
1670 (put2, put4): Now return `int'.
1671 (comment): Default to empty string.
1672 (bytes_written): New instance variable.
1673 (chain): Likewise.
1674 * java/util/zip/ZipEntry.java (setComment): Limit length of
1675 comment string.
1676 (setCrc): Check CRC validity.
1677 (setExtra): Check argument validity.
1678 (setMethod): Likewise.
1679 (setSize): Likewise.
1680 (ZipEntry): Likewise.
1681 * include/javaprims.h: Updated namespace declarations.
1682 * Makefile.in: Rebuilt.
1683 * Makefile.am (ordinary_java_source_files): Mention new files.
1684 (nat_source_files): Likewise.
1685 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1686 EOFException.
1687 (read4): Likewise.
1688 (getInputStream): Handle compressed entries.
1689 * java/util/zip/GZIPOutputStream.java: New file.
1690 * java/util/zip/GZIPInputStream.java: New file.
1691 * java/util/zip/DataFormatException.java: New file.
1692 * java/util/zip/CheckedInputStream.java: New file.
1693 * java/util/zip/CheckedOutputStream.java: New file.
1694 * java/util/zip/InflaterInputStream.java: Implemented.
1695 * java/util/zip/natInflater.cc: New file.
1696 * java/util/zip/Deflater.java: Implemented.
1697 * java/util/zip/natDeflater.cc: New file.
1698 * java/util/zip/DeflaterOutputStream.java: Implemented.
1699
1700 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1701 ZipException, not IOException.
1702 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1703 not IOException.
1704
1705 1999-05-17 Tom Tromey <tromey@cygnus.com>
1706
1707 * java/lang/natSystem.cc (init_properties): URL now points to
1708 sourceware.
1709
1710 1999-05-12 Per Bothner <bothner@cygnus.com>
1711
1712 * java/util/Calendar.java (set): First call computeFields if needed.
1713 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1714
1715 1999-05-12 Tom Tromey <tromey@cygnus.com>
1716
1717 * configure: Rebuilt.
1718 * configure.in: Look for -ldl when using the Boehm collector.
1719 Look for sched_yield in -lposix4.
1720
1721 1999-05-12 Per Bothner <bothner@cygnus.com>
1722
1723 * java/io/File.java (mkdirs): Handle a null parent directory.
1724
1725 1999-05-12 Tom Tromey <tromey@cygnus.com>
1726
1727 * include/javaprims.h: Updated namespace declarations.
1728 * classes.pl (scan): Uniquify class list.
1729 * Makefile.in, configure: Rebuilt.
1730 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1731 (built_java_source_files): New macro.
1732 (nat_headers): Added built_java_source_files.
1733 (javao_files): Likewise.
1734 (EXTRA_libgcj_la_SOURCES): Likewise.
1735 (libgcj.zip): Create built class files.
1736 ($(built_java_source_files:.java=.class)): New target.
1737 (jv_convert_LDADD): Added -L$(here)/.libs.
1738 * configure.in: Create links for ConcreteProcess.java and
1739 natConcreteProcess.cc.
1740 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1741 * java/lang/natEcosProcess.cc: New file.
1742 * java/lang/EcosProcess.java: New file.
1743 * java/lang/PosixProcess.java: New file.
1744 * java/lang/natPosixProcess.cc: New file.
1745
1746 1999-05-12 Warren Levy <warrenl@cygnus.com>
1747
1748 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1749 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1750 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1751 (connect): Throw ConnectException.
1752
1753 1999-05-11 Tom Tromey <tromey@cygnus.com>
1754
1755 * Makefile.in: Rebuilt.
1756 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1757 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1758 our libraries.
1759
1760 * Makefile.in: Rebuilt.
1761 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1762 and it causes problems with libtool.
1763
1764 * Makefile.in, configure: Rebuilt.
1765 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1766 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1767 (jv_convert_DEPENDENCIES): Added ZDEPS.
1768 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1769 directory.
1770 (THREADSPEC): Added `-L' to point to qthreads build directory.
1771 (ZLIBS): New subst.
1772 (ZDEPS): New subst.
1773
1774 * configure, Makefile.in: Rebuilt.
1775 * Makefile.am (toolexeclib_DATA): New macro.
1776 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1777 Recognize --with-system-zlib.
1778 (GCSPEC): New subst.
1779 (THREADSPEC): New subst.
1780 (SYSTEMSPEC): New subst.
1781 (ZLIBSPEC): New subst.
1782 * libgcj.spec.in: New file.
1783
1784 1999-05-10 Tom Tromey <tromey@cygnus.com>
1785
1786 * java/io/InputStreamReader.java (read): If length is 0, return
1787 0. Reset `wpos' and `wcount' when buffer has been filled and
1788 emptied.
1789
1790 * java/util/Properties.java (save): Removed `FIXME' comment.
1791 (load): Invalid characters in \u now treated as terminators.
1792 Make sure to append character resulting from `\' handling.
1793 Cast to `char' when appending to key or value.
1794 (skip_ws): Inverted test for whitespace.
1795
1796 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1797 `FIXME' comment.
1798 (readLine): Likewise.
1799 (readFully): Implemented.
1800
1801 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1802
1803 * java/awt/natToolkit.cc: Added copyright header.
1804 * java/util/zip/InflaterInputStream.java: Added copyright header.
1805
1806 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1807 comment.
1808 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1809 `FIXME' comment.
1810 (getNextStream): Likewise.
1811
1812 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1813 locale.toString().
1814 (getBundle): Don't explicitly throw null pointer exception.
1815
1816 * gnu/gcj/RawData.java: Added copyright header.
1817
1818 * include/jni.h (_Jv_va_list): Always define as va_list.
1819
1820 1999-05-9 Anthony Green <green@cygnus.com>
1821
1822 * java/text/DateFormat.java (computeInstance): Separate time
1823 and date styles.
1824 (getDateTimeInstance): Ditto.
1825 (getDateTimeInstance(int,int)): New method.
1826
1827 * Makefile.in: Rebuilt.
1828 * Makefile.am (ordinary_java_source_files): Add new classes.
1829
1830 * java/util/PropertyResourceBundle.java: New file.
1831 * gnu/gcj/util/EnumerationChain.java: New file.
1832
1833 1999-05-07 Tom Tromey <tromey@cygnus.com>
1834
1835 * acconfig.h (GCJVERSION): New undef.
1836 * java/lang/natSystem.cc (init_properties): Define java.version,
1837 java.class.version, os.name, os.arch, os.version.
1838 Include <sys/utsname.h> if required.
1839 * configure: Rebuilt.
1840 * configure.in: Compute and define GCJVERSION.
1841
1842 * java/lang/natSystem.cc (default_file_encoding): Now static.
1843
1844 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1845
1846 * libtool-version: New file.
1847 * Makefile.in: Rebuilt.
1848 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1849 -release.
1850
1851 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1852 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1853 again (oops).
1854
1855 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1856 (we pick those up already).
1857
1858 1999-05-05 Per Bothner <bothner@cygnus.com>
1859
1860 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1861 stub classes. (This is enough to get Kawa to compile against libgcj.)
1862
1863 * gnu/gcj/RawData.java: New class.
1864 * doc/cni.sgml: Document RawData.
1865
1866 * java/util/zip/InflaterInputStream.java: New stub class.
1867 * java/util/zip/ZipInputStream.java: New class. Partly works.
1868 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1869 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1870 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1871 * java/util/zip/ZipOutputStream.java: Start implementation.
1872
1873 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1874 (default_file_encoding): New global, initial value is above macro.
1875 (init_properties): Default file.encoding to default_file_encoding.
1876
1877 * Makefile.am: Add new classes.
1878
1879 1999-05-05 Tom Tromey <tromey@cygnus.com>
1880
1881 * Makefile.in: Rebuilt.
1882 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1883 (clean-local): New target
1884
1885 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1886 (load, loadLibrary): Now native.
1887 (init): New method.
1888 * java/lang/Runtime.java (load, loadLibrary): Now native.
1889 (init): New native method.
1890 (Runtime): Use init.
1891 * prims.cc: Include <ltdl.h> if required.
1892 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1893
1894 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1895
1896 * configure.in: Switch from irix threads to posix threads
1897 * configure: Regenerate.
1898
1899 1999-04-30 Tom Tromey <tromey@cygnus.com>
1900
1901 * Makefile.in: Rebuilt.
1902 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1903
1904 1999-04-29 Tom Tromey <tromey@cygnus.com>
1905
1906 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1907 vector when shared.
1908
1909 * java/util/Locale.java (Locale(String,String)): Implement in
1910 terms of 3-argument version; variant now defaults to empty
1911 string.
1912 (toString): Assume variant is not null.
1913 (equals): Assume all strings are not null.
1914 (Locale): Throw NullPointerException if any argument is null.
1915
1916 * java/util/ResourceBundle.java (getBundle): Don't try the base
1917 name; now implicit in partialGetBundle call.
1918 (trySomeGetBundle): Search for parent bundles and call setParent
1919 as required.
1920 (partialGetBundle): Added `langStop' argument. Use
1921 `Locale.toString' to compute bundleName.
1922 (resource_cache): New static field.
1923 (partialGetBundle): Cache the returned resource bundle. Now
1924 synchronized.
1925
1926 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1927 missing `<'.
1928
1929 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1930 * java/text/natCollator.cc (decomposeCharacter): `base' now
1931 `const'.
1932 * Makefile.in: Rebuilt.
1933 * Makefile.am (ordinary_java_source_files): Added
1934 CollationElementIterator, CollationKey, Collator,
1935 RuleBasedCollator.
1936 (nat_source_files): Added natCollator.cc.
1937 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1938 (compare): Pass `this' to CollationElementIterator constructor.
1939 (getCollationElementIterator): Likewise.
1940 (ceiNext): Fix off-by-one error when finding initial substring.
1941 (next): Correctly mask off bits when computing return value.
1942 Fixed return values when one string is shorter than the other.
1943 * java/text/CollationElementIterator.java (collator): New field.
1944 (CollationElementIterator): Added collator argument.
1945 (next): Call ceiNext on collator object.
1946
1947 1999-04-26 Tom Tromey <tromey@cygnus.com>
1948
1949 * natCollator.cc: New file.
1950
1951 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1952 (GregorianCalendar): Use it in all constructors.
1953 * java/util/Calendar.java (Calendar): Changed argument name to
1954 `zone' to match code.
1955
1956 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1957 * java/text/CollationKey.java: New file.
1958 * java/text/CollationElementIterator.java: New file.
1959 * java/text/Collator.java: New file.
1960 * java/text/RuleBasedCollator.java: New file.
1961
1962 * Makefile.in: Rebuilt.
1963 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1964 (jv_convert_LDADD): Explicltly add -lm -lc.
1965
1966 1999-04-26 Tom Tromey <tromey@cygnus.com>
1967
1968 * configure, Makefile.in: Rebuilt.
1969 * configure.in: Added AM_PROG_LIBTOOL.
1970 (GCOBJS): Use `.lo' form of files.
1971 (THREADOBJS): Likewise.
1972 (GCDEPS): Use `.la' form of library.
1973 (GCLIBS): Set to be the same as GCDEPS.
1974 (THREADDEPS): Use `.la' form of library.
1975 (THREADLIBS): Set to be the same as THREADDEPS.
1976 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1977 toolexeclib_LIBRARIES.
1978 (libgcj_la_SOURCES): Renamed for libtoolization.
1979 (EXTRA_libgcj_la_SOURCES): Likewise.
1980 (libgcj_la_DEPENDENCIES): Likewise.
1981 (libgcj_la_LIBADD): Likewise.
1982 ($(nat_files)): Use LTCXXCOMPILE.
1983 ($(c_files)): Use LTCOMPILE.
1984 (GCJCOMPILE): New macro.
1985 (.class.o): Use it.
1986 (.java.o): Likewise.
1987 ($(javao_files)): Likewise.
1988 (jv_convert_LINK): Use LIBTOOL.
1989 (nat_files): Use `.lo' files.
1990 (c_files): Likewise.
1991 (javao_files): Likewise.
1992 (.class.lo): Renamed.
1993 (.java.lo): Likewise.
1994 ($(nat_files)): Depend on %.lo.
1995 ($(c_files)): Likewise.
1996 ($(javao_files)): Likewise.
1997 (jv_convert_LDADD): Link against .lo files.
1998 (jv_convert_DEPENDENCIES): Depend on .lo files.
1999 (maintainer-check): Depend on libgcj.la, but examine .a file.
2000 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2001 (libgcj_la_LDFLAGS): New macro.
2002
2003 1999-04-23 Warren Levy <warrenl@cygnus.com>
2004
2005 * Makefile.am: Added URLDecoder and URLEncoder.
2006 * Makefile.in: Rebuilt.
2007
2008 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2009 setSocketImplFactory to match spec.
2010 * java/net/Socket.java (getSoLinger): Changed return type to
2011 match spec.
2012
2013 * java/net/URLDecoder.java: New file.
2014 * java/net/URLEncoder.java: New file.
2015
2016 1999-04-21 Tom Tromey <tromey@cygnus.com>
2017
2018 * java/lang/natString.cc (getBytes): Reverted earlier change and
2019 applied correct fix from Per Bothner.
2020
2021 * java/lang/String.java: Don't throw
2022 UnsupportedEncodingException.
2023
2024 * java/lang/natString.cc (getBytes): Correctly size result
2025 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2026
2027 1999-04-20 Andrew Haley <aph@cygnus.com>
2028
2029 * include/sparc-signal.h: new file.
2030 * configure.in: include/sparc-signal.h added.
2031 * configure: regenerated.
2032 * prims.cc (JvRunMain): signal handling code rewritten to be more
2033 portable.
2034 (catch_segv): ditto.
2035 (catch_fpe): ditto.
2036 * include/i386-signal.h: reorganized.
2037 * include/default-signal.h: reorganized.
2038
2039 1999-04-19 Tom Tromey <tromey@cygnus.com>
2040
2041 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2042 once. From Anthony Green.
2043
2044 1999-04-19 Andrew Haley <aph@cygnus.com>
2045
2046 * Makefile.in: Processed with new automake.
2047
2048 1999-04-19 Tom Tromey <tromey@cygnus.com>
2049
2050 * include/javaprims.h: Removed security namespace.
2051
2052 1999-04-20 Anthony Green <green@cygnus.com>
2053
2054 * java/io/PrintStream.java (println): Remove extra println.
2055
2056 1999-04-19 Anthony Green <green@cygnus.com>
2057
2058 * Makefile.in: Rebuilt.
2059 * Makefile.am (ordinary_java_source_files): Add new security files.
2060
2061 * java/security/NoSuchAlgorithmException.java,
2062 java/security/MessageDigest.java: New files.
2063
2064 * include/javaprims.h: Add security namespace.
2065
2066 1999-04-16 Per Bothner <bothner@cygnus.com>
2067
2068 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2069 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2070 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2071 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2072 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2073 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2074 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2075 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2076 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2077 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2078 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2079 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2080 * Makefile.am: Various changes for new files and conversions.
2081
2082 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2083 New overloading, allows greater efficiency.
2084 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2085 New overloading (for efficiency - avoids copying).
2086
2087 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2088 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2089
2090 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2091 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2092 (writeChars): Don't be quite so eager to flush.
2093 * java/io/PrintStream.java: Rewrite. Now more similar to
2094 OutputStreamWriter, using explicit UnicodeToBytes converter.
2095 Also, autoflush does not need to flush so often.
2096 * java/lang/natString.cc (getBytes): More efficient algorithm.
2097 (init(jbyteArray,jint,jint,jstring)): More efficient.
2098
2099 1999-04-15 Warren Levy <warrenl@cygnus.com>
2100
2101 * Makefile.am (ordinary_java_source_files): Added new Connection
2102 and Handler classes in gnu.gcj.protocol.file package.
2103 * Makefile.in: Rebuilt.
2104
2105 * gnu/gcj/protocol/file/Connection.java: New file.
2106 * gnu/gcj/protocol/file/Handler.java: New file.
2107 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2108 if doInput allows input.
2109 (getOutputStream): Check if doOutput allows output.
2110 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2111
2112 1999-04-14 Tom Tromey <tromey@cygnus.com>
2113
2114 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2115 buffer larger to work around bug.
2116 From Bryce McKinlay <bryce@albatross.co.nz>.
2117
2118 1999-04-14 Andrew Haley <aph@cygnus.com>
2119
2120 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2121 NaNs are always converted to the same long value.
2122 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2123 converted to int.
2124
2125 1999-04-13 Tom Tromey <tromey@cygnus.com>
2126
2127 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2128 instead switch on actual element type.
2129
2130 * Makefile.in: Rebuilt.
2131 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2132
2133 1999-04-13 Andrew Haley <aph@cygnus.com>
2134
2135 * include/i386-signal.h, include/default-signal.h: New files.
2136 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2137 handler.
2138 (catch_fpe): New function.
2139 * configure.in: Make link to appropriate include/java-signal.h.
2140 * configure: Rebuilt.
2141 * Makefile.am: include/java-signal.h added to dependency list.
2142 * Makefile.in: Rebuilt.
2143
2144 1999-04-12 Urban Widmark <urban@svenskatest.se>
2145
2146 * java/io/DataInputStream.java (readLine): Corrected handling of
2147 empty lines, from null to "".
2148
2149 1999-04-12 Tom Tromey <tromey@cygnus.com>
2150
2151 * Makefile.in: Rebuilt.
2152 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2153
2154 * java/lang/natSystem.cc (SystemClass): New define.
2155 (init_properties): Synchronize.
2156
2157 1999-04-08 Geoff Berry <gcb@gnu.org>
2158
2159 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2160 * natPlainSocketImpl.cc (accept): Add missing else if check
2161 for AF_INET6.
2162
2163 1999-04-08 Tom Tromey <tromey@cygnus.com>
2164
2165 * java/lang/Long.java (parseLong): Corrected overflow detection
2166 code.
2167 * java/lang/Integer.java (parseInt): Corrected overflow detection
2168 code.
2169
2170 * java/io/PrintStream.java (print): Handle null string argument.
2171 (println): Likewise.
2172
2173 1999-04-07 Warren Levy <warrenl@cygnus.com>
2174
2175 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2176 Set count to 0 when InputStreamReader returns -1 for EOF.
2177
2178 1999-04-07 Tom Tromey <tromey@cygnus.com>
2179
2180 * mauve-libgcj: Omit java.text.Collator,
2181 java.text.RuleBasedCollator.
2182
2183 1999-04-06 Tom Tromey <tromey@cygnus.com>
2184
2185 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2186 IOException from getHttpHeaders().
2187 (getHeaderFieldKey): Likewise.
2188
2189 * include/javaprims.h: Regenerated declarations.
2190
2191 * Makefile.in: Rebuilt.
2192 * Makefile.am (ordinary_java_source_files): Updated for removed
2193 files.
2194
2195 1999-04-06 Per Bothner <bothner@cygnus.com>
2196
2197 * java/util/zip/Adler32.java: New class.
2198 * java/util/zip/CRC32.java: Add working method bodies.
2199 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2200 * Makefile.in: Re-generate.
2201
2202 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2203
2204 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2205 from version in removed www hierarchy.
2206 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2207 version in removed www hierarchy.
2208
2209 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2210 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2211 * gnu/gcj/www/protocol/http: Removed dir.
2212 * gnu/gcj/www/protocol: Removed dir.
2213 * gnu/gcj/www: Removed dir.
2214
2215 * java/net/HttpURLConnection.java: Revised comments to indicate
2216 missing JDK 1.2 methods.
2217
2218 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2219 hierarchy rather than the gnu/gcj/www/protocol one.
2220 * java/net/URLConnection.java: Updated status comments.
2221 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2222 the gnu/gcj/www/content one.
2223
2224 1999-04-06 Per Bothner <bothner@cygnus.com>
2225
2226 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2227 The gen-from-JIS program is in $(CONVERT_DIR).
2228
2229 1999-04-06 Tom Tromey <tromey@cygnus.com>
2230
2231 * mauve-libgcj: Renamed from mauve-libjava.
2232
2233 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2234
2235 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2236 (getResponseMessage): Implemented.
2237 (getResponseVals): New private method.
2238
2239 * java/net/URLConnection.java (getContent): Implemented.
2240 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2241
2242 1999-04-05 Tom Tromey <tromey@cygnus.com>
2243
2244 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2245 (jv_convert_SOURCES): Renamed.
2246 (EXTRA_jv_convert_SOURCES): Likewise.
2247 (jv_convert_LDFLAGS): Likewise.
2248 (jv_convert_LINK): Likewise.
2249 (jv_convert_LDADD): Likewise.
2250 (jv_convert_DEPENDENCIES): Likewise.
2251
2252 * Makefile.in: Rebuilt.
2253 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2254 tooldir.
2255
2256 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2257
2258 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2259 method for comparison.
2260
2261 * java/net/URLConnection.java (getContentLength): Implemented.
2262 (getContentType): Implemented.
2263 (getContentEncoding): Implemented.
2264 (getExpiration): Implemented.
2265 (getDate): Implemented.
2266 (getLastModified): Implemented.
2267 (getHeaderFieldInt): Implemented.
2268 (getHeaderFieldDate): Implemented.
2269
2270 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2271
2272 * java/net/URLConnection.java (toString): Implemented.
2273 (setContentHandlerFactory): Implemented.
2274 (setContentHandler): Wrote new private helper method.
2275
2276 1999-04-01 Tom Tromey <tromey@cygnus.com>
2277
2278 * Makefile.in: Rebuilt.
2279 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2280 of 1999-03-31; we always want to build all the .class files.
2281 Depend on java_source_files, not libgcj.zip.
2282 (nat_headers): Define in terms of ordinary_java_source_files.
2283
2284 1999-03-31 Tom Tromey <tromey@cygnus.com>
2285
2286 * Makefile.in: Rebuilt.
2287 * Makefile.am (special_java_source_files): New macro.
2288 (java_source_files): Use it.
2289 (ordinary_java_source_files): New macro.
2290 (java_source_files): Use it.
2291 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2292 creating headers for those files with hand-maintained headers.
2293
2294 * include/javaprims.h: Regenerated namespace declarations.
2295 * classes.pl (scan): Include [0-9] in regexp for matching class
2296 names; for java.util.zip.CRC32.
2297
2298 * Makefile.in: Rebuilt.
2299 * Makefile.am (nat_headers): Redefined to generate all possible
2300 header files.
2301
2302 * java/util/zip/ZipException.java: In package java.util.zip, not
2303 java.net.
2304
2305 1999-03-30 Tom Tromey <tromey@cygnus.com>
2306
2307 * configure: Rebuilt.
2308 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2309 eh-common.h when not building in tree with gcc.
2310
2311 * Makefile.in: Rebuilt.
2312 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2313 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2314 nat_headers.
2315 ($(java_source_files:.java=.class)): New target.
2316
2317 * Makefile.in: Rebuilt.
2318 * Makefile.am (java_source_files): Added
2319 java/net/HttpURLConnection.java and
2320 gnu/gcj/www/protocol/http/Connection.java.
2321
2322 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2323
2324 * gnu/gcj/www/protocol/http/Connection.java: New file.
2325 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2326 * java/net/HttpURLConnection.java: New file.
2327 * java/net/URLConnection.java (getHeaderField): Implemented default.
2328 (getHeaderFieldKey): Implemented default method.
2329
2330 1999-03-30 Tom Tromey <tromey@cygnus.com>
2331
2332 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2333
2334 * java/util/zip/Deflater.java: Added copyright header.
2335 * java/util/zip/CRC32.java: Added copyright header.
2336
2337 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2338 that it is automatically generated.
2339 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2340
2341 * gnu/gcj/convert/BytesToUnicode.java,
2342 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2343 gnu/gcj/convert/Input_EUCJIS.java,
2344 gnu/gcj/convert/Input_UTF8.java,
2345 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2346 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2347 gnu/gcj/convert/Output_8859_1.java,
2348 gnu/gcj/convert/Output_JavaSrc.java,
2349 gnu/gcj/convert/Output_UTF8.java,
2350 gnu/gcj/convert/UnicodeToBytes.java,
2351 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2352
2353 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2354
2355 * Makefile.in, configure: Rebuilt.
2356 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2357 not if test subdir exists.
2358 (--enable-gcj-classes): Removed; gcj always used to generate
2359 .class files.
2360 (JAVA, JAVAC): Removed.
2361 (--enable-single-compilation, --enable-source-compilation):
2362 Removed.
2363 (here): New subst.
2364 (NATIVE): New conditional.
2365 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2366 `install-exec' to work.
2367 (toolexeclibdir): Likewise.
2368 (toollib_LIBRARIES): Likewise.
2369 (AM_MAKEFLAGS): Don't pass tooldir.
2370 (JAVAC): New macro.
2371 (javao_files): Redefined.
2372 (java_source_files): New macro.
2373 (c_source_files): New macro.
2374 (c_files): Redefined in terms of c_source_files.
2375 (java_io_files, java_lang_files, java_net_files, java_text_files,
2376 java_util_files, gnu_files, java_files): Removed.
2377 (class_io_files, class_lang_files, class_net_files,
2378 class_text_files, class_util_files, class_gnu_files, class_files):
2379 Removed.
2380 (nat_source_files): New macro.
2381 (nat_files): Redefined in terms of nat_source_files.
2382 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2383 java_source_files. Removed no-such-file.c.
2384 (here): Removed.
2385 (ETAGS_ARGS): Removed.
2386 (TAGS_DEPENDENCIES): Likewise.
2387 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2388 pwd in rule.
2389 (src_io_files, src_lang_files, src_text_files, src_util_files,
2390 src_gnu_files): Removed.
2391 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2392 (BUILT_SOURCES): Removed.
2393 (header-check): New target.
2394 (javadir): Removed.
2395 (noinst_PROGRAMS): New macro.
2396 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2397 on MAINTAINER_MODE.
2398 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2399 (gen-from-JIS): Build in top directory.
2400 (convert_source_files): New macro.
2401 (convert_SOURCES): New macro.
2402 (convert_LDFLAGS): Likewise.
2403 (convert_LINK): Likewise.
2404 (convert_LDADD): Likewise.
2405 (convert_DEPENDENCIES): Likewise.
2406 (convert): Removed.
2407 (gen-from-JIS): Removed.
2408 (gen_from_JIS_SOURCES): New macro.
2409 (gen_from_JIS_LDADD): Likewise.
2410 (gen_from_JIS_DEPENDENCIES): Likewise.
2411
2412 * configure: Rebuilt.
2413 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2414 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2415 when defining conditional.
2416
2417 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2418
2419 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2420 The Unicode Consortium does not permit their re-distribution.
2421 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2422 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2423
2424 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2425
2426 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2427
2428 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2429
2430 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2431 from Unicode Consortium.
2432 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2433 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2434 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2435 New tables, generated using gen-from-JIS.
2436 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2437 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2438 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2439 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2440
2441 * gnu/gcj/convert/Convert.java: New application.
2442 * Makefile.am, Makefile.in (convert): New program, using Convert.
2443 Build the various JIS conversion tables (in maintainer mode).
2444
2445 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2446
2447 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2448
2449 * java/net/URL.java (URL): Deal with null property value. Use "."
2450 as separator in building class name.
2451 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2452 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2453 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2454 beginning of the substring rather than 'start'.
2455
2456 1999-03-26 Tom Tromey <tromey@cygnus.com>
2457
2458 * include/java-chartables.h: Rebuilt.
2459 * include/java-chardecomp.h: New file.
2460 * chartables.pl: Generate output files directly. Added support
2461 for generating decomposition header.
2462 (canonical_decomposition, full_decomposition): New globals.
2463 (DECOMPOSITION): New constant.
2464 (process_char): Call add_decomposition.
2465 (add_decomposition): New sub.
2466 (write_decompositions): New sub.
2467
2468 1999-03-25 Tom Tromey <tromey@cygnus.com>
2469
2470 * java/text/CollationElementIterator.java: New file.
2471
2472 * mauve-libjava: Omit StringTest.
2473
2474 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2475
2476 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2477 without a '/' when parsing protocol. Handle ref outside of parseURL.
2478 (hashCode): Implemented.
2479 (set): Don't expand -1 to default port.
2480 (getDefaultPort): Removed.
2481
2482 * java/net/URLStreamHandler.java (parseURL): Implemented.
2483 (toExternalForm): Implemented.
2484
2485 1999-03-23 Tom Tromey <tromey@cygnus.com>
2486
2487 * java/text/BreakIterator.java (getSentenceInstance):
2488 Implemented.
2489 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2490
2491 * Makefile.in: Rebuilt.
2492 * Makefile.am (nat_headers): Added IllegalAccessException.
2493 * java/lang/natClass.cc (newInstance): Throw
2494 IllegalAccessException, not IllegalAccessError.
2495 Include IllegalAccessException.h.
2496
2497 1999-03-22 Tom Tromey <tromey@cygnus.com>
2498
2499 * gnu/gcj/text/LineBreakIterator.java: New file.
2500 * java/text/BreakIterator.java (getLineInstance): Implemented.
2501
2502 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2503 copy constructor private.
2504 (previous, next): Removed erroneous comment about line
2505 separators.
2506 (previous): Correctly recognize break between non-letter on the
2507 left and letter on the right. Handle apostrophes correctly.
2508
2509 * java/text/BreakIterator.java (getWordInstance): Implemented.
2510 * gnu/gcj/text/WordBreakIterator.java: New file.
2511 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2512 BaseBreakIterator.
2513 * gnu/gcj/text/BaseBreakIterator.java: New file.
2514
2515 1999-03-19 Tom Tromey <tromey@cygnus.com>
2516
2517 * java/text/BreakIterator.java: New file (partially stubbed out).
2518 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2519
2520 * include/config.h.in: Rebuilt.
2521 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2522 (HAVE_TIMEZONE): Likewise.
2523 * configure: Rebuilt.
2524 * configure.in: Added timezone checks.
2525 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2526 timezone.
2527
2528 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2529
2530 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2531 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2532 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2533 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2534 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2535 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2536 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2537 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2538
2539 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2540 (BSD_COMP): Kludge needed for Solaris2.
2541
2542 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2543
2544 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2545 URL(java.net.URL, string, URLStreamHandler) and call it with a
2546 null handler. In latter constructor, added SecurityManager check.
2547 (set): Expect null handler on bad protocol rather than an exception.
2548 (setURLStreamHandler): Simplified exception handling; return null
2549 on invalid protocol.
2550
2551 1999-03-18 Tom Tromey <tromey@cygnus.com>
2552
2553 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2554
2555 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2556 methods.
2557 Include PrintStream.h, InputStream.h.
2558 * java/lang/System.java (ForwardingInputStream,
2559 ForwardingOutputStream): Removed.
2560 (setErr, setIn, setOut): Now native.
2561
2562 Reverted patch from 1999-02-12 to work around problem in
2563 libgcc2.c.
2564 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2565 (_Jv_eh_free): Use free.
2566
2567 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2568 for path name. Minor formatting fixes.
2569
2570 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2571
2572 * prims.cc (fail_on_finalization): New function.
2573 (_Jv_GCWatch): Likewise.
2574
2575 * prims.cc (JvRunMain): Initialize `nullp'.
2576 (nullp): New global.
2577 (catch_segv): Throw nullp.
2578
2579 * Makefile.in: Rebuilt.
2580 * Makefile.am (ZIP): In "null target" case, zip is found in the
2581 build tree.
2582
2583 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2584 object.
2585 Include Modifier.h.
2586
2587 * java/lang/StringBuffer.java (StringBuffer): Don't use
2588 ensureCapacity to set initial capacity.
2589 (capacity): Subtract `length' from return result.
2590
2591 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2592
2593 * java/io/natFileDescriptorPosix.cc (open): Throw
2594 FileNotFoundException, but with filename and errno in msg.
2595
2596 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2597
2598 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2599 functionality folded into java/net/URL.java per spec.
2600
2601 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2602 than EEXIST for throwing FileNotFoundException.
2603
2604 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2605 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2606
2607 * java/net/URLStreamHandler.java (parseURL): Added stub.
2608
2609 1999-03-15 Andrew Haley <aph@cygnus.com>
2610
2611 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2612 by one errors.
2613
2614 1999-03-15 Andrew Haley <aph@cygnus.com>
2615
2616 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2617 support.
2618
2619 1999-03-12 Tom Tromey <tromey@cygnus.com>
2620
2621 * prims.cc (catch_segv): New function.
2622 Include <signal.h> if HANDLE_SEGV defined. Include
2623 NullPointerException.h.
2624 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2625 handler.
2626
2627 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2628 a SimpleDateFormat, not just a DateFormat.
2629 (defaultCenturyStart, formatData, pattern): Now private.
2630 (append): Now `final'. Use `NumberFormat.format'.
2631 (parse): Wrote.
2632 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2633
2634 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2635 result.
2636
2637 * java/text/MessageFormat.java (format): Use default MessageFormat
2638 constructor.
2639 (parse, parseObject): Wrote.
2640
2641 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2642 constructor.
2643
2644 1999-03-12 Andrew Haley <aph@cygnus.com>
2645
2646 * java/lang/String.java (indexOf): Replace with native method for
2647 better performance.
2648 * java/lang/natString.cc (IndexOf): As above.
2649
2650 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2651 Argument check corrected.
2652 (init(jbyteArray,jint,jint,jstring)): Likewise.
2653
2654 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2655 1.2 compliant method.
2656
2657 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2658 added.
2659 * java/lang/Float.java (byteValue, shortValue): Likewise.
2660
2661 1999-03-11 Tom Tromey <tromey@cygnus.com>
2662
2663 * java/text/DecimalFormat.java (parse): Wrote.
2664
2665 * java/text/ChoiceFormat.java (parse): Set error index on
2666 ParsePosition object.
2667
2668 * java/lang/Integer.java (parseInt): Throw exception on overflow
2669 when intermediate result is most negative number. Changed
2670 overflow detection as well.
2671 * java/lang/Long.java (parseLong): Likewise.
2672
2673 * configure, Makefile.in: Rebuilt.
2674 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2675 CANADIAN when building in source tree that doesn't include gcc.
2676 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2677 define.
2678
2679 * java/text/ChoiceFormat.java (nextDouble): Correct some
2680 off-by-one errors when masking or adding.
2681
2682 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2683 parameter, if given. Use `%', not IEEEremainder.
2684 (scanFix): Throw error if multiplier already set.
2685 (computePattern): Wrote.
2686
2687 1999-03-11 Andrew Haley <aph@cygnus.com>
2688
2689 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2690 52.
2691 (nextDouble): Corrected masking logic. Handle interaction between
2692 `next' and negative numbers.
2693
2694 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2695
2696 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2697 * java/net/URL.java: Added general comments.
2698
2699 1999-03-10 Tom Tromey <tromey@cygnus.com>
2700
2701 * java/text/ChoiceFormat.java (parse): Wrote.
2702
2703 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2704
2705 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2706 Create ChoiceFormat objects.
2707 (format): Special-case ChoiceFormat.
2708 (scanFormatElement): Include { and } in generated style string.
2709
2710 1999-03-09 Tom Tromey <tromey@cygnus.com>
2711
2712 * java/text/ChoiceFormat.java: New file.
2713
2714 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2715
2716 * java/net/BindException.java: Created.
2717 * java/net/ConnectException.java: Created.
2718 * java/net/ContentHandler.java: Created.
2719 * java/net/ContentHandlerFactory.java: Created.
2720 * java/net/FileNameMap.java: Created.
2721 * java/net/MalformedURLException.java: Created.
2722 * java/net/NoRouteToHostException.java: Created.
2723 * java/net/ProtocolException.java: Created.
2724 * java/net/ServerSocket.java (@author): Fixed typo.
2725 * java/net/Socket.java (@author): Fixed typo.
2726 * java/net/SocketImpl.java (@author): Fixed typo.
2727 * java/net/SocketImplFactory.java (@author): Fixed typo.
2728 * java/net/URL.java: Created - nearly complete.
2729 * java/net/URLConnection.java: Created - near-empty stub.
2730 * java/net/URLStreamHandler.java: Created - incomplete stub.
2731 * java/net/URLStreamHandlerFactory.java: Created.
2732 * java/net/UnknownServiceException.java: Created.
2733
2734 1999-03-09 Tom Tromey <tromey@cygnus.com>
2735
2736 * java/lang/System.java (ForwardingInputStream): New class.
2737 (ForwardingOutputStream): Likewise.
2738 (in, out, err): Now `final' forwarding streams.
2739 (setIn, setOut, setErr): Use appropriate method on forwarding
2740 streams.
2741
2742 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2743 class.
2744
2745 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2746
2747 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2748 * java/util/zip/Checksum.java: New interface (complete).
2749 * java/util/zip/Deflater.java: New class (near-empty stub).
2750 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2751 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2752 * java/util/zip/ZipEntry.java: New class (complete).
2753 * java/util/zip/ZipException.java: New class (complete).
2754 * java/util/zip/ZipFile.java: New class (incomplete stub).
2755 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2756
2757 1999-03-09 Tom Tromey <tromey@cygnus.com>
2758
2759 * java/text/MessageFormat.java (MessageFormatElement): Removed
2760 `public' specifiers.
2761
2762 * java/text/DecimalFormat.java (scanFormat): Increment index
2763 before processing exponential format. Fixed a couple typos in
2764 exception messages.
2765 (format): Correct normalization of exponent.
2766
2767 1999-03-08 Tom Tromey <tromey@cygnus.com>
2768
2769 * java/text/SimpleDateFormat.java (parse): Throw
2770 IllegalArgumentException, not ParseException.
2771
2772 1999-03-05 Tom Tromey <tromey@cygnus.com>
2773
2774 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2775 when constructing DateFormatSymbols. Initialize numberFormat
2776 field of superclass.
2777
2778 * java/text/DateFormat.java (equals): Rewrote.
2779 (getAvailableLocales): New method.
2780 (getDateInstance): New methods.
2781 (getDateTimeInstance): Likewise.
2782 (getTimeInstance): Likewise.
2783 (getInstance): New method.
2784 (computeInstance): New method.
2785
2786 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2787 for US.
2788 (safeGetResource): New method.
2789 (DateFormatSymbols): Use Locale paramater.
2790 (equals): Now protected.
2791 Made instance variables private.
2792
2793 1999-03-04 Tom Tromey <tromey@cygnus.com>
2794
2795 * java/text/DecimalFormat.java: New file.
2796
2797 * java/text/NumberFormat.java (groupingUsed,
2798 maximumFractionDigits, maximumIntegerDigits,
2799 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2800 New fields.
2801 (setDecimalSeparatorAlwaysShown, setMultiplier,
2802 setPositivePrefix): Removed.
2803 (setMinimumFractionDigits, setMaximumFractionDigits):
2804 Implemented.
2805 (format): Now final.
2806 Added many new methods.
2807
2808 * Makefile.in: Rebuilt.
2809 * Makefile.am (gnu_files): New macro.
2810 (java_files): Added gnu_files.
2811 (class_gnu_files): New macro.
2812 (class_files): Use it.
2813 (src_gnu_files): New macro.
2814 (gnu.o): New target.
2815 (javao_files): Added gnu.o.
2816
2817 * gnu/gcj/text/LocaleData_en_US.java: New file.
2818 * gnu/gcj/text/LocaleData_en.java: New file.
2819 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2820 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2821 (safeGetString): New method.
2822 (safeGetChar): Likewise.
2823
2824 1999-03-03 Tom Tromey <tromey@cygnus.com>
2825
2826 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2827 constants.
2828
2829 * java/text/FieldPosition.java (equals): Don't check for null
2830 object; instanceof does this.
2831
2832 * java/util/Locale.java (clone): New method.
2833 (equals): Likewise.
2834
2835 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2836
2837 * doc/cni.sgml: New file.
2838
2839 1999-03-03 Tom Tromey <tromey@cygnus.com>
2840
2841 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2842
2843 * java/text/DecimalFormatSymbols.java: New file.
2844
2845 1999-03-02 Tom Tromey <tromey@cygnus.com>
2846
2847 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2848 exists.
2849 * configure: Rebuilt.
2850 * configure.in: Check for sys/filio.h.
2851
2852 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2853 if required.
2854 (load): Always throw UnsatisfiedLinkError.
2855 (loadLibrary): Likewise.
2856
2857 1999-03-02 Anthony Green <green@cygnus.com>
2858
2859 * LIBGCJ_LICENSE: New file.
2860 * LIBJAVA_LICENSE: Removed.
2861 * Many files: libjava now libgcj.
2862
2863 1999-03-02 Tom Tromey <tromey@cygnus.com>
2864
2865 * include/java-chartables.h: Rebuilt.
2866 * chartables.pl (print_block): Make table `const'.
2867 (print_numerics): Likewise.
2868 (print_single_map): Likewise.
2869 (print_all_block): Likewise.
2870 (print_case_table): Likewise.
2871 (print_fast_tables): Likewise.
2872 * java/lang/natCharacter.cc (table_search): `table' argument now
2873 const.
2874
2875 1999-03-01 Tom Tromey <tromey@cygnus.com>
2876
2877 * java/util/Date.java (before, after): Inverted logic.
2878
2879 * java/util/Date.java (parse): Handle case where first character
2880 in string is open parenthesis.
2881 (skipParens): Rewrote.
2882
2883 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2884 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2885
2886 * java/util/Date.java (parse): Correctly compute beginning of
2887 punctuation.
2888
2889 * java/util/Hashtable.java (get): Throw NullPointerException if
2890 key is null.
2891 (containsKey): Likewise.
2892
2893 * java/util/Properties.java (list): Truncate value to 37
2894 characters and add `...'.
2895
2896 * java/lang/Byte.java (parseByte): Pass `radix' to
2897 Integer.parseInt.
2898
2899 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2900 fprintf.
2901 Include System.h, PrintStream.h.
2902
2903 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2904 realloc, or free.
2905
2906 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2907 exists.
2908 * configure: Rebuilt.
2909 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2910 `pwd.d'.
2911
2912 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2913
2914 * java/lang/SecurityManager.java: Import java.net.*.
2915 (checkMulticast): New methods.
2916
2917 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2918
2919 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2920 (nat_files): Add java/lang/reflect/natArray.o.
2921 (nat_headers): Add Field.h and NoSuchFieldException.h.
2922
2923 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2924 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2925 (_Jv_FromReflectedField): Fix buglet.
2926 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2927 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2928 * prims.cc (_Jv_Abort): Include message in print-out.
2929
2930 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2931 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2932 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2933
2934 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2935 * include/config.h.in (HAVE_PWD_H): New feature macro.
2936 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2937 user.name, user.home, user.dir.
2938
2939 * java/lang/reflect/Array.java: New class.
2940 * java/lang/reflect/natArray.cc: New native methods.
2941 * include/javaprims.h: Declare java::lang::reflect::Array.
2942
2943 * java/lang/Class.h (getField): New private method. Add friends.
2944 * java/lang/Class.java (getField): Add private overload.
2945 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2946 getDeclaredMethods): Add working implementations.
2947 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2948 Finish implementation, except for access control.
2949
2950 * java/lang/reflect/Modifier.java (toString): New overload.
2951 * include/java-method.h: New file.
2952 * java/lang/reflect/Method.java (index): Replaced by offset field.
2953 Remove various private fields - get them from _Jv_Field instead.
2954 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2955 New method implementations.
2956
2957 * java/text/NumberFormat.java: Add a bunch of methods.
2958
2959 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2960
2961 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2962
2963 1999-02-26 Tom Tromey <tromey@cygnus.com>
2964
2965 * include/config.h.in: Rebuilt.
2966 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2967 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2968 HAVE_GETHOSTBYADDR_R): New defines.
2969 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2970 gethostbyaddr_r if available.
2971 Include <errno.h>.
2972 * configure: Rebuilt.
2973 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2974
2975 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2976 Don't use JvFree.
2977 (lookup): Likewise.
2978 Include <jvm.h>.
2979 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2980 * prims.cc (_Jv_AllocBytesChecked): New function.
2981
2982 * Makefile.in: Rebuilt.
2983 * Makefile.am (SUBDIRS): Removed `test'.
2984 * configure: Rebuilt.
2985 * configure.in: Don't build test/Makefile.
2986 * test/*: Removed all files.
2987
2988 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2989
2990 * java/lang/reflect/Constructor.java: Make class final to match spec.
2991 * java/lang/reflect/Method.java: Ditto.
2992
2993 1999-02-25 Tom Tromey <tromey@cygnus.com>
2994
2995 * java/net/natInetAddress.cc: Include <sys/types.h> before
2996 <sys/socket.h>.
2997 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2998 <sys/socket.h>.
2999
3000 * java/net/natInetAddress.cc: Declare gethostname if required.
3001 * include/config.h.in: Rebuilt.
3002 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3003 * configure: Rebuilt.
3004 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3005 declared in unistd.h.
3006
3007 1999-02-24 Tom Tromey <tromey@cygnus.com>
3008
3009 * Makefile.in: Rebuilt.
3010 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3011 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3012 from private to "none".
3013
3014 * include/javaprims.h: Regenerated class declarations with new
3015 classes.pl.
3016 * classes.pl (scan): Only generate decls for java.lang, java.io,
3017 and java.util.
3018
3019 1999-02-24 Tom Tromey <tromey@cygnus.com>
3020
3021 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3022 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3023
3024 1999-02-23 Tom Tromey <tromey@cygnus.com>
3025
3026 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3027 not already defined.
3028 * java/io/natFile.cc (_REENTRANT): Only define if not already
3029 defined.
3030 * include/config.h.in: Rebuilt.
3031 * acconfig.h (HAVE_BOEHM_GC): New define.
3032 * configure: Rebuilt.
3033 * configure.in: Define HAVE_BOEHM_GC if using it.
3034 * posix-threads.cc: Include boehm-config.h and gc.h if
3035 HAVE_BOEHM_GC.
3036 * include/posix-threads.h: Added explanatory note about Boehm GC.
3037
3038 * java/io/BufferedReader.java (readLine): Only return null when
3039 EOF seen before any characters read. (In particular, an empty
3040 line should not return null.)
3041
3042 * java/io/BufferedInputStream.java (read): Only refill once per
3043 invocation.
3044
3045 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3046 java.lang.Character.classify12, java.lang.String.hash,
3047 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3048 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3049
3050 * java/text/StringCharacterIterator.java (setIndex): No error if
3051 index == end.
3052 (next): Check for `pos == end', not `end - 1'.
3053 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3054 for null text in each constructor.
3055 (clone): Fixed order of arguments to constructor.
3056
3057 1999-02-22 Tom Tromey <tromey@cygnus.com>
3058
3059 * include/config.h.in: Rebuilt.
3060 * acconfig.h (HAVE_INET6): New define.
3061 (HAVE_SOCKLEN_T): Likewise.
3062 * java/net/PlainSocketImpl.java: Added copyright header.
3063 * java/net/natPlainSocketImpl.cc: Added copyright header.
3064 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3065 (bind): Likewise.
3066 (connect): Likewise.
3067 (accept): Likewise.
3068 (socklen_t): New typedef.
3069 (accept): Use socklen_t.
3070 * java/net/natInetAddress.cc: Added copyright header.
3071 (HAVE_GETHOSTNAME): Don't define.
3072 (HAVE_INET_ADDR): Likewise.
3073 (lookup): Fixed typo.
3074 (aton): Don't use `address' as name of local variable.
3075 (lookup): Use HAVE_INET6, not AF_INET6.
3076
3077 * configure: Rebuilt.
3078 * configure.in: Look for functions inet_aton, inet_addr,
3079 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3080 Check for socklen_t typedef.
3081
3082 * exception.cc (__throw): Declare as __noreturn__.
3083
3084 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3085
3086 * Makefile.am, Makefile.in: Also build java/net.
3087 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3088
3089 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3090 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3091
3092 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3093 * include/cni.h (JvMalloc, JvFree): New inline functions.
3094 (JvThrow): Add __noreturn__ attribute.
3095 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3096 (_Jv_Throw): Add __noreturn__ attribute.
3097
3098 * java/net/PlainSocketImpl.java: Init fnum to -1.
3099 * java/net/ServerSocket.java: Add missing throws clauses.
3100 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3101 don't call create on the latter. Instead, other constructors
3102 have to explicitly call SocketImpl.create.
3103 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3104 from size_t to int, to match ::accept prototype.
3105 * java/net/natInetAddress.cc: Use JvFree rather than free.
3106
3107
3108 1999-02-22 Tom Tromey <tromey@cygnus.com>
3109
3110 * include/javaprims.h: Added new classes.
3111 * java/text/StringCharacterIterator.java: New file.
3112 * java/text/CharacterIterator.java: New file.
3113
3114 * java/text/ParseException.java (errorOffset): Now private.
3115
3116 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3117
3118 * java/net: New package.
3119 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3120 Socket.java,SocketException.java,SocketImpl.java,
3121 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3122 natPlainSocketImpl.cc}: New classes.
3123
3124 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3125 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3126 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3127 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3128
3129 * classes.pl: Translate package into "namespace", not "class".
3130 * include/javaprims.h: Update class list, using "namespace".
3131
3132 1999-02-21 Tom Tromey <tromey@cygnus.com>
3133
3134 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3135 Define when appropriate.
3136
3137 1999-02-20 Tom Tromey <tromey@cygnus.com>
3138
3139 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3140 as a single byte and \u07ff as two bytes.
3141 (_Jv_GetStringUTFLength): Likewise.
3142 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3143 with 0x0f, not 0x1f.
3144
3145 1999-02-19 Tom Tromey <tromey@cygnus.com>
3146
3147 * java/io/DataOutputStream.java (writeUTF): When encoding
3148 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3149 * java/io/DataInputStream.java (readUTF): Mask second byte of
3150 3-byte character with 0x3f, not 0x1f.
3151
3152 * java/io/DataInputStream.java (readLong): Cast result of
3153 readUnsignedByte to long before using.
3154
3155 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3156 it is not null.
3157
3158 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3159 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3160 argument to avoid warning.
3161 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3162 argument to avoid warning.
3163
3164 1999-02-18 Tom Tromey <tromey@cygnus.com>
3165
3166 * mauve-libjava: Omit java.io.DataInputOutput and
3167 java.io.Utf8Encoding.
3168
3169 1999-02-17 Tom Tromey <tromey@cygnus.com>
3170
3171 * Makefile.in: Rebuilt.
3172 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3173 * java/io/natFileDescriptorPosix.cc: Include
3174 InterruptedIOException.h, Thread.h.
3175 (write): Throw InterruptedIOException when required.
3176 (read): Likewise.
3177 * posix-threads.cc: Include <signal.h>.
3178 (_Jv_ThreadInterrupt): New function.
3179 (INTR): New define.
3180 (handle_intr): New function.
3181 (_Jv_InitThreads): Register handle_intr via sigaction.
3182 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3183 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3184 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3185 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3186
3187 1999-02-19 Andrew Haley <aph@cygnus.com>
3188
3189 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3190 of subgroups.
3191 (ThreadGroup (int)): Set the maximum priority of the initial
3192 ThreadGroup.
3193
3194 1999-02-18 Andrew Haley <aph@cygnus.com>
3195
3196 * java/lang/natClass.cc (forName): Check for the case where a
3197 classname is the name of an array and call FindClassFromSignature
3198 to find the Class.
3199
3200 1999-02-18 Andrew Haley <aph@cygnus.com>
3201
3202 * java/lang/StringBuffer (insert (int, String)): Move up any
3203 characters above the insert position and increase the length of
3204 the string buffer by the length of the argument.
3205 (insert (int, char[])): Likewise.
3206 (insert (int, char)): Likewise.
3207 (StringBuffer (String)): The initial capacity of the string buffer
3208 is 16 plus the length of the argument.
3209 (getChars): Add a JDK 1.2 FIXME.
3210
3211 1999-02-18 Andrew Haley <aph@cygnus.com>
3212
3213 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3214 Integer.parseInt.
3215
3216 1999-02-18 Andrew Haley <aph@cygnus.com>
3217
3218 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3219 instead of floating-point equality. This is necessary for
3220 correct floating-point Hashtables.
3221 * java/lang/Float.java (equals): Ditto.
3222
3223 1999-02-16 Tom Tromey <tromey@cygnus.com>
3224
3225 * java/util/Properties.java (list): Truncate value to 37
3226 characters and add "...".
3227
3228 1999-02-16 Tom Tromey <tromey@cygnus.com>
3229
3230 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3231 if initCap is negative.
3232 (contains): Implement JDK1.2-style handling of null argument.
3233 (removeElement): Likewise.
3234 (indexOf): Likewise. Also, correctly handle case where idx is
3235 negative.
3236 (lastIndexOf): Likewise.
3237
3238 1999-02-16 Tom Tromey <tromey@cygnus.com>
3239
3240 * java/lang/natString.cc (init): Increment source pointer in
3241 loop.
3242
3243 1999-02-16 Tom Tromey <tromey@cygnus.com>
3244
3245 * exception.cc: Include NullPointerException.h.
3246 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3247
3248 1999-02-16 Tom Tromey <tromey@cygnus.com>
3249
3250 * Makefile.in: Rebuilt.
3251 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3252
3253 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3254
3255 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3256 we're compiling canadian.
3257 * configure: Regenerated.
3258
3259 1999-02-12 Andrew Haley <aph@cygnus.com>
3260
3261 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3262 deleted from libgcj.
3263
3264 1999-02-12 Tom Tromey <tromey@cygnus.com>
3265
3266 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3267 (_Jv_eh_free): Don't call free.
3268 Don't declare malloc or free.
3269
3270 1999-02-11 Tom Tromey <tromey@cygnus.com>
3271
3272 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3273
3274 1999-02-11 Andrew Haley <aph@cygnus.com>
3275
3276 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3277 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3278 needed by java.lang.*.
3279 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3280 wf_fmod.o: Removed from libjava.a.
3281
3282 1999-02-11 Tom Tromey <tromey@cygnus.com>
3283
3284 * include/javaprims.h: Reverted previous change; with it
3285 exception.cc can't compile.
3286
3287 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3288
3289 * include/config.h.in: Rebuilt.
3290 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3291 HAVE_SCHED_YIELD.
3292 * configure: Rebuilt.
3293 * configure.in: Check for sched_yield. Look in thread library for
3294 all thread functions.
3295
3296 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3297 no recursive mutexes.
3298 (_Jv_MutexDestroy): Define when required.
3299 (_Jv_MutexLock): Likewise.
3300 (_Jv_MutexUnlock): Likewise.
3301 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3302 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3303 (_Jv_Mutex_t): New structure.
3304 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3305 (_Jv_MutexLock): Likewise.
3306 (_Jv_MutexUnlock): Likewise.
3307
3308 1999-02-10 Tom Tromey <tromey@cygnus.com>
3309
3310 * aclocal.m4, configure, Makefile.in: Rebuilt.
3311 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3312 automake 1.4.
3313 * configure.in: Changed to track library changes.
3314 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3315 (AM_CXXFLAGS): Likewise.
3316 (data_DATA): Likewise.
3317 (AM_CFLAGS): Likewise.
3318 (JC1FLAGS): Likewise.
3319 (libgcj_a_SOURCES): Likewise.
3320 (EXTRA_libgcj_a_SOURCES): Likewise.
3321 (libgcj_a_DEPENDENCIES): Likewise.
3322 (libgcj_a_LIBADD): Likewise.
3323 (libgcj.zip): Likewise.
3324 (CLEANFILES): Likewise.
3325 ($(nat_headers)): Likewise.
3326 (java/lang/FirstThread.h): Likewise.
3327 (java/lang/ThreadGroup.h): Likewise.
3328 (java/lang/String.h): Likewise.
3329 (java/lang/reflect/Field.h): Likewise.
3330 (BUILT_SOURCES): Likewise.
3331 (maintainer-check): Likewise.
3332 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3333 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3334
3335 * java/util/natGregorianCalendar.cc (computeFields): Only use
3336 gmtime_r and localtime_r when configured for posix threads.
3337
3338 * java/io/natFile.cc (get_entry): Only use readdir_r when
3339 configured for posix threads.
3340
3341 * java/util/natGregorianCalendar.cc: Update copyright notice.
3342 * java/util/TimeZone.java: Ditto.
3343 * java/util/SimpleTimeZone.java: Ditto.
3344
3345 1999-02-08 Tom Tromey <tromey@cygnus.com>
3346
3347 * java/io/PrintStream.java (line_separator): New constant.
3348 (print): Use line_separator, not `file.separator' property.
3349 (println): Use line_separator.
3350
3351 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3352 when trying to instantiate Class.
3353
3354 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3355 NullPointerException if argument is null.
3356
3357 * java/lang/Thread.java (setName): Throw NullPointerException, not
3358 IllegalArgumentException.
3359 (Thread): Likewise.
3360
3361 1999-02-08 Andrew Haley <aph@cygnus.com>
3362
3363 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3364 create new Classes with Class.newInstance().
3365
3366 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3367 semiciolon to end of an array Class's signature if the elements of
3368 the array aren't themselves arrays.
3369
3370 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3371 array of objects is always sizeof(jobject), not the size of the
3372 object to which the reference points.
3373
3374 1999-02-08 Tom Tromey <tromey@cygnus.com>
3375
3376 * java/util/BitSet.java (and): Throw NullPointerException when
3377 required.
3378 (or): Likewise.
3379 (xor): Likewise.
3380
3381 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3382 if argument is negative.
3383 (clear): Correctly compute `offset'. Throw
3384 IndexOutOfBoundsException when required.
3385 (set): Likewise.
3386 (get): Likewise. Also, return correct value.
3387 (ensure): Changed meaning of argument.
3388 (toString): Wrap contents in `{}'; put spaces after commas.
3389 (hashCode): Don't try to examine elements off the end of array.
3390 (or): Correctly include bits past the end of this bit set.
3391 (xor): Likewise.
3392
3393 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3394
3395 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3396 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3397
3398 1999-02-04 Andrew Haley <aph@cygnus.com>
3399
3400 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3401 '/' in signatures to '.'
3402 (Class::getName): Likewise,
3403 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3404 signature.
3405 * java/lang/natFirstThread.cc (run): Change '/' in main's
3406 signature to '.'.
3407
3408 1999-02-03 Andrew Haley <aph@cygnus.com>
3409
3410 * configure.host: -ffloat-store added when compiling libjava on
3411 x86. fdlibm apparently relies on this.
3412
3413 * java/lang/ThreadGroup.java (add): throw an exception if the
3414 ThreadGroup has been destroyed.
3415
3416 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3417 behaviour.
3418
3419 1999-01-27 Tom Tromey <tromey@cygnus.com>
3420
3421 * java/lang/StringBuffer.java (StringBuffer): Handle null
3422 argument.
3423
3424 1999-01-21 Tom Tromey <tromey@cygnus.com>
3425
3426 * java/lang/natFirstThread.cc (run): Don't require main to be
3427 public.
3428
3429 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3430
3431 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3432
3433 1999-01-20 Tom Tromey <tromey@cygnus.com>
3434
3435 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3436 StringClass.
3437 (rehash): Likewise.
3438 (intern): Likewise.
3439 (unintern): Likewise.
3440 (_Jv_NewStringUtf8Const): Likewise.
3441
3442 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3443 Character.isLetter, to see if character is self-quoting. Also,
3444 correctly handle quoted characters.
3445 (parse): Fixed typo. Also now throws ParseException.
3446
3447 1999-01-15 Tom Tromey <tromey@cygnus.com>
3448
3449 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3450
3451 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3452 _Jv_SyncInfo has `init' member.
3453
3454 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3455 coop_mutex_unlock.
3456
3457 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3458 IllegalMonitorStateException if unlock fails.
3459
3460 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3461 zero.
3462 (_Jv_NewObjectArray): Likewise.
3463
3464 1999-01-14 Tom Tromey <tromey@cygnus.com>
3465
3466 * java/lang/Character.java (isJavaIdentifierPart): Allow
3467 LETTER_NUMBER characters.
3468
3469 * chartables.pl (process_char): Fixed error messages.
3470
3471 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3472 * chartables.pl: Updated comments. Changed detection of non-digit
3473 numeric values (no longer miss \u00b2 and friends).
3474
3475 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3476 currency symbols and connector punctuation.
3477 (isIdentifierIgnorable): Make 7f-9f ignorable.
3478
3479 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3480 (_Jv_NewPrimArray): Likewise.
3481 (SIZE_T_MAX): New define.
3482
3483 * java/lang/ClassLoader.java (system): Now private and final.
3484
3485 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3486 null.
3487
3488 * configure: Rebuilt.
3489 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3490 well.
3491 * exception.cc: Include gansidecl.h.
3492
3493 1999-01-14 Andrew Haley <aph@cygnus.com>
3494
3495 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3496 corrected: they didn't treat -0.0 and NaNs correctly.
3497
3498 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3499
3500 * nogc.cc: Use calloc to zero out memory.
3501
3502 1999-01-11 Tom Tromey <tromey@cygnus.com>
3503
3504 * java/lang/natClass.cc (isInstance): Return false if this class
3505 is primitive, not if class of `obj' is primitive.
3506 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3507
3508 * java/io/SequenceInputStream.java (close): Handle case where `in'
3509 is already null.
3510
3511 * java/text/DateFormat.java (format): New method.
3512
3513 * mauve-libjava: Omit java.text.DateFormat.
3514
3515 1999-01-08 Tom Tromey <tromey@cygnus.com>
3516
3517 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3518 argument.
3519 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3520 argument.
3521 (_Jv_CondNotifyAll): Likewise.
3522
3523 * configure: Rebuilt.
3524 * configure.in: Change --enable-source-compilation logic to work
3525 correctly.
3526
3527 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3528
3529 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3530 and RUNTESTFLAGS from AM_MAKEFLAGS.
3531 * configure.in: AM_RUNTESTFLAGS added.
3532 * configure.host: AM_RUNTESTFLAGS added.
3533 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3534 * configure: rebuilt.
3535 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3536
3537 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3538 argv[] made conditional because embedded targets may not have
3539 argv[].
3540 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3541 explanatory comments added in call to super.
3542
3543 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3544 exception thrown in the test harness itself added.
3545 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3546
3547 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3548
3549 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3550
3551 1999-01-06 Tom Tromey <tromey@cygnus.com>
3552
3553 * java/io/natFile.cc (get_entry): New function.
3554 (performList): Use get_entry.
3555 * include/config.h.in: Rebuilt.
3556 * acconfig.h (HAVE_READDIR_R): New define.
3557 * configure: Rebuilt.
3558 * configure.in: Look for readdir_r.
3559
3560 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3561
3562 * java/util/natDate.cc: Added copyright header.
3563
3564 1999-01-05 Tom Tromey <tromey@cygnus.com>
3565
3566 * include/config.h.in: Rebuilt.
3567 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3568 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3569 * configure: Rebuilt.
3570 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3571 unlink, and realpath.
3572 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3573 (stat): Conditionalize on HAVE_STAT.
3574 (attr): Likewise.
3575 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3576 (performMkdir): Conditionalize on HAVE_MKDIR.
3577 (performRenameTo): Conditionalize on HAVE_RENAME.
3578 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3579
3580 * include/config.h.in: Rebuilt.
3581 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3582 * configure: Rebuilt.
3583 * configure.in: Check for gmtime_r and localtime_r. For cross
3584 builds, assume they exist.
3585
3586 * mauve-libjava: Include java.text.DateFormatSymbols again.
3587 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3588 from setAmPmStrings.
3589
3590 * mauve-libjava: Omit java.text.DateFormatSymbols.
3591
3592 1999-01-04 Tom Tromey <tromey@cygnus.com>
3593
3594 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3595
3596 * java/io/LineNumberReader.java (read): Decrement `count' in
3597 loop.
3598
3599 * java/io/BufferedWriter.java (write): Correctly determine when
3600 incoming data would overrun buffer. Flush buffer if write causes
3601 it to become full.
3602
3603 * java/io/BufferedOutputStream.java (write): Increment `count'
3604 after copying data into buffer.
3605
3606 * java/io/FilterOutputStream.java (close): Call flush first.
3607
3608 * java/io/PipedReader.java (read): If read causes `out' to catch
3609 up with `in', then set `in' to -1.
3610
3611 * java/io/LineNumberInputStream.java (read): If no bytes read,
3612 return -1. If no bytes requested, return 0.
3613
3614 * java/lang/StringBuffer.java (insert): If `str' is null, use
3615 string "null".
3616
3617 1998-12-30 Anthony Green <green@cygnus.com>
3618
3619 * README: Removed.
3620 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3621
3622 1998-12-23 Tom Tromey <tromey@cygnus.com>
3623
3624 * java/io/PushbackInputStream.java (read): `off' already includes
3625 `numBytes'.
3626
3627 1998-12-17 Tom Tromey <tromey@cygnus.com>
3628
3629 * Makefile.in: Rebuilt.
3630 * Makefile.am (GCJ_canadian): Include target_alias.
3631
3632 * java/lang/natFirstThread.cc (run): Require main's class to be
3633 public.
3634
3635 1998-12-16 Tom Tromey <tromey@cygnus.com>
3636
3637 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3638
3639 * java/util/ResourceBundle.java (getBundle): Throw
3640 NullPointerException if locale argument is null.
3641
3642 * java/lang/natClass.cc (forName): Throw NullPointerException if
3643 argument is null.
3644 Include NullPointerException.h.
3645
3646 1998-12-14 Tom Tromey <tromey@cygnus.com>
3647
3648 * java/lang/Character.java (Character): Implement Comparable.
3649 (compareTo): New methods.
3650
3651 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3652 correct country and language codes.
3653 (UK, US): New constants.
3654 (setDefault): Language codes are lower-case.
3655
3656 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3657 (getDeclaredConstructors): Likewise.
3658 (getDeclaredField): Likewise.
3659 (getDeclaredFields): Likewise.
3660 (getDeclaredMethod): Likewise.
3661 (getDeclaredMethods): Likewise.
3662 (getField): Likewise.
3663 (getFields): Likewise.
3664 (getMethod): Likewise.
3665 (getMethods): Likewise.
3666 * java/lang/Class.java: Declare new methods.
3667 * java/lang/Class.h: Declare new methods.
3668
3669 * java/lang/natString.cc: Removed `#pragma implementation'.
3670 * include/cni.h (_Jv_GetStringChars): New function.
3671 * Makefile.in: Rebuilt.
3672 * Makefile.am (java/lang/String.h): Don't generate definition for
3673 _Jv_GetStringChars.
3674
3675 * java/lang/natString.cc: Added `#pragma implementation'.
3676
3677 * Makefile.in: Rebuilt.
3678 * Makefile.am (libjava.zip): Put build directory first in class
3679 path to avoid bug in compiler.
3680
3681 1998-12-14 Anthony Green <green@cygnus.com>
3682
3683 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3684
3685 * include/javaprims.h: Add EventObject, ListResourceBundle and
3686 ResourceBundle.
3687
3688 1998-12-13 Anthony Green <green@cygnus.com>
3689
3690 * mauve-libjava: Run the ResourceBundle tests.
3691
3692 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3693 NULL.
3694
3695 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3696
3697 * configure.in, configure: Make --enable-gcj-classes and
3698 --enable-source-compilation the default. (Nervously...) Yeah!
3699 Based on a patch from Tom Tromey.
3700
3701 1998-12-13 Tom Tromey <tromey@cygnus.com>
3702
3703 * java/util/EventObject.java: New file.
3704 * java/util/EventListener.java: New file.
3705
3706 * include/javaprims.h: Updated class declarations.
3707 * Makefile.in: Rebuilt.
3708 * Makefile.am (nat_headers): Added Constructor.h.
3709 (java/lang/String.h): Don't inline String::length().
3710 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3711 * java/lang/Class.java (initializeClass, hackRunInitializers,
3712 hackTrampoline): No need to mark `final'.
3713 (getConstructor, getConstructors): Declare.
3714 * java/lang/reflect/Field.java (equals): New method.
3715 * java/lang/natClass.cc (getConstructor): New method.
3716 (getConstructors): Likewise.
3717 Include Method.h, Field.h, Constructor.h.
3718 * java/lang/reflect/Constructor.java: New file.
3719 * java/lang/reflect/Method.java (toString): No space before open
3720 paren.
3721 (equals): Simplified.
3722
3723 1998-12-13 Anthony Green <green@cygnus.com>
3724
3725 * java/util/ResourceBundle.java: New file.
3726 * java/util/ListResourceBundle.java: New file.
3727
3728 1998-12-12 Tom Tromey <tromey@cygnus.com>
3729
3730 * java/lang/System.java (in, out, err): Now buffered streams by
3731 default.
3732
3733 * include/javaprims.h: Updated class declarations.
3734 * Makefile.in: Rebuilt.
3735 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3736 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3737 Long.h, Boolean.h.
3738 (nat_files): Added natMethod.o.
3739 * java/lang/reflect/natMethod.cc: New file.
3740 * java/lang/reflect/Field.java (Field): Now extends
3741 AccessibleObject.
3742 * java/lang/reflect/AccessibleObject.java: New file.
3743 * java/lang/reflect/InvocationTargetException.java: New file.
3744
3745 1998-12-11 Tom Tromey <tromey@cygnus.com>
3746
3747 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3748 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3749 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3750
3751 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3752
3753 1998-12-09 Tom Tromey <tromey@cygnus.com>
3754
3755 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3756 HAVE_CTIME_R.
3757
3758 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3759 character is already titlecase.
3760
3761 * java/lang/Character.java (isJavaLetter): Follow spec.
3762 (isJavaLetterOrDigit): Likewise.
3763
3764 * java/util/GregorianCalendar.java (gregorianCutover): Append
3765 `L'.
3766
3767 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3768
3769 1998-12-08 Tom Tromey <tromey@cygnus.com>
3770
3771 * java/lang/reflect/Modifier.java (toString): Replace second
3772 `static' with `synchronized'.
3773
3774 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3775 * java/lang/Object.h (Object::hack12_6): Declare.
3776 * java/lang/Object.java (hack12_6): New function.
3777
3778 1998-12-07 Tom Tromey <tromey@cygnus.com>
3779
3780 * include/java-array.h (__JArray::clone): Removed decl.
3781 * prims.cc (__JArray::clone): Removed.
3782 * java/lang/natObject.cc (clone): Incorporate code to clone an
3783 array.
3784
3785 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3786 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3787 Correctly use dtable_method_count.
3788
3789 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3790
3791 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3792 IEEE754 values.
3793
3794 1998-12-06 Anthony Green <green@cygnus.com>
3795
3796 * mauve-libjava: Don't test ResourceBundle.
3797
3798 1998-12-04 Tom Tromey <tromey@cygnus.com>
3799
3800 More JDK 1.2 spec fixes:
3801 * java/util/Date.java (millis): Now private.
3802 * java/text/DateFormat.java (DateFormat): Constructor now
3803 protected.
3804 * java/lang/Void.java (Void): New private constructor.
3805 * java/lang/System.java (System): New private constructor.
3806 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3807 body.
3808 (currentClassLoader): New method.
3809 (currentLoadedClass): New method.
3810 * java/lang/Math.java (Math): New private constructor.
3811 * java/lang/Compiler.java (Compiler): New private constructor.
3812 * java/lang/Class.java (Class): New private constructor.
3813 * java/lang/Double.java (toString): Removed access specifier from
3814 two-argument `toString' method.
3815
3816 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3817
3818 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3819 causes it to be flushed from an fp register (where it may be
3820 longer than double precision) to a double in memory. This is
3821 essential to ensure correct rounding behaviour.
3822
3823 1998-12-04 Tom Tromey <tromey@cygnus.com>
3824
3825 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3826 function.
3827
3828 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3829 explaining apparent divergence from JDK 1.2.
3830
3831 1998-12-04 Per Bothner <bothner@cygnus.com>
3832
3833 * include/no-threads.h: Remove unused parameter names.
3834 This silences a bunch of warnings.
3835
3836 1998-12-04 Tom Tromey <tromey@cygnus.com>
3837
3838 * include/config.h.in: Rebuilt.
3839 * acconfig.h (HAVE_CTIME_R): New symbol.
3840
3841 1998-12-03 Tom Tromey <tromey@cygnus.com>
3842
3843 * mauve-libjava: Added many more categories to reject.
3844
3845 Changes to follow JDK1.2 spec:
3846 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3847 setErr, setIn, setOut): No need to be `final'.
3848 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3849 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3850 * java/lang/Object.java (wait): `nanos' argument is an int.
3851 * java/lang/VirtualMachineError.java: Class is abstract.
3852 * java/lang/ThreadDeath.java: Made constructors public.
3853 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3854 constructor.
3855
3856 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3857
3858 * java/text/DateFormatSymbols.java (getAmPmStrings,
3859 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3860
3861 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3862
3863 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3864 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3865 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3866 and 1.2.
3867
3868 * java/lang/IllegalThreadStateException.java
3869 (IllegalThreadStateException): Changed extending class to match spec.
3870
3871 * java/lang/NumberFormatException.java
3872 (java/lang/NumberFormatException): Changed extending class to match
3873 spec.
3874
3875 * java/util/Observer.java (Observer): Changed sig to match JCL.
3876
3877 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3878
3879 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3880 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3881 signature to match JDK 1.1 and 1.2.
3882
3883 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3884
3885 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3886 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3887 * Makefile.in, configure: Rebuilt.
3888
3889 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3890 name.
3891
3892 1998-12-02 Tom Tromey <tromey@cygnus.com>
3893
3894 * mauve-libjava: New file.
3895
3896 The remaining `-W -Wall' fixes:
3897 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3898 avoid warning.
3899 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3900 `else'.
3901 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3902 warning.
3903 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3904 avoid warning.
3905 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3906 ambiguous `else'.
3907 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3908 warning.
3909 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3910 suggestion.
3911 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3912 suggestion.
3913 * java/lang/mprec.c (Balloc): Removed unused variable.
3914 (mult): Added parentheses per gcc suggestion.
3915 (pow5mult): Likewise.
3916 (lshift): Likewise.
3917 (ulp): Likewise.
3918 (b2d): Likewise.
3919 (d2b): Likewise.
3920 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3921 suggestion. Added cast to `int' to avoid signed/unsigned
3922 comparison.
3923 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3924 parameter.
3925 (IsAssignableFrom): Likewise.
3926 (_Jv_JNI_GetObjectField): Likewise.
3927 (_Jv_JNI_GetByteField): Likewise.
3928 (_Jv_JNI_GetShortField): Likewise.
3929 (_Jv_JNI_GetIntField): Likewise.
3930 (_Jv_JNI_GetLongField): Likewise.
3931 (_Jv_JNI_GetStringLength): Likewise.
3932 (_Jv_JNI_ToReflectedField): Likewise.
3933 (_Jv_JNI_FromReflectedField): Likewise.
3934 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3935
3936 * Makefile.in: Rebuilt.
3937 * Makefile.am (AM_CFLAGS): Define conditionally.
3938 (WARNINGS): New macro.
3939 (AM_CXXFLAGS): Include WARNINGS.
3940 * configure: Rebuilt.
3941 * configure.in (USING_GCC): New conditional.
3942
3943 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3944
3945 * java/lang/Character.java: Changed classification constants to
3946 type `byte' to match JDK 1.2 docs.
3947
3948 1998-12-01 Tom Tromey <tromey@cygnus.com>
3949
3950 Some fixes to be `-W -Wall' clean:
3951 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3952 (_Jv_MarkArray): Likewise.
3953 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3954 (to_upper_title): Likewise.
3955 (isTitleCase): Likewise.
3956 (toTitleCase): Likewise.
3957 (getNumericValue): Likewise.
3958 (isLowerCase): Likewise.
3959 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3960 (avoids compiler warning).
3961 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3962 value.
3963 (getDeclaringClass): Likewise.
3964 (_Jv_LookupInterfaceMethod): Likewise.
3965 (_Jv_NewClass): Removed name of unused parameter.
3966 * exception.cc (_Jv_type_matcher): Removed unused variable.
3967 (_Jv_setup_eh_info): Removed name of unused parameter.
3968 * prims.cc (_Jv_NewArray): Always return a value.
3969 (_Jv_FindClassFromSignature): Likewise.
3970 * include/java-field.h (getNameUtf8Const): Removed name of unused
3971 parameter.
3972 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3973 unused parameter.
3974 (_Jv_ThreadSetPriority): Likewise.
3975
3976 * java/lang/natString.cc (hashChars): Now static.
3977
3978 * java/lang/FirstThread.java (FirstThread): Now final.
3979
3980 * java/io/File.java (performMkdir, performRenameTo): Now private.
3981
3982 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3983 if no time function defined.
3984
3985 * configure: Rebuilt.
3986 * configure.in: Look for ctime_r, ctime.
3987 * java/util/Date.java (toString): Now native.
3988 * java/util/natDate.cc (toString): Rewrote.
3989
3990 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3991
3992 * Add LDFLAGS line to allow TX39 test cases to link when cross
3993 compiling.
3994
3995 1998-11-23 Anthony Green <green@cygnus.com>
3996
3997 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3998 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3999 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4000 include/java-array.h, include/java-assert.h, include/java-field.h,
4001 include/javaprims.h, include/jni.h, include/jvm.h,
4002 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4003 include/quick-threads.h, java/io/BufferedInputStream.java,
4004 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4005 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4006 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4007 java/io/CharArrayWriter.java,
4008 java/io/CharConversionException.java, java/io/DataInput.java,
4009 java/io/DataInputStream.java, java/io/DataOutput.java,
4010 java/io/DataOutputStream.java, java/io/EOFException.java,
4011 java/io/File.java, java/io/FileDescriptor.java,
4012 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4013 java/io/FileOutputStream.java, java/io/FileReader.java,
4014 java/io/FileWriter.java, java/io/FilenameFilter.java,
4015 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4016 java/io/FilterReader.java, java/io/FilterWriter.java,
4017 java/io/IOException.java, java/io/InputStream.java,
4018 java/io/InputStreamReader.java,
4019 java/io/InterruptedIOException.java,
4020 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4021 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4022 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4023 java/io/PipedReader.java, java/io/PipedWriter.java,
4024 java/io/PrintStream.java, java/io/PrintWriter.java,
4025 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4026 java/io/RandomAccessFile.java, java/io/Reader.java,
4027 java/io/SequenceInputStream.java, java/io/Serializable.java,
4028 java/io/StreamTokenizer.java,
4029 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4030 java/io/StringWriter.java, java/io/SyncFailedException.java,
4031 java/io/UTFDataFormatException.java,
4032 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4033 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4034 java/io/natFileDescriptorPosix.cc,
4035 java/lang/AbstractMethodError.java,
4036 java/lang/ArithmeticException.java,
4037 java/lang/ArrayIndexOutOfBoundsException.java,
4038 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4039 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4040 java/lang/Class.java, java/lang/ClassCastException.java,
4041 java/lang/ClassCircularityError.java,
4042 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4043 java/lang/ClassNotFoundException.java,
4044 java/lang/CloneNotSupportedException.java,
4045 java/lang/Cloneable.java, java/lang/Comparable.java,
4046 java/lang/Compiler.java, java/lang/Double.java,
4047 java/lang/Error.java, java/lang/Exception.java,
4048 java/lang/ExceptionInInitializerError.java,
4049 java/lang/FirstThread.java, java/lang/Float.java,
4050 java/lang/IllegalAccessError.java,
4051 java/lang/IllegalAccessException.java,
4052 java/lang/IllegalArgumentException.java,
4053 java/lang/IllegalMonitorStateException.java,
4054 java/lang/IllegalStateException.java,
4055 java/lang/IllegalThreadStateException.java,
4056 java/lang/IncompatibleClassChangeError.java,
4057 java/lang/IndexOutOfBoundsException.java,
4058 java/lang/InstantiationError.java,
4059 java/lang/InstantiationException.java, java/lang/Integer.java,
4060 java/lang/InternalError.java, java/lang/InterruptedException.java,
4061 java/lang/LinkageError.java, java/lang/Long.java,
4062 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4063 java/lang/NoClassDefFoundError.java,
4064 java/lang/NoSuchFieldError.java,
4065 java/lang/NoSuchFieldException.java,
4066 java/lang/NoSuchMethodError.java,
4067 java/lang/NoSuchMethodException.java,
4068 java/lang/NullPointerException.java, java/lang/Number.java,
4069 java/lang/NumberFormatException.java, java/lang/Object.h,
4070 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4071 java/lang/Process.java, java/lang/Runnable.java,
4072 java/lang/Runtime.java, java/lang/RuntimeException.java,
4073 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4074 java/lang/Short.java, java/lang/StackOverflowError.java,
4075 java/lang/String.java, java/lang/StringBuffer.java,
4076 java/lang/StringIndexOutOfBoundsException.java,
4077 java/lang/System.java, java/lang/Thread.java,
4078 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4079 java/lang/Throwable.java, java/lang/UnknownError.java,
4080 java/lang/UnsatisfiedLinkError.java,
4081 java/lang/UnsupportedOperationException.java,
4082 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4083 java/lang/Void.java, java/lang/natCharacter.cc,
4084 java/lang/natClass.cc, java/lang/natDouble.cc,
4085 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4086 java/lang/natMath.cc, java/lang/natObject.cc,
4087 java/lang/natRuntime.cc, java/lang/natString.cc,
4088 java/lang/natSystem.cc, java/lang/natThread.cc,
4089 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4090 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4091 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4092 java/text/FieldPosition.java, java/text/Format.java,
4093 java/text/NumberFormat.java, java/text/ParseException.java,
4094 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4095 java/util/BitSet.java, java/util/Calendar.java,
4096 java/util/ConcurrentModificationException.java,
4097 java/util/Date.java, java/util/Dictionary.java,
4098 java/util/EmptyStackException.java, java/util/Enumeration.java,
4099 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4100 java/util/Locale.java, java/util/MissingResourceException.java,
4101 java/util/NoSuchElementException.java, java/util/Observable.java,
4102 java/util/Observer.java, java/util/Properties.java,
4103 java/util/Random.java, java/util/SimpleTimeZone.java,
4104 java/util/Stack.java, java/util/StringTokenizer.java,
4105 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4106 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4107 copyright notices.
4108
4109 * exception.cc: Include eh-common.h instead of duplicating
4110 code.
4111
4112 1998-11-23 Tom Tromey <tromey@cygnus.com>
4113
4114 * configure.host: Don't add `-O2' to libjava_flags. Only add
4115 `-Os' to libjava_flags once.
4116
4117 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4118
4119 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4120 * Makefile.in: likewise
4121 * acconfig.h: add ECOS conditional for configure.h
4122 * config.h.in: likewise
4123 * configure: add test for --with-ecos
4124 * configure.in: likewise
4125 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4126 rename call to avoid name clash.
4127 * java/lang/natSystem.cc: add eCos clock support.
4128 * java/util/natGregorianCalendar.cc: add eCos support.
4129
4130 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4131
4132 * Makefile.am, Makefile.in, configure.host: tx39 build option
4133 "-G 0" added.
4134
4135 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4136
4137 * java/io/BufferedReader.java: Added more comments for clarity.
4138 (mark): Used more mnemonic name for local var extraBuffSpace.
4139
4140 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4141 confusion with private method of same name in superclass.
4142 (skipRedundantLF): Set fields in special case to avoid infinite
4143 recursion. Check if markPos has been invalidated in special case.
4144 (readLine): Rewritten to use readLine method of superclass.
4145 (skip): Incorporated code from lineEnd.
4146
4147 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4148
4149 * java/io/BufferedReader.java (readLine): New method.
4150 (lineEnd): new private method.
4151 (mark): Track special case for readLine of getting '\r' at the
4152 end of the buffer.
4153 (reset): Ditto.
4154 (read): Ditto.
4155 (fill): Ditto.
4156 (skip): Ditto.
4157
4158 * java/io/InputStreamReader.java (read): Return number chars skipped
4159 rather than requested.
4160
4161 * java/lang/StringBuffer.java (append): Update count and differentiate
4162 between field and local variable.
4163
4164 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4165 seconds. Deal with military style time.
4166 (parse): Consistently treat all timezones in minutes until final
4167 calculation. Flag as non-local timezone. Return value in milliseconds.
4168 (setTime): Adjust for year offset from 1900.
4169 (UTC): Adjust for year offset from 1900.
4170
4171 1998-11-17 Tom Tromey <tromey@cygnus.com>
4172
4173 * configure: Rebuilt.
4174 * configure.in: Switch on host, not target.
4175
4176 * Makefile.in: Rebuilt.
4177 * Makefile.am (GCJ_no): New macro.
4178 (GCJ): Use @CANADIAN@.
4179 (GCJH_no): New macro
4180 (GCJH_canadian): New macro.
4181 (GCJH): Use @CANADIAN@.
4182 (ZIP_no): New macro.
4183 (ZIP_canadian): New macro.
4184 (ZIP): Use @CANADIAN@.
4185 * aclocal.m4, configure: Rebuilt.
4186 * configure.in (CANADIAN): Compute and subst.
4187
4188 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4189
4190 * java/io/FileDescriptor.java (finalize): Only close file
4191 descriptor if valid.
4192
4193 1998-11-17 Tom Tromey <tromey@cygnus.com>
4194
4195 * prims.cc (_Jv_InitRuntime): Removed.
4196
4197 1998-11-16 Tom Tromey <tromey@cygnus.com>
4198
4199 * java/io/FileOutputStream.java (close): Only close file
4200 descriptor if valid.
4201 (finalize): New method.
4202
4203 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4204 (_Jv_NewPrimArray): Likewise.
4205 * boehm.cc (_Jv_RegisterFinalizer): Use
4206 GC_REGISTER_FINALIZER_NO_ORDER.
4207 (GC_GENERIC_MALLOC): New define.
4208 (_Jv_AllocObj): Use it.
4209 (_Jv_AllocArray): Likewise.
4210 (_Jv_AllocBytes): Likewise.
4211 (_Jv_MarkObj): Just return if vtbl not set.
4212 (_Jv_MarkArray): Likewise.
4213 (MAYBE_MARK): New macro; use everywhere.
4214 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4215
4216 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4217
4218 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4219 to a jlong before calculation to prevent overflow.
4220
4221 1998-11-16 Tom Tromey <tromey@cygnus.com>
4222
4223 * Makefile.in: Rebuilt.
4224 * Makefile.am (nat_headers): Fixed typo.
4225
4226 1998-11-15 Tom Tromey <tromey@cygnus.com>
4227
4228 * java/lang/Class.h (Class::getName): Removed definition.
4229 * Makefile.in: Rebuilt.
4230 * Makefile.am (nat_headers): Added InstantiationException.h,
4231 NoSuchMethodException.h.
4232 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4233 (init_name): New global.
4234 (hackRunInitializers): Use clinit_name.
4235 Include InstantiationException.h, NoSuchMethodException.h.
4236 (newInstance): Do some error checking (but not all). Call
4237 constructor.
4238 (forName): Throw exception if class not found.
4239 (getName): New method.
4240 (forName): Transform class name from external format to internal
4241 format before lookup.
4242
4243 1998-11-15 Anthony Green <green@cygnus.com>
4244
4245 * java/lang/Class.h (Class::forName): Method is static.
4246
4247 * java/lang/natClass.cc (newInstance): Add simple implementation.
4248 (forName): Ditto.
4249
4250 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4251
4252 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4253 int), for compatibility with jc1.
4254
4255 1998-11-14 Tom Tromey <tromey@cygnus.com>
4256
4257 * include/config.h.in: Rebuilt.
4258 * acconfig.h (LINUX_THREADS): New define.
4259 * configure: Rebuilt.
4260 * configure.in: Define LINUX_THREADS if using POSIX threads on
4261 Linux. Look for pthread_mutexattr_setkind_np function.
4262 * posix-threads.cc (throw_cleanup): New function.
4263 (really_start): Push cleanup function.
4264 (_Jv_ThreadCancel): New function.
4265 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4266 (_Jv_ThreadInitData): Set `exception' field in new structure.
4267 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4268 thread.
4269 (_Jv_ThreadWait): New function.
4270 (_Jv_InitThreads): Initialize daemon globals.
4271 (FLAG_DAEMON): New macro.
4272 (really_start): Notify daemon_cond when non-daemon thread exits.
4273 Include <java/lang/System.h>.
4274 (struct starter): `object' field now a thread.
4275 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4276 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4277 (_Jv_ThreadWait): Removed definition.
4278 (_Jv_Thread_t): Added `exception' field.
4279 (_Jv_ThreadCancel): Removed definition.
4280
4281 1998-11-13 Tom Tromey <tromey@cygnus.com>
4282
4283 * Makefile.in: Rebuilt.
4284 * Makefile.am (libjava.zip): Compute javac before changing
4285 directory.
4286
4287 * Makefile.in: Rebuilt.
4288 * Makefile.am (libjava.zip): Include directory entries.
4289
4290 * Makefile.in: Rebuilt.
4291 * Makefile.am (expanded): New macro.
4292 (GCJ): Use it.
4293
4294 1998-11-12 Tom Tromey <tromey@cygnus.com>
4295
4296 * prims.cc (clone): New function.
4297 * include/java-array.h (__JArray::clone): Removed definition.
4298
4299 * java/lang/natObject.cc (clone): Don't assert that class is not
4300 an array; array's `clone' method just calls this one.
4301
4302 * Makefile.in: Rebuilt.
4303 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4304 Now creates zip file. Changed all users.
4305 (ZIP): New macro.
4306 (data_DATA): New macro.
4307
4308 1998-11-11 Tom Tromey <tromey@cygnus.com>
4309
4310 * configure: Rebuilt.
4311 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4312
4313 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4314
4315 * java/io/InputStream.java (reset): Add msg to thrown exception.
4316
4317 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4318
4319 * java/io/LineNumberInputStream.java: Rewritten.
4320
4321 * java/io/StringBufferInputStream.java: Removed extraneous import.
4322
4323 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4324
4325 * java/io/StringBufferInputStream.java: Rewritten.
4326
4327 * java/util/Date.java (parseMonth): Optimize.
4328 (parseDayOfWeek): Created.
4329 (parse): Optimize to use parseDayOfWeek.
4330
4331 1998-11-11 Tom Tromey <tromey@cygnus.com>
4332
4333 * java/lang/StringBuffer.java (append): Handle case where STR is
4334 `null'.
4335
4336 * include/javaprims.h: Regenerated class declarations.
4337
4338 * configure: Rebuilt.
4339 * configure.in: Added --enable-gcj-classes,
4340 --enable-single-compilation, --enable-source-compilation flags.
4341 * Makefile.in: Rebuilt.
4342 * Makefile.am (java_io_files): New macro.
4343 (java_lang_files): Likewise.
4344 (java_text_files): Likewise.
4345 (java_util_files): Likewise.
4346 (java_files): Use new macros.
4347 (java-io.o): New target.
4348 (java-lang.o): Likewise.
4349 (java-text.o): Likewise.
4350 (java-util.o): Likewise.
4351 (src_io_files): New macro.
4352 (src_lang_files): Likewise.
4353 (src_text_files): Likewise.
4354 (src_util_files): Likewise.
4355 (class_io_files): New macro.
4356 (class_lang_files): Likewise.
4357 (class_text_files): Likewise.
4358 (class_util_files): Likewise.
4359 (class_files): Use new macros.
4360 (javao_files): Define conditionally.
4361 (.java.o): New target.
4362 ($(javao_files)): New target.
4363 (GCJ): new macro.
4364 (GCJH): Added $(EXEEXT).
4365 (CLASSPATH_ENV): Removed.
4366 (GCJCOMPILE): New macro.
4367
4368 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4369
4370 * java/util/Date.java (parse): Written from scratch.
4371
4372 1998-11-11 Tom Tromey <tromey@cygnus.com>
4373
4374 * java/lang/Throwable.java (toString): Correct sense of test for
4375 determining when to include detail message in result.
4376
4377 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4378 constructor.
4379
4380 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4381
4382 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4383 _Jv_RegisterClass.
4384 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4385 (_Jv_RegisterClass): Use it.
4386 * include/jvm.h (_Jv_RegisterClasses): Declare.
4387 * java/lang/natObject.cc (init): Removed.
4388 (sync_init): Never call _Jv_InitializeSyncMutex.
4389 (_Jv_InitializeSyncMutex): Don't set `init'.
4390 * prims.cc (JvRunMain): Don't run init functions.
4391
4392 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4393
4394 * java/lang/natClass.cc (initializeClass): Set state before
4395 resolving constants.
4396
4397 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4398 (STATE_RESOLVED): New macro.
4399 (initializeClass): Call resolveConstants.
4400 (hackRunInitializers): Don't call resolveConstants.
4401 (_Jv_FindArrayClass): Move short-circuit return for primitive
4402 element types earlier in function.
4403
4404 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4405
4406 * prims.cc (no_memory): New global.
4407 (_Jv_makeUtf8Const): Throw no_memory.
4408 (_Jv_AllocObject): Likewise.
4409 (_Jv_NewObjectArray): Likewise.
4410 (_Jv_NewPrimArray): Likewise.
4411 (JvRunMain): Initialize no_memory.
4412
4413 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4414
4415 * java/io/FileInputStream.java: Corrected date comment.
4416 * java/io/SequenceInputStream.java: Rewritten.
4417
4418 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4419
4420 * java/lang/FirstThread.java (die): New method.
4421 * java/lang/natFirstThread.cc (die): Removed.
4422 (DIE): New macro.
4423 (run): Use `DIE', not `die'.
4424
4425 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4426
4427 * java/io/CharArrayReader.java (read): Move check into synchronized
4428 block to prevent a close while in progress.
4429 (reset): Ditto.
4430 (skip): Ditto.
4431 * java/io/PushbackReader.java (read): Ditto.
4432 (ready): Ditto.
4433 (unread): Ditto.
4434 * java/io/StringReader.java (mark): Ditto.
4435 (read): Ditto.
4436 (reset): Ditto.
4437 (skip): Ditto.
4438
4439 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4440
4441 * java/io/PipedInputStream.java: Updated status.
4442 (connect): Added code to prevent infinite recursion and to
4443 differentiate exception causes.
4444 (read): Added code to differentiate exception causes.
4445 (receive): Made exception pass string with the cause.
4446
4447 * java/io/PipedOutputStream.java: Updated status.
4448 (connect): Added code to call connect at the other end of the pipe.
4449
4450 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4451
4452 * java/io/PipedInputStream.java (connect): Throw exception if
4453 already connected to the same output stream.
4454 (read): Do bounds checking first.
4455
4456 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4457
4458 * java/io/PipedInputStream.java: Added private boolean outClosed.
4459 (available): Removed check if output stream is open.
4460 (close): Mark the buffer as empty so available returns 0.
4461 (read): Check if the output stream was closed and then return EOF
4462 when the buffer is empty.
4463 (receive): Mark the output stream as closed when passed a -1.
4464
4465 * java/io/PipedOutputStream.java (close): Notify the input stream
4466 that there's no more data coming.
4467 (connect): Added a FIXME comment to note more coordination needed
4468 with PipedInputStream.
4469 (flush): Added a FIXME comment to mark what this method might do
4470 instead of nothing.
4471
4472 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4473
4474 * java/io/PipedInputStream.java: Rewritten.
4475
4476 1998-10-30 Tom Tromey <tromey@cygnus.com>
4477
4478 * java/lang/Throwable.java: Rewrote from scratch.
4479
4480 * java/lang/Class.h (Class): Don't mention newMultiArray.
4481 * prims.cc (newMultiArray): Removed.
4482 (_Jv_NewMultiArray): Removed.
4483 (newArray): Removed.
4484 (new_multi_array): New function.
4485 (_Jv_NewMultiArray): Rewrote from scratch.
4486
4487 * include/javaprims.h: Regenerated class declarations.
4488 * classes.pl (scan): Don't declare PrimClass.
4489 * include/cni.h (JvPrimClass): Use new names for classes.
4490 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4491 added _Jv_PrimClass.
4492 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4493 (_Jv_initPrimClass): Removed.
4494 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4495 (_Jv_AllocObject): Added comment.
4496 (_Jv_NewObjectArray): Likewise.
4497 (_Jv_NewPrimArray): Likewise.
4498
4499 1998-10-29 Tom Tromey <tromey@cygnus.com>
4500
4501 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4502 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4503 new dtable.
4504 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4505
4506 * java/lang/natObject.cc (init): New global.
4507 (sync_init): Call _Jv_InitializeSyncMutex if required.
4508
4509 * Makefile.in: Rebuilt.
4510 * Makefile.am (nat_headers): Added ClassLoader.h.
4511 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4512 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4513 internalAddClass, lookupArray no longer friends.
4514 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4515 _Jv_FindArrayClass now friends.
4516 * java/lang/natClass.cc (HASH_LEN): New macro.
4517 (HASH_UTF): Likewise.
4518 (loaded_classes): New global.
4519 (_Jv_FindClass): New function.
4520 (ClassClass): New define.
4521 (_Jv_FindClassInCache): New function.
4522 (_Jv_RegisterClass): Likewise.
4523 (_Jv_NewClass): Likewise.
4524 Include <string.h>
4525 (ObjectClass): New define.
4526 (CloneableClass): New define.
4527 * prims.cc (_Jv_FindClass): Removed.
4528 (simpleLookupClass): Removed.
4529 (insertClass): Removed.
4530 (CLASSHASHSZ): Removed.
4531 (classPool): Removed.
4532 (_Jv_RegisterClass): Removed.
4533 (internalAddClass): Removed.
4534 (ClassClass): Removed.
4535 (RuntimeClass): Removed.
4536 (lookupArray): Removed.
4537 (CloneableClass): Removed.
4538 (CLASSMAXSIG): Removed.
4539 Rearranged file to group related functions together.
4540 (_Jv_IsInstanceOf): Moved to natClass.cc.
4541 (abort_final): Removed.
4542 Removed some unused includes.
4543 (classFromSig): Removed.
4544 (_Jv_FindClassFromSignature): New function.
4545 (_Jv_initPrimClass): Renamed.
4546 (getClass): Removed.
4547
4548 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4549
4550 * java/io/FileDescriptor.java (finalize): Throws IOException
4551 instead of Throwable.
4552
4553 * java/io/FileInputStream.java: Rewritten.
4554
4555 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4556 at the end of a comment.
4557
4558 1998-10-29 Tom Tromey <tromey@cygnus.com>
4559
4560 * include/javaprims.h: Regenerated class declarations.
4561 * classes.pl (scan): Don't special-case ClassLoader.
4562
4563 * prims.cc (processClass): Removed.
4564 (_Jv_InitClass): Removed.
4565 Removed all CSTATE_ macros.
4566 (resolveConstants): Removed.
4567 (MAXDIMS): Removed.
4568 (_Jv_NewMultiArray): Cleaned up.
4569 * Makefile.in: Rebuilt.
4570 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4571 * java/lang/Class.h (Class): Declare new methods. processClass no
4572 longer a friend.
4573 * java/lang/Class.java (hackTrampoline): New method.
4574 (initializeClass): Declare.
4575 (hackRunInitializers): Declare.
4576 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4577 (initializeClass): New method.
4578 (hackRunInitializers): New method.
4579 (init_name, void_signature): Moved from prims.cc.
4580 (_Jv_InitClass): New function.
4581 (isAssignableFrom): Don't call processClass.
4582 (STATE_NOTHING): New macro.
4583 (resolveConstants): New function.
4584 Include Thread.h.
4585 (ErrorClass): New define.
4586
4587 * java/lang/Class.java (getClassLoader): Declare.
4588 * java/lang/ClassLoader.java: Rewrote from scratch.
4589
4590 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4591 AbstractMethodError.h, IllegalAccessError.h,
4592 NoClassDefFoundError.h.
4593 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4594 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4595 longer static. Changed return type.
4596 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4597 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4598 * prims.cc (findMethodLocal): Removed.
4599 (processClass): Use _Jv_GetMethodLocal.
4600
4601 1998-10-28 Tom Tromey <tromey@cygnus.com>
4602
4603 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4604 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4605 friend.
4606 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4607 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4608
4609 * include/jni.h: Added copyright header.
4610 * include/javaprims.h: Added copyright header.
4611 * include/java-field.h: Added copyright header.
4612 * include/java-array.h: Added copyright header.
4613 * include/cni.h: Added copyright header.
4614
4615 * include/javaprims.h: Regenerated class declarations using
4616 classes.pl; now they are complete.
4617 * classes.pl: New file.
4618
4619 * java/lang/natMath.cc: Include <config.h>.
4620 * java/lang/reflect/natField.cc: Include <config.h>.
4621 * java/util/NativeUtil.java: Removed.
4622 * Makefile.in: Rebuilt.
4623 * Makefile.am (nat_headers): Added Math.h.
4624 * java/lang/Math.h: Removed.
4625 * java/util/natGregorianCalendar.cc: Added copyright header.
4626 Include <config.h>.
4627 * java/lang/natFloat.cc: Added copyright header.
4628 * java/lang/Byte.java: Added copyright header.
4629 * java/lang/Void.java: Added copyright header.
4630 * java/lang/Short.java: Added copyright header.
4631
4632 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4633
4634 * include/javaprims.h (java::io): Added bunch of missing classes.
4635
4636 * java/io/DataInputStream.java (readLine): Added a special case
4637 for handling BufferedInputStream data to reduce the likelihood
4638 of a pushback error.
4639 (skipBytes): Added code to handle negative number of skip bytes.
4640
4641 * java/io/StreamTokenizer.java: Rewritten.
4642
4643 1998-10-28 Tom Tromey <tromey@cygnus.com>
4644
4645 * java/util/natGregorianCalendar.cc (computeFields): Call
4646 getRawOffset as a method.
4647
4648 * include/javaprims.h (java::io): Added FilterOutputStream.
4649 * Makefile.in: Rebuilt.
4650 * Makefile.am (nat_headers): Added PrintStream.h,
4651 FilterOutputStream.h.
4652 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4653 PrintStream.h.
4654 (die): New function.
4655 (run): Die if `main' not found, is not public, or is not static.
4656
4657 * boehm.cc (_Jv_MarkObj): Use new field names.
4658 * include/java-field.h (JvGetFirstInstanceField): Use new field
4659 names.
4660 (JvNumInstanceFields): Likewise.
4661 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4662 (getInterfaces): Likewise.
4663 * prims.cc (CLASS_CONSTANTS): Removed.
4664 (CLASS_CONST_SIZE): Likewise.
4665 (CLASS_CONST_TAG): Likewise.
4666 (CLASS_CONST_DATA): Likewise.
4667 (CLASS_CONST_UTF8): Likewise.
4668 (WORD2UTF): Likewise.
4669 (CLASS_CLASS): Likewise.
4670 (CLASS_PRIM_SIG): Likewise.
4671 (CLASS_ARRAY_CACHE): Likewise.
4672 (HASH_CHARS): Likewise.
4673 (hashClassName): Likewise.
4674 Many changes to use new field names.
4675 * java/lang/Class.h (Class): Renamed fields to track compiler.
4676
4677 1998-10-27 Tom Tromey <tromey@cygnus.com>
4678
4679 * java/lang/natClass.cc: Use #pragma implementation.
4680 (getComponentType): Moved into header.
4681 (getModifiers): Likewise.
4682 (getName): Likewise.
4683 (getSuperclass): Likewise.
4684 (isArray): Likewise.
4685 (isPrimitive): Likewise.
4686 * include/jvm.h (_Jv_FindClass): Declare.
4687 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4688 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4689 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4690 * java/lang/Class.h: Rewrote from scratch.
4691 * prims.cc: Many changes to work with new Class.h.
4692 * include/java-field.h (CLASS_FIELDS): Removed.
4693 (CLASS_SFIELDS): Likewise.
4694 (CLASS_IFIELDS): Likewise.
4695 (CLASS_NFIELDS): Likewise.
4696 (CLASS_NIFIELDS): Likewise.
4697 (CLASS_NSFIELDS): Likewise.
4698 (CLASS_FSIZE): Likewise.
4699 (JvGetFirstInstanceField): Rewrote.
4700 (JvNumInstanceFields): Likewise.
4701
4702 * java/lang/Object.h: Added copyright comment.
4703
4704 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4705
4706 * java/text: New package directory.
4707 * java/text/FieldPosition.java: New class.
4708 * java/text/ParsePosition.java: New class.
4709 * java/text/ParseException.java: New Exception class.
4710 * java/text/Format.java: New class.
4711 * java/text/NumberFormat.java: New (empty placeholder) class.
4712 * java/text/DateFormatSymbols.java: New class (no Locales support).
4713 * java/text/DateFormat.java: New Format class (incomplete).
4714 * java/text/SimpleDateFormat.java: New DateFormat class.
4715
4716 * include/javaprims.h (java::test): Added new package and classes.
4717 * java/util/Calendar.java (clone): New method.
4718 * java/util/Date.java (toString): Added non-native implementation.
4719 (parse): Made public instead of synchronized.
4720 * java/util/natDate.cc (toString): Removed.
4721 * java/util/natGregorianCalendar.cc (computeFields):
4722 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4723
4724 1998-10-27 Tom Tromey <tromey@cygnus.com>
4725
4726 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4727
4728 * prims.cc (lookupArray): Added explanatory comment.
4729 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4730 class. Mark the class of each object.
4731 (_Jv_MarkArray): Mark the object's class.
4732
4733 * configure: Rebuilt.
4734 * configure.in: Create java-gc.h.
4735 * include/boehm-gc.h: New file.
4736 * include/no-gc.h: New file.
4737 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4738 defined.
4739 * java/lang/Object.h: Include java-gc.h.
4740 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4741 friends, if defined.
4742 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4743 signature.
4744 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4745
4746 1998-10-26 Tom Tromey <tromey@cygnus.com>
4747
4748 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4749 paragraph separators, not numbers.
4750
4751 * java/io/Writer.java (write): Removed write(char) to avoid
4752 ambiguity.
4753 * java/util/Properties.java: Rewrote from scratch.
4754 * include/javaprims.h (java::io): Added PrintWriter,
4755 BufferedWriter, PushbackReader.
4756
4757 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4758
4759 * java/lang/System.java: exit() is a static method.
4760
4761 1998-10-26 Tom Tromey <tromey@cygnus.com>
4762
4763 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4764 _Jv_strLengthUtf8.
4765 (_Jv_NewStringUtf8Const): Likewise.
4766 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4767 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4768
4769 * java/lang/Object.h (Object): Add mark_array as friend function.
4770 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4771 _Jv_AllocBytes, to ensure that header is marked.
4772 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4773 just Objects.
4774 (mark_array): Push sync_info field for array.
4775
4776 1998-10-24 Tom Tromey <tromey@cygnus.com>
4777
4778 * java/lang/String.java (String): Updated for StringBuffer
4779 change.
4780 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4781 serialization spec.
4782 * java/lang/StringBuffer.java: Renamed fields to conform to
4783 serialization spec: buffer->value, next->count, copy->shared.
4784
4785 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4786
4787 * java/util/TimeZone.java: New class.
4788 * java/util/SimpleTimeZone.java: New class.
4789 * java/util/Locale.java: New file.
4790 * java/util/Calendar.java: Make almost complete.
4791 * java/util/GregorianCalendar.java
4792 * java/util/natGregorianCalendar.cc: New file.
4793 * java/util/Date.java: Re-written from scratch.
4794 * java/util/natDate.cc (setTime): Removed - no longer native.
4795 * include/javaprims.h (java::util): Add new classes.
4796 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4797 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4798
4799 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4800
4801 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4802 returning it as a jint.
4803
4804 1998-10-23 Tom Tromey <tromey@cygnus.com>
4805
4806 * prims.cc (arg_vec, main_group, main_thread): New globals.
4807 (JvRunMain): Use them.
4808
4809 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4810
4811 * java/io/DataInputStream.java: Rewritten.
4812
4813 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4814 tertiary bytes with 0x80 per spec.
4815
4816 1998-10-23 Tom Tromey <tromey@cygnus.com>
4817
4818 * java/lang/String.java (init): Changed name of `copy' argument.
4819 * java/lang/natString.cc (init): Inverted sense of `copy'
4820 argument.
4821
4822 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4823 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4824 * boehm.cc (ObjectClass): New define.
4825 (ClassClass): Likewise.
4826 (mark_obj): Special-case Object and Class.
4827
4828 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4829
4830 * java/util/BitSet.java: Rewrote from scratch.
4831
4832 * prims.cc (lookupArray): Removed useless cast.
4833
4834 * java/lang/natObject.cc: Use `#pragma implementation'.
4835
4836 * java/lang/String.java (init): Added `copy' argument.
4837 (String): Look in StringBuffer to find char array.
4838 * java/lang/natString.cc (init): Added `copy' argument.
4839 * java/lang/StringBuffer.java: Rewrote from scratch.
4840
4841 * java/lang/Compiler.java: Rewrote from scratch.
4842 * java/lang/Throwable.java: Don't use NativeLang.
4843 * include/javaprims.h (java::lang): Don't mention NativeLang.
4844 * java/lang/Process.java: Rewrote from scratch.
4845 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4846 out.
4847 (currentClassLoader): Likewise.
4848 (currentLoadedClass): Likewise.
4849 * java/lang/natClass.cc (getClassLoader): Commented out.
4850 * java/lang/Class.java (getClassLoader): Commented out.
4851 * java/lang/Compiler.java: Removed.
4852 * java/lang/NativeLang.java: Removed.
4853
4854 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4855 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4856 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4857 (_Jv_hashUtf8String): Now static.
4858 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4859 name of return type.
4860
4861 * java/lang/Class.h (Class): Declare checkMemberAccess.
4862 * Makefile.in: Rebuilt.
4863 * Makefile.am (nat_headers): Added Member.h.
4864 * java/lang/natClass.cc: Include Member.h.
4865 (getDeclaredClasses): Call checkMemberAccess.
4866 * java/lang/Class.java (checkMemberAccess): Call
4867 SecurityManager.checkMemberAccess.
4868
4869 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4870
4871 * java/lang/SecurityManager.java: Rewritten.
4872
4873 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4874
4875 * java/applet/Applet.java, java/applet/AppletContext.java,
4876 java/applet/AppletStub.java, java/applet/AudioClip.java,
4877 java/awt/AWTError.java, java/awt/AWTException.java,
4878 java/awt/BorderLayout.java, java/awt/Button.java,
4879 java/awt/Canvas.java, java/awt/CardLayout.java,
4880 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4881 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4882 java/awt/Color.java, java/awt/Component.java,
4883 java/awt/Container.java, java/awt/Dialog.java,
4884 java/awt/Dimension.java, java/awt/Event.java,
4885 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4886 java/awt/Font.java, java/awt/FontMetrics.java,
4887 java/awt/Frame.java, java/awt/Graphics.java,
4888 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4889 java/awt/GridLayout.java, java/awt/Image.java,
4890 java/awt/Insets.java, java/awt/Label.java,
4891 java/awt/LayoutManager.java, java/awt/List.java,
4892 java/awt/MediaTracker.java, java/awt/Menu.java,
4893 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4894 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4895 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4896 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4897 java/awt/TextArea.java, java/awt/TextComponent.java,
4898 java/awt/TextField.java, java/awt/Toolkit.java,
4899 java/awt/Window.java, java/awt/image/ColorModel.java,
4900 java/awt/image/CropImageFilter.java,
4901 java/awt/image/DirectColorModel.java,
4902 java/awt/image/FilteredImageSource.java,
4903 java/awt/image/ImageConsumer.java,
4904 java/awt/image/ImageFilter.java,
4905 java/awt/image/ImageObserver.java,
4906 java/awt/image/ImageProducer.java,
4907 java/awt/image/IndexColorModel.java,
4908 java/awt/image/MemoryImageSource.java,
4909 java/awt/image/PixelGrabber.java,
4910 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4911 java/awt/peer/CanvasPeer.java,
4912 java/awt/peer/CheckboxMenuItemPeer.java,
4913 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4914 java/awt/peer/ComponentPeer.java,
4915 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4916 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4917 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4918 java/awt/peer/MenuBarPeer.java,
4919 java/awt/peer/MenuComponentPeer.java,
4920 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4921 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4922 java/awt/peer/TextAreaPeer.java,
4923 java/awt/peer/TextComponentPeer.java,
4924 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4925 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4926 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4927 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4928 java/net/MalformedURLException.java, java/net/NativeNet.java,
4929 java/net/ProtocolException.java, java/net/ServerSocket.java,
4930 java/net/Socket.java, java/net/SocketException.java,
4931 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4932 java/net/URL.java, java/net/URLConnection.java,
4933 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4934 java/net/URLStreamHandlerFactory.java,
4935 java/net/UnknownHostException.java,
4936 java/net/UnknownServiceException.java: Removed.
4937
4938 1998-10-22 Tom Tromey <tromey@cygnus.com>
4939
4940 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4941 finalizer is not Object.finalize.
4942 (internalAddClass): Don't set `final' member of class.
4943 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4944 other places that know about finalize() location.
4945 * java/lang/Class.h (Class): Removed `final' field.
4946
4947 * aclocal.m4, configure: Rebuilt.
4948 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4949 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4950 set.
4951 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4952 * Makefile.in: Rebuilt.
4953 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4954
4955 1998-10-21 Tom Tromey <tromey@cygnus.com>
4956
4957 * java/lang/Object.java (finalize): Move to be first method in
4958 class.
4959
4960 * configure: Rebuilt.
4961 * configure.in (GCINCS): Include contents of boehm-cflags file.
4962
4963 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4964
4965 * java/lang/ArrayIndexOutOfBoundsException.java
4966 (ArrayIndexOutOfBoundsException): Fixed string literal.
4967 * java/lang/StringIndexOutOfBoundsException.java
4968 (StringIndexOutOfBoundsException): Fixed string literal.
4969
4970 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4971
4972 * natFileDescriptorEcos.cc added.
4973 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4974
4975 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4976
4977 * acconfig.h: test for __int32_t and __uint32_t added.
4978 * include/config.h.in: test for __int32_t and __uint32_t added.
4979 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4980 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4981 * configure.in: test for __int32_t and __uint32_t added.
4982 * configure: test for __int32_t and __uint32_t added.
4983
4984 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4985
4986 * configure.in: Test for --enable ecos and link
4987 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4988 natFileDescriptorPosix.cc
4989
4990 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4991
4992 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4993
4994 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4995 in isn't negative.
4996
4997 * java/io/CharArrayReader.java (close): Synchronize on lock
4998 object per Reader contract.
4999 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5000 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5001 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5002 Ensure that arg passed in isn't negative.
5003
5004 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5005 constructing the superclass.
5006
5007 * java/io/PushbackReader.java (close): Synchronize on lock
5008 object per Reader contract.
5009 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5010 (ready): Synchronize on lock obj. Throw IOException if reader
5011 wasn't closed.
5012 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5013 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5014 Ensure that arg passed in isn't negative.
5015 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5016
5017 * java/io/StringReader.java: Created.
5018
5019 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5020
5021 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5022 to match JCL.
5023 (read): Removed synchronized modifier to match JCL.
5024 (reset): Removed synchronized modifier to match JCL.
5025 (skip): Removed synchronized modifier to match JCL.
5026
5027 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5028
5029 * java/io/PushbackReader.java (PushbackReader): Made
5030 constructors public.
5031
5032 1998-10-17 Tom Tromey <tromey@cygnus.com>
5033
5034 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5035 constructors public.
5036
5037 1998-10-16 Anthony Green <green@cygnus.com>
5038
5039 * aclocal.m4, configure: Rebuilt.
5040 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5041 configure.host.
5042 * configure.host: Rewrote.
5043 * Makefile.in: Rebuilt.
5044 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5045 (AM_CFLAGS): New macro.
5046 ($(c_files)): Use COMPILE macro.
5047 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5048 automake problem(s).
5049
5050 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5051
5052 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5053
5054 * java/io/CharArrayReader.java: Created.
5055
5056 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5057
5058 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5059 size check to allow 0 per JCL.
5060
5061 * java/io/PushbackReader.java: Created.
5062
5063 1998-10-16 Tom Tromey <tromey@cygnus.com>
5064
5065 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5066 <sys/time.h> includes.
5067 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5068 * include/no-threads.h: Conditionalize <unistd.h> include on
5069 HAVE_UNISTD_H.
5070
5071 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5072
5073 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5074 is defined.
5075
5076 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5077
5078 * java/io/FilterReader.java: Created.
5079
5080 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5081
5082 * java/io/PushbackInputStream.java: Rewritten.
5083
5084 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5085 that size passed to constructor is legal.
5086 (read): Check that args passed in are legal.
5087 (skip): Rewritten to get rid of the temporary buffer.
5088 (refill): Added marklimit check to grow the buffer.
5089
5090 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5091 check.
5092 (bytesAvail): Removed.
5093 (read): Changed bytesAvail to Math.min.
5094 (skip): Changed bytesAvail to Math.min.
5095
5096 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5097 from the throws clause.
5098 (skip): Rewritten to use a temporary buffer.
5099
5100 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5101
5102 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5103 some target OSes
5104
5105 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5106
5107 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5108 to write the double one word at a time.
5109
5110 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5111
5112 * java/io/BufferedInputStream.java: Rewritten.
5113
5114 1998-10-12 Tom Tromey <tromey@cygnus.com>
5115
5116 * jni.cc: Include config.h and stddef.h.
5117
5118 * java/lang/Class.h (_dispatchTable): Removed again.
5119 Removed all ACC_* defines again.
5120
5121 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5122
5123 * Makefile.am (nat_files): Add netField.o.
5124 (libjava_a_SOURCES): Add jni.cc.
5125 (java/lang/reflect/Field.h): New rule.
5126 * Makefile.in: Re-generated.
5127 * include/javaprims.h: Add some extra class and typedefs.
5128 * include/jni.h: New file.
5129 * jni.cc: New file.
5130
5131 * include/java-field.h: New file.
5132 * include/jvm.h: #include <java-field.h>.
5133 * boehm.cc: #include <java-field.h>.
5134 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5135 * java/lang/reflect/Member.java: New class.
5136 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5137 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5138
5139 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5140
5141 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5142 testsuite/Makefile.in: Rebuilt.
5143 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5144 * configure.host: Created.
5145
5146 1998-10-10 Tom Tromey <tromey@cygnus.com>
5147
5148 * java/lang/natObject.cc (sync_init): Always allocate a new
5149 sync_info.
5150
5151 1998-10-09 Tom Tromey <tromey@cygnus.com>
5152
5153 * java/io/ByteArrayInputStream.java (mark): Renamed from
5154 `mark_FIXME'.
5155
5156 * java/io/FileOutputStream.java (finalize): Removed.
5157 * java/io/FileDescriptor.java (finalize): New method.
5158
5159 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5160
5161 * ByteArrayInputStream.java: Corrected status comment.
5162
5163 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5164
5165 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5166
5167 1998-10-08 Tom Tromey <tromey@cygnus.com>
5168
5169 * prims.cc (lookupArray): Use static array to initialize list of
5170 interfaces.
5171
5172 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5173
5174 * prims.cc (lookupArray): Initialize the msize for new
5175 array classes.
5176
5177 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5178
5179 * configure: Rebuilt.
5180 * configure.in: Check for fsync and sleep.
5181 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5182
5183 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5184 HAVE_SLEEP. Include config.h.
5185
5186 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5187 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5188 with HAVE_FSYNC.
5189
5190 1998-10-08 Tom Tromey <tromey@cygnus.com>
5191
5192 * java/io/natFile.cc: Don't include SecurityManager.h.
5193 (performList): Renamed.
5194 (performMkdir): Likewise.
5195 (performRenameTo): Likewise.
5196 (performDelete): Likewise.
5197 Include <stdlib.h>.
5198 * java/io/File.java (performDelete): Renamed from natDelete.
5199 (list): Now written in Java.
5200 (performList): New method.
5201 (performMkdir): New method.
5202 (mkdir): Now written in Java.
5203 (performRenameTo): New method.
5204 (renameTo): Now written in Java.
5205
5206 1998-10-06 Tom Tromey <tromey@cygnus.com>
5207
5208 * Makefile.in: Rebuilt.
5209 * Makefile.am (ETAGS_ARGS): New macro.
5210 (TAGS_DEPENDENCIES): Likewise.
5211
5212 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5213
5214 * Makefile.in: Rebuilt.
5215 * Makefile.am: Use -classpath option with javac.
5216
5217 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5218
5219 * java/io/FileOutputStream.java (finalize): Call
5220 super.finalize().
5221
5222 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5223
5224 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5225 with newlib's libm.
5226 * java/lang/mprec.c: Ditto.
5227
5228 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5229 cross-compiling.
5230
5231 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5232
5233 * java/io/InputStream.java (skip): Make local var i a long.
5234
5235 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5236
5237 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5238 * prims.cc (lookupArray): Use memcpy, not memmove.
5239 * include/config.h.in: Rebuilt.
5240 * acconfig.h (HAVE_MEMCPY): Added.
5241 * configure: Rebuilt.
5242 * configure.in: Check for memcpy again.
5243
5244 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5245 String.compareTo, not ==.
5246
5247 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5248 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5249 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5250 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5251 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5252 into new array's dtable.
5253 (_Jv_AllocObject): Use _Jv_DispatchTable.
5254 (_Jv_NewPrimArray): Likewise.
5255 (_Jv_NewObjectArray): Likewise.
5256
5257 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5258
5259 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5260 offending index value.
5261 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5262 appropriate.
5263 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5264 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5265
5266 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5267
5268 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5269
5270 * java/io/OutputStream.java (write): Use off and len parameters to
5271 output partial byte array.
5272
5273 * java/io/BufferedReader.java, java/io/FileReader.java,
5274 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5275 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5276 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5277 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5278
5279 * include/javaprims.h (java::lang): Added
5280 ExceptionInInitializerError, IllegalStateException,
5281 NoSuchFieldException, and UnsupportedOperationException.
5282
5283 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5284
5285 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5286 Class*.
5287
5288 * include/java-array.h (__JArray): Added clone method.
5289 * prims.cc (CloneableClass): New define.
5290 (lookupArray): Initialize array class to indicate that it
5291 implements Cloneable.
5292
5293 * java/lang/Class.h: Removed all ACC_* defines.
5294 * prims.cc: Include Modifier.h.
5295 (_Jv_LookupInterfaceMethod): Use methods in
5296 java.lang.reflect.Modifier, not ACC_ defines.
5297
5298 * java/lang/Class.h (Class): Declare getClasses,
5299 getDeclaredClasses, getDeclaringClass, getModifiers,
5300 * java/lang/Class.java: Rewrote from scratch.
5301
5302 * include/javaprims.h (java::lang): Added reflect and
5303 reflect::Modifier.
5304 * Makefile.in: Rebuilt.
5305 * Makefile.am (nat_headers): Added Modifier.h.
5306
5307 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5308 primitive.
5309
5310 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5311
5312 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5313 instead of test and abort.
5314
5315 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5316 remove compiler warning.
5317
5318 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5319
5320 * java/lang/natDouble.cc: zero terminate string.
5321 * strtod.c: Set errno if no digits are found in fraction.
5322
5323 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5324
5325 * java/lang/reflect/Modifier.java: New file.
5326
5327 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5328 * java/lang/VerifyError.java: Rewrote from scratch.
5329 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5330 * java/lang/UnknownError.java: Rewrote from scratch.
5331 * java/lang/StackOverflowError.java: Rewrote from scratch.
5332 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5333 * java/lang/InternalError.java: Rewrote from scratch.
5334 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5335 * java/lang/ExceptionInInitializerError.java: New file.
5336 * java/lang/Error.java: Rewrote from scratch.
5337 * java/lang/ClassFormatError.java: Rewrote from scratch.
5338 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5339 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5340 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5341 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5342 * java/lang/LinkageError.java: Rewrote from scratch.
5343 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5344 scratch.
5345 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5346
5347 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5348 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5349 friend.
5350 * include/cni.h (JvAllocObject): Moved from prims.cc.
5351 Include Class.h.
5352 * prims.cc (JvAllocObject): Moved to cni.h.
5353 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5354 (finalize_name): Removed.
5355
5356 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5357
5358 * java/lang/Class.h (Class): Added size() method.
5359 * prims.cc (_Jv_MonitorEnter): Removed.
5360 (_Jv_MonitorExit): Removed.
5361 * java/lang/Object.h (JvSyncInfo): Removed.
5362 * Makefile.in: Rebuilt.
5363 * Makefile.am (nat_headers): Added Cloneable.h,
5364 CloneNotSupportedException.h.
5365 * java/lang/Object.h: Rewrote.
5366 * java/lang/natObject.cc: Rewrote from scratch.
5367 * java/lang/Object.java: Rewrote from scratch.
5368
5369 * java/io/natFile.cc: Conditionally include <dirent.h>.
5370 (list): If no <dirent.h>, always return NULL.
5371 * configure: Rebuilt.
5372 * configure.in: Check for dirent.h.
5373
5374 * prims.cc (lookupArray): Don't use sprintf.
5375
5376 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5377 initial index.
5378 (get): Likewise.
5379 (put): Likewise.
5380 (rehash): Likewise.
5381 (remove): Likewise.
5382
5383 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5384 name conflict with method.
5385
5386 * include/javaprims.h (java::util): Added HashtableEntry.
5387
5388 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5389
5390 * java/util/Hashtable.java: Rewritten.
5391
5392 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5393
5394 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5395 return value.
5396 (write): Likewise.
5397
5398 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5399 not `curr_nt'.
5400
5401 * posix-threads.cc (_Jv_CondWait): Now returns int.
5402 * include/javaprims.h (java::lang): Added
5403 IllegalMonitorStateException.
5404 * Makefile.in: Rebuilt.
5405 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5406 * include/no-threads.h (_Jv_CondDestroy): Removed.
5407 (_Jv_MutexDestroy): Removed.
5408 (_Jv_CondWait): Now returns int.
5409 (_Jv_CondNotify): Likewise. Added mutex argument.
5410 (_Jv_CondNotifyAll): Likewise.
5411 (_Jv_MutexLock): Always succeed.
5412 (_Jv_MutexUnlock): Likewise.
5413 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5414 (_Jv_HaveMutexDestroy): Define.
5415 (_Jv_CondNotify): Now returns int. Added mutex argument.
5416 (_Jv_CondNotifyAll): Likewise.
5417 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5418 (_Jv_MutexDestroy): Removed.
5419 (_Jv_CondWait): Now returns int.
5420 (_Jv_CondNotify): Likewise. Added mutex argument.
5421 (_Jv_CondNotifyAll): Likewise.
5422 * java/lang/natObject.cc (finalize_sync_info): New function.
5423 (init_mutex): Initialize `init' and register finalizer if
5424 required.
5425 (CHECK): New macro.
5426 (init_mutex): Use it.
5427 (notify): Use it.
5428 (notifyAll): Use it.
5429 (wait): Use it.
5430 (notify): Throw IllegalMonitorStateException on failure.
5431 (notifyAll): Likewise.
5432 (wait): Likewise. Also, throw InterruptedException if
5433 appropriate.
5434 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5435 InterruptedException.h, IllegalArgumentException.h.
5436 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5437
5438 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5439 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5440 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5441 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5442 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5443 * quick-threads.cc: Renamed all `JvPriv' functions.
5444 * prims.cc: Renamed all `JvPriv' functions.
5445 * posix-threads.cc: Renamed all `JvPriv' functions.
5446 * nogc.cc: Renamed all `JvPriv' functions.
5447 * no-threads.cc: Renamed all `JvPriv' functions.
5448 * boehm.cc: Renamed all `JvPriv' functions.
5449 * include/quick-threads.h: Renamed all `JvPriv' functions.
5450 * include/posix-threads.h: Renamed all `JvPriv' functions.
5451 * include/no-threads.h: Renamed all `JvPriv' functions.
5452 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5453
5454 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5455 implementation.
5456 (JvPrivCondNotify): Do nothing.
5457 (JvPrivCondNotifyAll): Do nothing.
5458
5459 * prims.cc (processClass): Handle case where state is
5460 DOING_CONSTINIT.
5461
5462 * java/lang/natFirstThread.cc: Include <stdlib.h>
5463
5464 * configure: Rebuilt.
5465 * configure.in: Fixed sense of --enable-libjava-debug.
5466
5467 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5468 it can be used afterward by the assertion.
5469
5470 * configure: Rebuilt.
5471 * configure.in: When cross-compiling, assume alloca.
5472
5473 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5474 __builtin_alloca (autoconf docs are wrong here).
5475
5476 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5477 closing.
5478 (available): Use `FD_ZERO' (typo fix).
5479
5480 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5481
5482 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5483 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5484 struct _Jv_Bigint.
5485 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5486 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5487 struct _Jv_reent.
5488
5489 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5490
5491 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5492
5493 * java/lang/natDouble.cc: Declare alloca safely.
5494
5495 * configure, include/config.h.in: Rebuilt.
5496 * configure.in: Add alloca check.
5497
5498 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5499
5500 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5501 condition while calling notify.
5502 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5503 (interrupt): Hold mutex for interrupt condition while calling
5504 notify.
5505
5506 * java/lang/natString.cc (init): Allocate and try to read `count'
5507 characters, not `count - offset' characters.
5508
5509 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5510 Correctly compute `count'.
5511
5512 * java/lang/Boolean.java (getBoolean): Return false if property
5513 not found.
5514
5515 * java/lang/System.java (setProperties): Set prop_init.
5516
5517 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5518
5519 * java/io/PrintStream.java (println): Use line.separator, not
5520 file.separator.
5521 * java/lang/System.java (out, err): Make both autoflush streams.
5522 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5523
5524 * include/config.h.in: Rebuilt.
5525 * acconfig.h (HAVE_MEMCPY): Removed.
5526 * configure: Rebuilt.
5527 * configure.in: Never define HAVE_MEMCPY.
5528
5529 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5530 Class.h.
5531 (_Jv_AllocString): Use JvAllocObject again.
5532 * java/lang/Class.h (thread): New field.
5533 (_Jv_AllocString): No longer a friend.
5534 * prims.cc (processClass): Removed dead code. Changed to more
5535 closely follow the Java Language Specification.
5536 (processClass): Return early if already at the right state.
5537
5538 * prims.cc (JvNewStringUTF): Removed.
5539 * include/cni.h (JvNewStringUTF): New function.
5540 (_Jv_NewStringUTF): Declare as `extern "C"'.
5541 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5542
5543 * java/lang/natDouble.cc: Added copyright info and header
5544 comment. Include <stdlib.h>.
5545 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5546 bytes as are chars in string.
5547
5548 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5549
5550 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5551 clash with method.
5552 (hsize): Likewise.
5553
5554 * java/lang/System.java (init_properties): Now native.
5555 * java/lang/natSystem.cc (init_properties): New method.
5556 Include java/util/Properties.h.
5557
5558 * Makefile.in: Rebuilt.
5559 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5560 OutputStreamWriter.h, ByteArrayInputStream.h,
5561 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5562 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5563 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5564 Properties.h, Hashtable.h, Dictionary.h.
5565 (CFLAGS): Removed.
5566
5567 * include/javaprims.h (java::io): Added Reader, Writer,
5568 InputStreamReader, OutputStreamWriter,
5569 UnsupportedEncodingException, ByteArrayInputStream,
5570 ByteArrayOutputStream, EOFException, SyncFailedException,
5571 PushbackInputStream.
5572 (java::lang): Added Cloneable.
5573 (java::util): Added NoSuchElementException, VectorEnumeration,
5574 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5575
5576 * java/io/PipedReader.java: New file.
5577
5578 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5579
5580 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5581 up A-Z.
5582
5583 * java/io/io-defs.h: Removed.
5584
5585 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5586 (FileInputStream): Use new constructor. Can throw IOException.
5587
5588 * java/lang/System.java (getProperty): Don't throw
5589 NullPointerException.
5590
5591 * java/io/RandomAccessFile.java: Rewrote from scratch.
5592
5593 * java/io/natFileDescriptor.cc: Include EOFException.h.
5594 (seek): New method.
5595 (length): New method.
5596 (getFilePointer): New method.
5597 (read): New method.
5598 (available): New method.
5599 * java/io/FileDescriptor.java (SET, CUR): New constants.
5600 (seek, length, getFilePointer, read, available): New decls.
5601
5602 * java/io/PipedWriter.java: New file.
5603 * java/io/StringWriter.java: New file.
5604 * java/io/CharArrayWriter.java: New file.
5605 * java/io/CharConversionException.java: New file.
5606 * java/io/BufferedWriter.java: New file.
5607 * java/io/FilterWriter.java: New file.
5608 * java/io/FileWriter.java: New file.
5609
5610 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5611 OutputStreamWriter.h, NullPointerException.h,
5612 ByteArrayInputStream.h, InputStreamReader.h.
5613 (getBytes): New method.
5614 (init): Throw NullPointerException.
5615 (init): New function.
5616 * java/lang/String.java (getBytes): Added missing decl.
5617 (getBytes): New method.
5618 (String): Added byte[]-based constructors.
5619 (copyValueOf): Wrote.
5620 (init): Declare variant which takes byte array and encoding.
5621 Import java.io.UnsupportedEncodingException.
5622
5623 * java/io/File.java: Rewrote from scratch.
5624 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5625 * java/io/FileDescriptor.java: Rewrote from scratch.
5626 * java/io/FilenameFilter.java: Rewrote from scratch.
5627
5628 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5629
5630 * java/io/SyncFailedException.java: New file.
5631 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5632 * java/io/InterruptedIOException.java: Rewrote from scratch.
5633 * java/io/FileNotFoundException.java: Rewrote from scratch.
5634 * java/io/EOFException.java: Rewrote from scratch.
5635 * java/io/IOException.java: Rewrote from scratch.
5636 * java/io/PrintStream.java: Rewrote from scratch.
5637 * java/io/DataOutputStream.java: Rewrote from scratch.
5638 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5639 * java/io/FilterOutputStream.java: Rewrote from scratch.
5640 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5641 * java/io/PipedOutputStream.java: Rewrote from scratch.
5642 * java/io/FileOutputStream.java: Rewrote from scratch.
5643 * java/io/OutputStream.java: Rewrote from scratch.
5644 * java/io/DataOutput.java: Rewrote from scratch.
5645
5646 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5647
5648 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5649
5650 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5651
5652 * configure.in: Add --enable-libjava-debug
5653
5654 * Makefile.am (nat_headers): Add java/lang/Float.h and
5655 java/lang/Double.h
5656
5657 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5658
5659 * Makefile.in, configure, include/config.h.in: Rebuilt.
5660
5661 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5662
5663 * java/lang/Float.java: Rewritten
5664 * java/lang/Double.java: Rewritten
5665 * java/lang/natFloat.cc: toString() added.
5666 * java/lang/natDouble.cc: toString() added.
5667 * java/lang/natDouble.cc: doubleValueOf() added.
5668 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5669 java/lang/strtod.c: added.
5670 * ieeefp.h: __sparc added.
5671 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5672
5673 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5674
5675 * include/javaprims.h (java::lang): Added
5676 CloneNotSupportedException.
5677
5678 * java/lang/Object.java (clone): No longer native. Implemented.
5679 * java/lang/natObject.cc (clone): Removed.
5680
5681 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5682
5683 * prims.cc: Don't make definitions `extern "C"'.
5684 (_Jv_RegisterClass): Renamed from registerClass.
5685 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5686 (_Jv_NewArray): Likewise.
5687 (_Jv_NewMultiArray): Likewise.
5688 (_Jv_CheckCast): Likewise.
5689 (_Jv_LookupInterfaceMethod): Likewise.
5690 (_Jv_CheckArrayStore): Likewise.
5691 (_Jv_RegisterClass): Likewise.
5692
5693 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5694 * configure: Rebuilt.
5695 * configure.in: Don't check for fmod; it is provided by the fdlibm
5696 code.
5697 * prims.cc (fmod): Removed.
5698
5699 * java/lang/natString.cc (charAt): Use _Jv_uint.
5700 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5701 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5702 (equalUtf8Consts): Likewise.
5703 (internalAddClass): Use _Jv_uint.
5704 (processClass): Likewise.
5705 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5706 (_Jv_uint): Renamed from uint32.
5707 (struct _Jv_Utf8Const): Changed members to use new type names.
5708
5709 * configure: Rebuilt.
5710 * configure.in: Don't check for memcpy. Require memmove and a way
5711 to get the time.
5712 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5713 #error.
5714 (currentTimeMillis): Don't use #error.
5715
5716 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5717
5718 * java/lang/Math.java: static member random renamed to random_ to
5719 avoid conflict with member function of the same name.
5720 * include/javaprims.h: java.util.Random added.
5721
5722 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5723
5724 * include/java-chartables.h: Regenerated.
5725 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5726 printed.
5727
5728 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5729
5730 * java/lang/Math.java: Rewritten.
5731 * java/lang/natMath.cc: New file.
5732 * Files added from fdlibm:
5733 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5734 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5735 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5736 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5737 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5738 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5739 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5740 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5741 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5742 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5743 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5744 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5745 java/lang/k_cos.c, java/lang/sf_ceil.c,
5746 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5747 java/lang/ieeefp.h, java/lang/fdlibm.h
5748 * Makefile.am: rules added for compiling C files from fdlibm.
5749
5750 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5751
5752 * chartables.pl: Minor documentation fixes.
5753
5754 * configure: Rebuilt.
5755 * configure.in: Fixed --help output for --enable-fast-character.
5756
5757 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5758
5759 * configure: Rebuilt.
5760 * configure.in: Recognize --enable-fast-character.
5761 * acconfig.h (COMPACT_CHARACTER): New define.
5762 * include/config.h.in: Rebuilt.
5763 * include/java-chartables.h: New file.
5764 * Makefile.in: Rebuilt.
5765 * Makefile.am (nat_files): Added natCharacter.o.
5766 * java/lang/natCharacter.cc: New file.
5767 * chartables.pl (set_attribute): New function.
5768 (@attributes, @second_attributes): New globals.
5769 ($ROMAN_START, $ROMAN_END): Likewise.
5770 (process_char): Call set_attribute when required.
5771 (print_char): Just print hex value.
5772 (print_block): Generate C++ syntax.
5773 (print_numerics): Likewise.
5774 (print_single_map): Likewise.
5775 (print_all_block): Likewise.
5776 (print_case_table): Likewise.
5777 (print_fast_tables): New function.
5778 Generate C++ code suitable for a header file.
5779 * java/lang/Character.java (table_search): Removed.
5780 (digit_value): Now native.
5781 (getNumericValue): Likewise.
5782 (getType): Likewise.
5783 Removed all automatically-generated tables.
5784 (Tamil_Digit_One): Removed.
5785 (isSpaceChar): Now native.
5786 (isTitleCase): Likewise.
5787 (isLowerCase): Likewise.
5788 (isUpperCase): Likewise.
5789 (toLowerCase): Likewise.
5790 (toTitleCase): Likewise.
5791 (toUpperCase): Likewise.
5792 (isDefined): Fixed sense of test.
5793
5794 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5795
5796 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5797 FIXME comment.
5798 (regionMatches): Likewise.
5799
5800 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5801
5802 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5803
5804 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5805 a friend.
5806 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5807 _Jv_AllocObject.
5808
5809 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5810 not a char.
5811
5812 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5813
5814 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5815
5816 * prims.cc (instanceof_class): Removed.
5817 (instanceof_array): Likewise.
5818 (instanceof): Likewise.
5819 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5820 (_Jv_CheckCast): Likewise.
5821 * java/lang/natClass.cc (isAssignableFrom): New method.
5822 * java/lang/Class.java (isAssignableFrom): Now native.
5823
5824 * include/cni.h (JvThrow): Use `extern inline'.
5825 (JvAllocObject): Likewise.
5826 (JvInitClass): Likewise.
5827
5828 * java/lang/natSystem.cc (arraycopy): Only check class of source
5829 object if not null.
5830
5831 * prims.cc (_Jv_CheckArrayStore): Wrote.
5832 (_Jv_MonitorEnter): Prefer `JvThrow'.
5833 Include ArrayStoreException.h.
5834 (_Jv_CheckCast): Indentation cleanup.
5835
5836 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5837
5838 * chartables.pl: New file.
5839 * java/lang/Character.java: Rewrote from scratch.
5840
5841 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5842
5843 * java/lang/ArithmeticException.java,
5844 java/lang/ArrayIndexOutOfBoundsException.java,
5845 java/lang/ArrayStoreException.java,
5846 java/lang/ClassCastException.java,
5847 java/lang/ClassNotFoundException.java,
5848 java/lang/CloneNotSupportedException.java,
5849 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5850 java/lang/IllegalArgumentException.java,
5851 java/lang/IllegalMonitorStateException.java,
5852 java/lang/IllegalThreadStateException.java,
5853 java/lang/IndexOutOfBoundsException.java,
5854 java/lang/InstantiationException.java,
5855 java/lang/InterruptedException.java,
5856 java/lang/NegativeArraySizeException.java,
5857 java/lang/NoSuchMethodException.java,
5858 java/lang/NullPointerException.java,
5859 java/lang/NumberFormatException.java,
5860 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5861 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5862
5863 * java/lang/IllegalStateException.java,
5864 java/lang/NoSuchFieldException.java,
5865 java/lang/UnsupportedOperationException.java: Created.
5866
5867 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5868
5869 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5870 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5871
5872 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5873
5874 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5875
5876 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5877
5878 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5879
5880 * Makefile.in: Rebuilt.
5881
5882 * include/javaprims.h (java::lang): Added
5883 StringIndexOutOfBoundsException.
5884
5885 * java/lang/String.java: Added header comment and FIXME comment for
5886 missing constructors/methods.
5887 (endsWith): Adjusted offset into string to look at just the last chars.
5888 Commented out undocumented method.
5889
5890 * java/lang/natString.cc: Added includes for
5891 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5892 (String::init): Throw StringIndexOutOfBoundsException.
5893 (String::charAt): Throw StringIndexOutOfBoundsException.
5894 (String::substring): Throw StringIndexOutOfBoundsException.
5895 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5896 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5897 (String::compareTo): Return difference/offset between chars/strings.
5898
5899 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5900
5901 * java/lang/Boolean.java (TYPE): Added comment.
5902
5903 * java/lang/Byte.java (decode): Added - commented out until dependent
5904 code for Integer is written.
5905 (compareTo): JDK 1.2 methods written.
5906 (hashCode): Added comment to note that values have been verified.
5907
5908 * java/lang/Short.java (decode): Added - commented out until dependent
5909 code for Integer is written.
5910 (compareTo): JDK 1.2 methods written.
5911 (hashCode): Added comment to note that values have been verified.
5912
5913 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5914
5915 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5916
5917 * include/javaprims.h (java::lang): Added VirtualMachineError,
5918 OutOfMemoryError.
5919 * Makefile.in: Rebuilt.
5920 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5921 VirtualMachineError.h.
5922 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5923 (lookupArray): Likewise.
5924 (makeUtf8Const): Likewise.
5925 (_Jv_AllocObject): Likewise.
5926 (_Jv_NewObjectArray): Likewise.
5927 Include OutOfMemoryError.h.
5928
5929 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5930 to use JvNewStringLatin1.
5931
5932 * java/io/io-defs.h: Include java/lang/IOException.h.
5933 * Makefile.in: Rebuilt.
5934 * Makefile.am (nat_headers): Added
5935 ArrayIndexOutOfBoundsException.h,
5936 ClassFormatError.h,ClassNotFoundException.h,
5937 ClassCircularityError.h, ClassCastException.h,
5938 IncompatibleClassChangeError.h, AbstractMethodError.h,
5939 IllegalAccessError.h, LinkageError.h, Error.h,
5940 NegativeArraySizeException.h, IOException.h.
5941 * include/cni.h (SignalError): Removed declaration.
5942 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5943 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5944 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5945 (newInstance): Likewise.
5946 (forName): Likewise.
5947 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5948 sorry.
5949 (read): Use JvThrow, not SignalError.
5950 (read): Likewise.
5951 (write): Likewise.
5952 (skip): Likewise.
5953 (close): Likewise.
5954 (open_read): Likewise.
5955 (open_write): Likewise.
5956 (ftell): Likewise.
5957 (fseek): Likewise.
5958 (newstr): New function.
5959 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5960 sorry.
5961 (lastModifiedUnchecked): Likewise.
5962 (lengthUnchecked): Likewise.
5963 * include/javaprims.h (sorry): Removed declaration.
5964 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5965 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5966 ClassCastException, IncompatibleClassChangeError,
5967 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5968 * prims.cc (instanceof_array): Use JvFail, not sorry.
5969 (sorry): Removed.
5970 Include ArrayIndexOutOfBoundsException.h,
5971 ClassFormatError.h,ClassNotFoundException.h,
5972 ClassCircularityError.h, ClassCastException.h,
5973 IncompatibleClassChangeError.h, AbstractMethodError.h,
5974 IllegalAccessError.h, NegativeArraySizeException.h.
5975 (_Jv_ThrowBadArrayIndex): Implemented.
5976 (JvNewStringUTF): Use JvFail, not sorry.
5977 (_Jv_FindClass): Likewise.
5978 (_Jv_NewArray): Likewise.
5979 (throwException): Removed.
5980 (getClass): Use JvThrow.
5981 (processClass): Likewise.
5982 (_Jv_NewObjectArray): Likewise.
5983 (_Jv_NewMultiArray): Likewise.
5984 (_Jv_CheckCast): Likewise.
5985 (_Jv_LookupInterfaceMethod): Likewise.
5986 (SignalError): Removed.
5987 (getClass): Use _Jv_NewStringUtf8Const to create String.
5988
5989 * java/lang/natSystem.cc (arraycopy): Throw
5990 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5991
5992 * Makefile.in: Rebuilt.
5993 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5994 users.
5995 * include/java-array.h: Mention gcjh, not gjavah.
5996
5997 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5998 (canReadUnchecked): Likewise.
5999 (canWriteUnchecked): Likewise.
6000 (isFileUnchecked): Likewise.
6001 * java/io/natFileDescriptor.cc: Don't include cni.h.
6002
6003 * java/lang/Thread.java (run__): Declare.
6004 * java/lang/natThread.cc (run__): New method, to avoid compiler
6005 warning.
6006 (start): Use run__, not run_.
6007
6008 * java/io/io-defs.h: Include cni.h and jvm.h.
6009
6010 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6011
6012 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6013 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6014 to natString.cc (with suitable renaming, inlines etc).
6015 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6016 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6017 * java/lang/String.h: Removed - now generated using gjavah.
6018 * java/lang/String.java: Re-written from scratch. Many native methods.
6019 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6020 * java/lang/natString.cc: Many functions re-written for "compact
6021 strings" representation, or native java.lang.String methods added.
6022 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6023 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6024 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6025 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6026 * include/cni.h: Add inline method.
6027 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6028 * include/javaprims.h: Moved some stuff frm String.h.
6029 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6030 * Makefile.am (nat_header): Added Character.h and String.h.
6031 (String.h): Add new rule.
6032
6033 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6034
6035 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6036 java-assert.h.
6037 * posix-threads.cc: Include cni.h, jvm.h.
6038 * quick-threads.cc: Include cni.h, jvm.h.
6039 * nogc.cc: Include cni.h, not javaprims.h.
6040 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6041 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6042 include java-assert.h.
6043 * java/lang/natSystem.cc: Include cni.h. Don't include
6044 java-assert.h.
6045 * java/lang/natRuntime.cc: Include cni.h. Don't include
6046 java-assert.h.
6047 * prims.cc: Rearranged #include ordering. Don't include
6048 java-array.h or java-assert.h.
6049 * boehm.cc: Include config.h, cni.h.
6050 * exception.cc: Include config.h, cni.h.
6051 * include/jvm.h: Include java-assert.h.
6052 * include/cni.h: Include java/lang/Object.h. Don't include
6053 java-threads.h or java-array.h.
6054
6055 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6056
6057 * java/lang/Boolean.java: Rewritten.
6058
6059 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6060
6061 * java/lang/natFirstThread.cc (main_func): New typedef.
6062 (run): Use main_func, not JvPrivThreadStartFunc.
6063 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6064 argument type.
6065 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6066 argument type.
6067 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6068 argument type.
6069
6070 Can't throw Java exceptions with C++ `throw':
6071 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6072 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6073 (setPriority): Likewise.
6074 (sleep): Likewise.
6075 (start): Likewise.
6076 (stop): Likewise.
6077 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6078 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6079
6080 Can't catch Java exceptions from C++:
6081 * java/lang/natThread.cc (finish_): New method.
6082 (run_): Removed.
6083 * java/lang/Thread.java (run_): Rewrote in Java.
6084 (finish_): New native method.
6085
6086 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6087
6088 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6089
6090 * include/javaprims.h (java::io): Added Serializable.
6091
6092 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6093
6094 * java/util/EmptyStackException.java,
6095 java/util/NoSuchElementException.java: Rewritten.
6096
6097 * java/util/ConcurrentModificationException.java,
6098 java/util/MissingResourceException.java,
6099 java/util/TooManyListenersException.java: Created.
6100
6101 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6102
6103 * include/cni.h (JvThrow): New function.
6104 * include/javaprims.h (_Jv_Throw): Declare.
6105
6106 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6107
6108 * java/util/Observable.java: Rewritten.
6109
6110 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6111
6112 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6113 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6114 Include NullPointerException.h.
6115
6116 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6117
6118 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6119 assignability checks. Don't bother using memcpy.
6120
6121 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6122 (started): Removed.
6123 * include/quick-threads.h (JvPrivThreadWait): New function.
6124 * include/no-threads.h (JvPrivThreadWait): New function.
6125 * include/posix-threads.h (JvPrivThreadWait): New function.
6126 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6127
6128 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6129
6130 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6131 offsets by size of type that is being copied.
6132
6133 * java/lang/natThread.cc (start): Don't pass `object' argument to
6134 JvPrivThreadStart.
6135 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6136 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6137 argument.
6138 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6139 always pass thread as object.
6140 * include/quick-threads.h, include/posix-threads.h,
6141 include/no-threads.h (JvPrivThreadStart): Removed `object'
6142 argument.
6143
6144 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6145
6146 * java/util/Dictionary.java: Rewritten.
6147
6148 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6149
6150 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6151 (JvPrivThreadDestroy): Likewise.
6152
6153 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6154
6155 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6156
6157 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6158
6159 * java/lang/natSystem.cc: Rewrote from scratch.
6160 * java/lang/System.java: Rewrote from scratch.
6161 * java/lang/Class.h (Class): Declare isAssignableFrom.
6162 * include/javaprims.h (java::lang): Added ArrayStoreException,
6163 IndexOutOfBoundsException.
6164 * Makefile.in: Rebuilt.
6165 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6166 IndexOutOfBoundsException.h.
6167 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6168 * include/jvm.h (_Jv_HashCode): New function.
6169
6170 * java/lang/natThread.cc (suspend): Call checkAccess.
6171 (resume): Likewise.
6172 * java/lang/Thread.java (setDaemon): Call checkAccess.
6173
6174 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6175
6176 * java/lang/Runtime.java: Rewrote from scratch.
6177 * java/lang/natRuntime.cc: Rewrote from scratch.
6178
6179 * nogc.cc (JvPrivGCTotalMemory): New function.
6180 (JvPrivGCFreeMemory): Likewise.
6181 (total): New global.
6182 (JvPrivAllocObj): Increment total.
6183 (JvPrivAllocArray): Likewise.
6184 (JvPrivAllocBytes): Likewise.
6185 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6186 * boehm.cc (JvPrivGCTotalMemory): New function.
6187 (sum_blocks): Likewise.
6188 (JvPrivGCFreeMemory): Likewise.
6189
6190 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6191
6192 * include/javaprims.h (java::lang): Added FirstThread.
6193 * java/lang/natFirstThread.cc: New file.
6194 * java/lang/FirstThread.java: New file.
6195 * prims.cc (main_signature): Removed.
6196 (main_name): Removed.
6197 #include FirstThread.h.
6198 * Makefile.in: Rebuilt.
6199 * Makefile.am (TFRIEND): Removed.
6200 (java/lang/Thread.h): Likewise.
6201 (FTFRIEND): New macro.
6202 (java/lang/FirstThread.h): New target.
6203 (nat_files): Added natFirstThread.o.
6204 (nat_headers): Added FirstThread.h.
6205 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6206 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6207
6208 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6209 if name is null.
6210 (Thread): Likewise.
6211
6212 * java/lang/natThread.cc (start): Synchronize the thread.
6213 (stop): Synchronize the thread.
6214
6215 * java/lang/ThreadDeath.java: Rewrote from scratch.
6216
6217 * Makefile.in: Rebuilt.
6218 * Makefile.am (TGFRIEND): New macro.
6219 (java/lang/ThreadGroup.h): New target.
6220 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6221 native headers.
6222 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6223
6224 * nogc.cc: Include config.h.
6225
6226 * java/lang/ThreadGroup.java: Rewrote from scratch.
6227
6228 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6229
6230 * java/lang/Thread.java (checkAccess): Only call in to security
6231 manager if it exists.
6232 (Thread): Don't check access when creating the first thread. Add
6233 this thread to the appropriate ThreadGroup.
6234
6235 * java/lang/natThread.cc (run_): Call uncaughtException method on
6236 the ThreadGroup.
6237
6238 * java/lang/Runnable.java: Rewrote from scratch.
6239 * java/lang/Thread.java: Updated copyright comment to correct
6240 form.
6241
6242 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6243
6244 * java/util/Random.java: Rewritten.
6245
6246 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6247
6248 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6249 trailing 0 in array[].
6250
6251 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6252
6253 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6254 and RUNTESTFLAGS from AM_MAKEFLAGS.
6255 (SUBDIRS): Conditionally include testsuite.
6256 * Makefile.in: Rebuilt.
6257
6258 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6259
6260 * java/lang/Object.h: Include java-assert.h.
6261
6262 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6263
6264 * Makefile.am: Add testsuite directory.
6265 * configure.in: Build testsuite/Makefile.
6266 * Makefile.in, configure: Rebuilt.
6267
6268 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6269
6270 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6271 * include/jvm.h (_Jv_StartFirstThread): Declare.
6272
6273 * include/javaprims.h (java::lang): Added Exception,
6274 RuntimeException.
6275
6276 * Makefile.in: Rebuilt.
6277 * Makefile.am (nat_headers): Added NullPointerException.h,
6278 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6279 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6280 (java/lang/Thread.h): New target.
6281 (TFRIEND): New macro
6282
6283 * include/java-assert.h (JvFail): Use 0 and not NULL.
6284
6285 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6286 instead of assuming we are a friend of Thread.
6287 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6288 instead of assuming we are a friend of Thread.
6289
6290 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6291
6292 * java/lang/natThread.cc: Rewrote from scratch.
6293 * java/lang/Thread.java: Rewrote from scratch.
6294 * prims.cc (JvRunMain): Use new Thread constructor.
6295 * include/javaprims.h (java::lang): Added InterruptedException.
6296 * Makefile.in: Rebuilt.
6297 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6298 * java/lang/Thread.h: Removed.
6299 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6300 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6301 argument.
6302 * posix-threads.cc (JvPrivThreadJoin): Removed.
6303 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6304 (really_start): Don't notify join_cond.
6305 (JvPrivThreadStart): Added `data' argument.
6306 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6307 (JvPrivThreadJoin): Likewise.
6308 Use JvFail instead of sorry.
6309 (JvPrivThreadSuspend): Removed.
6310 (JvPrivThreadResume): Removed.
6311 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6312 (JvPrivThreadJoin): Likewise.
6313 (JvPrivThreadSuspend): Use JvFail.
6314 (JvPrivThreadResume): Likewise.
6315 (JvPrivThreadSuspend): Removed.
6316 (JvPrivThreadResume): Likewise.
6317 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6318 (JvPrivThread_t): Removed join_mutex, join_cond.
6319 Use JvFail instead of sorry.
6320 (JvPrivThreadSuspend): Removed.
6321 (JvPrivThreadResume): Likewise.
6322
6323 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6324
6325 * java/util/Observer.java: Rewritten
6326 * java/util/Enumeration.java: Rewritten
6327
6328 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6329
6330 * java/util/StringTokenizer.java: Rewritten
6331 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6332 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6333 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6334
6335 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6336
6337 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6338 not defined.
6339
6340 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6341 Include java-assert.h.
6342 * include/java-assert.h: New file.
6343 * prims.cc (_Jv_Abort): New function.
6344 Include java-assert.h, not assert.h.
6345 (_Jv_MonitorExit): Use JvAssert.
6346 (resolveConstants): Likewise.
6347 (processClass): Likewise.
6348 (JvRunMain): Assert that method is found.
6349
6350 * configure: Rebuilt.
6351 * configure.in: Check for test subdir.
6352 * Makefile.in: Rebuilt.
6353 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6354
6355 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6356 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6357
6358 * prims.cc (resolveConstants): Removed unused variables.
6359 (processClass): Likewise.
6360
6361 * include/quick-threads.h (JvPrivThreadCurrent): Use
6362 coop_getspecific.
6363 * quick-threads.cc (destroy_data): New function.
6364 (JvPrivInitThreads): Create key.
6365 (JvPrivThreadKey): New global.
6366 (JvPrivThreadStart): Use coop_setspecific.
6367
6368 * include/quick-threads.h, include/posix-threads.h,
6369 include/no-threads.h, no-threads.cc, quick-threads.cc,
6370 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6371
6372 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6373
6374 * include/no-threads.h (JvPrivThreadInitData): Don't set
6375 JvPrivOnlyThread.
6376
6377 * include/quick-threads.h (JvPrivCondWait): coop function now
6378 takes microseconds.
6379 (JvPrivThreadJoin): Likewise.
6380
6381 * java/lang/Thread.h (Thread): Updated declaration of
6382 JvPrivThreadStart.
6383 * include/quick-threads.h, include/posix-threads.h: Updated
6384 declaration of JvPrivThreadStart.
6385 * include/no-threads.h (JvPrivThreadStart): Changed definition
6386 into declaration.
6387 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6388 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6389 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6390
6391 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6392
6393 * quick-threads.cc (qthrow): New function.
6394 (JvPrivInitThreads): New function.
6395 (started): New global.
6396 (JvPrivThreadStart): Call coop_start if required.
6397 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6398 (JvPrivThreadDestroy): Likewise.
6399 (JvPrivInitThreads): Removed.
6400 * include/posix-threads.h (JvPrivThreadCancel): Added error
6401 argument.
6402 * java/lang/natThread.cc (stop_): Pass exception to
6403 JvPrivThreadCancel.
6404
6405 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6406
6407 * include/javaprims.h (java::lang): Added
6408 IllegalArgumentException, IllegalThreadStateException, Math,
6409 NullPointerException, ThreadDeath.
6410 (java::util): Added Enumeration.
6411
6412 * Makefile.in: Rebuilt.
6413 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6414
6415 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6416 now public.
6417 (threadsv): Renamed from threads to avoid clash in C++ header.
6418 (groupsv): Likewise.
6419 * include/no-threads.h (JvPrivThreadStart): Removed.
6420 * no-threads.cc (JvPrivThreadStart): New function.
6421 * java/lang/Thread.java (Thread): New constructor for internal use.
6422 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6423 (Thread): Declare constructor.
6424 * prims.cc (JvRunMain): Create the initial Thread and
6425 ThreadGroup.
6426 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6427 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6428 Removed `daemon' argument.
6429
6430 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6431 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6432 a friend.
6433 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6434
6435 * Makefile.in: Rebuilt.
6436 * Makefile.am (INCLUDES): Include THREADINCS.
6437
6438 * configure: Rebuilt.
6439 * configure.in: Recognize `qt' as a threads package.
6440
6441 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6442
6443 * java/util/Stack.java (pop): Null out topmost node for robustness.
6444
6445 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6446
6447 * java/util/Stack.java: Rewritten.
6448 * java/util/Vector.java (isEmpty): Simplified expression.
6449
6450 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6451
6452 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6453 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6454
6455 * include/java-array.h (JvNewObjectArray): Created inline to
6456 _Jv_NewObjectArray.
6457
6458 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6459 JvNewObjectArray.
6460
6461 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6462
6463 * java/util/Vector.java: Rewritten.
6464 * java/io/Serializable.java: Created.
6465
6466 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6467
6468 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6469 Infinity is 1/0, not 1/1.
6470
6471 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6472
6473 * configure: Rebuilt.
6474 * configure.in: Removed duplicate AC_ARG_WITH.
6475
6476 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6477
6478 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6479 soft_badarrayindex.
6480 (_Jv_InitClass): Renamed from soft_initialise_class.
6481 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6482 (_Jv_CheckCast): Renamed from soft_checkcast.
6483 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6484 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6485 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6486 * include/cni.h (JvInitClass): New function.
6487 (_Jv_InitClass): Renamed from soft_initialise_class.
6488
6489 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6490
6491 * configure: Rebuilt.
6492 * configure.in (CXX): Don't set.
6493 * Makefile.in: Rebuilt.
6494 * Makefile.am (AM_CXXFLAGS): New macro.
6495
6496 * Makefile.in: Rebuilt.
6497 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6498 nogc.o): New target.
6499
6500 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6501 GC.
6502 (mark_array): Likewise.
6503
6504 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6505
6506 * java/lang/Class.h (JvMethod): Removed some unused fields.
6507 (JvField.info): Removed unused idx union variant.
6508
6509 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6510
6511 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6512 match compiler.
6513
6514 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6515
6516 * configure.in, configure (CXX): Add -fvtable-thunks.
6517
6518 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6519
6520 * java/lang/Object.java (finalize): Move first.
6521 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6522 (Object): Re-arrange order to match Object.java.
6523
6524 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6525
6526 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6527 * java/lang/natString.cc (hashChars): Likewise.
6528
6529 * prims.cc (RuntimeClass): New macro.
6530 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6531
6532 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6533
6534 * Makefile.in: Rebuilt.
6535 * Makefile.am (AM_MAKEFLAGS): New macro.
6536
6537 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6538
6539 * nogc.cc: Include <javaprims.h>.
6540
6541 * Makefile.in: Rebuilt.
6542 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6543
6544 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6545
6546 * exception.cc (terminate): Removed.
6547 (unexpected): Removed.
6548
6549 * configure: Rebuilt.
6550 * configure.in: Handle case where target subdir is ".".
6551
6552 * configure: Rebuilt.
6553 * configure.in: Compute COMPPATH based on --with-target-subdir
6554 option. Added --with-target-subdir and --with-cross-host. Use
6555 --with-cross-host to determine when a cross compiler is in use.
6556
6557 * Makefile.in: Rebuilt.
6558 * Makefile.am (GJAVAH): Include COMPPATH.
6559 * configure: Rebuilt.
6560 * configure.in: Subst COMPPATH.
6561
6562 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6563
6564 * prims.cc (lockMutex): Removed.
6565 (unlockMutex): Likewise.
6566 (processClass): Lock the class using a JvSynchronize object.
6567
6568 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6569
6570 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6571 (gc_free_fixed): Removed.
6572 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6573 freeing old value of strhash.
6574
6575 * exception.cc (_Jv_type_matcher): Cast first argument to
6576 _Jv_IsInstanceOf.
6577
6578 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6579
6580 * include/java-array.h (jstringArray): New type.
6581 * java/lang/natSystem.cc (setProperty): Removed.
6582 (initProperties): Directly call JvNewStringLatin1 for arguments.
6583 * java/util/natDate.cc: Include java/util/Date.h, not
6584 java-util.h.
6585 (setTime): Removed.
6586 * java/io/FileDescriptor.java (available): No longer static.
6587 * java/lang/natDouble.cc (Double): Removed class definition.
6588 * include/javaprims.h (java::lang::Number): Declare.
6589 (java::lang::NumberFormatException): Likewise.
6590 (java::io::FilenameFilter): Likewise.
6591 (java::lang::Character): Likewise.
6592 (java::lang::Error): Likewise.
6593 (java::lang::SecurityManager): Likewise.
6594 (java::util::Vector): Likewise.
6595 (java::io::FileNotFoundException): Likewise.
6596 (java::io::IOException): Likewise.
6597 (java::lang::NativeLang): Likewise.
6598 (java::lang::UnsatisfiedLinkError): Likewise.
6599 (java::util::StringTokenizer): Likewise.
6600 (java::io::InputStream, java::io::OutputStream): Likewise.
6601 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6602 (java::util::Hashtable): Likewise.
6603 * Makefile.in: Rebuilt.
6604 * Makefile.am (nat_headers): Added java/lang/Double.h,
6605 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6606 (MOSTLYCLEANFILES): Added nat_headers.
6607 * include/jvm.h: Moved many defines, declarations, and functions
6608 to java/lang/Class.h.
6609 (struct JvSyncInfo): Moved to java/lang/Object.h.
6610 (UTF8_GET): Moved to java/lang/String.h.
6611
6612 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6613
6614 * java/io/io-defs.h: Don't include java-io.h.
6615 * include/java-io.h: Removed.
6616 * include/javaprims.h: Include java::io.
6617
6618 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6619
6620 * include/java-io.h (File): Removed
6621 (FileDescriptor): Likewise.
6622
6623 * java/io/io-defs.h: Include java/io/File.h and
6624 java/io/FileDescriptor.h.
6625
6626 * Makefile.in: Rebuilt.
6627 * Makefile.am (GJAVAH): New macro.
6628 (.class.h): New rule.
6629 (SUFFIXES): Added .h.
6630 (nat_headers): New macro.
6631 ($(nat_headers)): New target.
6632 (BUILT_SOURCES): Added nat_headers.
6633
6634 * include/java-util.h: Removed.
6635
6636 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6637
6638 * include/java-io.h: Changed to avoid java-lang.h.
6639 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6640 java-lang.h.
6641 * java/lang/natSystem.cc: Include java/lang/System.h, not
6642 java-lang.h.
6643 * java/lang/natString.cc: Include java/lang/String.h, not
6644 java-lang.h.
6645 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6646 java-lang.h.
6647 * java/lang/natClass.cc: Include java/lang/Class.h, not
6648 java-lang.h.
6649 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6650 java-lang.h.
6651 * java/lang/natObject.cc: Include java/lang/Object.h, not
6652 java-lang.h.
6653 * exception.cc: Don't include java-lang.h.
6654 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6655 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6656 * nogc.cc: Don't include java-lang.h.
6657 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6658 * prims.cc (processClass): Don't use `init_type'; just cast to
6659 type directly.
6660 Include java/lang/Class.h and jvm.h, not java-lang.h.
6661 (JvAllocObject): Wrote single-argument version.
6662 (PrimClass): Inherit from Class.
6663 (initPrimClass): Removed.
6664 * include/java-lang.h: Removed.
6665 * include/jvm.h: Declare struct _dispatchTable.
6666 * include/cni.h: Don't declare _Jv_MonitorEnter,
6667 _Jv_MonitorExit, struct _dispatchTable.
6668 * include/javaprims.h: Moved all typedefs here, from cni.h.
6669 * java/lang/Class.h: New file.
6670 * include/java-array.h: New file.
6671 * java/lang/Object.h: New file.
6672
6673 * prims.cc (classFromSig): Now static.
6674
6675 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6676
6677 * include/cni.h: Don't mention soft_new.
6678 * include/java-lang.h (Object): Don't mention soft_new. Mention
6679 _Jv_NewPrimArray, not newPrimArray.
6680 * prims.cc (soft_new): Removed.
6681 (_Jv_NewArray): Renamed from soft_newarray.
6682 (soft_anewarray): Use JvNewObjectArray.
6683 (newArray): Likewise.
6684 (newRefArray): Removed.
6685 (_Jv_NewPrimArray): Renamed from newPrimArray.
6686 (equalUtf8Consts): Now static.
6687 (soft_instanceof): Removed.
6688 * java/lang/natDouble.cc (doubleToString): Now static.
6689
6690 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6691 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6692 Removed.
6693
6694 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6695
6696 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6697 _Jv_MonitorExit.
6698 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6699 _Jv_MonitorExit.
6700 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6701 (JvPrivMutexUnlock): Likewise.
6702 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6703 Return value now jint.
6704 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6705 now jint.
6706
6707 * Makefile.in: Rebuilt.
6708 * Makefile.am: Don't allow `jV' names.
6709 (maintainer-check): Depend on libjava.a.
6710 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6711
6712 * Makefile.in: Rebuilt.
6713 * Makefile.am (NM): New macro.
6714 (maintainer-check): New target.
6715
6716 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6717
6718 * configure: Rebuilt.
6719 * configure.in: Use --enable-threads, not --enable-gc. Fix
6720 documentation for --enable-threads. Changed option to work like
6721 identical option in gcc/configure.
6722
6723 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6724
6725 * boehm.cc (mark_array): Use JvGetArrayLength.
6726
6727 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6728
6729 * exception.cc: New file (mostly written by Andrew MacLeod),
6730 exception handling support.
6731 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6732 Remove -fexceptions - it is now the default.
6733
6734 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6735 (JvAllocObject): Renamed to _Jv_AllocObject.
6736 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6737 (loadClass): Renamed to _Jv_FindClass.
6738 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6739 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6740 * include/java-lang.h (JvGetArrayLength): New CNI function.
6741 * include/jvm.h (_Jv_FindClass): Added declaration.
6742
6743 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6744
6745 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6746
6747 * java/lang/natClass.cc (getName): Add implementation.
6748 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6749
6750 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6751
6752 * Makefile.in: Rebuilt.
6753 * Makefile.am (.class.o): Added -fexceptions.
6754
6755 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6756
6757 * configure: Rebuilt.
6758 * configure.in: Don't check for __nanosleep.
6759 * posix-threads.cc (nanosleep): Never define.
6760
6761 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6762
6763 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6764 timespec.
6765
6766 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6767
6768 * java/lang/natThread.cc (enumerate): Uncommented.
6769 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6770 (interrupt): Call it.
6771
6772 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6773
6774 * configure: Rebuilt.
6775 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6776
6777 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6778
6779 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6780 * include/java-lang.h (Thread): Added `interrupted_' method.
6781 * java/lang/Thread.java (interrupted_): New method.
6782 * java/lang/natThread.cc (join): Possibly throw interrupted
6783 exception after join finishes.
6784 (interrupted_): New method.
6785 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6786 join_cond.
6787 (JvPrivThreadJoin): New function.
6788 (really_start): Notify all threads waiting for this thread.
6789 (struct starter): Added `data' member.
6790 (JvPrivThreadStart): Set it.
6791 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6792 join_cond.
6793 (JvPrivThreadJoin): No longer inline.
6794 (JvPrivThreadInterrupt): New function.
6795
6796 * include/no-threads.h (JvPrivThreadSleep): Removed.
6797 * posix-threads.cc (JvPrivThreadSleep): Removed.
6798
6799 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6800
6801 * configure: Rebuilt.
6802 * configure.in (THREADOBJS): Initialize to no-threads.o in
6803 no-threads case.
6804 * posix-threads.cc (key): New global.
6805 (JvPrivInitThreads): New function.
6806 (really_start): Set thread-specific data to point to object.
6807 (JvPrivThreadStart): Added `daemon' argument.
6808 (JvPrivThreadSleep): Added `data' argument.
6809 * include/posix-threads.h (JvPrivInitThreads): Removed
6810 implementation.
6811 (JvPrivThreadCurrent): New function.
6812 * include/no-threads.h (JvPrivThreadInitData): Initialize
6813 JvPrivOnlyThread. Added `thread' argument.
6814 (JvPrivThreadCurrent): New function.
6815 (JvPrivThreadStart): Added `daemon' argument.
6816 * no-threads.cc: New file.
6817 * java/lang/natThread.cc (init_data): New function.
6818 (isAlive): Removed.
6819 (start): Set `alive' member.
6820 (stop_): Clear `alive' member.
6821 (destroy): Likewise.
6822 (currentThread): Implemented.
6823 (start): Pass `daemon' argument to JvPrivThreadStart.
6824 (sleep): Rewrote.
6825 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6826 (Thread): Added `init_data' method.
6827 * java/lang/Thread.java (alive, data): New instance variables.
6828 (init_data): New private method.
6829 (isAlive): No longer native.
6830
6831 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6832
6833 * include/java-lang.h (JvRunMain): Declare.
6834 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6835 * prims.cc (JvRunMain): New function.
6836 (main_signature, main_name): New globals.
6837
6838 * boehm.cc (mark_array): Use `elements' function and not
6839 operator[] on jarray.
6840
6841 * posix-threads.cc: Include <config.h>. Define nanosleep if
6842 required.
6843
6844 * configure: Rebuilt.
6845 * configure.in: Check for _nanosleep.
6846
6847 * configure: Rebuilt.
6848 * configure.in: Check for pthread_mutexattr_settype.
6849
6850 * include/cni.h (class JvSynchronize): New class.
6851 * java/lang/Thread.java (sleep): Throws InterruptedException.
6852 (join): Throws InterruptedException.
6853 (resume): Not native.
6854 (resume_): New method.
6855 (start): Now synchronized.
6856 (stop_): New method.
6857 (Thread): Synchronize when accessing threadNumber.
6858 (misc): Removed.
6859 * java/lang/natThread.cc (throwException): New macro.
6860 (sleep): Throw InterruptedException.
6861 (resume_): Renamed.
6862 (stop_): Renamed.
6863 * include/java-lang.h (Runtime): Added interrupted().
6864
6865 * boehm.cc (call_finalizer): Correctly initialize jobj.
6866 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6867
6868 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6869 `#elseif'.
6870
6871 * configure: Rebuilt.
6872 * configure.in: Added support for --disable-threads.
6873 * include/no-threads.h: New file.
6874
6875 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6876
6877 * Makefile.in: Rebuilt.
6878 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6879 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6880 (libjava_a_LIBADD): Added THREADOBJS.
6881 * configure: Rebuilt.
6882 * configure.in: Added --with-threads option.
6883 * posix-threads.cc: New file.
6884 * include/posix-threads.h: New file.
6885 * include/java-lang.h (Object): Added static member sync_mutex,
6886 member sync_info, method init_mutex.
6887 (struct JvSyncInfo): New struct.
6888 Include "java-threads.h".
6889 * prims.cc (soft_monitorenter): Wrote.
6890 (soft_monitorexit): Likewise.
6891 * java/lang/natObject.cc (init_mutex): New method.
6892 (notify): Wrote.
6893 (notifyAll): Wrote.
6894 (wait): Wrote.
6895 (sync_mutex): Define.
6896 Include "java-threads.h".
6897
6898 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6899
6900 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6901 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6902
6903 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6904
6905 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6906 Added extern "Java" in places to tell G++ Object is a "Java" type.
6907 Other minor renaming and fixes.
6908 * include/java-io.h (FileDescriptor): Add friend class declarations.
6909 G++ no longer allows non-Java types in method parameters and results
6910 of Java classes. Converted most offending methods to friends.
6911 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6912 * java/lang/natSystem.cc (setProperty): Make friend.
6913 * java/lang/natString.cc, include/java-lang.h (String): Rename
6914 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6915 * include/java-lang.h (JArray): Remove getData and eoprator[].
6916 Add elements friend function instead.
6917 * java/lang/natSystem.cc (arraycopy): Use elements function.
6918 * java/io/natFileDescriptor.cc (read, write): Likewise.
6919 * include/java-lang.h (Object): Remove unused make method.
6920 (System::setProperty(char*,char*)): Turn into friend function.
6921 (Class): Rename newObject by JvAllocObject.
6922 * prims.cc: Update to use JvAllocObject, and elements.
6923
6924 * java/lang/natDouble.cc: Fix double -> jdouble.
6925
6926 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6927
6928 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6929
6930 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6931
6932 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6933 * include/java-lang.h (Runtime): finalize_on_exit and
6934 runFinalizersOnExit now static.
6935 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6936 match JDK 1.2b3.
6937 (finalize_on_exit): Now static.
6938
6939 * boehm.cc (mark_obj): Get class using getClass() method on
6940 object.
6941 (_dispatchTable): Removed.
6942
6943 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6944
6945 * java/io/natFileDescriptor.cc (open_read): Only call open if
6946 HAVE_OPEN defined.
6947 (open_write): Likewise.
6948
6949 * Makefile.in: Rebuilt.
6950 * Makefile.am ($(nat_files)): Depend on config.h.
6951
6952 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6953
6954 * prims.cc (ObjectClass): Now a macro; updated for new class name
6955 mangling scheme.
6956 (StringClass): Likewise.
6957 (ClassClass): Likewise.
6958
6959 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6960
6961 * java/io/natFileDescriptor.cc (available): Do nothing unless
6962 HAVE_SELECT defined.
6963 * java/util/natDate.cc (setTime): Conditional on
6964 HAVE_GETTIMEOFDAY.
6965 (toString): Conditional on HAVE_TIME.
6966 * aclocal.m4, configure: Rebuilt.
6967 * acinclude.m4: New file.
6968 * configure.in: Don't actually call AM_EXEEXT. Call
6969 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6970 --with-target-subdir option. Check for select and open
6971 functions.
6972
6973 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6974
6975 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6976 (call_finalizer): Likewise.
6977 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6978 * prims.cc (newObject): Pass actual method pointer to
6979 JvPrivRegisterFinalizer.
6980 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6981 (JvPrivRegisterFinalizer): Changed interface.
6982
6983 * Makefile.in: Rebuilt.
6984 * Makefile.am (MOSTLYCLEANFILES): New macro.
6985 (CLEANFILES): Removed javao_files.
6986
6987 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6988
6989 * nogc.cc: New file.
6990 * Makefile.in: Rebuilt.
6991 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6992 (EXTRA_libjava_a_SOURCES): New macro.
6993 (libjava_a_SOURCES): Removed boehm.cc.
6994 (libjava_a_DEPENDENCIES): Added GCOBJS.
6995 (libjava_a_LIBADD): Likewise.
6996 * configure: Rebuilt.
6997 * configure.in: Added code for --enable-gc=TYPE.
6998
6999 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7000
7001 * boehm.cc (mark_array): Don't further dereference pointer from
7002 array.
7003
7004 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7005 * Makefile.in: Rebuilt.
7006 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7007 one for boehm-gc build directory.
7008
7009 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7010
7011 * include/java-lang.h (finalize_on_exit): New instance variable in
7012 java::lang::Runtime.
7013 (runFinalizersOnExit): New method.
7014 * java/lang/Runtime.java (finalize_on_exit): New instance
7015 variable.
7016 (runAllFinalizers_): New private method.
7017 (runFinalizersOnExit): New method.
7018 * boehm.cc (JvPrivRunFinalizers): New function.
7019 (JvPrivRunAllFinalizers): Likewise.
7020 (JvPrivRunGC): Likewise.
7021 * java/lang/natRuntime.cc: Include "jvm.h".
7022 (gc): Call JvPrivRunGC.
7023 (runFinalization): Call JvPrivRunFinalizers.
7024 (runFinalizersOnExit): New method.
7025 (exit_): Call JvPrivRunAllFinalizers if required.
7026 * include/jvm.h: Declare JvPrivRunFinalizers,
7027 JvPrivRunAllFinalizers, JvPrivRunGC.
7028
7029 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7030
7031 * boehm.cc (JvPrivRegisterFinalizer): New function.
7032 (call_finalizer): Likewise.
7033 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7034 * prims.cc (finalize_name): New global.
7035 (newObject): Just call other newObject.
7036 (newObject): Register finalizer if it exists.
7037
7038 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7039
7040 * prims.cc (gc_malloc): Removed.
7041 (makeUtf8Const): Use JvPrivAllocBytes.
7042 (lookupArray): Likewise.
7043 (newPrimArray): Likewise.
7044 (JvNewObjectArray): Use JvPrivAllocArray.
7045 (newObject): Use JvPrivAllocObj.
7046 (newObject): Likewise.
7047 Changed Method -> JvMethod everywhere.
7048 Changed Field -> JvField everywhere.
7049 * include/java-lang.h (Object): Changed type of `fields' to
7050 JvField*.
7051 (jmethodID, jfieldID): New typedefs.
7052 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7053 friends.
7054 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7055 from java-lang.h.
7056 (METHOD_NATIVECODE): Moved from java-lang.h.
7057 (class JvField): New class.
7058 (JvGetFirstInstanceField): New function.
7059 (JvFieldIsRef): Likewise.
7060 (JvGetObjectField): Likewise.
7061 (JvNumInstanceFields): Likewise.
7062
7063 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7064
7065 * boehm.cc: New file.
7066 * Makefile.in: Rebuilt.
7067 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7068 (INCLUDES): Added -I options to find boehm-gc files.
7069
7070 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7071
7072 * configure: Rebuilt.
7073 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7074
7075 * Makefile.in: Rebuilt.
7076 * Makefile.am (nat_files): New macro.
7077 (libjava_a_DEPENDENCIES): Use it.
7078 (libjava_a_LIBADD): Likewise.
7079 ($(nat_files)): New static pattern rule.
7080 (class_files): Run separate find to find .class files.
7081 (javao_files): Compute based on class_files.
7082 (BUILT_SOURCES): New macro.
7083
7084 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7085
7086 * Makefile.am (java_files): New macro.
7087 (class_files): Likewise.
7088 (javao_files): Likewise.
7089 (libjava_a_DEPENDENCIES): Include $(javao_files).
7090 (libjava_a_LIBADD): Likewise.
7091 (classes.stamp): Depend on $(java_files); only recompile changed
7092 files.
7093 (here): New macro.
7094 (CLEANFILES): Don't run find; use macros. Don't mention
7095 libjava.a.
7096 (.class.o): New target.
7097 (compiled.stamp): Removed.
7098
7099 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7100
7101 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7102 LineNumberReader}>java: Newly-implemented standard classes.
7103
7104 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7105
7106 * Makefile.in: Rebuilt.
7107 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7108
7109 * Makefile.in: Rebuilt.
7110 * Makefile.am (hack): New macro.
7111 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7112
7113 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7114
7115 * include/config.h.in: New file.
7116 * include/config.h: Removed.
7117 * acconfig.h: New file.
7118 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7119 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7120 libjava_a_LIBADD): New macros.
7121 (INCLUDES): New macro.
7122 (prims.o): Removed.
7123 (.cc.o): Removed.
7124 (SUFFIXES): Removed.
7125 (all): Removed.
7126 (libjava.a): Removed.
7127
7128 * configure: Rebuilt.
7129 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7130 Look for headers and functions we require. Create
7131 include/config.h.
7132
7133 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7134
7135 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7136 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7137 soft_lookupinterfacemethod): New functions.
7138 (PrimClass): Actually initialize the primitive classes.
7139 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7140
7141 * include/java-util.h: Removed java::util definition.
7142 * include/cni.h: Moved java::util here and added Properties.
7143 Added more function prototypes.
7144 * include/java-lang.h: Added mroe methods and friend declarations.
7145 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7146 * include/jvm.h (strLengthUtf8): Add declaration.
7147
7148 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7149 New static field.
7150 * java/lang/{Byte,Short,Void}.java: New classes.
7151 * java/lang/Character.java (isJavaIdentifierStart,
7152 JavaIdentifierPart): New static methods.
7153 * java/lang/Number.java (byteValue, shortValue): New methods.
7154
7155 * java/lang/String.java (intern, hashCode): Make native.
7156 * java/lang/natString.cc: New file. Handle the string pool.
7157 * Makefile.am: Build natString.o. Use CXXFLAGS.
7158
7159 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7160 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7161 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7162 * java/lang/System.java (setProperty): New private method.
7163 (initProperties): Take argument, and make native.
7164 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7165 (currentTimeMillis): Make more robust.
7166
7167 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7168 * java/io/UnsupportedEncodingException.java: New exception class.
7169
7170 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7171 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7172
7173 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7174
7175 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7176 * prims.cc: Added bunch of stuff.
7177 * include/cni.h: Added various definitions.
7178 * include/java-lang.h: Added Method, various friends, some macros.
7179
7180 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7181 * java/lang/System.java (arraycopy): Make native.
7182
7183 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7184
7185 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7186 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7187 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7188 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7189 Make native.
7190 * java/lang/Runtime.java: Declare methods as native instead of
7191 using NativeLang.
7192 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7193 * java/lang/System.java: Comment out some stuff, for now.
7194 * java/lang/Thread.java: Re-write. Use native methods.
7195 * java/lang/NativeLang.java: Remove most of it.
7196
7197 * java/util/natDate.cc: Native (C++) methods for Date.
7198 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7199 * java/util/Date.java: Complete re-write.
7200
7201 * java/io/io-defs.h: New header file.
7202 * java/io/FileDescriptor.java: Add a bunch of private methods,
7203 mostly moved from NativeIO.java and natNativeIO.cc.
7204 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7205 * java/io/File.java: Use new code.
7206 * java/io/{FileInputStream.java.FileOutputStream.java,
7207 RandomAccessFile.java}: Use new private FileDescriptor methods.
7208 * java/io/NativeIO.java: Removed, no longer used.
7209
7210 * java/io/StreamTokenizer.java (numericChars): Make char array.
7211
7212 * include/*.h: Various header files used by the C++ native code.
7213
7214 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7215 New autoconf+automake-based setup.
7216 * prims.cc: New file for Java "primitives".
7217