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