1 1999-11-05 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natThread.cc (destroy): Removed incorrect comment.
5 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
7 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
8 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
11 1999-11-05 Tom Tromey <tromey@cygnus.com>
13 * java/lang/natThread.cc (stop): Removed argument name.
15 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
16 `private'; now has default access.
17 * Makefile.in: Rebuilt.
18 * Makefile.am (java/lang/ThreadGroup.h): Removed.
20 1999-11-04 Tom Tromey <tromey@cygnus.com>
22 * java/lang/natClass.cc (method_cache_count): Removed.
23 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
24 (_Jv_AddMethodToCache): Don't loop.
26 * configure.in: Removed `qt' threads case.
27 * include/quick-threads.h: Removed.
28 * quick-threads.cc: Removed.
30 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
31 (_Jv_ThreadDestroy): Likewise.
32 * include/no-threads.h (_Jv_ThreadCancel): Removed.
33 (_Jv_ThreadDestroy): Likewise.
34 * include/posix-threads.h (struct _Jv_Thread_t): Removed
36 (_Jv_ThreadCancel): Removed decl.
37 (_Jv_ThreadDestroy): Removed.
38 * posix-threads.cc (_Jv_ThreadCancel): Removed.
39 (throw_cleanup): Removed.
40 (really_start): Don't push or pop cleanup.
41 (_Jv_ThreadInitData): Don't initialize `exception' field.
42 * java/lang/Thread.java (stop): Officially unimplemented.
43 * java/lang/natThread.cc (stop): Officially unimplemented.
45 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
47 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
50 1999-11-02 Tom Tromey <tromey@cygnus.com>
52 * boehm.cc: Don't include boehm-config.h.
54 1999-11-01 Tom Tromey <tromey@cygnus.com>
56 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
57 (sum_blocks): Removed.
58 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
60 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
62 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
64 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
65 * java/io/InputStreamReader (InputStreamReader): ditto.
67 1999-10-22 Tom Tromey <tromey@cygnus.com>
69 * Makefile.in: Rebuilt.
70 * Makefile.am (java/lang/ClassLoader.h): New target.
71 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
74 * include/java-props.h (_Jv_Compiler_Properties): Changed
76 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
77 * include/jvm.h (_Jv_GCSetInitialHeapSize,
78 _Jv_GCSetMaximumHeapSize): Declare.
79 (JvRunMain, _Jv_RunMain): Declare.
80 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
81 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
82 (_Jv_GCSetMaximumHeapSize): Likewise.
83 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
84 (_Jv_GCSetMaximumHeapSize): Likewise.
85 * prims.cc (parse_heap_size): New function.
86 (_Jv_SetInitialHeapSize): Likewise.
87 (_Jv_SetMaximumHeapSize): Likewise.
88 (_Jv_Compiler_Properties): New global.
89 * gij.cc (help): New function.
91 (heap_size): Likewise.
92 (heap_max_size): Likewise.
93 (main): Parse arguments. Set _Jv_Compiler_Properties.
94 Include <config.h>, <java-props.h>.
95 (_Jv_Compiler_Properties): Removed.
97 1999-10-18 Tom Tromey <tromey@cygnus.com>
99 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
101 (redirect): New static field.
102 * java/lang/ClassLoader.java (getSystemClassLoader): Now
104 (getVMClassLoader0): Removed.
105 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
107 (getSystemClassLoader): Implemented.
109 1999-10-16 Anthony Green <green@cygnus.com>
111 * java/lang/ClassLoader.java (getSystemResource): Use
112 getSystemClassLoader instead of ClassLoader.system.
113 (getSystemResourceAsStream): Ditto.
115 * java/lang/natClassLoader.cc (redirect): Make static and
116 remove #ifdef INTERPRETER so it is always defined.
117 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
118 returns a VMClassLoader.
120 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
121 PropertyResourceBundle if a properties file is found before a
122 ResourceBundle class.
124 1999-10-15 Tom Tromey <tromey@cygnus.com>
126 * gij.cc (main): Formatting fixes.
127 (_Jv_Compiler_Properties): Define.
128 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
130 (init_properties): Set properites from _Jv_Compiler_Properties.
131 * include/java-props.h (_Jv_Compiler_Properties,
132 _Jv_Environment_Properties): Declare.
134 * include/java-props.h: Added copyright.
136 1999-10-13 Anthony Green <green@cygnus.com>
138 * libtool-version: Catch up by incrementing current.
140 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
141 * configure, include/config.h.in: Rebuilt.
142 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
143 * configure.in: Added --disable-getenv-properties and new define
144 `DISABLE_GETENV_PROPERTIES'.
146 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
147 (next_property_key): New function.
148 (next_property_value): New function.
149 (process_gcj_properties): New function.
150 (JvRunMain): Call process_gcj_properties.
153 * java/lang/natSystem.cc (init_properties): Set properties defined
156 * include/java-props.h: New file.
158 * java/lang/natSystem.cc (init_properties): Add new properties to
159 conform with Java Product Versioning Specification.
161 1999-10-12 Tom Tromey <tromey@cygnus.com>
163 * configure: Rebuilt.
164 * configure.in: Fixed test for --disable-java-net.
166 1999-10-06 Tom Tromey <tromey@cygnus.com>
168 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
169 when building Canadian cross.
170 (NATIVE): Don't define when cross-compiling.
172 1999-10-04 Tom Tromey <tromey@cygnus.com>
174 * java/net/natPlainSocketImpl.cc: Don't include headers if
175 java.net is disabled.
177 * Makefile.in: Rebuilt.
178 * Makefile.am (ZINCS): Removed. This is defined in configure.in
179 when needed, and must be left empty when not needed.
181 1999-10-01 Anthony Green <green@cygnus.com>
183 * THANKS: Refreshed from htdocs version.
185 1999-10-01 Steve Chamberlain <sac@pobox.com>
187 * Makefile.in: Rebuilt.
188 * Makefile.am (ZINCS): Define
190 * configure: Rebuilt.
191 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
193 * java/lang/ieeefp.h: Add definitions for picoJava.
195 1999-10-01 Tom Tromey <tromey@cygnus.com>
197 * configure: Rebuilt.
198 * configure.in: Set classpath when invoking gcj. Use changequote
199 around sed invocation.
201 * java/net/natPlainSocketImpl.cc: Stub native functions if
202 DISABLE_JAVA_NET is defined.
203 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
204 typo in exception string.
205 (getTimeToLive): Likewise.
206 Stub native functions if DISABLE_JAVA_NET is defined.
207 * java/net/natInetAddress.cc: Stub native functions if
208 DISABLE_JAVA_NET is defined.
209 * configure.host: Disable java.net for mips-tx39.
210 * configure, include/config.h.in: Rebuilt.
211 * acconfig.h (DISABLE_JAVA_NET): Undefine.
212 * configure.in: Added --disable-java-net and new define
215 1999-09-30 Tom Tromey <tromey@cygnus.com>
217 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
219 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
223 1999-09-28 Tom Tromey <tromey@cygnus.com>
225 * configure: Rebuilt.
226 * configure.in (PROCESS): In POSIX case, only set if not already
228 * configure.host (PROCESS): Set in mips-tx39 case.
230 * aclocal.m4, configure: Rebuilt.
231 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
232 appropriate AC_PROG_ symbol.
234 1999-09-24 Tom Tromey <tromey@cygnus.com>
236 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
238 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
240 Fix for PR java.util/47:
241 * configure, include/config.h: Rebuilt.
242 * configure.in: Don't look for ctime or ctime_r.
243 * Makefile.in: Rebuilt.
244 * Makefile.am (nat_source_files): Don't mention natDate.cc.
245 * java/util/natDate.cc: Removed.
246 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
248 (getAvailableIDs): Rewrote.
249 (getTimeZone): Rewrote.
250 * java/util/Date.java (toGMTString): New method.
251 (toLocaleString): New method.
254 1999-09-23 Tom Tromey <tromey@cygnus.com>
256 * configure: Rebuilt.
257 * configure.in: Print message when checking to see if gcj can
258 handle -fuse-divide-subroutine.
260 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
262 * java/lang/FirstThread.java (run0): Renamed to `run'.
265 * prims.cc (main_init): New function.
266 (JvRunMain): Call it.
267 (_Jv_RunMain): Likewise.
269 (main_init): Ignore SIGPIPE. Fixes PR 51.
271 1999-09-22 Tom Tromey <tromey@cygnus.com>
273 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
275 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
277 * java/text/MessageFormat.java (MessageFormat(String)): Set the
279 * java/text/NumberFormat.java: Check that object is a Number. If
280 not, throw IllegialArgumentException.
282 1999-09-21 Tom Tromey <tromey@cygnus.com>
284 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
285 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
287 * include/posix-threads.h (_Jv_MutexDestroy): Use
289 (_Jv_MutexLock): Likewise.
290 (_Jv_MutexUnlock): Likewise.
292 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
293 previous patch; it too was incorrect.
294 * java/io/PrintStream.java (PrintStream): Likewise.
296 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
297 refer to `this' before calling superclass constructor.
298 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
299 before calling superclass constructor.
301 1999-09-20 Tom Tromey <tromey@cygnus.com>
303 * configure: Rebuilt.
304 * configure.in: Send output of `-fuse-divide-subroutine' test
305 compilation to /dev/null.
307 1999-09-14 Tom Tromey <tromey@cygnus.com>
309 * include/java-insns.h: Turned constants into an enum. Added
310 multiple-inclusion protection.
312 1999-09-10 Tom Tromey <tromey@cygnus.com>
314 * configure: Rebuilt.
315 * configure.in: Build include/Makefile.
316 * Makefile.in: Rebuilt.
317 * Makefile.am (SUBDIRS): Added gcj and include.
318 (install-data-local): New target.
319 (extra_headers): New macro.
320 * include/Makefile.in: New file.
321 * include/Makefile.am: New file.
323 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
324 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
326 * boehm.cc: Don't include java-threads.h or gcj/field.h.
327 * resolve.cc: Include config.h.
328 * defineclass.cc: Include config.h.
329 * include/java-interp.h: Don't include config.h.
330 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
333 * gcj/javaprims.h: Regenerated namespace decls.
334 * classes.pl (scan): Don't put `;' after closing brace.
336 * Makefile.in: Rebuilt.
337 * Makefile.am (INCLUDES): Added -I for top_srcdir.
338 * configure.in: Create gcj/Makefile.
339 * gcj/Makefile.in: New file.
340 * gcj/Makefile.am: New file.
341 * java/lang/Object.h: Don't include any other headers.
342 * gcj/array.h: Renamed from include/java-array.h.
343 * gcj/field.h: Renamed from include/java-field.h.
344 * gcj/method.h: Renamed from include/java-method.h.
345 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
346 Updated all files to reflect new include structure.
348 1999-09-09 Tom Tromey <tromey@cygnus.com>
350 * configure: Rebuilt.
351 * configure.in: Fixed typo; variable is THREADSPEC and not
354 1999-09-08 Tom Tromey <tromey@cygnus.com>
356 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
357 previous change and implemented a correct test in the __m_count
360 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
363 1999-09-07 Tom Tromey <tromey@cygnus.com>
365 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
366 code and don't set errno.
368 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
369 not `r'. Changed `done_sleeping' to a `bool'.
371 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
373 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
374 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
375 by another thread, rather than by the GC.
376 (_Jv_CondWait): Prevent premature thread wakeup by GC.
377 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
378 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
381 1999-09-03 Tom Tromey <tromey@cygnus.com>
383 * configure: Rebuilt.
384 * configure.in: Check for fstat function.
385 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
388 1999-09-02 Tom Tromey <tromey@cygnus.com>
390 * include/java-array.h (jobjectArrayjchar): Removed unused
393 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
394 _Jv_PrepareCompiledClass while holding class mutex.
396 1999-09-01 Tom Tromey <tromey@cygnus.com>
398 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
399 (_Jv_PthreadGetMutex): Use it.
400 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
401 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
402 (_Jv_MutexLock): Likewise.
403 (_Jv_MutexUnlock): Likewise.
404 * include/config.h.in: Rebuilt.
405 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
406 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
407 * configure: Rebuilt.
408 * libgcj.spec.in: Don't mention INTERPSPEC.
409 * configure.in (INTERPSPEC): Removed.
410 Only run pthreads-related checks when using POSIX threads. Check
411 for m_count and __m_count in mutex structure.
413 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
415 * java/lang/natClass.cc: Fixed notification of threads
416 when class initialization is complete.
418 1999-09-01 Tom Tromey <tromey@cygnus.com>
420 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
421 * resolve.cc: Removed constants defined by
422 java.lang.reflect.Modifier.
423 Include <java/lang/reflect/Modifier.h>.
424 (_Jv_ResolvePoolEntry): Use values from Modifier.
425 (_Jv_DetermineVTableIndex): Likewise.
426 (_Jv_PrepareClass): Likewise.
428 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
429 java.lang.reflect.Modifier.
430 Include <java/lang/reflect/Modifier.h>.
431 (checkExtends): Use values from Modifier.
432 (checkImplements): Likewise.
433 (handleField): Likewise.
434 (handleConstantValueAttribute): Likewise.
435 (handleFieldsEnd): Likewise.
436 (handleMethod ): Likewise.
437 (handleMethodsEnd): Likewise.
438 (handleClassBegin): Likewise.
439 * interpret.cc: Removed constants defined by
440 java.lang.reflect.Modifier.
441 (continue1): Use values from Modifier.
442 * java/lang/natClassLoader.cc: Removed constants defined by
443 java.lang.reflect.Modifier.
445 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
446 JV_STATE_NOTHING, not `0'.
447 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
449 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
450 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
452 (_Jv_PthreadGetMutex): New function.
453 (_Jv_PthreadCheckMonitor): Use it.
454 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
455 (_Jv_MutexLock): Update `count'.
456 (_Jv_MutexUnlock): Likewise.
457 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
460 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
462 * Makefile.am (.java.lo): Add rule.
464 * Makefile.in: Rebuilt.
466 1999-09-01 Tom Tromey <tromey@cygnus.com>
468 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
469 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
471 (_Jv_CondNotify): Use it.
472 (_Jv_CondNotifyAll): Likewise.
474 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
476 1999-08-31 Tom Tromey <tromey@cygnus.com>
478 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
481 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
483 * posix-threads.cc: Include <errno.h>.
485 1999-08-23 Tom Tromey <tromey@cygnus.com>
487 * boehm.cc: Undefine TRUE and FALSE.
489 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
491 1999-08-21 Tom Tromey <tromey@cygnus.com>
493 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
496 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
498 * configure.in: Check for in_addr_t in netinet/in.h too. Check
500 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
501 (HAVE_STRUCT_IP_MREQ): Added.
502 * configure, include/config.h.in: Rebuilt.
503 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
505 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
506 Disable if ip_mreq is not available.
508 * configure.in: Check types ssize_t and in_addr_t.
509 * acconfig.h: Undefine them.
510 * configure, include/config.h.in: Rebuilt.
512 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
513 function that detects the signature of getpwuid_r.
514 (init_properties): Use it.
515 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
518 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
520 * interpret.cc (continue1): Implement explicit dispatch table.
521 insn_target: Explicit interpreter switch table.
522 SAVE_PC: New macro, moves pc saving code into instructions that
524 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
525 PC_REGISTER_ASM: New macro.
526 INLINE_SWITCH: New macro. Constrols dispatching strategy.
527 opcode: Remove local variable.
528 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
529 (POKEI): Use _Jv_word.
530 (iinc): Use _Jv_word.
531 (dupx): Change reference argument (sp) to pointer.
534 * interpret.cc: Remove instruction timing instrumentation.
536 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
537 comment. Don't use _Jv_ClassNameSamePackage.
539 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
540 URLPathEntry, CacheEntry}: Removed.
542 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
544 (.java.lo): Rule removed.
546 * Makefile.in: Rebuilt.
548 1999-08-19 Tom Tromey <tromey@cygnus.com>
550 * java/lang/natThread.cc (class locker): New class.
551 (join): Use a locker around _Jv_CondWait.
554 1999-08-18 Tom Tromey <tromey@cygnus.com>
556 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
557 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
559 1999-08-18 Tom Tromey <tromey@cygnus.com>
561 * include/javaprims.h ("Java"): Regenerated namespace decls.
563 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
565 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
566 from _Jv_InternClassStrings.
568 * prims.cc (_Jv_RunMain): New function.
569 (JvRunMain): Remove gij-support.
571 * gij.cc (main): Use _Jv_RunMain.
573 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
575 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
576 argument in temp variable.
577 (continue1): For all op_x2y insns, use temp variable for
578 intermediate value. Also remove some comments.
580 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
581 (forName): Don't call _Jv_InitClass.
583 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
585 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
587 * java/util/jar/JarInputStream.java: New file.
589 * java/util/jar/JarEntry.java: New file.
591 * java/util/jar/JarFile.java: New file.
593 * java/net/URLClassLoader.java: New file.
595 * java/net/JarURLConnection.java: New file.
597 * gnu/gcj/protocol/jar/Handler.java: New file.
599 * gnu/gcj/protocol/jar/Connection.java: New file.
601 * java/security/SecureClassLoader.java: New file.
603 * java/lang/ClassLoader.java (parent): New variable.
604 (ClassLoader (ClassLoader)): new constructor.
605 (findClass): New method.
606 (loadClass): Add default 1.2 implementation.
607 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
608 (readfully): Removed.
610 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
611 (findSystemClass): New method.
612 (VMClassLoader): Constructor rewritten.
614 All other methods removed.
616 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
617 to gnu::gcj::runtime::VMClassLoader.
618 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
620 (VMClassLoader::findSystemClass): renamed from findBootClass.
622 * Makefile.am: Add new files.
623 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
625 * Makefile.in: Rebuilt.
627 1999-08-17 Tom Tromey <tromey@cygnus.com>
629 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
631 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
634 1999-08-16 Tom Tromey <tromey@cygnus.com>
636 * configure: Rebuilt.
637 * configure.in: Set DIVIDESPEC to empty string if compiler does
638 not support -fuse-divide-subroutine.
640 1999-08-14 Per Bothner <per@bothner.com>
642 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
643 * java/lang/natClass.cc (initializeClass): Likewise.
644 * java/lang/ClassLoader.java (resolveClass0): New static method.
645 (resolveClass): Call resolveClass0.
646 (findSystemClass): No longer static.
648 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
650 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
652 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
654 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
657 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
660 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
663 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
666 * configure: Rebuilt.
667 * configure.in: Properly align --help output, fix capitalization
669 * acinclude.m4: Likewise.
671 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
673 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
675 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
676 (_Jv_callInterpretedMethod): Unused. Remove.
677 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
679 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
680 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
681 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
682 * interpret.cc: use _Jv_word.
683 * defineclass.cc: use_Jv_word.
684 * resolve.cc: Use _Jv_word.
685 (_Jv_ResolvePoolEntry): Return _Jv_word.
686 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
687 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
689 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
692 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
694 * configure: Rebuilt.
695 * configure.in (sched_yield): Try librt first, then libposix4.
696 Add -lrt, -lposix4 to THREADSPEC.
698 1999-08-08 Anthony Green <green@cygnus.com>
700 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
702 1999-08-08 Anthony Green <green@cygnus.com>
704 * defineclass.cc (_Jv_VerifyClassName): Verify array names
707 1999-08-08 Anthony Green <green@cygnus.com>
711 * include/config.h.in: Rebuilt.
712 * acconfig.h: Add INTERPRETER.
714 * Makefile.in: Rebuilt.
715 * Makefile.am (libffi_files): Identify the libffi object files for
717 (LIBFFIINCS): Define.
719 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
720 Dummy definition for configurations without an interpreter.
722 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
723 java::lang::Boolean constructor.
725 * include/java-interp.h: Always include java-cpool.h.
727 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
728 when INTERPRETER not defined.
730 * java/lang/Class.h (finalize): Define.
732 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
733 IOException from File.getCanonicalPath.
734 (getStream): Likewise.
737 * THANKS: More thanks.
739 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
741 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
743 (_Jv_PrepareClass): Allow non-abstract classes to
744 have abstract subclasses.
745 (_Jv_ResolvePoolEntry): Revert subclass check for protected
747 * interpret.cc (continue1/perform_invoke): Don't sign extend
749 (continue1/lshl,lshr): Push long, not int.
750 (continue1/ulshr): Use UINT64, not long long.
751 * defineclass.cc (handleFieldsEnd): Handle case when all fields
753 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
754 * java/lang/FirstThread.java (run): Add top-level exception
756 (run0): Renamed from run.
758 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
760 * configure.in (--with-interpreter): Added.
761 * include/config.h.in (INTERPRETER): Added.
763 * java/lang/ClassLoader.java: File replaced.
764 * java/lang/VMClassLoader.java: New file.
765 * java/lang/natClassLoader.cc: New file.
766 * gnu/gcj/runtime/MethodInvocation.java: New file.
767 * gnu/gcj/util/path/SearchPath.java: New file.
768 * gnu/gcj/util/path/PathEntry.java: New file.
769 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
770 * gnu/gcj/util/path/ZipPathEntry.java: New file.
771 * gnu/gcj/util/path/URLPathEntry.java: New file.
772 * gnu/gcj/util/path/CacheEntry.java: New file.
773 * include/java-interp.h: New file.
774 * include/java-cpool.h: New file.
775 * include/java-insns.h: New file.
776 * defineclass.cc: New file.
777 * interpret.cc: New file.
778 * resolve.cc: New file.
780 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
781 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
782 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
784 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
785 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
787 (initializeClass): Use new JV_ prefixed names. Also, call
788 ClassLoader::resolveClass instead of _Jv_ResolveClass.
790 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
791 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
792 JV_STATE_LINKED): New.
793 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
794 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
795 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
796 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
797 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
798 _Jv_InterpMethodInvocation): New friends for interpreter.
800 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
801 include/java-cpool.h and renamed with JV_ prefix.
803 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
805 (_Jv_UnregisterClass): New decl.
807 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
808 class loader argument.
809 (_Jv_FindClass): Use class loader.
811 * prims.cc (_Jv_makeUtf8Const): New function.
812 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
813 (_Jv_NewPrimArray): Ditto.
814 (_Jv_FindClassFromSignature): Ditto.
815 * java/lang/reflect/natArray.cc (newInstance): Ditto.
816 * java/lang/reflect/natMethod.cc (getType): Ditto.
818 * include/java-field.h (_Jv_Field::isRef): Make robust for
819 non-resolved contexts.
821 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
822 Also, don't mark class->next field.
824 * java/lang/VirtualMachineError.java: Added FIXME note.
826 * configure.in (INTERPSPEC): New spec.
827 * libgcj.spec.in: Added INTERPSPEC.
828 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
829 gnu/gcj/runtime/MethodInvocation.
830 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
831 (ordinary_java_source_files): Added above mentioned java classes.
833 * configure: Rebuilt.
834 * Makefile.in: Rebuilt.
836 1999-08-06 Tom Tromey <tromey@cygnus.com>
838 * configure: Rebuilt.
839 * configure.in: Look for sched_yield in -lrt.
841 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
843 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
844 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
845 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
847 (toString): Print correctly when `country' is empty.
849 1999-08-04 Per Bothner <per@bothner.com>
851 * configure.in: Also do AC_SUBST for DIVIDESPEC.
853 1999-08-02 Tom Tromey <tromey@cygnus.com>
855 * aclocal.m4, configure: Rebuilt for new libtool.
857 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
859 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
860 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
861 * java/net/ServerSocket.java: Define ANY_IF.
862 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
863 all network interfaces.
864 * java/net/DatagramSocket.java (DatagramSocket): ditto.
865 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
867 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
869 * java/io/natFile.cc (performMkdir): Remove FIXME.
870 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
872 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
874 * configure.in: Check for bstring.h.
875 * configure, include/config.h.in: Rebuilt.
876 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
877 * java/net/natPlainSocketImpl.cc: Likewise.
879 1999-07-31 Tom Tromey <tromey@cygnus.com>
884 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
886 * configure.in: Check for struct hostent_data and need for
887 -D_REENTRANT for gethostbyname_r declaration.
888 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
889 (lookup): Use hostent_data for fixed_buffer.
890 * configure, include/config.h.in: Rebuilt.
892 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
894 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
895 available. Don't cast memmove args to (void*).
896 * configure.in: Do not abort if memmove is not available.
898 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
900 * java/lang/natString.cc (substring): optimize where substring is
902 * java/io/File.java (getName): don't return separator with file name.
903 * java/io/natFile.cc (attr): fix overflow.
905 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
907 * mauve-libgcj: Disable Object Serialization tests.
909 1999-07-20 Warren Levy <warrenl@cygnus.com>
911 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
912 Default to using PlainDatagramSocketImpl.
913 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
915 1999-07-19 Tom Tromey <tromey@cygnus.com>
917 * include/stamp-h.in: New file.
919 1999-07-12 Tom Tromey <tromey@cygnus.com>
921 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
924 1999-07-07 Andrew Haley <aph@cygnus.com>
926 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
927 bytes to make it point after the instruction where the trap
929 (HANDLE_DIVIDE_OVERFLOW): Ditto.
931 1999-07-07 Tom Tromey <tromey@cygnus.com>
933 * mauve-libgcj: Explicitly enable formerly disabled java.text
936 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
939 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
941 * java/net/URL.java (equals): Compare strings using String.equals.
942 * java/net/URL.java (sameFile): Ditto.
944 1999-07-02 Warren Levy <warrenl@cygnus.com>
946 * configure: Rebuilt.
947 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
948 * include/config.h.in: Rebuilt.
949 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
950 (mcastGrp): Updated FIXME comments.
951 (setOption): Fixed typo.
952 (getOption):Implemented IP_MULTICAST_IF.
954 1999-07-02 Warren Levy <warrenl@cygnus.com>
956 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
957 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
958 (getTimeToLive): Implemented.
959 (setOption): Implemented IP_MULTICAST_IF.
961 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
963 * java/lang/String.java (toString): Check for this == null and throw
964 NullPointerException.
966 1999-07-01 Warren Levy <warrenl@cygnus.com>
968 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
969 to count and revised comments to match.
970 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
971 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
972 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
973 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
974 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
975 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
977 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
979 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
980 properly as count rather than outlength.
981 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
982 output on overflow rather than buffer fill.
983 * java/io/BufferedReader.java (fill): Don't clear out the buffer
984 if markPos is 0 and there is still room in the buffer.
986 1999-07-01 Andrew Haley <aph@cygnus.com>
988 * include/i386-signal.h: Replace sigaction () with __sigaction ().
989 This is a workaround for a bug in glibc's pthreads package which
990 doesn't deliver any sigcontext information to a signal handler.
992 1999-06-24 Tom Tromey <tromey@cygnus.com>
994 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
995 * java/lang/fdlibm.h (HUGE): Conditionally define.
997 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
999 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1000 * java/lang/e_log.c: Don't use __uint32_t.
1002 1999-05-27 Eric Christopher <echristo@cygnus.com>
1004 * configure: Rebuilt
1005 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1006 * acconfig.h: Rebuilt
1007 * include/config.h.in: Rebuilt
1009 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1010 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1011 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1012 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1013 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1014 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1015 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1016 and namespace collision with __uint32_t
1018 1999-06-23 Tom Tromey <tromey@cygnus.com>
1020 * java/util/zip/InflaterInputStream.java (read): Throw
1021 ZipException if inflater throws a DataFormatException.
1023 1999-06-23 Warren Levy <warrenl@cygnus.com>
1025 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1026 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1027 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1028 is not final per JDK.
1029 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1031 * java/util/zip/DataFormatException.java: Class extends Exception.
1032 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1033 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1034 * java/util/zip/ZipInputStream.java: ditto.
1035 (closeEntry): Changed method name to match JDK spec.
1037 1999-06-21 Tom Tromey <tromey@cygnus.com>
1039 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1042 * Makefile.in: Rebuilt.
1043 * Makefile.am (toolexeclibdir): Define as libdir when
1045 * configure: Rebuilt.
1046 * configure.in (USE_LIBDIR): New conditional.
1048 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1050 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1051 hostname in returned InetAddress objects.
1052 (getLocalHostname): Fix typo.
1053 * java/net/InetAddress.java (getByName): Set hostname on return
1055 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1058 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1060 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1061 interfaces if host==NULL.
1062 (accept): Throw message with InterruptedIOException.
1063 (getOption): Cache localAddress.
1064 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1065 'address' for DatagramSocket.
1066 (setTimeToLive): Fix compiler warnings.
1067 (getOption): Cache localAddress.
1068 * java/net/Socket.java (getLocalAddress): Don't need local
1069 InetAddress object. Add FIXME comment about calling checkConnect().
1070 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1071 connection queue to 50 as per JDK 1.2 docs.
1072 (ServerSocket(int,int)): Listen on all network interfaces by
1073 default, per JDK 1.2 docs.
1074 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1075 Add localAddress caching.
1077 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1079 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1081 (write(byte[],int,int)): ditto.
1083 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1085 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1087 1999-06-11 Warren Levy <warrenl@cygnus.com>
1089 * mauve-libgcj: Activated java.net Mauve tests.
1091 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1093 * java/net/natInetAddress.cc (aton): Fix typos.
1094 (lookup): Use a bigger buffer size for gethostbyname_r on all
1095 versions of glibc. Updated FIXME comment explaining this.
1096 Modified while loops to not set herr = ERANGE to work around glibc
1097 problems. Use user specified hostname in InetAddress result when
1098 available (consistent with JDK).
1100 1999-06-10 Warren Levy <warrenl@cygnus.com>
1102 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1103 Throw FileNotFoundException instead of IOException.
1105 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1107 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1108 in static field name.
1109 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1110 throughout rather than ParseException.
1112 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1114 * java/lang/Runtime.java (exec): Convert prog name and arguments
1116 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1117 environment array conversion. Preserve current environment if envp
1118 not passed. Preserve PATH unless explicitly specified.
1119 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1120 followed by EOF. Set a flag when a line is terminated by '\r' and
1121 ignore following '\n' if set.
1123 1999-06-02 Warren Levy <warrenl@cygnus.com>
1125 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1126 Ignore context if spec is an absolute URL. Fix braindead
1128 (hashCode): Use JDK 1.2 style algorithm.
1129 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1130 context URL properly.
1132 1999-05-30 Anthony Green <green@cygnus.com>
1134 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1135 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1137 1999-05-28 Warren Levy <warrenl@cygnus.com>
1139 * java/net/DatagramSocket.java (laddr): Removed.
1140 (DatagramSocket): Removed attempts to get or set laddr if null.
1141 (getLocalAddress): Reimplemented per spec.
1142 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1144 (joinGroup): Throw NullPointerException if any argument is null.
1145 (leaveGroup): ditto.
1146 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1147 * java/net/PlainSocketImpl.java (timeout): Added.
1148 (getInputStream): Added FIXME comment on how to support timeouts
1150 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1151 * java/net/Socket.java: Added FIXME comments to identify
1152 conflicting specs between the JCL and JDK 1.2 documents.
1153 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1154 if host is null. Get localport value resolved by kernel if bind
1156 (receive): Implemented support for timeouts in UDP.
1157 (setOption): Implemented based on natPlainSocketImpl version.
1159 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1160 resolved by kernel if bind lport is 0.
1161 (connect): Get localport value resolved by kernel if bind wasn't
1162 done to set localport.
1163 (accept): Implemented support for timeouts for ServerSocket.
1164 (setOption): Save value for SO_TIMEOUT.
1165 (getOption): Return timeout for SO_TIMEOUT.
1167 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1169 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1170 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1171 (setOption): Made abstract.
1172 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1173 to avoid cpp conflicts in native code.
1174 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1175 cpp conflicts in native code.
1176 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1177 * java/net/Socket.java (getLocalAddress): Implemented.
1178 (setTcpNoDelay): Implemented.
1179 (getTcpNoDelay): Implemented.
1180 (setSoLinger): Implemented.
1181 (getSoLinger): Implemented.
1182 (getSoTimeout): Verify class type.
1183 (setSendBufferSize): Implemented.
1184 (getSendBufferSize): Implemented.
1185 (setReceiveBufferSize): Implemented.
1186 (getReceiveBufferSize): Implemented.
1187 (toString): Prepended "Socket".
1188 * java/net/SocketImpl.java (toString): Rewritten.
1189 (getOption): Made abstract.
1190 (setOption): Made abstract.
1191 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1192 (setOption): Implemented.
1193 (getOption): Implemented.
1195 1999-05-26 Warren Levy <warrenl@cygnus.com>
1197 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1198 address when null. Set SO_REUSEADDR for multicasts.
1199 (getSoTimeout): Implemented.
1200 (setSoTimeout): Implemented.
1201 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1202 * java/net/MulticastSocket.java (getInterface): Implemented.
1203 (setInterface): Implemented.
1204 (setTimeToLive): Check for invalid ttl.
1205 (joinGroup): Verify multicast address and security.
1206 (leaveGroup): Verify multicast address and security.
1207 (send): Implemented.
1208 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1214 (getTTL): Implemented as non-native.
1218 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1219 (getSoTimeout): Implemented.
1220 (setSocketFactory): Made synchronized.
1221 * java/net/Socket.java (setSoTimeout): Implemented.
1222 (getSoTimeout): Implemented.
1223 (close): Made synchronized.
1224 (setSocketImplFactory): Made synchronized.
1225 * java/net/SocketImpl.java: Implement SocketOptions interface.
1226 * java/net/natInetAddress.cc: Corrected module name at top of file.
1227 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1228 (bind): Added FIXME.
1229 (peek): Implemented.
1235 (setOption): Implemented for SO_REUSEADDR.
1236 (getOption): Implemented for SO_REUSEADDR.
1238 1999-05-24 Tom Tromey <tromey@cygnus.com>
1240 * java/util/ResourceBundle.java (getBundle): Throw
1241 NullPointerException if baseName is null.
1243 1999-05-22 Tom Tromey <tromey@cygnus.com>
1245 * java/util/zip/ZipInputStream.java (fill): New method.
1246 (compressed_len): New instance variable.
1247 (getNextStream): Set it.
1248 (read): Reset inflater on EOF. Only read via `super' if entry is
1250 (skip): Only skip via `super' if entry is deflated.
1251 * java/util/zip/Deflater.java (last_input_count): Removed.
1252 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1254 (needsInput): Don't use last_input_count.
1255 (setInput): Don't set last_input_count.
1256 * java/util/zip/natInflater.cc (getRemaining): Return correct
1258 (inflate): Return 0 if input array is length 0.
1259 (setInput): Don't set last_input_count.
1260 * java/util/zip/Inflater.java (last_input_count): Removed.
1262 1999-05-21 Tom Tromey <tromey@cygnus.com>
1264 * Makefile.in: Rebuilt.
1265 * Makefile.am (INCLUDES): Added $(ZINCS).
1266 * configure: Rebuilt.
1267 * configure.in (ZINCS): New subst.
1269 1999-05-21 Andrew Haley <aph@cygnus.com>
1271 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1272 to signal options to allow the same exceptions to be rethrown
1275 1999-05-20 Andrew Haley <aph@cygnus.com>
1277 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1279 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1280 (INIT_FPE): Exception string made more informative.
1281 * include/sparc-signal.h (INIT_FPE): Exception string made more
1283 * testsuite/libjava.lang/Divide_1.java: New file.
1284 * testsuite/libjava.lang/Divide_1.out: New file.
1286 1999-05-19 Tom Tromey <tromey@cygnus.com>
1288 * aclocal.m4, configure: Rebuilt.
1289 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1291 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1294 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1296 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1298 (update): Fail in default case. Always initialize `strat'.
1300 * mauve-libgcj: Enable java.util.zip.
1302 1999-05-18 Warren Levy <warrenl@cygnus.com>
1304 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1305 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1306 PlainDatagramSocketImpl.java, and SocketOptions.java.
1307 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1308 * Makefile.in: Rebuilt.
1310 * java/net/DatagramPacket.java: New file.
1311 * java/net/DatagramSocket.java: New file.
1312 * java/net/DatagramSocketImpl.java: New file.
1313 * java/net/MulticastSocket.java: New file.
1314 * java/net/PlainDatagramSocketImpl.java: New file.
1315 * java/net/SocketOptions.java: New file.
1316 * java/net/natPlainDatagramSocketImpl.cc: New file.
1318 1999-05-18 Tom Tromey <tromey@cygnus.com>
1320 * java/util/zip/ZipOutputStream.java (level): Initial value is
1321 Deflater.DEFAULT_COMPRESSION.
1322 (close): New method.
1323 (closeEntry): Likewise.
1325 (put_version): Likewise.
1326 (write_entry): Likewise.
1327 (put2, put4): Now return `int'.
1328 (comment): Default to empty string.
1329 (bytes_written): New instance variable.
1331 * java/util/zip/ZipEntry.java (setComment): Limit length of
1333 (setCrc): Check CRC validity.
1334 (setExtra): Check argument validity.
1335 (setMethod): Likewise.
1336 (setSize): Likewise.
1337 (ZipEntry): Likewise.
1338 * include/javaprims.h: Updated namespace declarations.
1339 * Makefile.in: Rebuilt.
1340 * Makefile.am (ordinary_java_source_files): Mention new files.
1341 (nat_source_files): Likewise.
1342 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1345 (getInputStream): Handle compressed entries.
1346 * java/util/zip/GZIPOutputStream.java: New file.
1347 * java/util/zip/GZIPInputStream.java: New file.
1348 * java/util/zip/DataFormatException.java: New file.
1349 * java/util/zip/CheckedInputStream.java: New file.
1350 * java/util/zip/CheckedOutputStream.java: New file.
1351 * java/util/zip/InflaterInputStream.java: Implemented.
1352 * java/util/zip/natInflater.cc: New file.
1353 * java/util/zip/Deflater.java: Implemented.
1354 * java/util/zip/natDeflater.cc: New file.
1355 * java/util/zip/DeflaterOutputStream.java: Implemented.
1357 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1358 ZipException, not IOException.
1359 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1362 1999-05-17 Tom Tromey <tromey@cygnus.com>
1364 * java/lang/natSystem.cc (init_properties): URL now points to
1367 1999-05-12 Per Bothner <bothner@cygnus.com>
1369 * java/util/Calendar.java (set): First call computeFields if needed.
1370 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1372 1999-05-12 Tom Tromey <tromey@cygnus.com>
1374 * configure: Rebuilt.
1375 * configure.in: Look for -ldl when using the Boehm collector.
1376 Look for sched_yield in -lposix4.
1378 1999-05-12 Per Bothner <bothner@cygnus.com>
1380 * java/io/File.java (mkdirs): Handle a null parent directory.
1382 1999-05-12 Tom Tromey <tromey@cygnus.com>
1384 * include/javaprims.h: Updated namespace declarations.
1385 * classes.pl (scan): Uniquify class list.
1386 * Makefile.in, configure: Rebuilt.
1387 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1388 (built_java_source_files): New macro.
1389 (nat_headers): Added built_java_source_files.
1390 (javao_files): Likewise.
1391 (EXTRA_libgcj_la_SOURCES): Likewise.
1392 (libgcj.zip): Create built class files.
1393 ($(built_java_source_files:.java=.class)): New target.
1394 (jv_convert_LDADD): Added -L$(here)/.libs.
1395 * configure.in: Create links for ConcreteProcess.java and
1396 natConcreteProcess.cc.
1397 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1398 * java/lang/natEcosProcess.cc: New file.
1399 * java/lang/EcosProcess.java: New file.
1400 * java/lang/PosixProcess.java: New file.
1401 * java/lang/natPosixProcess.cc: New file.
1403 1999-05-12 Warren Levy <warrenl@cygnus.com>
1405 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1406 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1407 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1408 (connect): Throw ConnectException.
1410 1999-05-11 Tom Tromey <tromey@cygnus.com>
1412 * Makefile.in: Rebuilt.
1413 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1414 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1417 * Makefile.in: Rebuilt.
1418 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1419 and it causes problems with libtool.
1421 * Makefile.in, configure: Rebuilt.
1422 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1423 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1424 (jv_convert_DEPENDENCIES): Added ZDEPS.
1425 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1427 (THREADSPEC): Added `-L' to point to qthreads build directory.
1431 * configure, Makefile.in: Rebuilt.
1432 * Makefile.am (toolexeclib_DATA): New macro.
1433 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1434 Recognize --with-system-zlib.
1435 (GCSPEC): New subst.
1436 (THREADSPEC): New subst.
1437 (SYSTEMSPEC): New subst.
1438 (ZLIBSPEC): New subst.
1439 * libgcj.spec.in: New file.
1441 1999-05-10 Tom Tromey <tromey@cygnus.com>
1443 * java/io/InputStreamReader.java (read): If length is 0, return
1444 0. Reset `wpos' and `wcount' when buffer has been filled and
1447 * java/util/Properties.java (save): Removed `FIXME' comment.
1448 (load): Invalid characters in \u now treated as terminators.
1449 Make sure to append character resulting from `\' handling.
1450 Cast to `char' when appending to key or value.
1451 (skip_ws): Inverted test for whitespace.
1453 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1455 (readLine): Likewise.
1456 (readFully): Implemented.
1458 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1460 * java/awt/natToolkit.cc: Added copyright header.
1461 * java/util/zip/InflaterInputStream.java: Added copyright header.
1463 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1465 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1467 (getNextStream): Likewise.
1469 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1471 (getBundle): Don't explicitly throw null pointer exception.
1473 * gnu/gcj/RawData.java: Added copyright header.
1475 * include/jni.h (_Jv_va_list): Always define as va_list.
1477 1999-05-9 Anthony Green <green@cygnus.com>
1479 * java/text/DateFormat.java (computeInstance): Separate time
1481 (getDateTimeInstance): Ditto.
1482 (getDateTimeInstance(int,int)): New method.
1484 * Makefile.in: Rebuilt.
1485 * Makefile.am (ordinary_java_source_files): Add new classes.
1487 * java/util/PropertyResourceBundle.java: New file.
1488 * gnu/gcj/util/EnumerationChain.java: New file.
1490 1999-05-07 Tom Tromey <tromey@cygnus.com>
1492 * acconfig.h (GCJVERSION): New undef.
1493 * java/lang/natSystem.cc (init_properties): Define java.version,
1494 java.class.version, os.name, os.arch, os.version.
1495 Include <sys/utsname.h> if required.
1496 * configure: Rebuilt.
1497 * configure.in: Compute and define GCJVERSION.
1499 * java/lang/natSystem.cc (default_file_encoding): Now static.
1501 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1503 * libtool-version: New file.
1504 * Makefile.in: Rebuilt.
1505 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1508 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1509 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1512 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1513 (we pick those up already).
1515 1999-05-05 Per Bothner <bothner@cygnus.com>
1517 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1518 stub classes. (This is enough to get Kawa to compile against libgcj.)
1520 * gnu/gcj/RawData.java: New class.
1521 * doc/cni.sgml: Document RawData.
1523 * java/util/zip/InflaterInputStream.java: New stub class.
1524 * java/util/zip/ZipInputStream.java: New class. Partly works.
1525 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1526 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1527 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1528 * java/util/zip/ZipOutputStream.java: Start implementation.
1530 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1531 (default_file_encoding): New global, initial value is above macro.
1532 (init_properties): Default file.encoding to default_file_encoding.
1534 * Makefile.am: Add new classes.
1536 1999-05-05 Tom Tromey <tromey@cygnus.com>
1538 * Makefile.in: Rebuilt.
1539 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1540 (clean-local): New target
1542 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1543 (load, loadLibrary): Now native.
1545 * java/lang/Runtime.java (load, loadLibrary): Now native.
1546 (init): New native method.
1547 (Runtime): Use init.
1548 * prims.cc: Include <ltdl.h> if required.
1549 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1551 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1553 * configure.in: Switch from irix threads to posix threads
1554 * configure: Regenerate.
1556 1999-04-30 Tom Tromey <tromey@cygnus.com>
1558 * Makefile.in: Rebuilt.
1559 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1561 1999-04-29 Tom Tromey <tromey@cygnus.com>
1563 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1566 * java/util/Locale.java (Locale(String,String)): Implement in
1567 terms of 3-argument version; variant now defaults to empty
1569 (toString): Assume variant is not null.
1570 (equals): Assume all strings are not null.
1571 (Locale): Throw NullPointerException if any argument is null.
1573 * java/util/ResourceBundle.java (getBundle): Don't try the base
1574 name; now implicit in partialGetBundle call.
1575 (trySomeGetBundle): Search for parent bundles and call setParent
1577 (partialGetBundle): Added `langStop' argument. Use
1578 `Locale.toString' to compute bundleName.
1579 (resource_cache): New static field.
1580 (partialGetBundle): Cache the returned resource bundle. Now
1583 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1586 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1587 * java/text/natCollator.cc (decomposeCharacter): `base' now
1589 * Makefile.in: Rebuilt.
1590 * Makefile.am (ordinary_java_source_files): Added
1591 CollationElementIterator, CollationKey, Collator,
1593 (nat_source_files): Added natCollator.cc.
1594 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1595 (compare): Pass `this' to CollationElementIterator constructor.
1596 (getCollationElementIterator): Likewise.
1597 (ceiNext): Fix off-by-one error when finding initial substring.
1598 (next): Correctly mask off bits when computing return value.
1599 Fixed return values when one string is shorter than the other.
1600 * java/text/CollationElementIterator.java (collator): New field.
1601 (CollationElementIterator): Added collator argument.
1602 (next): Call ceiNext on collator object.
1604 1999-04-26 Tom Tromey <tromey@cygnus.com>
1606 * natCollator.cc: New file.
1608 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1609 (GregorianCalendar): Use it in all constructors.
1610 * java/util/Calendar.java (Calendar): Changed argument name to
1611 `zone' to match code.
1613 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1614 * java/text/CollationKey.java: New file.
1615 * java/text/CollationElementIterator.java: New file.
1616 * java/text/Collator.java: New file.
1617 * java/text/RuleBasedCollator.java: New file.
1619 * Makefile.in: Rebuilt.
1620 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1621 (jv_convert_LDADD): Explicltly add -lm -lc.
1623 1999-04-26 Tom Tromey <tromey@cygnus.com>
1625 * configure, Makefile.in: Rebuilt.
1626 * configure.in: Added AM_PROG_LIBTOOL.
1627 (GCOBJS): Use `.lo' form of files.
1628 (THREADOBJS): Likewise.
1629 (GCDEPS): Use `.la' form of library.
1630 (GCLIBS): Set to be the same as GCDEPS.
1631 (THREADDEPS): Use `.la' form of library.
1632 (THREADLIBS): Set to be the same as THREADDEPS.
1633 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1634 toolexeclib_LIBRARIES.
1635 (libgcj_la_SOURCES): Renamed for libtoolization.
1636 (EXTRA_libgcj_la_SOURCES): Likewise.
1637 (libgcj_la_DEPENDENCIES): Likewise.
1638 (libgcj_la_LIBADD): Likewise.
1639 ($(nat_files)): Use LTCXXCOMPILE.
1640 ($(c_files)): Use LTCOMPILE.
1641 (GCJCOMPILE): New macro.
1643 (.java.o): Likewise.
1644 ($(javao_files)): Likewise.
1645 (jv_convert_LINK): Use LIBTOOL.
1646 (nat_files): Use `.lo' files.
1647 (c_files): Likewise.
1648 (javao_files): Likewise.
1649 (.class.lo): Renamed.
1650 (.java.lo): Likewise.
1651 ($(nat_files)): Depend on %.lo.
1652 ($(c_files)): Likewise.
1653 ($(javao_files)): Likewise.
1654 (jv_convert_LDADD): Link against .lo files.
1655 (jv_convert_DEPENDENCIES): Depend on .lo files.
1656 (maintainer-check): Depend on libgcj.la, but examine .a file.
1657 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1658 (libgcj_la_LDFLAGS): New macro.
1660 1999-04-23 Warren Levy <warrenl@cygnus.com>
1662 * Makefile.am: Added URLDecoder and URLEncoder.
1663 * Makefile.in: Rebuilt.
1665 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1666 setSocketImplFactory to match spec.
1667 * java/net/Socket.java (getSoLinger): Changed return type to
1670 * java/net/URLDecoder.java: New file.
1671 * java/net/URLEncoder.java: New file.
1673 1999-04-21 Tom Tromey <tromey@cygnus.com>
1675 * java/lang/natString.cc (getBytes): Reverted earlier change and
1676 applied correct fix from Per Bothner.
1678 * java/lang/String.java: Don't throw
1679 UnsupportedEncodingException.
1681 * java/lang/natString.cc (getBytes): Correctly size result
1682 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1684 1999-04-20 Andrew Haley <aph@cygnus.com>
1686 * include/sparc-signal.h: new file.
1687 * configure.in: include/sparc-signal.h added.
1688 * configure: regenerated.
1689 * prims.cc (JvRunMain): signal handling code rewritten to be more
1691 (catch_segv): ditto.
1693 * include/i386-signal.h: reorganized.
1694 * include/default-signal.h: reorganized.
1696 1999-04-19 Tom Tromey <tromey@cygnus.com>
1698 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1699 once. From Anthony Green.
1701 1999-04-19 Andrew Haley <aph@cygnus.com>
1703 * Makefile.in: Processed with new automake.
1705 1999-04-19 Tom Tromey <tromey@cygnus.com>
1707 * include/javaprims.h: Removed security namespace.
1709 1999-04-20 Anthony Green <green@cygnus.com>
1711 * java/io/PrintStream.java (println): Remove extra println.
1713 1999-04-19 Anthony Green <green@cygnus.com>
1715 * Makefile.in: Rebuilt.
1716 * Makefile.am (ordinary_java_source_files): Add new security files.
1718 * java/security/NoSuchAlgorithmException.java,
1719 java/security/MessageDigest.java: New files.
1721 * include/javaprims.h: Add security namespace.
1723 1999-04-16 Per Bothner <bothner@cygnus.com>
1725 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1726 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1727 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1728 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1729 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1730 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1731 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1732 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1733 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1734 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1735 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1736 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1737 * Makefile.am: Various changes for new files and conversions.
1739 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1740 New overloading, allows greater efficiency.
1741 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1742 New overloading (for efficiency - avoids copying).
1744 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1745 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1747 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1748 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1749 (writeChars): Don't be quite so eager to flush.
1750 * java/io/PrintStream.java: Rewrite. Now more similar to
1751 OutputStreamWriter, using explicit UnicodeToBytes converter.
1752 Also, autoflush does not need to flush so often.
1753 * java/lang/natString.cc (getBytes): More efficient algorithm.
1754 (init(jbyteArray,jint,jint,jstring)): More efficient.
1756 1999-04-15 Warren Levy <warrenl@cygnus.com>
1758 * Makefile.am (ordinary_java_source_files): Added new Connection
1759 and Handler classes in gnu.gcj.protocol.file package.
1760 * Makefile.in: Rebuilt.
1762 * gnu/gcj/protocol/file/Connection.java: New file.
1763 * gnu/gcj/protocol/file/Handler.java: New file.
1764 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1765 if doInput allows input.
1766 (getOutputStream): Check if doOutput allows output.
1767 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1769 1999-04-14 Tom Tromey <tromey@cygnus.com>
1771 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1772 buffer larger to work around bug.
1773 From Bryce McKinlay <bryce@albatross.co.nz>.
1775 1999-04-14 Andrew Haley <aph@cygnus.com>
1777 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1778 NaNs are always converted to the same long value.
1779 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1782 1999-04-13 Tom Tromey <tromey@cygnus.com>
1784 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1785 instead switch on actual element type.
1787 * Makefile.in: Rebuilt.
1788 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1790 1999-04-13 Andrew Haley <aph@cygnus.com>
1792 * include/i386-signal.h, include/default-signal.h: New files.
1793 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1795 (catch_fpe): New function.
1796 * configure.in: Make link to appropriate include/java-signal.h.
1797 * configure: Rebuilt.
1798 * Makefile.am: include/java-signal.h added to dependency list.
1799 * Makefile.in: Rebuilt.
1801 1999-04-12 Urban Widmark <urban@svenskatest.se>
1803 * java/io/DataInputStream.java (readLine): Corrected handling of
1804 empty lines, from null to "".
1806 1999-04-12 Tom Tromey <tromey@cygnus.com>
1808 * Makefile.in: Rebuilt.
1809 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1811 * java/lang/natSystem.cc (SystemClass): New define.
1812 (init_properties): Synchronize.
1814 1999-04-08 Geoff Berry <gcb@gnu.org>
1816 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1817 * natPlainSocketImpl.cc (accept): Add missing else if check
1820 1999-04-08 Tom Tromey <tromey@cygnus.com>
1822 * java/lang/Long.java (parseLong): Corrected overflow detection
1824 * java/lang/Integer.java (parseInt): Corrected overflow detection
1827 * java/io/PrintStream.java (print): Handle null string argument.
1828 (println): Likewise.
1830 1999-04-07 Warren Levy <warrenl@cygnus.com>
1832 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1833 Set count to 0 when InputStreamReader returns -1 for EOF.
1835 1999-04-07 Tom Tromey <tromey@cygnus.com>
1837 * mauve-libgcj: Omit java.text.Collator,
1838 java.text.RuleBasedCollator.
1840 1999-04-06 Tom Tromey <tromey@cygnus.com>
1842 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1843 IOException from getHttpHeaders().
1844 (getHeaderFieldKey): Likewise.
1846 * include/javaprims.h: Regenerated declarations.
1848 * Makefile.in: Rebuilt.
1849 * Makefile.am (ordinary_java_source_files): Updated for removed
1852 1999-04-06 Per Bothner <bothner@cygnus.com>
1854 * java/util/zip/Adler32.java: New class.
1855 * java/util/zip/CRC32.java: Add working method bodies.
1856 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
1857 * Makefile.in: Re-generate.
1859 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
1861 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
1862 from version in removed www hierarchy.
1863 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
1864 version in removed www hierarchy.
1866 * gnu/gcj/www/protocol/http/Connection.java: Removed.
1867 * gnu/gcj/www/protocol/http/Handler.java: Removed.
1868 * gnu/gcj/www/protocol/http: Removed dir.
1869 * gnu/gcj/www/protocol: Removed dir.
1870 * gnu/gcj/www: Removed dir.
1872 * java/net/HttpURLConnection.java: Revised comments to indicate
1873 missing JDK 1.2 methods.
1875 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
1876 hierarchy rather than the gnu/gcj/www/protocol one.
1877 * java/net/URLConnection.java: Updated status comments.
1878 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
1879 the gnu/gcj/www/content one.
1881 1999-04-06 Per Bothner <bothner@cygnus.com>
1883 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
1884 The gen-from-JIS program is in $(CONVERT_DIR).
1886 1999-04-06 Tom Tromey <tromey@cygnus.com>
1888 * mauve-libgcj: Renamed from mauve-libjava.
1890 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
1892 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
1893 (getResponseMessage): Implemented.
1894 (getResponseVals): New private method.
1896 * java/net/URLConnection.java (getContent): Implemented.
1897 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
1899 1999-04-05 Tom Tromey <tromey@cygnus.com>
1901 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
1902 (jv_convert_SOURCES): Renamed.
1903 (EXTRA_jv_convert_SOURCES): Likewise.
1904 (jv_convert_LDFLAGS): Likewise.
1905 (jv_convert_LINK): Likewise.
1906 (jv_convert_LDADD): Likewise.
1907 (jv_convert_DEPENDENCIES): Likewise.
1909 * Makefile.in: Rebuilt.
1910 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
1913 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
1915 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
1916 method for comparison.
1918 * java/net/URLConnection.java (getContentLength): Implemented.
1919 (getContentType): Implemented.
1920 (getContentEncoding): Implemented.
1921 (getExpiration): Implemented.
1922 (getDate): Implemented.
1923 (getLastModified): Implemented.
1924 (getHeaderFieldInt): Implemented.
1925 (getHeaderFieldDate): Implemented.
1927 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
1929 * java/net/URLConnection.java (toString): Implemented.
1930 (setContentHandlerFactory): Implemented.
1931 (setContentHandler): Wrote new private helper method.
1933 1999-04-01 Tom Tromey <tromey@cygnus.com>
1935 * Makefile.in: Rebuilt.
1936 * Makefile.am ($(java_source_files:.java=.class): Reverted change
1937 of 1999-03-31; we always want to build all the .class files.
1938 Depend on java_source_files, not libgcj.zip.
1939 (nat_headers): Define in terms of ordinary_java_source_files.
1941 1999-03-31 Tom Tromey <tromey@cygnus.com>
1943 * Makefile.in: Rebuilt.
1944 * Makefile.am (special_java_source_files): New macro.
1945 (java_source_files): Use it.
1946 (ordinary_java_source_files): New macro.
1947 (java_source_files): Use it.
1948 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
1949 creating headers for those files with hand-maintained headers.
1951 * include/javaprims.h: Regenerated namespace declarations.
1952 * classes.pl (scan): Include [0-9] in regexp for matching class
1953 names; for java.util.zip.CRC32.
1955 * Makefile.in: Rebuilt.
1956 * Makefile.am (nat_headers): Redefined to generate all possible
1959 * java/util/zip/ZipException.java: In package java.util.zip, not
1962 1999-03-30 Tom Tromey <tromey@cygnus.com>
1964 * configure: Rebuilt.
1965 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
1966 eh-common.h when not building in tree with gcc.
1968 * Makefile.in: Rebuilt.
1969 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
1970 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
1972 ($(java_source_files:.java=.class)): New target.
1974 * Makefile.in: Rebuilt.
1975 * Makefile.am (java_source_files): Added
1976 java/net/HttpURLConnection.java and
1977 gnu/gcj/www/protocol/http/Connection.java.
1979 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
1981 * gnu/gcj/www/protocol/http/Connection.java: New file.
1982 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
1983 * java/net/HttpURLConnection.java: New file.
1984 * java/net/URLConnection.java (getHeaderField): Implemented default.
1985 (getHeaderFieldKey): Implemented default method.
1987 1999-03-30 Tom Tromey <tromey@cygnus.com>
1989 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
1991 * java/util/zip/Deflater.java: Added copyright header.
1992 * java/util/zip/CRC32.java: Added copyright header.
1994 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
1995 that it is automatically generated.
1996 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
1998 * gnu/gcj/convert/BytesToUnicode.java,
1999 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2000 gnu/gcj/convert/Input_EUCJIS.java,
2001 gnu/gcj/convert/Input_UTF8.java,
2002 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2003 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2004 gnu/gcj/convert/Output_8859_1.java,
2005 gnu/gcj/convert/Output_JavaSrc.java,
2006 gnu/gcj/convert/Output_UTF8.java,
2007 gnu/gcj/convert/UnicodeToBytes.java,
2008 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2010 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2012 * Makefile.in, configure: Rebuilt.
2013 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2014 not if test subdir exists.
2015 (--enable-gcj-classes): Removed; gcj always used to generate
2017 (JAVA, JAVAC): Removed.
2018 (--enable-single-compilation, --enable-source-compilation):
2021 (NATIVE): New conditional.
2022 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2023 `install-exec' to work.
2024 (toolexeclibdir): Likewise.
2025 (toollib_LIBRARIES): Likewise.
2026 (AM_MAKEFLAGS): Don't pass tooldir.
2028 (javao_files): Redefined.
2029 (java_source_files): New macro.
2030 (c_source_files): New macro.
2031 (c_files): Redefined in terms of c_source_files.
2032 (java_io_files, java_lang_files, java_net_files, java_text_files,
2033 java_util_files, gnu_files, java_files): Removed.
2034 (class_io_files, class_lang_files, class_net_files,
2035 class_text_files, class_util_files, class_gnu_files, class_files):
2037 (nat_source_files): New macro.
2038 (nat_files): Redefined in terms of nat_source_files.
2039 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2040 java_source_files. Removed no-such-file.c.
2042 (ETAGS_ARGS): Removed.
2043 (TAGS_DEPENDENCIES): Likewise.
2044 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2046 (src_io_files, src_lang_files, src_text_files, src_util_files,
2047 src_gnu_files): Removed.
2048 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2049 (BUILT_SOURCES): Removed.
2050 (header-check): New target.
2052 (noinst_PROGRAMS): New macro.
2053 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2055 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2056 (gen-from-JIS): Build in top directory.
2057 (convert_source_files): New macro.
2058 (convert_SOURCES): New macro.
2059 (convert_LDFLAGS): Likewise.
2060 (convert_LINK): Likewise.
2061 (convert_LDADD): Likewise.
2062 (convert_DEPENDENCIES): Likewise.
2064 (gen-from-JIS): Removed.
2065 (gen_from_JIS_SOURCES): New macro.
2066 (gen_from_JIS_LDADD): Likewise.
2067 (gen_from_JIS_DEPENDENCIES): Likewise.
2069 * configure: Rebuilt.
2070 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2071 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2072 when defining conditional.
2074 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2076 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2077 The Unicode Consortium does not permit their re-distribution.
2078 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2079 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2081 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2083 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2085 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2087 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2088 from Unicode Consortium.
2089 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2090 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2091 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2092 New tables, generated using gen-from-JIS.
2093 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2094 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2095 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2096 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2098 * gnu/gcj/convert/Convert.java: New application.
2099 * Makefile.am, Makefile.in (convert): New program, using Convert.
2100 Build the various JIS conversion tables (in maintainer mode).
2102 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2104 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2106 * java/net/URL.java (URL): Deal with null property value. Use "."
2107 as separator in building class name.
2108 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2109 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2110 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2111 beginning of the substring rather than 'start'.
2113 1999-03-26 Tom Tromey <tromey@cygnus.com>
2115 * include/java-chartables.h: Rebuilt.
2116 * include/java-chardecomp.h: New file.
2117 * chartables.pl: Generate output files directly. Added support
2118 for generating decomposition header.
2119 (canonical_decomposition, full_decomposition): New globals.
2120 (DECOMPOSITION): New constant.
2121 (process_char): Call add_decomposition.
2122 (add_decomposition): New sub.
2123 (write_decompositions): New sub.
2125 1999-03-25 Tom Tromey <tromey@cygnus.com>
2127 * java/text/CollationElementIterator.java: New file.
2129 * mauve-libjava: Omit StringTest.
2131 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2133 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2134 without a '/' when parsing protocol. Handle ref outside of parseURL.
2135 (hashCode): Implemented.
2136 (set): Don't expand -1 to default port.
2137 (getDefaultPort): Removed.
2139 * java/net/URLStreamHandler.java (parseURL): Implemented.
2140 (toExternalForm): Implemented.
2142 1999-03-23 Tom Tromey <tromey@cygnus.com>
2144 * java/text/BreakIterator.java (getSentenceInstance):
2146 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2148 * Makefile.in: Rebuilt.
2149 * Makefile.am (nat_headers): Added IllegalAccessException.
2150 * java/lang/natClass.cc (newInstance): Throw
2151 IllegalAccessException, not IllegalAccessError.
2152 Include IllegalAccessException.h.
2154 1999-03-22 Tom Tromey <tromey@cygnus.com>
2156 * gnu/gcj/text/LineBreakIterator.java: New file.
2157 * java/text/BreakIterator.java (getLineInstance): Implemented.
2159 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2160 copy constructor private.
2161 (previous, next): Removed erroneous comment about line
2163 (previous): Correctly recognize break between non-letter on the
2164 left and letter on the right. Handle apostrophes correctly.
2166 * java/text/BreakIterator.java (getWordInstance): Implemented.
2167 * gnu/gcj/text/WordBreakIterator.java: New file.
2168 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2170 * gnu/gcj/text/BaseBreakIterator.java: New file.
2172 1999-03-19 Tom Tromey <tromey@cygnus.com>
2174 * java/text/BreakIterator.java: New file (partially stubbed out).
2175 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2177 * include/config.h.in: Rebuilt.
2178 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2179 (HAVE_TIMEZONE): Likewise.
2180 * configure: Rebuilt.
2181 * configure.in: Added timezone checks.
2182 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2185 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2187 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2188 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2189 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2190 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2191 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2192 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2193 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2194 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2196 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2197 (BSD_COMP): Kludge needed for Solaris2.
2199 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2201 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2202 URL(java.net.URL, string, URLStreamHandler) and call it with a
2203 null handler. In latter constructor, added SecurityManager check.
2204 (set): Expect null handler on bad protocol rather than an exception.
2205 (setURLStreamHandler): Simplified exception handling; return null
2206 on invalid protocol.
2208 1999-03-18 Tom Tromey <tromey@cygnus.com>
2210 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2212 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2214 Include PrintStream.h, InputStream.h.
2215 * java/lang/System.java (ForwardingInputStream,
2216 ForwardingOutputStream): Removed.
2217 (setErr, setIn, setOut): Now native.
2219 Reverted patch from 1999-02-12 to work around problem in
2221 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2222 (_Jv_eh_free): Use free.
2224 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2225 for path name. Minor formatting fixes.
2227 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2229 * prims.cc (fail_on_finalization): New function.
2230 (_Jv_GCWatch): Likewise.
2232 * prims.cc (JvRunMain): Initialize `nullp'.
2233 (nullp): New global.
2234 (catch_segv): Throw nullp.
2236 * Makefile.in: Rebuilt.
2237 * Makefile.am (ZIP): In "null target" case, zip is found in the
2240 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2244 * java/lang/StringBuffer.java (StringBuffer): Don't use
2245 ensureCapacity to set initial capacity.
2246 (capacity): Subtract `length' from return result.
2248 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2250 * java/io/natFileDescriptorPosix.cc (open): Throw
2251 FileNotFoundException, but with filename and errno in msg.
2253 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2255 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2256 functionality folded into java/net/URL.java per spec.
2258 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2259 than EEXIST for throwing FileNotFoundException.
2261 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2262 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2264 * java/net/URLStreamHandler.java (parseURL): Added stub.
2266 1999-03-15 Andrew Haley <aph@cygnus.com>
2268 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2271 1999-03-15 Andrew Haley <aph@cygnus.com>
2273 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2276 1999-03-12 Tom Tromey <tromey@cygnus.com>
2278 * prims.cc (catch_segv): New function.
2279 Include <signal.h> if HANDLE_SEGV defined. Include
2280 NullPointerException.h.
2281 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2284 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2285 a SimpleDateFormat, not just a DateFormat.
2286 (defaultCenturyStart, formatData, pattern): Now private.
2287 (append): Now `final'. Use `NumberFormat.format'.
2289 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2291 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2294 * java/text/MessageFormat.java (format): Use default MessageFormat
2296 (parse, parseObject): Wrote.
2298 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2301 1999-03-12 Andrew Haley <aph@cygnus.com>
2303 * java/lang/String.java (indexOf): Replace with native method for
2305 * java/lang/natString.cc (IndexOf): As above.
2307 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2308 Argument check corrected.
2309 (init(jbyteArray,jint,jint,jstring)): Likewise.
2311 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2312 1.2 compliant method.
2314 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2316 * java/lang/Float.java (byteValue, shortValue): Likewise.
2318 1999-03-11 Tom Tromey <tromey@cygnus.com>
2320 * java/text/DecimalFormat.java (parse): Wrote.
2322 * java/text/ChoiceFormat.java (parse): Set error index on
2323 ParsePosition object.
2325 * java/lang/Integer.java (parseInt): Throw exception on overflow
2326 when intermediate result is most negative number. Changed
2327 overflow detection as well.
2328 * java/lang/Long.java (parseLong): Likewise.
2330 * configure, Makefile.in: Rebuilt.
2331 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2332 CANADIAN when building in source tree that doesn't include gcc.
2333 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2336 * java/text/ChoiceFormat.java (nextDouble): Correct some
2337 off-by-one errors when masking or adding.
2339 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2340 parameter, if given. Use `%', not IEEEremainder.
2341 (scanFix): Throw error if multiplier already set.
2342 (computePattern): Wrote.
2344 1999-03-11 Andrew Haley <aph@cygnus.com>
2346 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2348 (nextDouble): Corrected masking logic. Handle interaction between
2349 `next' and negative numbers.
2351 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2353 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2354 * java/net/URL.java: Added general comments.
2356 1999-03-10 Tom Tromey <tromey@cygnus.com>
2358 * java/text/ChoiceFormat.java (parse): Wrote.
2360 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2362 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2363 Create ChoiceFormat objects.
2364 (format): Special-case ChoiceFormat.
2365 (scanFormatElement): Include { and } in generated style string.
2367 1999-03-09 Tom Tromey <tromey@cygnus.com>
2369 * java/text/ChoiceFormat.java: New file.
2371 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2373 * java/net/BindException.java: Created.
2374 * java/net/ConnectException.java: Created.
2375 * java/net/ContentHandler.java: Created.
2376 * java/net/ContentHandlerFactory.java: Created.
2377 * java/net/FileNameMap.java: Created.
2378 * java/net/MalformedURLException.java: Created.
2379 * java/net/NoRouteToHostException.java: Created.
2380 * java/net/ProtocolException.java: Created.
2381 * java/net/ServerSocket.java (@author): Fixed typo.
2382 * java/net/Socket.java (@author): Fixed typo.
2383 * java/net/SocketImpl.java (@author): Fixed typo.
2384 * java/net/SocketImplFactory.java (@author): Fixed typo.
2385 * java/net/URL.java: Created - nearly complete.
2386 * java/net/URLConnection.java: Created - near-empty stub.
2387 * java/net/URLStreamHandler.java: Created - incomplete stub.
2388 * java/net/URLStreamHandlerFactory.java: Created.
2389 * java/net/UnknownServiceException.java: Created.
2391 1999-03-09 Tom Tromey <tromey@cygnus.com>
2393 * java/lang/System.java (ForwardingInputStream): New class.
2394 (ForwardingOutputStream): Likewise.
2395 (in, out, err): Now `final' forwarding streams.
2396 (setIn, setOut, setErr): Use appropriate method on forwarding
2399 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2402 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2404 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2405 * java/util/zip/Checksum.java: New interface (complete).
2406 * java/util/zip/Deflater.java: New class (near-empty stub).
2407 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2408 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2409 * java/util/zip/ZipEntry.java: New class (complete).
2410 * java/util/zip/ZipException.java: New class (complete).
2411 * java/util/zip/ZipFile.java: New class (incomplete stub).
2412 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2414 1999-03-09 Tom Tromey <tromey@cygnus.com>
2416 * java/text/MessageFormat.java (MessageFormatElement): Removed
2417 `public' specifiers.
2419 * java/text/DecimalFormat.java (scanFormat): Increment index
2420 before processing exponential format. Fixed a couple typos in
2422 (format): Correct normalization of exponent.
2424 1999-03-08 Tom Tromey <tromey@cygnus.com>
2426 * java/text/SimpleDateFormat.java (parse): Throw
2427 IllegalArgumentException, not ParseException.
2429 1999-03-05 Tom Tromey <tromey@cygnus.com>
2431 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2432 when constructing DateFormatSymbols. Initialize numberFormat
2433 field of superclass.
2435 * java/text/DateFormat.java (equals): Rewrote.
2436 (getAvailableLocales): New method.
2437 (getDateInstance): New methods.
2438 (getDateTimeInstance): Likewise.
2439 (getTimeInstance): Likewise.
2440 (getInstance): New method.
2441 (computeInstance): New method.
2443 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2445 (safeGetResource): New method.
2446 (DateFormatSymbols): Use Locale paramater.
2447 (equals): Now protected.
2448 Made instance variables private.
2450 1999-03-04 Tom Tromey <tromey@cygnus.com>
2452 * java/text/DecimalFormat.java: New file.
2454 * java/text/NumberFormat.java (groupingUsed,
2455 maximumFractionDigits, maximumIntegerDigits,
2456 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2458 (setDecimalSeparatorAlwaysShown, setMultiplier,
2459 setPositivePrefix): Removed.
2460 (setMinimumFractionDigits, setMaximumFractionDigits):
2462 (format): Now final.
2463 Added many new methods.
2465 * Makefile.in: Rebuilt.
2466 * Makefile.am (gnu_files): New macro.
2467 (java_files): Added gnu_files.
2468 (class_gnu_files): New macro.
2469 (class_files): Use it.
2470 (src_gnu_files): New macro.
2471 (gnu.o): New target.
2472 (javao_files): Added gnu.o.
2474 * gnu/gcj/text/LocaleData_en_US.java: New file.
2475 * gnu/gcj/text/LocaleData_en.java: New file.
2476 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2477 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2478 (safeGetString): New method.
2479 (safeGetChar): Likewise.
2481 1999-03-03 Tom Tromey <tromey@cygnus.com>
2483 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2486 * java/text/FieldPosition.java (equals): Don't check for null
2487 object; instanceof does this.
2489 * java/util/Locale.java (clone): New method.
2492 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2494 * doc/cni.sgml: New file.
2496 1999-03-03 Tom Tromey <tromey@cygnus.com>
2498 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2500 * java/text/DecimalFormatSymbols.java: New file.
2502 1999-03-02 Tom Tromey <tromey@cygnus.com>
2504 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2506 * configure: Rebuilt.
2507 * configure.in: Check for sys/filio.h.
2509 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2511 (load): Always throw UnsatisfiedLinkError.
2512 (loadLibrary): Likewise.
2514 1999-03-02 Anthony Green <green@cygnus.com>
2516 * LIBGCJ_LICENSE: New file.
2517 * LIBJAVA_LICENSE: Removed.
2518 * Many files: libjava now libgcj.
2520 1999-03-02 Tom Tromey <tromey@cygnus.com>
2522 * include/java-chartables.h: Rebuilt.
2523 * chartables.pl (print_block): Make table `const'.
2524 (print_numerics): Likewise.
2525 (print_single_map): Likewise.
2526 (print_all_block): Likewise.
2527 (print_case_table): Likewise.
2528 (print_fast_tables): Likewise.
2529 * java/lang/natCharacter.cc (table_search): `table' argument now
2532 1999-03-01 Tom Tromey <tromey@cygnus.com>
2534 * java/util/Date.java (before, after): Inverted logic.
2536 * java/util/Date.java (parse): Handle case where first character
2537 in string is open parenthesis.
2538 (skipParens): Rewrote.
2540 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2541 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2543 * java/util/Date.java (parse): Correctly compute beginning of
2546 * java/util/Hashtable.java (get): Throw NullPointerException if
2548 (containsKey): Likewise.
2550 * java/util/Properties.java (list): Truncate value to 37
2551 characters and add `...'.
2553 * java/lang/Byte.java (parseByte): Pass `radix' to
2556 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2558 Include System.h, PrintStream.h.
2560 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2563 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2565 * configure: Rebuilt.
2566 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2569 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2571 * java/lang/SecurityManager.java: Import java.net.*.
2572 (checkMulticast): New methods.
2574 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2576 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2577 (nat_files): Add java/lang/reflect/natArray.o.
2578 (nat_headers): Add Field.h and NoSuchFieldException.h.
2580 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2581 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2582 (_Jv_FromReflectedField): Fix buglet.
2583 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2584 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2585 * prims.cc (_Jv_Abort): Include message in print-out.
2587 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2588 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2589 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2591 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2592 * include/config.h.in (HAVE_PWD_H): New feature macro.
2593 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2594 user.name, user.home, user.dir.
2596 * java/lang/reflect/Array.java: New class.
2597 * java/lang/reflect/natArray.cc: New native methods.
2598 * include/javaprims.h: Declare java::lang::reflect::Array.
2600 * java/lang/Class.h (getField): New private method. Add friends.
2601 * java/lang/Class.java (getField): Add private overload.
2602 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2603 getDeclaredMethods): Add working implementations.
2604 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2605 Finish implementation, except for access control.
2607 * java/lang/reflect/Modifier.java (toString): New overload.
2608 * include/java-method.h: New file.
2609 * java/lang/reflect/Method.java (index): Replaced by offset field.
2610 Remove various private fields - get them from _Jv_Field instead.
2611 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2612 New method implementations.
2614 * java/text/NumberFormat.java: Add a bunch of methods.
2616 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2618 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2620 1999-02-26 Tom Tromey <tromey@cygnus.com>
2622 * include/config.h.in: Rebuilt.
2623 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2624 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2625 HAVE_GETHOSTBYADDR_R): New defines.
2626 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2627 gethostbyaddr_r if available.
2629 * configure: Rebuilt.
2630 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2632 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2636 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2637 * prims.cc (_Jv_AllocBytesChecked): New function.
2639 * Makefile.in: Rebuilt.
2640 * Makefile.am (SUBDIRS): Removed `test'.
2641 * configure: Rebuilt.
2642 * configure.in: Don't build test/Makefile.
2643 * test/*: Removed all files.
2645 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2647 * java/lang/reflect/Constructor.java: Make class final to match spec.
2648 * java/lang/reflect/Method.java: Ditto.
2650 1999-02-25 Tom Tromey <tromey@cygnus.com>
2652 * java/net/natInetAddress.cc: Include <sys/types.h> before
2654 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2657 * java/net/natInetAddress.cc: Declare gethostname if required.
2658 * include/config.h.in: Rebuilt.
2659 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2660 * configure: Rebuilt.
2661 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2662 declared in unistd.h.
2664 1999-02-24 Tom Tromey <tromey@cygnus.com>
2666 * Makefile.in: Rebuilt.
2667 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2668 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2669 from private to "none".
2671 * include/javaprims.h: Regenerated class declarations with new
2673 * classes.pl (scan): Only generate decls for java.lang, java.io,
2676 1999-02-24 Tom Tromey <tromey@cygnus.com>
2678 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2679 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2681 1999-02-23 Tom Tromey <tromey@cygnus.com>
2683 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2684 not already defined.
2685 * java/io/natFile.cc (_REENTRANT): Only define if not already
2687 * include/config.h.in: Rebuilt.
2688 * acconfig.h (HAVE_BOEHM_GC): New define.
2689 * configure: Rebuilt.
2690 * configure.in: Define HAVE_BOEHM_GC if using it.
2691 * posix-threads.cc: Include boehm-config.h and gc.h if
2693 * include/posix-threads.h: Added explanatory note about Boehm GC.
2695 * java/io/BufferedReader.java (readLine): Only return null when
2696 EOF seen before any characters read. (In particular, an empty
2697 line should not return null.)
2699 * java/io/BufferedInputStream.java (read): Only refill once per
2702 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2703 java.lang.Character.classify12, java.lang.String.hash,
2704 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2705 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2707 * java/text/StringCharacterIterator.java (setIndex): No error if
2709 (next): Check for `pos == end', not `end - 1'.
2710 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2711 for null text in each constructor.
2712 (clone): Fixed order of arguments to constructor.
2714 1999-02-22 Tom Tromey <tromey@cygnus.com>
2716 * include/config.h.in: Rebuilt.
2717 * acconfig.h (HAVE_INET6): New define.
2718 (HAVE_SOCKLEN_T): Likewise.
2719 * java/net/PlainSocketImpl.java: Added copyright header.
2720 * java/net/natPlainSocketImpl.cc: Added copyright header.
2721 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2723 (connect): Likewise.
2725 (socklen_t): New typedef.
2726 (accept): Use socklen_t.
2727 * java/net/natInetAddress.cc: Added copyright header.
2728 (HAVE_GETHOSTNAME): Don't define.
2729 (HAVE_INET_ADDR): Likewise.
2730 (lookup): Fixed typo.
2731 (aton): Don't use `address' as name of local variable.
2732 (lookup): Use HAVE_INET6, not AF_INET6.
2734 * configure: Rebuilt.
2735 * configure.in: Look for functions inet_aton, inet_addr,
2736 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2737 Check for socklen_t typedef.
2739 * exception.cc (__throw): Declare as __noreturn__.
2741 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2743 * Makefile.am, Makefile.in: Also build java/net.
2744 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2746 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2747 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2749 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2750 * include/cni.h (JvMalloc, JvFree): New inline functions.
2751 (JvThrow): Add __noreturn__ attribute.
2752 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2753 (_Jv_Throw): Add __noreturn__ attribute.
2755 * java/net/PlainSocketImpl.java: Init fnum to -1.
2756 * java/net/ServerSocket.java: Add missing throws clauses.
2757 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2758 don't call create on the latter. Instead, other constructors
2759 have to explicitly call SocketImpl.create.
2760 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2761 from size_t to int, to match ::accept prototype.
2762 * java/net/natInetAddress.cc: Use JvFree rather than free.
2765 1999-02-22 Tom Tromey <tromey@cygnus.com>
2767 * include/javaprims.h: Added new classes.
2768 * java/text/StringCharacterIterator.java: New file.
2769 * java/text/CharacterIterator.java: New file.
2771 * java/text/ParseException.java (errorOffset): Now private.
2773 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2775 * java/net: New package.
2776 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2777 Socket.java,SocketException.java,SocketImpl.java,
2778 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2779 natPlainSocketImpl.cc}: New classes.
2781 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2782 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2783 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2784 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2786 * classes.pl: Translate package into "namespace", not "class".
2787 * include/javaprims.h: Update class list, using "namespace".
2789 1999-02-21 Tom Tromey <tromey@cygnus.com>
2791 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2792 Define when appropriate.
2794 1999-02-20 Tom Tromey <tromey@cygnus.com>
2796 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2797 as a single byte and \u07ff as two bytes.
2798 (_Jv_GetStringUTFLength): Likewise.
2799 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2800 with 0x0f, not 0x1f.
2802 1999-02-19 Tom Tromey <tromey@cygnus.com>
2804 * java/io/DataOutputStream.java (writeUTF): When encoding
2805 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2806 * java/io/DataInputStream.java (readUTF): Mask second byte of
2807 3-byte character with 0x3f, not 0x1f.
2809 * java/io/DataInputStream.java (readLong): Cast result of
2810 readUnsignedByte to long before using.
2812 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2815 * mauve-libjava: Re-enabled java.io.DataInputOutput.
2816 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2817 argument to avoid warning.
2818 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2819 argument to avoid warning.
2821 1999-02-18 Tom Tromey <tromey@cygnus.com>
2823 * mauve-libjava: Omit java.io.DataInputOutput and
2824 java.io.Utf8Encoding.
2826 1999-02-17 Tom Tromey <tromey@cygnus.com>
2828 * Makefile.in: Rebuilt.
2829 * Makefile.am (nat_headers): Added InterruptedIOException.h.
2830 * java/io/natFileDescriptorPosix.cc: Include
2831 InterruptedIOException.h, Thread.h.
2832 (write): Throw InterruptedIOException when required.
2834 * posix-threads.cc: Include <signal.h>.
2835 (_Jv_ThreadInterrupt): New function.
2837 (handle_intr): New function.
2838 (_Jv_InitThreads): Register handle_intr via sigaction.
2839 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2840 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2841 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2842 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2844 1999-02-19 Andrew Haley <aph@cygnus.com>
2846 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2848 (ThreadGroup (int)): Set the maximum priority of the initial
2851 1999-02-18 Andrew Haley <aph@cygnus.com>
2853 * java/lang/natClass.cc (forName): Check for the case where a
2854 classname is the name of an array and call FindClassFromSignature
2857 1999-02-18 Andrew Haley <aph@cygnus.com>
2859 * java/lang/StringBuffer (insert (int, String)): Move up any
2860 characters above the insert position and increase the length of
2861 the string buffer by the length of the argument.
2862 (insert (int, char[])): Likewise.
2863 (insert (int, char)): Likewise.
2864 (StringBuffer (String)): The initial capacity of the string buffer
2865 is 16 plus the length of the argument.
2866 (getChars): Add a JDK 1.2 FIXME.
2868 1999-02-18 Andrew Haley <aph@cygnus.com>
2870 * java/lang/Short.java (parseShort(String, int)): Pass radix to
2873 1999-02-18 Andrew Haley <aph@cygnus.com>
2875 * java/lang/Double.java (equals): Use a bit-by-bit comparision
2876 instead of floating-point equality. This is necessary for
2877 correct floating-point Hashtables.
2878 * java/lang/Float.java (equals): Ditto.
2880 1999-02-16 Tom Tromey <tromey@cygnus.com>
2882 * java/util/Properties.java (list): Truncate value to 37
2883 characters and add "...".
2885 1999-02-16 Tom Tromey <tromey@cygnus.com>
2887 * java/util/Vector.java (Vector): Throw IllegalArgumentException
2888 if initCap is negative.
2889 (contains): Implement JDK1.2-style handling of null argument.
2890 (removeElement): Likewise.
2891 (indexOf): Likewise. Also, correctly handle case where idx is
2893 (lastIndexOf): Likewise.
2895 1999-02-16 Tom Tromey <tromey@cygnus.com>
2897 * java/lang/natString.cc (init): Increment source pointer in
2900 1999-02-16 Tom Tromey <tromey@cygnus.com>
2902 * exception.cc: Include NullPointerException.h.
2903 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
2905 1999-02-16 Tom Tromey <tromey@cygnus.com>
2907 * Makefile.in: Rebuilt.
2908 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
2910 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
2912 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
2913 we're compiling canadian.
2914 * configure: Regenerated.
2916 1999-02-12 Andrew Haley <aph@cygnus.com>
2918 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
2919 deleted from libgcj.
2921 1999-02-12 Tom Tromey <tromey@cygnus.com>
2923 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
2924 (_Jv_eh_free): Don't call free.
2925 Don't declare malloc or free.
2927 1999-02-11 Tom Tromey <tromey@cygnus.com>
2929 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
2931 1999-02-11 Andrew Haley <aph@cygnus.com>
2933 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
2934 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
2935 needed by java.lang.*.
2936 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
2937 wf_fmod.o: Removed from libjava.a.
2939 1999-02-11 Tom Tromey <tromey@cygnus.com>
2941 * include/javaprims.h: Reverted previous change; with it
2942 exception.cc can't compile.
2944 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
2946 * include/config.h.in: Rebuilt.
2947 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
2949 * configure: Rebuilt.
2950 * configure.in: Check for sched_yield. Look in thread library for
2951 all thread functions.
2953 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
2954 no recursive mutexes.
2955 (_Jv_MutexDestroy): Define when required.
2956 (_Jv_MutexLock): Likewise.
2957 (_Jv_MutexUnlock): Likewise.
2958 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
2959 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
2960 (_Jv_Mutex_t): New structure.
2961 (_Jv_MutexDestroy): Only define if recursive mutexes available.
2962 (_Jv_MutexLock): Likewise.
2963 (_Jv_MutexUnlock): Likewise.
2965 1999-02-10 Tom Tromey <tromey@cygnus.com>
2967 * aclocal.m4, configure, Makefile.in: Rebuilt.
2968 * acinclude.m4: Renamed libjava to libgcj. Updated to use
2970 * configure.in: Changed to track library changes.
2971 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
2972 (AM_CXXFLAGS): Likewise.
2973 (data_DATA): Likewise.
2974 (AM_CFLAGS): Likewise.
2975 (JC1FLAGS): Likewise.
2976 (libgcj_a_SOURCES): Likewise.
2977 (EXTRA_libgcj_a_SOURCES): Likewise.
2978 (libgcj_a_DEPENDENCIES): Likewise.
2979 (libgcj_a_LIBADD): Likewise.
2980 (libgcj.zip): Likewise.
2981 (CLEANFILES): Likewise.
2982 ($(nat_headers)): Likewise.
2983 (java/lang/FirstThread.h): Likewise.
2984 (java/lang/ThreadGroup.h): Likewise.
2985 (java/lang/String.h): Likewise.
2986 (java/lang/reflect/Field.h): Likewise.
2987 (BUILT_SOURCES): Likewise.
2988 (maintainer-check): Likewise.
2989 (CONFIG_STATUS_DEPENDENCIES): Likewise.
2990 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
2992 * java/util/natGregorianCalendar.cc (computeFields): Only use
2993 gmtime_r and localtime_r when configured for posix threads.
2995 * java/io/natFile.cc (get_entry): Only use readdir_r when
2996 configured for posix threads.
2998 * java/util/natGregorianCalendar.cc: Update copyright notice.
2999 * java/util/TimeZone.java: Ditto.
3000 * java/util/SimpleTimeZone.java: Ditto.
3002 1999-02-08 Tom Tromey <tromey@cygnus.com>
3004 * java/io/PrintStream.java (line_separator): New constant.
3005 (print): Use line_separator, not `file.separator' property.
3006 (println): Use line_separator.
3008 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3009 when trying to instantiate Class.
3011 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3012 NullPointerException if argument is null.
3014 * java/lang/Thread.java (setName): Throw NullPointerException, not
3015 IllegalArgumentException.
3018 1999-02-08 Andrew Haley <aph@cygnus.com>
3020 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3021 create new Classes with Class.newInstance().
3023 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3024 semiciolon to end of an array Class's signature if the elements of
3025 the array aren't themselves arrays.
3027 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3028 array of objects is always sizeof(jobject), not the size of the
3029 object to which the reference points.
3031 1999-02-08 Tom Tromey <tromey@cygnus.com>
3033 * java/util/BitSet.java (and): Throw NullPointerException when
3038 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3039 if argument is negative.
3040 (clear): Correctly compute `offset'. Throw
3041 IndexOutOfBoundsException when required.
3043 (get): Likewise. Also, return correct value.
3044 (ensure): Changed meaning of argument.
3045 (toString): Wrap contents in `{}'; put spaces after commas.
3046 (hashCode): Don't try to examine elements off the end of array.
3047 (or): Correctly include bits past the end of this bit set.
3050 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3052 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3053 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3055 1999-02-04 Andrew Haley <aph@cygnus.com>
3057 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3058 '/' in signatures to '.'
3059 (Class::getName): Likewise,
3060 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3062 * java/lang/natFirstThread.cc (run): Change '/' in main's
3065 1999-02-03 Andrew Haley <aph@cygnus.com>
3067 * configure.host: -ffloat-store added when compiling libjava on
3068 x86. fdlibm apparently relies on this.
3070 * java/lang/ThreadGroup.java (add): throw an exception if the
3071 ThreadGroup has been destroyed.
3073 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3076 1999-01-27 Tom Tromey <tromey@cygnus.com>
3078 * java/lang/StringBuffer.java (StringBuffer): Handle null
3081 1999-01-21 Tom Tromey <tromey@cygnus.com>
3083 * java/lang/natFirstThread.cc (run): Don't require main to be
3086 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3088 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3090 1999-01-20 Tom Tromey <tromey@cygnus.com>
3092 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3096 (unintern): Likewise.
3097 (_Jv_NewStringUtf8Const): Likewise.
3099 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3100 Character.isLetter, to see if character is self-quoting. Also,
3101 correctly handle quoted characters.
3102 (parse): Fixed typo. Also now throws ParseException.
3104 1999-01-15 Tom Tromey <tromey@cygnus.com>
3106 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3108 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3109 _Jv_SyncInfo has `init' member.
3111 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3114 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3115 IllegalMonitorStateException if unlock fails.
3117 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3119 (_Jv_NewObjectArray): Likewise.
3121 1999-01-14 Tom Tromey <tromey@cygnus.com>
3123 * java/lang/Character.java (isJavaIdentifierPart): Allow
3124 LETTER_NUMBER characters.
3126 * chartables.pl (process_char): Fixed error messages.
3128 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3129 * chartables.pl: Updated comments. Changed detection of non-digit
3130 numeric values (no longer miss \u00b2 and friends).
3132 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3133 currency symbols and connector punctuation.
3134 (isIdentifierIgnorable): Make 7f-9f ignorable.
3136 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3137 (_Jv_NewPrimArray): Likewise.
3138 (SIZE_T_MAX): New define.
3140 * java/lang/ClassLoader.java (system): Now private and final.
3142 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3145 * configure: Rebuilt.
3146 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3148 * exception.cc: Include gansidecl.h.
3150 1999-01-14 Andrew Haley <aph@cygnus.com>
3152 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3153 corrected: they didn't treat -0.0 and NaNs correctly.
3155 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3157 * nogc.cc: Use calloc to zero out memory.
3159 1999-01-11 Tom Tromey <tromey@cygnus.com>
3161 * java/lang/natClass.cc (isInstance): Return false if this class
3162 is primitive, not if class of `obj' is primitive.
3163 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3165 * java/io/SequenceInputStream.java (close): Handle case where `in'
3168 * java/text/DateFormat.java (format): New method.
3170 * mauve-libjava: Omit java.text.DateFormat.
3172 1999-01-08 Tom Tromey <tromey@cygnus.com>
3174 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3176 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3178 (_Jv_CondNotifyAll): Likewise.
3180 * configure: Rebuilt.
3181 * configure.in: Change --enable-source-compilation logic to work
3184 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3186 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3187 and RUNTESTFLAGS from AM_MAKEFLAGS.
3188 * configure.in: AM_RUNTESTFLAGS added.
3189 * configure.host: AM_RUNTESTFLAGS added.
3190 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3191 * configure: rebuilt.
3192 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3194 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3195 argv[] made conditional because embedded targets may not have
3197 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3198 explanatory comments added in call to super.
3200 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3201 exception thrown in the test harness itself added.
3202 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3204 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3206 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3208 1999-01-06 Tom Tromey <tromey@cygnus.com>
3210 * java/io/natFile.cc (get_entry): New function.
3211 (performList): Use get_entry.
3212 * include/config.h.in: Rebuilt.
3213 * acconfig.h (HAVE_READDIR_R): New define.
3214 * configure: Rebuilt.
3215 * configure.in: Look for readdir_r.
3217 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3219 * java/util/natDate.cc: Added copyright header.
3221 1999-01-05 Tom Tromey <tromey@cygnus.com>
3223 * include/config.h.in: Rebuilt.
3224 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3225 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3226 * configure: Rebuilt.
3227 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3228 unlink, and realpath.
3229 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3230 (stat): Conditionalize on HAVE_STAT.
3232 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3233 (performMkdir): Conditionalize on HAVE_MKDIR.
3234 (performRenameTo): Conditionalize on HAVE_RENAME.
3235 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3237 * include/config.h.in: Rebuilt.
3238 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3239 * configure: Rebuilt.
3240 * configure.in: Check for gmtime_r and localtime_r. For cross
3241 builds, assume they exist.
3243 * mauve-libjava: Include java.text.DateFormatSymbols again.
3244 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3245 from setAmPmStrings.
3247 * mauve-libjava: Omit java.text.DateFormatSymbols.
3249 1999-01-04 Tom Tromey <tromey@cygnus.com>
3251 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3253 * java/io/LineNumberReader.java (read): Decrement `count' in
3256 * java/io/BufferedWriter.java (write): Correctly determine when
3257 incoming data would overrun buffer. Flush buffer if write causes
3260 * java/io/BufferedOutputStream.java (write): Increment `count'
3261 after copying data into buffer.
3263 * java/io/FilterOutputStream.java (close): Call flush first.
3265 * java/io/PipedReader.java (read): If read causes `out' to catch
3266 up with `in', then set `in' to -1.
3268 * java/io/LineNumberInputStream.java (read): If no bytes read,
3269 return -1. If no bytes requested, return 0.
3271 * java/lang/StringBuffer.java (insert): If `str' is null, use
3274 1998-12-30 Anthony Green <green@cygnus.com>
3277 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3279 1998-12-23 Tom Tromey <tromey@cygnus.com>
3281 * java/io/PushbackInputStream.java (read): `off' already includes
3284 1998-12-17 Tom Tromey <tromey@cygnus.com>
3286 * Makefile.in: Rebuilt.
3287 * Makefile.am (GCJ_canadian): Include target_alias.
3289 * java/lang/natFirstThread.cc (run): Require main's class to be
3292 1998-12-16 Tom Tromey <tromey@cygnus.com>
3294 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3296 * java/util/ResourceBundle.java (getBundle): Throw
3297 NullPointerException if locale argument is null.
3299 * java/lang/natClass.cc (forName): Throw NullPointerException if
3301 Include NullPointerException.h.
3303 1998-12-14 Tom Tromey <tromey@cygnus.com>
3305 * java/lang/Character.java (Character): Implement Comparable.
3306 (compareTo): New methods.
3308 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3309 correct country and language codes.
3310 (UK, US): New constants.
3311 (setDefault): Language codes are lower-case.
3313 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3314 (getDeclaredConstructors): Likewise.
3315 (getDeclaredField): Likewise.
3316 (getDeclaredFields): Likewise.
3317 (getDeclaredMethod): Likewise.
3318 (getDeclaredMethods): Likewise.
3319 (getField): Likewise.
3320 (getFields): Likewise.
3321 (getMethod): Likewise.
3322 (getMethods): Likewise.
3323 * java/lang/Class.java: Declare new methods.
3324 * java/lang/Class.h: Declare new methods.
3326 * java/lang/natString.cc: Removed `#pragma implementation'.
3327 * include/cni.h (_Jv_GetStringChars): New function.
3328 * Makefile.in: Rebuilt.
3329 * Makefile.am (java/lang/String.h): Don't generate definition for
3332 * java/lang/natString.cc: Added `#pragma implementation'.
3334 * Makefile.in: Rebuilt.
3335 * Makefile.am (libjava.zip): Put build directory first in class
3336 path to avoid bug in compiler.
3338 1998-12-14 Anthony Green <green@cygnus.com>
3340 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3342 * include/javaprims.h: Add EventObject, ListResourceBundle and
3345 1998-12-13 Anthony Green <green@cygnus.com>
3347 * mauve-libjava: Run the ResourceBundle tests.
3349 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3352 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3354 * configure.in, configure: Make --enable-gcj-classes and
3355 --enable-source-compilation the default. (Nervously...) Yeah!
3356 Based on a patch from Tom Tromey.
3358 1998-12-13 Tom Tromey <tromey@cygnus.com>
3360 * java/util/EventObject.java: New file.
3361 * java/util/EventListener.java: New file.
3363 * include/javaprims.h: Updated class declarations.
3364 * Makefile.in: Rebuilt.
3365 * Makefile.am (nat_headers): Added Constructor.h.
3366 (java/lang/String.h): Don't inline String::length().
3367 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3368 * java/lang/Class.java (initializeClass, hackRunInitializers,
3369 hackTrampoline): No need to mark `final'.
3370 (getConstructor, getConstructors): Declare.
3371 * java/lang/reflect/Field.java (equals): New method.
3372 * java/lang/natClass.cc (getConstructor): New method.
3373 (getConstructors): Likewise.
3374 Include Method.h, Field.h, Constructor.h.
3375 * java/lang/reflect/Constructor.java: New file.
3376 * java/lang/reflect/Method.java (toString): No space before open
3378 (equals): Simplified.
3380 1998-12-13 Anthony Green <green@cygnus.com>
3382 * java/util/ResourceBundle.java: New file.
3383 * java/util/ListResourceBundle.java: New file.
3385 1998-12-12 Tom Tromey <tromey@cygnus.com>
3387 * java/lang/System.java (in, out, err): Now buffered streams by
3390 * include/javaprims.h: Updated class declarations.
3391 * Makefile.in: Rebuilt.
3392 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3393 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3395 (nat_files): Added natMethod.o.
3396 * java/lang/reflect/natMethod.cc: New file.
3397 * java/lang/reflect/Field.java (Field): Now extends
3399 * java/lang/reflect/AccessibleObject.java: New file.
3400 * java/lang/reflect/InvocationTargetException.java: New file.
3402 1998-12-11 Tom Tromey <tromey@cygnus.com>
3404 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3405 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3406 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3408 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3410 1998-12-09 Tom Tromey <tromey@cygnus.com>
3412 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3415 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3416 character is already titlecase.
3418 * java/lang/Character.java (isJavaLetter): Follow spec.
3419 (isJavaLetterOrDigit): Likewise.
3421 * java/util/GregorianCalendar.java (gregorianCutover): Append
3424 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3426 1998-12-08 Tom Tromey <tromey@cygnus.com>
3428 * java/lang/reflect/Modifier.java (toString): Replace second
3429 `static' with `synchronized'.
3431 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3432 * java/lang/Object.h (Object::hack12_6): Declare.
3433 * java/lang/Object.java (hack12_6): New function.
3435 1998-12-07 Tom Tromey <tromey@cygnus.com>
3437 * include/java-array.h (__JArray::clone): Removed decl.
3438 * prims.cc (__JArray::clone): Removed.
3439 * java/lang/natObject.cc (clone): Incorporate code to clone an
3442 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3443 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3444 Correctly use dtable_method_count.
3446 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3448 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3451 1998-12-06 Anthony Green <green@cygnus.com>
3453 * mauve-libjava: Don't test ResourceBundle.
3455 1998-12-04 Tom Tromey <tromey@cygnus.com>
3457 More JDK 1.2 spec fixes:
3458 * java/util/Date.java (millis): Now private.
3459 * java/text/DateFormat.java (DateFormat): Constructor now
3461 * java/lang/Void.java (Void): New private constructor.
3462 * java/lang/System.java (System): New private constructor.
3463 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3465 (currentClassLoader): New method.
3466 (currentLoadedClass): New method.
3467 * java/lang/Math.java (Math): New private constructor.
3468 * java/lang/Compiler.java (Compiler): New private constructor.
3469 * java/lang/Class.java (Class): New private constructor.
3470 * java/lang/Double.java (toString): Removed access specifier from
3471 two-argument `toString' method.
3473 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3475 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3476 causes it to be flushed from an fp register (where it may be
3477 longer than double precision) to a double in memory. This is
3478 essential to ensure correct rounding behaviour.
3480 1998-12-04 Tom Tromey <tromey@cygnus.com>
3482 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3485 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3486 explaining apparent divergence from JDK 1.2.
3488 1998-12-04 Per Bothner <bothner@cygnus.com>
3490 * include/no-threads.h: Remove unused parameter names.
3491 This silences a bunch of warnings.
3493 1998-12-04 Tom Tromey <tromey@cygnus.com>
3495 * include/config.h.in: Rebuilt.
3496 * acconfig.h (HAVE_CTIME_R): New symbol.
3498 1998-12-03 Tom Tromey <tromey@cygnus.com>
3500 * mauve-libjava: Added many more categories to reject.
3502 Changes to follow JDK1.2 spec:
3503 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3504 setErr, setIn, setOut): No need to be `final'.
3505 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3506 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3507 * java/lang/Object.java (wait): `nanos' argument is an int.
3508 * java/lang/VirtualMachineError.java: Class is abstract.
3509 * java/lang/ThreadDeath.java: Made constructors public.
3510 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3513 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3515 * java/text/DateFormatSymbols.java (getAmPmStrings,
3516 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3518 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3520 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3521 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3522 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3525 * java/lang/IllegalThreadStateException.java
3526 (IllegalThreadStateException): Changed extending class to match spec.
3528 * java/lang/NumberFormatException.java
3529 (java/lang/NumberFormatException): Changed extending class to match
3532 * java/util/Observer.java (Observer): Changed sig to match JCL.
3534 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3536 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3537 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3538 signature to match JDK 1.1 and 1.2.
3540 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3542 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3543 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3544 * Makefile.in, configure: Rebuilt.
3546 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3549 1998-12-02 Tom Tromey <tromey@cygnus.com>
3551 * mauve-libjava: New file.
3553 The remaining `-W -Wall' fixes:
3554 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3556 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3558 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3560 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3562 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3564 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3566 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3568 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3570 * java/lang/mprec.c (Balloc): Removed unused variable.
3571 (mult): Added parentheses per gcc suggestion.
3572 (pow5mult): Likewise.
3577 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3578 suggestion. Added cast to `int' to avoid signed/unsigned
3580 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3582 (IsAssignableFrom): Likewise.
3583 (_Jv_JNI_GetObjectField): Likewise.
3584 (_Jv_JNI_GetByteField): Likewise.
3585 (_Jv_JNI_GetShortField): Likewise.
3586 (_Jv_JNI_GetIntField): Likewise.
3587 (_Jv_JNI_GetLongField): Likewise.
3588 (_Jv_JNI_GetStringLength): Likewise.
3589 (_Jv_JNI_ToReflectedField): Likewise.
3590 (_Jv_JNI_FromReflectedField): Likewise.
3591 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3593 * Makefile.in: Rebuilt.
3594 * Makefile.am (AM_CFLAGS): Define conditionally.
3595 (WARNINGS): New macro.
3596 (AM_CXXFLAGS): Include WARNINGS.
3597 * configure: Rebuilt.
3598 * configure.in (USING_GCC): New conditional.
3600 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3602 * java/lang/Character.java: Changed classification constants to
3603 type `byte' to match JDK 1.2 docs.
3605 1998-12-01 Tom Tromey <tromey@cygnus.com>
3607 Some fixes to be `-W -Wall' clean:
3608 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3609 (_Jv_MarkArray): Likewise.
3610 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3611 (to_upper_title): Likewise.
3612 (isTitleCase): Likewise.
3613 (toTitleCase): Likewise.
3614 (getNumericValue): Likewise.
3615 (isLowerCase): Likewise.
3616 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3617 (avoids compiler warning).
3618 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3620 (getDeclaringClass): Likewise.
3621 (_Jv_LookupInterfaceMethod): Likewise.
3622 (_Jv_NewClass): Removed name of unused parameter.
3623 * exception.cc (_Jv_type_matcher): Removed unused variable.
3624 (_Jv_setup_eh_info): Removed name of unused parameter.
3625 * prims.cc (_Jv_NewArray): Always return a value.
3626 (_Jv_FindClassFromSignature): Likewise.
3627 * include/java-field.h (getNameUtf8Const): Removed name of unused
3629 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3631 (_Jv_ThreadSetPriority): Likewise.
3633 * java/lang/natString.cc (hashChars): Now static.
3635 * java/lang/FirstThread.java (FirstThread): Now final.
3637 * java/io/File.java (performMkdir, performRenameTo): Now private.
3639 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3640 if no time function defined.
3642 * configure: Rebuilt.
3643 * configure.in: Look for ctime_r, ctime.
3644 * java/util/Date.java (toString): Now native.
3645 * java/util/natDate.cc (toString): Rewrote.
3647 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3649 * Add LDFLAGS line to allow TX39 test cases to link when cross
3652 1998-11-23 Anthony Green <green@cygnus.com>
3654 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3655 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3656 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3657 include/java-array.h, include/java-assert.h, include/java-field.h,
3658 include/javaprims.h, include/jni.h, include/jvm.h,
3659 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3660 include/quick-threads.h, java/io/BufferedInputStream.java,
3661 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3662 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3663 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3664 java/io/CharArrayWriter.java,
3665 java/io/CharConversionException.java, java/io/DataInput.java,
3666 java/io/DataInputStream.java, java/io/DataOutput.java,
3667 java/io/DataOutputStream.java, java/io/EOFException.java,
3668 java/io/File.java, java/io/FileDescriptor.java,
3669 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3670 java/io/FileOutputStream.java, java/io/FileReader.java,
3671 java/io/FileWriter.java, java/io/FilenameFilter.java,
3672 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3673 java/io/FilterReader.java, java/io/FilterWriter.java,
3674 java/io/IOException.java, java/io/InputStream.java,
3675 java/io/InputStreamReader.java,
3676 java/io/InterruptedIOException.java,
3677 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3678 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3679 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3680 java/io/PipedReader.java, java/io/PipedWriter.java,
3681 java/io/PrintStream.java, java/io/PrintWriter.java,
3682 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3683 java/io/RandomAccessFile.java, java/io/Reader.java,
3684 java/io/SequenceInputStream.java, java/io/Serializable.java,
3685 java/io/StreamTokenizer.java,
3686 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3687 java/io/StringWriter.java, java/io/SyncFailedException.java,
3688 java/io/UTFDataFormatException.java,
3689 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3690 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3691 java/io/natFileDescriptorPosix.cc,
3692 java/lang/AbstractMethodError.java,
3693 java/lang/ArithmeticException.java,
3694 java/lang/ArrayIndexOutOfBoundsException.java,
3695 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3696 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3697 java/lang/Class.java, java/lang/ClassCastException.java,
3698 java/lang/ClassCircularityError.java,
3699 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3700 java/lang/ClassNotFoundException.java,
3701 java/lang/CloneNotSupportedException.java,
3702 java/lang/Cloneable.java, java/lang/Comparable.java,
3703 java/lang/Compiler.java, java/lang/Double.java,
3704 java/lang/Error.java, java/lang/Exception.java,
3705 java/lang/ExceptionInInitializerError.java,
3706 java/lang/FirstThread.java, java/lang/Float.java,
3707 java/lang/IllegalAccessError.java,
3708 java/lang/IllegalAccessException.java,
3709 java/lang/IllegalArgumentException.java,
3710 java/lang/IllegalMonitorStateException.java,
3711 java/lang/IllegalStateException.java,
3712 java/lang/IllegalThreadStateException.java,
3713 java/lang/IncompatibleClassChangeError.java,
3714 java/lang/IndexOutOfBoundsException.java,
3715 java/lang/InstantiationError.java,
3716 java/lang/InstantiationException.java, java/lang/Integer.java,
3717 java/lang/InternalError.java, java/lang/InterruptedException.java,
3718 java/lang/LinkageError.java, java/lang/Long.java,
3719 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3720 java/lang/NoClassDefFoundError.java,
3721 java/lang/NoSuchFieldError.java,
3722 java/lang/NoSuchFieldException.java,
3723 java/lang/NoSuchMethodError.java,
3724 java/lang/NoSuchMethodException.java,
3725 java/lang/NullPointerException.java, java/lang/Number.java,
3726 java/lang/NumberFormatException.java, java/lang/Object.h,
3727 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3728 java/lang/Process.java, java/lang/Runnable.java,
3729 java/lang/Runtime.java, java/lang/RuntimeException.java,
3730 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3731 java/lang/Short.java, java/lang/StackOverflowError.java,
3732 java/lang/String.java, java/lang/StringBuffer.java,
3733 java/lang/StringIndexOutOfBoundsException.java,
3734 java/lang/System.java, java/lang/Thread.java,
3735 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3736 java/lang/Throwable.java, java/lang/UnknownError.java,
3737 java/lang/UnsatisfiedLinkError.java,
3738 java/lang/UnsupportedOperationException.java,
3739 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3740 java/lang/Void.java, java/lang/natCharacter.cc,
3741 java/lang/natClass.cc, java/lang/natDouble.cc,
3742 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3743 java/lang/natMath.cc, java/lang/natObject.cc,
3744 java/lang/natRuntime.cc, java/lang/natString.cc,
3745 java/lang/natSystem.cc, java/lang/natThread.cc,
3746 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3747 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3748 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3749 java/text/FieldPosition.java, java/text/Format.java,
3750 java/text/NumberFormat.java, java/text/ParseException.java,
3751 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3752 java/util/BitSet.java, java/util/Calendar.java,
3753 java/util/ConcurrentModificationException.java,
3754 java/util/Date.java, java/util/Dictionary.java,
3755 java/util/EmptyStackException.java, java/util/Enumeration.java,
3756 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3757 java/util/Locale.java, java/util/MissingResourceException.java,
3758 java/util/NoSuchElementException.java, java/util/Observable.java,
3759 java/util/Observer.java, java/util/Properties.java,
3760 java/util/Random.java, java/util/SimpleTimeZone.java,
3761 java/util/Stack.java, java/util/StringTokenizer.java,
3762 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3763 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3766 * exception.cc: Include eh-common.h instead of duplicating
3769 1998-11-23 Tom Tromey <tromey@cygnus.com>
3771 * configure.host: Don't add `-O2' to libjava_flags. Only add
3772 `-Os' to libjava_flags once.
3774 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3776 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3777 * Makefile.in: likewise
3778 * acconfig.h: add ECOS conditional for configure.h
3779 * config.h.in: likewise
3780 * configure: add test for --with-ecos
3781 * configure.in: likewise
3782 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3783 rename call to avoid name clash.
3784 * java/lang/natSystem.cc: add eCos clock support.
3785 * java/util/natGregorianCalendar.cc: add eCos support.
3787 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3789 * Makefile.am, Makefile.in, configure.host: tx39 build option
3792 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3794 * java/io/BufferedReader.java: Added more comments for clarity.
3795 (mark): Used more mnemonic name for local var extraBuffSpace.
3797 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3798 confusion with private method of same name in superclass.
3799 (skipRedundantLF): Set fields in special case to avoid infinite
3800 recursion. Check if markPos has been invalidated in special case.
3801 (readLine): Rewritten to use readLine method of superclass.
3802 (skip): Incorporated code from lineEnd.
3804 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3806 * java/io/BufferedReader.java (readLine): New method.
3807 (lineEnd): new private method.
3808 (mark): Track special case for readLine of getting '\r' at the
3815 * java/io/InputStreamReader.java (read): Return number chars skipped
3816 rather than requested.
3818 * java/lang/StringBuffer.java (append): Update count and differentiate
3819 between field and local variable.
3821 * java/util/Date.java (parseTz): Evaluate in minutes rather than
3822 seconds. Deal with military style time.
3823 (parse): Consistently treat all timezones in minutes until final
3824 calculation. Flag as non-local timezone. Return value in milliseconds.
3825 (setTime): Adjust for year offset from 1900.
3826 (UTC): Adjust for year offset from 1900.
3828 1998-11-17 Tom Tromey <tromey@cygnus.com>
3830 * configure: Rebuilt.
3831 * configure.in: Switch on host, not target.
3833 * Makefile.in: Rebuilt.
3834 * Makefile.am (GCJ_no): New macro.
3835 (GCJ): Use @CANADIAN@.
3836 (GCJH_no): New macro
3837 (GCJH_canadian): New macro.
3838 (GCJH): Use @CANADIAN@.
3839 (ZIP_no): New macro.
3840 (ZIP_canadian): New macro.
3841 (ZIP): Use @CANADIAN@.
3842 * aclocal.m4, configure: Rebuilt.
3843 * configure.in (CANADIAN): Compute and subst.
3845 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
3847 * java/io/FileDescriptor.java (finalize): Only close file
3848 descriptor if valid.
3850 1998-11-17 Tom Tromey <tromey@cygnus.com>
3852 * prims.cc (_Jv_InitRuntime): Removed.
3854 1998-11-16 Tom Tromey <tromey@cygnus.com>
3856 * java/io/FileOutputStream.java (close): Only close file
3857 descriptor if valid.
3858 (finalize): New method.
3860 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
3861 (_Jv_NewPrimArray): Likewise.
3862 * boehm.cc (_Jv_RegisterFinalizer): Use
3863 GC_REGISTER_FINALIZER_NO_ORDER.
3864 (GC_GENERIC_MALLOC): New define.
3865 (_Jv_AllocObj): Use it.
3866 (_Jv_AllocArray): Likewise.
3867 (_Jv_AllocBytes): Likewise.
3868 (_Jv_MarkObj): Just return if vtbl not set.
3869 (_Jv_MarkArray): Likewise.
3870 (MAYBE_MARK): New macro; use everywhere.
3871 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
3873 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
3875 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
3876 to a jlong before calculation to prevent overflow.
3878 1998-11-16 Tom Tromey <tromey@cygnus.com>
3880 * Makefile.in: Rebuilt.
3881 * Makefile.am (nat_headers): Fixed typo.
3883 1998-11-15 Tom Tromey <tromey@cygnus.com>
3885 * java/lang/Class.h (Class::getName): Removed definition.
3886 * Makefile.in: Rebuilt.
3887 * Makefile.am (nat_headers): Added InstantiationException.h,
3888 NoSuchMethodException.h.
3889 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
3890 (init_name): New global.
3891 (hackRunInitializers): Use clinit_name.
3892 Include InstantiationException.h, NoSuchMethodException.h.
3893 (newInstance): Do some error checking (but not all). Call
3895 (forName): Throw exception if class not found.
3896 (getName): New method.
3897 (forName): Transform class name from external format to internal
3898 format before lookup.
3900 1998-11-15 Anthony Green <green@cygnus.com>
3902 * java/lang/Class.h (Class::forName): Method is static.
3904 * java/lang/natClass.cc (newInstance): Add simple implementation.
3907 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
3909 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
3910 int), for compatibility with jc1.
3912 1998-11-14 Tom Tromey <tromey@cygnus.com>
3914 * include/config.h.in: Rebuilt.
3915 * acconfig.h (LINUX_THREADS): New define.
3916 * configure: Rebuilt.
3917 * configure.in: Define LINUX_THREADS if using POSIX threads on
3918 Linux. Look for pthread_mutexattr_setkind_np function.
3919 * posix-threads.cc (throw_cleanup): New function.
3920 (really_start): Push cleanup function.
3921 (_Jv_ThreadCancel): New function.
3922 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
3923 (_Jv_ThreadInitData): Set `exception' field in new structure.
3924 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
3926 (_Jv_ThreadWait): New function.
3927 (_Jv_InitThreads): Initialize daemon globals.
3928 (FLAG_DAEMON): New macro.
3929 (really_start): Notify daemon_cond when non-daemon thread exits.
3930 Include <java/lang/System.h>.
3931 (struct starter): `object' field now a thread.
3932 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
3933 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
3934 (_Jv_ThreadWait): Removed definition.
3935 (_Jv_Thread_t): Added `exception' field.
3936 (_Jv_ThreadCancel): Removed definition.
3938 1998-11-13 Tom Tromey <tromey@cygnus.com>
3940 * Makefile.in: Rebuilt.
3941 * Makefile.am (libjava.zip): Compute javac before changing
3944 * Makefile.in: Rebuilt.
3945 * Makefile.am (libjava.zip): Include directory entries.
3947 * Makefile.in: Rebuilt.
3948 * Makefile.am (expanded): New macro.
3951 1998-11-12 Tom Tromey <tromey@cygnus.com>
3953 * prims.cc (clone): New function.
3954 * include/java-array.h (__JArray::clone): Removed definition.
3956 * java/lang/natObject.cc (clone): Don't assert that class is not
3957 an array; array's `clone' method just calls this one.
3959 * Makefile.in: Rebuilt.
3960 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
3961 Now creates zip file. Changed all users.
3963 (data_DATA): New macro.
3965 1998-11-11 Tom Tromey <tromey@cygnus.com>
3967 * configure: Rebuilt.
3968 * configure.in: Recognize --enable-java-gc, not --enable-gc.
3970 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
3972 * java/io/InputStream.java (reset): Add msg to thrown exception.
3974 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
3976 * java/io/LineNumberInputStream.java: Rewritten.
3978 * java/io/StringBufferInputStream.java: Removed extraneous import.
3980 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
3982 * java/io/StringBufferInputStream.java: Rewritten.
3984 * java/util/Date.java (parseMonth): Optimize.
3985 (parseDayOfWeek): Created.
3986 (parse): Optimize to use parseDayOfWeek.
3988 1998-11-11 Tom Tromey <tromey@cygnus.com>
3990 * java/lang/StringBuffer.java (append): Handle case where STR is
3993 * include/javaprims.h: Regenerated class declarations.
3995 * configure: Rebuilt.
3996 * configure.in: Added --enable-gcj-classes,
3997 --enable-single-compilation, --enable-source-compilation flags.
3998 * Makefile.in: Rebuilt.
3999 * Makefile.am (java_io_files): New macro.
4000 (java_lang_files): Likewise.
4001 (java_text_files): Likewise.
4002 (java_util_files): Likewise.
4003 (java_files): Use new macros.
4004 (java-io.o): New target.
4005 (java-lang.o): Likewise.
4006 (java-text.o): Likewise.
4007 (java-util.o): Likewise.
4008 (src_io_files): New macro.
4009 (src_lang_files): Likewise.
4010 (src_text_files): Likewise.
4011 (src_util_files): Likewise.
4012 (class_io_files): New macro.
4013 (class_lang_files): Likewise.
4014 (class_text_files): Likewise.
4015 (class_util_files): Likewise.
4016 (class_files): Use new macros.
4017 (javao_files): Define conditionally.
4018 (.java.o): New target.
4019 ($(javao_files)): New target.
4021 (GCJH): Added $(EXEEXT).
4022 (CLASSPATH_ENV): Removed.
4023 (GCJCOMPILE): New macro.
4025 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4027 * java/util/Date.java (parse): Written from scratch.
4029 1998-11-11 Tom Tromey <tromey@cygnus.com>
4031 * java/lang/Throwable.java (toString): Correct sense of test for
4032 determining when to include detail message in result.
4034 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4037 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4039 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4041 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4042 (_Jv_RegisterClass): Use it.
4043 * include/jvm.h (_Jv_RegisterClasses): Declare.
4044 * java/lang/natObject.cc (init): Removed.
4045 (sync_init): Never call _Jv_InitializeSyncMutex.
4046 (_Jv_InitializeSyncMutex): Don't set `init'.
4047 * prims.cc (JvRunMain): Don't run init functions.
4049 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4051 * java/lang/natClass.cc (initializeClass): Set state before
4052 resolving constants.
4054 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4055 (STATE_RESOLVED): New macro.
4056 (initializeClass): Call resolveConstants.
4057 (hackRunInitializers): Don't call resolveConstants.
4058 (_Jv_FindArrayClass): Move short-circuit return for primitive
4059 element types earlier in function.
4061 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4063 * prims.cc (no_memory): New global.
4064 (_Jv_makeUtf8Const): Throw no_memory.
4065 (_Jv_AllocObject): Likewise.
4066 (_Jv_NewObjectArray): Likewise.
4067 (_Jv_NewPrimArray): Likewise.
4068 (JvRunMain): Initialize no_memory.
4070 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4072 * java/io/FileInputStream.java: Corrected date comment.
4073 * java/io/SequenceInputStream.java: Rewritten.
4075 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4077 * java/lang/FirstThread.java (die): New method.
4078 * java/lang/natFirstThread.cc (die): Removed.
4080 (run): Use `DIE', not `die'.
4082 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4084 * java/io/CharArrayReader.java (read): Move check into synchronized
4085 block to prevent a close while in progress.
4088 * java/io/PushbackReader.java (read): Ditto.
4091 * java/io/StringReader.java (mark): Ditto.
4096 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4098 * java/io/PipedInputStream.java: Updated status.
4099 (connect): Added code to prevent infinite recursion and to
4100 differentiate exception causes.
4101 (read): Added code to differentiate exception causes.
4102 (receive): Made exception pass string with the cause.
4104 * java/io/PipedOutputStream.java: Updated status.
4105 (connect): Added code to call connect at the other end of the pipe.
4107 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4109 * java/io/PipedInputStream.java (connect): Throw exception if
4110 already connected to the same output stream.
4111 (read): Do bounds checking first.
4113 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4115 * java/io/PipedInputStream.java: Added private boolean outClosed.
4116 (available): Removed check if output stream is open.
4117 (close): Mark the buffer as empty so available returns 0.
4118 (read): Check if the output stream was closed and then return EOF
4119 when the buffer is empty.
4120 (receive): Mark the output stream as closed when passed a -1.
4122 * java/io/PipedOutputStream.java (close): Notify the input stream
4123 that there's no more data coming.
4124 (connect): Added a FIXME comment to note more coordination needed
4125 with PipedInputStream.
4126 (flush): Added a FIXME comment to mark what this method might do
4129 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4131 * java/io/PipedInputStream.java: Rewritten.
4133 1998-10-30 Tom Tromey <tromey@cygnus.com>
4135 * java/lang/Throwable.java: Rewrote from scratch.
4137 * java/lang/Class.h (Class): Don't mention newMultiArray.
4138 * prims.cc (newMultiArray): Removed.
4139 (_Jv_NewMultiArray): Removed.
4140 (newArray): Removed.
4141 (new_multi_array): New function.
4142 (_Jv_NewMultiArray): Rewrote from scratch.
4144 * include/javaprims.h: Regenerated class declarations.
4145 * classes.pl (scan): Don't declare PrimClass.
4146 * include/cni.h (JvPrimClass): Use new names for classes.
4147 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4148 added _Jv_PrimClass.
4149 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4150 (_Jv_initPrimClass): Removed.
4151 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4152 (_Jv_AllocObject): Added comment.
4153 (_Jv_NewObjectArray): Likewise.
4154 (_Jv_NewPrimArray): Likewise.
4156 1998-10-29 Tom Tromey <tromey@cygnus.com>
4158 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4159 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4161 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4163 * java/lang/natObject.cc (init): New global.
4164 (sync_init): Call _Jv_InitializeSyncMutex if required.
4166 * Makefile.in: Rebuilt.
4167 * Makefile.am (nat_headers): Added ClassLoader.h.
4168 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4169 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4170 internalAddClass, lookupArray no longer friends.
4171 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4172 _Jv_FindArrayClass now friends.
4173 * java/lang/natClass.cc (HASH_LEN): New macro.
4174 (HASH_UTF): Likewise.
4175 (loaded_classes): New global.
4176 (_Jv_FindClass): New function.
4177 (ClassClass): New define.
4178 (_Jv_FindClassInCache): New function.
4179 (_Jv_RegisterClass): Likewise.
4180 (_Jv_NewClass): Likewise.
4182 (ObjectClass): New define.
4183 (CloneableClass): New define.
4184 * prims.cc (_Jv_FindClass): Removed.
4185 (simpleLookupClass): Removed.
4186 (insertClass): Removed.
4187 (CLASSHASHSZ): Removed.
4188 (classPool): Removed.
4189 (_Jv_RegisterClass): Removed.
4190 (internalAddClass): Removed.
4191 (ClassClass): Removed.
4192 (RuntimeClass): Removed.
4193 (lookupArray): Removed.
4194 (CloneableClass): Removed.
4195 (CLASSMAXSIG): Removed.
4196 Rearranged file to group related functions together.
4197 (_Jv_IsInstanceOf): Moved to natClass.cc.
4198 (abort_final): Removed.
4199 Removed some unused includes.
4200 (classFromSig): Removed.
4201 (_Jv_FindClassFromSignature): New function.
4202 (_Jv_initPrimClass): Renamed.
4203 (getClass): Removed.
4205 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4207 * java/io/FileDescriptor.java (finalize): Throws IOException
4208 instead of Throwable.
4210 * java/io/FileInputStream.java: Rewritten.
4212 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4213 at the end of a comment.
4215 1998-10-29 Tom Tromey <tromey@cygnus.com>
4217 * include/javaprims.h: Regenerated class declarations.
4218 * classes.pl (scan): Don't special-case ClassLoader.
4220 * prims.cc (processClass): Removed.
4221 (_Jv_InitClass): Removed.
4222 Removed all CSTATE_ macros.
4223 (resolveConstants): Removed.
4225 (_Jv_NewMultiArray): Cleaned up.
4226 * Makefile.in: Rebuilt.
4227 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4228 * java/lang/Class.h (Class): Declare new methods. processClass no
4230 * java/lang/Class.java (hackTrampoline): New method.
4231 (initializeClass): Declare.
4232 (hackRunInitializers): Declare.
4233 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4234 (initializeClass): New method.
4235 (hackRunInitializers): New method.
4236 (init_name, void_signature): Moved from prims.cc.
4237 (_Jv_InitClass): New function.
4238 (isAssignableFrom): Don't call processClass.
4239 (STATE_NOTHING): New macro.
4240 (resolveConstants): New function.
4242 (ErrorClass): New define.
4244 * java/lang/Class.java (getClassLoader): Declare.
4245 * java/lang/ClassLoader.java: Rewrote from scratch.
4247 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4248 AbstractMethodError.h, IllegalAccessError.h,
4249 NoClassDefFoundError.h.
4250 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4251 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4252 longer static. Changed return type.
4253 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4254 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4255 * prims.cc (findMethodLocal): Removed.
4256 (processClass): Use _Jv_GetMethodLocal.
4258 1998-10-28 Tom Tromey <tromey@cygnus.com>
4260 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4261 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4263 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4264 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4266 * include/jni.h: Added copyright header.
4267 * include/javaprims.h: Added copyright header.
4268 * include/java-field.h: Added copyright header.
4269 * include/java-array.h: Added copyright header.
4270 * include/cni.h: Added copyright header.
4272 * include/javaprims.h: Regenerated class declarations using
4273 classes.pl; now they are complete.
4274 * classes.pl: New file.
4276 * java/lang/natMath.cc: Include <config.h>.
4277 * java/lang/reflect/natField.cc: Include <config.h>.
4278 * java/util/NativeUtil.java: Removed.
4279 * Makefile.in: Rebuilt.
4280 * Makefile.am (nat_headers): Added Math.h.
4281 * java/lang/Math.h: Removed.
4282 * java/util/natGregorianCalendar.cc: Added copyright header.
4284 * java/lang/natFloat.cc: Added copyright header.
4285 * java/lang/Byte.java: Added copyright header.
4286 * java/lang/Void.java: Added copyright header.
4287 * java/lang/Short.java: Added copyright header.
4289 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4291 * include/javaprims.h (java::io): Added bunch of missing classes.
4293 * java/io/DataInputStream.java (readLine): Added a special case
4294 for handling BufferedInputStream data to reduce the likelihood
4295 of a pushback error.
4296 (skipBytes): Added code to handle negative number of skip bytes.
4298 * java/io/StreamTokenizer.java: Rewritten.
4300 1998-10-28 Tom Tromey <tromey@cygnus.com>
4302 * java/util/natGregorianCalendar.cc (computeFields): Call
4303 getRawOffset as a method.
4305 * include/javaprims.h (java::io): Added FilterOutputStream.
4306 * Makefile.in: Rebuilt.
4307 * Makefile.am (nat_headers): Added PrintStream.h,
4308 FilterOutputStream.h.
4309 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4311 (die): New function.
4312 (run): Die if `main' not found, is not public, or is not static.
4314 * boehm.cc (_Jv_MarkObj): Use new field names.
4315 * include/java-field.h (JvGetFirstInstanceField): Use new field
4317 (JvNumInstanceFields): Likewise.
4318 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4319 (getInterfaces): Likewise.
4320 * prims.cc (CLASS_CONSTANTS): Removed.
4321 (CLASS_CONST_SIZE): Likewise.
4322 (CLASS_CONST_TAG): Likewise.
4323 (CLASS_CONST_DATA): Likewise.
4324 (CLASS_CONST_UTF8): Likewise.
4325 (WORD2UTF): Likewise.
4326 (CLASS_CLASS): Likewise.
4327 (CLASS_PRIM_SIG): Likewise.
4328 (CLASS_ARRAY_CACHE): Likewise.
4329 (HASH_CHARS): Likewise.
4330 (hashClassName): Likewise.
4331 Many changes to use new field names.
4332 * java/lang/Class.h (Class): Renamed fields to track compiler.
4334 1998-10-27 Tom Tromey <tromey@cygnus.com>
4336 * java/lang/natClass.cc: Use #pragma implementation.
4337 (getComponentType): Moved into header.
4338 (getModifiers): Likewise.
4339 (getName): Likewise.
4340 (getSuperclass): Likewise.
4341 (isArray): Likewise.
4342 (isPrimitive): Likewise.
4343 * include/jvm.h (_Jv_FindClass): Declare.
4344 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4345 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4346 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4347 * java/lang/Class.h: Rewrote from scratch.
4348 * prims.cc: Many changes to work with new Class.h.
4349 * include/java-field.h (CLASS_FIELDS): Removed.
4350 (CLASS_SFIELDS): Likewise.
4351 (CLASS_IFIELDS): Likewise.
4352 (CLASS_NFIELDS): Likewise.
4353 (CLASS_NIFIELDS): Likewise.
4354 (CLASS_NSFIELDS): Likewise.
4355 (CLASS_FSIZE): Likewise.
4356 (JvGetFirstInstanceField): Rewrote.
4357 (JvNumInstanceFields): Likewise.
4359 * java/lang/Object.h: Added copyright comment.
4361 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4363 * java/text: New package directory.
4364 * java/text/FieldPosition.java: New class.
4365 * java/text/ParsePosition.java: New class.
4366 * java/text/ParseException.java: New Exception class.
4367 * java/text/Format.java: New class.
4368 * java/text/NumberFormat.java: New (empty placeholder) class.
4369 * java/text/DateFormatSymbols.java: New class (no Locales support).
4370 * java/text/DateFormat.java: New Format class (incomplete).
4371 * java/text/SimpleDateFormat.java: New DateFormat class.
4373 * include/javaprims.h (java::test): Added new package and classes.
4374 * java/util/Calendar.java (clone): New method.
4375 * java/util/Date.java (toString): Added non-native implementation.
4376 (parse): Made public instead of synchronized.
4377 * java/util/natDate.cc (toString): Removed.
4378 * java/util/natGregorianCalendar.cc (computeFields):
4379 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4381 1998-10-27 Tom Tromey <tromey@cygnus.com>
4383 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4385 * prims.cc (lookupArray): Added explanatory comment.
4386 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4387 class. Mark the class of each object.
4388 (_Jv_MarkArray): Mark the object's class.
4390 * configure: Rebuilt.
4391 * configure.in: Create java-gc.h.
4392 * include/boehm-gc.h: New file.
4393 * include/no-gc.h: New file.
4394 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4396 * java/lang/Object.h: Include java-gc.h.
4397 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4398 friends, if defined.
4399 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4401 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4403 1998-10-26 Tom Tromey <tromey@cygnus.com>
4405 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4406 paragraph separators, not numbers.
4408 * java/io/Writer.java (write): Removed write(char) to avoid
4410 * java/util/Properties.java: Rewrote from scratch.
4411 * include/javaprims.h (java::io): Added PrintWriter,
4412 BufferedWriter, PushbackReader.
4414 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4416 * java/lang/System.java: exit() is a static method.
4418 1998-10-26 Tom Tromey <tromey@cygnus.com>
4420 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4422 (_Jv_NewStringUtf8Const): Likewise.
4423 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4424 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4426 * java/lang/Object.h (Object): Add mark_array as friend function.
4427 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4428 _Jv_AllocBytes, to ensure that header is marked.
4429 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4431 (mark_array): Push sync_info field for array.
4433 1998-10-24 Tom Tromey <tromey@cygnus.com>
4435 * java/lang/String.java (String): Updated for StringBuffer
4437 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4439 * java/lang/StringBuffer.java: Renamed fields to conform to
4440 serialization spec: buffer->value, next->count, copy->shared.
4442 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4444 * java/util/TimeZone.java: New class.
4445 * java/util/SimpleTimeZone.java: New class.
4446 * java/util/Locale.java: New file.
4447 * java/util/Calendar.java: Make almost complete.
4448 * java/util/GregorianCalendar.java
4449 * java/util/natGregorianCalendar.cc: New file.
4450 * java/util/Date.java: Re-written from scratch.
4451 * java/util/natDate.cc (setTime): Removed - no longer native.
4452 * include/javaprims.h (java::util): Add new classes.
4453 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4454 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4456 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4458 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4459 returning it as a jint.
4461 1998-10-23 Tom Tromey <tromey@cygnus.com>
4463 * prims.cc (arg_vec, main_group, main_thread): New globals.
4464 (JvRunMain): Use them.
4466 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4468 * java/io/DataInputStream.java: Rewritten.
4470 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4471 tertiary bytes with 0x80 per spec.
4473 1998-10-23 Tom Tromey <tromey@cygnus.com>
4475 * java/lang/String.java (init): Changed name of `copy' argument.
4476 * java/lang/natString.cc (init): Inverted sense of `copy'
4479 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4480 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4481 * boehm.cc (ObjectClass): New define.
4482 (ClassClass): Likewise.
4483 (mark_obj): Special-case Object and Class.
4485 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4487 * java/util/BitSet.java: Rewrote from scratch.
4489 * prims.cc (lookupArray): Removed useless cast.
4491 * java/lang/natObject.cc: Use `#pragma implementation'.
4493 * java/lang/String.java (init): Added `copy' argument.
4494 (String): Look in StringBuffer to find char array.
4495 * java/lang/natString.cc (init): Added `copy' argument.
4496 * java/lang/StringBuffer.java: Rewrote from scratch.
4498 * java/lang/Compiler.java: Rewrote from scratch.
4499 * java/lang/Throwable.java: Don't use NativeLang.
4500 * include/javaprims.h (java::lang): Don't mention NativeLang.
4501 * java/lang/Process.java: Rewrote from scratch.
4502 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4504 (currentClassLoader): Likewise.
4505 (currentLoadedClass): Likewise.
4506 * java/lang/natClass.cc (getClassLoader): Commented out.
4507 * java/lang/Class.java (getClassLoader): Commented out.
4508 * java/lang/Compiler.java: Removed.
4509 * java/lang/NativeLang.java: Removed.
4511 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4512 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4513 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4514 (_Jv_hashUtf8String): Now static.
4515 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4516 name of return type.
4518 * java/lang/Class.h (Class): Declare checkMemberAccess.
4519 * Makefile.in: Rebuilt.
4520 * Makefile.am (nat_headers): Added Member.h.
4521 * java/lang/natClass.cc: Include Member.h.
4522 (getDeclaredClasses): Call checkMemberAccess.
4523 * java/lang/Class.java (checkMemberAccess): Call
4524 SecurityManager.checkMemberAccess.
4526 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4528 * java/lang/SecurityManager.java: Rewritten.
4530 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4532 * java/applet/Applet.java, java/applet/AppletContext.java,
4533 java/applet/AppletStub.java, java/applet/AudioClip.java,
4534 java/awt/AWTError.java, java/awt/AWTException.java,
4535 java/awt/BorderLayout.java, java/awt/Button.java,
4536 java/awt/Canvas.java, java/awt/CardLayout.java,
4537 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4538 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4539 java/awt/Color.java, java/awt/Component.java,
4540 java/awt/Container.java, java/awt/Dialog.java,
4541 java/awt/Dimension.java, java/awt/Event.java,
4542 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4543 java/awt/Font.java, java/awt/FontMetrics.java,
4544 java/awt/Frame.java, java/awt/Graphics.java,
4545 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4546 java/awt/GridLayout.java, java/awt/Image.java,
4547 java/awt/Insets.java, java/awt/Label.java,
4548 java/awt/LayoutManager.java, java/awt/List.java,
4549 java/awt/MediaTracker.java, java/awt/Menu.java,
4550 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4551 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4552 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4553 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4554 java/awt/TextArea.java, java/awt/TextComponent.java,
4555 java/awt/TextField.java, java/awt/Toolkit.java,
4556 java/awt/Window.java, java/awt/image/ColorModel.java,
4557 java/awt/image/CropImageFilter.java,
4558 java/awt/image/DirectColorModel.java,
4559 java/awt/image/FilteredImageSource.java,
4560 java/awt/image/ImageConsumer.java,
4561 java/awt/image/ImageFilter.java,
4562 java/awt/image/ImageObserver.java,
4563 java/awt/image/ImageProducer.java,
4564 java/awt/image/IndexColorModel.java,
4565 java/awt/image/MemoryImageSource.java,
4566 java/awt/image/PixelGrabber.java,
4567 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4568 java/awt/peer/CanvasPeer.java,
4569 java/awt/peer/CheckboxMenuItemPeer.java,
4570 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4571 java/awt/peer/ComponentPeer.java,
4572 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4573 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4574 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4575 java/awt/peer/MenuBarPeer.java,
4576 java/awt/peer/MenuComponentPeer.java,
4577 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4578 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4579 java/awt/peer/TextAreaPeer.java,
4580 java/awt/peer/TextComponentPeer.java,
4581 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4582 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4583 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4584 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4585 java/net/MalformedURLException.java, java/net/NativeNet.java,
4586 java/net/ProtocolException.java, java/net/ServerSocket.java,
4587 java/net/Socket.java, java/net/SocketException.java,
4588 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4589 java/net/URL.java, java/net/URLConnection.java,
4590 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4591 java/net/URLStreamHandlerFactory.java,
4592 java/net/UnknownHostException.java,
4593 java/net/UnknownServiceException.java: Removed.
4595 1998-10-22 Tom Tromey <tromey@cygnus.com>
4597 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4598 finalizer is not Object.finalize.
4599 (internalAddClass): Don't set `final' member of class.
4600 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4601 other places that know about finalize() location.
4602 * java/lang/Class.h (Class): Removed `final' field.
4604 * aclocal.m4, configure: Rebuilt.
4605 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4606 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4608 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4609 * Makefile.in: Rebuilt.
4610 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4612 1998-10-21 Tom Tromey <tromey@cygnus.com>
4614 * java/lang/Object.java (finalize): Move to be first method in
4617 * configure: Rebuilt.
4618 * configure.in (GCINCS): Include contents of boehm-cflags file.
4620 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4622 * java/lang/ArrayIndexOutOfBoundsException.java
4623 (ArrayIndexOutOfBoundsException): Fixed string literal.
4624 * java/lang/StringIndexOutOfBoundsException.java
4625 (StringIndexOutOfBoundsException): Fixed string literal.
4627 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4629 * natFileDescriptorEcos.cc added.
4630 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4632 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4634 * acconfig.h: test for __int32_t and __uint32_t added.
4635 * include/config.h.in: test for __int32_t and __uint32_t added.
4636 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4637 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4638 * configure.in: test for __int32_t and __uint32_t added.
4639 * configure: test for __int32_t and __uint32_t added.
4641 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4643 * configure.in: Test for --enable ecos and link
4644 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4645 natFileDescriptorPosix.cc
4647 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4649 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4651 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4654 * java/io/CharArrayReader.java (close): Synchronize on lock
4655 object per Reader contract.
4656 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4657 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4658 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4659 Ensure that arg passed in isn't negative.
4661 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4662 constructing the superclass.
4664 * java/io/PushbackReader.java (close): Synchronize on lock
4665 object per Reader contract.
4666 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4667 (ready): Synchronize on lock obj. Throw IOException if reader
4669 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4670 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4671 Ensure that arg passed in isn't negative.
4672 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4674 * java/io/StringReader.java: Created.
4676 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4678 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4680 (read): Removed synchronized modifier to match JCL.
4681 (reset): Removed synchronized modifier to match JCL.
4682 (skip): Removed synchronized modifier to match JCL.
4684 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4686 * java/io/PushbackReader.java (PushbackReader): Made
4687 constructors public.
4689 1998-10-17 Tom Tromey <tromey@cygnus.com>
4691 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4692 constructors public.
4694 1998-10-16 Anthony Green <green@cygnus.com>
4696 * aclocal.m4, configure: Rebuilt.
4697 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4699 * configure.host: Rewrote.
4700 * Makefile.in: Rebuilt.
4701 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4702 (AM_CFLAGS): New macro.
4703 ($(c_files)): Use COMPILE macro.
4704 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4705 automake problem(s).
4707 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4709 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4711 * java/io/CharArrayReader.java: Created.
4713 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4715 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4716 size check to allow 0 per JCL.
4718 * java/io/PushbackReader.java: Created.
4720 1998-10-16 Tom Tromey <tromey@cygnus.com>
4722 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4723 <sys/time.h> includes.
4724 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4725 * include/no-threads.h: Conditionalize <unistd.h> include on
4728 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4730 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4733 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4735 * java/io/FilterReader.java: Created.
4737 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4739 * java/io/PushbackInputStream.java: Rewritten.
4741 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4742 that size passed to constructor is legal.
4743 (read): Check that args passed in are legal.
4744 (skip): Rewritten to get rid of the temporary buffer.
4745 (refill): Added marklimit check to grow the buffer.
4747 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4749 (bytesAvail): Removed.
4750 (read): Changed bytesAvail to Math.min.
4751 (skip): Changed bytesAvail to Math.min.
4753 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4754 from the throws clause.
4755 (skip): Rewritten to use a temporary buffer.
4757 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4759 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4762 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4764 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4765 to write the double one word at a time.
4767 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4769 * java/io/BufferedInputStream.java: Rewritten.
4771 1998-10-12 Tom Tromey <tromey@cygnus.com>
4773 * jni.cc: Include config.h and stddef.h.
4775 * java/lang/Class.h (_dispatchTable): Removed again.
4776 Removed all ACC_* defines again.
4778 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4780 * Makefile.am (nat_files): Add netField.o.
4781 (libjava_a_SOURCES): Add jni.cc.
4782 (java/lang/reflect/Field.h): New rule.
4783 * Makefile.in: Re-generated.
4784 * include/javaprims.h: Add some extra class and typedefs.
4785 * include/jni.h: New file.
4788 * include/java-field.h: New file.
4789 * include/jvm.h: #include <java-field.h>.
4790 * boehm.cc: #include <java-field.h>.
4791 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4792 * java/lang/reflect/Member.java: New class.
4793 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4794 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4796 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4798 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4799 testsuite/Makefile.in: Rebuilt.
4800 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4801 * configure.host: Created.
4803 1998-10-10 Tom Tromey <tromey@cygnus.com>
4805 * java/lang/natObject.cc (sync_init): Always allocate a new
4808 1998-10-09 Tom Tromey <tromey@cygnus.com>
4810 * java/io/ByteArrayInputStream.java (mark): Renamed from
4813 * java/io/FileOutputStream.java (finalize): Removed.
4814 * java/io/FileDescriptor.java (finalize): New method.
4816 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
4818 * ByteArrayInputStream.java: Corrected status comment.
4820 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
4822 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4824 1998-10-08 Tom Tromey <tromey@cygnus.com>
4826 * prims.cc (lookupArray): Use static array to initialize list of
4829 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
4831 * prims.cc (lookupArray): Initialize the msize for new
4834 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
4836 * configure: Rebuilt.
4837 * configure.in: Check for fsync and sleep.
4838 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4840 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4841 HAVE_SLEEP. Include config.h.
4843 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4844 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4847 1998-10-08 Tom Tromey <tromey@cygnus.com>
4849 * java/io/natFile.cc: Don't include SecurityManager.h.
4850 (performList): Renamed.
4851 (performMkdir): Likewise.
4852 (performRenameTo): Likewise.
4853 (performDelete): Likewise.
4855 * java/io/File.java (performDelete): Renamed from natDelete.
4856 (list): Now written in Java.
4857 (performList): New method.
4858 (performMkdir): New method.
4859 (mkdir): Now written in Java.
4860 (performRenameTo): New method.
4861 (renameTo): Now written in Java.
4863 1998-10-06 Tom Tromey <tromey@cygnus.com>
4865 * Makefile.in: Rebuilt.
4866 * Makefile.am (ETAGS_ARGS): New macro.
4867 (TAGS_DEPENDENCIES): Likewise.
4869 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
4871 * Makefile.in: Rebuilt.
4872 * Makefile.am: Use -classpath option with javac.
4874 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
4876 * java/io/FileOutputStream.java (finalize): Call
4879 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
4881 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
4883 * java/lang/mprec.c: Ditto.
4885 * java/lang/mprec.h: Include math.h for HUGE_VAL when
4888 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
4890 * java/io/InputStream.java (skip): Make local var i a long.
4892 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
4894 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
4895 * prims.cc (lookupArray): Use memcpy, not memmove.
4896 * include/config.h.in: Rebuilt.
4897 * acconfig.h (HAVE_MEMCPY): Added.
4898 * configure: Rebuilt.
4899 * configure.in: Check for memcpy again.
4901 * java/io/RandomAccessFile.java (RandomAccessFile): Use
4902 String.compareTo, not ==.
4904 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
4905 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
4906 * java/lang/natObject.cc (struct _dispatchTable): Removed.
4907 * include/jvm.h (struct _Jv_DispatchTable): New structure.
4908 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
4909 into new array's dtable.
4910 (_Jv_AllocObject): Use _Jv_DispatchTable.
4911 (_Jv_NewPrimArray): Likewise.
4912 (_Jv_NewObjectArray): Likewise.
4914 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4916 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
4917 offending index value.
4918 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
4920 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
4921 * java/lang/Throwable.java: (Throwable): fixed argument to this().
4923 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
4925 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
4927 * java/io/OutputStream.java (write): Use off and len parameters to
4928 output partial byte array.
4930 * java/io/BufferedReader.java, java/io/FileReader.java,
4931 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
4932 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
4933 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
4934 java/io/Writer.java: Added COPYRIGHT-TBD comment.
4936 * include/javaprims.h (java::lang): Added
4937 ExceptionInInitializerError, IllegalStateException,
4938 NoSuchFieldException, and UnsupportedOperationException.
4940 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
4942 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
4945 * include/java-array.h (__JArray): Added clone method.
4946 * prims.cc (CloneableClass): New define.
4947 (lookupArray): Initialize array class to indicate that it
4948 implements Cloneable.
4950 * java/lang/Class.h: Removed all ACC_* defines.
4951 * prims.cc: Include Modifier.h.
4952 (_Jv_LookupInterfaceMethod): Use methods in
4953 java.lang.reflect.Modifier, not ACC_ defines.
4955 * java/lang/Class.h (Class): Declare getClasses,
4956 getDeclaredClasses, getDeclaringClass, getModifiers,
4957 * java/lang/Class.java: Rewrote from scratch.
4959 * include/javaprims.h (java::lang): Added reflect and
4961 * Makefile.in: Rebuilt.
4962 * Makefile.am (nat_headers): Added Modifier.h.
4964 * prims.cc (_Jv_IsInstanceOf): Return false if class is
4967 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
4969 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
4970 instead of test and abort.
4972 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
4973 remove compiler warning.
4975 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4977 * java/lang/natDouble.cc: zero terminate string.
4978 * strtod.c: Set errno if no digits are found in fraction.
4980 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
4982 * java/lang/reflect/Modifier.java: New file.
4984 * java/lang/VirtualMachineError.java: Rewrote from scratch.
4985 * java/lang/VerifyError.java: Rewrote from scratch.
4986 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
4987 * java/lang/UnknownError.java: Rewrote from scratch.
4988 * java/lang/StackOverflowError.java: Rewrote from scratch.
4989 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
4990 * java/lang/InternalError.java: Rewrote from scratch.
4991 * java/lang/IllegalAccessError.java: Rewrote from scratch.
4992 * java/lang/ExceptionInInitializerError.java: New file.
4993 * java/lang/Error.java: Rewrote from scratch.
4994 * java/lang/ClassFormatError.java: Rewrote from scratch.
4995 * java/lang/ClassCircularityError.java: Rewrote from scratch.
4996 * java/lang/AbstractMethodError.java: Rewrote from scratch.
4997 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
4998 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
4999 * java/lang/LinkageError.java: Rewrote from scratch.
5000 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5002 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5004 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5005 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5007 * include/cni.h (JvAllocObject): Moved from prims.cc.
5009 * prims.cc (JvAllocObject): Moved to cni.h.
5010 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5011 (finalize_name): Removed.
5013 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5015 * java/lang/Class.h (Class): Added size() method.
5016 * prims.cc (_Jv_MonitorEnter): Removed.
5017 (_Jv_MonitorExit): Removed.
5018 * java/lang/Object.h (JvSyncInfo): Removed.
5019 * Makefile.in: Rebuilt.
5020 * Makefile.am (nat_headers): Added Cloneable.h,
5021 CloneNotSupportedException.h.
5022 * java/lang/Object.h: Rewrote.
5023 * java/lang/natObject.cc: Rewrote from scratch.
5024 * java/lang/Object.java: Rewrote from scratch.
5026 * java/io/natFile.cc: Conditionally include <dirent.h>.
5027 (list): If no <dirent.h>, always return NULL.
5028 * configure: Rebuilt.
5029 * configure.in: Check for dirent.h.
5031 * prims.cc (lookupArray): Don't use sprintf.
5033 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5040 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5041 name conflict with method.
5043 * include/javaprims.h (java::util): Added HashtableEntry.
5045 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5047 * java/util/Hashtable.java: Rewritten.
5049 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5051 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5055 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5058 * posix-threads.cc (_Jv_CondWait): Now returns int.
5059 * include/javaprims.h (java::lang): Added
5060 IllegalMonitorStateException.
5061 * Makefile.in: Rebuilt.
5062 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5063 * include/no-threads.h (_Jv_CondDestroy): Removed.
5064 (_Jv_MutexDestroy): Removed.
5065 (_Jv_CondWait): Now returns int.
5066 (_Jv_CondNotify): Likewise. Added mutex argument.
5067 (_Jv_CondNotifyAll): Likewise.
5068 (_Jv_MutexLock): Always succeed.
5069 (_Jv_MutexUnlock): Likewise.
5070 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5071 (_Jv_HaveMutexDestroy): Define.
5072 (_Jv_CondNotify): Now returns int. Added mutex argument.
5073 (_Jv_CondNotifyAll): Likewise.
5074 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5075 (_Jv_MutexDestroy): Removed.
5076 (_Jv_CondWait): Now returns int.
5077 (_Jv_CondNotify): Likewise. Added mutex argument.
5078 (_Jv_CondNotifyAll): Likewise.
5079 * java/lang/natObject.cc (finalize_sync_info): New function.
5080 (init_mutex): Initialize `init' and register finalizer if
5083 (init_mutex): Use it.
5085 (notifyAll): Use it.
5087 (notify): Throw IllegalMonitorStateException on failure.
5088 (notifyAll): Likewise.
5089 (wait): Likewise. Also, throw InterruptedException if
5091 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5092 InterruptedException.h, IllegalArgumentException.h.
5093 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5095 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5096 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5097 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5098 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5099 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5100 * quick-threads.cc: Renamed all `JvPriv' functions.
5101 * prims.cc: Renamed all `JvPriv' functions.
5102 * posix-threads.cc: Renamed all `JvPriv' functions.
5103 * nogc.cc: Renamed all `JvPriv' functions.
5104 * no-threads.cc: Renamed all `JvPriv' functions.
5105 * boehm.cc: Renamed all `JvPriv' functions.
5106 * include/quick-threads.h: Renamed all `JvPriv' functions.
5107 * include/posix-threads.h: Renamed all `JvPriv' functions.
5108 * include/no-threads.h: Renamed all `JvPriv' functions.
5109 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5111 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5113 (JvPrivCondNotify): Do nothing.
5114 (JvPrivCondNotifyAll): Do nothing.
5116 * prims.cc (processClass): Handle case where state is
5119 * java/lang/natFirstThread.cc: Include <stdlib.h>
5121 * configure: Rebuilt.
5122 * configure.in: Fixed sense of --enable-libjava-debug.
5124 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5125 it can be used afterward by the assertion.
5127 * configure: Rebuilt.
5128 * configure.in: When cross-compiling, assume alloca.
5130 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5131 __builtin_alloca (autoconf docs are wrong here).
5133 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5135 (available): Use `FD_ZERO' (typo fix).
5137 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5139 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5140 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5142 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5143 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5146 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5148 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5150 * java/lang/natDouble.cc: Declare alloca safely.
5152 * configure, include/config.h.in: Rebuilt.
5153 * configure.in: Add alloca check.
5155 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5157 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5158 condition while calling notify.
5159 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5160 (interrupt): Hold mutex for interrupt condition while calling
5163 * java/lang/natString.cc (init): Allocate and try to read `count'
5164 characters, not `count - offset' characters.
5166 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5167 Correctly compute `count'.
5169 * java/lang/Boolean.java (getBoolean): Return false if property
5172 * java/lang/System.java (setProperties): Set prop_init.
5174 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5176 * java/io/PrintStream.java (println): Use line.separator, not
5178 * java/lang/System.java (out, err): Make both autoflush streams.
5179 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5181 * include/config.h.in: Rebuilt.
5182 * acconfig.h (HAVE_MEMCPY): Removed.
5183 * configure: Rebuilt.
5184 * configure.in: Never define HAVE_MEMCPY.
5186 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5188 (_Jv_AllocString): Use JvAllocObject again.
5189 * java/lang/Class.h (thread): New field.
5190 (_Jv_AllocString): No longer a friend.
5191 * prims.cc (processClass): Removed dead code. Changed to more
5192 closely follow the Java Language Specification.
5193 (processClass): Return early if already at the right state.
5195 * prims.cc (JvNewStringUTF): Removed.
5196 * include/cni.h (JvNewStringUTF): New function.
5197 (_Jv_NewStringUTF): Declare as `extern "C"'.
5198 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5200 * java/lang/natDouble.cc: Added copyright info and header
5201 comment. Include <stdlib.h>.
5202 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5203 bytes as are chars in string.
5205 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5207 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5211 * java/lang/System.java (init_properties): Now native.
5212 * java/lang/natSystem.cc (init_properties): New method.
5213 Include java/util/Properties.h.
5215 * Makefile.in: Rebuilt.
5216 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5217 OutputStreamWriter.h, ByteArrayInputStream.h,
5218 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5219 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5220 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5221 Properties.h, Hashtable.h, Dictionary.h.
5224 * include/javaprims.h (java::io): Added Reader, Writer,
5225 InputStreamReader, OutputStreamWriter,
5226 UnsupportedEncodingException, ByteArrayInputStream,
5227 ByteArrayOutputStream, EOFException, SyncFailedException,
5228 PushbackInputStream.
5229 (java::lang): Added Cloneable.
5230 (java::util): Added NoSuchElementException, VectorEnumeration,
5231 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5233 * java/io/PipedReader.java: New file.
5235 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5237 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5240 * java/io/io-defs.h: Removed.
5242 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5243 (FileInputStream): Use new constructor. Can throw IOException.
5245 * java/lang/System.java (getProperty): Don't throw
5246 NullPointerException.
5248 * java/io/RandomAccessFile.java: Rewrote from scratch.
5250 * java/io/natFileDescriptor.cc: Include EOFException.h.
5252 (length): New method.
5253 (getFilePointer): New method.
5255 (available): New method.
5256 * java/io/FileDescriptor.java (SET, CUR): New constants.
5257 (seek, length, getFilePointer, read, available): New decls.
5259 * java/io/PipedWriter.java: New file.
5260 * java/io/StringWriter.java: New file.
5261 * java/io/CharArrayWriter.java: New file.
5262 * java/io/CharConversionException.java: New file.
5263 * java/io/BufferedWriter.java: New file.
5264 * java/io/FilterWriter.java: New file.
5265 * java/io/FileWriter.java: New file.
5267 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5268 OutputStreamWriter.h, NullPointerException.h,
5269 ByteArrayInputStream.h, InputStreamReader.h.
5270 (getBytes): New method.
5271 (init): Throw NullPointerException.
5272 (init): New function.
5273 * java/lang/String.java (getBytes): Added missing decl.
5274 (getBytes): New method.
5275 (String): Added byte[]-based constructors.
5276 (copyValueOf): Wrote.
5277 (init): Declare variant which takes byte array and encoding.
5278 Import java.io.UnsupportedEncodingException.
5280 * java/io/File.java: Rewrote from scratch.
5281 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5282 * java/io/FileDescriptor.java: Rewrote from scratch.
5283 * java/io/FilenameFilter.java: Rewrote from scratch.
5285 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5287 * java/io/SyncFailedException.java: New file.
5288 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5289 * java/io/InterruptedIOException.java: Rewrote from scratch.
5290 * java/io/FileNotFoundException.java: Rewrote from scratch.
5291 * java/io/EOFException.java: Rewrote from scratch.
5292 * java/io/IOException.java: Rewrote from scratch.
5293 * java/io/PrintStream.java: Rewrote from scratch.
5294 * java/io/DataOutputStream.java: Rewrote from scratch.
5295 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5296 * java/io/FilterOutputStream.java: Rewrote from scratch.
5297 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5298 * java/io/PipedOutputStream.java: Rewrote from scratch.
5299 * java/io/FileOutputStream.java: Rewrote from scratch.
5300 * java/io/OutputStream.java: Rewrote from scratch.
5301 * java/io/DataOutput.java: Rewrote from scratch.
5303 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5305 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5307 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5309 * configure.in: Add --enable-libjava-debug
5311 * Makefile.am (nat_headers): Add java/lang/Float.h and
5314 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5316 * Makefile.in, configure, include/config.h.in: Rebuilt.
5318 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5320 * java/lang/Float.java: Rewritten
5321 * java/lang/Double.java: Rewritten
5322 * java/lang/natFloat.cc: toString() added.
5323 * java/lang/natDouble.cc: toString() added.
5324 * java/lang/natDouble.cc: doubleValueOf() added.
5325 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5326 java/lang/strtod.c: added.
5327 * ieeefp.h: __sparc added.
5328 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5330 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5332 * include/javaprims.h (java::lang): Added
5333 CloneNotSupportedException.
5335 * java/lang/Object.java (clone): No longer native. Implemented.
5336 * java/lang/natObject.cc (clone): Removed.
5338 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5340 * prims.cc: Don't make definitions `extern "C"'.
5341 (_Jv_RegisterClass): Renamed from registerClass.
5342 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5343 (_Jv_NewArray): Likewise.
5344 (_Jv_NewMultiArray): Likewise.
5345 (_Jv_CheckCast): Likewise.
5346 (_Jv_LookupInterfaceMethod): Likewise.
5347 (_Jv_CheckArrayStore): Likewise.
5348 (_Jv_RegisterClass): Likewise.
5350 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5351 * configure: Rebuilt.
5352 * configure.in: Don't check for fmod; it is provided by the fdlibm
5354 * prims.cc (fmod): Removed.
5356 * java/lang/natString.cc (charAt): Use _Jv_uint.
5357 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5358 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5359 (equalUtf8Consts): Likewise.
5360 (internalAddClass): Use _Jv_uint.
5361 (processClass): Likewise.
5362 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5363 (_Jv_uint): Renamed from uint32.
5364 (struct _Jv_Utf8Const): Changed members to use new type names.
5366 * configure: Rebuilt.
5367 * configure.in: Don't check for memcpy. Require memmove and a way
5369 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5371 (currentTimeMillis): Don't use #error.
5373 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5375 * java/lang/Math.java: static member random renamed to random_ to
5376 avoid conflict with member function of the same name.
5377 * include/javaprims.h: java.util.Random added.
5379 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5381 * include/java-chartables.h: Regenerated.
5382 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5385 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5387 * java/lang/Math.java: Rewritten.
5388 * java/lang/natMath.cc: New file.
5389 * Files added from fdlibm:
5390 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5391 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5392 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5393 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5394 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5395 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5396 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5397 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5398 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5399 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5400 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5401 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5402 java/lang/k_cos.c, java/lang/sf_ceil.c,
5403 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5404 java/lang/ieeefp.h, java/lang/fdlibm.h
5405 * Makefile.am: rules added for compiling C files from fdlibm.
5407 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5409 * chartables.pl: Minor documentation fixes.
5411 * configure: Rebuilt.
5412 * configure.in: Fixed --help output for --enable-fast-character.
5414 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5416 * configure: Rebuilt.
5417 * configure.in: Recognize --enable-fast-character.
5418 * acconfig.h (COMPACT_CHARACTER): New define.
5419 * include/config.h.in: Rebuilt.
5420 * include/java-chartables.h: New file.
5421 * Makefile.in: Rebuilt.
5422 * Makefile.am (nat_files): Added natCharacter.o.
5423 * java/lang/natCharacter.cc: New file.
5424 * chartables.pl (set_attribute): New function.
5425 (@attributes, @second_attributes): New globals.
5426 ($ROMAN_START, $ROMAN_END): Likewise.
5427 (process_char): Call set_attribute when required.
5428 (print_char): Just print hex value.
5429 (print_block): Generate C++ syntax.
5430 (print_numerics): Likewise.
5431 (print_single_map): Likewise.
5432 (print_all_block): Likewise.
5433 (print_case_table): Likewise.
5434 (print_fast_tables): New function.
5435 Generate C++ code suitable for a header file.
5436 * java/lang/Character.java (table_search): Removed.
5437 (digit_value): Now native.
5438 (getNumericValue): Likewise.
5439 (getType): Likewise.
5440 Removed all automatically-generated tables.
5441 (Tamil_Digit_One): Removed.
5442 (isSpaceChar): Now native.
5443 (isTitleCase): Likewise.
5444 (isLowerCase): Likewise.
5445 (isUpperCase): Likewise.
5446 (toLowerCase): Likewise.
5447 (toTitleCase): Likewise.
5448 (toUpperCase): Likewise.
5449 (isDefined): Fixed sense of test.
5451 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5453 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5455 (regionMatches): Likewise.
5457 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5459 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5461 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5463 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5466 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5469 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5471 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5473 * prims.cc (instanceof_class): Removed.
5474 (instanceof_array): Likewise.
5475 (instanceof): Likewise.
5476 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5477 (_Jv_CheckCast): Likewise.
5478 * java/lang/natClass.cc (isAssignableFrom): New method.
5479 * java/lang/Class.java (isAssignableFrom): Now native.
5481 * include/cni.h (JvThrow): Use `extern inline'.
5482 (JvAllocObject): Likewise.
5483 (JvInitClass): Likewise.
5485 * java/lang/natSystem.cc (arraycopy): Only check class of source
5488 * prims.cc (_Jv_CheckArrayStore): Wrote.
5489 (_Jv_MonitorEnter): Prefer `JvThrow'.
5490 Include ArrayStoreException.h.
5491 (_Jv_CheckCast): Indentation cleanup.
5493 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5495 * chartables.pl: New file.
5496 * java/lang/Character.java: Rewrote from scratch.
5498 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5500 * java/lang/ArithmeticException.java,
5501 java/lang/ArrayIndexOutOfBoundsException.java,
5502 java/lang/ArrayStoreException.java,
5503 java/lang/ClassCastException.java,
5504 java/lang/ClassNotFoundException.java,
5505 java/lang/CloneNotSupportedException.java,
5506 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5507 java/lang/IllegalArgumentException.java,
5508 java/lang/IllegalMonitorStateException.java,
5509 java/lang/IllegalThreadStateException.java,
5510 java/lang/IndexOutOfBoundsException.java,
5511 java/lang/InstantiationException.java,
5512 java/lang/InterruptedException.java,
5513 java/lang/NegativeArraySizeException.java,
5514 java/lang/NoSuchMethodException.java,
5515 java/lang/NullPointerException.java,
5516 java/lang/NumberFormatException.java,
5517 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5518 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5520 * java/lang/IllegalStateException.java,
5521 java/lang/NoSuchFieldException.java,
5522 java/lang/UnsupportedOperationException.java: Created.
5524 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5526 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5527 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5529 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5531 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5533 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5535 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5537 * Makefile.in: Rebuilt.
5539 * include/javaprims.h (java::lang): Added
5540 StringIndexOutOfBoundsException.
5542 * java/lang/String.java: Added header comment and FIXME comment for
5543 missing constructors/methods.
5544 (endsWith): Adjusted offset into string to look at just the last chars.
5545 Commented out undocumented method.
5547 * java/lang/natString.cc: Added includes for
5548 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5549 (String::init): Throw StringIndexOutOfBoundsException.
5550 (String::charAt): Throw StringIndexOutOfBoundsException.
5551 (String::substring): Throw StringIndexOutOfBoundsException.
5552 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5553 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5554 (String::compareTo): Return difference/offset between chars/strings.
5556 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5558 * java/lang/Boolean.java (TYPE): Added comment.
5560 * java/lang/Byte.java (decode): Added - commented out until dependent
5561 code for Integer is written.
5562 (compareTo): JDK 1.2 methods written.
5563 (hashCode): Added comment to note that values have been verified.
5565 * java/lang/Short.java (decode): Added - commented out until dependent
5566 code for Integer is written.
5567 (compareTo): JDK 1.2 methods written.
5568 (hashCode): Added comment to note that values have been verified.
5570 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5572 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5574 * include/javaprims.h (java::lang): Added VirtualMachineError,
5576 * Makefile.in: Rebuilt.
5577 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5578 VirtualMachineError.h.
5579 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5580 (lookupArray): Likewise.
5581 (makeUtf8Const): Likewise.
5582 (_Jv_AllocObject): Likewise.
5583 (_Jv_NewObjectArray): Likewise.
5584 Include OutOfMemoryError.h.
5586 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5587 to use JvNewStringLatin1.
5589 * java/io/io-defs.h: Include java/lang/IOException.h.
5590 * Makefile.in: Rebuilt.
5591 * Makefile.am (nat_headers): Added
5592 ArrayIndexOutOfBoundsException.h,
5593 ClassFormatError.h,ClassNotFoundException.h,
5594 ClassCircularityError.h, ClassCastException.h,
5595 IncompatibleClassChangeError.h, AbstractMethodError.h,
5596 IllegalAccessError.h, LinkageError.h, Error.h,
5597 NegativeArraySizeException.h, IOException.h.
5598 * include/cni.h (SignalError): Removed declaration.
5599 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5600 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5601 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5602 (newInstance): Likewise.
5603 (forName): Likewise.
5604 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5606 (read): Use JvThrow, not SignalError.
5611 (open_read): Likewise.
5612 (open_write): Likewise.
5615 (newstr): New function.
5616 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5618 (lastModifiedUnchecked): Likewise.
5619 (lengthUnchecked): Likewise.
5620 * include/javaprims.h (sorry): Removed declaration.
5621 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5622 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5623 ClassCastException, IncompatibleClassChangeError,
5624 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5625 * prims.cc (instanceof_array): Use JvFail, not sorry.
5627 Include ArrayIndexOutOfBoundsException.h,
5628 ClassFormatError.h,ClassNotFoundException.h,
5629 ClassCircularityError.h, ClassCastException.h,
5630 IncompatibleClassChangeError.h, AbstractMethodError.h,
5631 IllegalAccessError.h, NegativeArraySizeException.h.
5632 (_Jv_ThrowBadArrayIndex): Implemented.
5633 (JvNewStringUTF): Use JvFail, not sorry.
5634 (_Jv_FindClass): Likewise.
5635 (_Jv_NewArray): Likewise.
5636 (throwException): Removed.
5637 (getClass): Use JvThrow.
5638 (processClass): Likewise.
5639 (_Jv_NewObjectArray): Likewise.
5640 (_Jv_NewMultiArray): Likewise.
5641 (_Jv_CheckCast): Likewise.
5642 (_Jv_LookupInterfaceMethod): Likewise.
5643 (SignalError): Removed.
5644 (getClass): Use _Jv_NewStringUtf8Const to create String.
5646 * java/lang/natSystem.cc (arraycopy): Throw
5647 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5649 * Makefile.in: Rebuilt.
5650 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5652 * include/java-array.h: Mention gcjh, not gjavah.
5654 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5655 (canReadUnchecked): Likewise.
5656 (canWriteUnchecked): Likewise.
5657 (isFileUnchecked): Likewise.
5658 * java/io/natFileDescriptor.cc: Don't include cni.h.
5660 * java/lang/Thread.java (run__): Declare.
5661 * java/lang/natThread.cc (run__): New method, to avoid compiler
5663 (start): Use run__, not run_.
5665 * java/io/io-defs.h: Include cni.h and jvm.h.
5667 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5669 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5670 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5671 to natString.cc (with suitable renaming, inlines etc).
5672 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5673 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5674 * java/lang/String.h: Removed - now generated using gjavah.
5675 * java/lang/String.java: Re-written from scratch. Many native methods.
5676 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5677 * java/lang/natString.cc: Many functions re-written for "compact
5678 strings" representation, or native java.lang.String methods added.
5679 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5680 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5681 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5682 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5683 * include/cni.h: Add inline method.
5684 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5685 * include/javaprims.h: Moved some stuff frm String.h.
5686 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5687 * Makefile.am (nat_header): Added Character.h and String.h.
5688 (String.h): Add new rule.
5690 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5692 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5694 * posix-threads.cc: Include cni.h, jvm.h.
5695 * quick-threads.cc: Include cni.h, jvm.h.
5696 * nogc.cc: Include cni.h, not javaprims.h.
5697 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5698 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5699 include java-assert.h.
5700 * java/lang/natSystem.cc: Include cni.h. Don't include
5702 * java/lang/natRuntime.cc: Include cni.h. Don't include
5704 * prims.cc: Rearranged #include ordering. Don't include
5705 java-array.h or java-assert.h.
5706 * boehm.cc: Include config.h, cni.h.
5707 * exception.cc: Include config.h, cni.h.
5708 * include/jvm.h: Include java-assert.h.
5709 * include/cni.h: Include java/lang/Object.h. Don't include
5710 java-threads.h or java-array.h.
5712 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5714 * java/lang/Boolean.java: Rewritten.
5716 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5718 * java/lang/natFirstThread.cc (main_func): New typedef.
5719 (run): Use main_func, not JvPrivThreadStartFunc.
5720 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5722 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5724 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5727 Can't throw Java exceptions with C++ `throw':
5728 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5729 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5730 (setPriority): Likewise.
5734 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5735 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5737 Can't catch Java exceptions from C++:
5738 * java/lang/natThread.cc (finish_): New method.
5740 * java/lang/Thread.java (run_): Rewrote in Java.
5741 (finish_): New native method.
5743 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5745 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5747 * include/javaprims.h (java::io): Added Serializable.
5749 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5751 * java/util/EmptyStackException.java,
5752 java/util/NoSuchElementException.java: Rewritten.
5754 * java/util/ConcurrentModificationException.java,
5755 java/util/MissingResourceException.java,
5756 java/util/TooManyListenersException.java: Created.
5758 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5760 * include/cni.h (JvThrow): New function.
5761 * include/javaprims.h (_Jv_Throw): Declare.
5763 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5765 * java/util/Observable.java: Rewritten.
5767 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5769 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5770 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5771 Include NullPointerException.h.
5773 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5775 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5776 assignability checks. Don't bother using memcpy.
5778 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5780 * include/quick-threads.h (JvPrivThreadWait): New function.
5781 * include/no-threads.h (JvPrivThreadWait): New function.
5782 * include/posix-threads.h (JvPrivThreadWait): New function.
5783 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5785 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5787 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5788 offsets by size of type that is being copied.
5790 * java/lang/natThread.cc (start): Don't pass `object' argument to
5792 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5793 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5795 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5796 always pass thread as object.
5797 * include/quick-threads.h, include/posix-threads.h,
5798 include/no-threads.h (JvPrivThreadStart): Removed `object'
5801 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5803 * java/util/Dictionary.java: Rewritten.
5805 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5807 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5808 (JvPrivThreadDestroy): Likewise.
5810 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
5812 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5814 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5816 * java/lang/natSystem.cc: Rewrote from scratch.
5817 * java/lang/System.java: Rewrote from scratch.
5818 * java/lang/Class.h (Class): Declare isAssignableFrom.
5819 * include/javaprims.h (java::lang): Added ArrayStoreException,
5820 IndexOutOfBoundsException.
5821 * Makefile.in: Rebuilt.
5822 * Makefile.am (nat_headers): Added ArrayStoreException.h,
5823 IndexOutOfBoundsException.h.
5824 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5825 * include/jvm.h (_Jv_HashCode): New function.
5827 * java/lang/natThread.cc (suspend): Call checkAccess.
5829 * java/lang/Thread.java (setDaemon): Call checkAccess.
5831 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5833 * java/lang/Runtime.java: Rewrote from scratch.
5834 * java/lang/natRuntime.cc: Rewrote from scratch.
5836 * nogc.cc (JvPrivGCTotalMemory): New function.
5837 (JvPrivGCFreeMemory): Likewise.
5838 (total): New global.
5839 (JvPrivAllocObj): Increment total.
5840 (JvPrivAllocArray): Likewise.
5841 (JvPrivAllocBytes): Likewise.
5842 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5843 * boehm.cc (JvPrivGCTotalMemory): New function.
5844 (sum_blocks): Likewise.
5845 (JvPrivGCFreeMemory): Likewise.
5847 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
5849 * include/javaprims.h (java::lang): Added FirstThread.
5850 * java/lang/natFirstThread.cc: New file.
5851 * java/lang/FirstThread.java: New file.
5852 * prims.cc (main_signature): Removed.
5853 (main_name): Removed.
5854 #include FirstThread.h.
5855 * Makefile.in: Rebuilt.
5856 * Makefile.am (TFRIEND): Removed.
5857 (java/lang/Thread.h): Likewise.
5858 (FTFRIEND): New macro.
5859 (java/lang/FirstThread.h): New target.
5860 (nat_files): Added natFirstThread.o.
5861 (nat_headers): Added FirstThread.h.
5862 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
5863 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
5865 * java/lang/Thread.java (setName): Throw IllegalArgumentException
5869 * java/lang/natThread.cc (start): Synchronize the thread.
5870 (stop): Synchronize the thread.
5872 * java/lang/ThreadDeath.java: Rewrote from scratch.
5874 * Makefile.in: Rebuilt.
5875 * Makefile.am (TGFRIEND): New macro.
5876 (java/lang/ThreadGroup.h): New target.
5877 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
5879 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
5881 * nogc.cc: Include config.h.
5883 * java/lang/ThreadGroup.java: Rewrote from scratch.
5885 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5887 * java/lang/Thread.java (checkAccess): Only call in to security
5888 manager if it exists.
5889 (Thread): Don't check access when creating the first thread. Add
5890 this thread to the appropriate ThreadGroup.
5892 * java/lang/natThread.cc (run_): Call uncaughtException method on
5895 * java/lang/Runnable.java: Rewrote from scratch.
5896 * java/lang/Thread.java: Updated copyright comment to correct
5899 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
5901 * java/util/Random.java: Rewritten.
5903 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5905 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
5906 trailing 0 in array[].
5908 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
5910 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
5911 and RUNTESTFLAGS from AM_MAKEFLAGS.
5912 (SUBDIRS): Conditionally include testsuite.
5913 * Makefile.in: Rebuilt.
5915 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
5917 * java/lang/Object.h: Include java-assert.h.
5919 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
5921 * Makefile.am: Add testsuite directory.
5922 * configure.in: Build testsuite/Makefile.
5923 * Makefile.in, configure: Rebuilt.
5925 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5927 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
5928 * include/jvm.h (_Jv_StartFirstThread): Declare.
5930 * include/javaprims.h (java::lang): Added Exception,
5933 * Makefile.in: Rebuilt.
5934 * Makefile.am (nat_headers): Added NullPointerException.h,
5935 InterruptedException.h, IllegalArgumentException.h, Exception.h,
5936 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
5937 (java/lang/Thread.h): New target.
5938 (TFRIEND): New macro
5940 * include/java-assert.h (JvFail): Use 0 and not NULL.
5942 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
5943 instead of assuming we are a friend of Thread.
5944 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
5945 instead of assuming we are a friend of Thread.
5947 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
5949 * java/lang/natThread.cc: Rewrote from scratch.
5950 * java/lang/Thread.java: Rewrote from scratch.
5951 * prims.cc (JvRunMain): Use new Thread constructor.
5952 * include/javaprims.h (java::lang): Added InterruptedException.
5953 * Makefile.in: Rebuilt.
5954 * Makefile.am (nat_headers): Added java/lang/Thread.h.
5955 * java/lang/Thread.h: Removed.
5956 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
5957 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
5959 * posix-threads.cc (JvPrivThreadJoin): Removed.
5960 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
5961 (really_start): Don't notify join_cond.
5962 (JvPrivThreadStart): Added `data' argument.
5963 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
5964 (JvPrivThreadJoin): Likewise.
5965 Use JvFail instead of sorry.
5966 (JvPrivThreadSuspend): Removed.
5967 (JvPrivThreadResume): Removed.
5968 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
5969 (JvPrivThreadJoin): Likewise.
5970 (JvPrivThreadSuspend): Use JvFail.
5971 (JvPrivThreadResume): Likewise.
5972 (JvPrivThreadSuspend): Removed.
5973 (JvPrivThreadResume): Likewise.
5974 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
5975 (JvPrivThread_t): Removed join_mutex, join_cond.
5976 Use JvFail instead of sorry.
5977 (JvPrivThreadSuspend): Removed.
5978 (JvPrivThreadResume): Likewise.
5980 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
5982 * java/util/Observer.java: Rewritten
5983 * java/util/Enumeration.java: Rewritten
5985 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
5987 * java/util/StringTokenizer.java: Rewritten
5988 * java/util/Stack.java: Added COPYRIGHT-TBD comment
5989 * java/util/Vector.java: Added COPYRIGHT-TBD comment
5990 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
5992 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
5994 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
5997 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
5998 Include java-assert.h.
5999 * include/java-assert.h: New file.
6000 * prims.cc (_Jv_Abort): New function.
6001 Include java-assert.h, not assert.h.
6002 (_Jv_MonitorExit): Use JvAssert.
6003 (resolveConstants): Likewise.
6004 (processClass): Likewise.
6005 (JvRunMain): Assert that method is found.
6007 * configure: Rebuilt.
6008 * configure.in: Check for test subdir.
6009 * Makefile.in: Rebuilt.
6010 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6012 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6013 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6015 * prims.cc (resolveConstants): Removed unused variables.
6016 (processClass): Likewise.
6018 * include/quick-threads.h (JvPrivThreadCurrent): Use
6020 * quick-threads.cc (destroy_data): New function.
6021 (JvPrivInitThreads): Create key.
6022 (JvPrivThreadKey): New global.
6023 (JvPrivThreadStart): Use coop_setspecific.
6025 * include/quick-threads.h, include/posix-threads.h,
6026 include/no-threads.h, no-threads.cc, quick-threads.cc,
6027 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6029 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6031 * include/no-threads.h (JvPrivThreadInitData): Don't set
6034 * include/quick-threads.h (JvPrivCondWait): coop function now
6036 (JvPrivThreadJoin): Likewise.
6038 * java/lang/Thread.h (Thread): Updated declaration of
6040 * include/quick-threads.h, include/posix-threads.h: Updated
6041 declaration of JvPrivThreadStart.
6042 * include/no-threads.h (JvPrivThreadStart): Changed definition
6044 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6045 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6046 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6048 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6050 * quick-threads.cc (qthrow): New function.
6051 (JvPrivInitThreads): New function.
6052 (started): New global.
6053 (JvPrivThreadStart): Call coop_start if required.
6054 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6055 (JvPrivThreadDestroy): Likewise.
6056 (JvPrivInitThreads): Removed.
6057 * include/posix-threads.h (JvPrivThreadCancel): Added error
6059 * java/lang/natThread.cc (stop_): Pass exception to
6062 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6064 * include/javaprims.h (java::lang): Added
6065 IllegalArgumentException, IllegalThreadStateException, Math,
6066 NullPointerException, ThreadDeath.
6067 (java::util): Added Enumeration.
6069 * Makefile.in: Rebuilt.
6070 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6072 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6074 (threadsv): Renamed from threads to avoid clash in C++ header.
6075 (groupsv): Likewise.
6076 * include/no-threads.h (JvPrivThreadStart): Removed.
6077 * no-threads.cc (JvPrivThreadStart): New function.
6078 * java/lang/Thread.java (Thread): New constructor for internal use.
6079 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6080 (Thread): Declare constructor.
6081 * prims.cc (JvRunMain): Create the initial Thread and
6083 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6084 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6085 Removed `daemon' argument.
6087 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6088 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6090 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6092 * Makefile.in: Rebuilt.
6093 * Makefile.am (INCLUDES): Include THREADINCS.
6095 * configure: Rebuilt.
6096 * configure.in: Recognize `qt' as a threads package.
6098 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6100 * java/util/Stack.java (pop): Null out topmost node for robustness.
6102 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6104 * java/util/Stack.java: Rewritten.
6105 * java/util/Vector.java (isEmpty): Simplified expression.
6107 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6109 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6110 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6112 * include/java-array.h (JvNewObjectArray): Created inline to
6115 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6118 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6120 * java/util/Vector.java: Rewritten.
6121 * java/io/Serializable.java: Created.
6123 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6125 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6126 Infinity is 1/0, not 1/1.
6128 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6130 * configure: Rebuilt.
6131 * configure.in: Removed duplicate AC_ARG_WITH.
6133 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6135 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6137 (_Jv_InitClass): Renamed from soft_initialise_class.
6138 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6139 (_Jv_CheckCast): Renamed from soft_checkcast.
6140 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6141 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6142 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6143 * include/cni.h (JvInitClass): New function.
6144 (_Jv_InitClass): Renamed from soft_initialise_class.
6146 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6148 * configure: Rebuilt.
6149 * configure.in (CXX): Don't set.
6150 * Makefile.in: Rebuilt.
6151 * Makefile.am (AM_CXXFLAGS): New macro.
6153 * Makefile.in: Rebuilt.
6154 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6155 nogc.o): New target.
6157 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6159 (mark_array): Likewise.
6161 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6163 * java/lang/Class.h (JvMethod): Removed some unused fields.
6164 (JvField.info): Removed unused idx union variant.
6166 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6168 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6171 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6173 * configure.in, configure (CXX): Add -fvtable-thunks.
6175 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6177 * java/lang/Object.java (finalize): Move first.
6178 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6179 (Object): Re-arrange order to match Object.java.
6181 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6183 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6184 * java/lang/natString.cc (hashChars): Likewise.
6186 * prims.cc (RuntimeClass): New macro.
6187 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6189 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6191 * Makefile.in: Rebuilt.
6192 * Makefile.am (AM_MAKEFLAGS): New macro.
6194 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6196 * nogc.cc: Include <javaprims.h>.
6198 * Makefile.in: Rebuilt.
6199 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6201 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6203 * exception.cc (terminate): Removed.
6204 (unexpected): Removed.
6206 * configure: Rebuilt.
6207 * configure.in: Handle case where target subdir is ".".
6209 * configure: Rebuilt.
6210 * configure.in: Compute COMPPATH based on --with-target-subdir
6211 option. Added --with-target-subdir and --with-cross-host. Use
6212 --with-cross-host to determine when a cross compiler is in use.
6214 * Makefile.in: Rebuilt.
6215 * Makefile.am (GJAVAH): Include COMPPATH.
6216 * configure: Rebuilt.
6217 * configure.in: Subst COMPPATH.
6219 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6221 * prims.cc (lockMutex): Removed.
6222 (unlockMutex): Likewise.
6223 (processClass): Lock the class using a JvSynchronize object.
6225 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6227 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6228 (gc_free_fixed): Removed.
6229 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6230 freeing old value of strhash.
6232 * exception.cc (_Jv_type_matcher): Cast first argument to
6235 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6237 * include/java-array.h (jstringArray): New type.
6238 * java/lang/natSystem.cc (setProperty): Removed.
6239 (initProperties): Directly call JvNewStringLatin1 for arguments.
6240 * java/util/natDate.cc: Include java/util/Date.h, not
6243 * java/io/FileDescriptor.java (available): No longer static.
6244 * java/lang/natDouble.cc (Double): Removed class definition.
6245 * include/javaprims.h (java::lang::Number): Declare.
6246 (java::lang::NumberFormatException): Likewise.
6247 (java::io::FilenameFilter): Likewise.
6248 (java::lang::Character): Likewise.
6249 (java::lang::Error): Likewise.
6250 (java::lang::SecurityManager): Likewise.
6251 (java::util::Vector): Likewise.
6252 (java::io::FileNotFoundException): Likewise.
6253 (java::io::IOException): Likewise.
6254 (java::lang::NativeLang): Likewise.
6255 (java::lang::UnsatisfiedLinkError): Likewise.
6256 (java::util::StringTokenizer): Likewise.
6257 (java::io::InputStream, java::io::OutputStream): Likewise.
6258 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6259 (java::util::Hashtable): Likewise.
6260 * Makefile.in: Rebuilt.
6261 * Makefile.am (nat_headers): Added java/lang/Double.h,
6262 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6263 (MOSTLYCLEANFILES): Added nat_headers.
6264 * include/jvm.h: Moved many defines, declarations, and functions
6265 to java/lang/Class.h.
6266 (struct JvSyncInfo): Moved to java/lang/Object.h.
6267 (UTF8_GET): Moved to java/lang/String.h.
6269 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6271 * java/io/io-defs.h: Don't include java-io.h.
6272 * include/java-io.h: Removed.
6273 * include/javaprims.h: Include java::io.
6275 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6277 * include/java-io.h (File): Removed
6278 (FileDescriptor): Likewise.
6280 * java/io/io-defs.h: Include java/io/File.h and
6281 java/io/FileDescriptor.h.
6283 * Makefile.in: Rebuilt.
6284 * Makefile.am (GJAVAH): New macro.
6285 (.class.h): New rule.
6286 (SUFFIXES): Added .h.
6287 (nat_headers): New macro.
6288 ($(nat_headers)): New target.
6289 (BUILT_SOURCES): Added nat_headers.
6291 * include/java-util.h: Removed.
6293 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6295 * include/java-io.h: Changed to avoid java-lang.h.
6296 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6298 * java/lang/natSystem.cc: Include java/lang/System.h, not
6300 * java/lang/natString.cc: Include java/lang/String.h, not
6302 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6304 * java/lang/natClass.cc: Include java/lang/Class.h, not
6306 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6308 * java/lang/natObject.cc: Include java/lang/Object.h, not
6310 * exception.cc: Don't include java-lang.h.
6311 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6312 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6313 * nogc.cc: Don't include java-lang.h.
6314 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6315 * prims.cc (processClass): Don't use `init_type'; just cast to
6317 Include java/lang/Class.h and jvm.h, not java-lang.h.
6318 (JvAllocObject): Wrote single-argument version.
6319 (PrimClass): Inherit from Class.
6320 (initPrimClass): Removed.
6321 * include/java-lang.h: Removed.
6322 * include/jvm.h: Declare struct _dispatchTable.
6323 * include/cni.h: Don't declare _Jv_MonitorEnter,
6324 _Jv_MonitorExit, struct _dispatchTable.
6325 * include/javaprims.h: Moved all typedefs here, from cni.h.
6326 * java/lang/Class.h: New file.
6327 * include/java-array.h: New file.
6328 * java/lang/Object.h: New file.
6330 * prims.cc (classFromSig): Now static.
6332 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6334 * include/cni.h: Don't mention soft_new.
6335 * include/java-lang.h (Object): Don't mention soft_new. Mention
6336 _Jv_NewPrimArray, not newPrimArray.
6337 * prims.cc (soft_new): Removed.
6338 (_Jv_NewArray): Renamed from soft_newarray.
6339 (soft_anewarray): Use JvNewObjectArray.
6340 (newArray): Likewise.
6341 (newRefArray): Removed.
6342 (_Jv_NewPrimArray): Renamed from newPrimArray.
6343 (equalUtf8Consts): Now static.
6344 (soft_instanceof): Removed.
6345 * java/lang/natDouble.cc (doubleToString): Now static.
6347 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6348 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6351 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6353 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6355 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6357 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6358 (JvPrivMutexUnlock): Likewise.
6359 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6360 Return value now jint.
6361 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6364 * Makefile.in: Rebuilt.
6365 * Makefile.am: Don't allow `jV' names.
6366 (maintainer-check): Depend on libjava.a.
6367 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6369 * Makefile.in: Rebuilt.
6370 * Makefile.am (NM): New macro.
6371 (maintainer-check): New target.
6373 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6375 * configure: Rebuilt.
6376 * configure.in: Use --enable-threads, not --enable-gc. Fix
6377 documentation for --enable-threads. Changed option to work like
6378 identical option in gcc/configure.
6380 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6382 * boehm.cc (mark_array): Use JvGetArrayLength.
6384 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6386 * exception.cc: New file (mostly written by Andrew MacLeod),
6387 exception handling support.
6388 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6389 Remove -fexceptions - it is now the default.
6391 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6392 (JvAllocObject): Renamed to _Jv_AllocObject.
6393 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6394 (loadClass): Renamed to _Jv_FindClass.
6395 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6396 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6397 * include/java-lang.h (JvGetArrayLength): New CNI function.
6398 * include/jvm.h (_Jv_FindClass): Added declaration.
6400 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6402 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6404 * java/lang/natClass.cc (getName): Add implementation.
6405 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6407 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6409 * Makefile.in: Rebuilt.
6410 * Makefile.am (.class.o): Added -fexceptions.
6412 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6414 * configure: Rebuilt.
6415 * configure.in: Don't check for __nanosleep.
6416 * posix-threads.cc (nanosleep): Never define.
6418 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6420 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6423 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6425 * java/lang/natThread.cc (enumerate): Uncommented.
6426 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6427 (interrupt): Call it.
6429 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6431 * configure: Rebuilt.
6432 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6434 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6436 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6437 * include/java-lang.h (Thread): Added `interrupted_' method.
6438 * java/lang/Thread.java (interrupted_): New method.
6439 * java/lang/natThread.cc (join): Possibly throw interrupted
6440 exception after join finishes.
6441 (interrupted_): New method.
6442 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6444 (JvPrivThreadJoin): New function.
6445 (really_start): Notify all threads waiting for this thread.
6446 (struct starter): Added `data' member.
6447 (JvPrivThreadStart): Set it.
6448 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6450 (JvPrivThreadJoin): No longer inline.
6451 (JvPrivThreadInterrupt): New function.
6453 * include/no-threads.h (JvPrivThreadSleep): Removed.
6454 * posix-threads.cc (JvPrivThreadSleep): Removed.
6456 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6458 * configure: Rebuilt.
6459 * configure.in (THREADOBJS): Initialize to no-threads.o in
6461 * posix-threads.cc (key): New global.
6462 (JvPrivInitThreads): New function.
6463 (really_start): Set thread-specific data to point to object.
6464 (JvPrivThreadStart): Added `daemon' argument.
6465 (JvPrivThreadSleep): Added `data' argument.
6466 * include/posix-threads.h (JvPrivInitThreads): Removed
6468 (JvPrivThreadCurrent): New function.
6469 * include/no-threads.h (JvPrivThreadInitData): Initialize
6470 JvPrivOnlyThread. Added `thread' argument.
6471 (JvPrivThreadCurrent): New function.
6472 (JvPrivThreadStart): Added `daemon' argument.
6473 * no-threads.cc: New file.
6474 * java/lang/natThread.cc (init_data): New function.
6476 (start): Set `alive' member.
6477 (stop_): Clear `alive' member.
6478 (destroy): Likewise.
6479 (currentThread): Implemented.
6480 (start): Pass `daemon' argument to JvPrivThreadStart.
6482 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6483 (Thread): Added `init_data' method.
6484 * java/lang/Thread.java (alive, data): New instance variables.
6485 (init_data): New private method.
6486 (isAlive): No longer native.
6488 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6490 * include/java-lang.h (JvRunMain): Declare.
6491 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6492 * prims.cc (JvRunMain): New function.
6493 (main_signature, main_name): New globals.
6495 * boehm.cc (mark_array): Use `elements' function and not
6496 operator[] on jarray.
6498 * posix-threads.cc: Include <config.h>. Define nanosleep if
6501 * configure: Rebuilt.
6502 * configure.in: Check for _nanosleep.
6504 * configure: Rebuilt.
6505 * configure.in: Check for pthread_mutexattr_settype.
6507 * include/cni.h (class JvSynchronize): New class.
6508 * java/lang/Thread.java (sleep): Throws InterruptedException.
6509 (join): Throws InterruptedException.
6510 (resume): Not native.
6511 (resume_): New method.
6512 (start): Now synchronized.
6513 (stop_): New method.
6514 (Thread): Synchronize when accessing threadNumber.
6516 * java/lang/natThread.cc (throwException): New macro.
6517 (sleep): Throw InterruptedException.
6520 * include/java-lang.h (Runtime): Added interrupted().
6522 * boehm.cc (call_finalizer): Correctly initialize jobj.
6523 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6525 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6528 * configure: Rebuilt.
6529 * configure.in: Added support for --disable-threads.
6530 * include/no-threads.h: New file.
6532 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6534 * Makefile.in: Rebuilt.
6535 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6536 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6537 (libjava_a_LIBADD): Added THREADOBJS.
6538 * configure: Rebuilt.
6539 * configure.in: Added --with-threads option.
6540 * posix-threads.cc: New file.
6541 * include/posix-threads.h: New file.
6542 * include/java-lang.h (Object): Added static member sync_mutex,
6543 member sync_info, method init_mutex.
6544 (struct JvSyncInfo): New struct.
6545 Include "java-threads.h".
6546 * prims.cc (soft_monitorenter): Wrote.
6547 (soft_monitorexit): Likewise.
6548 * java/lang/natObject.cc (init_mutex): New method.
6552 (sync_mutex): Define.
6553 Include "java-threads.h".
6555 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6557 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6558 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6560 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6562 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6563 Added extern "Java" in places to tell G++ Object is a "Java" type.
6564 Other minor renaming and fixes.
6565 * include/java-io.h (FileDescriptor): Add friend class declarations.
6566 G++ no longer allows non-Java types in method parameters and results
6567 of Java classes. Converted most offending methods to friends.
6568 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6569 * java/lang/natSystem.cc (setProperty): Make friend.
6570 * java/lang/natString.cc, include/java-lang.h (String): Rename
6571 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6572 * include/java-lang.h (JArray): Remove getData and eoprator[].
6573 Add elements friend function instead.
6574 * java/lang/natSystem.cc (arraycopy): Use elements function.
6575 * java/io/natFileDescriptor.cc (read, write): Likewise.
6576 * include/java-lang.h (Object): Remove unused make method.
6577 (System::setProperty(char*,char*)): Turn into friend function.
6578 (Class): Rename newObject by JvAllocObject.
6579 * prims.cc: Update to use JvAllocObject, and elements.
6581 * java/lang/natDouble.cc: Fix double -> jdouble.
6583 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6585 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6587 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6589 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6590 * include/java-lang.h (Runtime): finalize_on_exit and
6591 runFinalizersOnExit now static.
6592 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6594 (finalize_on_exit): Now static.
6596 * boehm.cc (mark_obj): Get class using getClass() method on
6598 (_dispatchTable): Removed.
6600 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6602 * java/io/natFileDescriptor.cc (open_read): Only call open if
6604 (open_write): Likewise.
6606 * Makefile.in: Rebuilt.
6607 * Makefile.am ($(nat_files)): Depend on config.h.
6609 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6611 * prims.cc (ObjectClass): Now a macro; updated for new class name
6613 (StringClass): Likewise.
6614 (ClassClass): Likewise.
6616 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6618 * java/io/natFileDescriptor.cc (available): Do nothing unless
6619 HAVE_SELECT defined.
6620 * java/util/natDate.cc (setTime): Conditional on
6622 (toString): Conditional on HAVE_TIME.
6623 * aclocal.m4, configure: Rebuilt.
6624 * acinclude.m4: New file.
6625 * configure.in: Don't actually call AM_EXEEXT. Call
6626 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6627 --with-target-subdir option. Check for select and open
6630 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6632 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6633 (call_finalizer): Likewise.
6634 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6635 * prims.cc (newObject): Pass actual method pointer to
6636 JvPrivRegisterFinalizer.
6637 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6638 (JvPrivRegisterFinalizer): Changed interface.
6640 * Makefile.in: Rebuilt.
6641 * Makefile.am (MOSTLYCLEANFILES): New macro.
6642 (CLEANFILES): Removed javao_files.
6644 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6646 * nogc.cc: New file.
6647 * Makefile.in: Rebuilt.
6648 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6649 (EXTRA_libjava_a_SOURCES): New macro.
6650 (libjava_a_SOURCES): Removed boehm.cc.
6651 (libjava_a_DEPENDENCIES): Added GCOBJS.
6652 (libjava_a_LIBADD): Likewise.
6653 * configure: Rebuilt.
6654 * configure.in: Added code for --enable-gc=TYPE.
6656 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6658 * boehm.cc (mark_array): Don't further dereference pointer from
6661 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6662 * Makefile.in: Rebuilt.
6663 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6664 one for boehm-gc build directory.
6666 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6668 * include/java-lang.h (finalize_on_exit): New instance variable in
6669 java::lang::Runtime.
6670 (runFinalizersOnExit): New method.
6671 * java/lang/Runtime.java (finalize_on_exit): New instance
6673 (runAllFinalizers_): New private method.
6674 (runFinalizersOnExit): New method.
6675 * boehm.cc (JvPrivRunFinalizers): New function.
6676 (JvPrivRunAllFinalizers): Likewise.
6677 (JvPrivRunGC): Likewise.
6678 * java/lang/natRuntime.cc: Include "jvm.h".
6679 (gc): Call JvPrivRunGC.
6680 (runFinalization): Call JvPrivRunFinalizers.
6681 (runFinalizersOnExit): New method.
6682 (exit_): Call JvPrivRunAllFinalizers if required.
6683 * include/jvm.h: Declare JvPrivRunFinalizers,
6684 JvPrivRunAllFinalizers, JvPrivRunGC.
6686 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6688 * boehm.cc (JvPrivRegisterFinalizer): New function.
6689 (call_finalizer): Likewise.
6690 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6691 * prims.cc (finalize_name): New global.
6692 (newObject): Just call other newObject.
6693 (newObject): Register finalizer if it exists.
6695 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6697 * prims.cc (gc_malloc): Removed.
6698 (makeUtf8Const): Use JvPrivAllocBytes.
6699 (lookupArray): Likewise.
6700 (newPrimArray): Likewise.
6701 (JvNewObjectArray): Use JvPrivAllocArray.
6702 (newObject): Use JvPrivAllocObj.
6703 (newObject): Likewise.
6704 Changed Method -> JvMethod everywhere.
6705 Changed Field -> JvField everywhere.
6706 * include/java-lang.h (Object): Changed type of `fields' to
6708 (jmethodID, jfieldID): New typedefs.
6709 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6711 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6713 (METHOD_NATIVECODE): Moved from java-lang.h.
6714 (class JvField): New class.
6715 (JvGetFirstInstanceField): New function.
6716 (JvFieldIsRef): Likewise.
6717 (JvGetObjectField): Likewise.
6718 (JvNumInstanceFields): Likewise.
6720 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6722 * boehm.cc: New file.
6723 * Makefile.in: Rebuilt.
6724 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6725 (INCLUDES): Added -I options to find boehm-gc files.
6727 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6729 * configure: Rebuilt.
6730 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6732 * Makefile.in: Rebuilt.
6733 * Makefile.am (nat_files): New macro.
6734 (libjava_a_DEPENDENCIES): Use it.
6735 (libjava_a_LIBADD): Likewise.
6736 ($(nat_files)): New static pattern rule.
6737 (class_files): Run separate find to find .class files.
6738 (javao_files): Compute based on class_files.
6739 (BUILT_SOURCES): New macro.
6741 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6743 * Makefile.am (java_files): New macro.
6744 (class_files): Likewise.
6745 (javao_files): Likewise.
6746 (libjava_a_DEPENDENCIES): Include $(javao_files).
6747 (libjava_a_LIBADD): Likewise.
6748 (classes.stamp): Depend on $(java_files); only recompile changed
6751 (CLEANFILES): Don't run find; use macros. Don't mention
6753 (.class.o): New target.
6754 (compiled.stamp): Removed.
6756 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6758 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6759 LineNumberReader}>java: Newly-implemented standard classes.
6761 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6763 * Makefile.in: Rebuilt.
6764 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6766 * Makefile.in: Rebuilt.
6767 * Makefile.am (hack): New macro.
6768 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6770 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6772 * include/config.h.in: New file.
6773 * include/config.h: Removed.
6774 * acconfig.h: New file.
6775 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6776 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6777 libjava_a_LIBADD): New macros.
6778 (INCLUDES): New macro.
6781 (SUFFIXES): Removed.
6783 (libjava.a): Removed.
6785 * configure: Rebuilt.
6786 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6787 Look for headers and functions we require. Create
6790 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6792 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6793 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6794 soft_lookupinterfacemethod): New functions.
6795 (PrimClass): Actually initialize the primitive classes.
6796 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6798 * include/java-util.h: Removed java::util definition.
6799 * include/cni.h: Moved java::util here and added Properties.
6800 Added more function prototypes.
6801 * include/java-lang.h: Added mroe methods and friend declarations.
6802 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6803 * include/jvm.h (strLengthUtf8): Add declaration.
6805 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6807 * java/lang/{Byte,Short,Void}.java: New classes.
6808 * java/lang/Character.java (isJavaIdentifierStart,
6809 JavaIdentifierPart): New static methods.
6810 * java/lang/Number.java (byteValue, shortValue): New methods.
6812 * java/lang/String.java (intern, hashCode): Make native.
6813 * java/lang/natString.cc: New file. Handle the string pool.
6814 * Makefile.am: Build natString.o. Use CXXFLAGS.
6816 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6817 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
6818 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
6819 * java/lang/System.java (setProperty): New private method.
6820 (initProperties): Take argument, and make native.
6821 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
6822 (currentTimeMillis): Make more robust.
6824 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
6825 * java/io/UnsupportedEncodingException.java: New exception class.
6827 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
6828 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
6830 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
6832 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
6833 * prims.cc: Added bunch of stuff.
6834 * include/cni.h: Added various definitions.
6835 * include/java-lang.h: Added Method, various friends, some macros.
6837 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
6838 * java/lang/System.java (arraycopy): Make native.
6840 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
6842 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6843 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
6844 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
6845 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6847 * java/lang/Runtime.java: Declare methods as native instead of
6849 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
6850 * java/lang/System.java: Comment out some stuff, for now.
6851 * java/lang/Thread.java: Re-write. Use native methods.
6852 * java/lang/NativeLang.java: Remove most of it.
6854 * java/util/natDate.cc: Native (C++) methods for Date.
6855 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
6856 * java/util/Date.java: Complete re-write.
6858 * java/io/io-defs.h: New header file.
6859 * java/io/FileDescriptor.java: Add a bunch of private methods,
6860 mostly moved from NativeIO.java and natNativeIO.cc.
6861 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
6862 * java/io/File.java: Use new code.
6863 * java/io/{FileInputStream.java.FileOutputStream.java,
6864 RandomAccessFile.java}: Use new private FileDescriptor methods.
6865 * java/io/NativeIO.java: Removed, no longer used.
6867 * java/io/StreamTokenizer.java (numericChars): Make char array.
6869 * include/*.h: Various header files used by the C++ native code.
6871 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
6872 New autoconf+automake-based setup.
6873 * prims.cc: New file for Java "primitives".