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