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