1 1999-09-21 Tom Tromey <tromey@cygnus.com>
3 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
4 refer to `this' before calling superclass constructor.
5 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
6 before calling superclass constructor.
8 1999-09-20 Tom Tromey <tromey@cygnus.com>
11 * configure.in: Send output of `-fuse-divide-subroutine' test
12 compilation to /dev/null.
14 1999-09-14 Tom Tromey <tromey@cygnus.com>
16 * include/java-insns.h: Turned constants into an enum. Added
17 multiple-inclusion protection.
19 1999-09-10 Tom Tromey <tromey@cygnus.com>
22 * configure.in: Build include/Makefile.
23 * Makefile.in: Rebuilt.
24 * Makefile.am (SUBDIRS): Added gcj and include.
25 (install-data-local): New target.
26 (extra_headers): New macro.
27 * include/Makefile.in: New file.
28 * include/Makefile.am: New file.
30 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
31 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
33 * boehm.cc: Don't include java-threads.h or gcj/field.h.
34 * resolve.cc: Include config.h.
35 * defineclass.cc: Include config.h.
36 * include/java-interp.h: Don't include config.h.
37 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
40 * gcj/javaprims.h: Regenerated namespace decls.
41 * classes.pl (scan): Don't put `;' after closing brace.
43 * Makefile.in: Rebuilt.
44 * Makefile.am (INCLUDES): Added -I for top_srcdir.
45 * configure.in: Create gcj/Makefile.
46 * gcj/Makefile.in: New file.
47 * gcj/Makefile.am: New file.
48 * java/lang/Object.h: Don't include any other headers.
49 * gcj/array.h: Renamed from include/java-array.h.
50 * gcj/field.h: Renamed from include/java-field.h.
51 * gcj/method.h: Renamed from include/java-method.h.
52 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
53 Updated all files to reflect new include structure.
55 1999-09-09 Tom Tromey <tromey@cygnus.com>
58 * configure.in: Fixed typo; variable is THREADSPEC and not
61 1999-09-08 Tom Tromey <tromey@cygnus.com>
63 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
64 previous change and implemented a correct test in the __m_count
67 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
70 1999-09-07 Tom Tromey <tromey@cygnus.com>
72 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
73 code and don't set errno.
75 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
76 not `r'. Changed `done_sleeping' to a `bool'.
78 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
80 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
81 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
82 by another thread, rather than by the GC.
83 (_Jv_CondWait): Prevent premature thread wakeup by GC.
84 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
85 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
88 1999-09-03 Tom Tromey <tromey@cygnus.com>
91 * configure.in: Check for fstat function.
92 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
95 1999-09-02 Tom Tromey <tromey@cygnus.com>
97 * include/java-array.h (jobjectArrayjchar): Removed unused
100 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
101 _Jv_PrepareCompiledClass while holding class mutex.
103 1999-09-01 Tom Tromey <tromey@cygnus.com>
105 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
106 (_Jv_PthreadGetMutex): Use it.
107 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
108 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
109 (_Jv_MutexLock): Likewise.
110 (_Jv_MutexUnlock): Likewise.
111 * include/config.h.in: Rebuilt.
112 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
113 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
114 * configure: Rebuilt.
115 * libgcj.spec.in: Don't mention INTERPSPEC.
116 * configure.in (INTERPSPEC): Removed.
117 Only run pthreads-related checks when using POSIX threads. Check
118 for m_count and __m_count in mutex structure.
120 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
122 * java/lang/natClass.cc: Fixed notification of threads
123 when class initialization is complete.
125 1999-09-01 Tom Tromey <tromey@cygnus.com>
127 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
128 * resolve.cc: Removed constants defined by
129 java.lang.reflect.Modifier.
130 Include <java/lang/reflect/Modifier.h>.
131 (_Jv_ResolvePoolEntry): Use values from Modifier.
132 (_Jv_DetermineVTableIndex): Likewise.
133 (_Jv_PrepareClass): Likewise.
135 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
136 java.lang.reflect.Modifier.
137 Include <java/lang/reflect/Modifier.h>.
138 (checkExtends): Use values from Modifier.
139 (checkImplements): Likewise.
140 (handleField): Likewise.
141 (handleConstantValueAttribute): Likewise.
142 (handleFieldsEnd): Likewise.
143 (handleMethod ): Likewise.
144 (handleMethodsEnd): Likewise.
145 (handleClassBegin): Likewise.
146 * interpret.cc: Removed constants defined by
147 java.lang.reflect.Modifier.
148 (continue1): Use values from Modifier.
149 * java/lang/natClassLoader.cc: Removed constants defined by
150 java.lang.reflect.Modifier.
152 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
153 JV_STATE_NOTHING, not `0'.
154 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
156 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
157 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
159 (_Jv_PthreadGetMutex): New function.
160 (_Jv_PthreadCheckMonitor): Use it.
161 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
162 (_Jv_MutexLock): Update `count'.
163 (_Jv_MutexUnlock): Likewise.
164 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
167 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
169 * Makefile.am (.java.lo): Add rule.
171 * Makefile.in: Rebuilt.
173 1999-09-01 Tom Tromey <tromey@cygnus.com>
175 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
176 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
178 (_Jv_CondNotify): Use it.
179 (_Jv_CondNotifyAll): Likewise.
181 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
183 1999-08-31 Tom Tromey <tromey@cygnus.com>
185 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
188 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
190 * posix-threads.cc: Include <errno.h>.
192 1999-08-23 Tom Tromey <tromey@cygnus.com>
194 * boehm.cc: Undefine TRUE and FALSE.
196 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
198 1999-08-21 Tom Tromey <tromey@cygnus.com>
200 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
203 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
205 * configure.in: Check for in_addr_t in netinet/in.h too. Check
207 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
208 (HAVE_STRUCT_IP_MREQ): Added.
209 * configure, include/config.h.in: Rebuilt.
210 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
212 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
213 Disable if ip_mreq is not available.
215 * configure.in: Check types ssize_t and in_addr_t.
216 * acconfig.h: Undefine them.
217 * configure, include/config.h.in: Rebuilt.
219 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
220 function that detects the signature of getpwuid_r.
221 (init_properties): Use it.
222 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
225 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
227 * interpret.cc (continue1): Implement explicit dispatch table.
228 insn_target: Explicit interpreter switch table.
229 SAVE_PC: New macro, moves pc saving code into instructions that
231 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
232 PC_REGISTER_ASM: New macro.
233 INLINE_SWITCH: New macro. Constrols dispatching strategy.
234 opcode: Remove local variable.
235 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
236 (POKEI): Use _Jv_word.
237 (iinc): Use _Jv_word.
238 (dupx): Change reference argument (sp) to pointer.
241 * interpret.cc: Remove instruction timing instrumentation.
243 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
244 comment. Don't use _Jv_ClassNameSamePackage.
246 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
247 URLPathEntry, CacheEntry}: Removed.
249 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
251 (.java.lo): Rule removed.
253 * Makefile.in: Rebuilt.
255 1999-08-19 Tom Tromey <tromey@cygnus.com>
257 * java/lang/natThread.cc (class locker): New class.
258 (join): Use a locker around _Jv_CondWait.
261 1999-08-18 Tom Tromey <tromey@cygnus.com>
263 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
264 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
266 1999-08-18 Tom Tromey <tromey@cygnus.com>
268 * include/javaprims.h ("Java"): Regenerated namespace decls.
270 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
272 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
273 from _Jv_InternClassStrings.
275 * prims.cc (_Jv_RunMain): New function.
276 (JvRunMain): Remove gij-support.
278 * gij.cc (main): Use _Jv_RunMain.
280 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
282 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
283 argument in temp variable.
284 (continue1): For all op_x2y insns, use temp variable for
285 intermediate value. Also remove some comments.
287 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
288 (forName): Don't call _Jv_InitClass.
290 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
292 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
294 * java/util/jar/JarInputStream.java: New file.
296 * java/util/jar/JarEntry.java: New file.
298 * java/util/jar/JarFile.java: New file.
300 * java/net/URLClassLoader.java: New file.
302 * java/net/JarURLConnection.java: New file.
304 * gnu/gcj/protocol/jar/Handler.java: New file.
306 * gnu/gcj/protocol/jar/Connection.java: New file.
308 * java/security/SecureClassLoader.java: New file.
310 * java/lang/ClassLoader.java (parent): New variable.
311 (ClassLoader (ClassLoader)): new constructor.
312 (findClass): New method.
313 (loadClass): Add default 1.2 implementation.
314 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
315 (readfully): Removed.
317 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
318 (findSystemClass): New method.
319 (VMClassLoader): Constructor rewritten.
321 All other methods removed.
323 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
324 to gnu::gcj::runtime::VMClassLoader.
325 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
327 (VMClassLoader::findSystemClass): renamed from findBootClass.
329 * Makefile.am: Add new files.
330 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
332 * Makefile.in: Rebuilt.
334 1999-08-17 Tom Tromey <tromey@cygnus.com>
336 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
338 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
341 1999-08-16 Tom Tromey <tromey@cygnus.com>
343 * configure: Rebuilt.
344 * configure.in: Set DIVIDESPEC to empty string if compiler does
345 not support -fuse-divide-subroutine.
347 1999-08-14 Per Bothner <per@bothner.com>
349 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
350 * java/lang/natClass.cc (initializeClass): Likewise.
351 * java/lang/ClassLoader.java (resolveClass0): New static method.
352 (resolveClass): Call resolveClass0.
353 (findSystemClass): No longer static.
355 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
357 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
359 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
361 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
364 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
367 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
370 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
373 * configure: Rebuilt.
374 * configure.in: Properly align --help output, fix capitalization
376 * acinclude.m4: Likewise.
378 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
380 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
382 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
383 (_Jv_callInterpretedMethod): Unused. Remove.
384 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
386 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
387 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
388 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
389 * interpret.cc: use _Jv_word.
390 * defineclass.cc: use_Jv_word.
391 * resolve.cc: Use _Jv_word.
392 (_Jv_ResolvePoolEntry): Return _Jv_word.
393 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
394 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
396 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
399 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
401 * configure: Rebuilt.
402 * configure.in (sched_yield): Try librt first, then libposix4.
403 Add -lrt, -lposix4 to THREADSPEC.
405 1999-08-08 Anthony Green <green@cygnus.com>
407 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
409 1999-08-08 Anthony Green <green@cygnus.com>
411 * defineclass.cc (_Jv_VerifyClassName): Verify array names
414 1999-08-08 Anthony Green <green@cygnus.com>
418 * include/config.h.in: Rebuilt.
419 * acconfig.h: Add INTERPRETER.
421 * Makefile.in: Rebuilt.
422 * Makefile.am (libffi_files): Identify the libffi object files for
424 (LIBFFIINCS): Define.
426 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
427 Dummy definition for configurations without an interpreter.
429 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
430 java::lang::Boolean constructor.
432 * include/java-interp.h: Always include java-cpool.h.
434 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
435 when INTERPRETER not defined.
437 * java/lang/Class.h (finalize): Define.
439 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
440 IOException from File.getCanonicalPath.
441 (getStream): Likewise.
444 * THANKS: More thanks.
446 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
448 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
450 (_Jv_PrepareClass): Allow non-abstract classes to
451 have abstract subclasses.
452 (_Jv_ResolvePoolEntry): Revert subclass check for protected
454 * interpret.cc (continue1/perform_invoke): Don't sign extend
456 (continue1/lshl,lshr): Push long, not int.
457 (continue1/ulshr): Use UINT64, not long long.
458 * defineclass.cc (handleFieldsEnd): Handle case when all fields
460 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
461 * java/lang/FirstThread.java (run): Add top-level exception
463 (run0): Renamed from run.
465 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
467 * configure.in (--with-interpreter): Added.
468 * include/config.h.in (INTERPRETER): Added.
470 * java/lang/ClassLoader.java: File replaced.
471 * java/lang/VMClassLoader.java: New file.
472 * java/lang/natClassLoader.cc: New file.
473 * gnu/gcj/runtime/MethodInvocation.java: New file.
474 * gnu/gcj/util/path/SearchPath.java: New file.
475 * gnu/gcj/util/path/PathEntry.java: New file.
476 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
477 * gnu/gcj/util/path/ZipPathEntry.java: New file.
478 * gnu/gcj/util/path/URLPathEntry.java: New file.
479 * gnu/gcj/util/path/CacheEntry.java: New file.
480 * include/java-interp.h: New file.
481 * include/java-cpool.h: New file.
482 * include/java-insns.h: New file.
483 * defineclass.cc: New file.
484 * interpret.cc: New file.
485 * resolve.cc: New file.
487 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
488 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
489 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
491 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
492 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
494 (initializeClass): Use new JV_ prefixed names. Also, call
495 ClassLoader::resolveClass instead of _Jv_ResolveClass.
497 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
498 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
499 JV_STATE_LINKED): New.
500 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
501 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
502 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
503 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
504 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
505 _Jv_InterpMethodInvocation): New friends for interpreter.
507 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
508 include/java-cpool.h and renamed with JV_ prefix.
510 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
512 (_Jv_UnregisterClass): New decl.
514 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
515 class loader argument.
516 (_Jv_FindClass): Use class loader.
518 * prims.cc (_Jv_makeUtf8Const): New function.
519 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
520 (_Jv_NewPrimArray): Ditto.
521 (_Jv_FindClassFromSignature): Ditto.
522 * java/lang/reflect/natArray.cc (newInstance): Ditto.
523 * java/lang/reflect/natMethod.cc (getType): Ditto.
525 * include/java-field.h (_Jv_Field::isRef): Make robust for
526 non-resolved contexts.
528 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
529 Also, don't mark class->next field.
531 * java/lang/VirtualMachineError.java: Added FIXME note.
533 * configure.in (INTERPSPEC): New spec.
534 * libgcj.spec.in: Added INTERPSPEC.
535 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
536 gnu/gcj/runtime/MethodInvocation.
537 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
538 (ordinary_java_source_files): Added above mentioned java classes.
540 * configure: Rebuilt.
541 * Makefile.in: Rebuilt.
543 1999-08-06 Tom Tromey <tromey@cygnus.com>
545 * configure: Rebuilt.
546 * configure.in: Look for sched_yield in -lrt.
548 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
550 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
551 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
552 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
554 (toString): Print correctly when `country' is empty.
556 1999-08-04 Per Bothner <per@bothner.com>
558 * configure.in: Also do AC_SUBST for DIVIDESPEC.
560 1999-08-02 Tom Tromey <tromey@cygnus.com>
562 * aclocal.m4, configure: Rebuilt for new libtool.
564 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
566 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
567 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
568 * java/net/ServerSocket.java: Define ANY_IF.
569 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
570 all network interfaces.
571 * java/net/DatagramSocket.java (DatagramSocket): ditto.
572 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
574 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
576 * java/io/natFile.cc (performMkdir): Remove FIXME.
577 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
579 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
581 * configure.in: Check for bstring.h.
582 * configure, include/config.h.in: Rebuilt.
583 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
584 * java/net/natPlainSocketImpl.cc: Likewise.
586 1999-07-31 Tom Tromey <tromey@cygnus.com>
591 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
593 * configure.in: Check for struct hostent_data and need for
594 -D_REENTRANT for gethostbyname_r declaration.
595 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
596 (lookup): Use hostent_data for fixed_buffer.
597 * configure, include/config.h.in: Rebuilt.
599 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
601 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
602 available. Don't cast memmove args to (void*).
603 * configure.in: Do not abort if memmove is not available.
605 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
607 * java/lang/natString.cc (substring): optimize where substring is
609 * java/io/File.java (getName): don't return separator with file name.
610 * java/io/natFile.cc (attr): fix overflow.
612 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
614 * mauve-libgcj: Disable Object Serialization tests.
616 1999-07-20 Warren Levy <warrenl@cygnus.com>
618 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
619 Default to using PlainDatagramSocketImpl.
620 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
622 1999-07-19 Tom Tromey <tromey@cygnus.com>
624 * include/stamp-h.in: New file.
626 1999-07-12 Tom Tromey <tromey@cygnus.com>
628 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
631 1999-07-07 Andrew Haley <aph@cygnus.com>
633 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
634 bytes to make it point after the instruction where the trap
636 (HANDLE_DIVIDE_OVERFLOW): Ditto.
638 1999-07-07 Tom Tromey <tromey@cygnus.com>
640 * mauve-libgcj: Explicitly enable formerly disabled java.text
643 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
646 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
648 * java/net/URL.java (equals): Compare strings using String.equals.
649 * java/net/URL.java (sameFile): Ditto.
651 1999-07-02 Warren Levy <warrenl@cygnus.com>
653 * configure: Rebuilt.
654 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
655 * include/config.h.in: Rebuilt.
656 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
657 (mcastGrp): Updated FIXME comments.
658 (setOption): Fixed typo.
659 (getOption):Implemented IP_MULTICAST_IF.
661 1999-07-02 Warren Levy <warrenl@cygnus.com>
663 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
664 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
665 (getTimeToLive): Implemented.
666 (setOption): Implemented IP_MULTICAST_IF.
668 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
670 * java/lang/String.java (toString): Check for this == null and throw
671 NullPointerException.
673 1999-07-01 Warren Levy <warrenl@cygnus.com>
675 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
676 to count and revised comments to match.
677 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
678 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
679 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
680 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
681 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
682 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
684 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
686 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
687 properly as count rather than outlength.
688 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
689 output on overflow rather than buffer fill.
690 * java/io/BufferedReader.java (fill): Don't clear out the buffer
691 if markPos is 0 and there is still room in the buffer.
693 1999-07-01 Andrew Haley <aph@cygnus.com>
695 * include/i386-signal.h: Replace sigaction () with __sigaction ().
696 This is a workaround for a bug in glibc's pthreads package which
697 doesn't deliver any sigcontext information to a signal handler.
699 1999-06-24 Tom Tromey <tromey@cygnus.com>
701 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
702 * java/lang/fdlibm.h (HUGE): Conditionally define.
704 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
706 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
707 * java/lang/e_log.c: Don't use __uint32_t.
709 1999-05-27 Eric Christopher <echristo@cygnus.com>
712 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
713 * acconfig.h: Rebuilt
714 * include/config.h.in: Rebuilt
716 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
717 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
718 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
719 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
720 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
721 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
722 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
723 and namespace collision with __uint32_t
725 1999-06-23 Tom Tromey <tromey@cygnus.com>
727 * java/util/zip/InflaterInputStream.java (read): Throw
728 ZipException if inflater throws a DataFormatException.
730 1999-06-23 Warren Levy <warrenl@cygnus.com>
732 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
733 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
734 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
735 is not final per JDK.
736 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
738 * java/util/zip/DataFormatException.java: Class extends Exception.
739 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
740 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
741 * java/util/zip/ZipInputStream.java: ditto.
742 (closeEntry): Changed method name to match JDK spec.
744 1999-06-21 Tom Tromey <tromey@cygnus.com>
746 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
749 * Makefile.in: Rebuilt.
750 * Makefile.am (toolexeclibdir): Define as libdir when
752 * configure: Rebuilt.
753 * configure.in (USE_LIBDIR): New conditional.
755 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
757 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
758 hostname in returned InetAddress objects.
759 (getLocalHostname): Fix typo.
760 * java/net/InetAddress.java (getByName): Set hostname on return
762 (getLocalHost): Call lookup directly to ensure that a fully-qualified
765 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
767 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
768 interfaces if host==NULL.
769 (accept): Throw message with InterruptedIOException.
770 (getOption): Cache localAddress.
771 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
772 'address' for DatagramSocket.
773 (setTimeToLive): Fix compiler warnings.
774 (getOption): Cache localAddress.
775 * java/net/Socket.java (getLocalAddress): Don't need local
776 InetAddress object. Add FIXME comment about calling checkConnect().
777 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
778 connection queue to 50 as per JDK 1.2 docs.
779 (ServerSocket(int,int)): Listen on all network interfaces by
780 default, per JDK 1.2 docs.
781 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
782 Add localAddress caching.
784 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
786 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
788 (write(byte[],int,int)): ditto.
790 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
792 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
794 1999-06-11 Warren Levy <warrenl@cygnus.com>
796 * mauve-libgcj: Activated java.net Mauve tests.
798 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
800 * java/net/natInetAddress.cc (aton): Fix typos.
801 (lookup): Use a bigger buffer size for gethostbyname_r on all
802 versions of glibc. Updated FIXME comment explaining this.
803 Modified while loops to not set herr = ERANGE to work around glibc
804 problems. Use user specified hostname in InetAddress result when
805 available (consistent with JDK).
807 1999-06-10 Warren Levy <warrenl@cygnus.com>
809 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
810 Throw FileNotFoundException instead of IOException.
812 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
814 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
815 in static field name.
816 * java/text/DecimalFormat.java: Throw IllegalArgumentException
817 throughout rather than ParseException.
819 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
821 * java/lang/Runtime.java (exec): Convert prog name and arguments
823 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
824 environment array conversion. Preserve current environment if envp
825 not passed. Preserve PATH unless explicitly specified.
826 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
827 followed by EOF. Set a flag when a line is terminated by '\r' and
828 ignore following '\n' if set.
830 1999-06-02 Warren Levy <warrenl@cygnus.com>
832 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
833 Ignore context if spec is an absolute URL. Fix braindead
835 (hashCode): Use JDK 1.2 style algorithm.
836 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
837 context URL properly.
839 1999-05-30 Anthony Green <green@cygnus.com>
841 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
842 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
844 1999-05-28 Warren Levy <warrenl@cygnus.com>
846 * java/net/DatagramSocket.java (laddr): Removed.
847 (DatagramSocket): Removed attempts to get or set laddr if null.
848 (getLocalAddress): Reimplemented per spec.
849 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
851 (joinGroup): Throw NullPointerException if any argument is null.
853 * java/net/PlainDatagramSocketImpl.java: Updated comments.
854 * java/net/PlainSocketImpl.java (timeout): Added.
855 (getInputStream): Added FIXME comment on how to support timeouts
857 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
858 * java/net/Socket.java: Added FIXME comments to identify
859 conflicting specs between the JCL and JDK 1.2 documents.
860 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
861 if host is null. Get localport value resolved by kernel if bind
863 (receive): Implemented support for timeouts in UDP.
864 (setOption): Implemented based on natPlainSocketImpl version.
866 * java/net/natPlainSocketImpl.cc (bind): Get localport value
867 resolved by kernel if bind lport is 0.
868 (connect): Get localport value resolved by kernel if bind wasn't
869 done to set localport.
870 (accept): Implemented support for timeouts for ServerSocket.
871 (setOption): Save value for SO_TIMEOUT.
872 (getOption): Return timeout for SO_TIMEOUT.
874 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
876 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
877 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
878 (setOption): Made abstract.
879 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
880 to avoid cpp conflicts in native code.
881 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
882 cpp conflicts in native code.
883 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
884 * java/net/Socket.java (getLocalAddress): Implemented.
885 (setTcpNoDelay): Implemented.
886 (getTcpNoDelay): Implemented.
887 (setSoLinger): Implemented.
888 (getSoLinger): Implemented.
889 (getSoTimeout): Verify class type.
890 (setSendBufferSize): Implemented.
891 (getSendBufferSize): Implemented.
892 (setReceiveBufferSize): Implemented.
893 (getReceiveBufferSize): Implemented.
894 (toString): Prepended "Socket".
895 * java/net/SocketImpl.java (toString): Rewritten.
896 (getOption): Made abstract.
897 (setOption): Made abstract.
898 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
899 (setOption): Implemented.
900 (getOption): Implemented.
902 1999-05-26 Warren Levy <warrenl@cygnus.com>
904 * java/net/DatagramSocket.java (DatagramSocket): Get local host
905 address when null. Set SO_REUSEADDR for multicasts.
906 (getSoTimeout): Implemented.
907 (setSoTimeout): Implemented.
908 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
909 * java/net/MulticastSocket.java (getInterface): Implemented.
910 (setInterface): Implemented.
911 (setTimeToLive): Check for invalid ttl.
912 (joinGroup): Verify multicast address and security.
913 (leaveGroup): Verify multicast address and security.
915 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
921 (getTTL): Implemented as non-native.
925 * java/net/ServerSocket.java (setSoTimeout): Implemented.
926 (getSoTimeout): Implemented.
927 (setSocketFactory): Made synchronized.
928 * java/net/Socket.java (setSoTimeout): Implemented.
929 (getSoTimeout): Implemented.
930 (close): Made synchronized.
931 (setSocketImplFactory): Made synchronized.
932 * java/net/SocketImpl.java: Implement SocketOptions interface.
933 * java/net/natInetAddress.cc: Corrected module name at top of file.
934 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
942 (setOption): Implemented for SO_REUSEADDR.
943 (getOption): Implemented for SO_REUSEADDR.
945 1999-05-24 Tom Tromey <tromey@cygnus.com>
947 * java/util/ResourceBundle.java (getBundle): Throw
948 NullPointerException if baseName is null.
950 1999-05-22 Tom Tromey <tromey@cygnus.com>
952 * java/util/zip/ZipInputStream.java (fill): New method.
953 (compressed_len): New instance variable.
954 (getNextStream): Set it.
955 (read): Reset inflater on EOF. Only read via `super' if entry is
957 (skip): Only skip via `super' if entry is deflated.
958 * java/util/zip/Deflater.java (last_input_count): Removed.
959 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
961 (needsInput): Don't use last_input_count.
962 (setInput): Don't set last_input_count.
963 * java/util/zip/natInflater.cc (getRemaining): Return correct
965 (inflate): Return 0 if input array is length 0.
966 (setInput): Don't set last_input_count.
967 * java/util/zip/Inflater.java (last_input_count): Removed.
969 1999-05-21 Tom Tromey <tromey@cygnus.com>
971 * Makefile.in: Rebuilt.
972 * Makefile.am (INCLUDES): Added $(ZINCS).
973 * configure: Rebuilt.
974 * configure.in (ZINCS): New subst.
976 1999-05-21 Andrew Haley <aph@cygnus.com>
978 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
979 to signal options to allow the same exceptions to be rethrown
982 1999-05-20 Andrew Haley <aph@cygnus.com>
984 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
986 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
987 (INIT_FPE): Exception string made more informative.
988 * include/sparc-signal.h (INIT_FPE): Exception string made more
990 * testsuite/libjava.lang/Divide_1.java: New file.
991 * testsuite/libjava.lang/Divide_1.out: New file.
993 1999-05-19 Tom Tromey <tromey@cygnus.com>
995 * aclocal.m4, configure: Rebuilt.
996 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
998 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1001 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1003 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1005 (update): Fail in default case. Always initialize `strat'.
1007 * mauve-libgcj: Enable java.util.zip.
1009 1999-05-18 Warren Levy <warrenl@cygnus.com>
1011 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1012 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1013 PlainDatagramSocketImpl.java, and SocketOptions.java.
1014 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1015 * Makefile.in: Rebuilt.
1017 * java/net/DatagramPacket.java: New file.
1018 * java/net/DatagramSocket.java: New file.
1019 * java/net/DatagramSocketImpl.java: New file.
1020 * java/net/MulticastSocket.java: New file.
1021 * java/net/PlainDatagramSocketImpl.java: New file.
1022 * java/net/SocketOptions.java: New file.
1023 * java/net/natPlainDatagramSocketImpl.cc: New file.
1025 1999-05-18 Tom Tromey <tromey@cygnus.com>
1027 * java/util/zip/ZipOutputStream.java (level): Initial value is
1028 Deflater.DEFAULT_COMPRESSION.
1029 (close): New method.
1030 (closeEntry): Likewise.
1032 (put_version): Likewise.
1033 (write_entry): Likewise.
1034 (put2, put4): Now return `int'.
1035 (comment): Default to empty string.
1036 (bytes_written): New instance variable.
1038 * java/util/zip/ZipEntry.java (setComment): Limit length of
1040 (setCrc): Check CRC validity.
1041 (setExtra): Check argument validity.
1042 (setMethod): Likewise.
1043 (setSize): Likewise.
1044 (ZipEntry): Likewise.
1045 * include/javaprims.h: Updated namespace declarations.
1046 * Makefile.in: Rebuilt.
1047 * Makefile.am (ordinary_java_source_files): Mention new files.
1048 (nat_source_files): Likewise.
1049 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1052 (getInputStream): Handle compressed entries.
1053 * java/util/zip/GZIPOutputStream.java: New file.
1054 * java/util/zip/GZIPInputStream.java: New file.
1055 * java/util/zip/DataFormatException.java: New file.
1056 * java/util/zip/CheckedInputStream.java: New file.
1057 * java/util/zip/CheckedOutputStream.java: New file.
1058 * java/util/zip/InflaterInputStream.java: Implemented.
1059 * java/util/zip/natInflater.cc: New file.
1060 * java/util/zip/Deflater.java: Implemented.
1061 * java/util/zip/natDeflater.cc: New file.
1062 * java/util/zip/DeflaterOutputStream.java: Implemented.
1064 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1065 ZipException, not IOException.
1066 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1069 1999-05-17 Tom Tromey <tromey@cygnus.com>
1071 * java/lang/natSystem.cc (init_properties): URL now points to
1074 1999-05-12 Per Bothner <bothner@cygnus.com>
1076 * java/util/Calendar.java (set): First call computeFields if needed.
1077 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1079 1999-05-12 Tom Tromey <tromey@cygnus.com>
1081 * configure: Rebuilt.
1082 * configure.in: Look for -ldl when using the Boehm collector.
1083 Look for sched_yield in -lposix4.
1085 1999-05-12 Per Bothner <bothner@cygnus.com>
1087 * java/io/File.java (mkdirs): Handle a null parent directory.
1089 1999-05-12 Tom Tromey <tromey@cygnus.com>
1091 * include/javaprims.h: Updated namespace declarations.
1092 * classes.pl (scan): Uniquify class list.
1093 * Makefile.in, configure: Rebuilt.
1094 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1095 (built_java_source_files): New macro.
1096 (nat_headers): Added built_java_source_files.
1097 (javao_files): Likewise.
1098 (EXTRA_libgcj_la_SOURCES): Likewise.
1099 (libgcj.zip): Create built class files.
1100 ($(built_java_source_files:.java=.class)): New target.
1101 (jv_convert_LDADD): Added -L$(here)/.libs.
1102 * configure.in: Create links for ConcreteProcess.java and
1103 natConcreteProcess.cc.
1104 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1105 * java/lang/natEcosProcess.cc: New file.
1106 * java/lang/EcosProcess.java: New file.
1107 * java/lang/PosixProcess.java: New file.
1108 * java/lang/natPosixProcess.cc: New file.
1110 1999-05-12 Warren Levy <warrenl@cygnus.com>
1112 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1113 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1114 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1115 (connect): Throw ConnectException.
1117 1999-05-11 Tom Tromey <tromey@cygnus.com>
1119 * Makefile.in: Rebuilt.
1120 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1121 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1124 * Makefile.in: Rebuilt.
1125 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1126 and it causes problems with libtool.
1128 * Makefile.in, configure: Rebuilt.
1129 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1130 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1131 (jv_convert_DEPENDENCIES): Added ZDEPS.
1132 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1134 (THREADSPEC): Added `-L' to point to qthreads build directory.
1138 * configure, Makefile.in: Rebuilt.
1139 * Makefile.am (toolexeclib_DATA): New macro.
1140 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1141 Recognize --with-system-zlib.
1142 (GCSPEC): New subst.
1143 (THREADSPEC): New subst.
1144 (SYSTEMSPEC): New subst.
1145 (ZLIBSPEC): New subst.
1146 * libgcj.spec.in: New file.
1148 1999-05-10 Tom Tromey <tromey@cygnus.com>
1150 * java/io/InputStreamReader.java (read): If length is 0, return
1151 0. Reset `wpos' and `wcount' when buffer has been filled and
1154 * java/util/Properties.java (save): Removed `FIXME' comment.
1155 (load): Invalid characters in \u now treated as terminators.
1156 Make sure to append character resulting from `\' handling.
1157 Cast to `char' when appending to key or value.
1158 (skip_ws): Inverted test for whitespace.
1160 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1162 (readLine): Likewise.
1163 (readFully): Implemented.
1165 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1167 * java/awt/natToolkit.cc: Added copyright header.
1168 * java/util/zip/InflaterInputStream.java: Added copyright header.
1170 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1172 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1174 (getNextStream): Likewise.
1176 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1178 (getBundle): Don't explicitly throw null pointer exception.
1180 * gnu/gcj/RawData.java: Added copyright header.
1182 * include/jni.h (_Jv_va_list): Always define as va_list.
1184 1999-05-9 Anthony Green <green@cygnus.com>
1186 * java/text/DateFormat.java (computeInstance): Separate time
1188 (getDateTimeInstance): Ditto.
1189 (getDateTimeInstance(int,int)): New method.
1191 * Makefile.in: Rebuilt.
1192 * Makefile.am (ordinary_java_source_files): Add new classes.
1194 * java/util/PropertyResourceBundle.java: New file.
1195 * gnu/gcj/util/EnumerationChain.java: New file.
1197 1999-05-07 Tom Tromey <tromey@cygnus.com>
1199 * acconfig.h (GCJVERSION): New undef.
1200 * java/lang/natSystem.cc (init_properties): Define java.version,
1201 java.class.version, os.name, os.arch, os.version.
1202 Include <sys/utsname.h> if required.
1203 * configure: Rebuilt.
1204 * configure.in: Compute and define GCJVERSION.
1206 * java/lang/natSystem.cc (default_file_encoding): Now static.
1208 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1210 * libtool-version: New file.
1211 * Makefile.in: Rebuilt.
1212 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1215 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1216 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1219 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1220 (we pick those up already).
1222 1999-05-05 Per Bothner <bothner@cygnus.com>
1224 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1225 stub classes. (This is enough to get Kawa to compile against libgcj.)
1227 * gnu/gcj/RawData.java: New class.
1228 * doc/cni.sgml: Document RawData.
1230 * java/util/zip/InflaterInputStream.java: New stub class.
1231 * java/util/zip/ZipInputStream.java: New class. Partly works.
1232 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1233 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1234 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1235 * java/util/zip/ZipOutputStream.java: Start implementation.
1237 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1238 (default_file_encoding): New global, initial value is above macro.
1239 (init_properties): Default file.encoding to default_file_encoding.
1241 * Makefile.am: Add new classes.
1243 1999-05-05 Tom Tromey <tromey@cygnus.com>
1245 * Makefile.in: Rebuilt.
1246 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1247 (clean-local): New target
1249 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1250 (load, loadLibrary): Now native.
1252 * java/lang/Runtime.java (load, loadLibrary): Now native.
1253 (init): New native method.
1254 (Runtime): Use init.
1255 * prims.cc: Include <ltdl.h> if required.
1256 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1258 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1260 * configure.in: Switch from irix threads to posix threads
1261 * configure: Regenerate.
1263 1999-04-30 Tom Tromey <tromey@cygnus.com>
1265 * Makefile.in: Rebuilt.
1266 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1268 1999-04-29 Tom Tromey <tromey@cygnus.com>
1270 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1273 * java/util/Locale.java (Locale(String,String)): Implement in
1274 terms of 3-argument version; variant now defaults to empty
1276 (toString): Assume variant is not null.
1277 (equals): Assume all strings are not null.
1278 (Locale): Throw NullPointerException if any argument is null.
1280 * java/util/ResourceBundle.java (getBundle): Don't try the base
1281 name; now implicit in partialGetBundle call.
1282 (trySomeGetBundle): Search for parent bundles and call setParent
1284 (partialGetBundle): Added `langStop' argument. Use
1285 `Locale.toString' to compute bundleName.
1286 (resource_cache): New static field.
1287 (partialGetBundle): Cache the returned resource bundle. Now
1290 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1293 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1294 * java/text/natCollator.cc (decomposeCharacter): `base' now
1296 * Makefile.in: Rebuilt.
1297 * Makefile.am (ordinary_java_source_files): Added
1298 CollationElementIterator, CollationKey, Collator,
1300 (nat_source_files): Added natCollator.cc.
1301 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1302 (compare): Pass `this' to CollationElementIterator constructor.
1303 (getCollationElementIterator): Likewise.
1304 (ceiNext): Fix off-by-one error when finding initial substring.
1305 (next): Correctly mask off bits when computing return value.
1306 Fixed return values when one string is shorter than the other.
1307 * java/text/CollationElementIterator.java (collator): New field.
1308 (CollationElementIterator): Added collator argument.
1309 (next): Call ceiNext on collator object.
1311 1999-04-26 Tom Tromey <tromey@cygnus.com>
1313 * natCollator.cc: New file.
1315 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1316 (GregorianCalendar): Use it in all constructors.
1317 * java/util/Calendar.java (Calendar): Changed argument name to
1318 `zone' to match code.
1320 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1321 * java/text/CollationKey.java: New file.
1322 * java/text/CollationElementIterator.java: New file.
1323 * java/text/Collator.java: New file.
1324 * java/text/RuleBasedCollator.java: New file.
1326 * Makefile.in: Rebuilt.
1327 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1328 (jv_convert_LDADD): Explicltly add -lm -lc.
1330 1999-04-26 Tom Tromey <tromey@cygnus.com>
1332 * configure, Makefile.in: Rebuilt.
1333 * configure.in: Added AM_PROG_LIBTOOL.
1334 (GCOBJS): Use `.lo' form of files.
1335 (THREADOBJS): Likewise.
1336 (GCDEPS): Use `.la' form of library.
1337 (GCLIBS): Set to be the same as GCDEPS.
1338 (THREADDEPS): Use `.la' form of library.
1339 (THREADLIBS): Set to be the same as THREADDEPS.
1340 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1341 toolexeclib_LIBRARIES.
1342 (libgcj_la_SOURCES): Renamed for libtoolization.
1343 (EXTRA_libgcj_la_SOURCES): Likewise.
1344 (libgcj_la_DEPENDENCIES): Likewise.
1345 (libgcj_la_LIBADD): Likewise.
1346 ($(nat_files)): Use LTCXXCOMPILE.
1347 ($(c_files)): Use LTCOMPILE.
1348 (GCJCOMPILE): New macro.
1350 (.java.o): Likewise.
1351 ($(javao_files)): Likewise.
1352 (jv_convert_LINK): Use LIBTOOL.
1353 (nat_files): Use `.lo' files.
1354 (c_files): Likewise.
1355 (javao_files): Likewise.
1356 (.class.lo): Renamed.
1357 (.java.lo): Likewise.
1358 ($(nat_files)): Depend on %.lo.
1359 ($(c_files)): Likewise.
1360 ($(javao_files)): Likewise.
1361 (jv_convert_LDADD): Link against .lo files.
1362 (jv_convert_DEPENDENCIES): Depend on .lo files.
1363 (maintainer-check): Depend on libgcj.la, but examine .a file.
1364 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1365 (libgcj_la_LDFLAGS): New macro.
1367 1999-04-23 Warren Levy <warrenl@cygnus.com>
1369 * Makefile.am: Added URLDecoder and URLEncoder.
1370 * Makefile.in: Rebuilt.
1372 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1373 setSocketImplFactory to match spec.
1374 * java/net/Socket.java (getSoLinger): Changed return type to
1377 * java/net/URLDecoder.java: New file.
1378 * java/net/URLEncoder.java: New file.
1380 1999-04-21 Tom Tromey <tromey@cygnus.com>
1382 * java/lang/natString.cc (getBytes): Reverted earlier change and
1383 applied correct fix from Per Bothner.
1385 * java/lang/String.java: Don't throw
1386 UnsupportedEncodingException.
1388 * java/lang/natString.cc (getBytes): Correctly size result
1389 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1391 1999-04-20 Andrew Haley <aph@cygnus.com>
1393 * include/sparc-signal.h: new file.
1394 * configure.in: include/sparc-signal.h added.
1395 * configure: regenerated.
1396 * prims.cc (JvRunMain): signal handling code rewritten to be more
1398 (catch_segv): ditto.
1400 * include/i386-signal.h: reorganized.
1401 * include/default-signal.h: reorganized.
1403 1999-04-19 Tom Tromey <tromey@cygnus.com>
1405 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1406 once. From Anthony Green.
1408 1999-04-19 Andrew Haley <aph@cygnus.com>
1410 * Makefile.in: Processed with new automake.
1412 1999-04-19 Tom Tromey <tromey@cygnus.com>
1414 * include/javaprims.h: Removed security namespace.
1416 1999-04-20 Anthony Green <green@cygnus.com>
1418 * java/io/PrintStream.java (println): Remove extra println.
1420 1999-04-19 Anthony Green <green@cygnus.com>
1422 * Makefile.in: Rebuilt.
1423 * Makefile.am (ordinary_java_source_files): Add new security files.
1425 * java/security/NoSuchAlgorithmException.java,
1426 java/security/MessageDigest.java: New files.
1428 * include/javaprims.h: Add security namespace.
1430 1999-04-16 Per Bothner <bothner@cygnus.com>
1432 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1433 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1434 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1435 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1436 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1437 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1438 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1439 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1440 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1441 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1442 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1443 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1444 * Makefile.am: Various changes for new files and conversions.
1446 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1447 New overloading, allows greater efficiency.
1448 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1449 New overloading (for efficiency - avoids copying).
1451 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1452 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1454 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1455 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1456 (writeChars): Don't be quite so eager to flush.
1457 * java/io/PrintStream.java: Rewrite. Now more similar to
1458 OutputStreamWriter, using explicit UnicodeToBytes converter.
1459 Also, autoflush does not need to flush so often.
1460 * java/lang/natString.cc (getBytes): More efficient algorithm.
1461 (init(jbyteArray,jint,jint,jstring)): More efficient.
1463 1999-04-15 Warren Levy <warrenl@cygnus.com>
1465 * Makefile.am (ordinary_java_source_files): Added new Connection
1466 and Handler classes in gnu.gcj.protocol.file package.
1467 * Makefile.in: Rebuilt.
1469 * gnu/gcj/protocol/file/Connection.java: New file.
1470 * gnu/gcj/protocol/file/Handler.java: New file.
1471 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1472 if doInput allows input.
1473 (getOutputStream): Check if doOutput allows output.
1474 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1476 1999-04-14 Tom Tromey <tromey@cygnus.com>
1478 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1479 buffer larger to work around bug.
1480 From Bryce McKinlay <bryce@albatross.co.nz>.
1482 1999-04-14 Andrew Haley <aph@cygnus.com>
1484 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1485 NaNs are always converted to the same long value.
1486 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1489 1999-04-13 Tom Tromey <tromey@cygnus.com>
1491 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1492 instead switch on actual element type.
1494 * Makefile.in: Rebuilt.
1495 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1497 1999-04-13 Andrew Haley <aph@cygnus.com>
1499 * include/i386-signal.h, include/default-signal.h: New files.
1500 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1502 (catch_fpe): New function.
1503 * configure.in: Make link to appropriate include/java-signal.h.
1504 * configure: Rebuilt.
1505 * Makefile.am: include/java-signal.h added to dependency list.
1506 * Makefile.in: Rebuilt.
1508 1999-04-12 Urban Widmark <urban@svenskatest.se>
1510 * java/io/DataInputStream.java (readLine): Corrected handling of
1511 empty lines, from null to "".
1513 1999-04-12 Tom Tromey <tromey@cygnus.com>
1515 * Makefile.in: Rebuilt.
1516 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1518 * java/lang/natSystem.cc (SystemClass): New define.
1519 (init_properties): Synchronize.
1521 1999-04-08 Geoff Berry <gcb@gnu.org>
1523 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1524 * natPlainSocketImpl.cc (accept): Add missing else if check
1527 1999-04-08 Tom Tromey <tromey@cygnus.com>
1529 * java/lang/Long.java (parseLong): Corrected overflow detection
1531 * java/lang/Integer.java (parseInt): Corrected overflow detection
1534 * java/io/PrintStream.java (print): Handle null string argument.
1535 (println): Likewise.
1537 1999-04-07 Warren Levy <warrenl@cygnus.com>
1539 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1540 Set count to 0 when InputStreamReader returns -1 for EOF.
1542 1999-04-07 Tom Tromey <tromey@cygnus.com>
1544 * mauve-libgcj: Omit java.text.Collator,
1545 java.text.RuleBasedCollator.
1547 1999-04-06 Tom Tromey <tromey@cygnus.com>
1549 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1550 IOException from getHttpHeaders().
1551 (getHeaderFieldKey): Likewise.
1553 * include/javaprims.h: Regenerated declarations.
1555 * Makefile.in: Rebuilt.
1556 * Makefile.am (ordinary_java_source_files): Updated for removed
1559 1999-04-06 Per Bothner <bothner@cygnus.com>
1561 * java/util/zip/Adler32.java: New class.
1562 * java/util/zip/CRC32.java: Add working method bodies.
1563 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
1564 * Makefile.in: Re-generate.
1566 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
1568 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
1569 from version in removed www hierarchy.
1570 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
1571 version in removed www hierarchy.
1573 * gnu/gcj/www/protocol/http/Connection.java: Removed.
1574 * gnu/gcj/www/protocol/http/Handler.java: Removed.
1575 * gnu/gcj/www/protocol/http: Removed dir.
1576 * gnu/gcj/www/protocol: Removed dir.
1577 * gnu/gcj/www: Removed dir.
1579 * java/net/HttpURLConnection.java: Revised comments to indicate
1580 missing JDK 1.2 methods.
1582 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
1583 hierarchy rather than the gnu/gcj/www/protocol one.
1584 * java/net/URLConnection.java: Updated status comments.
1585 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
1586 the gnu/gcj/www/content one.
1588 1999-04-06 Per Bothner <bothner@cygnus.com>
1590 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
1591 The gen-from-JIS program is in $(CONVERT_DIR).
1593 1999-04-06 Tom Tromey <tromey@cygnus.com>
1595 * mauve-libgcj: Renamed from mauve-libjava.
1597 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
1599 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
1600 (getResponseMessage): Implemented.
1601 (getResponseVals): New private method.
1603 * java/net/URLConnection.java (getContent): Implemented.
1604 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
1606 1999-04-05 Tom Tromey <tromey@cygnus.com>
1608 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
1609 (jv_convert_SOURCES): Renamed.
1610 (EXTRA_jv_convert_SOURCES): Likewise.
1611 (jv_convert_LDFLAGS): Likewise.
1612 (jv_convert_LINK): Likewise.
1613 (jv_convert_LDADD): Likewise.
1614 (jv_convert_DEPENDENCIES): Likewise.
1616 * Makefile.in: Rebuilt.
1617 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
1620 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
1622 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
1623 method for comparison.
1625 * java/net/URLConnection.java (getContentLength): Implemented.
1626 (getContentType): Implemented.
1627 (getContentEncoding): Implemented.
1628 (getExpiration): Implemented.
1629 (getDate): Implemented.
1630 (getLastModified): Implemented.
1631 (getHeaderFieldInt): Implemented.
1632 (getHeaderFieldDate): Implemented.
1634 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
1636 * java/net/URLConnection.java (toString): Implemented.
1637 (setContentHandlerFactory): Implemented.
1638 (setContentHandler): Wrote new private helper method.
1640 1999-04-01 Tom Tromey <tromey@cygnus.com>
1642 * Makefile.in: Rebuilt.
1643 * Makefile.am ($(java_source_files:.java=.class): Reverted change
1644 of 1999-03-31; we always want to build all the .class files.
1645 Depend on java_source_files, not libgcj.zip.
1646 (nat_headers): Define in terms of ordinary_java_source_files.
1648 1999-03-31 Tom Tromey <tromey@cygnus.com>
1650 * Makefile.in: Rebuilt.
1651 * Makefile.am (special_java_source_files): New macro.
1652 (java_source_files): Use it.
1653 (ordinary_java_source_files): New macro.
1654 (java_source_files): Use it.
1655 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
1656 creating headers for those files with hand-maintained headers.
1658 * include/javaprims.h: Regenerated namespace declarations.
1659 * classes.pl (scan): Include [0-9] in regexp for matching class
1660 names; for java.util.zip.CRC32.
1662 * Makefile.in: Rebuilt.
1663 * Makefile.am (nat_headers): Redefined to generate all possible
1666 * java/util/zip/ZipException.java: In package java.util.zip, not
1669 1999-03-30 Tom Tromey <tromey@cygnus.com>
1671 * configure: Rebuilt.
1672 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
1673 eh-common.h when not building in tree with gcc.
1675 * Makefile.in: Rebuilt.
1676 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
1677 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
1679 ($(java_source_files:.java=.class)): New target.
1681 * Makefile.in: Rebuilt.
1682 * Makefile.am (java_source_files): Added
1683 java/net/HttpURLConnection.java and
1684 gnu/gcj/www/protocol/http/Connection.java.
1686 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
1688 * gnu/gcj/www/protocol/http/Connection.java: New file.
1689 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
1690 * java/net/HttpURLConnection.java: New file.
1691 * java/net/URLConnection.java (getHeaderField): Implemented default.
1692 (getHeaderFieldKey): Implemented default method.
1694 1999-03-30 Tom Tromey <tromey@cygnus.com>
1696 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
1698 * java/util/zip/Deflater.java: Added copyright header.
1699 * java/util/zip/CRC32.java: Added copyright header.
1701 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
1702 that it is automatically generated.
1703 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
1705 * gnu/gcj/convert/BytesToUnicode.java,
1706 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
1707 gnu/gcj/convert/Input_EUCJIS.java,
1708 gnu/gcj/convert/Input_UTF8.java,
1709 gnu/gcj/convert/JIS0208_to_Unicode.cc,
1710 gnu/gcj/convert/JIS0212_to_Unicode.cc,
1711 gnu/gcj/convert/Output_8859_1.java,
1712 gnu/gcj/convert/Output_JavaSrc.java,
1713 gnu/gcj/convert/Output_UTF8.java,
1714 gnu/gcj/convert/UnicodeToBytes.java,
1715 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
1717 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
1719 * Makefile.in, configure: Rebuilt.
1720 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
1721 not if test subdir exists.
1722 (--enable-gcj-classes): Removed; gcj always used to generate
1724 (JAVA, JAVAC): Removed.
1725 (--enable-single-compilation, --enable-source-compilation):
1728 (NATIVE): New conditional.
1729 * Makefile.am (toolexecdir): Renamed from tooldir to allow
1730 `install-exec' to work.
1731 (toolexeclibdir): Likewise.
1732 (toollib_LIBRARIES): Likewise.
1733 (AM_MAKEFLAGS): Don't pass tooldir.
1735 (javao_files): Redefined.
1736 (java_source_files): New macro.
1737 (c_source_files): New macro.
1738 (c_files): Redefined in terms of c_source_files.
1739 (java_io_files, java_lang_files, java_net_files, java_text_files,
1740 java_util_files, gnu_files, java_files): Removed.
1741 (class_io_files, class_lang_files, class_net_files,
1742 class_text_files, class_util_files, class_gnu_files, class_files):
1744 (nat_source_files): New macro.
1745 (nat_files): Redefined in terms of nat_source_files.
1746 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
1747 java_source_files. Removed no-such-file.c.
1749 (ETAGS_ARGS): Removed.
1750 (TAGS_DEPENDENCIES): Likewise.
1751 (libgcj.zip): Depend on java_source_files. Use $(here) and not
1753 (src_io_files, src_lang_files, src_text_files, src_util_files,
1754 src_gnu_files): Removed.
1755 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
1756 (BUILT_SOURCES): Removed.
1757 (header-check): New target.
1759 (noinst_PROGRAMS): New macro.
1760 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
1762 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
1763 (gen-from-JIS): Build in top directory.
1764 (convert_source_files): New macro.
1765 (convert_SOURCES): New macro.
1766 (convert_LDFLAGS): Likewise.
1767 (convert_LINK): Likewise.
1768 (convert_LDADD): Likewise.
1769 (convert_DEPENDENCIES): Likewise.
1771 (gen-from-JIS): Removed.
1772 (gen_from_JIS_SOURCES): New macro.
1773 (gen_from_JIS_LDADD): Likewise.
1774 (gen_from_JIS_DEPENDENCIES): Likewise.
1776 * configure: Rebuilt.
1777 * configure.in (CANADIAN): Set to `yes', not `canadian'.
1778 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
1779 when defining conditional.
1781 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
1783 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
1784 The Unicode Consortium does not permit their re-distribution.
1785 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
1786 (JIS0208.h, JIS0212.h): Do not depend on removed files.
1788 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
1790 * natSystem.c (init_properties): Use malloc, realloc, free after all.
1792 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
1794 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
1795 from Unicode Consortium.
1796 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
1797 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
1798 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
1799 New tables, generated using gen-from-JIS.
1800 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
1801 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
1802 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
1803 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
1805 * gnu/gcj/convert/Convert.java: New application.
1806 * Makefile.am, Makefile.in (convert): New program, using Convert.
1807 Build the various JIS conversion tables (in maintainer mode).
1809 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
1811 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
1813 * java/net/URL.java (URL): Deal with null property value. Use "."
1814 as separator in building class name.
1815 * java/net/URLConnection.java: Implemented majority of stubbed methods.
1816 * java/net/URLStreamHandler.java (parseURL): Use "" in string
1817 manipulations instead of 'null'. Comment cleanup. Use 0 for the
1818 beginning of the substring rather than 'start'.
1820 1999-03-26 Tom Tromey <tromey@cygnus.com>
1822 * include/java-chartables.h: Rebuilt.
1823 * include/java-chardecomp.h: New file.
1824 * chartables.pl: Generate output files directly. Added support
1825 for generating decomposition header.
1826 (canonical_decomposition, full_decomposition): New globals.
1827 (DECOMPOSITION): New constant.
1828 (process_char): Call add_decomposition.
1829 (add_decomposition): New sub.
1830 (write_decompositions): New sub.
1832 1999-03-25 Tom Tromey <tromey@cygnus.com>
1834 * java/text/CollationElementIterator.java: New file.
1836 * mauve-libjava: Omit StringTest.
1838 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
1840 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
1841 without a '/' when parsing protocol. Handle ref outside of parseURL.
1842 (hashCode): Implemented.
1843 (set): Don't expand -1 to default port.
1844 (getDefaultPort): Removed.
1846 * java/net/URLStreamHandler.java (parseURL): Implemented.
1847 (toExternalForm): Implemented.
1849 1999-03-23 Tom Tromey <tromey@cygnus.com>
1851 * java/text/BreakIterator.java (getSentenceInstance):
1853 * gnu/gcj/text/SentenceBreakIterator.java: New file.
1855 * Makefile.in: Rebuilt.
1856 * Makefile.am (nat_headers): Added IllegalAccessException.
1857 * java/lang/natClass.cc (newInstance): Throw
1858 IllegalAccessException, not IllegalAccessError.
1859 Include IllegalAccessException.h.
1861 1999-03-22 Tom Tromey <tromey@cygnus.com>
1863 * gnu/gcj/text/LineBreakIterator.java: New file.
1864 * java/text/BreakIterator.java (getLineInstance): Implemented.
1866 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
1867 copy constructor private.
1868 (previous, next): Removed erroneous comment about line
1870 (previous): Correctly recognize break between non-letter on the
1871 left and letter on the right. Handle apostrophes correctly.
1873 * java/text/BreakIterator.java (getWordInstance): Implemented.
1874 * gnu/gcj/text/WordBreakIterator.java: New file.
1875 * gnu/gcj/text/CharacterBreakIterator.java: Extend
1877 * gnu/gcj/text/BaseBreakIterator.java: New file.
1879 1999-03-19 Tom Tromey <tromey@cygnus.com>
1881 * java/text/BreakIterator.java: New file (partially stubbed out).
1882 * gnu/gcj/text/CharacterBreakIterator.java: New file.
1884 * include/config.h.in: Rebuilt.
1885 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
1886 (HAVE_TIMEZONE): Likewise.
1887 * configure: Rebuilt.
1888 * configure.in: Added timezone checks.
1889 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
1892 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
1894 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
1895 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
1896 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
1897 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
1898 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
1899 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
1900 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
1901 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
1903 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
1904 (BSD_COMP): Kludge needed for Solaris2.
1906 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
1908 * java/net/URL.java (URL(java.net.URL, string): Moved code to
1909 URL(java.net.URL, string, URLStreamHandler) and call it with a
1910 null handler. In latter constructor, added SecurityManager check.
1911 (set): Expect null handler on bad protocol rather than an exception.
1912 (setURLStreamHandler): Simplified exception handling; return null
1913 on invalid protocol.
1915 1999-03-18 Tom Tromey <tromey@cygnus.com>
1917 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
1919 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
1921 Include PrintStream.h, InputStream.h.
1922 * java/lang/System.java (ForwardingInputStream,
1923 ForwardingOutputStream): Removed.
1924 (setErr, setIn, setOut): Now native.
1926 Reverted patch from 1999-02-12 to work around problem in
1928 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
1929 (_Jv_eh_free): Use free.
1931 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
1932 for path name. Minor formatting fixes.
1934 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
1936 * prims.cc (fail_on_finalization): New function.
1937 (_Jv_GCWatch): Likewise.
1939 * prims.cc (JvRunMain): Initialize `nullp'.
1940 (nullp): New global.
1941 (catch_segv): Throw nullp.
1943 * Makefile.in: Rebuilt.
1944 * Makefile.am (ZIP): In "null target" case, zip is found in the
1947 * prims.cc (_Jv_PrimClass): Initialize all elements of class
1951 * java/lang/StringBuffer.java (StringBuffer): Don't use
1952 ensureCapacity to set initial capacity.
1953 (capacity): Subtract `length' from return result.
1955 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
1957 * java/io/natFileDescriptorPosix.cc (open): Throw
1958 FileNotFoundException, but with filename and errno in msg.
1960 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
1962 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
1963 functionality folded into java/net/URL.java per spec.
1965 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
1966 than EEXIST for throwing FileNotFoundException.
1968 * java/net/URL.java: Folded in default URLStreamHandlerFactory
1969 algorithm per JDK 1.2 doc. Added SecurityManager checks.
1971 * java/net/URLStreamHandler.java (parseURL): Added stub.
1973 1999-03-15 Andrew Haley <aph@cygnus.com>
1975 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
1978 1999-03-15 Andrew Haley <aph@cygnus.com>
1980 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
1983 1999-03-12 Tom Tromey <tromey@cygnus.com>
1985 * prims.cc (catch_segv): New function.
1986 Include <signal.h> if HANDLE_SEGV defined. Include
1987 NullPointerException.h.
1988 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
1991 * java/text/SimpleDateFormat.java (equals): Ensure that object is
1992 a SimpleDateFormat, not just a DateFormat.
1993 (defaultCenturyStart, formatData, pattern): Now private.
1994 (append): Now `final'. Use `NumberFormat.format'.
1996 (SimpleDateFormat): Turn off groupin in NumberFormat object.
1998 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2001 * java/text/MessageFormat.java (format): Use default MessageFormat
2003 (parse, parseObject): Wrote.
2005 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2008 1999-03-12 Andrew Haley <aph@cygnus.com>
2010 * java/lang/String.java (indexOf): Replace with native method for
2012 * java/lang/natString.cc (IndexOf): As above.
2014 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2015 Argument check corrected.
2016 (init(jbyteArray,jint,jint,jstring)): Likewise.
2018 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2019 1.2 compliant method.
2021 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2023 * java/lang/Float.java (byteValue, shortValue): Likewise.
2025 1999-03-11 Tom Tromey <tromey@cygnus.com>
2027 * java/text/DecimalFormat.java (parse): Wrote.
2029 * java/text/ChoiceFormat.java (parse): Set error index on
2030 ParsePosition object.
2032 * java/lang/Integer.java (parseInt): Throw exception on overflow
2033 when intermediate result is most negative number. Changed
2034 overflow detection as well.
2035 * java/lang/Long.java (parseLong): Likewise.
2037 * configure, Makefile.in: Rebuilt.
2038 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2039 CANADIAN when building in source tree that doesn't include gcc.
2040 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2043 * java/text/ChoiceFormat.java (nextDouble): Correct some
2044 off-by-one errors when masking or adding.
2046 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2047 parameter, if given. Use `%', not IEEEremainder.
2048 (scanFix): Throw error if multiplier already set.
2049 (computePattern): Wrote.
2051 1999-03-11 Andrew Haley <aph@cygnus.com>
2053 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2055 (nextDouble): Corrected masking logic. Handle interaction between
2056 `next' and negative numbers.
2058 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2060 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2061 * java/net/URL.java: Added general comments.
2063 1999-03-10 Tom Tromey <tromey@cygnus.com>
2065 * java/text/ChoiceFormat.java (parse): Wrote.
2067 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2069 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2070 Create ChoiceFormat objects.
2071 (format): Special-case ChoiceFormat.
2072 (scanFormatElement): Include { and } in generated style string.
2074 1999-03-09 Tom Tromey <tromey@cygnus.com>
2076 * java/text/ChoiceFormat.java: New file.
2078 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2080 * java/net/BindException.java: Created.
2081 * java/net/ConnectException.java: Created.
2082 * java/net/ContentHandler.java: Created.
2083 * java/net/ContentHandlerFactory.java: Created.
2084 * java/net/FileNameMap.java: Created.
2085 * java/net/MalformedURLException.java: Created.
2086 * java/net/NoRouteToHostException.java: Created.
2087 * java/net/ProtocolException.java: Created.
2088 * java/net/ServerSocket.java (@author): Fixed typo.
2089 * java/net/Socket.java (@author): Fixed typo.
2090 * java/net/SocketImpl.java (@author): Fixed typo.
2091 * java/net/SocketImplFactory.java (@author): Fixed typo.
2092 * java/net/URL.java: Created - nearly complete.
2093 * java/net/URLConnection.java: Created - near-empty stub.
2094 * java/net/URLStreamHandler.java: Created - incomplete stub.
2095 * java/net/URLStreamHandlerFactory.java: Created.
2096 * java/net/UnknownServiceException.java: Created.
2098 1999-03-09 Tom Tromey <tromey@cygnus.com>
2100 * java/lang/System.java (ForwardingInputStream): New class.
2101 (ForwardingOutputStream): Likewise.
2102 (in, out, err): Now `final' forwarding streams.
2103 (setIn, setOut, setErr): Use appropriate method on forwarding
2106 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2109 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2111 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2112 * java/util/zip/Checksum.java: New interface (complete).
2113 * java/util/zip/Deflater.java: New class (near-empty stub).
2114 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2115 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2116 * java/util/zip/ZipEntry.java: New class (complete).
2117 * java/util/zip/ZipException.java: New class (complete).
2118 * java/util/zip/ZipFile.java: New class (incomplete stub).
2119 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2121 1999-03-09 Tom Tromey <tromey@cygnus.com>
2123 * java/text/MessageFormat.java (MessageFormatElement): Removed
2124 `public' specifiers.
2126 * java/text/DecimalFormat.java (scanFormat): Increment index
2127 before processing exponential format. Fixed a couple typos in
2129 (format): Correct normalization of exponent.
2131 1999-03-08 Tom Tromey <tromey@cygnus.com>
2133 * java/text/SimpleDateFormat.java (parse): Throw
2134 IllegalArgumentException, not ParseException.
2136 1999-03-05 Tom Tromey <tromey@cygnus.com>
2138 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2139 when constructing DateFormatSymbols. Initialize numberFormat
2140 field of superclass.
2142 * java/text/DateFormat.java (equals): Rewrote.
2143 (getAvailableLocales): New method.
2144 (getDateInstance): New methods.
2145 (getDateTimeInstance): Likewise.
2146 (getTimeInstance): Likewise.
2147 (getInstance): New method.
2148 (computeInstance): New method.
2150 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2152 (safeGetResource): New method.
2153 (DateFormatSymbols): Use Locale paramater.
2154 (equals): Now protected.
2155 Made instance variables private.
2157 1999-03-04 Tom Tromey <tromey@cygnus.com>
2159 * java/text/DecimalFormat.java: New file.
2161 * java/text/NumberFormat.java (groupingUsed,
2162 maximumFractionDigits, maximumIntegerDigits,
2163 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2165 (setDecimalSeparatorAlwaysShown, setMultiplier,
2166 setPositivePrefix): Removed.
2167 (setMinimumFractionDigits, setMaximumFractionDigits):
2169 (format): Now final.
2170 Added many new methods.
2172 * Makefile.in: Rebuilt.
2173 * Makefile.am (gnu_files): New macro.
2174 (java_files): Added gnu_files.
2175 (class_gnu_files): New macro.
2176 (class_files): Use it.
2177 (src_gnu_files): New macro.
2178 (gnu.o): New target.
2179 (javao_files): Added gnu.o.
2181 * gnu/gcj/text/LocaleData_en_US.java: New file.
2182 * gnu/gcj/text/LocaleData_en.java: New file.
2183 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2184 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2185 (safeGetString): New method.
2186 (safeGetChar): Likewise.
2188 1999-03-03 Tom Tromey <tromey@cygnus.com>
2190 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2193 * java/text/FieldPosition.java (equals): Don't check for null
2194 object; instanceof does this.
2196 * java/util/Locale.java (clone): New method.
2199 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2201 * doc/cni.sgml: New file.
2203 1999-03-03 Tom Tromey <tromey@cygnus.com>
2205 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2207 * java/text/DecimalFormatSymbols.java: New file.
2209 1999-03-02 Tom Tromey <tromey@cygnus.com>
2211 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2213 * configure: Rebuilt.
2214 * configure.in: Check for sys/filio.h.
2216 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2218 (load): Always throw UnsatisfiedLinkError.
2219 (loadLibrary): Likewise.
2221 1999-03-02 Anthony Green <green@cygnus.com>
2223 * LIBGCJ_LICENSE: New file.
2224 * LIBJAVA_LICENSE: Removed.
2225 * Many files: libjava now libgcj.
2227 1999-03-02 Tom Tromey <tromey@cygnus.com>
2229 * include/java-chartables.h: Rebuilt.
2230 * chartables.pl (print_block): Make table `const'.
2231 (print_numerics): Likewise.
2232 (print_single_map): Likewise.
2233 (print_all_block): Likewise.
2234 (print_case_table): Likewise.
2235 (print_fast_tables): Likewise.
2236 * java/lang/natCharacter.cc (table_search): `table' argument now
2239 1999-03-01 Tom Tromey <tromey@cygnus.com>
2241 * java/util/Date.java (before, after): Inverted logic.
2243 * java/util/Date.java (parse): Handle case where first character
2244 in string is open parenthesis.
2245 (skipParens): Rewrote.
2247 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2248 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2250 * java/util/Date.java (parse): Correctly compute beginning of
2253 * java/util/Hashtable.java (get): Throw NullPointerException if
2255 (containsKey): Likewise.
2257 * java/util/Properties.java (list): Truncate value to 37
2258 characters and add `...'.
2260 * java/lang/Byte.java (parseByte): Pass `radix' to
2263 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2265 Include System.h, PrintStream.h.
2267 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2270 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2272 * configure: Rebuilt.
2273 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2276 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2278 * java/lang/SecurityManager.java: Import java.net.*.
2279 (checkMulticast): New methods.
2281 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2283 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2284 (nat_files): Add java/lang/reflect/natArray.o.
2285 (nat_headers): Add Field.h and NoSuchFieldException.h.
2287 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2288 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2289 (_Jv_FromReflectedField): Fix buglet.
2290 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2291 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2292 * prims.cc (_Jv_Abort): Include message in print-out.
2294 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2295 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2296 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2298 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2299 * include/config.h.in (HAVE_PWD_H): New feature macro.
2300 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2301 user.name, user.home, user.dir.
2303 * java/lang/reflect/Array.java: New class.
2304 * java/lang/reflect/natArray.cc: New native methods.
2305 * include/javaprims.h: Declare java::lang::reflect::Array.
2307 * java/lang/Class.h (getField): New private method. Add friends.
2308 * java/lang/Class.java (getField): Add private overload.
2309 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2310 getDeclaredMethods): Add working implementations.
2311 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2312 Finish implementation, except for access control.
2314 * java/lang/reflect/Modifier.java (toString): New overload.
2315 * include/java-method.h: New file.
2316 * java/lang/reflect/Method.java (index): Replaced by offset field.
2317 Remove various private fields - get them from _Jv_Field instead.
2318 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2319 New method implementations.
2321 * java/text/NumberFormat.java: Add a bunch of methods.
2323 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2325 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2327 1999-02-26 Tom Tromey <tromey@cygnus.com>
2329 * include/config.h.in: Rebuilt.
2330 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2331 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2332 HAVE_GETHOSTBYADDR_R): New defines.
2333 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2334 gethostbyaddr_r if available.
2336 * configure: Rebuilt.
2337 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2339 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2343 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2344 * prims.cc (_Jv_AllocBytesChecked): New function.
2346 * Makefile.in: Rebuilt.
2347 * Makefile.am (SUBDIRS): Removed `test'.
2348 * configure: Rebuilt.
2349 * configure.in: Don't build test/Makefile.
2350 * test/*: Removed all files.
2352 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2354 * java/lang/reflect/Constructor.java: Make class final to match spec.
2355 * java/lang/reflect/Method.java: Ditto.
2357 1999-02-25 Tom Tromey <tromey@cygnus.com>
2359 * java/net/natInetAddress.cc: Include <sys/types.h> before
2361 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2364 * java/net/natInetAddress.cc: Declare gethostname if required.
2365 * include/config.h.in: Rebuilt.
2366 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2367 * configure: Rebuilt.
2368 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2369 declared in unistd.h.
2371 1999-02-24 Tom Tromey <tromey@cygnus.com>
2373 * Makefile.in: Rebuilt.
2374 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2375 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2376 from private to "none".
2378 * include/javaprims.h: Regenerated class declarations with new
2380 * classes.pl (scan): Only generate decls for java.lang, java.io,
2383 1999-02-24 Tom Tromey <tromey@cygnus.com>
2385 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2386 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2388 1999-02-23 Tom Tromey <tromey@cygnus.com>
2390 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2391 not already defined.
2392 * java/io/natFile.cc (_REENTRANT): Only define if not already
2394 * include/config.h.in: Rebuilt.
2395 * acconfig.h (HAVE_BOEHM_GC): New define.
2396 * configure: Rebuilt.
2397 * configure.in: Define HAVE_BOEHM_GC if using it.
2398 * posix-threads.cc: Include boehm-config.h and gc.h if
2400 * include/posix-threads.h: Added explanatory note about Boehm GC.
2402 * java/io/BufferedReader.java (readLine): Only return null when
2403 EOF seen before any characters read. (In particular, an empty
2404 line should not return null.)
2406 * java/io/BufferedInputStream.java (read): Only refill once per
2409 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2410 java.lang.Character.classify12, java.lang.String.hash,
2411 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2412 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2414 * java/text/StringCharacterIterator.java (setIndex): No error if
2416 (next): Check for `pos == end', not `end - 1'.
2417 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2418 for null text in each constructor.
2419 (clone): Fixed order of arguments to constructor.
2421 1999-02-22 Tom Tromey <tromey@cygnus.com>
2423 * include/config.h.in: Rebuilt.
2424 * acconfig.h (HAVE_INET6): New define.
2425 (HAVE_SOCKLEN_T): Likewise.
2426 * java/net/PlainSocketImpl.java: Added copyright header.
2427 * java/net/natPlainSocketImpl.cc: Added copyright header.
2428 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2430 (connect): Likewise.
2432 (socklen_t): New typedef.
2433 (accept): Use socklen_t.
2434 * java/net/natInetAddress.cc: Added copyright header.
2435 (HAVE_GETHOSTNAME): Don't define.
2436 (HAVE_INET_ADDR): Likewise.
2437 (lookup): Fixed typo.
2438 (aton): Don't use `address' as name of local variable.
2439 (lookup): Use HAVE_INET6, not AF_INET6.
2441 * configure: Rebuilt.
2442 * configure.in: Look for functions inet_aton, inet_addr,
2443 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2444 Check for socklen_t typedef.
2446 * exception.cc (__throw): Declare as __noreturn__.
2448 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2450 * Makefile.am, Makefile.in: Also build java/net.
2451 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2453 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2454 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2456 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2457 * include/cni.h (JvMalloc, JvFree): New inline functions.
2458 (JvThrow): Add __noreturn__ attribute.
2459 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2460 (_Jv_Throw): Add __noreturn__ attribute.
2462 * java/net/PlainSocketImpl.java: Init fnum to -1.
2463 * java/net/ServerSocket.java: Add missing throws clauses.
2464 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2465 don't call create on the latter. Instead, other constructors
2466 have to explicitly call SocketImpl.create.
2467 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2468 from size_t to int, to match ::accept prototype.
2469 * java/net/natInetAddress.cc: Use JvFree rather than free.
2472 1999-02-22 Tom Tromey <tromey@cygnus.com>
2474 * include/javaprims.h: Added new classes.
2475 * java/text/StringCharacterIterator.java: New file.
2476 * java/text/CharacterIterator.java: New file.
2478 * java/text/ParseException.java (errorOffset): Now private.
2480 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2482 * java/net: New package.
2483 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2484 Socket.java,SocketException.java,SocketImpl.java,
2485 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2486 natPlainSocketImpl.cc}: New classes.
2488 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2489 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2490 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2491 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2493 * classes.pl: Translate package into "namespace", not "class".
2494 * include/javaprims.h: Update class list, using "namespace".
2496 1999-02-21 Tom Tromey <tromey@cygnus.com>
2498 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2499 Define when appropriate.
2501 1999-02-20 Tom Tromey <tromey@cygnus.com>
2503 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2504 as a single byte and \u07ff as two bytes.
2505 (_Jv_GetStringUTFLength): Likewise.
2506 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2507 with 0x0f, not 0x1f.
2509 1999-02-19 Tom Tromey <tromey@cygnus.com>
2511 * java/io/DataOutputStream.java (writeUTF): When encoding
2512 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2513 * java/io/DataInputStream.java (readUTF): Mask second byte of
2514 3-byte character with 0x3f, not 0x1f.
2516 * java/io/DataInputStream.java (readLong): Cast result of
2517 readUnsignedByte to long before using.
2519 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2522 * mauve-libjava: Re-enabled java.io.DataInputOutput.
2523 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2524 argument to avoid warning.
2525 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2526 argument to avoid warning.
2528 1999-02-18 Tom Tromey <tromey@cygnus.com>
2530 * mauve-libjava: Omit java.io.DataInputOutput and
2531 java.io.Utf8Encoding.
2533 1999-02-17 Tom Tromey <tromey@cygnus.com>
2535 * Makefile.in: Rebuilt.
2536 * Makefile.am (nat_headers): Added InterruptedIOException.h.
2537 * java/io/natFileDescriptorPosix.cc: Include
2538 InterruptedIOException.h, Thread.h.
2539 (write): Throw InterruptedIOException when required.
2541 * posix-threads.cc: Include <signal.h>.
2542 (_Jv_ThreadInterrupt): New function.
2544 (handle_intr): New function.
2545 (_Jv_InitThreads): Register handle_intr via sigaction.
2546 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2547 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2548 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2549 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2551 1999-02-19 Andrew Haley <aph@cygnus.com>
2553 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2555 (ThreadGroup (int)): Set the maximum priority of the initial
2558 1999-02-18 Andrew Haley <aph@cygnus.com>
2560 * java/lang/natClass.cc (forName): Check for the case where a
2561 classname is the name of an array and call FindClassFromSignature
2564 1999-02-18 Andrew Haley <aph@cygnus.com>
2566 * java/lang/StringBuffer (insert (int, String)): Move up any
2567 characters above the insert position and increase the length of
2568 the string buffer by the length of the argument.
2569 (insert (int, char[])): Likewise.
2570 (insert (int, char)): Likewise.
2571 (StringBuffer (String)): The initial capacity of the string buffer
2572 is 16 plus the length of the argument.
2573 (getChars): Add a JDK 1.2 FIXME.
2575 1999-02-18 Andrew Haley <aph@cygnus.com>
2577 * java/lang/Short.java (parseShort(String, int)): Pass radix to
2580 1999-02-18 Andrew Haley <aph@cygnus.com>
2582 * java/lang/Double.java (equals): Use a bit-by-bit comparision
2583 instead of floating-point equality. This is necessary for
2584 correct floating-point Hashtables.
2585 * java/lang/Float.java (equals): Ditto.
2587 1999-02-16 Tom Tromey <tromey@cygnus.com>
2589 * java/util/Properties.java (list): Truncate value to 37
2590 characters and add "...".
2592 1999-02-16 Tom Tromey <tromey@cygnus.com>
2594 * java/util/Vector.java (Vector): Throw IllegalArgumentException
2595 if initCap is negative.
2596 (contains): Implement JDK1.2-style handling of null argument.
2597 (removeElement): Likewise.
2598 (indexOf): Likewise. Also, correctly handle case where idx is
2600 (lastIndexOf): Likewise.
2602 1999-02-16 Tom Tromey <tromey@cygnus.com>
2604 * java/lang/natString.cc (init): Increment source pointer in
2607 1999-02-16 Tom Tromey <tromey@cygnus.com>
2609 * exception.cc: Include NullPointerException.h.
2610 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
2612 1999-02-16 Tom Tromey <tromey@cygnus.com>
2614 * Makefile.in: Rebuilt.
2615 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
2617 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
2619 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
2620 we're compiling canadian.
2621 * configure: Regenerated.
2623 1999-02-12 Andrew Haley <aph@cygnus.com>
2625 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
2626 deleted from libgcj.
2628 1999-02-12 Tom Tromey <tromey@cygnus.com>
2630 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
2631 (_Jv_eh_free): Don't call free.
2632 Don't declare malloc or free.
2634 1999-02-11 Tom Tromey <tromey@cygnus.com>
2636 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
2638 1999-02-11 Andrew Haley <aph@cygnus.com>
2640 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
2641 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
2642 needed by java.lang.*.
2643 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
2644 wf_fmod.o: Removed from libjava.a.
2646 1999-02-11 Tom Tromey <tromey@cygnus.com>
2648 * include/javaprims.h: Reverted previous change; with it
2649 exception.cc can't compile.
2651 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
2653 * include/config.h.in: Rebuilt.
2654 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
2656 * configure: Rebuilt.
2657 * configure.in: Check for sched_yield. Look in thread library for
2658 all thread functions.
2660 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
2661 no recursive mutexes.
2662 (_Jv_MutexDestroy): Define when required.
2663 (_Jv_MutexLock): Likewise.
2664 (_Jv_MutexUnlock): Likewise.
2665 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
2666 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
2667 (_Jv_Mutex_t): New structure.
2668 (_Jv_MutexDestroy): Only define if recursive mutexes available.
2669 (_Jv_MutexLock): Likewise.
2670 (_Jv_MutexUnlock): Likewise.
2672 1999-02-10 Tom Tromey <tromey@cygnus.com>
2674 * aclocal.m4, configure, Makefile.in: Rebuilt.
2675 * acinclude.m4: Renamed libjava to libgcj. Updated to use
2677 * configure.in: Changed to track library changes.
2678 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
2679 (AM_CXXFLAGS): Likewise.
2680 (data_DATA): Likewise.
2681 (AM_CFLAGS): Likewise.
2682 (JC1FLAGS): Likewise.
2683 (libgcj_a_SOURCES): Likewise.
2684 (EXTRA_libgcj_a_SOURCES): Likewise.
2685 (libgcj_a_DEPENDENCIES): Likewise.
2686 (libgcj_a_LIBADD): Likewise.
2687 (libgcj.zip): Likewise.
2688 (CLEANFILES): Likewise.
2689 ($(nat_headers)): Likewise.
2690 (java/lang/FirstThread.h): Likewise.
2691 (java/lang/ThreadGroup.h): Likewise.
2692 (java/lang/String.h): Likewise.
2693 (java/lang/reflect/Field.h): Likewise.
2694 (BUILT_SOURCES): Likewise.
2695 (maintainer-check): Likewise.
2696 (CONFIG_STATUS_DEPENDENCIES): Likewise.
2697 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
2699 * java/util/natGregorianCalendar.cc (computeFields): Only use
2700 gmtime_r and localtime_r when configured for posix threads.
2702 * java/io/natFile.cc (get_entry): Only use readdir_r when
2703 configured for posix threads.
2705 * java/util/natGregorianCalendar.cc: Update copyright notice.
2706 * java/util/TimeZone.java: Ditto.
2707 * java/util/SimpleTimeZone.java: Ditto.
2709 1999-02-08 Tom Tromey <tromey@cygnus.com>
2711 * java/io/PrintStream.java (line_separator): New constant.
2712 (print): Use line_separator, not `file.separator' property.
2713 (println): Use line_separator.
2715 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
2716 when trying to instantiate Class.
2718 * java/lang/ThreadGroup.java (ThreadGroup): Throw
2719 NullPointerException if argument is null.
2721 * java/lang/Thread.java (setName): Throw NullPointerException, not
2722 IllegalArgumentException.
2725 1999-02-08 Andrew Haley <aph@cygnus.com>
2727 * java/lang/natClass.cc (newInstance): Don't allow anyone to
2728 create new Classes with Class.newInstance().
2730 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
2731 semiciolon to end of an array Class's signature if the elements of
2732 the array aren't themselves arrays.
2734 * java/lang/natSystem.cc (arraycopy): The size of an element of an
2735 array of objects is always sizeof(jobject), not the size of the
2736 object to which the reference points.
2738 1999-02-08 Tom Tromey <tromey@cygnus.com>
2740 * java/util/BitSet.java (and): Throw NullPointerException when
2745 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
2746 if argument is negative.
2747 (clear): Correctly compute `offset'. Throw
2748 IndexOutOfBoundsException when required.
2750 (get): Likewise. Also, return correct value.
2751 (ensure): Changed meaning of argument.
2752 (toString): Wrap contents in `{}'; put spaces after commas.
2753 (hashCode): Don't try to examine elements off the end of array.
2754 (or): Correctly include bits past the end of this bit set.
2757 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
2759 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
2760 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
2762 1999-02-04 Andrew Haley <aph@cygnus.com>
2764 * java/lang/natClass.cc (Class::forName): Remove code which mapped
2765 '/' in signatures to '.'
2766 (Class::getName): Likewise,
2767 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
2769 * java/lang/natFirstThread.cc (run): Change '/' in main's
2772 1999-02-03 Andrew Haley <aph@cygnus.com>
2774 * configure.host: -ffloat-store added when compiling libjava on
2775 x86. fdlibm apparently relies on this.
2777 * java/lang/ThreadGroup.java (add): throw an exception if the
2778 ThreadGroup has been destroyed.
2780 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
2783 1999-01-27 Tom Tromey <tromey@cygnus.com>
2785 * java/lang/StringBuffer.java (StringBuffer): Handle null
2788 1999-01-21 Tom Tromey <tromey@cygnus.com>
2790 * java/lang/natFirstThread.cc (run): Don't require main to be
2793 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
2795 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
2797 1999-01-20 Tom Tromey <tromey@cygnus.com>
2799 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
2803 (unintern): Likewise.
2804 (_Jv_NewStringUtf8Const): Likewise.
2806 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
2807 Character.isLetter, to see if character is self-quoting. Also,
2808 correctly handle quoted characters.
2809 (parse): Fixed typo. Also now throws ParseException.
2811 1999-01-15 Tom Tromey <tromey@cygnus.com>
2813 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
2815 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
2816 _Jv_SyncInfo has `init' member.
2818 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
2821 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
2822 IllegalMonitorStateException if unlock fails.
2824 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
2826 (_Jv_NewObjectArray): Likewise.
2828 1999-01-14 Tom Tromey <tromey@cygnus.com>
2830 * java/lang/Character.java (isJavaIdentifierPart): Allow
2831 LETTER_NUMBER characters.
2833 * chartables.pl (process_char): Fixed error messages.
2835 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
2836 * chartables.pl: Updated comments. Changed detection of non-digit
2837 numeric values (no longer miss \u00b2 and friends).
2839 * java/lang/Character.java (isJavaIdentifierPart): Recognize
2840 currency symbols and connector punctuation.
2841 (isIdentifierIgnorable): Make 7f-9f ignorable.
2843 * prims.cc (_Jv_NewObjectArray): Check for overflow.
2844 (_Jv_NewPrimArray): Likewise.
2845 (SIZE_T_MAX): New define.
2847 * java/lang/ClassLoader.java (system): Now private and final.
2849 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
2852 * configure: Rebuilt.
2853 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
2855 * exception.cc: Include gansidecl.h.
2857 1999-01-14 Andrew Haley <aph@cygnus.com>
2859 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
2860 corrected: they didn't treat -0.0 and NaNs correctly.
2862 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
2864 * nogc.cc: Use calloc to zero out memory.
2866 1999-01-11 Tom Tromey <tromey@cygnus.com>
2868 * java/lang/natClass.cc (isInstance): Return false if this class
2869 is primitive, not if class of `obj' is primitive.
2870 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
2872 * java/io/SequenceInputStream.java (close): Handle case where `in'
2875 * java/text/DateFormat.java (format): New method.
2877 * mauve-libjava: Omit java.text.DateFormat.
2879 1999-01-08 Tom Tromey <tromey@cygnus.com>
2881 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
2883 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
2885 (_Jv_CondNotifyAll): Likewise.
2887 * configure: Rebuilt.
2888 * configure.in: Change --enable-source-compilation logic to work
2891 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
2893 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
2894 and RUNTESTFLAGS from AM_MAKEFLAGS.
2895 * configure.in: AM_RUNTESTFLAGS added.
2896 * configure.host: AM_RUNTESTFLAGS added.
2897 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
2898 * configure: rebuilt.
2899 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
2901 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
2902 argv[] made conditional because embedded targets may not have
2904 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
2905 explanatory comments added in call to super.
2907 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
2908 exception thrown in the test harness itself added.
2909 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
2911 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
2913 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
2915 1999-01-06 Tom Tromey <tromey@cygnus.com>
2917 * java/io/natFile.cc (get_entry): New function.
2918 (performList): Use get_entry.
2919 * include/config.h.in: Rebuilt.
2920 * acconfig.h (HAVE_READDIR_R): New define.
2921 * configure: Rebuilt.
2922 * configure.in: Look for readdir_r.
2924 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
2926 * java/util/natDate.cc: Added copyright header.
2928 1999-01-05 Tom Tromey <tromey@cygnus.com>
2930 * include/config.h.in: Rebuilt.
2931 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
2932 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
2933 * configure: Rebuilt.
2934 * configure.in: Check for access, stat, mkdir, rename, rmdir,
2935 unlink, and realpath.
2936 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
2937 (stat): Conditionalize on HAVE_STAT.
2939 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
2940 (performMkdir): Conditionalize on HAVE_MKDIR.
2941 (performRenameTo): Conditionalize on HAVE_RENAME.
2942 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
2944 * include/config.h.in: Rebuilt.
2945 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
2946 * configure: Rebuilt.
2947 * configure.in: Check for gmtime_r and localtime_r. For cross
2948 builds, assume they exist.
2950 * mauve-libjava: Include java.text.DateFormatSymbols again.
2951 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
2952 from setAmPmStrings.
2954 * mauve-libjava: Omit java.text.DateFormatSymbols.
2956 1999-01-04 Tom Tromey <tromey@cygnus.com>
2958 * java/io/PushbackReader.java: `off' already includes `numBytes'.
2960 * java/io/LineNumberReader.java (read): Decrement `count' in
2963 * java/io/BufferedWriter.java (write): Correctly determine when
2964 incoming data would overrun buffer. Flush buffer if write causes
2967 * java/io/BufferedOutputStream.java (write): Increment `count'
2968 after copying data into buffer.
2970 * java/io/FilterOutputStream.java (close): Call flush first.
2972 * java/io/PipedReader.java (read): If read causes `out' to catch
2973 up with `in', then set `in' to -1.
2975 * java/io/LineNumberInputStream.java (read): If no bytes read,
2976 return -1. If no bytes requested, return 0.
2978 * java/lang/StringBuffer.java (insert): If `str' is null, use
2981 1998-12-30 Anthony Green <green@cygnus.com>
2984 * LIBJAVA_LICENSE, COPYING.LIB: Created.
2986 1998-12-23 Tom Tromey <tromey@cygnus.com>
2988 * java/io/PushbackInputStream.java (read): `off' already includes
2991 1998-12-17 Tom Tromey <tromey@cygnus.com>
2993 * Makefile.in: Rebuilt.
2994 * Makefile.am (GCJ_canadian): Include target_alias.
2996 * java/lang/natFirstThread.cc (run): Require main's class to be
2999 1998-12-16 Tom Tromey <tromey@cygnus.com>
3001 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3003 * java/util/ResourceBundle.java (getBundle): Throw
3004 NullPointerException if locale argument is null.
3006 * java/lang/natClass.cc (forName): Throw NullPointerException if
3008 Include NullPointerException.h.
3010 1998-12-14 Tom Tromey <tromey@cygnus.com>
3012 * java/lang/Character.java (Character): Implement Comparable.
3013 (compareTo): New methods.
3015 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3016 correct country and language codes.
3017 (UK, US): New constants.
3018 (setDefault): Language codes are lower-case.
3020 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3021 (getDeclaredConstructors): Likewise.
3022 (getDeclaredField): Likewise.
3023 (getDeclaredFields): Likewise.
3024 (getDeclaredMethod): Likewise.
3025 (getDeclaredMethods): Likewise.
3026 (getField): Likewise.
3027 (getFields): Likewise.
3028 (getMethod): Likewise.
3029 (getMethods): Likewise.
3030 * java/lang/Class.java: Declare new methods.
3031 * java/lang/Class.h: Declare new methods.
3033 * java/lang/natString.cc: Removed `#pragma implementation'.
3034 * include/cni.h (_Jv_GetStringChars): New function.
3035 * Makefile.in: Rebuilt.
3036 * Makefile.am (java/lang/String.h): Don't generate definition for
3039 * java/lang/natString.cc: Added `#pragma implementation'.
3041 * Makefile.in: Rebuilt.
3042 * Makefile.am (libjava.zip): Put build directory first in class
3043 path to avoid bug in compiler.
3045 1998-12-14 Anthony Green <green@cygnus.com>
3047 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3049 * include/javaprims.h: Add EventObject, ListResourceBundle and
3052 1998-12-13 Anthony Green <green@cygnus.com>
3054 * mauve-libjava: Run the ResourceBundle tests.
3056 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3059 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3061 * configure.in, configure: Make --enable-gcj-classes and
3062 --enable-source-compilation the default. (Nervously...) Yeah!
3063 Based on a patch from Tom Tromey.
3065 1998-12-13 Tom Tromey <tromey@cygnus.com>
3067 * java/util/EventObject.java: New file.
3068 * java/util/EventListener.java: New file.
3070 * include/javaprims.h: Updated class declarations.
3071 * Makefile.in: Rebuilt.
3072 * Makefile.am (nat_headers): Added Constructor.h.
3073 (java/lang/String.h): Don't inline String::length().
3074 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3075 * java/lang/Class.java (initializeClass, hackRunInitializers,
3076 hackTrampoline): No need to mark `final'.
3077 (getConstructor, getConstructors): Declare.
3078 * java/lang/reflect/Field.java (equals): New method.
3079 * java/lang/natClass.cc (getConstructor): New method.
3080 (getConstructors): Likewise.
3081 Include Method.h, Field.h, Constructor.h.
3082 * java/lang/reflect/Constructor.java: New file.
3083 * java/lang/reflect/Method.java (toString): No space before open
3085 (equals): Simplified.
3087 1998-12-13 Anthony Green <green@cygnus.com>
3089 * java/util/ResourceBundle.java: New file.
3090 * java/util/ListResourceBundle.java: New file.
3092 1998-12-12 Tom Tromey <tromey@cygnus.com>
3094 * java/lang/System.java (in, out, err): Now buffered streams by
3097 * include/javaprims.h: Updated class declarations.
3098 * Makefile.in: Rebuilt.
3099 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3100 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3102 (nat_files): Added natMethod.o.
3103 * java/lang/reflect/natMethod.cc: New file.
3104 * java/lang/reflect/Field.java (Field): Now extends
3106 * java/lang/reflect/AccessibleObject.java: New file.
3107 * java/lang/reflect/InvocationTargetException.java: New file.
3109 1998-12-11 Tom Tromey <tromey@cygnus.com>
3111 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3112 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3113 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3115 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3117 1998-12-09 Tom Tromey <tromey@cygnus.com>
3119 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3122 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3123 character is already titlecase.
3125 * java/lang/Character.java (isJavaLetter): Follow spec.
3126 (isJavaLetterOrDigit): Likewise.
3128 * java/util/GregorianCalendar.java (gregorianCutover): Append
3131 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3133 1998-12-08 Tom Tromey <tromey@cygnus.com>
3135 * java/lang/reflect/Modifier.java (toString): Replace second
3136 `static' with `synchronized'.
3138 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3139 * java/lang/Object.h (Object::hack12_6): Declare.
3140 * java/lang/Object.java (hack12_6): New function.
3142 1998-12-07 Tom Tromey <tromey@cygnus.com>
3144 * include/java-array.h (__JArray::clone): Removed decl.
3145 * prims.cc (__JArray::clone): Removed.
3146 * java/lang/natObject.cc (clone): Incorporate code to clone an
3149 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3150 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3151 Correctly use dtable_method_count.
3153 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3155 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3158 1998-12-06 Anthony Green <green@cygnus.com>
3160 * mauve-libjava: Don't test ResourceBundle.
3162 1998-12-04 Tom Tromey <tromey@cygnus.com>
3164 More JDK 1.2 spec fixes:
3165 * java/util/Date.java (millis): Now private.
3166 * java/text/DateFormat.java (DateFormat): Constructor now
3168 * java/lang/Void.java (Void): New private constructor.
3169 * java/lang/System.java (System): New private constructor.
3170 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3172 (currentClassLoader): New method.
3173 (currentLoadedClass): New method.
3174 * java/lang/Math.java (Math): New private constructor.
3175 * java/lang/Compiler.java (Compiler): New private constructor.
3176 * java/lang/Class.java (Class): New private constructor.
3177 * java/lang/Double.java (toString): Removed access specifier from
3178 two-argument `toString' method.
3180 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3182 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3183 causes it to be flushed from an fp register (where it may be
3184 longer than double precision) to a double in memory. This is
3185 essential to ensure correct rounding behaviour.
3187 1998-12-04 Tom Tromey <tromey@cygnus.com>
3189 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3192 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3193 explaining apparent divergence from JDK 1.2.
3195 1998-12-04 Per Bothner <bothner@cygnus.com>
3197 * include/no-threads.h: Remove unused parameter names.
3198 This silences a bunch of warnings.
3200 1998-12-04 Tom Tromey <tromey@cygnus.com>
3202 * include/config.h.in: Rebuilt.
3203 * acconfig.h (HAVE_CTIME_R): New symbol.
3205 1998-12-03 Tom Tromey <tromey@cygnus.com>
3207 * mauve-libjava: Added many more categories to reject.
3209 Changes to follow JDK1.2 spec:
3210 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3211 setErr, setIn, setOut): No need to be `final'.
3212 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3213 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3214 * java/lang/Object.java (wait): `nanos' argument is an int.
3215 * java/lang/VirtualMachineError.java: Class is abstract.
3216 * java/lang/ThreadDeath.java: Made constructors public.
3217 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3220 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3222 * java/text/DateFormatSymbols.java (getAmPmStrings,
3223 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3225 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3227 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3228 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3229 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3232 * java/lang/IllegalThreadStateException.java
3233 (IllegalThreadStateException): Changed extending class to match spec.
3235 * java/lang/NumberFormatException.java
3236 (java/lang/NumberFormatException): Changed extending class to match
3239 * java/util/Observer.java (Observer): Changed sig to match JCL.
3241 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3243 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3244 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3245 signature to match JDK 1.1 and 1.2.
3247 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3249 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3250 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3251 * Makefile.in, configure: Rebuilt.
3253 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3256 1998-12-02 Tom Tromey <tromey@cygnus.com>
3258 * mauve-libjava: New file.
3260 The remaining `-W -Wall' fixes:
3261 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3263 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3265 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3267 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3269 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3271 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3273 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3275 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3277 * java/lang/mprec.c (Balloc): Removed unused variable.
3278 (mult): Added parentheses per gcc suggestion.
3279 (pow5mult): Likewise.
3284 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3285 suggestion. Added cast to `int' to avoid signed/unsigned
3287 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3289 (IsAssignableFrom): Likewise.
3290 (_Jv_JNI_GetObjectField): Likewise.
3291 (_Jv_JNI_GetByteField): Likewise.
3292 (_Jv_JNI_GetShortField): Likewise.
3293 (_Jv_JNI_GetIntField): Likewise.
3294 (_Jv_JNI_GetLongField): Likewise.
3295 (_Jv_JNI_GetStringLength): Likewise.
3296 (_Jv_JNI_ToReflectedField): Likewise.
3297 (_Jv_JNI_FromReflectedField): Likewise.
3298 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3300 * Makefile.in: Rebuilt.
3301 * Makefile.am (AM_CFLAGS): Define conditionally.
3302 (WARNINGS): New macro.
3303 (AM_CXXFLAGS): Include WARNINGS.
3304 * configure: Rebuilt.
3305 * configure.in (USING_GCC): New conditional.
3307 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3309 * java/lang/Character.java: Changed classification constants to
3310 type `byte' to match JDK 1.2 docs.
3312 1998-12-01 Tom Tromey <tromey@cygnus.com>
3314 Some fixes to be `-W -Wall' clean:
3315 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3316 (_Jv_MarkArray): Likewise.
3317 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3318 (to_upper_title): Likewise.
3319 (isTitleCase): Likewise.
3320 (toTitleCase): Likewise.
3321 (getNumericValue): Likewise.
3322 (isLowerCase): Likewise.
3323 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3324 (avoids compiler warning).
3325 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3327 (getDeclaringClass): Likewise.
3328 (_Jv_LookupInterfaceMethod): Likewise.
3329 (_Jv_NewClass): Removed name of unused parameter.
3330 * exception.cc (_Jv_type_matcher): Removed unused variable.
3331 (_Jv_setup_eh_info): Removed name of unused parameter.
3332 * prims.cc (_Jv_NewArray): Always return a value.
3333 (_Jv_FindClassFromSignature): Likewise.
3334 * include/java-field.h (getNameUtf8Const): Removed name of unused
3336 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3338 (_Jv_ThreadSetPriority): Likewise.
3340 * java/lang/natString.cc (hashChars): Now static.
3342 * java/lang/FirstThread.java (FirstThread): Now final.
3344 * java/io/File.java (performMkdir, performRenameTo): Now private.
3346 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3347 if no time function defined.
3349 * configure: Rebuilt.
3350 * configure.in: Look for ctime_r, ctime.
3351 * java/util/Date.java (toString): Now native.
3352 * java/util/natDate.cc (toString): Rewrote.
3354 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3356 * Add LDFLAGS line to allow TX39 test cases to link when cross
3359 1998-11-23 Anthony Green <green@cygnus.com>
3361 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3362 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3363 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3364 include/java-array.h, include/java-assert.h, include/java-field.h,
3365 include/javaprims.h, include/jni.h, include/jvm.h,
3366 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3367 include/quick-threads.h, java/io/BufferedInputStream.java,
3368 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3369 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3370 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3371 java/io/CharArrayWriter.java,
3372 java/io/CharConversionException.java, java/io/DataInput.java,
3373 java/io/DataInputStream.java, java/io/DataOutput.java,
3374 java/io/DataOutputStream.java, java/io/EOFException.java,
3375 java/io/File.java, java/io/FileDescriptor.java,
3376 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3377 java/io/FileOutputStream.java, java/io/FileReader.java,
3378 java/io/FileWriter.java, java/io/FilenameFilter.java,
3379 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3380 java/io/FilterReader.java, java/io/FilterWriter.java,
3381 java/io/IOException.java, java/io/InputStream.java,
3382 java/io/InputStreamReader.java,
3383 java/io/InterruptedIOException.java,
3384 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3385 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3386 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3387 java/io/PipedReader.java, java/io/PipedWriter.java,
3388 java/io/PrintStream.java, java/io/PrintWriter.java,
3389 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3390 java/io/RandomAccessFile.java, java/io/Reader.java,
3391 java/io/SequenceInputStream.java, java/io/Serializable.java,
3392 java/io/StreamTokenizer.java,
3393 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3394 java/io/StringWriter.java, java/io/SyncFailedException.java,
3395 java/io/UTFDataFormatException.java,
3396 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3397 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3398 java/io/natFileDescriptorPosix.cc,
3399 java/lang/AbstractMethodError.java,
3400 java/lang/ArithmeticException.java,
3401 java/lang/ArrayIndexOutOfBoundsException.java,
3402 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3403 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3404 java/lang/Class.java, java/lang/ClassCastException.java,
3405 java/lang/ClassCircularityError.java,
3406 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3407 java/lang/ClassNotFoundException.java,
3408 java/lang/CloneNotSupportedException.java,
3409 java/lang/Cloneable.java, java/lang/Comparable.java,
3410 java/lang/Compiler.java, java/lang/Double.java,
3411 java/lang/Error.java, java/lang/Exception.java,
3412 java/lang/ExceptionInInitializerError.java,
3413 java/lang/FirstThread.java, java/lang/Float.java,
3414 java/lang/IllegalAccessError.java,
3415 java/lang/IllegalAccessException.java,
3416 java/lang/IllegalArgumentException.java,
3417 java/lang/IllegalMonitorStateException.java,
3418 java/lang/IllegalStateException.java,
3419 java/lang/IllegalThreadStateException.java,
3420 java/lang/IncompatibleClassChangeError.java,
3421 java/lang/IndexOutOfBoundsException.java,
3422 java/lang/InstantiationError.java,
3423 java/lang/InstantiationException.java, java/lang/Integer.java,
3424 java/lang/InternalError.java, java/lang/InterruptedException.java,
3425 java/lang/LinkageError.java, java/lang/Long.java,
3426 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3427 java/lang/NoClassDefFoundError.java,
3428 java/lang/NoSuchFieldError.java,
3429 java/lang/NoSuchFieldException.java,
3430 java/lang/NoSuchMethodError.java,
3431 java/lang/NoSuchMethodException.java,
3432 java/lang/NullPointerException.java, java/lang/Number.java,
3433 java/lang/NumberFormatException.java, java/lang/Object.h,
3434 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3435 java/lang/Process.java, java/lang/Runnable.java,
3436 java/lang/Runtime.java, java/lang/RuntimeException.java,
3437 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3438 java/lang/Short.java, java/lang/StackOverflowError.java,
3439 java/lang/String.java, java/lang/StringBuffer.java,
3440 java/lang/StringIndexOutOfBoundsException.java,
3441 java/lang/System.java, java/lang/Thread.java,
3442 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3443 java/lang/Throwable.java, java/lang/UnknownError.java,
3444 java/lang/UnsatisfiedLinkError.java,
3445 java/lang/UnsupportedOperationException.java,
3446 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3447 java/lang/Void.java, java/lang/natCharacter.cc,
3448 java/lang/natClass.cc, java/lang/natDouble.cc,
3449 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3450 java/lang/natMath.cc, java/lang/natObject.cc,
3451 java/lang/natRuntime.cc, java/lang/natString.cc,
3452 java/lang/natSystem.cc, java/lang/natThread.cc,
3453 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3454 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3455 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3456 java/text/FieldPosition.java, java/text/Format.java,
3457 java/text/NumberFormat.java, java/text/ParseException.java,
3458 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3459 java/util/BitSet.java, java/util/Calendar.java,
3460 java/util/ConcurrentModificationException.java,
3461 java/util/Date.java, java/util/Dictionary.java,
3462 java/util/EmptyStackException.java, java/util/Enumeration.java,
3463 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3464 java/util/Locale.java, java/util/MissingResourceException.java,
3465 java/util/NoSuchElementException.java, java/util/Observable.java,
3466 java/util/Observer.java, java/util/Properties.java,
3467 java/util/Random.java, java/util/SimpleTimeZone.java,
3468 java/util/Stack.java, java/util/StringTokenizer.java,
3469 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3470 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3473 * exception.cc: Include eh-common.h instead of duplicating
3476 1998-11-23 Tom Tromey <tromey@cygnus.com>
3478 * configure.host: Don't add `-O2' to libjava_flags. Only add
3479 `-Os' to libjava_flags once.
3481 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3483 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3484 * Makefile.in: likewise
3485 * acconfig.h: add ECOS conditional for configure.h
3486 * config.h.in: likewise
3487 * configure: add test for --with-ecos
3488 * configure.in: likewise
3489 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3490 rename call to avoid name clash.
3491 * java/lang/natSystem.cc: add eCos clock support.
3492 * java/util/natGregorianCalendar.cc: add eCos support.
3494 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3496 * Makefile.am, Makefile.in, configure.host: tx39 build option
3499 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3501 * java/io/BufferedReader.java: Added more comments for clarity.
3502 (mark): Used more mnemonic name for local var extraBuffSpace.
3504 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3505 confusion with private method of same name in superclass.
3506 (skipRedundantLF): Set fields in special case to avoid infinite
3507 recursion. Check if markPos has been invalidated in special case.
3508 (readLine): Rewritten to use readLine method of superclass.
3509 (skip): Incorporated code from lineEnd.
3511 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3513 * java/io/BufferedReader.java (readLine): New method.
3514 (lineEnd): new private method.
3515 (mark): Track special case for readLine of getting '\r' at the
3522 * java/io/InputStreamReader.java (read): Return number chars skipped
3523 rather than requested.
3525 * java/lang/StringBuffer.java (append): Update count and differentiate
3526 between field and local variable.
3528 * java/util/Date.java (parseTz): Evaluate in minutes rather than
3529 seconds. Deal with military style time.
3530 (parse): Consistently treat all timezones in minutes until final
3531 calculation. Flag as non-local timezone. Return value in milliseconds.
3532 (setTime): Adjust for year offset from 1900.
3533 (UTC): Adjust for year offset from 1900.
3535 1998-11-17 Tom Tromey <tromey@cygnus.com>
3537 * configure: Rebuilt.
3538 * configure.in: Switch on host, not target.
3540 * Makefile.in: Rebuilt.
3541 * Makefile.am (GCJ_no): New macro.
3542 (GCJ): Use @CANADIAN@.
3543 (GCJH_no): New macro
3544 (GCJH_canadian): New macro.
3545 (GCJH): Use @CANADIAN@.
3546 (ZIP_no): New macro.
3547 (ZIP_canadian): New macro.
3548 (ZIP): Use @CANADIAN@.
3549 * aclocal.m4, configure: Rebuilt.
3550 * configure.in (CANADIAN): Compute and subst.
3552 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
3554 * java/io/FileDescriptor.java (finalize): Only close file
3555 descriptor if valid.
3557 1998-11-17 Tom Tromey <tromey@cygnus.com>
3559 * prims.cc (_Jv_InitRuntime): Removed.
3561 1998-11-16 Tom Tromey <tromey@cygnus.com>
3563 * java/io/FileOutputStream.java (close): Only close file
3564 descriptor if valid.
3565 (finalize): New method.
3567 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
3568 (_Jv_NewPrimArray): Likewise.
3569 * boehm.cc (_Jv_RegisterFinalizer): Use
3570 GC_REGISTER_FINALIZER_NO_ORDER.
3571 (GC_GENERIC_MALLOC): New define.
3572 (_Jv_AllocObj): Use it.
3573 (_Jv_AllocArray): Likewise.
3574 (_Jv_AllocBytes): Likewise.
3575 (_Jv_MarkObj): Just return if vtbl not set.
3576 (_Jv_MarkArray): Likewise.
3577 (MAYBE_MARK): New macro; use everywhere.
3578 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
3580 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
3582 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
3583 to a jlong before calculation to prevent overflow.
3585 1998-11-16 Tom Tromey <tromey@cygnus.com>
3587 * Makefile.in: Rebuilt.
3588 * Makefile.am (nat_headers): Fixed typo.
3590 1998-11-15 Tom Tromey <tromey@cygnus.com>
3592 * java/lang/Class.h (Class::getName): Removed definition.
3593 * Makefile.in: Rebuilt.
3594 * Makefile.am (nat_headers): Added InstantiationException.h,
3595 NoSuchMethodException.h.
3596 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
3597 (init_name): New global.
3598 (hackRunInitializers): Use clinit_name.
3599 Include InstantiationException.h, NoSuchMethodException.h.
3600 (newInstance): Do some error checking (but not all). Call
3602 (forName): Throw exception if class not found.
3603 (getName): New method.
3604 (forName): Transform class name from external format to internal
3605 format before lookup.
3607 1998-11-15 Anthony Green <green@cygnus.com>
3609 * java/lang/Class.h (Class::forName): Method is static.
3611 * java/lang/natClass.cc (newInstance): Add simple implementation.
3614 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
3616 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
3617 int), for compatibility with jc1.
3619 1998-11-14 Tom Tromey <tromey@cygnus.com>
3621 * include/config.h.in: Rebuilt.
3622 * acconfig.h (LINUX_THREADS): New define.
3623 * configure: Rebuilt.
3624 * configure.in: Define LINUX_THREADS if using POSIX threads on
3625 Linux. Look for pthread_mutexattr_setkind_np function.
3626 * posix-threads.cc (throw_cleanup): New function.
3627 (really_start): Push cleanup function.
3628 (_Jv_ThreadCancel): New function.
3629 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
3630 (_Jv_ThreadInitData): Set `exception' field in new structure.
3631 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
3633 (_Jv_ThreadWait): New function.
3634 (_Jv_InitThreads): Initialize daemon globals.
3635 (FLAG_DAEMON): New macro.
3636 (really_start): Notify daemon_cond when non-daemon thread exits.
3637 Include <java/lang/System.h>.
3638 (struct starter): `object' field now a thread.
3639 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
3640 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
3641 (_Jv_ThreadWait): Removed definition.
3642 (_Jv_Thread_t): Added `exception' field.
3643 (_Jv_ThreadCancel): Removed definition.
3645 1998-11-13 Tom Tromey <tromey@cygnus.com>
3647 * Makefile.in: Rebuilt.
3648 * Makefile.am (libjava.zip): Compute javac before changing
3651 * Makefile.in: Rebuilt.
3652 * Makefile.am (libjava.zip): Include directory entries.
3654 * Makefile.in: Rebuilt.
3655 * Makefile.am (expanded): New macro.
3658 1998-11-12 Tom Tromey <tromey@cygnus.com>
3660 * prims.cc (clone): New function.
3661 * include/java-array.h (__JArray::clone): Removed definition.
3663 * java/lang/natObject.cc (clone): Don't assert that class is not
3664 an array; array's `clone' method just calls this one.
3666 * Makefile.in: Rebuilt.
3667 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
3668 Now creates zip file. Changed all users.
3670 (data_DATA): New macro.
3672 1998-11-11 Tom Tromey <tromey@cygnus.com>
3674 * configure: Rebuilt.
3675 * configure.in: Recognize --enable-java-gc, not --enable-gc.
3677 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
3679 * java/io/InputStream.java (reset): Add msg to thrown exception.
3681 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
3683 * java/io/LineNumberInputStream.java: Rewritten.
3685 * java/io/StringBufferInputStream.java: Removed extraneous import.
3687 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
3689 * java/io/StringBufferInputStream.java: Rewritten.
3691 * java/util/Date.java (parseMonth): Optimize.
3692 (parseDayOfWeek): Created.
3693 (parse): Optimize to use parseDayOfWeek.
3695 1998-11-11 Tom Tromey <tromey@cygnus.com>
3697 * java/lang/StringBuffer.java (append): Handle case where STR is
3700 * include/javaprims.h: Regenerated class declarations.
3702 * configure: Rebuilt.
3703 * configure.in: Added --enable-gcj-classes,
3704 --enable-single-compilation, --enable-source-compilation flags.
3705 * Makefile.in: Rebuilt.
3706 * Makefile.am (java_io_files): New macro.
3707 (java_lang_files): Likewise.
3708 (java_text_files): Likewise.
3709 (java_util_files): Likewise.
3710 (java_files): Use new macros.
3711 (java-io.o): New target.
3712 (java-lang.o): Likewise.
3713 (java-text.o): Likewise.
3714 (java-util.o): Likewise.
3715 (src_io_files): New macro.
3716 (src_lang_files): Likewise.
3717 (src_text_files): Likewise.
3718 (src_util_files): Likewise.
3719 (class_io_files): New macro.
3720 (class_lang_files): Likewise.
3721 (class_text_files): Likewise.
3722 (class_util_files): Likewise.
3723 (class_files): Use new macros.
3724 (javao_files): Define conditionally.
3725 (.java.o): New target.
3726 ($(javao_files)): New target.
3728 (GCJH): Added $(EXEEXT).
3729 (CLASSPATH_ENV): Removed.
3730 (GCJCOMPILE): New macro.
3732 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
3734 * java/util/Date.java (parse): Written from scratch.
3736 1998-11-11 Tom Tromey <tromey@cygnus.com>
3738 * java/lang/Throwable.java (toString): Correct sense of test for
3739 determining when to include detail message in result.
3741 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
3744 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
3746 * java/lang/Class.h: Use _Jv_RegisterClasses, not
3748 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
3749 (_Jv_RegisterClass): Use it.
3750 * include/jvm.h (_Jv_RegisterClasses): Declare.
3751 * java/lang/natObject.cc (init): Removed.
3752 (sync_init): Never call _Jv_InitializeSyncMutex.
3753 (_Jv_InitializeSyncMutex): Don't set `init'.
3754 * prims.cc (JvRunMain): Don't run init functions.
3756 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
3758 * java/lang/natClass.cc (initializeClass): Set state before
3759 resolving constants.
3761 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
3762 (STATE_RESOLVED): New macro.
3763 (initializeClass): Call resolveConstants.
3764 (hackRunInitializers): Don't call resolveConstants.
3765 (_Jv_FindArrayClass): Move short-circuit return for primitive
3766 element types earlier in function.
3768 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
3770 * prims.cc (no_memory): New global.
3771 (_Jv_makeUtf8Const): Throw no_memory.
3772 (_Jv_AllocObject): Likewise.
3773 (_Jv_NewObjectArray): Likewise.
3774 (_Jv_NewPrimArray): Likewise.
3775 (JvRunMain): Initialize no_memory.
3777 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
3779 * java/io/FileInputStream.java: Corrected date comment.
3780 * java/io/SequenceInputStream.java: Rewritten.
3782 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
3784 * java/lang/FirstThread.java (die): New method.
3785 * java/lang/natFirstThread.cc (die): Removed.
3787 (run): Use `DIE', not `die'.
3789 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
3791 * java/io/CharArrayReader.java (read): Move check into synchronized
3792 block to prevent a close while in progress.
3795 * java/io/PushbackReader.java (read): Ditto.
3798 * java/io/StringReader.java (mark): Ditto.
3803 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
3805 * java/io/PipedInputStream.java: Updated status.
3806 (connect): Added code to prevent infinite recursion and to
3807 differentiate exception causes.
3808 (read): Added code to differentiate exception causes.
3809 (receive): Made exception pass string with the cause.
3811 * java/io/PipedOutputStream.java: Updated status.
3812 (connect): Added code to call connect at the other end of the pipe.
3814 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
3816 * java/io/PipedInputStream.java (connect): Throw exception if
3817 already connected to the same output stream.
3818 (read): Do bounds checking first.
3820 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
3822 * java/io/PipedInputStream.java: Added private boolean outClosed.
3823 (available): Removed check if output stream is open.
3824 (close): Mark the buffer as empty so available returns 0.
3825 (read): Check if the output stream was closed and then return EOF
3826 when the buffer is empty.
3827 (receive): Mark the output stream as closed when passed a -1.
3829 * java/io/PipedOutputStream.java (close): Notify the input stream
3830 that there's no more data coming.
3831 (connect): Added a FIXME comment to note more coordination needed
3832 with PipedInputStream.
3833 (flush): Added a FIXME comment to mark what this method might do
3836 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
3838 * java/io/PipedInputStream.java: Rewritten.
3840 1998-10-30 Tom Tromey <tromey@cygnus.com>
3842 * java/lang/Throwable.java: Rewrote from scratch.
3844 * java/lang/Class.h (Class): Don't mention newMultiArray.
3845 * prims.cc (newMultiArray): Removed.
3846 (_Jv_NewMultiArray): Removed.
3847 (newArray): Removed.
3848 (new_multi_array): New function.
3849 (_Jv_NewMultiArray): Rewrote from scratch.
3851 * include/javaprims.h: Regenerated class declarations.
3852 * classes.pl (scan): Don't declare PrimClass.
3853 * include/cni.h (JvPrimClass): Use new names for classes.
3854 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
3855 added _Jv_PrimClass.
3856 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
3857 (_Jv_initPrimClass): Removed.
3858 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
3859 (_Jv_AllocObject): Added comment.
3860 (_Jv_NewObjectArray): Likewise.
3861 (_Jv_NewPrimArray): Likewise.
3863 1998-10-29 Tom Tromey <tromey@cygnus.com>
3865 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
3866 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
3868 * java/lang/Class.h (Class): Added `dtable_method_count' field.
3870 * java/lang/natObject.cc (init): New global.
3871 (sync_init): Call _Jv_InitializeSyncMutex if required.
3873 * Makefile.in: Rebuilt.
3874 * Makefile.am (nat_headers): Added ClassLoader.h.
3875 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
3876 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
3877 internalAddClass, lookupArray no longer friends.
3878 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
3879 _Jv_FindArrayClass now friends.
3880 * java/lang/natClass.cc (HASH_LEN): New macro.
3881 (HASH_UTF): Likewise.
3882 (loaded_classes): New global.
3883 (_Jv_FindClass): New function.
3884 (ClassClass): New define.
3885 (_Jv_FindClassInCache): New function.
3886 (_Jv_RegisterClass): Likewise.
3887 (_Jv_NewClass): Likewise.
3889 (ObjectClass): New define.
3890 (CloneableClass): New define.
3891 * prims.cc (_Jv_FindClass): Removed.
3892 (simpleLookupClass): Removed.
3893 (insertClass): Removed.
3894 (CLASSHASHSZ): Removed.
3895 (classPool): Removed.
3896 (_Jv_RegisterClass): Removed.
3897 (internalAddClass): Removed.
3898 (ClassClass): Removed.
3899 (RuntimeClass): Removed.
3900 (lookupArray): Removed.
3901 (CloneableClass): Removed.
3902 (CLASSMAXSIG): Removed.
3903 Rearranged file to group related functions together.
3904 (_Jv_IsInstanceOf): Moved to natClass.cc.
3905 (abort_final): Removed.
3906 Removed some unused includes.
3907 (classFromSig): Removed.
3908 (_Jv_FindClassFromSignature): New function.
3909 (_Jv_initPrimClass): Renamed.
3910 (getClass): Removed.
3912 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
3914 * java/io/FileDescriptor.java (finalize): Throws IOException
3915 instead of Throwable.
3917 * java/io/FileInputStream.java: Rewritten.
3919 * java/io/StreamTokenizer.java (nextToken): Unread newline character
3920 at the end of a comment.
3922 1998-10-29 Tom Tromey <tromey@cygnus.com>
3924 * include/javaprims.h: Regenerated class declarations.
3925 * classes.pl (scan): Don't special-case ClassLoader.
3927 * prims.cc (processClass): Removed.
3928 (_Jv_InitClass): Removed.
3929 Removed all CSTATE_ macros.
3930 (resolveConstants): Removed.
3932 (_Jv_NewMultiArray): Cleaned up.
3933 * Makefile.in: Rebuilt.
3934 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
3935 * java/lang/Class.h (Class): Declare new methods. processClass no
3937 * java/lang/Class.java (hackTrampoline): New method.
3938 (initializeClass): Declare.
3939 (hackRunInitializers): Declare.
3940 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
3941 (initializeClass): New method.
3942 (hackRunInitializers): New method.
3943 (init_name, void_signature): Moved from prims.cc.
3944 (_Jv_InitClass): New function.
3945 (isAssignableFrom): Don't call processClass.
3946 (STATE_NOTHING): New macro.
3947 (resolveConstants): New function.
3949 (ErrorClass): New define.
3951 * java/lang/Class.java (getClassLoader): Declare.
3952 * java/lang/ClassLoader.java: Rewrote from scratch.
3954 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
3955 AbstractMethodError.h, IllegalAccessError.h,
3956 NoClassDefFoundError.h.
3957 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
3958 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
3959 longer static. Changed return type.
3960 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
3961 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
3962 * prims.cc (findMethodLocal): Removed.
3963 (processClass): Use _Jv_GetMethodLocal.
3965 1998-10-28 Tom Tromey <tromey@cygnus.com>
3967 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
3968 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
3970 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
3971 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
3973 * include/jni.h: Added copyright header.
3974 * include/javaprims.h: Added copyright header.
3975 * include/java-field.h: Added copyright header.
3976 * include/java-array.h: Added copyright header.
3977 * include/cni.h: Added copyright header.
3979 * include/javaprims.h: Regenerated class declarations using
3980 classes.pl; now they are complete.
3981 * classes.pl: New file.
3983 * java/lang/natMath.cc: Include <config.h>.
3984 * java/lang/reflect/natField.cc: Include <config.h>.
3985 * java/util/NativeUtil.java: Removed.
3986 * Makefile.in: Rebuilt.
3987 * Makefile.am (nat_headers): Added Math.h.
3988 * java/lang/Math.h: Removed.
3989 * java/util/natGregorianCalendar.cc: Added copyright header.
3991 * java/lang/natFloat.cc: Added copyright header.
3992 * java/lang/Byte.java: Added copyright header.
3993 * java/lang/Void.java: Added copyright header.
3994 * java/lang/Short.java: Added copyright header.
3996 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
3998 * include/javaprims.h (java::io): Added bunch of missing classes.
4000 * java/io/DataInputStream.java (readLine): Added a special case
4001 for handling BufferedInputStream data to reduce the likelihood
4002 of a pushback error.
4003 (skipBytes): Added code to handle negative number of skip bytes.
4005 * java/io/StreamTokenizer.java: Rewritten.
4007 1998-10-28 Tom Tromey <tromey@cygnus.com>
4009 * java/util/natGregorianCalendar.cc (computeFields): Call
4010 getRawOffset as a method.
4012 * include/javaprims.h (java::io): Added FilterOutputStream.
4013 * Makefile.in: Rebuilt.
4014 * Makefile.am (nat_headers): Added PrintStream.h,
4015 FilterOutputStream.h.
4016 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4018 (die): New function.
4019 (run): Die if `main' not found, is not public, or is not static.
4021 * boehm.cc (_Jv_MarkObj): Use new field names.
4022 * include/java-field.h (JvGetFirstInstanceField): Use new field
4024 (JvNumInstanceFields): Likewise.
4025 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4026 (getInterfaces): Likewise.
4027 * prims.cc (CLASS_CONSTANTS): Removed.
4028 (CLASS_CONST_SIZE): Likewise.
4029 (CLASS_CONST_TAG): Likewise.
4030 (CLASS_CONST_DATA): Likewise.
4031 (CLASS_CONST_UTF8): Likewise.
4032 (WORD2UTF): Likewise.
4033 (CLASS_CLASS): Likewise.
4034 (CLASS_PRIM_SIG): Likewise.
4035 (CLASS_ARRAY_CACHE): Likewise.
4036 (HASH_CHARS): Likewise.
4037 (hashClassName): Likewise.
4038 Many changes to use new field names.
4039 * java/lang/Class.h (Class): Renamed fields to track compiler.
4041 1998-10-27 Tom Tromey <tromey@cygnus.com>
4043 * java/lang/natClass.cc: Use #pragma implementation.
4044 (getComponentType): Moved into header.
4045 (getModifiers): Likewise.
4046 (getName): Likewise.
4047 (getSuperclass): Likewise.
4048 (isArray): Likewise.
4049 (isPrimitive): Likewise.
4050 * include/jvm.h (_Jv_FindClass): Declare.
4051 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4052 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4053 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4054 * java/lang/Class.h: Rewrote from scratch.
4055 * prims.cc: Many changes to work with new Class.h.
4056 * include/java-field.h (CLASS_FIELDS): Removed.
4057 (CLASS_SFIELDS): Likewise.
4058 (CLASS_IFIELDS): Likewise.
4059 (CLASS_NFIELDS): Likewise.
4060 (CLASS_NIFIELDS): Likewise.
4061 (CLASS_NSFIELDS): Likewise.
4062 (CLASS_FSIZE): Likewise.
4063 (JvGetFirstInstanceField): Rewrote.
4064 (JvNumInstanceFields): Likewise.
4066 * java/lang/Object.h: Added copyright comment.
4068 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4070 * java/text: New package directory.
4071 * java/text/FieldPosition.java: New class.
4072 * java/text/ParsePosition.java: New class.
4073 * java/text/ParseException.java: New Exception class.
4074 * java/text/Format.java: New class.
4075 * java/text/NumberFormat.java: New (empty placeholder) class.
4076 * java/text/DateFormatSymbols.java: New class (no Locales support).
4077 * java/text/DateFormat.java: New Format class (incomplete).
4078 * java/text/SimpleDateFormat.java: New DateFormat class.
4080 * include/javaprims.h (java::test): Added new package and classes.
4081 * java/util/Calendar.java (clone): New method.
4082 * java/util/Date.java (toString): Added non-native implementation.
4083 (parse): Made public instead of synchronized.
4084 * java/util/natDate.cc (toString): Removed.
4085 * java/util/natGregorianCalendar.cc (computeFields):
4086 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4088 1998-10-27 Tom Tromey <tromey@cygnus.com>
4090 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4092 * prims.cc (lookupArray): Added explanatory comment.
4093 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4094 class. Mark the class of each object.
4095 (_Jv_MarkArray): Mark the object's class.
4097 * configure: Rebuilt.
4098 * configure.in: Create java-gc.h.
4099 * include/boehm-gc.h: New file.
4100 * include/no-gc.h: New file.
4101 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4103 * java/lang/Object.h: Include java-gc.h.
4104 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4105 friends, if defined.
4106 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4108 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4110 1998-10-26 Tom Tromey <tromey@cygnus.com>
4112 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4113 paragraph separators, not numbers.
4115 * java/io/Writer.java (write): Removed write(char) to avoid
4117 * java/util/Properties.java: Rewrote from scratch.
4118 * include/javaprims.h (java::io): Added PrintWriter,
4119 BufferedWriter, PushbackReader.
4121 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4123 * java/lang/System.java: exit() is a static method.
4125 1998-10-26 Tom Tromey <tromey@cygnus.com>
4127 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4129 (_Jv_NewStringUtf8Const): Likewise.
4130 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4131 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4133 * java/lang/Object.h (Object): Add mark_array as friend function.
4134 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4135 _Jv_AllocBytes, to ensure that header is marked.
4136 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4138 (mark_array): Push sync_info field for array.
4140 1998-10-24 Tom Tromey <tromey@cygnus.com>
4142 * java/lang/String.java (String): Updated for StringBuffer
4144 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4146 * java/lang/StringBuffer.java: Renamed fields to conform to
4147 serialization spec: buffer->value, next->count, copy->shared.
4149 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4151 * java/util/TimeZone.java: New class.
4152 * java/util/SimpleTimeZone.java: New class.
4153 * java/util/Locale.java: New file.
4154 * java/util/Calendar.java: Make almost complete.
4155 * java/util/GregorianCalendar.java
4156 * java/util/natGregorianCalendar.cc: New file.
4157 * java/util/Date.java: Re-written from scratch.
4158 * java/util/natDate.cc (setTime): Removed - no longer native.
4159 * include/javaprims.h (java::util): Add new classes.
4160 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4161 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4163 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4165 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4166 returning it as a jint.
4168 1998-10-23 Tom Tromey <tromey@cygnus.com>
4170 * prims.cc (arg_vec, main_group, main_thread): New globals.
4171 (JvRunMain): Use them.
4173 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4175 * java/io/DataInputStream.java: Rewritten.
4177 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4178 tertiary bytes with 0x80 per spec.
4180 1998-10-23 Tom Tromey <tromey@cygnus.com>
4182 * java/lang/String.java (init): Changed name of `copy' argument.
4183 * java/lang/natString.cc (init): Inverted sense of `copy'
4186 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4187 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4188 * boehm.cc (ObjectClass): New define.
4189 (ClassClass): Likewise.
4190 (mark_obj): Special-case Object and Class.
4192 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4194 * java/util/BitSet.java: Rewrote from scratch.
4196 * prims.cc (lookupArray): Removed useless cast.
4198 * java/lang/natObject.cc: Use `#pragma implementation'.
4200 * java/lang/String.java (init): Added `copy' argument.
4201 (String): Look in StringBuffer to find char array.
4202 * java/lang/natString.cc (init): Added `copy' argument.
4203 * java/lang/StringBuffer.java: Rewrote from scratch.
4205 * java/lang/Compiler.java: Rewrote from scratch.
4206 * java/lang/Throwable.java: Don't use NativeLang.
4207 * include/javaprims.h (java::lang): Don't mention NativeLang.
4208 * java/lang/Process.java: Rewrote from scratch.
4209 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4211 (currentClassLoader): Likewise.
4212 (currentLoadedClass): Likewise.
4213 * java/lang/natClass.cc (getClassLoader): Commented out.
4214 * java/lang/Class.java (getClassLoader): Commented out.
4215 * java/lang/Compiler.java: Removed.
4216 * java/lang/NativeLang.java: Removed.
4218 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4219 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4220 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4221 (_Jv_hashUtf8String): Now static.
4222 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4223 name of return type.
4225 * java/lang/Class.h (Class): Declare checkMemberAccess.
4226 * Makefile.in: Rebuilt.
4227 * Makefile.am (nat_headers): Added Member.h.
4228 * java/lang/natClass.cc: Include Member.h.
4229 (getDeclaredClasses): Call checkMemberAccess.
4230 * java/lang/Class.java (checkMemberAccess): Call
4231 SecurityManager.checkMemberAccess.
4233 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4235 * java/lang/SecurityManager.java: Rewritten.
4237 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4239 * java/applet/Applet.java, java/applet/AppletContext.java,
4240 java/applet/AppletStub.java, java/applet/AudioClip.java,
4241 java/awt/AWTError.java, java/awt/AWTException.java,
4242 java/awt/BorderLayout.java, java/awt/Button.java,
4243 java/awt/Canvas.java, java/awt/CardLayout.java,
4244 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4245 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4246 java/awt/Color.java, java/awt/Component.java,
4247 java/awt/Container.java, java/awt/Dialog.java,
4248 java/awt/Dimension.java, java/awt/Event.java,
4249 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4250 java/awt/Font.java, java/awt/FontMetrics.java,
4251 java/awt/Frame.java, java/awt/Graphics.java,
4252 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4253 java/awt/GridLayout.java, java/awt/Image.java,
4254 java/awt/Insets.java, java/awt/Label.java,
4255 java/awt/LayoutManager.java, java/awt/List.java,
4256 java/awt/MediaTracker.java, java/awt/Menu.java,
4257 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4258 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4259 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4260 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4261 java/awt/TextArea.java, java/awt/TextComponent.java,
4262 java/awt/TextField.java, java/awt/Toolkit.java,
4263 java/awt/Window.java, java/awt/image/ColorModel.java,
4264 java/awt/image/CropImageFilter.java,
4265 java/awt/image/DirectColorModel.java,
4266 java/awt/image/FilteredImageSource.java,
4267 java/awt/image/ImageConsumer.java,
4268 java/awt/image/ImageFilter.java,
4269 java/awt/image/ImageObserver.java,
4270 java/awt/image/ImageProducer.java,
4271 java/awt/image/IndexColorModel.java,
4272 java/awt/image/MemoryImageSource.java,
4273 java/awt/image/PixelGrabber.java,
4274 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4275 java/awt/peer/CanvasPeer.java,
4276 java/awt/peer/CheckboxMenuItemPeer.java,
4277 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4278 java/awt/peer/ComponentPeer.java,
4279 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4280 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4281 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4282 java/awt/peer/MenuBarPeer.java,
4283 java/awt/peer/MenuComponentPeer.java,
4284 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4285 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4286 java/awt/peer/TextAreaPeer.java,
4287 java/awt/peer/TextComponentPeer.java,
4288 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4289 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4290 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4291 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4292 java/net/MalformedURLException.java, java/net/NativeNet.java,
4293 java/net/ProtocolException.java, java/net/ServerSocket.java,
4294 java/net/Socket.java, java/net/SocketException.java,
4295 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4296 java/net/URL.java, java/net/URLConnection.java,
4297 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4298 java/net/URLStreamHandlerFactory.java,
4299 java/net/UnknownHostException.java,
4300 java/net/UnknownServiceException.java: Removed.
4302 1998-10-22 Tom Tromey <tromey@cygnus.com>
4304 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4305 finalizer is not Object.finalize.
4306 (internalAddClass): Don't set `final' member of class.
4307 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4308 other places that know about finalize() location.
4309 * java/lang/Class.h (Class): Removed `final' field.
4311 * aclocal.m4, configure: Rebuilt.
4312 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4313 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4315 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4316 * Makefile.in: Rebuilt.
4317 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4319 1998-10-21 Tom Tromey <tromey@cygnus.com>
4321 * java/lang/Object.java (finalize): Move to be first method in
4324 * configure: Rebuilt.
4325 * configure.in (GCINCS): Include contents of boehm-cflags file.
4327 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4329 * java/lang/ArrayIndexOutOfBoundsException.java
4330 (ArrayIndexOutOfBoundsException): Fixed string literal.
4331 * java/lang/StringIndexOutOfBoundsException.java
4332 (StringIndexOutOfBoundsException): Fixed string literal.
4334 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4336 * natFileDescriptorEcos.cc added.
4337 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4339 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4341 * acconfig.h: test for __int32_t and __uint32_t added.
4342 * include/config.h.in: test for __int32_t and __uint32_t added.
4343 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4344 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4345 * configure.in: test for __int32_t and __uint32_t added.
4346 * configure: test for __int32_t and __uint32_t added.
4348 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4350 * configure.in: Test for --enable ecos and link
4351 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4352 natFileDescriptorPosix.cc
4354 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4356 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4358 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4361 * java/io/CharArrayReader.java (close): Synchronize on lock
4362 object per Reader contract.
4363 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4364 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4365 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4366 Ensure that arg passed in isn't negative.
4368 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4369 constructing the superclass.
4371 * java/io/PushbackReader.java (close): Synchronize on lock
4372 object per Reader contract.
4373 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4374 (ready): Synchronize on lock obj. Throw IOException if reader
4376 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4377 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4378 Ensure that arg passed in isn't negative.
4379 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4381 * java/io/StringReader.java: Created.
4383 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4385 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4387 (read): Removed synchronized modifier to match JCL.
4388 (reset): Removed synchronized modifier to match JCL.
4389 (skip): Removed synchronized modifier to match JCL.
4391 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4393 * java/io/PushbackReader.java (PushbackReader): Made
4394 constructors public.
4396 1998-10-17 Tom Tromey <tromey@cygnus.com>
4398 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4399 constructors public.
4401 1998-10-16 Anthony Green <green@cygnus.com>
4403 * aclocal.m4, configure: Rebuilt.
4404 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4406 * configure.host: Rewrote.
4407 * Makefile.in: Rebuilt.
4408 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4409 (AM_CFLAGS): New macro.
4410 ($(c_files)): Use COMPILE macro.
4411 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4412 automake problem(s).
4414 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4416 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4418 * java/io/CharArrayReader.java: Created.
4420 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4422 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4423 size check to allow 0 per JCL.
4425 * java/io/PushbackReader.java: Created.
4427 1998-10-16 Tom Tromey <tromey@cygnus.com>
4429 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4430 <sys/time.h> includes.
4431 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4432 * include/no-threads.h: Conditionalize <unistd.h> include on
4435 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4437 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4440 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4442 * java/io/FilterReader.java: Created.
4444 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4446 * java/io/PushbackInputStream.java: Rewritten.
4448 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4449 that size passed to constructor is legal.
4450 (read): Check that args passed in are legal.
4451 (skip): Rewritten to get rid of the temporary buffer.
4452 (refill): Added marklimit check to grow the buffer.
4454 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4456 (bytesAvail): Removed.
4457 (read): Changed bytesAvail to Math.min.
4458 (skip): Changed bytesAvail to Math.min.
4460 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4461 from the throws clause.
4462 (skip): Rewritten to use a temporary buffer.
4464 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4466 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4469 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4471 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4472 to write the double one word at a time.
4474 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4476 * java/io/BufferedInputStream.java: Rewritten.
4478 1998-10-12 Tom Tromey <tromey@cygnus.com>
4480 * jni.cc: Include config.h and stddef.h.
4482 * java/lang/Class.h (_dispatchTable): Removed again.
4483 Removed all ACC_* defines again.
4485 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4487 * Makefile.am (nat_files): Add netField.o.
4488 (libjava_a_SOURCES): Add jni.cc.
4489 (java/lang/reflect/Field.h): New rule.
4490 * Makefile.in: Re-generated.
4491 * include/javaprims.h: Add some extra class and typedefs.
4492 * include/jni.h: New file.
4495 * include/java-field.h: New file.
4496 * include/jvm.h: #include <java-field.h>.
4497 * boehm.cc: #include <java-field.h>.
4498 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4499 * java/lang/reflect/Member.java: New class.
4500 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4501 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4503 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4505 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4506 testsuite/Makefile.in: Rebuilt.
4507 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4508 * configure.host: Created.
4510 1998-10-10 Tom Tromey <tromey@cygnus.com>
4512 * java/lang/natObject.cc (sync_init): Always allocate a new
4515 1998-10-09 Tom Tromey <tromey@cygnus.com>
4517 * java/io/ByteArrayInputStream.java (mark): Renamed from
4520 * java/io/FileOutputStream.java (finalize): Removed.
4521 * java/io/FileDescriptor.java (finalize): New method.
4523 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
4525 * ByteArrayInputStream.java: Corrected status comment.
4527 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
4529 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4531 1998-10-08 Tom Tromey <tromey@cygnus.com>
4533 * prims.cc (lookupArray): Use static array to initialize list of
4536 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
4538 * prims.cc (lookupArray): Initialize the msize for new
4541 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
4543 * configure: Rebuilt.
4544 * configure.in: Check for fsync and sleep.
4545 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4547 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4548 HAVE_SLEEP. Include config.h.
4550 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4551 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4554 1998-10-08 Tom Tromey <tromey@cygnus.com>
4556 * java/io/natFile.cc: Don't include SecurityManager.h.
4557 (performList): Renamed.
4558 (performMkdir): Likewise.
4559 (performRenameTo): Likewise.
4560 (performDelete): Likewise.
4562 * java/io/File.java (performDelete): Renamed from natDelete.
4563 (list): Now written in Java.
4564 (performList): New method.
4565 (performMkdir): New method.
4566 (mkdir): Now written in Java.
4567 (performRenameTo): New method.
4568 (renameTo): Now written in Java.
4570 1998-10-06 Tom Tromey <tromey@cygnus.com>
4572 * Makefile.in: Rebuilt.
4573 * Makefile.am (ETAGS_ARGS): New macro.
4574 (TAGS_DEPENDENCIES): Likewise.
4576 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
4578 * Makefile.in: Rebuilt.
4579 * Makefile.am: Use -classpath option with javac.
4581 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
4583 * java/io/FileOutputStream.java (finalize): Call
4586 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
4588 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
4590 * java/lang/mprec.c: Ditto.
4592 * java/lang/mprec.h: Include math.h for HUGE_VAL when
4595 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
4597 * java/io/InputStream.java (skip): Make local var i a long.
4599 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
4601 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
4602 * prims.cc (lookupArray): Use memcpy, not memmove.
4603 * include/config.h.in: Rebuilt.
4604 * acconfig.h (HAVE_MEMCPY): Added.
4605 * configure: Rebuilt.
4606 * configure.in: Check for memcpy again.
4608 * java/io/RandomAccessFile.java (RandomAccessFile): Use
4609 String.compareTo, not ==.
4611 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
4612 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
4613 * java/lang/natObject.cc (struct _dispatchTable): Removed.
4614 * include/jvm.h (struct _Jv_DispatchTable): New structure.
4615 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
4616 into new array's dtable.
4617 (_Jv_AllocObject): Use _Jv_DispatchTable.
4618 (_Jv_NewPrimArray): Likewise.
4619 (_Jv_NewObjectArray): Likewise.
4621 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4623 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
4624 offending index value.
4625 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
4627 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
4628 * java/lang/Throwable.java: (Throwable): fixed argument to this().
4630 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
4632 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
4634 * java/io/OutputStream.java (write): Use off and len parameters to
4635 output partial byte array.
4637 * java/io/BufferedReader.java, java/io/FileReader.java,
4638 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
4639 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
4640 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
4641 java/io/Writer.java: Added COPYRIGHT-TBD comment.
4643 * include/javaprims.h (java::lang): Added
4644 ExceptionInInitializerError, IllegalStateException,
4645 NoSuchFieldException, and UnsupportedOperationException.
4647 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
4649 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
4652 * include/java-array.h (__JArray): Added clone method.
4653 * prims.cc (CloneableClass): New define.
4654 (lookupArray): Initialize array class to indicate that it
4655 implements Cloneable.
4657 * java/lang/Class.h: Removed all ACC_* defines.
4658 * prims.cc: Include Modifier.h.
4659 (_Jv_LookupInterfaceMethod): Use methods in
4660 java.lang.reflect.Modifier, not ACC_ defines.
4662 * java/lang/Class.h (Class): Declare getClasses,
4663 getDeclaredClasses, getDeclaringClass, getModifiers,
4664 * java/lang/Class.java: Rewrote from scratch.
4666 * include/javaprims.h (java::lang): Added reflect and
4668 * Makefile.in: Rebuilt.
4669 * Makefile.am (nat_headers): Added Modifier.h.
4671 * prims.cc (_Jv_IsInstanceOf): Return false if class is
4674 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
4676 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
4677 instead of test and abort.
4679 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
4680 remove compiler warning.
4682 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4684 * java/lang/natDouble.cc: zero terminate string.
4685 * strtod.c: Set errno if no digits are found in fraction.
4687 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
4689 * java/lang/reflect/Modifier.java: New file.
4691 * java/lang/VirtualMachineError.java: Rewrote from scratch.
4692 * java/lang/VerifyError.java: Rewrote from scratch.
4693 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
4694 * java/lang/UnknownError.java: Rewrote from scratch.
4695 * java/lang/StackOverflowError.java: Rewrote from scratch.
4696 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
4697 * java/lang/InternalError.java: Rewrote from scratch.
4698 * java/lang/IllegalAccessError.java: Rewrote from scratch.
4699 * java/lang/ExceptionInInitializerError.java: New file.
4700 * java/lang/Error.java: Rewrote from scratch.
4701 * java/lang/ClassFormatError.java: Rewrote from scratch.
4702 * java/lang/ClassCircularityError.java: Rewrote from scratch.
4703 * java/lang/AbstractMethodError.java: Rewrote from scratch.
4704 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
4705 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
4706 * java/lang/LinkageError.java: Rewrote from scratch.
4707 * java/lang/IncompatibleClassChangeError.java: Rewrote from
4709 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
4711 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
4712 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
4714 * include/cni.h (JvAllocObject): Moved from prims.cc.
4716 * prims.cc (JvAllocObject): Moved to cni.h.
4717 (_Jv_AllocObject): Use _Jv_FinalizeObject.
4718 (finalize_name): Removed.
4720 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
4722 * java/lang/Class.h (Class): Added size() method.
4723 * prims.cc (_Jv_MonitorEnter): Removed.
4724 (_Jv_MonitorExit): Removed.
4725 * java/lang/Object.h (JvSyncInfo): Removed.
4726 * Makefile.in: Rebuilt.
4727 * Makefile.am (nat_headers): Added Cloneable.h,
4728 CloneNotSupportedException.h.
4729 * java/lang/Object.h: Rewrote.
4730 * java/lang/natObject.cc: Rewrote from scratch.
4731 * java/lang/Object.java: Rewrote from scratch.
4733 * java/io/natFile.cc: Conditionally include <dirent.h>.
4734 (list): If no <dirent.h>, always return NULL.
4735 * configure: Rebuilt.
4736 * configure.in: Check for dirent.h.
4738 * prims.cc (lookupArray): Don't use sprintf.
4740 * java/util/Hashtable.java (containsKey): Use `abs' to compute
4747 * java/util/Hashtable.java (hsize): Renamed from size to avoid
4748 name conflict with method.
4750 * include/javaprims.h (java::util): Added HashtableEntry.
4752 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
4754 * java/util/Hashtable.java: Rewritten.
4756 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
4758 * java/io/natFileDescriptor.cc (write): Correctly test `write'
4762 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
4765 * posix-threads.cc (_Jv_CondWait): Now returns int.
4766 * include/javaprims.h (java::lang): Added
4767 IllegalMonitorStateException.
4768 * Makefile.in: Rebuilt.
4769 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
4770 * include/no-threads.h (_Jv_CondDestroy): Removed.
4771 (_Jv_MutexDestroy): Removed.
4772 (_Jv_CondWait): Now returns int.
4773 (_Jv_CondNotify): Likewise. Added mutex argument.
4774 (_Jv_CondNotifyAll): Likewise.
4775 (_Jv_MutexLock): Always succeed.
4776 (_Jv_MutexUnlock): Likewise.
4777 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
4778 (_Jv_HaveMutexDestroy): Define.
4779 (_Jv_CondNotify): Now returns int. Added mutex argument.
4780 (_Jv_CondNotifyAll): Likewise.
4781 * include/quick-threads.h (_Jv_CondDestroy): Removed.
4782 (_Jv_MutexDestroy): Removed.
4783 (_Jv_CondWait): Now returns int.
4784 (_Jv_CondNotify): Likewise. Added mutex argument.
4785 (_Jv_CondNotifyAll): Likewise.
4786 * java/lang/natObject.cc (finalize_sync_info): New function.
4787 (init_mutex): Initialize `init' and register finalizer if
4790 (init_mutex): Use it.
4792 (notifyAll): Use it.
4794 (notify): Throw IllegalMonitorStateException on failure.
4795 (notifyAll): Likewise.
4796 (wait): Likewise. Also, throw InterruptedException if
4798 Include cni.h, Thread.h, IllegalMonitorStateException.h,
4799 InterruptedException.h, IllegalArgumentException.h.
4800 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
4802 * java/lang/natString.cc: Renamed all `JvPriv' functions.
4803 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
4804 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
4805 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
4806 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
4807 * quick-threads.cc: Renamed all `JvPriv' functions.
4808 * prims.cc: Renamed all `JvPriv' functions.
4809 * posix-threads.cc: Renamed all `JvPriv' functions.
4810 * nogc.cc: Renamed all `JvPriv' functions.
4811 * no-threads.cc: Renamed all `JvPriv' functions.
4812 * boehm.cc: Renamed all `JvPriv' functions.
4813 * include/quick-threads.h: Renamed all `JvPriv' functions.
4814 * include/posix-threads.h: Renamed all `JvPriv' functions.
4815 * include/no-threads.h: Renamed all `JvPriv' functions.
4816 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
4818 * include/no-threads.h (JvPrivCondWait): Wrote minimal
4820 (JvPrivCondNotify): Do nothing.
4821 (JvPrivCondNotifyAll): Do nothing.
4823 * prims.cc (processClass): Handle case where state is
4826 * java/lang/natFirstThread.cc: Include <stdlib.h>
4828 * configure: Rebuilt.
4829 * configure.in: Fixed sense of --enable-libjava-debug.
4831 * java/lang/natThread.cc (join): Declare `t' outside the loop so
4832 it can be used afterward by the assertion.
4834 * configure: Rebuilt.
4835 * configure.in: When cross-compiling, assume alloca.
4837 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
4838 __builtin_alloca (autoconf docs are wrong here).
4840 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
4842 (available): Use `FD_ZERO' (typo fix).
4844 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
4846 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4847 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
4849 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4850 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
4853 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
4855 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
4857 * java/lang/natDouble.cc: Declare alloca safely.
4859 * configure, include/config.h.in: Rebuilt.
4860 * configure.in: Add alloca check.
4862 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
4864 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
4865 condition while calling notify.
4866 (join): Remove `curr_nt' from `nt's join list, not vice versa.
4867 (interrupt): Hold mutex for interrupt condition while calling
4870 * java/lang/natString.cc (init): Allocate and try to read `count'
4871 characters, not `count - offset' characters.
4873 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
4874 Correctly compute `count'.
4876 * java/lang/Boolean.java (getBoolean): Return false if property
4879 * java/lang/System.java (setProperties): Set prop_init.
4881 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
4883 * java/io/PrintStream.java (println): Use line.separator, not
4885 * java/lang/System.java (out, err): Make both autoflush streams.
4886 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
4888 * include/config.h.in: Rebuilt.
4889 * acconfig.h (HAVE_MEMCPY): Removed.
4890 * configure: Rebuilt.
4891 * configure.in: Never define HAVE_MEMCPY.
4893 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
4895 (_Jv_AllocString): Use JvAllocObject again.
4896 * java/lang/Class.h (thread): New field.
4897 (_Jv_AllocString): No longer a friend.
4898 * prims.cc (processClass): Removed dead code. Changed to more
4899 closely follow the Java Language Specification.
4900 (processClass): Return early if already at the right state.
4902 * prims.cc (JvNewStringUTF): Removed.
4903 * include/cni.h (JvNewStringUTF): New function.
4904 (_Jv_NewStringUTF): Declare as `extern "C"'.
4905 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
4907 * java/lang/natDouble.cc: Added copyright info and header
4908 comment. Include <stdlib.h>.
4909 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
4910 bytes as are chars in string.
4912 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
4914 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
4918 * java/lang/System.java (init_properties): Now native.
4919 * java/lang/natSystem.cc (init_properties): New method.
4920 Include java/util/Properties.h.
4922 * Makefile.in: Rebuilt.
4923 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
4924 OutputStreamWriter.h, ByteArrayInputStream.h,
4925 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
4926 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
4927 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
4928 Properties.h, Hashtable.h, Dictionary.h.
4931 * include/javaprims.h (java::io): Added Reader, Writer,
4932 InputStreamReader, OutputStreamWriter,
4933 UnsupportedEncodingException, ByteArrayInputStream,
4934 ByteArrayOutputStream, EOFException, SyncFailedException,
4935 PushbackInputStream.
4936 (java::lang): Added Cloneable.
4937 (java::util): Added NoSuchElementException, VectorEnumeration,
4938 Dictionary, HashtableEnumeration, PropertiesEnumeration.
4940 * java/io/PipedReader.java: New file.
4942 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
4944 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
4947 * java/io/io-defs.h: Removed.
4949 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
4950 (FileInputStream): Use new constructor. Can throw IOException.
4952 * java/lang/System.java (getProperty): Don't throw
4953 NullPointerException.
4955 * java/io/RandomAccessFile.java: Rewrote from scratch.
4957 * java/io/natFileDescriptor.cc: Include EOFException.h.
4959 (length): New method.
4960 (getFilePointer): New method.
4962 (available): New method.
4963 * java/io/FileDescriptor.java (SET, CUR): New constants.
4964 (seek, length, getFilePointer, read, available): New decls.
4966 * java/io/PipedWriter.java: New file.
4967 * java/io/StringWriter.java: New file.
4968 * java/io/CharArrayWriter.java: New file.
4969 * java/io/CharConversionException.java: New file.
4970 * java/io/BufferedWriter.java: New file.
4971 * java/io/FilterWriter.java: New file.
4972 * java/io/FileWriter.java: New file.
4974 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
4975 OutputStreamWriter.h, NullPointerException.h,
4976 ByteArrayInputStream.h, InputStreamReader.h.
4977 (getBytes): New method.
4978 (init): Throw NullPointerException.
4979 (init): New function.
4980 * java/lang/String.java (getBytes): Added missing decl.
4981 (getBytes): New method.
4982 (String): Added byte[]-based constructors.
4983 (copyValueOf): Wrote.
4984 (init): Declare variant which takes byte array and encoding.
4985 Import java.io.UnsupportedEncodingException.
4987 * java/io/File.java: Rewrote from scratch.
4988 * java/io/natFileDescriptor.cc: Rewrote from scratch.
4989 * java/io/FileDescriptor.java: Rewrote from scratch.
4990 * java/io/FilenameFilter.java: Rewrote from scratch.
4992 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
4994 * java/io/SyncFailedException.java: New file.
4995 * java/io/UTFDataFormatException.java: Rewrote from scratch.
4996 * java/io/InterruptedIOException.java: Rewrote from scratch.
4997 * java/io/FileNotFoundException.java: Rewrote from scratch.
4998 * java/io/EOFException.java: Rewrote from scratch.
4999 * java/io/IOException.java: Rewrote from scratch.
5000 * java/io/PrintStream.java: Rewrote from scratch.
5001 * java/io/DataOutputStream.java: Rewrote from scratch.
5002 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5003 * java/io/FilterOutputStream.java: Rewrote from scratch.
5004 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5005 * java/io/PipedOutputStream.java: Rewrote from scratch.
5006 * java/io/FileOutputStream.java: Rewrote from scratch.
5007 * java/io/OutputStream.java: Rewrote from scratch.
5008 * java/io/DataOutput.java: Rewrote from scratch.
5010 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5012 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5014 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5016 * configure.in: Add --enable-libjava-debug
5018 * Makefile.am (nat_headers): Add java/lang/Float.h and
5021 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5023 * Makefile.in, configure, include/config.h.in: Rebuilt.
5025 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5027 * java/lang/Float.java: Rewritten
5028 * java/lang/Double.java: Rewritten
5029 * java/lang/natFloat.cc: toString() added.
5030 * java/lang/natDouble.cc: toString() added.
5031 * java/lang/natDouble.cc: doubleValueOf() added.
5032 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5033 java/lang/strtod.c: added.
5034 * ieeefp.h: __sparc added.
5035 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5037 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5039 * include/javaprims.h (java::lang): Added
5040 CloneNotSupportedException.
5042 * java/lang/Object.java (clone): No longer native. Implemented.
5043 * java/lang/natObject.cc (clone): Removed.
5045 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5047 * prims.cc: Don't make definitions `extern "C"'.
5048 (_Jv_RegisterClass): Renamed from registerClass.
5049 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5050 (_Jv_NewArray): Likewise.
5051 (_Jv_NewMultiArray): Likewise.
5052 (_Jv_CheckCast): Likewise.
5053 (_Jv_LookupInterfaceMethod): Likewise.
5054 (_Jv_CheckArrayStore): Likewise.
5055 (_Jv_RegisterClass): Likewise.
5057 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5058 * configure: Rebuilt.
5059 * configure.in: Don't check for fmod; it is provided by the fdlibm
5061 * prims.cc (fmod): Removed.
5063 * java/lang/natString.cc (charAt): Use _Jv_uint.
5064 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5065 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5066 (equalUtf8Consts): Likewise.
5067 (internalAddClass): Use _Jv_uint.
5068 (processClass): Likewise.
5069 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5070 (_Jv_uint): Renamed from uint32.
5071 (struct _Jv_Utf8Const): Changed members to use new type names.
5073 * configure: Rebuilt.
5074 * configure.in: Don't check for memcpy. Require memmove and a way
5076 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5078 (currentTimeMillis): Don't use #error.
5080 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5082 * java/lang/Math.java: static member random renamed to random_ to
5083 avoid conflict with member function of the same name.
5084 * include/javaprims.h: java.util.Random added.
5086 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5088 * include/java-chartables.h: Regenerated.
5089 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5092 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5094 * java/lang/Math.java: Rewritten.
5095 * java/lang/natMath.cc: New file.
5096 * Files added from fdlibm:
5097 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5098 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5099 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5100 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5101 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5102 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5103 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5104 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5105 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5106 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5107 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5108 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5109 java/lang/k_cos.c, java/lang/sf_ceil.c,
5110 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5111 java/lang/ieeefp.h, java/lang/fdlibm.h
5112 * Makefile.am: rules added for compiling C files from fdlibm.
5114 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5116 * chartables.pl: Minor documentation fixes.
5118 * configure: Rebuilt.
5119 * configure.in: Fixed --help output for --enable-fast-character.
5121 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5123 * configure: Rebuilt.
5124 * configure.in: Recognize --enable-fast-character.
5125 * acconfig.h (COMPACT_CHARACTER): New define.
5126 * include/config.h.in: Rebuilt.
5127 * include/java-chartables.h: New file.
5128 * Makefile.in: Rebuilt.
5129 * Makefile.am (nat_files): Added natCharacter.o.
5130 * java/lang/natCharacter.cc: New file.
5131 * chartables.pl (set_attribute): New function.
5132 (@attributes, @second_attributes): New globals.
5133 ($ROMAN_START, $ROMAN_END): Likewise.
5134 (process_char): Call set_attribute when required.
5135 (print_char): Just print hex value.
5136 (print_block): Generate C++ syntax.
5137 (print_numerics): Likewise.
5138 (print_single_map): Likewise.
5139 (print_all_block): Likewise.
5140 (print_case_table): Likewise.
5141 (print_fast_tables): New function.
5142 Generate C++ code suitable for a header file.
5143 * java/lang/Character.java (table_search): Removed.
5144 (digit_value): Now native.
5145 (getNumericValue): Likewise.
5146 (getType): Likewise.
5147 Removed all automatically-generated tables.
5148 (Tamil_Digit_One): Removed.
5149 (isSpaceChar): Now native.
5150 (isTitleCase): Likewise.
5151 (isLowerCase): Likewise.
5152 (isUpperCase): Likewise.
5153 (toLowerCase): Likewise.
5154 (toTitleCase): Likewise.
5155 (toUpperCase): Likewise.
5156 (isDefined): Fixed sense of test.
5158 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5160 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5162 (regionMatches): Likewise.
5164 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5166 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5168 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5170 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5173 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5176 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5178 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5180 * prims.cc (instanceof_class): Removed.
5181 (instanceof_array): Likewise.
5182 (instanceof): Likewise.
5183 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5184 (_Jv_CheckCast): Likewise.
5185 * java/lang/natClass.cc (isAssignableFrom): New method.
5186 * java/lang/Class.java (isAssignableFrom): Now native.
5188 * include/cni.h (JvThrow): Use `extern inline'.
5189 (JvAllocObject): Likewise.
5190 (JvInitClass): Likewise.
5192 * java/lang/natSystem.cc (arraycopy): Only check class of source
5195 * prims.cc (_Jv_CheckArrayStore): Wrote.
5196 (_Jv_MonitorEnter): Prefer `JvThrow'.
5197 Include ArrayStoreException.h.
5198 (_Jv_CheckCast): Indentation cleanup.
5200 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5202 * chartables.pl: New file.
5203 * java/lang/Character.java: Rewrote from scratch.
5205 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5207 * java/lang/ArithmeticException.java,
5208 java/lang/ArrayIndexOutOfBoundsException.java,
5209 java/lang/ArrayStoreException.java,
5210 java/lang/ClassCastException.java,
5211 java/lang/ClassNotFoundException.java,
5212 java/lang/CloneNotSupportedException.java,
5213 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5214 java/lang/IllegalArgumentException.java,
5215 java/lang/IllegalMonitorStateException.java,
5216 java/lang/IllegalThreadStateException.java,
5217 java/lang/IndexOutOfBoundsException.java,
5218 java/lang/InstantiationException.java,
5219 java/lang/InterruptedException.java,
5220 java/lang/NegativeArraySizeException.java,
5221 java/lang/NoSuchMethodException.java,
5222 java/lang/NullPointerException.java,
5223 java/lang/NumberFormatException.java,
5224 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5225 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5227 * java/lang/IllegalStateException.java,
5228 java/lang/NoSuchFieldException.java,
5229 java/lang/UnsupportedOperationException.java: Created.
5231 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5233 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5234 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5236 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5238 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5240 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5242 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5244 * Makefile.in: Rebuilt.
5246 * include/javaprims.h (java::lang): Added
5247 StringIndexOutOfBoundsException.
5249 * java/lang/String.java: Added header comment and FIXME comment for
5250 missing constructors/methods.
5251 (endsWith): Adjusted offset into string to look at just the last chars.
5252 Commented out undocumented method.
5254 * java/lang/natString.cc: Added includes for
5255 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5256 (String::init): Throw StringIndexOutOfBoundsException.
5257 (String::charAt): Throw StringIndexOutOfBoundsException.
5258 (String::substring): Throw StringIndexOutOfBoundsException.
5259 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5260 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5261 (String::compareTo): Return difference/offset between chars/strings.
5263 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5265 * java/lang/Boolean.java (TYPE): Added comment.
5267 * java/lang/Byte.java (decode): Added - commented out until dependent
5268 code for Integer is written.
5269 (compareTo): JDK 1.2 methods written.
5270 (hashCode): Added comment to note that values have been verified.
5272 * java/lang/Short.java (decode): Added - commented out until dependent
5273 code for Integer is written.
5274 (compareTo): JDK 1.2 methods written.
5275 (hashCode): Added comment to note that values have been verified.
5277 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5279 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5281 * include/javaprims.h (java::lang): Added VirtualMachineError,
5283 * Makefile.in: Rebuilt.
5284 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5285 VirtualMachineError.h.
5286 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5287 (lookupArray): Likewise.
5288 (makeUtf8Const): Likewise.
5289 (_Jv_AllocObject): Likewise.
5290 (_Jv_NewObjectArray): Likewise.
5291 Include OutOfMemoryError.h.
5293 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5294 to use JvNewStringLatin1.
5296 * java/io/io-defs.h: Include java/lang/IOException.h.
5297 * Makefile.in: Rebuilt.
5298 * Makefile.am (nat_headers): Added
5299 ArrayIndexOutOfBoundsException.h,
5300 ClassFormatError.h,ClassNotFoundException.h,
5301 ClassCircularityError.h, ClassCastException.h,
5302 IncompatibleClassChangeError.h, AbstractMethodError.h,
5303 IllegalAccessError.h, LinkageError.h, Error.h,
5304 NegativeArraySizeException.h, IOException.h.
5305 * include/cni.h (SignalError): Removed declaration.
5306 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5307 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5308 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5309 (newInstance): Likewise.
5310 (forName): Likewise.
5311 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5313 (read): Use JvThrow, not SignalError.
5318 (open_read): Likewise.
5319 (open_write): Likewise.
5322 (newstr): New function.
5323 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5325 (lastModifiedUnchecked): Likewise.
5326 (lengthUnchecked): Likewise.
5327 * include/javaprims.h (sorry): Removed declaration.
5328 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5329 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5330 ClassCastException, IncompatibleClassChangeError,
5331 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5332 * prims.cc (instanceof_array): Use JvFail, not sorry.
5334 Include ArrayIndexOutOfBoundsException.h,
5335 ClassFormatError.h,ClassNotFoundException.h,
5336 ClassCircularityError.h, ClassCastException.h,
5337 IncompatibleClassChangeError.h, AbstractMethodError.h,
5338 IllegalAccessError.h, NegativeArraySizeException.h.
5339 (_Jv_ThrowBadArrayIndex): Implemented.
5340 (JvNewStringUTF): Use JvFail, not sorry.
5341 (_Jv_FindClass): Likewise.
5342 (_Jv_NewArray): Likewise.
5343 (throwException): Removed.
5344 (getClass): Use JvThrow.
5345 (processClass): Likewise.
5346 (_Jv_NewObjectArray): Likewise.
5347 (_Jv_NewMultiArray): Likewise.
5348 (_Jv_CheckCast): Likewise.
5349 (_Jv_LookupInterfaceMethod): Likewise.
5350 (SignalError): Removed.
5351 (getClass): Use _Jv_NewStringUtf8Const to create String.
5353 * java/lang/natSystem.cc (arraycopy): Throw
5354 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5356 * Makefile.in: Rebuilt.
5357 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5359 * include/java-array.h: Mention gcjh, not gjavah.
5361 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5362 (canReadUnchecked): Likewise.
5363 (canWriteUnchecked): Likewise.
5364 (isFileUnchecked): Likewise.
5365 * java/io/natFileDescriptor.cc: Don't include cni.h.
5367 * java/lang/Thread.java (run__): Declare.
5368 * java/lang/natThread.cc (run__): New method, to avoid compiler
5370 (start): Use run__, not run_.
5372 * java/io/io-defs.h: Include cni.h and jvm.h.
5374 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5376 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5377 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5378 to natString.cc (with suitable renaming, inlines etc).
5379 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5380 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5381 * java/lang/String.h: Removed - now generated using gjavah.
5382 * java/lang/String.java: Re-written from scratch. Many native methods.
5383 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5384 * java/lang/natString.cc: Many functions re-written for "compact
5385 strings" representation, or native java.lang.String methods added.
5386 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5387 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5388 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5389 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5390 * include/cni.h: Add inline method.
5391 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5392 * include/javaprims.h: Moved some stuff frm String.h.
5393 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5394 * Makefile.am (nat_header): Added Character.h and String.h.
5395 (String.h): Add new rule.
5397 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5399 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5401 * posix-threads.cc: Include cni.h, jvm.h.
5402 * quick-threads.cc: Include cni.h, jvm.h.
5403 * nogc.cc: Include cni.h, not javaprims.h.
5404 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5405 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5406 include java-assert.h.
5407 * java/lang/natSystem.cc: Include cni.h. Don't include
5409 * java/lang/natRuntime.cc: Include cni.h. Don't include
5411 * prims.cc: Rearranged #include ordering. Don't include
5412 java-array.h or java-assert.h.
5413 * boehm.cc: Include config.h, cni.h.
5414 * exception.cc: Include config.h, cni.h.
5415 * include/jvm.h: Include java-assert.h.
5416 * include/cni.h: Include java/lang/Object.h. Don't include
5417 java-threads.h or java-array.h.
5419 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5421 * java/lang/Boolean.java: Rewritten.
5423 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5425 * java/lang/natFirstThread.cc (main_func): New typedef.
5426 (run): Use main_func, not JvPrivThreadStartFunc.
5427 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5429 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5431 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5434 Can't throw Java exceptions with C++ `throw':
5435 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5436 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5437 (setPriority): Likewise.
5441 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5442 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5444 Can't catch Java exceptions from C++:
5445 * java/lang/natThread.cc (finish_): New method.
5447 * java/lang/Thread.java (run_): Rewrote in Java.
5448 (finish_): New native method.
5450 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5452 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5454 * include/javaprims.h (java::io): Added Serializable.
5456 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5458 * java/util/EmptyStackException.java,
5459 java/util/NoSuchElementException.java: Rewritten.
5461 * java/util/ConcurrentModificationException.java,
5462 java/util/MissingResourceException.java,
5463 java/util/TooManyListenersException.java: Created.
5465 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5467 * include/cni.h (JvThrow): New function.
5468 * include/javaprims.h (_Jv_Throw): Declare.
5470 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5472 * java/util/Observable.java: Rewritten.
5474 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5476 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5477 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5478 Include NullPointerException.h.
5480 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5482 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5483 assignability checks. Don't bother using memcpy.
5485 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5487 * include/quick-threads.h (JvPrivThreadWait): New function.
5488 * include/no-threads.h (JvPrivThreadWait): New function.
5489 * include/posix-threads.h (JvPrivThreadWait): New function.
5490 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5492 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5494 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5495 offsets by size of type that is being copied.
5497 * java/lang/natThread.cc (start): Don't pass `object' argument to
5499 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5500 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5502 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5503 always pass thread as object.
5504 * include/quick-threads.h, include/posix-threads.h,
5505 include/no-threads.h (JvPrivThreadStart): Removed `object'
5508 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5510 * java/util/Dictionary.java: Rewritten.
5512 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5514 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5515 (JvPrivThreadDestroy): Likewise.
5517 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
5519 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5521 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5523 * java/lang/natSystem.cc: Rewrote from scratch.
5524 * java/lang/System.java: Rewrote from scratch.
5525 * java/lang/Class.h (Class): Declare isAssignableFrom.
5526 * include/javaprims.h (java::lang): Added ArrayStoreException,
5527 IndexOutOfBoundsException.
5528 * Makefile.in: Rebuilt.
5529 * Makefile.am (nat_headers): Added ArrayStoreException.h,
5530 IndexOutOfBoundsException.h.
5531 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5532 * include/jvm.h (_Jv_HashCode): New function.
5534 * java/lang/natThread.cc (suspend): Call checkAccess.
5536 * java/lang/Thread.java (setDaemon): Call checkAccess.
5538 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5540 * java/lang/Runtime.java: Rewrote from scratch.
5541 * java/lang/natRuntime.cc: Rewrote from scratch.
5543 * nogc.cc (JvPrivGCTotalMemory): New function.
5544 (JvPrivGCFreeMemory): Likewise.
5545 (total): New global.
5546 (JvPrivAllocObj): Increment total.
5547 (JvPrivAllocArray): Likewise.
5548 (JvPrivAllocBytes): Likewise.
5549 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5550 * boehm.cc (JvPrivGCTotalMemory): New function.
5551 (sum_blocks): Likewise.
5552 (JvPrivGCFreeMemory): Likewise.
5554 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
5556 * include/javaprims.h (java::lang): Added FirstThread.
5557 * java/lang/natFirstThread.cc: New file.
5558 * java/lang/FirstThread.java: New file.
5559 * prims.cc (main_signature): Removed.
5560 (main_name): Removed.
5561 #include FirstThread.h.
5562 * Makefile.in: Rebuilt.
5563 * Makefile.am (TFRIEND): Removed.
5564 (java/lang/Thread.h): Likewise.
5565 (FTFRIEND): New macro.
5566 (java/lang/FirstThread.h): New target.
5567 (nat_files): Added natFirstThread.o.
5568 (nat_headers): Added FirstThread.h.
5569 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
5570 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
5572 * java/lang/Thread.java (setName): Throw IllegalArgumentException
5576 * java/lang/natThread.cc (start): Synchronize the thread.
5577 (stop): Synchronize the thread.
5579 * java/lang/ThreadDeath.java: Rewrote from scratch.
5581 * Makefile.in: Rebuilt.
5582 * Makefile.am (TGFRIEND): New macro.
5583 (java/lang/ThreadGroup.h): New target.
5584 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
5586 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
5588 * nogc.cc: Include config.h.
5590 * java/lang/ThreadGroup.java: Rewrote from scratch.
5592 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5594 * java/lang/Thread.java (checkAccess): Only call in to security
5595 manager if it exists.
5596 (Thread): Don't check access when creating the first thread. Add
5597 this thread to the appropriate ThreadGroup.
5599 * java/lang/natThread.cc (run_): Call uncaughtException method on
5602 * java/lang/Runnable.java: Rewrote from scratch.
5603 * java/lang/Thread.java: Updated copyright comment to correct
5606 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
5608 * java/util/Random.java: Rewritten.
5610 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5612 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
5613 trailing 0 in array[].
5615 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
5617 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
5618 and RUNTESTFLAGS from AM_MAKEFLAGS.
5619 (SUBDIRS): Conditionally include testsuite.
5620 * Makefile.in: Rebuilt.
5622 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
5624 * java/lang/Object.h: Include java-assert.h.
5626 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
5628 * Makefile.am: Add testsuite directory.
5629 * configure.in: Build testsuite/Makefile.
5630 * Makefile.in, configure: Rebuilt.
5632 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5634 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
5635 * include/jvm.h (_Jv_StartFirstThread): Declare.
5637 * include/javaprims.h (java::lang): Added Exception,
5640 * Makefile.in: Rebuilt.
5641 * Makefile.am (nat_headers): Added NullPointerException.h,
5642 InterruptedException.h, IllegalArgumentException.h, Exception.h,
5643 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
5644 (java/lang/Thread.h): New target.
5645 (TFRIEND): New macro
5647 * include/java-assert.h (JvFail): Use 0 and not NULL.
5649 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
5650 instead of assuming we are a friend of Thread.
5651 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
5652 instead of assuming we are a friend of Thread.
5654 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
5656 * java/lang/natThread.cc: Rewrote from scratch.
5657 * java/lang/Thread.java: Rewrote from scratch.
5658 * prims.cc (JvRunMain): Use new Thread constructor.
5659 * include/javaprims.h (java::lang): Added InterruptedException.
5660 * Makefile.in: Rebuilt.
5661 * Makefile.am (nat_headers): Added java/lang/Thread.h.
5662 * java/lang/Thread.h: Removed.
5663 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
5664 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
5666 * posix-threads.cc (JvPrivThreadJoin): Removed.
5667 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
5668 (really_start): Don't notify join_cond.
5669 (JvPrivThreadStart): Added `data' argument.
5670 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
5671 (JvPrivThreadJoin): Likewise.
5672 Use JvFail instead of sorry.
5673 (JvPrivThreadSuspend): Removed.
5674 (JvPrivThreadResume): Removed.
5675 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
5676 (JvPrivThreadJoin): Likewise.
5677 (JvPrivThreadSuspend): Use JvFail.
5678 (JvPrivThreadResume): Likewise.
5679 (JvPrivThreadSuspend): Removed.
5680 (JvPrivThreadResume): Likewise.
5681 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
5682 (JvPrivThread_t): Removed join_mutex, join_cond.
5683 Use JvFail instead of sorry.
5684 (JvPrivThreadSuspend): Removed.
5685 (JvPrivThreadResume): Likewise.
5687 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
5689 * java/util/Observer.java: Rewritten
5690 * java/util/Enumeration.java: Rewritten
5692 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
5694 * java/util/StringTokenizer.java: Rewritten
5695 * java/util/Stack.java: Added COPYRIGHT-TBD comment
5696 * java/util/Vector.java: Added COPYRIGHT-TBD comment
5697 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
5699 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
5701 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
5704 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
5705 Include java-assert.h.
5706 * include/java-assert.h: New file.
5707 * prims.cc (_Jv_Abort): New function.
5708 Include java-assert.h, not assert.h.
5709 (_Jv_MonitorExit): Use JvAssert.
5710 (resolveConstants): Likewise.
5711 (processClass): Likewise.
5712 (JvRunMain): Assert that method is found.
5714 * configure: Rebuilt.
5715 * configure.in: Check for test subdir.
5716 * Makefile.in: Rebuilt.
5717 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
5719 * prims.cc (JvRunMain): Use NORM_PRIORITY.
5720 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
5722 * prims.cc (resolveConstants): Removed unused variables.
5723 (processClass): Likewise.
5725 * include/quick-threads.h (JvPrivThreadCurrent): Use
5727 * quick-threads.cc (destroy_data): New function.
5728 (JvPrivInitThreads): Create key.
5729 (JvPrivThreadKey): New global.
5730 (JvPrivThreadStart): Use coop_setspecific.
5732 * include/quick-threads.h, include/posix-threads.h,
5733 include/no-threads.h, no-threads.cc, quick-threads.cc,
5734 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
5736 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
5738 * include/no-threads.h (JvPrivThreadInitData): Don't set
5741 * include/quick-threads.h (JvPrivCondWait): coop function now
5743 (JvPrivThreadJoin): Likewise.
5745 * java/lang/Thread.h (Thread): Updated declaration of
5747 * include/quick-threads.h, include/posix-threads.h: Updated
5748 declaration of JvPrivThreadStart.
5749 * include/no-threads.h (JvPrivThreadStart): Changed definition
5751 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
5752 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
5753 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
5755 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
5757 * quick-threads.cc (qthrow): New function.
5758 (JvPrivInitThreads): New function.
5759 (started): New global.
5760 (JvPrivThreadStart): Call coop_start if required.
5761 * include/quick-threads.h (JvPrivThreadCancel): Implement.
5762 (JvPrivThreadDestroy): Likewise.
5763 (JvPrivInitThreads): Removed.
5764 * include/posix-threads.h (JvPrivThreadCancel): Added error
5766 * java/lang/natThread.cc (stop_): Pass exception to
5769 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
5771 * include/javaprims.h (java::lang): Added
5772 IllegalArgumentException, IllegalThreadStateException, Math,
5773 NullPointerException, ThreadDeath.
5774 (java::util): Added Enumeration.
5776 * Makefile.in: Rebuilt.
5777 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
5779 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
5781 (threadsv): Renamed from threads to avoid clash in C++ header.
5782 (groupsv): Likewise.
5783 * include/no-threads.h (JvPrivThreadStart): Removed.
5784 * no-threads.cc (JvPrivThreadStart): New function.
5785 * java/lang/Thread.java (Thread): New constructor for internal use.
5786 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
5787 (Thread): Declare constructor.
5788 * prims.cc (JvRunMain): Create the initial Thread and
5790 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
5791 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
5792 Removed `daemon' argument.
5794 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
5795 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
5797 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
5799 * Makefile.in: Rebuilt.
5800 * Makefile.am (INCLUDES): Include THREADINCS.
5802 * configure: Rebuilt.
5803 * configure.in: Recognize `qt' as a threads package.
5805 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
5807 * java/util/Stack.java (pop): Null out topmost node for robustness.
5809 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
5811 * java/util/Stack.java: Rewritten.
5812 * java/util/Vector.java (isEmpty): Simplified expression.
5814 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
5816 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
5817 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
5819 * include/java-array.h (JvNewObjectArray): Created inline to
5822 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
5825 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
5827 * java/util/Vector.java: Rewritten.
5828 * java/io/Serializable.java: Created.
5830 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
5832 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
5833 Infinity is 1/0, not 1/1.
5835 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
5837 * configure: Rebuilt.
5838 * configure.in: Removed duplicate AC_ARG_WITH.
5840 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
5842 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
5844 (_Jv_InitClass): Renamed from soft_initialise_class.
5845 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
5846 (_Jv_CheckCast): Renamed from soft_checkcast.
5847 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
5848 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
5849 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
5850 * include/cni.h (JvInitClass): New function.
5851 (_Jv_InitClass): Renamed from soft_initialise_class.
5853 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
5855 * configure: Rebuilt.
5856 * configure.in (CXX): Don't set.
5857 * Makefile.in: Rebuilt.
5858 * Makefile.am (AM_CXXFLAGS): New macro.
5860 * Makefile.in: Rebuilt.
5861 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
5862 nogc.o): New target.
5864 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
5866 (mark_array): Likewise.
5868 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
5870 * java/lang/Class.h (JvMethod): Removed some unused fields.
5871 (JvField.info): Removed unused idx union variant.
5873 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
5875 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
5878 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
5880 * configure.in, configure (CXX): Add -fvtable-thunks.
5882 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
5884 * java/lang/Object.java (finalize): Move first.
5885 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
5886 (Object): Re-arrange order to match Object.java.
5888 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
5890 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
5891 * java/lang/natString.cc (hashChars): Likewise.
5893 * prims.cc (RuntimeClass): New macro.
5894 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
5896 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
5898 * Makefile.in: Rebuilt.
5899 * Makefile.am (AM_MAKEFLAGS): New macro.
5901 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
5903 * nogc.cc: Include <javaprims.h>.
5905 * Makefile.in: Rebuilt.
5906 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
5908 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
5910 * exception.cc (terminate): Removed.
5911 (unexpected): Removed.
5913 * configure: Rebuilt.
5914 * configure.in: Handle case where target subdir is ".".
5916 * configure: Rebuilt.
5917 * configure.in: Compute COMPPATH based on --with-target-subdir
5918 option. Added --with-target-subdir and --with-cross-host. Use
5919 --with-cross-host to determine when a cross compiler is in use.
5921 * Makefile.in: Rebuilt.
5922 * Makefile.am (GJAVAH): Include COMPPATH.
5923 * configure: Rebuilt.
5924 * configure.in: Subst COMPPATH.
5926 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
5928 * prims.cc (lockMutex): Removed.
5929 (unlockMutex): Likewise.
5930 (processClass): Lock the class using a JvSynchronize object.
5932 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
5934 * java/lang/natString.cc (gc_calloc_fixed): Removed.
5935 (gc_free_fixed): Removed.
5936 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
5937 freeing old value of strhash.
5939 * exception.cc (_Jv_type_matcher): Cast first argument to
5942 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
5944 * include/java-array.h (jstringArray): New type.
5945 * java/lang/natSystem.cc (setProperty): Removed.
5946 (initProperties): Directly call JvNewStringLatin1 for arguments.
5947 * java/util/natDate.cc: Include java/util/Date.h, not
5950 * java/io/FileDescriptor.java (available): No longer static.
5951 * java/lang/natDouble.cc (Double): Removed class definition.
5952 * include/javaprims.h (java::lang::Number): Declare.
5953 (java::lang::NumberFormatException): Likewise.
5954 (java::io::FilenameFilter): Likewise.
5955 (java::lang::Character): Likewise.
5956 (java::lang::Error): Likewise.
5957 (java::lang::SecurityManager): Likewise.
5958 (java::util::Vector): Likewise.
5959 (java::io::FileNotFoundException): Likewise.
5960 (java::io::IOException): Likewise.
5961 (java::lang::NativeLang): Likewise.
5962 (java::lang::UnsatisfiedLinkError): Likewise.
5963 (java::util::StringTokenizer): Likewise.
5964 (java::io::InputStream, java::io::OutputStream): Likewise.
5965 (java::io::PrintStream, java::lang::SecurityException): Likewise.
5966 (java::util::Hashtable): Likewise.
5967 * Makefile.in: Rebuilt.
5968 * Makefile.am (nat_headers): Added java/lang/Double.h,
5969 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
5970 (MOSTLYCLEANFILES): Added nat_headers.
5971 * include/jvm.h: Moved many defines, declarations, and functions
5972 to java/lang/Class.h.
5973 (struct JvSyncInfo): Moved to java/lang/Object.h.
5974 (UTF8_GET): Moved to java/lang/String.h.
5976 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
5978 * java/io/io-defs.h: Don't include java-io.h.
5979 * include/java-io.h: Removed.
5980 * include/javaprims.h: Include java::io.
5982 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
5984 * include/java-io.h (File): Removed
5985 (FileDescriptor): Likewise.
5987 * java/io/io-defs.h: Include java/io/File.h and
5988 java/io/FileDescriptor.h.
5990 * Makefile.in: Rebuilt.
5991 * Makefile.am (GJAVAH): New macro.
5992 (.class.h): New rule.
5993 (SUFFIXES): Added .h.
5994 (nat_headers): New macro.
5995 ($(nat_headers)): New target.
5996 (BUILT_SOURCES): Added nat_headers.
5998 * include/java-util.h: Removed.
6000 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6002 * include/java-io.h: Changed to avoid java-lang.h.
6003 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6005 * java/lang/natSystem.cc: Include java/lang/System.h, not
6007 * java/lang/natString.cc: Include java/lang/String.h, not
6009 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6011 * java/lang/natClass.cc: Include java/lang/Class.h, not
6013 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6015 * java/lang/natObject.cc: Include java/lang/Object.h, not
6017 * exception.cc: Don't include java-lang.h.
6018 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6019 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6020 * nogc.cc: Don't include java-lang.h.
6021 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6022 * prims.cc (processClass): Don't use `init_type'; just cast to
6024 Include java/lang/Class.h and jvm.h, not java-lang.h.
6025 (JvAllocObject): Wrote single-argument version.
6026 (PrimClass): Inherit from Class.
6027 (initPrimClass): Removed.
6028 * include/java-lang.h: Removed.
6029 * include/jvm.h: Declare struct _dispatchTable.
6030 * include/cni.h: Don't declare _Jv_MonitorEnter,
6031 _Jv_MonitorExit, struct _dispatchTable.
6032 * include/javaprims.h: Moved all typedefs here, from cni.h.
6033 * java/lang/Class.h: New file.
6034 * include/java-array.h: New file.
6035 * java/lang/Object.h: New file.
6037 * prims.cc (classFromSig): Now static.
6039 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6041 * include/cni.h: Don't mention soft_new.
6042 * include/java-lang.h (Object): Don't mention soft_new. Mention
6043 _Jv_NewPrimArray, not newPrimArray.
6044 * prims.cc (soft_new): Removed.
6045 (_Jv_NewArray): Renamed from soft_newarray.
6046 (soft_anewarray): Use JvNewObjectArray.
6047 (newArray): Likewise.
6048 (newRefArray): Removed.
6049 (_Jv_NewPrimArray): Renamed from newPrimArray.
6050 (equalUtf8Consts): Now static.
6051 (soft_instanceof): Removed.
6052 * java/lang/natDouble.cc (doubleToString): Now static.
6054 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6055 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6058 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6060 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6062 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6064 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6065 (JvPrivMutexUnlock): Likewise.
6066 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6067 Return value now jint.
6068 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6071 * Makefile.in: Rebuilt.
6072 * Makefile.am: Don't allow `jV' names.
6073 (maintainer-check): Depend on libjava.a.
6074 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6076 * Makefile.in: Rebuilt.
6077 * Makefile.am (NM): New macro.
6078 (maintainer-check): New target.
6080 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6082 * configure: Rebuilt.
6083 * configure.in: Use --enable-threads, not --enable-gc. Fix
6084 documentation for --enable-threads. Changed option to work like
6085 identical option in gcc/configure.
6087 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6089 * boehm.cc (mark_array): Use JvGetArrayLength.
6091 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6093 * exception.cc: New file (mostly written by Andrew MacLeod),
6094 exception handling support.
6095 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6096 Remove -fexceptions - it is now the default.
6098 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6099 (JvAllocObject): Renamed to _Jv_AllocObject.
6100 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6101 (loadClass): Renamed to _Jv_FindClass.
6102 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6103 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6104 * include/java-lang.h (JvGetArrayLength): New CNI function.
6105 * include/jvm.h (_Jv_FindClass): Added declaration.
6107 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6109 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6111 * java/lang/natClass.cc (getName): Add implementation.
6112 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6114 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6116 * Makefile.in: Rebuilt.
6117 * Makefile.am (.class.o): Added -fexceptions.
6119 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6121 * configure: Rebuilt.
6122 * configure.in: Don't check for __nanosleep.
6123 * posix-threads.cc (nanosleep): Never define.
6125 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6127 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6130 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6132 * java/lang/natThread.cc (enumerate): Uncommented.
6133 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6134 (interrupt): Call it.
6136 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6138 * configure: Rebuilt.
6139 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6141 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6143 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6144 * include/java-lang.h (Thread): Added `interrupted_' method.
6145 * java/lang/Thread.java (interrupted_): New method.
6146 * java/lang/natThread.cc (join): Possibly throw interrupted
6147 exception after join finishes.
6148 (interrupted_): New method.
6149 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6151 (JvPrivThreadJoin): New function.
6152 (really_start): Notify all threads waiting for this thread.
6153 (struct starter): Added `data' member.
6154 (JvPrivThreadStart): Set it.
6155 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6157 (JvPrivThreadJoin): No longer inline.
6158 (JvPrivThreadInterrupt): New function.
6160 * include/no-threads.h (JvPrivThreadSleep): Removed.
6161 * posix-threads.cc (JvPrivThreadSleep): Removed.
6163 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6165 * configure: Rebuilt.
6166 * configure.in (THREADOBJS): Initialize to no-threads.o in
6168 * posix-threads.cc (key): New global.
6169 (JvPrivInitThreads): New function.
6170 (really_start): Set thread-specific data to point to object.
6171 (JvPrivThreadStart): Added `daemon' argument.
6172 (JvPrivThreadSleep): Added `data' argument.
6173 * include/posix-threads.h (JvPrivInitThreads): Removed
6175 (JvPrivThreadCurrent): New function.
6176 * include/no-threads.h (JvPrivThreadInitData): Initialize
6177 JvPrivOnlyThread. Added `thread' argument.
6178 (JvPrivThreadCurrent): New function.
6179 (JvPrivThreadStart): Added `daemon' argument.
6180 * no-threads.cc: New file.
6181 * java/lang/natThread.cc (init_data): New function.
6183 (start): Set `alive' member.
6184 (stop_): Clear `alive' member.
6185 (destroy): Likewise.
6186 (currentThread): Implemented.
6187 (start): Pass `daemon' argument to JvPrivThreadStart.
6189 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6190 (Thread): Added `init_data' method.
6191 * java/lang/Thread.java (alive, data): New instance variables.
6192 (init_data): New private method.
6193 (isAlive): No longer native.
6195 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6197 * include/java-lang.h (JvRunMain): Declare.
6198 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6199 * prims.cc (JvRunMain): New function.
6200 (main_signature, main_name): New globals.
6202 * boehm.cc (mark_array): Use `elements' function and not
6203 operator[] on jarray.
6205 * posix-threads.cc: Include <config.h>. Define nanosleep if
6208 * configure: Rebuilt.
6209 * configure.in: Check for _nanosleep.
6211 * configure: Rebuilt.
6212 * configure.in: Check for pthread_mutexattr_settype.
6214 * include/cni.h (class JvSynchronize): New class.
6215 * java/lang/Thread.java (sleep): Throws InterruptedException.
6216 (join): Throws InterruptedException.
6217 (resume): Not native.
6218 (resume_): New method.
6219 (start): Now synchronized.
6220 (stop_): New method.
6221 (Thread): Synchronize when accessing threadNumber.
6223 * java/lang/natThread.cc (throwException): New macro.
6224 (sleep): Throw InterruptedException.
6227 * include/java-lang.h (Runtime): Added interrupted().
6229 * boehm.cc (call_finalizer): Correctly initialize jobj.
6230 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6232 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6235 * configure: Rebuilt.
6236 * configure.in: Added support for --disable-threads.
6237 * include/no-threads.h: New file.
6239 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6241 * Makefile.in: Rebuilt.
6242 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6243 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6244 (libjava_a_LIBADD): Added THREADOBJS.
6245 * configure: Rebuilt.
6246 * configure.in: Added --with-threads option.
6247 * posix-threads.cc: New file.
6248 * include/posix-threads.h: New file.
6249 * include/java-lang.h (Object): Added static member sync_mutex,
6250 member sync_info, method init_mutex.
6251 (struct JvSyncInfo): New struct.
6252 Include "java-threads.h".
6253 * prims.cc (soft_monitorenter): Wrote.
6254 (soft_monitorexit): Likewise.
6255 * java/lang/natObject.cc (init_mutex): New method.
6259 (sync_mutex): Define.
6260 Include "java-threads.h".
6262 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6264 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6265 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6267 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6269 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6270 Added extern "Java" in places to tell G++ Object is a "Java" type.
6271 Other minor renaming and fixes.
6272 * include/java-io.h (FileDescriptor): Add friend class declarations.
6273 G++ no longer allows non-Java types in method parameters and results
6274 of Java classes. Converted most offending methods to friends.
6275 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6276 * java/lang/natSystem.cc (setProperty): Make friend.
6277 * java/lang/natString.cc, include/java-lang.h (String): Rename
6278 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6279 * include/java-lang.h (JArray): Remove getData and eoprator[].
6280 Add elements friend function instead.
6281 * java/lang/natSystem.cc (arraycopy): Use elements function.
6282 * java/io/natFileDescriptor.cc (read, write): Likewise.
6283 * include/java-lang.h (Object): Remove unused make method.
6284 (System::setProperty(char*,char*)): Turn into friend function.
6285 (Class): Rename newObject by JvAllocObject.
6286 * prims.cc: Update to use JvAllocObject, and elements.
6288 * java/lang/natDouble.cc: Fix double -> jdouble.
6290 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6292 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6294 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6296 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6297 * include/java-lang.h (Runtime): finalize_on_exit and
6298 runFinalizersOnExit now static.
6299 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6301 (finalize_on_exit): Now static.
6303 * boehm.cc (mark_obj): Get class using getClass() method on
6305 (_dispatchTable): Removed.
6307 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6309 * java/io/natFileDescriptor.cc (open_read): Only call open if
6311 (open_write): Likewise.
6313 * Makefile.in: Rebuilt.
6314 * Makefile.am ($(nat_files)): Depend on config.h.
6316 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6318 * prims.cc (ObjectClass): Now a macro; updated for new class name
6320 (StringClass): Likewise.
6321 (ClassClass): Likewise.
6323 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6325 * java/io/natFileDescriptor.cc (available): Do nothing unless
6326 HAVE_SELECT defined.
6327 * java/util/natDate.cc (setTime): Conditional on
6329 (toString): Conditional on HAVE_TIME.
6330 * aclocal.m4, configure: Rebuilt.
6331 * acinclude.m4: New file.
6332 * configure.in: Don't actually call AM_EXEEXT. Call
6333 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6334 --with-target-subdir option. Check for select and open
6337 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6339 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6340 (call_finalizer): Likewise.
6341 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6342 * prims.cc (newObject): Pass actual method pointer to
6343 JvPrivRegisterFinalizer.
6344 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6345 (JvPrivRegisterFinalizer): Changed interface.
6347 * Makefile.in: Rebuilt.
6348 * Makefile.am (MOSTLYCLEANFILES): New macro.
6349 (CLEANFILES): Removed javao_files.
6351 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6353 * nogc.cc: New file.
6354 * Makefile.in: Rebuilt.
6355 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6356 (EXTRA_libjava_a_SOURCES): New macro.
6357 (libjava_a_SOURCES): Removed boehm.cc.
6358 (libjava_a_DEPENDENCIES): Added GCOBJS.
6359 (libjava_a_LIBADD): Likewise.
6360 * configure: Rebuilt.
6361 * configure.in: Added code for --enable-gc=TYPE.
6363 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6365 * boehm.cc (mark_array): Don't further dereference pointer from
6368 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6369 * Makefile.in: Rebuilt.
6370 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6371 one for boehm-gc build directory.
6373 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6375 * include/java-lang.h (finalize_on_exit): New instance variable in
6376 java::lang::Runtime.
6377 (runFinalizersOnExit): New method.
6378 * java/lang/Runtime.java (finalize_on_exit): New instance
6380 (runAllFinalizers_): New private method.
6381 (runFinalizersOnExit): New method.
6382 * boehm.cc (JvPrivRunFinalizers): New function.
6383 (JvPrivRunAllFinalizers): Likewise.
6384 (JvPrivRunGC): Likewise.
6385 * java/lang/natRuntime.cc: Include "jvm.h".
6386 (gc): Call JvPrivRunGC.
6387 (runFinalization): Call JvPrivRunFinalizers.
6388 (runFinalizersOnExit): New method.
6389 (exit_): Call JvPrivRunAllFinalizers if required.
6390 * include/jvm.h: Declare JvPrivRunFinalizers,
6391 JvPrivRunAllFinalizers, JvPrivRunGC.
6393 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6395 * boehm.cc (JvPrivRegisterFinalizer): New function.
6396 (call_finalizer): Likewise.
6397 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6398 * prims.cc (finalize_name): New global.
6399 (newObject): Just call other newObject.
6400 (newObject): Register finalizer if it exists.
6402 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6404 * prims.cc (gc_malloc): Removed.
6405 (makeUtf8Const): Use JvPrivAllocBytes.
6406 (lookupArray): Likewise.
6407 (newPrimArray): Likewise.
6408 (JvNewObjectArray): Use JvPrivAllocArray.
6409 (newObject): Use JvPrivAllocObj.
6410 (newObject): Likewise.
6411 Changed Method -> JvMethod everywhere.
6412 Changed Field -> JvField everywhere.
6413 * include/java-lang.h (Object): Changed type of `fields' to
6415 (jmethodID, jfieldID): New typedefs.
6416 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6418 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6420 (METHOD_NATIVECODE): Moved from java-lang.h.
6421 (class JvField): New class.
6422 (JvGetFirstInstanceField): New function.
6423 (JvFieldIsRef): Likewise.
6424 (JvGetObjectField): Likewise.
6425 (JvNumInstanceFields): Likewise.
6427 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6429 * boehm.cc: New file.
6430 * Makefile.in: Rebuilt.
6431 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6432 (INCLUDES): Added -I options to find boehm-gc files.
6434 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6436 * configure: Rebuilt.
6437 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6439 * Makefile.in: Rebuilt.
6440 * Makefile.am (nat_files): New macro.
6441 (libjava_a_DEPENDENCIES): Use it.
6442 (libjava_a_LIBADD): Likewise.
6443 ($(nat_files)): New static pattern rule.
6444 (class_files): Run separate find to find .class files.
6445 (javao_files): Compute based on class_files.
6446 (BUILT_SOURCES): New macro.
6448 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6450 * Makefile.am (java_files): New macro.
6451 (class_files): Likewise.
6452 (javao_files): Likewise.
6453 (libjava_a_DEPENDENCIES): Include $(javao_files).
6454 (libjava_a_LIBADD): Likewise.
6455 (classes.stamp): Depend on $(java_files); only recompile changed
6458 (CLEANFILES): Don't run find; use macros. Don't mention
6460 (.class.o): New target.
6461 (compiled.stamp): Removed.
6463 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6465 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6466 LineNumberReader}>java: Newly-implemented standard classes.
6468 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6470 * Makefile.in: Rebuilt.
6471 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6473 * Makefile.in: Rebuilt.
6474 * Makefile.am (hack): New macro.
6475 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6477 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6479 * include/config.h.in: New file.
6480 * include/config.h: Removed.
6481 * acconfig.h: New file.
6482 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6483 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6484 libjava_a_LIBADD): New macros.
6485 (INCLUDES): New macro.
6488 (SUFFIXES): Removed.
6490 (libjava.a): Removed.
6492 * configure: Rebuilt.
6493 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6494 Look for headers and functions we require. Create
6497 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6499 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6500 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6501 soft_lookupinterfacemethod): New functions.
6502 (PrimClass): Actually initialize the primitive classes.
6503 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6505 * include/java-util.h: Removed java::util definition.
6506 * include/cni.h: Moved java::util here and added Properties.
6507 Added more function prototypes.
6508 * include/java-lang.h: Added mroe methods and friend declarations.
6509 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6510 * include/jvm.h (strLengthUtf8): Add declaration.
6512 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6514 * java/lang/{Byte,Short,Void}.java: New classes.
6515 * java/lang/Character.java (isJavaIdentifierStart,
6516 JavaIdentifierPart): New static methods.
6517 * java/lang/Number.java (byteValue, shortValue): New methods.
6519 * java/lang/String.java (intern, hashCode): Make native.
6520 * java/lang/natString.cc: New file. Handle the string pool.
6521 * Makefile.am: Build natString.o. Use CXXFLAGS.
6523 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6524 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
6525 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
6526 * java/lang/System.java (setProperty): New private method.
6527 (initProperties): Take argument, and make native.
6528 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
6529 (currentTimeMillis): Make more robust.
6531 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
6532 * java/io/UnsupportedEncodingException.java: New exception class.
6534 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
6535 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
6537 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
6539 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
6540 * prims.cc: Added bunch of stuff.
6541 * include/cni.h: Added various definitions.
6542 * include/java-lang.h: Added Method, various friends, some macros.
6544 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
6545 * java/lang/System.java (arraycopy): Make native.
6547 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
6549 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6550 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
6551 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
6552 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6554 * java/lang/Runtime.java: Declare methods as native instead of
6556 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
6557 * java/lang/System.java: Comment out some stuff, for now.
6558 * java/lang/Thread.java: Re-write. Use native methods.
6559 * java/lang/NativeLang.java: Remove most of it.
6561 * java/util/natDate.cc: Native (C++) methods for Date.
6562 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
6563 * java/util/Date.java: Complete re-write.
6565 * java/io/io-defs.h: New header file.
6566 * java/io/FileDescriptor.java: Add a bunch of private methods,
6567 mostly moved from NativeIO.java and natNativeIO.cc.
6568 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
6569 * java/io/File.java: Use new code.
6570 * java/io/{FileInputStream.java.FileOutputStream.java,
6571 RandomAccessFile.java}: Use new private FileDescriptor methods.
6572 * java/io/NativeIO.java: Removed, no longer used.
6574 * java/io/StreamTokenizer.java (numericChars): Make char array.
6576 * include/*.h: Various header files used by the C++ native code.
6578 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
6579 New autoconf+automake-based setup.
6580 * prims.cc: New file for Java "primitives".