1 1999-09-21 Tom Tromey <tromey@cygnus.com>
3 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
4 previous patch; it too was incorrect.
5 * java/io/PrintStream.java (PrintStream): Likewise.
7 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
8 refer to `this' before calling superclass constructor.
9 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
10 before calling superclass constructor.
12 1999-09-20 Tom Tromey <tromey@cygnus.com>
15 * configure.in: Send output of `-fuse-divide-subroutine' test
16 compilation to /dev/null.
18 1999-09-14 Tom Tromey <tromey@cygnus.com>
20 * include/java-insns.h: Turned constants into an enum. Added
21 multiple-inclusion protection.
23 1999-09-10 Tom Tromey <tromey@cygnus.com>
26 * configure.in: Build include/Makefile.
27 * Makefile.in: Rebuilt.
28 * Makefile.am (SUBDIRS): Added gcj and include.
29 (install-data-local): New target.
30 (extra_headers): New macro.
31 * include/Makefile.in: New file.
32 * include/Makefile.am: New file.
34 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
35 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
37 * boehm.cc: Don't include java-threads.h or gcj/field.h.
38 * resolve.cc: Include config.h.
39 * defineclass.cc: Include config.h.
40 * include/java-interp.h: Don't include config.h.
41 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
44 * gcj/javaprims.h: Regenerated namespace decls.
45 * classes.pl (scan): Don't put `;' after closing brace.
47 * Makefile.in: Rebuilt.
48 * Makefile.am (INCLUDES): Added -I for top_srcdir.
49 * configure.in: Create gcj/Makefile.
50 * gcj/Makefile.in: New file.
51 * gcj/Makefile.am: New file.
52 * java/lang/Object.h: Don't include any other headers.
53 * gcj/array.h: Renamed from include/java-array.h.
54 * gcj/field.h: Renamed from include/java-field.h.
55 * gcj/method.h: Renamed from include/java-method.h.
56 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
57 Updated all files to reflect new include structure.
59 1999-09-09 Tom Tromey <tromey@cygnus.com>
62 * configure.in: Fixed typo; variable is THREADSPEC and not
65 1999-09-08 Tom Tromey <tromey@cygnus.com>
67 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
68 previous change and implemented a correct test in the __m_count
71 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
74 1999-09-07 Tom Tromey <tromey@cygnus.com>
76 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
77 code and don't set errno.
79 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
80 not `r'. Changed `done_sleeping' to a `bool'.
82 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
84 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
85 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
86 by another thread, rather than by the GC.
87 (_Jv_CondWait): Prevent premature thread wakeup by GC.
88 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
89 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
92 1999-09-03 Tom Tromey <tromey@cygnus.com>
95 * configure.in: Check for fstat function.
96 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
99 1999-09-02 Tom Tromey <tromey@cygnus.com>
101 * include/java-array.h (jobjectArrayjchar): Removed unused
104 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
105 _Jv_PrepareCompiledClass while holding class mutex.
107 1999-09-01 Tom Tromey <tromey@cygnus.com>
109 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
110 (_Jv_PthreadGetMutex): Use it.
111 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
112 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
113 (_Jv_MutexLock): Likewise.
114 (_Jv_MutexUnlock): Likewise.
115 * include/config.h.in: Rebuilt.
116 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
117 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
118 * configure: Rebuilt.
119 * libgcj.spec.in: Don't mention INTERPSPEC.
120 * configure.in (INTERPSPEC): Removed.
121 Only run pthreads-related checks when using POSIX threads. Check
122 for m_count and __m_count in mutex structure.
124 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
126 * java/lang/natClass.cc: Fixed notification of threads
127 when class initialization is complete.
129 1999-09-01 Tom Tromey <tromey@cygnus.com>
131 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
132 * resolve.cc: Removed constants defined by
133 java.lang.reflect.Modifier.
134 Include <java/lang/reflect/Modifier.h>.
135 (_Jv_ResolvePoolEntry): Use values from Modifier.
136 (_Jv_DetermineVTableIndex): Likewise.
137 (_Jv_PrepareClass): Likewise.
139 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
140 java.lang.reflect.Modifier.
141 Include <java/lang/reflect/Modifier.h>.
142 (checkExtends): Use values from Modifier.
143 (checkImplements): Likewise.
144 (handleField): Likewise.
145 (handleConstantValueAttribute): Likewise.
146 (handleFieldsEnd): Likewise.
147 (handleMethod ): Likewise.
148 (handleMethodsEnd): Likewise.
149 (handleClassBegin): Likewise.
150 * interpret.cc: Removed constants defined by
151 java.lang.reflect.Modifier.
152 (continue1): Use values from Modifier.
153 * java/lang/natClassLoader.cc: Removed constants defined by
154 java.lang.reflect.Modifier.
156 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
157 JV_STATE_NOTHING, not `0'.
158 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
160 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
161 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
163 (_Jv_PthreadGetMutex): New function.
164 (_Jv_PthreadCheckMonitor): Use it.
165 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
166 (_Jv_MutexLock): Update `count'.
167 (_Jv_MutexUnlock): Likewise.
168 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
171 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
173 * Makefile.am (.java.lo): Add rule.
175 * Makefile.in: Rebuilt.
177 1999-09-01 Tom Tromey <tromey@cygnus.com>
179 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
180 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
182 (_Jv_CondNotify): Use it.
183 (_Jv_CondNotifyAll): Likewise.
185 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
187 1999-08-31 Tom Tromey <tromey@cygnus.com>
189 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
192 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
194 * posix-threads.cc: Include <errno.h>.
196 1999-08-23 Tom Tromey <tromey@cygnus.com>
198 * boehm.cc: Undefine TRUE and FALSE.
200 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
202 1999-08-21 Tom Tromey <tromey@cygnus.com>
204 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
207 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
209 * configure.in: Check for in_addr_t in netinet/in.h too. Check
211 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
212 (HAVE_STRUCT_IP_MREQ): Added.
213 * configure, include/config.h.in: Rebuilt.
214 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
216 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
217 Disable if ip_mreq is not available.
219 * configure.in: Check types ssize_t and in_addr_t.
220 * acconfig.h: Undefine them.
221 * configure, include/config.h.in: Rebuilt.
223 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
224 function that detects the signature of getpwuid_r.
225 (init_properties): Use it.
226 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
229 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
231 * interpret.cc (continue1): Implement explicit dispatch table.
232 insn_target: Explicit interpreter switch table.
233 SAVE_PC: New macro, moves pc saving code into instructions that
235 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
236 PC_REGISTER_ASM: New macro.
237 INLINE_SWITCH: New macro. Constrols dispatching strategy.
238 opcode: Remove local variable.
239 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
240 (POKEI): Use _Jv_word.
241 (iinc): Use _Jv_word.
242 (dupx): Change reference argument (sp) to pointer.
245 * interpret.cc: Remove instruction timing instrumentation.
247 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
248 comment. Don't use _Jv_ClassNameSamePackage.
250 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
251 URLPathEntry, CacheEntry}: Removed.
253 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
255 (.java.lo): Rule removed.
257 * Makefile.in: Rebuilt.
259 1999-08-19 Tom Tromey <tromey@cygnus.com>
261 * java/lang/natThread.cc (class locker): New class.
262 (join): Use a locker around _Jv_CondWait.
265 1999-08-18 Tom Tromey <tromey@cygnus.com>
267 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
268 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
270 1999-08-18 Tom Tromey <tromey@cygnus.com>
272 * include/javaprims.h ("Java"): Regenerated namespace decls.
274 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
276 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
277 from _Jv_InternClassStrings.
279 * prims.cc (_Jv_RunMain): New function.
280 (JvRunMain): Remove gij-support.
282 * gij.cc (main): Use _Jv_RunMain.
284 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
286 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
287 argument in temp variable.
288 (continue1): For all op_x2y insns, use temp variable for
289 intermediate value. Also remove some comments.
291 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
292 (forName): Don't call _Jv_InitClass.
294 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
296 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
298 * java/util/jar/JarInputStream.java: New file.
300 * java/util/jar/JarEntry.java: New file.
302 * java/util/jar/JarFile.java: New file.
304 * java/net/URLClassLoader.java: New file.
306 * java/net/JarURLConnection.java: New file.
308 * gnu/gcj/protocol/jar/Handler.java: New file.
310 * gnu/gcj/protocol/jar/Connection.java: New file.
312 * java/security/SecureClassLoader.java: New file.
314 * java/lang/ClassLoader.java (parent): New variable.
315 (ClassLoader (ClassLoader)): new constructor.
316 (findClass): New method.
317 (loadClass): Add default 1.2 implementation.
318 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
319 (readfully): Removed.
321 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
322 (findSystemClass): New method.
323 (VMClassLoader): Constructor rewritten.
325 All other methods removed.
327 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
328 to gnu::gcj::runtime::VMClassLoader.
329 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
331 (VMClassLoader::findSystemClass): renamed from findBootClass.
333 * Makefile.am: Add new files.
334 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
336 * Makefile.in: Rebuilt.
338 1999-08-17 Tom Tromey <tromey@cygnus.com>
340 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
342 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
345 1999-08-16 Tom Tromey <tromey@cygnus.com>
347 * configure: Rebuilt.
348 * configure.in: Set DIVIDESPEC to empty string if compiler does
349 not support -fuse-divide-subroutine.
351 1999-08-14 Per Bothner <per@bothner.com>
353 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
354 * java/lang/natClass.cc (initializeClass): Likewise.
355 * java/lang/ClassLoader.java (resolveClass0): New static method.
356 (resolveClass): Call resolveClass0.
357 (findSystemClass): No longer static.
359 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
361 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
363 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
365 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
368 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
371 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
374 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
377 * configure: Rebuilt.
378 * configure.in: Properly align --help output, fix capitalization
380 * acinclude.m4: Likewise.
382 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
384 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
386 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
387 (_Jv_callInterpretedMethod): Unused. Remove.
388 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
390 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
391 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
392 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
393 * interpret.cc: use _Jv_word.
394 * defineclass.cc: use_Jv_word.
395 * resolve.cc: Use _Jv_word.
396 (_Jv_ResolvePoolEntry): Return _Jv_word.
397 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
398 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
400 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
403 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
405 * configure: Rebuilt.
406 * configure.in (sched_yield): Try librt first, then libposix4.
407 Add -lrt, -lposix4 to THREADSPEC.
409 1999-08-08 Anthony Green <green@cygnus.com>
411 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
413 1999-08-08 Anthony Green <green@cygnus.com>
415 * defineclass.cc (_Jv_VerifyClassName): Verify array names
418 1999-08-08 Anthony Green <green@cygnus.com>
422 * include/config.h.in: Rebuilt.
423 * acconfig.h: Add INTERPRETER.
425 * Makefile.in: Rebuilt.
426 * Makefile.am (libffi_files): Identify the libffi object files for
428 (LIBFFIINCS): Define.
430 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
431 Dummy definition for configurations without an interpreter.
433 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
434 java::lang::Boolean constructor.
436 * include/java-interp.h: Always include java-cpool.h.
438 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
439 when INTERPRETER not defined.
441 * java/lang/Class.h (finalize): Define.
443 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
444 IOException from File.getCanonicalPath.
445 (getStream): Likewise.
448 * THANKS: More thanks.
450 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
452 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
454 (_Jv_PrepareClass): Allow non-abstract classes to
455 have abstract subclasses.
456 (_Jv_ResolvePoolEntry): Revert subclass check for protected
458 * interpret.cc (continue1/perform_invoke): Don't sign extend
460 (continue1/lshl,lshr): Push long, not int.
461 (continue1/ulshr): Use UINT64, not long long.
462 * defineclass.cc (handleFieldsEnd): Handle case when all fields
464 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
465 * java/lang/FirstThread.java (run): Add top-level exception
467 (run0): Renamed from run.
469 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
471 * configure.in (--with-interpreter): Added.
472 * include/config.h.in (INTERPRETER): Added.
474 * java/lang/ClassLoader.java: File replaced.
475 * java/lang/VMClassLoader.java: New file.
476 * java/lang/natClassLoader.cc: New file.
477 * gnu/gcj/runtime/MethodInvocation.java: New file.
478 * gnu/gcj/util/path/SearchPath.java: New file.
479 * gnu/gcj/util/path/PathEntry.java: New file.
480 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
481 * gnu/gcj/util/path/ZipPathEntry.java: New file.
482 * gnu/gcj/util/path/URLPathEntry.java: New file.
483 * gnu/gcj/util/path/CacheEntry.java: New file.
484 * include/java-interp.h: New file.
485 * include/java-cpool.h: New file.
486 * include/java-insns.h: New file.
487 * defineclass.cc: New file.
488 * interpret.cc: New file.
489 * resolve.cc: New file.
491 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
492 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
493 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
495 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
496 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
498 (initializeClass): Use new JV_ prefixed names. Also, call
499 ClassLoader::resolveClass instead of _Jv_ResolveClass.
501 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
502 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
503 JV_STATE_LINKED): New.
504 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
505 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
506 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
507 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
508 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
509 _Jv_InterpMethodInvocation): New friends for interpreter.
511 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
512 include/java-cpool.h and renamed with JV_ prefix.
514 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
516 (_Jv_UnregisterClass): New decl.
518 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
519 class loader argument.
520 (_Jv_FindClass): Use class loader.
522 * prims.cc (_Jv_makeUtf8Const): New function.
523 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
524 (_Jv_NewPrimArray): Ditto.
525 (_Jv_FindClassFromSignature): Ditto.
526 * java/lang/reflect/natArray.cc (newInstance): Ditto.
527 * java/lang/reflect/natMethod.cc (getType): Ditto.
529 * include/java-field.h (_Jv_Field::isRef): Make robust for
530 non-resolved contexts.
532 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
533 Also, don't mark class->next field.
535 * java/lang/VirtualMachineError.java: Added FIXME note.
537 * configure.in (INTERPSPEC): New spec.
538 * libgcj.spec.in: Added INTERPSPEC.
539 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
540 gnu/gcj/runtime/MethodInvocation.
541 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
542 (ordinary_java_source_files): Added above mentioned java classes.
544 * configure: Rebuilt.
545 * Makefile.in: Rebuilt.
547 1999-08-06 Tom Tromey <tromey@cygnus.com>
549 * configure: Rebuilt.
550 * configure.in: Look for sched_yield in -lrt.
552 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
554 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
555 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
556 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
558 (toString): Print correctly when `country' is empty.
560 1999-08-04 Per Bothner <per@bothner.com>
562 * configure.in: Also do AC_SUBST for DIVIDESPEC.
564 1999-08-02 Tom Tromey <tromey@cygnus.com>
566 * aclocal.m4, configure: Rebuilt for new libtool.
568 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
570 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
571 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
572 * java/net/ServerSocket.java: Define ANY_IF.
573 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
574 all network interfaces.
575 * java/net/DatagramSocket.java (DatagramSocket): ditto.
576 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
578 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
580 * java/io/natFile.cc (performMkdir): Remove FIXME.
581 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
583 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
585 * configure.in: Check for bstring.h.
586 * configure, include/config.h.in: Rebuilt.
587 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
588 * java/net/natPlainSocketImpl.cc: Likewise.
590 1999-07-31 Tom Tromey <tromey@cygnus.com>
595 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
597 * configure.in: Check for struct hostent_data and need for
598 -D_REENTRANT for gethostbyname_r declaration.
599 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
600 (lookup): Use hostent_data for fixed_buffer.
601 * configure, include/config.h.in: Rebuilt.
603 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
605 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
606 available. Don't cast memmove args to (void*).
607 * configure.in: Do not abort if memmove is not available.
609 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
611 * java/lang/natString.cc (substring): optimize where substring is
613 * java/io/File.java (getName): don't return separator with file name.
614 * java/io/natFile.cc (attr): fix overflow.
616 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
618 * mauve-libgcj: Disable Object Serialization tests.
620 1999-07-20 Warren Levy <warrenl@cygnus.com>
622 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
623 Default to using PlainDatagramSocketImpl.
624 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
626 1999-07-19 Tom Tromey <tromey@cygnus.com>
628 * include/stamp-h.in: New file.
630 1999-07-12 Tom Tromey <tromey@cygnus.com>
632 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
635 1999-07-07 Andrew Haley <aph@cygnus.com>
637 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
638 bytes to make it point after the instruction where the trap
640 (HANDLE_DIVIDE_OVERFLOW): Ditto.
642 1999-07-07 Tom Tromey <tromey@cygnus.com>
644 * mauve-libgcj: Explicitly enable formerly disabled java.text
647 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
650 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
652 * java/net/URL.java (equals): Compare strings using String.equals.
653 * java/net/URL.java (sameFile): Ditto.
655 1999-07-02 Warren Levy <warrenl@cygnus.com>
657 * configure: Rebuilt.
658 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
659 * include/config.h.in: Rebuilt.
660 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
661 (mcastGrp): Updated FIXME comments.
662 (setOption): Fixed typo.
663 (getOption):Implemented IP_MULTICAST_IF.
665 1999-07-02 Warren Levy <warrenl@cygnus.com>
667 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
668 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
669 (getTimeToLive): Implemented.
670 (setOption): Implemented IP_MULTICAST_IF.
672 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
674 * java/lang/String.java (toString): Check for this == null and throw
675 NullPointerException.
677 1999-07-01 Warren Levy <warrenl@cygnus.com>
679 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
680 to count and revised comments to match.
681 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
682 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
683 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
684 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
685 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
686 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
688 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
690 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
691 properly as count rather than outlength.
692 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
693 output on overflow rather than buffer fill.
694 * java/io/BufferedReader.java (fill): Don't clear out the buffer
695 if markPos is 0 and there is still room in the buffer.
697 1999-07-01 Andrew Haley <aph@cygnus.com>
699 * include/i386-signal.h: Replace sigaction () with __sigaction ().
700 This is a workaround for a bug in glibc's pthreads package which
701 doesn't deliver any sigcontext information to a signal handler.
703 1999-06-24 Tom Tromey <tromey@cygnus.com>
705 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
706 * java/lang/fdlibm.h (HUGE): Conditionally define.
708 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
710 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
711 * java/lang/e_log.c: Don't use __uint32_t.
713 1999-05-27 Eric Christopher <echristo@cygnus.com>
716 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
717 * acconfig.h: Rebuilt
718 * include/config.h.in: Rebuilt
720 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
721 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
722 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
723 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
724 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
725 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
726 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
727 and namespace collision with __uint32_t
729 1999-06-23 Tom Tromey <tromey@cygnus.com>
731 * java/util/zip/InflaterInputStream.java (read): Throw
732 ZipException if inflater throws a DataFormatException.
734 1999-06-23 Warren Levy <warrenl@cygnus.com>
736 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
737 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
738 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
739 is not final per JDK.
740 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
742 * java/util/zip/DataFormatException.java: Class extends Exception.
743 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
744 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
745 * java/util/zip/ZipInputStream.java: ditto.
746 (closeEntry): Changed method name to match JDK spec.
748 1999-06-21 Tom Tromey <tromey@cygnus.com>
750 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
753 * Makefile.in: Rebuilt.
754 * Makefile.am (toolexeclibdir): Define as libdir when
756 * configure: Rebuilt.
757 * configure.in (USE_LIBDIR): New conditional.
759 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
761 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
762 hostname in returned InetAddress objects.
763 (getLocalHostname): Fix typo.
764 * java/net/InetAddress.java (getByName): Set hostname on return
766 (getLocalHost): Call lookup directly to ensure that a fully-qualified
769 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
771 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
772 interfaces if host==NULL.
773 (accept): Throw message with InterruptedIOException.
774 (getOption): Cache localAddress.
775 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
776 'address' for DatagramSocket.
777 (setTimeToLive): Fix compiler warnings.
778 (getOption): Cache localAddress.
779 * java/net/Socket.java (getLocalAddress): Don't need local
780 InetAddress object. Add FIXME comment about calling checkConnect().
781 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
782 connection queue to 50 as per JDK 1.2 docs.
783 (ServerSocket(int,int)): Listen on all network interfaces by
784 default, per JDK 1.2 docs.
785 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
786 Add localAddress caching.
788 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
790 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
792 (write(byte[],int,int)): ditto.
794 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
796 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
798 1999-06-11 Warren Levy <warrenl@cygnus.com>
800 * mauve-libgcj: Activated java.net Mauve tests.
802 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
804 * java/net/natInetAddress.cc (aton): Fix typos.
805 (lookup): Use a bigger buffer size for gethostbyname_r on all
806 versions of glibc. Updated FIXME comment explaining this.
807 Modified while loops to not set herr = ERANGE to work around glibc
808 problems. Use user specified hostname in InetAddress result when
809 available (consistent with JDK).
811 1999-06-10 Warren Levy <warrenl@cygnus.com>
813 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
814 Throw FileNotFoundException instead of IOException.
816 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
818 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
819 in static field name.
820 * java/text/DecimalFormat.java: Throw IllegalArgumentException
821 throughout rather than ParseException.
823 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
825 * java/lang/Runtime.java (exec): Convert prog name and arguments
827 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
828 environment array conversion. Preserve current environment if envp
829 not passed. Preserve PATH unless explicitly specified.
830 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
831 followed by EOF. Set a flag when a line is terminated by '\r' and
832 ignore following '\n' if set.
834 1999-06-02 Warren Levy <warrenl@cygnus.com>
836 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
837 Ignore context if spec is an absolute URL. Fix braindead
839 (hashCode): Use JDK 1.2 style algorithm.
840 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
841 context URL properly.
843 1999-05-30 Anthony Green <green@cygnus.com>
845 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
846 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
848 1999-05-28 Warren Levy <warrenl@cygnus.com>
850 * java/net/DatagramSocket.java (laddr): Removed.
851 (DatagramSocket): Removed attempts to get or set laddr if null.
852 (getLocalAddress): Reimplemented per spec.
853 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
855 (joinGroup): Throw NullPointerException if any argument is null.
857 * java/net/PlainDatagramSocketImpl.java: Updated comments.
858 * java/net/PlainSocketImpl.java (timeout): Added.
859 (getInputStream): Added FIXME comment on how to support timeouts
861 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
862 * java/net/Socket.java: Added FIXME comments to identify
863 conflicting specs between the JCL and JDK 1.2 documents.
864 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
865 if host is null. Get localport value resolved by kernel if bind
867 (receive): Implemented support for timeouts in UDP.
868 (setOption): Implemented based on natPlainSocketImpl version.
870 * java/net/natPlainSocketImpl.cc (bind): Get localport value
871 resolved by kernel if bind lport is 0.
872 (connect): Get localport value resolved by kernel if bind wasn't
873 done to set localport.
874 (accept): Implemented support for timeouts for ServerSocket.
875 (setOption): Save value for SO_TIMEOUT.
876 (getOption): Return timeout for SO_TIMEOUT.
878 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
880 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
881 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
882 (setOption): Made abstract.
883 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
884 to avoid cpp conflicts in native code.
885 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
886 cpp conflicts in native code.
887 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
888 * java/net/Socket.java (getLocalAddress): Implemented.
889 (setTcpNoDelay): Implemented.
890 (getTcpNoDelay): Implemented.
891 (setSoLinger): Implemented.
892 (getSoLinger): Implemented.
893 (getSoTimeout): Verify class type.
894 (setSendBufferSize): Implemented.
895 (getSendBufferSize): Implemented.
896 (setReceiveBufferSize): Implemented.
897 (getReceiveBufferSize): Implemented.
898 (toString): Prepended "Socket".
899 * java/net/SocketImpl.java (toString): Rewritten.
900 (getOption): Made abstract.
901 (setOption): Made abstract.
902 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
903 (setOption): Implemented.
904 (getOption): Implemented.
906 1999-05-26 Warren Levy <warrenl@cygnus.com>
908 * java/net/DatagramSocket.java (DatagramSocket): Get local host
909 address when null. Set SO_REUSEADDR for multicasts.
910 (getSoTimeout): Implemented.
911 (setSoTimeout): Implemented.
912 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
913 * java/net/MulticastSocket.java (getInterface): Implemented.
914 (setInterface): Implemented.
915 (setTimeToLive): Check for invalid ttl.
916 (joinGroup): Verify multicast address and security.
917 (leaveGroup): Verify multicast address and security.
919 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
925 (getTTL): Implemented as non-native.
929 * java/net/ServerSocket.java (setSoTimeout): Implemented.
930 (getSoTimeout): Implemented.
931 (setSocketFactory): Made synchronized.
932 * java/net/Socket.java (setSoTimeout): Implemented.
933 (getSoTimeout): Implemented.
934 (close): Made synchronized.
935 (setSocketImplFactory): Made synchronized.
936 * java/net/SocketImpl.java: Implement SocketOptions interface.
937 * java/net/natInetAddress.cc: Corrected module name at top of file.
938 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
946 (setOption): Implemented for SO_REUSEADDR.
947 (getOption): Implemented for SO_REUSEADDR.
949 1999-05-24 Tom Tromey <tromey@cygnus.com>
951 * java/util/ResourceBundle.java (getBundle): Throw
952 NullPointerException if baseName is null.
954 1999-05-22 Tom Tromey <tromey@cygnus.com>
956 * java/util/zip/ZipInputStream.java (fill): New method.
957 (compressed_len): New instance variable.
958 (getNextStream): Set it.
959 (read): Reset inflater on EOF. Only read via `super' if entry is
961 (skip): Only skip via `super' if entry is deflated.
962 * java/util/zip/Deflater.java (last_input_count): Removed.
963 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
965 (needsInput): Don't use last_input_count.
966 (setInput): Don't set last_input_count.
967 * java/util/zip/natInflater.cc (getRemaining): Return correct
969 (inflate): Return 0 if input array is length 0.
970 (setInput): Don't set last_input_count.
971 * java/util/zip/Inflater.java (last_input_count): Removed.
973 1999-05-21 Tom Tromey <tromey@cygnus.com>
975 * Makefile.in: Rebuilt.
976 * Makefile.am (INCLUDES): Added $(ZINCS).
977 * configure: Rebuilt.
978 * configure.in (ZINCS): New subst.
980 1999-05-21 Andrew Haley <aph@cygnus.com>
982 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
983 to signal options to allow the same exceptions to be rethrown
986 1999-05-20 Andrew Haley <aph@cygnus.com>
988 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
990 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
991 (INIT_FPE): Exception string made more informative.
992 * include/sparc-signal.h (INIT_FPE): Exception string made more
994 * testsuite/libjava.lang/Divide_1.java: New file.
995 * testsuite/libjava.lang/Divide_1.out: New file.
997 1999-05-19 Tom Tromey <tromey@cygnus.com>
999 * aclocal.m4, configure: Rebuilt.
1000 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1002 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1005 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1007 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1009 (update): Fail in default case. Always initialize `strat'.
1011 * mauve-libgcj: Enable java.util.zip.
1013 1999-05-18 Warren Levy <warrenl@cygnus.com>
1015 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1016 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1017 PlainDatagramSocketImpl.java, and SocketOptions.java.
1018 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1019 * Makefile.in: Rebuilt.
1021 * java/net/DatagramPacket.java: New file.
1022 * java/net/DatagramSocket.java: New file.
1023 * java/net/DatagramSocketImpl.java: New file.
1024 * java/net/MulticastSocket.java: New file.
1025 * java/net/PlainDatagramSocketImpl.java: New file.
1026 * java/net/SocketOptions.java: New file.
1027 * java/net/natPlainDatagramSocketImpl.cc: New file.
1029 1999-05-18 Tom Tromey <tromey@cygnus.com>
1031 * java/util/zip/ZipOutputStream.java (level): Initial value is
1032 Deflater.DEFAULT_COMPRESSION.
1033 (close): New method.
1034 (closeEntry): Likewise.
1036 (put_version): Likewise.
1037 (write_entry): Likewise.
1038 (put2, put4): Now return `int'.
1039 (comment): Default to empty string.
1040 (bytes_written): New instance variable.
1042 * java/util/zip/ZipEntry.java (setComment): Limit length of
1044 (setCrc): Check CRC validity.
1045 (setExtra): Check argument validity.
1046 (setMethod): Likewise.
1047 (setSize): Likewise.
1048 (ZipEntry): Likewise.
1049 * include/javaprims.h: Updated namespace declarations.
1050 * Makefile.in: Rebuilt.
1051 * Makefile.am (ordinary_java_source_files): Mention new files.
1052 (nat_source_files): Likewise.
1053 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1056 (getInputStream): Handle compressed entries.
1057 * java/util/zip/GZIPOutputStream.java: New file.
1058 * java/util/zip/GZIPInputStream.java: New file.
1059 * java/util/zip/DataFormatException.java: New file.
1060 * java/util/zip/CheckedInputStream.java: New file.
1061 * java/util/zip/CheckedOutputStream.java: New file.
1062 * java/util/zip/InflaterInputStream.java: Implemented.
1063 * java/util/zip/natInflater.cc: New file.
1064 * java/util/zip/Deflater.java: Implemented.
1065 * java/util/zip/natDeflater.cc: New file.
1066 * java/util/zip/DeflaterOutputStream.java: Implemented.
1068 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1069 ZipException, not IOException.
1070 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1073 1999-05-17 Tom Tromey <tromey@cygnus.com>
1075 * java/lang/natSystem.cc (init_properties): URL now points to
1078 1999-05-12 Per Bothner <bothner@cygnus.com>
1080 * java/util/Calendar.java (set): First call computeFields if needed.
1081 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1083 1999-05-12 Tom Tromey <tromey@cygnus.com>
1085 * configure: Rebuilt.
1086 * configure.in: Look for -ldl when using the Boehm collector.
1087 Look for sched_yield in -lposix4.
1089 1999-05-12 Per Bothner <bothner@cygnus.com>
1091 * java/io/File.java (mkdirs): Handle a null parent directory.
1093 1999-05-12 Tom Tromey <tromey@cygnus.com>
1095 * include/javaprims.h: Updated namespace declarations.
1096 * classes.pl (scan): Uniquify class list.
1097 * Makefile.in, configure: Rebuilt.
1098 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1099 (built_java_source_files): New macro.
1100 (nat_headers): Added built_java_source_files.
1101 (javao_files): Likewise.
1102 (EXTRA_libgcj_la_SOURCES): Likewise.
1103 (libgcj.zip): Create built class files.
1104 ($(built_java_source_files:.java=.class)): New target.
1105 (jv_convert_LDADD): Added -L$(here)/.libs.
1106 * configure.in: Create links for ConcreteProcess.java and
1107 natConcreteProcess.cc.
1108 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1109 * java/lang/natEcosProcess.cc: New file.
1110 * java/lang/EcosProcess.java: New file.
1111 * java/lang/PosixProcess.java: New file.
1112 * java/lang/natPosixProcess.cc: New file.
1114 1999-05-12 Warren Levy <warrenl@cygnus.com>
1116 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1117 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1118 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1119 (connect): Throw ConnectException.
1121 1999-05-11 Tom Tromey <tromey@cygnus.com>
1123 * Makefile.in: Rebuilt.
1124 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1125 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1128 * Makefile.in: Rebuilt.
1129 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1130 and it causes problems with libtool.
1132 * Makefile.in, configure: Rebuilt.
1133 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1134 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1135 (jv_convert_DEPENDENCIES): Added ZDEPS.
1136 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1138 (THREADSPEC): Added `-L' to point to qthreads build directory.
1142 * configure, Makefile.in: Rebuilt.
1143 * Makefile.am (toolexeclib_DATA): New macro.
1144 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1145 Recognize --with-system-zlib.
1146 (GCSPEC): New subst.
1147 (THREADSPEC): New subst.
1148 (SYSTEMSPEC): New subst.
1149 (ZLIBSPEC): New subst.
1150 * libgcj.spec.in: New file.
1152 1999-05-10 Tom Tromey <tromey@cygnus.com>
1154 * java/io/InputStreamReader.java (read): If length is 0, return
1155 0. Reset `wpos' and `wcount' when buffer has been filled and
1158 * java/util/Properties.java (save): Removed `FIXME' comment.
1159 (load): Invalid characters in \u now treated as terminators.
1160 Make sure to append character resulting from `\' handling.
1161 Cast to `char' when appending to key or value.
1162 (skip_ws): Inverted test for whitespace.
1164 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1166 (readLine): Likewise.
1167 (readFully): Implemented.
1169 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1171 * java/awt/natToolkit.cc: Added copyright header.
1172 * java/util/zip/InflaterInputStream.java: Added copyright header.
1174 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1176 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1178 (getNextStream): Likewise.
1180 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1182 (getBundle): Don't explicitly throw null pointer exception.
1184 * gnu/gcj/RawData.java: Added copyright header.
1186 * include/jni.h (_Jv_va_list): Always define as va_list.
1188 1999-05-9 Anthony Green <green@cygnus.com>
1190 * java/text/DateFormat.java (computeInstance): Separate time
1192 (getDateTimeInstance): Ditto.
1193 (getDateTimeInstance(int,int)): New method.
1195 * Makefile.in: Rebuilt.
1196 * Makefile.am (ordinary_java_source_files): Add new classes.
1198 * java/util/PropertyResourceBundle.java: New file.
1199 * gnu/gcj/util/EnumerationChain.java: New file.
1201 1999-05-07 Tom Tromey <tromey@cygnus.com>
1203 * acconfig.h (GCJVERSION): New undef.
1204 * java/lang/natSystem.cc (init_properties): Define java.version,
1205 java.class.version, os.name, os.arch, os.version.
1206 Include <sys/utsname.h> if required.
1207 * configure: Rebuilt.
1208 * configure.in: Compute and define GCJVERSION.
1210 * java/lang/natSystem.cc (default_file_encoding): Now static.
1212 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1214 * libtool-version: New file.
1215 * Makefile.in: Rebuilt.
1216 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1219 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1220 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1223 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1224 (we pick those up already).
1226 1999-05-05 Per Bothner <bothner@cygnus.com>
1228 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1229 stub classes. (This is enough to get Kawa to compile against libgcj.)
1231 * gnu/gcj/RawData.java: New class.
1232 * doc/cni.sgml: Document RawData.
1234 * java/util/zip/InflaterInputStream.java: New stub class.
1235 * java/util/zip/ZipInputStream.java: New class. Partly works.
1236 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1237 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1238 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1239 * java/util/zip/ZipOutputStream.java: Start implementation.
1241 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1242 (default_file_encoding): New global, initial value is above macro.
1243 (init_properties): Default file.encoding to default_file_encoding.
1245 * Makefile.am: Add new classes.
1247 1999-05-05 Tom Tromey <tromey@cygnus.com>
1249 * Makefile.in: Rebuilt.
1250 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1251 (clean-local): New target
1253 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1254 (load, loadLibrary): Now native.
1256 * java/lang/Runtime.java (load, loadLibrary): Now native.
1257 (init): New native method.
1258 (Runtime): Use init.
1259 * prims.cc: Include <ltdl.h> if required.
1260 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1262 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1264 * configure.in: Switch from irix threads to posix threads
1265 * configure: Regenerate.
1267 1999-04-30 Tom Tromey <tromey@cygnus.com>
1269 * Makefile.in: Rebuilt.
1270 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1272 1999-04-29 Tom Tromey <tromey@cygnus.com>
1274 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1277 * java/util/Locale.java (Locale(String,String)): Implement in
1278 terms of 3-argument version; variant now defaults to empty
1280 (toString): Assume variant is not null.
1281 (equals): Assume all strings are not null.
1282 (Locale): Throw NullPointerException if any argument is null.
1284 * java/util/ResourceBundle.java (getBundle): Don't try the base
1285 name; now implicit in partialGetBundle call.
1286 (trySomeGetBundle): Search for parent bundles and call setParent
1288 (partialGetBundle): Added `langStop' argument. Use
1289 `Locale.toString' to compute bundleName.
1290 (resource_cache): New static field.
1291 (partialGetBundle): Cache the returned resource bundle. Now
1294 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1297 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1298 * java/text/natCollator.cc (decomposeCharacter): `base' now
1300 * Makefile.in: Rebuilt.
1301 * Makefile.am (ordinary_java_source_files): Added
1302 CollationElementIterator, CollationKey, Collator,
1304 (nat_source_files): Added natCollator.cc.
1305 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1306 (compare): Pass `this' to CollationElementIterator constructor.
1307 (getCollationElementIterator): Likewise.
1308 (ceiNext): Fix off-by-one error when finding initial substring.
1309 (next): Correctly mask off bits when computing return value.
1310 Fixed return values when one string is shorter than the other.
1311 * java/text/CollationElementIterator.java (collator): New field.
1312 (CollationElementIterator): Added collator argument.
1313 (next): Call ceiNext on collator object.
1315 1999-04-26 Tom Tromey <tromey@cygnus.com>
1317 * natCollator.cc: New file.
1319 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1320 (GregorianCalendar): Use it in all constructors.
1321 * java/util/Calendar.java (Calendar): Changed argument name to
1322 `zone' to match code.
1324 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1325 * java/text/CollationKey.java: New file.
1326 * java/text/CollationElementIterator.java: New file.
1327 * java/text/Collator.java: New file.
1328 * java/text/RuleBasedCollator.java: New file.
1330 * Makefile.in: Rebuilt.
1331 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1332 (jv_convert_LDADD): Explicltly add -lm -lc.
1334 1999-04-26 Tom Tromey <tromey@cygnus.com>
1336 * configure, Makefile.in: Rebuilt.
1337 * configure.in: Added AM_PROG_LIBTOOL.
1338 (GCOBJS): Use `.lo' form of files.
1339 (THREADOBJS): Likewise.
1340 (GCDEPS): Use `.la' form of library.
1341 (GCLIBS): Set to be the same as GCDEPS.
1342 (THREADDEPS): Use `.la' form of library.
1343 (THREADLIBS): Set to be the same as THREADDEPS.
1344 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1345 toolexeclib_LIBRARIES.
1346 (libgcj_la_SOURCES): Renamed for libtoolization.
1347 (EXTRA_libgcj_la_SOURCES): Likewise.
1348 (libgcj_la_DEPENDENCIES): Likewise.
1349 (libgcj_la_LIBADD): Likewise.
1350 ($(nat_files)): Use LTCXXCOMPILE.
1351 ($(c_files)): Use LTCOMPILE.
1352 (GCJCOMPILE): New macro.
1354 (.java.o): Likewise.
1355 ($(javao_files)): Likewise.
1356 (jv_convert_LINK): Use LIBTOOL.
1357 (nat_files): Use `.lo' files.
1358 (c_files): Likewise.
1359 (javao_files): Likewise.
1360 (.class.lo): Renamed.
1361 (.java.lo): Likewise.
1362 ($(nat_files)): Depend on %.lo.
1363 ($(c_files)): Likewise.
1364 ($(javao_files)): Likewise.
1365 (jv_convert_LDADD): Link against .lo files.
1366 (jv_convert_DEPENDENCIES): Depend on .lo files.
1367 (maintainer-check): Depend on libgcj.la, but examine .a file.
1368 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1369 (libgcj_la_LDFLAGS): New macro.
1371 1999-04-23 Warren Levy <warrenl@cygnus.com>
1373 * Makefile.am: Added URLDecoder and URLEncoder.
1374 * Makefile.in: Rebuilt.
1376 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1377 setSocketImplFactory to match spec.
1378 * java/net/Socket.java (getSoLinger): Changed return type to
1381 * java/net/URLDecoder.java: New file.
1382 * java/net/URLEncoder.java: New file.
1384 1999-04-21 Tom Tromey <tromey@cygnus.com>
1386 * java/lang/natString.cc (getBytes): Reverted earlier change and
1387 applied correct fix from Per Bothner.
1389 * java/lang/String.java: Don't throw
1390 UnsupportedEncodingException.
1392 * java/lang/natString.cc (getBytes): Correctly size result
1393 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1395 1999-04-20 Andrew Haley <aph@cygnus.com>
1397 * include/sparc-signal.h: new file.
1398 * configure.in: include/sparc-signal.h added.
1399 * configure: regenerated.
1400 * prims.cc (JvRunMain): signal handling code rewritten to be more
1402 (catch_segv): ditto.
1404 * include/i386-signal.h: reorganized.
1405 * include/default-signal.h: reorganized.
1407 1999-04-19 Tom Tromey <tromey@cygnus.com>
1409 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1410 once. From Anthony Green.
1412 1999-04-19 Andrew Haley <aph@cygnus.com>
1414 * Makefile.in: Processed with new automake.
1416 1999-04-19 Tom Tromey <tromey@cygnus.com>
1418 * include/javaprims.h: Removed security namespace.
1420 1999-04-20 Anthony Green <green@cygnus.com>
1422 * java/io/PrintStream.java (println): Remove extra println.
1424 1999-04-19 Anthony Green <green@cygnus.com>
1426 * Makefile.in: Rebuilt.
1427 * Makefile.am (ordinary_java_source_files): Add new security files.
1429 * java/security/NoSuchAlgorithmException.java,
1430 java/security/MessageDigest.java: New files.
1432 * include/javaprims.h: Add security namespace.
1434 1999-04-16 Per Bothner <bothner@cygnus.com>
1436 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1437 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1438 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1439 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1440 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1441 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1442 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1443 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1444 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1445 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1446 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1447 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1448 * Makefile.am: Various changes for new files and conversions.
1450 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1451 New overloading, allows greater efficiency.
1452 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1453 New overloading (for efficiency - avoids copying).
1455 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1456 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1458 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1459 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1460 (writeChars): Don't be quite so eager to flush.
1461 * java/io/PrintStream.java: Rewrite. Now more similar to
1462 OutputStreamWriter, using explicit UnicodeToBytes converter.
1463 Also, autoflush does not need to flush so often.
1464 * java/lang/natString.cc (getBytes): More efficient algorithm.
1465 (init(jbyteArray,jint,jint,jstring)): More efficient.
1467 1999-04-15 Warren Levy <warrenl@cygnus.com>
1469 * Makefile.am (ordinary_java_source_files): Added new Connection
1470 and Handler classes in gnu.gcj.protocol.file package.
1471 * Makefile.in: Rebuilt.
1473 * gnu/gcj/protocol/file/Connection.java: New file.
1474 * gnu/gcj/protocol/file/Handler.java: New file.
1475 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1476 if doInput allows input.
1477 (getOutputStream): Check if doOutput allows output.
1478 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1480 1999-04-14 Tom Tromey <tromey@cygnus.com>
1482 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1483 buffer larger to work around bug.
1484 From Bryce McKinlay <bryce@albatross.co.nz>.
1486 1999-04-14 Andrew Haley <aph@cygnus.com>
1488 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1489 NaNs are always converted to the same long value.
1490 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1493 1999-04-13 Tom Tromey <tromey@cygnus.com>
1495 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1496 instead switch on actual element type.
1498 * Makefile.in: Rebuilt.
1499 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1501 1999-04-13 Andrew Haley <aph@cygnus.com>
1503 * include/i386-signal.h, include/default-signal.h: New files.
1504 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1506 (catch_fpe): New function.
1507 * configure.in: Make link to appropriate include/java-signal.h.
1508 * configure: Rebuilt.
1509 * Makefile.am: include/java-signal.h added to dependency list.
1510 * Makefile.in: Rebuilt.
1512 1999-04-12 Urban Widmark <urban@svenskatest.se>
1514 * java/io/DataInputStream.java (readLine): Corrected handling of
1515 empty lines, from null to "".
1517 1999-04-12 Tom Tromey <tromey@cygnus.com>
1519 * Makefile.in: Rebuilt.
1520 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1522 * java/lang/natSystem.cc (SystemClass): New define.
1523 (init_properties): Synchronize.
1525 1999-04-08 Geoff Berry <gcb@gnu.org>
1527 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1528 * natPlainSocketImpl.cc (accept): Add missing else if check
1531 1999-04-08 Tom Tromey <tromey@cygnus.com>
1533 * java/lang/Long.java (parseLong): Corrected overflow detection
1535 * java/lang/Integer.java (parseInt): Corrected overflow detection
1538 * java/io/PrintStream.java (print): Handle null string argument.
1539 (println): Likewise.
1541 1999-04-07 Warren Levy <warrenl@cygnus.com>
1543 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1544 Set count to 0 when InputStreamReader returns -1 for EOF.
1546 1999-04-07 Tom Tromey <tromey@cygnus.com>
1548 * mauve-libgcj: Omit java.text.Collator,
1549 java.text.RuleBasedCollator.
1551 1999-04-06 Tom Tromey <tromey@cygnus.com>
1553 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1554 IOException from getHttpHeaders().
1555 (getHeaderFieldKey): Likewise.
1557 * include/javaprims.h: Regenerated declarations.
1559 * Makefile.in: Rebuilt.
1560 * Makefile.am (ordinary_java_source_files): Updated for removed
1563 1999-04-06 Per Bothner <bothner@cygnus.com>
1565 * java/util/zip/Adler32.java: New class.
1566 * java/util/zip/CRC32.java: Add working method bodies.
1567 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
1568 * Makefile.in: Re-generate.
1570 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
1572 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
1573 from version in removed www hierarchy.
1574 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
1575 version in removed www hierarchy.
1577 * gnu/gcj/www/protocol/http/Connection.java: Removed.
1578 * gnu/gcj/www/protocol/http/Handler.java: Removed.
1579 * gnu/gcj/www/protocol/http: Removed dir.
1580 * gnu/gcj/www/protocol: Removed dir.
1581 * gnu/gcj/www: Removed dir.
1583 * java/net/HttpURLConnection.java: Revised comments to indicate
1584 missing JDK 1.2 methods.
1586 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
1587 hierarchy rather than the gnu/gcj/www/protocol one.
1588 * java/net/URLConnection.java: Updated status comments.
1589 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
1590 the gnu/gcj/www/content one.
1592 1999-04-06 Per Bothner <bothner@cygnus.com>
1594 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
1595 The gen-from-JIS program is in $(CONVERT_DIR).
1597 1999-04-06 Tom Tromey <tromey@cygnus.com>
1599 * mauve-libgcj: Renamed from mauve-libjava.
1601 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
1603 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
1604 (getResponseMessage): Implemented.
1605 (getResponseVals): New private method.
1607 * java/net/URLConnection.java (getContent): Implemented.
1608 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
1610 1999-04-05 Tom Tromey <tromey@cygnus.com>
1612 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
1613 (jv_convert_SOURCES): Renamed.
1614 (EXTRA_jv_convert_SOURCES): Likewise.
1615 (jv_convert_LDFLAGS): Likewise.
1616 (jv_convert_LINK): Likewise.
1617 (jv_convert_LDADD): Likewise.
1618 (jv_convert_DEPENDENCIES): Likewise.
1620 * Makefile.in: Rebuilt.
1621 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
1624 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
1626 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
1627 method for comparison.
1629 * java/net/URLConnection.java (getContentLength): Implemented.
1630 (getContentType): Implemented.
1631 (getContentEncoding): Implemented.
1632 (getExpiration): Implemented.
1633 (getDate): Implemented.
1634 (getLastModified): Implemented.
1635 (getHeaderFieldInt): Implemented.
1636 (getHeaderFieldDate): Implemented.
1638 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
1640 * java/net/URLConnection.java (toString): Implemented.
1641 (setContentHandlerFactory): Implemented.
1642 (setContentHandler): Wrote new private helper method.
1644 1999-04-01 Tom Tromey <tromey@cygnus.com>
1646 * Makefile.in: Rebuilt.
1647 * Makefile.am ($(java_source_files:.java=.class): Reverted change
1648 of 1999-03-31; we always want to build all the .class files.
1649 Depend on java_source_files, not libgcj.zip.
1650 (nat_headers): Define in terms of ordinary_java_source_files.
1652 1999-03-31 Tom Tromey <tromey@cygnus.com>
1654 * Makefile.in: Rebuilt.
1655 * Makefile.am (special_java_source_files): New macro.
1656 (java_source_files): Use it.
1657 (ordinary_java_source_files): New macro.
1658 (java_source_files): Use it.
1659 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
1660 creating headers for those files with hand-maintained headers.
1662 * include/javaprims.h: Regenerated namespace declarations.
1663 * classes.pl (scan): Include [0-9] in regexp for matching class
1664 names; for java.util.zip.CRC32.
1666 * Makefile.in: Rebuilt.
1667 * Makefile.am (nat_headers): Redefined to generate all possible
1670 * java/util/zip/ZipException.java: In package java.util.zip, not
1673 1999-03-30 Tom Tromey <tromey@cygnus.com>
1675 * configure: Rebuilt.
1676 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
1677 eh-common.h when not building in tree with gcc.
1679 * Makefile.in: Rebuilt.
1680 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
1681 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
1683 ($(java_source_files:.java=.class)): New target.
1685 * Makefile.in: Rebuilt.
1686 * Makefile.am (java_source_files): Added
1687 java/net/HttpURLConnection.java and
1688 gnu/gcj/www/protocol/http/Connection.java.
1690 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
1692 * gnu/gcj/www/protocol/http/Connection.java: New file.
1693 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
1694 * java/net/HttpURLConnection.java: New file.
1695 * java/net/URLConnection.java (getHeaderField): Implemented default.
1696 (getHeaderFieldKey): Implemented default method.
1698 1999-03-30 Tom Tromey <tromey@cygnus.com>
1700 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
1702 * java/util/zip/Deflater.java: Added copyright header.
1703 * java/util/zip/CRC32.java: Added copyright header.
1705 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
1706 that it is automatically generated.
1707 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
1709 * gnu/gcj/convert/BytesToUnicode.java,
1710 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
1711 gnu/gcj/convert/Input_EUCJIS.java,
1712 gnu/gcj/convert/Input_UTF8.java,
1713 gnu/gcj/convert/JIS0208_to_Unicode.cc,
1714 gnu/gcj/convert/JIS0212_to_Unicode.cc,
1715 gnu/gcj/convert/Output_8859_1.java,
1716 gnu/gcj/convert/Output_JavaSrc.java,
1717 gnu/gcj/convert/Output_UTF8.java,
1718 gnu/gcj/convert/UnicodeToBytes.java,
1719 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
1721 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
1723 * Makefile.in, configure: Rebuilt.
1724 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
1725 not if test subdir exists.
1726 (--enable-gcj-classes): Removed; gcj always used to generate
1728 (JAVA, JAVAC): Removed.
1729 (--enable-single-compilation, --enable-source-compilation):
1732 (NATIVE): New conditional.
1733 * Makefile.am (toolexecdir): Renamed from tooldir to allow
1734 `install-exec' to work.
1735 (toolexeclibdir): Likewise.
1736 (toollib_LIBRARIES): Likewise.
1737 (AM_MAKEFLAGS): Don't pass tooldir.
1739 (javao_files): Redefined.
1740 (java_source_files): New macro.
1741 (c_source_files): New macro.
1742 (c_files): Redefined in terms of c_source_files.
1743 (java_io_files, java_lang_files, java_net_files, java_text_files,
1744 java_util_files, gnu_files, java_files): Removed.
1745 (class_io_files, class_lang_files, class_net_files,
1746 class_text_files, class_util_files, class_gnu_files, class_files):
1748 (nat_source_files): New macro.
1749 (nat_files): Redefined in terms of nat_source_files.
1750 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
1751 java_source_files. Removed no-such-file.c.
1753 (ETAGS_ARGS): Removed.
1754 (TAGS_DEPENDENCIES): Likewise.
1755 (libgcj.zip): Depend on java_source_files. Use $(here) and not
1757 (src_io_files, src_lang_files, src_text_files, src_util_files,
1758 src_gnu_files): Removed.
1759 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
1760 (BUILT_SOURCES): Removed.
1761 (header-check): New target.
1763 (noinst_PROGRAMS): New macro.
1764 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
1766 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
1767 (gen-from-JIS): Build in top directory.
1768 (convert_source_files): New macro.
1769 (convert_SOURCES): New macro.
1770 (convert_LDFLAGS): Likewise.
1771 (convert_LINK): Likewise.
1772 (convert_LDADD): Likewise.
1773 (convert_DEPENDENCIES): Likewise.
1775 (gen-from-JIS): Removed.
1776 (gen_from_JIS_SOURCES): New macro.
1777 (gen_from_JIS_LDADD): Likewise.
1778 (gen_from_JIS_DEPENDENCIES): Likewise.
1780 * configure: Rebuilt.
1781 * configure.in (CANADIAN): Set to `yes', not `canadian'.
1782 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
1783 when defining conditional.
1785 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
1787 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
1788 The Unicode Consortium does not permit their re-distribution.
1789 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
1790 (JIS0208.h, JIS0212.h): Do not depend on removed files.
1792 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
1794 * natSystem.c (init_properties): Use malloc, realloc, free after all.
1796 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
1798 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
1799 from Unicode Consortium.
1800 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
1801 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
1802 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
1803 New tables, generated using gen-from-JIS.
1804 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
1805 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
1806 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
1807 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
1809 * gnu/gcj/convert/Convert.java: New application.
1810 * Makefile.am, Makefile.in (convert): New program, using Convert.
1811 Build the various JIS conversion tables (in maintainer mode).
1813 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
1815 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
1817 * java/net/URL.java (URL): Deal with null property value. Use "."
1818 as separator in building class name.
1819 * java/net/URLConnection.java: Implemented majority of stubbed methods.
1820 * java/net/URLStreamHandler.java (parseURL): Use "" in string
1821 manipulations instead of 'null'. Comment cleanup. Use 0 for the
1822 beginning of the substring rather than 'start'.
1824 1999-03-26 Tom Tromey <tromey@cygnus.com>
1826 * include/java-chartables.h: Rebuilt.
1827 * include/java-chardecomp.h: New file.
1828 * chartables.pl: Generate output files directly. Added support
1829 for generating decomposition header.
1830 (canonical_decomposition, full_decomposition): New globals.
1831 (DECOMPOSITION): New constant.
1832 (process_char): Call add_decomposition.
1833 (add_decomposition): New sub.
1834 (write_decompositions): New sub.
1836 1999-03-25 Tom Tromey <tromey@cygnus.com>
1838 * java/text/CollationElementIterator.java: New file.
1840 * mauve-libjava: Omit StringTest.
1842 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
1844 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
1845 without a '/' when parsing protocol. Handle ref outside of parseURL.
1846 (hashCode): Implemented.
1847 (set): Don't expand -1 to default port.
1848 (getDefaultPort): Removed.
1850 * java/net/URLStreamHandler.java (parseURL): Implemented.
1851 (toExternalForm): Implemented.
1853 1999-03-23 Tom Tromey <tromey@cygnus.com>
1855 * java/text/BreakIterator.java (getSentenceInstance):
1857 * gnu/gcj/text/SentenceBreakIterator.java: New file.
1859 * Makefile.in: Rebuilt.
1860 * Makefile.am (nat_headers): Added IllegalAccessException.
1861 * java/lang/natClass.cc (newInstance): Throw
1862 IllegalAccessException, not IllegalAccessError.
1863 Include IllegalAccessException.h.
1865 1999-03-22 Tom Tromey <tromey@cygnus.com>
1867 * gnu/gcj/text/LineBreakIterator.java: New file.
1868 * java/text/BreakIterator.java (getLineInstance): Implemented.
1870 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
1871 copy constructor private.
1872 (previous, next): Removed erroneous comment about line
1874 (previous): Correctly recognize break between non-letter on the
1875 left and letter on the right. Handle apostrophes correctly.
1877 * java/text/BreakIterator.java (getWordInstance): Implemented.
1878 * gnu/gcj/text/WordBreakIterator.java: New file.
1879 * gnu/gcj/text/CharacterBreakIterator.java: Extend
1881 * gnu/gcj/text/BaseBreakIterator.java: New file.
1883 1999-03-19 Tom Tromey <tromey@cygnus.com>
1885 * java/text/BreakIterator.java: New file (partially stubbed out).
1886 * gnu/gcj/text/CharacterBreakIterator.java: New file.
1888 * include/config.h.in: Rebuilt.
1889 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
1890 (HAVE_TIMEZONE): Likewise.
1891 * configure: Rebuilt.
1892 * configure.in: Added timezone checks.
1893 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
1896 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
1898 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
1899 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
1900 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
1901 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
1902 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
1903 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
1904 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
1905 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
1907 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
1908 (BSD_COMP): Kludge needed for Solaris2.
1910 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
1912 * java/net/URL.java (URL(java.net.URL, string): Moved code to
1913 URL(java.net.URL, string, URLStreamHandler) and call it with a
1914 null handler. In latter constructor, added SecurityManager check.
1915 (set): Expect null handler on bad protocol rather than an exception.
1916 (setURLStreamHandler): Simplified exception handling; return null
1917 on invalid protocol.
1919 1999-03-18 Tom Tromey <tromey@cygnus.com>
1921 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
1923 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
1925 Include PrintStream.h, InputStream.h.
1926 * java/lang/System.java (ForwardingInputStream,
1927 ForwardingOutputStream): Removed.
1928 (setErr, setIn, setOut): Now native.
1930 Reverted patch from 1999-02-12 to work around problem in
1932 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
1933 (_Jv_eh_free): Use free.
1935 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
1936 for path name. Minor formatting fixes.
1938 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
1940 * prims.cc (fail_on_finalization): New function.
1941 (_Jv_GCWatch): Likewise.
1943 * prims.cc (JvRunMain): Initialize `nullp'.
1944 (nullp): New global.
1945 (catch_segv): Throw nullp.
1947 * Makefile.in: Rebuilt.
1948 * Makefile.am (ZIP): In "null target" case, zip is found in the
1951 * prims.cc (_Jv_PrimClass): Initialize all elements of class
1955 * java/lang/StringBuffer.java (StringBuffer): Don't use
1956 ensureCapacity to set initial capacity.
1957 (capacity): Subtract `length' from return result.
1959 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
1961 * java/io/natFileDescriptorPosix.cc (open): Throw
1962 FileNotFoundException, but with filename and errno in msg.
1964 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
1966 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
1967 functionality folded into java/net/URL.java per spec.
1969 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
1970 than EEXIST for throwing FileNotFoundException.
1972 * java/net/URL.java: Folded in default URLStreamHandlerFactory
1973 algorithm per JDK 1.2 doc. Added SecurityManager checks.
1975 * java/net/URLStreamHandler.java (parseURL): Added stub.
1977 1999-03-15 Andrew Haley <aph@cygnus.com>
1979 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
1982 1999-03-15 Andrew Haley <aph@cygnus.com>
1984 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
1987 1999-03-12 Tom Tromey <tromey@cygnus.com>
1989 * prims.cc (catch_segv): New function.
1990 Include <signal.h> if HANDLE_SEGV defined. Include
1991 NullPointerException.h.
1992 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
1995 * java/text/SimpleDateFormat.java (equals): Ensure that object is
1996 a SimpleDateFormat, not just a DateFormat.
1997 (defaultCenturyStart, formatData, pattern): Now private.
1998 (append): Now `final'. Use `NumberFormat.format'.
2000 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2002 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2005 * java/text/MessageFormat.java (format): Use default MessageFormat
2007 (parse, parseObject): Wrote.
2009 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2012 1999-03-12 Andrew Haley <aph@cygnus.com>
2014 * java/lang/String.java (indexOf): Replace with native method for
2016 * java/lang/natString.cc (IndexOf): As above.
2018 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2019 Argument check corrected.
2020 (init(jbyteArray,jint,jint,jstring)): Likewise.
2022 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2023 1.2 compliant method.
2025 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2027 * java/lang/Float.java (byteValue, shortValue): Likewise.
2029 1999-03-11 Tom Tromey <tromey@cygnus.com>
2031 * java/text/DecimalFormat.java (parse): Wrote.
2033 * java/text/ChoiceFormat.java (parse): Set error index on
2034 ParsePosition object.
2036 * java/lang/Integer.java (parseInt): Throw exception on overflow
2037 when intermediate result is most negative number. Changed
2038 overflow detection as well.
2039 * java/lang/Long.java (parseLong): Likewise.
2041 * configure, Makefile.in: Rebuilt.
2042 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2043 CANADIAN when building in source tree that doesn't include gcc.
2044 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2047 * java/text/ChoiceFormat.java (nextDouble): Correct some
2048 off-by-one errors when masking or adding.
2050 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2051 parameter, if given. Use `%', not IEEEremainder.
2052 (scanFix): Throw error if multiplier already set.
2053 (computePattern): Wrote.
2055 1999-03-11 Andrew Haley <aph@cygnus.com>
2057 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2059 (nextDouble): Corrected masking logic. Handle interaction between
2060 `next' and negative numbers.
2062 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2064 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2065 * java/net/URL.java: Added general comments.
2067 1999-03-10 Tom Tromey <tromey@cygnus.com>
2069 * java/text/ChoiceFormat.java (parse): Wrote.
2071 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2073 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2074 Create ChoiceFormat objects.
2075 (format): Special-case ChoiceFormat.
2076 (scanFormatElement): Include { and } in generated style string.
2078 1999-03-09 Tom Tromey <tromey@cygnus.com>
2080 * java/text/ChoiceFormat.java: New file.
2082 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2084 * java/net/BindException.java: Created.
2085 * java/net/ConnectException.java: Created.
2086 * java/net/ContentHandler.java: Created.
2087 * java/net/ContentHandlerFactory.java: Created.
2088 * java/net/FileNameMap.java: Created.
2089 * java/net/MalformedURLException.java: Created.
2090 * java/net/NoRouteToHostException.java: Created.
2091 * java/net/ProtocolException.java: Created.
2092 * java/net/ServerSocket.java (@author): Fixed typo.
2093 * java/net/Socket.java (@author): Fixed typo.
2094 * java/net/SocketImpl.java (@author): Fixed typo.
2095 * java/net/SocketImplFactory.java (@author): Fixed typo.
2096 * java/net/URL.java: Created - nearly complete.
2097 * java/net/URLConnection.java: Created - near-empty stub.
2098 * java/net/URLStreamHandler.java: Created - incomplete stub.
2099 * java/net/URLStreamHandlerFactory.java: Created.
2100 * java/net/UnknownServiceException.java: Created.
2102 1999-03-09 Tom Tromey <tromey@cygnus.com>
2104 * java/lang/System.java (ForwardingInputStream): New class.
2105 (ForwardingOutputStream): Likewise.
2106 (in, out, err): Now `final' forwarding streams.
2107 (setIn, setOut, setErr): Use appropriate method on forwarding
2110 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2113 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2115 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2116 * java/util/zip/Checksum.java: New interface (complete).
2117 * java/util/zip/Deflater.java: New class (near-empty stub).
2118 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2119 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2120 * java/util/zip/ZipEntry.java: New class (complete).
2121 * java/util/zip/ZipException.java: New class (complete).
2122 * java/util/zip/ZipFile.java: New class (incomplete stub).
2123 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2125 1999-03-09 Tom Tromey <tromey@cygnus.com>
2127 * java/text/MessageFormat.java (MessageFormatElement): Removed
2128 `public' specifiers.
2130 * java/text/DecimalFormat.java (scanFormat): Increment index
2131 before processing exponential format. Fixed a couple typos in
2133 (format): Correct normalization of exponent.
2135 1999-03-08 Tom Tromey <tromey@cygnus.com>
2137 * java/text/SimpleDateFormat.java (parse): Throw
2138 IllegalArgumentException, not ParseException.
2140 1999-03-05 Tom Tromey <tromey@cygnus.com>
2142 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2143 when constructing DateFormatSymbols. Initialize numberFormat
2144 field of superclass.
2146 * java/text/DateFormat.java (equals): Rewrote.
2147 (getAvailableLocales): New method.
2148 (getDateInstance): New methods.
2149 (getDateTimeInstance): Likewise.
2150 (getTimeInstance): Likewise.
2151 (getInstance): New method.
2152 (computeInstance): New method.
2154 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2156 (safeGetResource): New method.
2157 (DateFormatSymbols): Use Locale paramater.
2158 (equals): Now protected.
2159 Made instance variables private.
2161 1999-03-04 Tom Tromey <tromey@cygnus.com>
2163 * java/text/DecimalFormat.java: New file.
2165 * java/text/NumberFormat.java (groupingUsed,
2166 maximumFractionDigits, maximumIntegerDigits,
2167 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2169 (setDecimalSeparatorAlwaysShown, setMultiplier,
2170 setPositivePrefix): Removed.
2171 (setMinimumFractionDigits, setMaximumFractionDigits):
2173 (format): Now final.
2174 Added many new methods.
2176 * Makefile.in: Rebuilt.
2177 * Makefile.am (gnu_files): New macro.
2178 (java_files): Added gnu_files.
2179 (class_gnu_files): New macro.
2180 (class_files): Use it.
2181 (src_gnu_files): New macro.
2182 (gnu.o): New target.
2183 (javao_files): Added gnu.o.
2185 * gnu/gcj/text/LocaleData_en_US.java: New file.
2186 * gnu/gcj/text/LocaleData_en.java: New file.
2187 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2188 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2189 (safeGetString): New method.
2190 (safeGetChar): Likewise.
2192 1999-03-03 Tom Tromey <tromey@cygnus.com>
2194 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2197 * java/text/FieldPosition.java (equals): Don't check for null
2198 object; instanceof does this.
2200 * java/util/Locale.java (clone): New method.
2203 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2205 * doc/cni.sgml: New file.
2207 1999-03-03 Tom Tromey <tromey@cygnus.com>
2209 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2211 * java/text/DecimalFormatSymbols.java: New file.
2213 1999-03-02 Tom Tromey <tromey@cygnus.com>
2215 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2217 * configure: Rebuilt.
2218 * configure.in: Check for sys/filio.h.
2220 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2222 (load): Always throw UnsatisfiedLinkError.
2223 (loadLibrary): Likewise.
2225 1999-03-02 Anthony Green <green@cygnus.com>
2227 * LIBGCJ_LICENSE: New file.
2228 * LIBJAVA_LICENSE: Removed.
2229 * Many files: libjava now libgcj.
2231 1999-03-02 Tom Tromey <tromey@cygnus.com>
2233 * include/java-chartables.h: Rebuilt.
2234 * chartables.pl (print_block): Make table `const'.
2235 (print_numerics): Likewise.
2236 (print_single_map): Likewise.
2237 (print_all_block): Likewise.
2238 (print_case_table): Likewise.
2239 (print_fast_tables): Likewise.
2240 * java/lang/natCharacter.cc (table_search): `table' argument now
2243 1999-03-01 Tom Tromey <tromey@cygnus.com>
2245 * java/util/Date.java (before, after): Inverted logic.
2247 * java/util/Date.java (parse): Handle case where first character
2248 in string is open parenthesis.
2249 (skipParens): Rewrote.
2251 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2252 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2254 * java/util/Date.java (parse): Correctly compute beginning of
2257 * java/util/Hashtable.java (get): Throw NullPointerException if
2259 (containsKey): Likewise.
2261 * java/util/Properties.java (list): Truncate value to 37
2262 characters and add `...'.
2264 * java/lang/Byte.java (parseByte): Pass `radix' to
2267 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2269 Include System.h, PrintStream.h.
2271 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2274 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2276 * configure: Rebuilt.
2277 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2280 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2282 * java/lang/SecurityManager.java: Import java.net.*.
2283 (checkMulticast): New methods.
2285 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2287 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2288 (nat_files): Add java/lang/reflect/natArray.o.
2289 (nat_headers): Add Field.h and NoSuchFieldException.h.
2291 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2292 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2293 (_Jv_FromReflectedField): Fix buglet.
2294 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2295 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2296 * prims.cc (_Jv_Abort): Include message in print-out.
2298 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2299 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2300 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2302 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2303 * include/config.h.in (HAVE_PWD_H): New feature macro.
2304 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2305 user.name, user.home, user.dir.
2307 * java/lang/reflect/Array.java: New class.
2308 * java/lang/reflect/natArray.cc: New native methods.
2309 * include/javaprims.h: Declare java::lang::reflect::Array.
2311 * java/lang/Class.h (getField): New private method. Add friends.
2312 * java/lang/Class.java (getField): Add private overload.
2313 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2314 getDeclaredMethods): Add working implementations.
2315 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2316 Finish implementation, except for access control.
2318 * java/lang/reflect/Modifier.java (toString): New overload.
2319 * include/java-method.h: New file.
2320 * java/lang/reflect/Method.java (index): Replaced by offset field.
2321 Remove various private fields - get them from _Jv_Field instead.
2322 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2323 New method implementations.
2325 * java/text/NumberFormat.java: Add a bunch of methods.
2327 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2329 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2331 1999-02-26 Tom Tromey <tromey@cygnus.com>
2333 * include/config.h.in: Rebuilt.
2334 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2335 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2336 HAVE_GETHOSTBYADDR_R): New defines.
2337 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2338 gethostbyaddr_r if available.
2340 * configure: Rebuilt.
2341 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2343 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2347 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2348 * prims.cc (_Jv_AllocBytesChecked): New function.
2350 * Makefile.in: Rebuilt.
2351 * Makefile.am (SUBDIRS): Removed `test'.
2352 * configure: Rebuilt.
2353 * configure.in: Don't build test/Makefile.
2354 * test/*: Removed all files.
2356 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2358 * java/lang/reflect/Constructor.java: Make class final to match spec.
2359 * java/lang/reflect/Method.java: Ditto.
2361 1999-02-25 Tom Tromey <tromey@cygnus.com>
2363 * java/net/natInetAddress.cc: Include <sys/types.h> before
2365 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2368 * java/net/natInetAddress.cc: Declare gethostname if required.
2369 * include/config.h.in: Rebuilt.
2370 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2371 * configure: Rebuilt.
2372 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2373 declared in unistd.h.
2375 1999-02-24 Tom Tromey <tromey@cygnus.com>
2377 * Makefile.in: Rebuilt.
2378 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2379 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2380 from private to "none".
2382 * include/javaprims.h: Regenerated class declarations with new
2384 * classes.pl (scan): Only generate decls for java.lang, java.io,
2387 1999-02-24 Tom Tromey <tromey@cygnus.com>
2389 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2390 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2392 1999-02-23 Tom Tromey <tromey@cygnus.com>
2394 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2395 not already defined.
2396 * java/io/natFile.cc (_REENTRANT): Only define if not already
2398 * include/config.h.in: Rebuilt.
2399 * acconfig.h (HAVE_BOEHM_GC): New define.
2400 * configure: Rebuilt.
2401 * configure.in: Define HAVE_BOEHM_GC if using it.
2402 * posix-threads.cc: Include boehm-config.h and gc.h if
2404 * include/posix-threads.h: Added explanatory note about Boehm GC.
2406 * java/io/BufferedReader.java (readLine): Only return null when
2407 EOF seen before any characters read. (In particular, an empty
2408 line should not return null.)
2410 * java/io/BufferedInputStream.java (read): Only refill once per
2413 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2414 java.lang.Character.classify12, java.lang.String.hash,
2415 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2416 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2418 * java/text/StringCharacterIterator.java (setIndex): No error if
2420 (next): Check for `pos == end', not `end - 1'.
2421 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2422 for null text in each constructor.
2423 (clone): Fixed order of arguments to constructor.
2425 1999-02-22 Tom Tromey <tromey@cygnus.com>
2427 * include/config.h.in: Rebuilt.
2428 * acconfig.h (HAVE_INET6): New define.
2429 (HAVE_SOCKLEN_T): Likewise.
2430 * java/net/PlainSocketImpl.java: Added copyright header.
2431 * java/net/natPlainSocketImpl.cc: Added copyright header.
2432 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2434 (connect): Likewise.
2436 (socklen_t): New typedef.
2437 (accept): Use socklen_t.
2438 * java/net/natInetAddress.cc: Added copyright header.
2439 (HAVE_GETHOSTNAME): Don't define.
2440 (HAVE_INET_ADDR): Likewise.
2441 (lookup): Fixed typo.
2442 (aton): Don't use `address' as name of local variable.
2443 (lookup): Use HAVE_INET6, not AF_INET6.
2445 * configure: Rebuilt.
2446 * configure.in: Look for functions inet_aton, inet_addr,
2447 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2448 Check for socklen_t typedef.
2450 * exception.cc (__throw): Declare as __noreturn__.
2452 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2454 * Makefile.am, Makefile.in: Also build java/net.
2455 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2457 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2458 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2460 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2461 * include/cni.h (JvMalloc, JvFree): New inline functions.
2462 (JvThrow): Add __noreturn__ attribute.
2463 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2464 (_Jv_Throw): Add __noreturn__ attribute.
2466 * java/net/PlainSocketImpl.java: Init fnum to -1.
2467 * java/net/ServerSocket.java: Add missing throws clauses.
2468 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2469 don't call create on the latter. Instead, other constructors
2470 have to explicitly call SocketImpl.create.
2471 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2472 from size_t to int, to match ::accept prototype.
2473 * java/net/natInetAddress.cc: Use JvFree rather than free.
2476 1999-02-22 Tom Tromey <tromey@cygnus.com>
2478 * include/javaprims.h: Added new classes.
2479 * java/text/StringCharacterIterator.java: New file.
2480 * java/text/CharacterIterator.java: New file.
2482 * java/text/ParseException.java (errorOffset): Now private.
2484 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2486 * java/net: New package.
2487 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2488 Socket.java,SocketException.java,SocketImpl.java,
2489 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2490 natPlainSocketImpl.cc}: New classes.
2492 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2493 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2494 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2495 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2497 * classes.pl: Translate package into "namespace", not "class".
2498 * include/javaprims.h: Update class list, using "namespace".
2500 1999-02-21 Tom Tromey <tromey@cygnus.com>
2502 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2503 Define when appropriate.
2505 1999-02-20 Tom Tromey <tromey@cygnus.com>
2507 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2508 as a single byte and \u07ff as two bytes.
2509 (_Jv_GetStringUTFLength): Likewise.
2510 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2511 with 0x0f, not 0x1f.
2513 1999-02-19 Tom Tromey <tromey@cygnus.com>
2515 * java/io/DataOutputStream.java (writeUTF): When encoding
2516 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2517 * java/io/DataInputStream.java (readUTF): Mask second byte of
2518 3-byte character with 0x3f, not 0x1f.
2520 * java/io/DataInputStream.java (readLong): Cast result of
2521 readUnsignedByte to long before using.
2523 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2526 * mauve-libjava: Re-enabled java.io.DataInputOutput.
2527 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2528 argument to avoid warning.
2529 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2530 argument to avoid warning.
2532 1999-02-18 Tom Tromey <tromey@cygnus.com>
2534 * mauve-libjava: Omit java.io.DataInputOutput and
2535 java.io.Utf8Encoding.
2537 1999-02-17 Tom Tromey <tromey@cygnus.com>
2539 * Makefile.in: Rebuilt.
2540 * Makefile.am (nat_headers): Added InterruptedIOException.h.
2541 * java/io/natFileDescriptorPosix.cc: Include
2542 InterruptedIOException.h, Thread.h.
2543 (write): Throw InterruptedIOException when required.
2545 * posix-threads.cc: Include <signal.h>.
2546 (_Jv_ThreadInterrupt): New function.
2548 (handle_intr): New function.
2549 (_Jv_InitThreads): Register handle_intr via sigaction.
2550 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2551 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2552 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2553 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2555 1999-02-19 Andrew Haley <aph@cygnus.com>
2557 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2559 (ThreadGroup (int)): Set the maximum priority of the initial
2562 1999-02-18 Andrew Haley <aph@cygnus.com>
2564 * java/lang/natClass.cc (forName): Check for the case where a
2565 classname is the name of an array and call FindClassFromSignature
2568 1999-02-18 Andrew Haley <aph@cygnus.com>
2570 * java/lang/StringBuffer (insert (int, String)): Move up any
2571 characters above the insert position and increase the length of
2572 the string buffer by the length of the argument.
2573 (insert (int, char[])): Likewise.
2574 (insert (int, char)): Likewise.
2575 (StringBuffer (String)): The initial capacity of the string buffer
2576 is 16 plus the length of the argument.
2577 (getChars): Add a JDK 1.2 FIXME.
2579 1999-02-18 Andrew Haley <aph@cygnus.com>
2581 * java/lang/Short.java (parseShort(String, int)): Pass radix to
2584 1999-02-18 Andrew Haley <aph@cygnus.com>
2586 * java/lang/Double.java (equals): Use a bit-by-bit comparision
2587 instead of floating-point equality. This is necessary for
2588 correct floating-point Hashtables.
2589 * java/lang/Float.java (equals): Ditto.
2591 1999-02-16 Tom Tromey <tromey@cygnus.com>
2593 * java/util/Properties.java (list): Truncate value to 37
2594 characters and add "...".
2596 1999-02-16 Tom Tromey <tromey@cygnus.com>
2598 * java/util/Vector.java (Vector): Throw IllegalArgumentException
2599 if initCap is negative.
2600 (contains): Implement JDK1.2-style handling of null argument.
2601 (removeElement): Likewise.
2602 (indexOf): Likewise. Also, correctly handle case where idx is
2604 (lastIndexOf): Likewise.
2606 1999-02-16 Tom Tromey <tromey@cygnus.com>
2608 * java/lang/natString.cc (init): Increment source pointer in
2611 1999-02-16 Tom Tromey <tromey@cygnus.com>
2613 * exception.cc: Include NullPointerException.h.
2614 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
2616 1999-02-16 Tom Tromey <tromey@cygnus.com>
2618 * Makefile.in: Rebuilt.
2619 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
2621 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
2623 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
2624 we're compiling canadian.
2625 * configure: Regenerated.
2627 1999-02-12 Andrew Haley <aph@cygnus.com>
2629 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
2630 deleted from libgcj.
2632 1999-02-12 Tom Tromey <tromey@cygnus.com>
2634 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
2635 (_Jv_eh_free): Don't call free.
2636 Don't declare malloc or free.
2638 1999-02-11 Tom Tromey <tromey@cygnus.com>
2640 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
2642 1999-02-11 Andrew Haley <aph@cygnus.com>
2644 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
2645 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
2646 needed by java.lang.*.
2647 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
2648 wf_fmod.o: Removed from libjava.a.
2650 1999-02-11 Tom Tromey <tromey@cygnus.com>
2652 * include/javaprims.h: Reverted previous change; with it
2653 exception.cc can't compile.
2655 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
2657 * include/config.h.in: Rebuilt.
2658 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
2660 * configure: Rebuilt.
2661 * configure.in: Check for sched_yield. Look in thread library for
2662 all thread functions.
2664 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
2665 no recursive mutexes.
2666 (_Jv_MutexDestroy): Define when required.
2667 (_Jv_MutexLock): Likewise.
2668 (_Jv_MutexUnlock): Likewise.
2669 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
2670 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
2671 (_Jv_Mutex_t): New structure.
2672 (_Jv_MutexDestroy): Only define if recursive mutexes available.
2673 (_Jv_MutexLock): Likewise.
2674 (_Jv_MutexUnlock): Likewise.
2676 1999-02-10 Tom Tromey <tromey@cygnus.com>
2678 * aclocal.m4, configure, Makefile.in: Rebuilt.
2679 * acinclude.m4: Renamed libjava to libgcj. Updated to use
2681 * configure.in: Changed to track library changes.
2682 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
2683 (AM_CXXFLAGS): Likewise.
2684 (data_DATA): Likewise.
2685 (AM_CFLAGS): Likewise.
2686 (JC1FLAGS): Likewise.
2687 (libgcj_a_SOURCES): Likewise.
2688 (EXTRA_libgcj_a_SOURCES): Likewise.
2689 (libgcj_a_DEPENDENCIES): Likewise.
2690 (libgcj_a_LIBADD): Likewise.
2691 (libgcj.zip): Likewise.
2692 (CLEANFILES): Likewise.
2693 ($(nat_headers)): Likewise.
2694 (java/lang/FirstThread.h): Likewise.
2695 (java/lang/ThreadGroup.h): Likewise.
2696 (java/lang/String.h): Likewise.
2697 (java/lang/reflect/Field.h): Likewise.
2698 (BUILT_SOURCES): Likewise.
2699 (maintainer-check): Likewise.
2700 (CONFIG_STATUS_DEPENDENCIES): Likewise.
2701 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
2703 * java/util/natGregorianCalendar.cc (computeFields): Only use
2704 gmtime_r and localtime_r when configured for posix threads.
2706 * java/io/natFile.cc (get_entry): Only use readdir_r when
2707 configured for posix threads.
2709 * java/util/natGregorianCalendar.cc: Update copyright notice.
2710 * java/util/TimeZone.java: Ditto.
2711 * java/util/SimpleTimeZone.java: Ditto.
2713 1999-02-08 Tom Tromey <tromey@cygnus.com>
2715 * java/io/PrintStream.java (line_separator): New constant.
2716 (print): Use line_separator, not `file.separator' property.
2717 (println): Use line_separator.
2719 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
2720 when trying to instantiate Class.
2722 * java/lang/ThreadGroup.java (ThreadGroup): Throw
2723 NullPointerException if argument is null.
2725 * java/lang/Thread.java (setName): Throw NullPointerException, not
2726 IllegalArgumentException.
2729 1999-02-08 Andrew Haley <aph@cygnus.com>
2731 * java/lang/natClass.cc (newInstance): Don't allow anyone to
2732 create new Classes with Class.newInstance().
2734 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
2735 semiciolon to end of an array Class's signature if the elements of
2736 the array aren't themselves arrays.
2738 * java/lang/natSystem.cc (arraycopy): The size of an element of an
2739 array of objects is always sizeof(jobject), not the size of the
2740 object to which the reference points.
2742 1999-02-08 Tom Tromey <tromey@cygnus.com>
2744 * java/util/BitSet.java (and): Throw NullPointerException when
2749 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
2750 if argument is negative.
2751 (clear): Correctly compute `offset'. Throw
2752 IndexOutOfBoundsException when required.
2754 (get): Likewise. Also, return correct value.
2755 (ensure): Changed meaning of argument.
2756 (toString): Wrap contents in `{}'; put spaces after commas.
2757 (hashCode): Don't try to examine elements off the end of array.
2758 (or): Correctly include bits past the end of this bit set.
2761 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
2763 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
2764 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
2766 1999-02-04 Andrew Haley <aph@cygnus.com>
2768 * java/lang/natClass.cc (Class::forName): Remove code which mapped
2769 '/' in signatures to '.'
2770 (Class::getName): Likewise,
2771 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
2773 * java/lang/natFirstThread.cc (run): Change '/' in main's
2776 1999-02-03 Andrew Haley <aph@cygnus.com>
2778 * configure.host: -ffloat-store added when compiling libjava on
2779 x86. fdlibm apparently relies on this.
2781 * java/lang/ThreadGroup.java (add): throw an exception if the
2782 ThreadGroup has been destroyed.
2784 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
2787 1999-01-27 Tom Tromey <tromey@cygnus.com>
2789 * java/lang/StringBuffer.java (StringBuffer): Handle null
2792 1999-01-21 Tom Tromey <tromey@cygnus.com>
2794 * java/lang/natFirstThread.cc (run): Don't require main to be
2797 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
2799 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
2801 1999-01-20 Tom Tromey <tromey@cygnus.com>
2803 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
2807 (unintern): Likewise.
2808 (_Jv_NewStringUtf8Const): Likewise.
2810 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
2811 Character.isLetter, to see if character is self-quoting. Also,
2812 correctly handle quoted characters.
2813 (parse): Fixed typo. Also now throws ParseException.
2815 1999-01-15 Tom Tromey <tromey@cygnus.com>
2817 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
2819 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
2820 _Jv_SyncInfo has `init' member.
2822 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
2825 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
2826 IllegalMonitorStateException if unlock fails.
2828 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
2830 (_Jv_NewObjectArray): Likewise.
2832 1999-01-14 Tom Tromey <tromey@cygnus.com>
2834 * java/lang/Character.java (isJavaIdentifierPart): Allow
2835 LETTER_NUMBER characters.
2837 * chartables.pl (process_char): Fixed error messages.
2839 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
2840 * chartables.pl: Updated comments. Changed detection of non-digit
2841 numeric values (no longer miss \u00b2 and friends).
2843 * java/lang/Character.java (isJavaIdentifierPart): Recognize
2844 currency symbols and connector punctuation.
2845 (isIdentifierIgnorable): Make 7f-9f ignorable.
2847 * prims.cc (_Jv_NewObjectArray): Check for overflow.
2848 (_Jv_NewPrimArray): Likewise.
2849 (SIZE_T_MAX): New define.
2851 * java/lang/ClassLoader.java (system): Now private and final.
2853 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
2856 * configure: Rebuilt.
2857 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
2859 * exception.cc: Include gansidecl.h.
2861 1999-01-14 Andrew Haley <aph@cygnus.com>
2863 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
2864 corrected: they didn't treat -0.0 and NaNs correctly.
2866 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
2868 * nogc.cc: Use calloc to zero out memory.
2870 1999-01-11 Tom Tromey <tromey@cygnus.com>
2872 * java/lang/natClass.cc (isInstance): Return false if this class
2873 is primitive, not if class of `obj' is primitive.
2874 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
2876 * java/io/SequenceInputStream.java (close): Handle case where `in'
2879 * java/text/DateFormat.java (format): New method.
2881 * mauve-libjava: Omit java.text.DateFormat.
2883 1999-01-08 Tom Tromey <tromey@cygnus.com>
2885 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
2887 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
2889 (_Jv_CondNotifyAll): Likewise.
2891 * configure: Rebuilt.
2892 * configure.in: Change --enable-source-compilation logic to work
2895 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
2897 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
2898 and RUNTESTFLAGS from AM_MAKEFLAGS.
2899 * configure.in: AM_RUNTESTFLAGS added.
2900 * configure.host: AM_RUNTESTFLAGS added.
2901 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
2902 * configure: rebuilt.
2903 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
2905 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
2906 argv[] made conditional because embedded targets may not have
2908 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
2909 explanatory comments added in call to super.
2911 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
2912 exception thrown in the test harness itself added.
2913 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
2915 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
2917 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
2919 1999-01-06 Tom Tromey <tromey@cygnus.com>
2921 * java/io/natFile.cc (get_entry): New function.
2922 (performList): Use get_entry.
2923 * include/config.h.in: Rebuilt.
2924 * acconfig.h (HAVE_READDIR_R): New define.
2925 * configure: Rebuilt.
2926 * configure.in: Look for readdir_r.
2928 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
2930 * java/util/natDate.cc: Added copyright header.
2932 1999-01-05 Tom Tromey <tromey@cygnus.com>
2934 * include/config.h.in: Rebuilt.
2935 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
2936 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
2937 * configure: Rebuilt.
2938 * configure.in: Check for access, stat, mkdir, rename, rmdir,
2939 unlink, and realpath.
2940 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
2941 (stat): Conditionalize on HAVE_STAT.
2943 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
2944 (performMkdir): Conditionalize on HAVE_MKDIR.
2945 (performRenameTo): Conditionalize on HAVE_RENAME.
2946 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
2948 * include/config.h.in: Rebuilt.
2949 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
2950 * configure: Rebuilt.
2951 * configure.in: Check for gmtime_r and localtime_r. For cross
2952 builds, assume they exist.
2954 * mauve-libjava: Include java.text.DateFormatSymbols again.
2955 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
2956 from setAmPmStrings.
2958 * mauve-libjava: Omit java.text.DateFormatSymbols.
2960 1999-01-04 Tom Tromey <tromey@cygnus.com>
2962 * java/io/PushbackReader.java: `off' already includes `numBytes'.
2964 * java/io/LineNumberReader.java (read): Decrement `count' in
2967 * java/io/BufferedWriter.java (write): Correctly determine when
2968 incoming data would overrun buffer. Flush buffer if write causes
2971 * java/io/BufferedOutputStream.java (write): Increment `count'
2972 after copying data into buffer.
2974 * java/io/FilterOutputStream.java (close): Call flush first.
2976 * java/io/PipedReader.java (read): If read causes `out' to catch
2977 up with `in', then set `in' to -1.
2979 * java/io/LineNumberInputStream.java (read): If no bytes read,
2980 return -1. If no bytes requested, return 0.
2982 * java/lang/StringBuffer.java (insert): If `str' is null, use
2985 1998-12-30 Anthony Green <green@cygnus.com>
2988 * LIBJAVA_LICENSE, COPYING.LIB: Created.
2990 1998-12-23 Tom Tromey <tromey@cygnus.com>
2992 * java/io/PushbackInputStream.java (read): `off' already includes
2995 1998-12-17 Tom Tromey <tromey@cygnus.com>
2997 * Makefile.in: Rebuilt.
2998 * Makefile.am (GCJ_canadian): Include target_alias.
3000 * java/lang/natFirstThread.cc (run): Require main's class to be
3003 1998-12-16 Tom Tromey <tromey@cygnus.com>
3005 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3007 * java/util/ResourceBundle.java (getBundle): Throw
3008 NullPointerException if locale argument is null.
3010 * java/lang/natClass.cc (forName): Throw NullPointerException if
3012 Include NullPointerException.h.
3014 1998-12-14 Tom Tromey <tromey@cygnus.com>
3016 * java/lang/Character.java (Character): Implement Comparable.
3017 (compareTo): New methods.
3019 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3020 correct country and language codes.
3021 (UK, US): New constants.
3022 (setDefault): Language codes are lower-case.
3024 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3025 (getDeclaredConstructors): Likewise.
3026 (getDeclaredField): Likewise.
3027 (getDeclaredFields): Likewise.
3028 (getDeclaredMethod): Likewise.
3029 (getDeclaredMethods): Likewise.
3030 (getField): Likewise.
3031 (getFields): Likewise.
3032 (getMethod): Likewise.
3033 (getMethods): Likewise.
3034 * java/lang/Class.java: Declare new methods.
3035 * java/lang/Class.h: Declare new methods.
3037 * java/lang/natString.cc: Removed `#pragma implementation'.
3038 * include/cni.h (_Jv_GetStringChars): New function.
3039 * Makefile.in: Rebuilt.
3040 * Makefile.am (java/lang/String.h): Don't generate definition for
3043 * java/lang/natString.cc: Added `#pragma implementation'.
3045 * Makefile.in: Rebuilt.
3046 * Makefile.am (libjava.zip): Put build directory first in class
3047 path to avoid bug in compiler.
3049 1998-12-14 Anthony Green <green@cygnus.com>
3051 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3053 * include/javaprims.h: Add EventObject, ListResourceBundle and
3056 1998-12-13 Anthony Green <green@cygnus.com>
3058 * mauve-libjava: Run the ResourceBundle tests.
3060 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3063 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3065 * configure.in, configure: Make --enable-gcj-classes and
3066 --enable-source-compilation the default. (Nervously...) Yeah!
3067 Based on a patch from Tom Tromey.
3069 1998-12-13 Tom Tromey <tromey@cygnus.com>
3071 * java/util/EventObject.java: New file.
3072 * java/util/EventListener.java: New file.
3074 * include/javaprims.h: Updated class declarations.
3075 * Makefile.in: Rebuilt.
3076 * Makefile.am (nat_headers): Added Constructor.h.
3077 (java/lang/String.h): Don't inline String::length().
3078 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3079 * java/lang/Class.java (initializeClass, hackRunInitializers,
3080 hackTrampoline): No need to mark `final'.
3081 (getConstructor, getConstructors): Declare.
3082 * java/lang/reflect/Field.java (equals): New method.
3083 * java/lang/natClass.cc (getConstructor): New method.
3084 (getConstructors): Likewise.
3085 Include Method.h, Field.h, Constructor.h.
3086 * java/lang/reflect/Constructor.java: New file.
3087 * java/lang/reflect/Method.java (toString): No space before open
3089 (equals): Simplified.
3091 1998-12-13 Anthony Green <green@cygnus.com>
3093 * java/util/ResourceBundle.java: New file.
3094 * java/util/ListResourceBundle.java: New file.
3096 1998-12-12 Tom Tromey <tromey@cygnus.com>
3098 * java/lang/System.java (in, out, err): Now buffered streams by
3101 * include/javaprims.h: Updated class declarations.
3102 * Makefile.in: Rebuilt.
3103 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3104 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3106 (nat_files): Added natMethod.o.
3107 * java/lang/reflect/natMethod.cc: New file.
3108 * java/lang/reflect/Field.java (Field): Now extends
3110 * java/lang/reflect/AccessibleObject.java: New file.
3111 * java/lang/reflect/InvocationTargetException.java: New file.
3113 1998-12-11 Tom Tromey <tromey@cygnus.com>
3115 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3116 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3117 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3119 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3121 1998-12-09 Tom Tromey <tromey@cygnus.com>
3123 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3126 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3127 character is already titlecase.
3129 * java/lang/Character.java (isJavaLetter): Follow spec.
3130 (isJavaLetterOrDigit): Likewise.
3132 * java/util/GregorianCalendar.java (gregorianCutover): Append
3135 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3137 1998-12-08 Tom Tromey <tromey@cygnus.com>
3139 * java/lang/reflect/Modifier.java (toString): Replace second
3140 `static' with `synchronized'.
3142 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3143 * java/lang/Object.h (Object::hack12_6): Declare.
3144 * java/lang/Object.java (hack12_6): New function.
3146 1998-12-07 Tom Tromey <tromey@cygnus.com>
3148 * include/java-array.h (__JArray::clone): Removed decl.
3149 * prims.cc (__JArray::clone): Removed.
3150 * java/lang/natObject.cc (clone): Incorporate code to clone an
3153 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3154 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3155 Correctly use dtable_method_count.
3157 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3159 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3162 1998-12-06 Anthony Green <green@cygnus.com>
3164 * mauve-libjava: Don't test ResourceBundle.
3166 1998-12-04 Tom Tromey <tromey@cygnus.com>
3168 More JDK 1.2 spec fixes:
3169 * java/util/Date.java (millis): Now private.
3170 * java/text/DateFormat.java (DateFormat): Constructor now
3172 * java/lang/Void.java (Void): New private constructor.
3173 * java/lang/System.java (System): New private constructor.
3174 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3176 (currentClassLoader): New method.
3177 (currentLoadedClass): New method.
3178 * java/lang/Math.java (Math): New private constructor.
3179 * java/lang/Compiler.java (Compiler): New private constructor.
3180 * java/lang/Class.java (Class): New private constructor.
3181 * java/lang/Double.java (toString): Removed access specifier from
3182 two-argument `toString' method.
3184 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3186 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3187 causes it to be flushed from an fp register (where it may be
3188 longer than double precision) to a double in memory. This is
3189 essential to ensure correct rounding behaviour.
3191 1998-12-04 Tom Tromey <tromey@cygnus.com>
3193 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3196 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3197 explaining apparent divergence from JDK 1.2.
3199 1998-12-04 Per Bothner <bothner@cygnus.com>
3201 * include/no-threads.h: Remove unused parameter names.
3202 This silences a bunch of warnings.
3204 1998-12-04 Tom Tromey <tromey@cygnus.com>
3206 * include/config.h.in: Rebuilt.
3207 * acconfig.h (HAVE_CTIME_R): New symbol.
3209 1998-12-03 Tom Tromey <tromey@cygnus.com>
3211 * mauve-libjava: Added many more categories to reject.
3213 Changes to follow JDK1.2 spec:
3214 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3215 setErr, setIn, setOut): No need to be `final'.
3216 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3217 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3218 * java/lang/Object.java (wait): `nanos' argument is an int.
3219 * java/lang/VirtualMachineError.java: Class is abstract.
3220 * java/lang/ThreadDeath.java: Made constructors public.
3221 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3224 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3226 * java/text/DateFormatSymbols.java (getAmPmStrings,
3227 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3229 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3231 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3232 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3233 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3236 * java/lang/IllegalThreadStateException.java
3237 (IllegalThreadStateException): Changed extending class to match spec.
3239 * java/lang/NumberFormatException.java
3240 (java/lang/NumberFormatException): Changed extending class to match
3243 * java/util/Observer.java (Observer): Changed sig to match JCL.
3245 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3247 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3248 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3249 signature to match JDK 1.1 and 1.2.
3251 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3253 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3254 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3255 * Makefile.in, configure: Rebuilt.
3257 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3260 1998-12-02 Tom Tromey <tromey@cygnus.com>
3262 * mauve-libjava: New file.
3264 The remaining `-W -Wall' fixes:
3265 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3267 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3269 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3271 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3273 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3275 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3277 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3279 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3281 * java/lang/mprec.c (Balloc): Removed unused variable.
3282 (mult): Added parentheses per gcc suggestion.
3283 (pow5mult): Likewise.
3288 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3289 suggestion. Added cast to `int' to avoid signed/unsigned
3291 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3293 (IsAssignableFrom): Likewise.
3294 (_Jv_JNI_GetObjectField): Likewise.
3295 (_Jv_JNI_GetByteField): Likewise.
3296 (_Jv_JNI_GetShortField): Likewise.
3297 (_Jv_JNI_GetIntField): Likewise.
3298 (_Jv_JNI_GetLongField): Likewise.
3299 (_Jv_JNI_GetStringLength): Likewise.
3300 (_Jv_JNI_ToReflectedField): Likewise.
3301 (_Jv_JNI_FromReflectedField): Likewise.
3302 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3304 * Makefile.in: Rebuilt.
3305 * Makefile.am (AM_CFLAGS): Define conditionally.
3306 (WARNINGS): New macro.
3307 (AM_CXXFLAGS): Include WARNINGS.
3308 * configure: Rebuilt.
3309 * configure.in (USING_GCC): New conditional.
3311 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3313 * java/lang/Character.java: Changed classification constants to
3314 type `byte' to match JDK 1.2 docs.
3316 1998-12-01 Tom Tromey <tromey@cygnus.com>
3318 Some fixes to be `-W -Wall' clean:
3319 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3320 (_Jv_MarkArray): Likewise.
3321 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3322 (to_upper_title): Likewise.
3323 (isTitleCase): Likewise.
3324 (toTitleCase): Likewise.
3325 (getNumericValue): Likewise.
3326 (isLowerCase): Likewise.
3327 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3328 (avoids compiler warning).
3329 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3331 (getDeclaringClass): Likewise.
3332 (_Jv_LookupInterfaceMethod): Likewise.
3333 (_Jv_NewClass): Removed name of unused parameter.
3334 * exception.cc (_Jv_type_matcher): Removed unused variable.
3335 (_Jv_setup_eh_info): Removed name of unused parameter.
3336 * prims.cc (_Jv_NewArray): Always return a value.
3337 (_Jv_FindClassFromSignature): Likewise.
3338 * include/java-field.h (getNameUtf8Const): Removed name of unused
3340 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3342 (_Jv_ThreadSetPriority): Likewise.
3344 * java/lang/natString.cc (hashChars): Now static.
3346 * java/lang/FirstThread.java (FirstThread): Now final.
3348 * java/io/File.java (performMkdir, performRenameTo): Now private.
3350 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3351 if no time function defined.
3353 * configure: Rebuilt.
3354 * configure.in: Look for ctime_r, ctime.
3355 * java/util/Date.java (toString): Now native.
3356 * java/util/natDate.cc (toString): Rewrote.
3358 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3360 * Add LDFLAGS line to allow TX39 test cases to link when cross
3363 1998-11-23 Anthony Green <green@cygnus.com>
3365 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3366 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3367 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3368 include/java-array.h, include/java-assert.h, include/java-field.h,
3369 include/javaprims.h, include/jni.h, include/jvm.h,
3370 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3371 include/quick-threads.h, java/io/BufferedInputStream.java,
3372 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3373 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3374 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3375 java/io/CharArrayWriter.java,
3376 java/io/CharConversionException.java, java/io/DataInput.java,
3377 java/io/DataInputStream.java, java/io/DataOutput.java,
3378 java/io/DataOutputStream.java, java/io/EOFException.java,
3379 java/io/File.java, java/io/FileDescriptor.java,
3380 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3381 java/io/FileOutputStream.java, java/io/FileReader.java,
3382 java/io/FileWriter.java, java/io/FilenameFilter.java,
3383 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3384 java/io/FilterReader.java, java/io/FilterWriter.java,
3385 java/io/IOException.java, java/io/InputStream.java,
3386 java/io/InputStreamReader.java,
3387 java/io/InterruptedIOException.java,
3388 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3389 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3390 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3391 java/io/PipedReader.java, java/io/PipedWriter.java,
3392 java/io/PrintStream.java, java/io/PrintWriter.java,
3393 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3394 java/io/RandomAccessFile.java, java/io/Reader.java,
3395 java/io/SequenceInputStream.java, java/io/Serializable.java,
3396 java/io/StreamTokenizer.java,
3397 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3398 java/io/StringWriter.java, java/io/SyncFailedException.java,
3399 java/io/UTFDataFormatException.java,
3400 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3401 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3402 java/io/natFileDescriptorPosix.cc,
3403 java/lang/AbstractMethodError.java,
3404 java/lang/ArithmeticException.java,
3405 java/lang/ArrayIndexOutOfBoundsException.java,
3406 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3407 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3408 java/lang/Class.java, java/lang/ClassCastException.java,
3409 java/lang/ClassCircularityError.java,
3410 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3411 java/lang/ClassNotFoundException.java,
3412 java/lang/CloneNotSupportedException.java,
3413 java/lang/Cloneable.java, java/lang/Comparable.java,
3414 java/lang/Compiler.java, java/lang/Double.java,
3415 java/lang/Error.java, java/lang/Exception.java,
3416 java/lang/ExceptionInInitializerError.java,
3417 java/lang/FirstThread.java, java/lang/Float.java,
3418 java/lang/IllegalAccessError.java,
3419 java/lang/IllegalAccessException.java,
3420 java/lang/IllegalArgumentException.java,
3421 java/lang/IllegalMonitorStateException.java,
3422 java/lang/IllegalStateException.java,
3423 java/lang/IllegalThreadStateException.java,
3424 java/lang/IncompatibleClassChangeError.java,
3425 java/lang/IndexOutOfBoundsException.java,
3426 java/lang/InstantiationError.java,
3427 java/lang/InstantiationException.java, java/lang/Integer.java,
3428 java/lang/InternalError.java, java/lang/InterruptedException.java,
3429 java/lang/LinkageError.java, java/lang/Long.java,
3430 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3431 java/lang/NoClassDefFoundError.java,
3432 java/lang/NoSuchFieldError.java,
3433 java/lang/NoSuchFieldException.java,
3434 java/lang/NoSuchMethodError.java,
3435 java/lang/NoSuchMethodException.java,
3436 java/lang/NullPointerException.java, java/lang/Number.java,
3437 java/lang/NumberFormatException.java, java/lang/Object.h,
3438 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3439 java/lang/Process.java, java/lang/Runnable.java,
3440 java/lang/Runtime.java, java/lang/RuntimeException.java,
3441 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3442 java/lang/Short.java, java/lang/StackOverflowError.java,
3443 java/lang/String.java, java/lang/StringBuffer.java,
3444 java/lang/StringIndexOutOfBoundsException.java,
3445 java/lang/System.java, java/lang/Thread.java,
3446 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3447 java/lang/Throwable.java, java/lang/UnknownError.java,
3448 java/lang/UnsatisfiedLinkError.java,
3449 java/lang/UnsupportedOperationException.java,
3450 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3451 java/lang/Void.java, java/lang/natCharacter.cc,
3452 java/lang/natClass.cc, java/lang/natDouble.cc,
3453 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3454 java/lang/natMath.cc, java/lang/natObject.cc,
3455 java/lang/natRuntime.cc, java/lang/natString.cc,
3456 java/lang/natSystem.cc, java/lang/natThread.cc,
3457 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3458 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3459 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3460 java/text/FieldPosition.java, java/text/Format.java,
3461 java/text/NumberFormat.java, java/text/ParseException.java,
3462 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3463 java/util/BitSet.java, java/util/Calendar.java,
3464 java/util/ConcurrentModificationException.java,
3465 java/util/Date.java, java/util/Dictionary.java,
3466 java/util/EmptyStackException.java, java/util/Enumeration.java,
3467 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3468 java/util/Locale.java, java/util/MissingResourceException.java,
3469 java/util/NoSuchElementException.java, java/util/Observable.java,
3470 java/util/Observer.java, java/util/Properties.java,
3471 java/util/Random.java, java/util/SimpleTimeZone.java,
3472 java/util/Stack.java, java/util/StringTokenizer.java,
3473 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3474 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3477 * exception.cc: Include eh-common.h instead of duplicating
3480 1998-11-23 Tom Tromey <tromey@cygnus.com>
3482 * configure.host: Don't add `-O2' to libjava_flags. Only add
3483 `-Os' to libjava_flags once.
3485 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3487 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3488 * Makefile.in: likewise
3489 * acconfig.h: add ECOS conditional for configure.h
3490 * config.h.in: likewise
3491 * configure: add test for --with-ecos
3492 * configure.in: likewise
3493 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3494 rename call to avoid name clash.
3495 * java/lang/natSystem.cc: add eCos clock support.
3496 * java/util/natGregorianCalendar.cc: add eCos support.
3498 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3500 * Makefile.am, Makefile.in, configure.host: tx39 build option
3503 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3505 * java/io/BufferedReader.java: Added more comments for clarity.
3506 (mark): Used more mnemonic name for local var extraBuffSpace.
3508 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3509 confusion with private method of same name in superclass.
3510 (skipRedundantLF): Set fields in special case to avoid infinite
3511 recursion. Check if markPos has been invalidated in special case.
3512 (readLine): Rewritten to use readLine method of superclass.
3513 (skip): Incorporated code from lineEnd.
3515 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3517 * java/io/BufferedReader.java (readLine): New method.
3518 (lineEnd): new private method.
3519 (mark): Track special case for readLine of getting '\r' at the
3526 * java/io/InputStreamReader.java (read): Return number chars skipped
3527 rather than requested.
3529 * java/lang/StringBuffer.java (append): Update count and differentiate
3530 between field and local variable.
3532 * java/util/Date.java (parseTz): Evaluate in minutes rather than
3533 seconds. Deal with military style time.
3534 (parse): Consistently treat all timezones in minutes until final
3535 calculation. Flag as non-local timezone. Return value in milliseconds.
3536 (setTime): Adjust for year offset from 1900.
3537 (UTC): Adjust for year offset from 1900.
3539 1998-11-17 Tom Tromey <tromey@cygnus.com>
3541 * configure: Rebuilt.
3542 * configure.in: Switch on host, not target.
3544 * Makefile.in: Rebuilt.
3545 * Makefile.am (GCJ_no): New macro.
3546 (GCJ): Use @CANADIAN@.
3547 (GCJH_no): New macro
3548 (GCJH_canadian): New macro.
3549 (GCJH): Use @CANADIAN@.
3550 (ZIP_no): New macro.
3551 (ZIP_canadian): New macro.
3552 (ZIP): Use @CANADIAN@.
3553 * aclocal.m4, configure: Rebuilt.
3554 * configure.in (CANADIAN): Compute and subst.
3556 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
3558 * java/io/FileDescriptor.java (finalize): Only close file
3559 descriptor if valid.
3561 1998-11-17 Tom Tromey <tromey@cygnus.com>
3563 * prims.cc (_Jv_InitRuntime): Removed.
3565 1998-11-16 Tom Tromey <tromey@cygnus.com>
3567 * java/io/FileOutputStream.java (close): Only close file
3568 descriptor if valid.
3569 (finalize): New method.
3571 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
3572 (_Jv_NewPrimArray): Likewise.
3573 * boehm.cc (_Jv_RegisterFinalizer): Use
3574 GC_REGISTER_FINALIZER_NO_ORDER.
3575 (GC_GENERIC_MALLOC): New define.
3576 (_Jv_AllocObj): Use it.
3577 (_Jv_AllocArray): Likewise.
3578 (_Jv_AllocBytes): Likewise.
3579 (_Jv_MarkObj): Just return if vtbl not set.
3580 (_Jv_MarkArray): Likewise.
3581 (MAYBE_MARK): New macro; use everywhere.
3582 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
3584 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
3586 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
3587 to a jlong before calculation to prevent overflow.
3589 1998-11-16 Tom Tromey <tromey@cygnus.com>
3591 * Makefile.in: Rebuilt.
3592 * Makefile.am (nat_headers): Fixed typo.
3594 1998-11-15 Tom Tromey <tromey@cygnus.com>
3596 * java/lang/Class.h (Class::getName): Removed definition.
3597 * Makefile.in: Rebuilt.
3598 * Makefile.am (nat_headers): Added InstantiationException.h,
3599 NoSuchMethodException.h.
3600 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
3601 (init_name): New global.
3602 (hackRunInitializers): Use clinit_name.
3603 Include InstantiationException.h, NoSuchMethodException.h.
3604 (newInstance): Do some error checking (but not all). Call
3606 (forName): Throw exception if class not found.
3607 (getName): New method.
3608 (forName): Transform class name from external format to internal
3609 format before lookup.
3611 1998-11-15 Anthony Green <green@cygnus.com>
3613 * java/lang/Class.h (Class::forName): Method is static.
3615 * java/lang/natClass.cc (newInstance): Add simple implementation.
3618 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
3620 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
3621 int), for compatibility with jc1.
3623 1998-11-14 Tom Tromey <tromey@cygnus.com>
3625 * include/config.h.in: Rebuilt.
3626 * acconfig.h (LINUX_THREADS): New define.
3627 * configure: Rebuilt.
3628 * configure.in: Define LINUX_THREADS if using POSIX threads on
3629 Linux. Look for pthread_mutexattr_setkind_np function.
3630 * posix-threads.cc (throw_cleanup): New function.
3631 (really_start): Push cleanup function.
3632 (_Jv_ThreadCancel): New function.
3633 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
3634 (_Jv_ThreadInitData): Set `exception' field in new structure.
3635 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
3637 (_Jv_ThreadWait): New function.
3638 (_Jv_InitThreads): Initialize daemon globals.
3639 (FLAG_DAEMON): New macro.
3640 (really_start): Notify daemon_cond when non-daemon thread exits.
3641 Include <java/lang/System.h>.
3642 (struct starter): `object' field now a thread.
3643 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
3644 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
3645 (_Jv_ThreadWait): Removed definition.
3646 (_Jv_Thread_t): Added `exception' field.
3647 (_Jv_ThreadCancel): Removed definition.
3649 1998-11-13 Tom Tromey <tromey@cygnus.com>
3651 * Makefile.in: Rebuilt.
3652 * Makefile.am (libjava.zip): Compute javac before changing
3655 * Makefile.in: Rebuilt.
3656 * Makefile.am (libjava.zip): Include directory entries.
3658 * Makefile.in: Rebuilt.
3659 * Makefile.am (expanded): New macro.
3662 1998-11-12 Tom Tromey <tromey@cygnus.com>
3664 * prims.cc (clone): New function.
3665 * include/java-array.h (__JArray::clone): Removed definition.
3667 * java/lang/natObject.cc (clone): Don't assert that class is not
3668 an array; array's `clone' method just calls this one.
3670 * Makefile.in: Rebuilt.
3671 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
3672 Now creates zip file. Changed all users.
3674 (data_DATA): New macro.
3676 1998-11-11 Tom Tromey <tromey@cygnus.com>
3678 * configure: Rebuilt.
3679 * configure.in: Recognize --enable-java-gc, not --enable-gc.
3681 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
3683 * java/io/InputStream.java (reset): Add msg to thrown exception.
3685 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
3687 * java/io/LineNumberInputStream.java: Rewritten.
3689 * java/io/StringBufferInputStream.java: Removed extraneous import.
3691 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
3693 * java/io/StringBufferInputStream.java: Rewritten.
3695 * java/util/Date.java (parseMonth): Optimize.
3696 (parseDayOfWeek): Created.
3697 (parse): Optimize to use parseDayOfWeek.
3699 1998-11-11 Tom Tromey <tromey@cygnus.com>
3701 * java/lang/StringBuffer.java (append): Handle case where STR is
3704 * include/javaprims.h: Regenerated class declarations.
3706 * configure: Rebuilt.
3707 * configure.in: Added --enable-gcj-classes,
3708 --enable-single-compilation, --enable-source-compilation flags.
3709 * Makefile.in: Rebuilt.
3710 * Makefile.am (java_io_files): New macro.
3711 (java_lang_files): Likewise.
3712 (java_text_files): Likewise.
3713 (java_util_files): Likewise.
3714 (java_files): Use new macros.
3715 (java-io.o): New target.
3716 (java-lang.o): Likewise.
3717 (java-text.o): Likewise.
3718 (java-util.o): Likewise.
3719 (src_io_files): New macro.
3720 (src_lang_files): Likewise.
3721 (src_text_files): Likewise.
3722 (src_util_files): Likewise.
3723 (class_io_files): New macro.
3724 (class_lang_files): Likewise.
3725 (class_text_files): Likewise.
3726 (class_util_files): Likewise.
3727 (class_files): Use new macros.
3728 (javao_files): Define conditionally.
3729 (.java.o): New target.
3730 ($(javao_files)): New target.
3732 (GCJH): Added $(EXEEXT).
3733 (CLASSPATH_ENV): Removed.
3734 (GCJCOMPILE): New macro.
3736 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
3738 * java/util/Date.java (parse): Written from scratch.
3740 1998-11-11 Tom Tromey <tromey@cygnus.com>
3742 * java/lang/Throwable.java (toString): Correct sense of test for
3743 determining when to include detail message in result.
3745 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
3748 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
3750 * java/lang/Class.h: Use _Jv_RegisterClasses, not
3752 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
3753 (_Jv_RegisterClass): Use it.
3754 * include/jvm.h (_Jv_RegisterClasses): Declare.
3755 * java/lang/natObject.cc (init): Removed.
3756 (sync_init): Never call _Jv_InitializeSyncMutex.
3757 (_Jv_InitializeSyncMutex): Don't set `init'.
3758 * prims.cc (JvRunMain): Don't run init functions.
3760 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
3762 * java/lang/natClass.cc (initializeClass): Set state before
3763 resolving constants.
3765 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
3766 (STATE_RESOLVED): New macro.
3767 (initializeClass): Call resolveConstants.
3768 (hackRunInitializers): Don't call resolveConstants.
3769 (_Jv_FindArrayClass): Move short-circuit return for primitive
3770 element types earlier in function.
3772 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
3774 * prims.cc (no_memory): New global.
3775 (_Jv_makeUtf8Const): Throw no_memory.
3776 (_Jv_AllocObject): Likewise.
3777 (_Jv_NewObjectArray): Likewise.
3778 (_Jv_NewPrimArray): Likewise.
3779 (JvRunMain): Initialize no_memory.
3781 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
3783 * java/io/FileInputStream.java: Corrected date comment.
3784 * java/io/SequenceInputStream.java: Rewritten.
3786 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
3788 * java/lang/FirstThread.java (die): New method.
3789 * java/lang/natFirstThread.cc (die): Removed.
3791 (run): Use `DIE', not `die'.
3793 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
3795 * java/io/CharArrayReader.java (read): Move check into synchronized
3796 block to prevent a close while in progress.
3799 * java/io/PushbackReader.java (read): Ditto.
3802 * java/io/StringReader.java (mark): Ditto.
3807 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
3809 * java/io/PipedInputStream.java: Updated status.
3810 (connect): Added code to prevent infinite recursion and to
3811 differentiate exception causes.
3812 (read): Added code to differentiate exception causes.
3813 (receive): Made exception pass string with the cause.
3815 * java/io/PipedOutputStream.java: Updated status.
3816 (connect): Added code to call connect at the other end of the pipe.
3818 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
3820 * java/io/PipedInputStream.java (connect): Throw exception if
3821 already connected to the same output stream.
3822 (read): Do bounds checking first.
3824 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
3826 * java/io/PipedInputStream.java: Added private boolean outClosed.
3827 (available): Removed check if output stream is open.
3828 (close): Mark the buffer as empty so available returns 0.
3829 (read): Check if the output stream was closed and then return EOF
3830 when the buffer is empty.
3831 (receive): Mark the output stream as closed when passed a -1.
3833 * java/io/PipedOutputStream.java (close): Notify the input stream
3834 that there's no more data coming.
3835 (connect): Added a FIXME comment to note more coordination needed
3836 with PipedInputStream.
3837 (flush): Added a FIXME comment to mark what this method might do
3840 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
3842 * java/io/PipedInputStream.java: Rewritten.
3844 1998-10-30 Tom Tromey <tromey@cygnus.com>
3846 * java/lang/Throwable.java: Rewrote from scratch.
3848 * java/lang/Class.h (Class): Don't mention newMultiArray.
3849 * prims.cc (newMultiArray): Removed.
3850 (_Jv_NewMultiArray): Removed.
3851 (newArray): Removed.
3852 (new_multi_array): New function.
3853 (_Jv_NewMultiArray): Rewrote from scratch.
3855 * include/javaprims.h: Regenerated class declarations.
3856 * classes.pl (scan): Don't declare PrimClass.
3857 * include/cni.h (JvPrimClass): Use new names for classes.
3858 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
3859 added _Jv_PrimClass.
3860 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
3861 (_Jv_initPrimClass): Removed.
3862 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
3863 (_Jv_AllocObject): Added comment.
3864 (_Jv_NewObjectArray): Likewise.
3865 (_Jv_NewPrimArray): Likewise.
3867 1998-10-29 Tom Tromey <tromey@cygnus.com>
3869 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
3870 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
3872 * java/lang/Class.h (Class): Added `dtable_method_count' field.
3874 * java/lang/natObject.cc (init): New global.
3875 (sync_init): Call _Jv_InitializeSyncMutex if required.
3877 * Makefile.in: Rebuilt.
3878 * Makefile.am (nat_headers): Added ClassLoader.h.
3879 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
3880 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
3881 internalAddClass, lookupArray no longer friends.
3882 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
3883 _Jv_FindArrayClass now friends.
3884 * java/lang/natClass.cc (HASH_LEN): New macro.
3885 (HASH_UTF): Likewise.
3886 (loaded_classes): New global.
3887 (_Jv_FindClass): New function.
3888 (ClassClass): New define.
3889 (_Jv_FindClassInCache): New function.
3890 (_Jv_RegisterClass): Likewise.
3891 (_Jv_NewClass): Likewise.
3893 (ObjectClass): New define.
3894 (CloneableClass): New define.
3895 * prims.cc (_Jv_FindClass): Removed.
3896 (simpleLookupClass): Removed.
3897 (insertClass): Removed.
3898 (CLASSHASHSZ): Removed.
3899 (classPool): Removed.
3900 (_Jv_RegisterClass): Removed.
3901 (internalAddClass): Removed.
3902 (ClassClass): Removed.
3903 (RuntimeClass): Removed.
3904 (lookupArray): Removed.
3905 (CloneableClass): Removed.
3906 (CLASSMAXSIG): Removed.
3907 Rearranged file to group related functions together.
3908 (_Jv_IsInstanceOf): Moved to natClass.cc.
3909 (abort_final): Removed.
3910 Removed some unused includes.
3911 (classFromSig): Removed.
3912 (_Jv_FindClassFromSignature): New function.
3913 (_Jv_initPrimClass): Renamed.
3914 (getClass): Removed.
3916 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
3918 * java/io/FileDescriptor.java (finalize): Throws IOException
3919 instead of Throwable.
3921 * java/io/FileInputStream.java: Rewritten.
3923 * java/io/StreamTokenizer.java (nextToken): Unread newline character
3924 at the end of a comment.
3926 1998-10-29 Tom Tromey <tromey@cygnus.com>
3928 * include/javaprims.h: Regenerated class declarations.
3929 * classes.pl (scan): Don't special-case ClassLoader.
3931 * prims.cc (processClass): Removed.
3932 (_Jv_InitClass): Removed.
3933 Removed all CSTATE_ macros.
3934 (resolveConstants): Removed.
3936 (_Jv_NewMultiArray): Cleaned up.
3937 * Makefile.in: Rebuilt.
3938 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
3939 * java/lang/Class.h (Class): Declare new methods. processClass no
3941 * java/lang/Class.java (hackTrampoline): New method.
3942 (initializeClass): Declare.
3943 (hackRunInitializers): Declare.
3944 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
3945 (initializeClass): New method.
3946 (hackRunInitializers): New method.
3947 (init_name, void_signature): Moved from prims.cc.
3948 (_Jv_InitClass): New function.
3949 (isAssignableFrom): Don't call processClass.
3950 (STATE_NOTHING): New macro.
3951 (resolveConstants): New function.
3953 (ErrorClass): New define.
3955 * java/lang/Class.java (getClassLoader): Declare.
3956 * java/lang/ClassLoader.java: Rewrote from scratch.
3958 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
3959 AbstractMethodError.h, IllegalAccessError.h,
3960 NoClassDefFoundError.h.
3961 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
3962 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
3963 longer static. Changed return type.
3964 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
3965 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
3966 * prims.cc (findMethodLocal): Removed.
3967 (processClass): Use _Jv_GetMethodLocal.
3969 1998-10-28 Tom Tromey <tromey@cygnus.com>
3971 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
3972 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
3974 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
3975 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
3977 * include/jni.h: Added copyright header.
3978 * include/javaprims.h: Added copyright header.
3979 * include/java-field.h: Added copyright header.
3980 * include/java-array.h: Added copyright header.
3981 * include/cni.h: Added copyright header.
3983 * include/javaprims.h: Regenerated class declarations using
3984 classes.pl; now they are complete.
3985 * classes.pl: New file.
3987 * java/lang/natMath.cc: Include <config.h>.
3988 * java/lang/reflect/natField.cc: Include <config.h>.
3989 * java/util/NativeUtil.java: Removed.
3990 * Makefile.in: Rebuilt.
3991 * Makefile.am (nat_headers): Added Math.h.
3992 * java/lang/Math.h: Removed.
3993 * java/util/natGregorianCalendar.cc: Added copyright header.
3995 * java/lang/natFloat.cc: Added copyright header.
3996 * java/lang/Byte.java: Added copyright header.
3997 * java/lang/Void.java: Added copyright header.
3998 * java/lang/Short.java: Added copyright header.
4000 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4002 * include/javaprims.h (java::io): Added bunch of missing classes.
4004 * java/io/DataInputStream.java (readLine): Added a special case
4005 for handling BufferedInputStream data to reduce the likelihood
4006 of a pushback error.
4007 (skipBytes): Added code to handle negative number of skip bytes.
4009 * java/io/StreamTokenizer.java: Rewritten.
4011 1998-10-28 Tom Tromey <tromey@cygnus.com>
4013 * java/util/natGregorianCalendar.cc (computeFields): Call
4014 getRawOffset as a method.
4016 * include/javaprims.h (java::io): Added FilterOutputStream.
4017 * Makefile.in: Rebuilt.
4018 * Makefile.am (nat_headers): Added PrintStream.h,
4019 FilterOutputStream.h.
4020 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4022 (die): New function.
4023 (run): Die if `main' not found, is not public, or is not static.
4025 * boehm.cc (_Jv_MarkObj): Use new field names.
4026 * include/java-field.h (JvGetFirstInstanceField): Use new field
4028 (JvNumInstanceFields): Likewise.
4029 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4030 (getInterfaces): Likewise.
4031 * prims.cc (CLASS_CONSTANTS): Removed.
4032 (CLASS_CONST_SIZE): Likewise.
4033 (CLASS_CONST_TAG): Likewise.
4034 (CLASS_CONST_DATA): Likewise.
4035 (CLASS_CONST_UTF8): Likewise.
4036 (WORD2UTF): Likewise.
4037 (CLASS_CLASS): Likewise.
4038 (CLASS_PRIM_SIG): Likewise.
4039 (CLASS_ARRAY_CACHE): Likewise.
4040 (HASH_CHARS): Likewise.
4041 (hashClassName): Likewise.
4042 Many changes to use new field names.
4043 * java/lang/Class.h (Class): Renamed fields to track compiler.
4045 1998-10-27 Tom Tromey <tromey@cygnus.com>
4047 * java/lang/natClass.cc: Use #pragma implementation.
4048 (getComponentType): Moved into header.
4049 (getModifiers): Likewise.
4050 (getName): Likewise.
4051 (getSuperclass): Likewise.
4052 (isArray): Likewise.
4053 (isPrimitive): Likewise.
4054 * include/jvm.h (_Jv_FindClass): Declare.
4055 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4056 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4057 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4058 * java/lang/Class.h: Rewrote from scratch.
4059 * prims.cc: Many changes to work with new Class.h.
4060 * include/java-field.h (CLASS_FIELDS): Removed.
4061 (CLASS_SFIELDS): Likewise.
4062 (CLASS_IFIELDS): Likewise.
4063 (CLASS_NFIELDS): Likewise.
4064 (CLASS_NIFIELDS): Likewise.
4065 (CLASS_NSFIELDS): Likewise.
4066 (CLASS_FSIZE): Likewise.
4067 (JvGetFirstInstanceField): Rewrote.
4068 (JvNumInstanceFields): Likewise.
4070 * java/lang/Object.h: Added copyright comment.
4072 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4074 * java/text: New package directory.
4075 * java/text/FieldPosition.java: New class.
4076 * java/text/ParsePosition.java: New class.
4077 * java/text/ParseException.java: New Exception class.
4078 * java/text/Format.java: New class.
4079 * java/text/NumberFormat.java: New (empty placeholder) class.
4080 * java/text/DateFormatSymbols.java: New class (no Locales support).
4081 * java/text/DateFormat.java: New Format class (incomplete).
4082 * java/text/SimpleDateFormat.java: New DateFormat class.
4084 * include/javaprims.h (java::test): Added new package and classes.
4085 * java/util/Calendar.java (clone): New method.
4086 * java/util/Date.java (toString): Added non-native implementation.
4087 (parse): Made public instead of synchronized.
4088 * java/util/natDate.cc (toString): Removed.
4089 * java/util/natGregorianCalendar.cc (computeFields):
4090 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4092 1998-10-27 Tom Tromey <tromey@cygnus.com>
4094 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4096 * prims.cc (lookupArray): Added explanatory comment.
4097 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4098 class. Mark the class of each object.
4099 (_Jv_MarkArray): Mark the object's class.
4101 * configure: Rebuilt.
4102 * configure.in: Create java-gc.h.
4103 * include/boehm-gc.h: New file.
4104 * include/no-gc.h: New file.
4105 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4107 * java/lang/Object.h: Include java-gc.h.
4108 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4109 friends, if defined.
4110 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4112 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4114 1998-10-26 Tom Tromey <tromey@cygnus.com>
4116 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4117 paragraph separators, not numbers.
4119 * java/io/Writer.java (write): Removed write(char) to avoid
4121 * java/util/Properties.java: Rewrote from scratch.
4122 * include/javaprims.h (java::io): Added PrintWriter,
4123 BufferedWriter, PushbackReader.
4125 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4127 * java/lang/System.java: exit() is a static method.
4129 1998-10-26 Tom Tromey <tromey@cygnus.com>
4131 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4133 (_Jv_NewStringUtf8Const): Likewise.
4134 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4135 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4137 * java/lang/Object.h (Object): Add mark_array as friend function.
4138 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4139 _Jv_AllocBytes, to ensure that header is marked.
4140 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4142 (mark_array): Push sync_info field for array.
4144 1998-10-24 Tom Tromey <tromey@cygnus.com>
4146 * java/lang/String.java (String): Updated for StringBuffer
4148 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4150 * java/lang/StringBuffer.java: Renamed fields to conform to
4151 serialization spec: buffer->value, next->count, copy->shared.
4153 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4155 * java/util/TimeZone.java: New class.
4156 * java/util/SimpleTimeZone.java: New class.
4157 * java/util/Locale.java: New file.
4158 * java/util/Calendar.java: Make almost complete.
4159 * java/util/GregorianCalendar.java
4160 * java/util/natGregorianCalendar.cc: New file.
4161 * java/util/Date.java: Re-written from scratch.
4162 * java/util/natDate.cc (setTime): Removed - no longer native.
4163 * include/javaprims.h (java::util): Add new classes.
4164 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4165 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4167 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4169 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4170 returning it as a jint.
4172 1998-10-23 Tom Tromey <tromey@cygnus.com>
4174 * prims.cc (arg_vec, main_group, main_thread): New globals.
4175 (JvRunMain): Use them.
4177 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4179 * java/io/DataInputStream.java: Rewritten.
4181 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4182 tertiary bytes with 0x80 per spec.
4184 1998-10-23 Tom Tromey <tromey@cygnus.com>
4186 * java/lang/String.java (init): Changed name of `copy' argument.
4187 * java/lang/natString.cc (init): Inverted sense of `copy'
4190 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4191 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4192 * boehm.cc (ObjectClass): New define.
4193 (ClassClass): Likewise.
4194 (mark_obj): Special-case Object and Class.
4196 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4198 * java/util/BitSet.java: Rewrote from scratch.
4200 * prims.cc (lookupArray): Removed useless cast.
4202 * java/lang/natObject.cc: Use `#pragma implementation'.
4204 * java/lang/String.java (init): Added `copy' argument.
4205 (String): Look in StringBuffer to find char array.
4206 * java/lang/natString.cc (init): Added `copy' argument.
4207 * java/lang/StringBuffer.java: Rewrote from scratch.
4209 * java/lang/Compiler.java: Rewrote from scratch.
4210 * java/lang/Throwable.java: Don't use NativeLang.
4211 * include/javaprims.h (java::lang): Don't mention NativeLang.
4212 * java/lang/Process.java: Rewrote from scratch.
4213 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4215 (currentClassLoader): Likewise.
4216 (currentLoadedClass): Likewise.
4217 * java/lang/natClass.cc (getClassLoader): Commented out.
4218 * java/lang/Class.java (getClassLoader): Commented out.
4219 * java/lang/Compiler.java: Removed.
4220 * java/lang/NativeLang.java: Removed.
4222 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4223 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4224 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4225 (_Jv_hashUtf8String): Now static.
4226 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4227 name of return type.
4229 * java/lang/Class.h (Class): Declare checkMemberAccess.
4230 * Makefile.in: Rebuilt.
4231 * Makefile.am (nat_headers): Added Member.h.
4232 * java/lang/natClass.cc: Include Member.h.
4233 (getDeclaredClasses): Call checkMemberAccess.
4234 * java/lang/Class.java (checkMemberAccess): Call
4235 SecurityManager.checkMemberAccess.
4237 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4239 * java/lang/SecurityManager.java: Rewritten.
4241 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4243 * java/applet/Applet.java, java/applet/AppletContext.java,
4244 java/applet/AppletStub.java, java/applet/AudioClip.java,
4245 java/awt/AWTError.java, java/awt/AWTException.java,
4246 java/awt/BorderLayout.java, java/awt/Button.java,
4247 java/awt/Canvas.java, java/awt/CardLayout.java,
4248 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4249 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4250 java/awt/Color.java, java/awt/Component.java,
4251 java/awt/Container.java, java/awt/Dialog.java,
4252 java/awt/Dimension.java, java/awt/Event.java,
4253 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4254 java/awt/Font.java, java/awt/FontMetrics.java,
4255 java/awt/Frame.java, java/awt/Graphics.java,
4256 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4257 java/awt/GridLayout.java, java/awt/Image.java,
4258 java/awt/Insets.java, java/awt/Label.java,
4259 java/awt/LayoutManager.java, java/awt/List.java,
4260 java/awt/MediaTracker.java, java/awt/Menu.java,
4261 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4262 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4263 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4264 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4265 java/awt/TextArea.java, java/awt/TextComponent.java,
4266 java/awt/TextField.java, java/awt/Toolkit.java,
4267 java/awt/Window.java, java/awt/image/ColorModel.java,
4268 java/awt/image/CropImageFilter.java,
4269 java/awt/image/DirectColorModel.java,
4270 java/awt/image/FilteredImageSource.java,
4271 java/awt/image/ImageConsumer.java,
4272 java/awt/image/ImageFilter.java,
4273 java/awt/image/ImageObserver.java,
4274 java/awt/image/ImageProducer.java,
4275 java/awt/image/IndexColorModel.java,
4276 java/awt/image/MemoryImageSource.java,
4277 java/awt/image/PixelGrabber.java,
4278 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4279 java/awt/peer/CanvasPeer.java,
4280 java/awt/peer/CheckboxMenuItemPeer.java,
4281 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4282 java/awt/peer/ComponentPeer.java,
4283 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4284 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4285 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4286 java/awt/peer/MenuBarPeer.java,
4287 java/awt/peer/MenuComponentPeer.java,
4288 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4289 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4290 java/awt/peer/TextAreaPeer.java,
4291 java/awt/peer/TextComponentPeer.java,
4292 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4293 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4294 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4295 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4296 java/net/MalformedURLException.java, java/net/NativeNet.java,
4297 java/net/ProtocolException.java, java/net/ServerSocket.java,
4298 java/net/Socket.java, java/net/SocketException.java,
4299 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4300 java/net/URL.java, java/net/URLConnection.java,
4301 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4302 java/net/URLStreamHandlerFactory.java,
4303 java/net/UnknownHostException.java,
4304 java/net/UnknownServiceException.java: Removed.
4306 1998-10-22 Tom Tromey <tromey@cygnus.com>
4308 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4309 finalizer is not Object.finalize.
4310 (internalAddClass): Don't set `final' member of class.
4311 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4312 other places that know about finalize() location.
4313 * java/lang/Class.h (Class): Removed `final' field.
4315 * aclocal.m4, configure: Rebuilt.
4316 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4317 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4319 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4320 * Makefile.in: Rebuilt.
4321 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4323 1998-10-21 Tom Tromey <tromey@cygnus.com>
4325 * java/lang/Object.java (finalize): Move to be first method in
4328 * configure: Rebuilt.
4329 * configure.in (GCINCS): Include contents of boehm-cflags file.
4331 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4333 * java/lang/ArrayIndexOutOfBoundsException.java
4334 (ArrayIndexOutOfBoundsException): Fixed string literal.
4335 * java/lang/StringIndexOutOfBoundsException.java
4336 (StringIndexOutOfBoundsException): Fixed string literal.
4338 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4340 * natFileDescriptorEcos.cc added.
4341 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4343 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4345 * acconfig.h: test for __int32_t and __uint32_t added.
4346 * include/config.h.in: test for __int32_t and __uint32_t added.
4347 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4348 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4349 * configure.in: test for __int32_t and __uint32_t added.
4350 * configure: test for __int32_t and __uint32_t added.
4352 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4354 * configure.in: Test for --enable ecos and link
4355 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4356 natFileDescriptorPosix.cc
4358 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4360 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4362 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4365 * java/io/CharArrayReader.java (close): Synchronize on lock
4366 object per Reader contract.
4367 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4368 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4369 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4370 Ensure that arg passed in isn't negative.
4372 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4373 constructing the superclass.
4375 * java/io/PushbackReader.java (close): Synchronize on lock
4376 object per Reader contract.
4377 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4378 (ready): Synchronize on lock obj. Throw IOException if reader
4380 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4381 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4382 Ensure that arg passed in isn't negative.
4383 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4385 * java/io/StringReader.java: Created.
4387 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4389 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4391 (read): Removed synchronized modifier to match JCL.
4392 (reset): Removed synchronized modifier to match JCL.
4393 (skip): Removed synchronized modifier to match JCL.
4395 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4397 * java/io/PushbackReader.java (PushbackReader): Made
4398 constructors public.
4400 1998-10-17 Tom Tromey <tromey@cygnus.com>
4402 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4403 constructors public.
4405 1998-10-16 Anthony Green <green@cygnus.com>
4407 * aclocal.m4, configure: Rebuilt.
4408 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4410 * configure.host: Rewrote.
4411 * Makefile.in: Rebuilt.
4412 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4413 (AM_CFLAGS): New macro.
4414 ($(c_files)): Use COMPILE macro.
4415 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4416 automake problem(s).
4418 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4420 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4422 * java/io/CharArrayReader.java: Created.
4424 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4426 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4427 size check to allow 0 per JCL.
4429 * java/io/PushbackReader.java: Created.
4431 1998-10-16 Tom Tromey <tromey@cygnus.com>
4433 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4434 <sys/time.h> includes.
4435 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4436 * include/no-threads.h: Conditionalize <unistd.h> include on
4439 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4441 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4444 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4446 * java/io/FilterReader.java: Created.
4448 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4450 * java/io/PushbackInputStream.java: Rewritten.
4452 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4453 that size passed to constructor is legal.
4454 (read): Check that args passed in are legal.
4455 (skip): Rewritten to get rid of the temporary buffer.
4456 (refill): Added marklimit check to grow the buffer.
4458 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4460 (bytesAvail): Removed.
4461 (read): Changed bytesAvail to Math.min.
4462 (skip): Changed bytesAvail to Math.min.
4464 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4465 from the throws clause.
4466 (skip): Rewritten to use a temporary buffer.
4468 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4470 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4473 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4475 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4476 to write the double one word at a time.
4478 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4480 * java/io/BufferedInputStream.java: Rewritten.
4482 1998-10-12 Tom Tromey <tromey@cygnus.com>
4484 * jni.cc: Include config.h and stddef.h.
4486 * java/lang/Class.h (_dispatchTable): Removed again.
4487 Removed all ACC_* defines again.
4489 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4491 * Makefile.am (nat_files): Add netField.o.
4492 (libjava_a_SOURCES): Add jni.cc.
4493 (java/lang/reflect/Field.h): New rule.
4494 * Makefile.in: Re-generated.
4495 * include/javaprims.h: Add some extra class and typedefs.
4496 * include/jni.h: New file.
4499 * include/java-field.h: New file.
4500 * include/jvm.h: #include <java-field.h>.
4501 * boehm.cc: #include <java-field.h>.
4502 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4503 * java/lang/reflect/Member.java: New class.
4504 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4505 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4507 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4509 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4510 testsuite/Makefile.in: Rebuilt.
4511 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4512 * configure.host: Created.
4514 1998-10-10 Tom Tromey <tromey@cygnus.com>
4516 * java/lang/natObject.cc (sync_init): Always allocate a new
4519 1998-10-09 Tom Tromey <tromey@cygnus.com>
4521 * java/io/ByteArrayInputStream.java (mark): Renamed from
4524 * java/io/FileOutputStream.java (finalize): Removed.
4525 * java/io/FileDescriptor.java (finalize): New method.
4527 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
4529 * ByteArrayInputStream.java: Corrected status comment.
4531 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
4533 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4535 1998-10-08 Tom Tromey <tromey@cygnus.com>
4537 * prims.cc (lookupArray): Use static array to initialize list of
4540 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
4542 * prims.cc (lookupArray): Initialize the msize for new
4545 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
4547 * configure: Rebuilt.
4548 * configure.in: Check for fsync and sleep.
4549 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4551 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4552 HAVE_SLEEP. Include config.h.
4554 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4555 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4558 1998-10-08 Tom Tromey <tromey@cygnus.com>
4560 * java/io/natFile.cc: Don't include SecurityManager.h.
4561 (performList): Renamed.
4562 (performMkdir): Likewise.
4563 (performRenameTo): Likewise.
4564 (performDelete): Likewise.
4566 * java/io/File.java (performDelete): Renamed from natDelete.
4567 (list): Now written in Java.
4568 (performList): New method.
4569 (performMkdir): New method.
4570 (mkdir): Now written in Java.
4571 (performRenameTo): New method.
4572 (renameTo): Now written in Java.
4574 1998-10-06 Tom Tromey <tromey@cygnus.com>
4576 * Makefile.in: Rebuilt.
4577 * Makefile.am (ETAGS_ARGS): New macro.
4578 (TAGS_DEPENDENCIES): Likewise.
4580 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
4582 * Makefile.in: Rebuilt.
4583 * Makefile.am: Use -classpath option with javac.
4585 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
4587 * java/io/FileOutputStream.java (finalize): Call
4590 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
4592 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
4594 * java/lang/mprec.c: Ditto.
4596 * java/lang/mprec.h: Include math.h for HUGE_VAL when
4599 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
4601 * java/io/InputStream.java (skip): Make local var i a long.
4603 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
4605 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
4606 * prims.cc (lookupArray): Use memcpy, not memmove.
4607 * include/config.h.in: Rebuilt.
4608 * acconfig.h (HAVE_MEMCPY): Added.
4609 * configure: Rebuilt.
4610 * configure.in: Check for memcpy again.
4612 * java/io/RandomAccessFile.java (RandomAccessFile): Use
4613 String.compareTo, not ==.
4615 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
4616 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
4617 * java/lang/natObject.cc (struct _dispatchTable): Removed.
4618 * include/jvm.h (struct _Jv_DispatchTable): New structure.
4619 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
4620 into new array's dtable.
4621 (_Jv_AllocObject): Use _Jv_DispatchTable.
4622 (_Jv_NewPrimArray): Likewise.
4623 (_Jv_NewObjectArray): Likewise.
4625 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4627 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
4628 offending index value.
4629 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
4631 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
4632 * java/lang/Throwable.java: (Throwable): fixed argument to this().
4634 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
4636 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
4638 * java/io/OutputStream.java (write): Use off and len parameters to
4639 output partial byte array.
4641 * java/io/BufferedReader.java, java/io/FileReader.java,
4642 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
4643 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
4644 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
4645 java/io/Writer.java: Added COPYRIGHT-TBD comment.
4647 * include/javaprims.h (java::lang): Added
4648 ExceptionInInitializerError, IllegalStateException,
4649 NoSuchFieldException, and UnsupportedOperationException.
4651 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
4653 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
4656 * include/java-array.h (__JArray): Added clone method.
4657 * prims.cc (CloneableClass): New define.
4658 (lookupArray): Initialize array class to indicate that it
4659 implements Cloneable.
4661 * java/lang/Class.h: Removed all ACC_* defines.
4662 * prims.cc: Include Modifier.h.
4663 (_Jv_LookupInterfaceMethod): Use methods in
4664 java.lang.reflect.Modifier, not ACC_ defines.
4666 * java/lang/Class.h (Class): Declare getClasses,
4667 getDeclaredClasses, getDeclaringClass, getModifiers,
4668 * java/lang/Class.java: Rewrote from scratch.
4670 * include/javaprims.h (java::lang): Added reflect and
4672 * Makefile.in: Rebuilt.
4673 * Makefile.am (nat_headers): Added Modifier.h.
4675 * prims.cc (_Jv_IsInstanceOf): Return false if class is
4678 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
4680 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
4681 instead of test and abort.
4683 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
4684 remove compiler warning.
4686 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4688 * java/lang/natDouble.cc: zero terminate string.
4689 * strtod.c: Set errno if no digits are found in fraction.
4691 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
4693 * java/lang/reflect/Modifier.java: New file.
4695 * java/lang/VirtualMachineError.java: Rewrote from scratch.
4696 * java/lang/VerifyError.java: Rewrote from scratch.
4697 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
4698 * java/lang/UnknownError.java: Rewrote from scratch.
4699 * java/lang/StackOverflowError.java: Rewrote from scratch.
4700 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
4701 * java/lang/InternalError.java: Rewrote from scratch.
4702 * java/lang/IllegalAccessError.java: Rewrote from scratch.
4703 * java/lang/ExceptionInInitializerError.java: New file.
4704 * java/lang/Error.java: Rewrote from scratch.
4705 * java/lang/ClassFormatError.java: Rewrote from scratch.
4706 * java/lang/ClassCircularityError.java: Rewrote from scratch.
4707 * java/lang/AbstractMethodError.java: Rewrote from scratch.
4708 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
4709 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
4710 * java/lang/LinkageError.java: Rewrote from scratch.
4711 * java/lang/IncompatibleClassChangeError.java: Rewrote from
4713 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
4715 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
4716 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
4718 * include/cni.h (JvAllocObject): Moved from prims.cc.
4720 * prims.cc (JvAllocObject): Moved to cni.h.
4721 (_Jv_AllocObject): Use _Jv_FinalizeObject.
4722 (finalize_name): Removed.
4724 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
4726 * java/lang/Class.h (Class): Added size() method.
4727 * prims.cc (_Jv_MonitorEnter): Removed.
4728 (_Jv_MonitorExit): Removed.
4729 * java/lang/Object.h (JvSyncInfo): Removed.
4730 * Makefile.in: Rebuilt.
4731 * Makefile.am (nat_headers): Added Cloneable.h,
4732 CloneNotSupportedException.h.
4733 * java/lang/Object.h: Rewrote.
4734 * java/lang/natObject.cc: Rewrote from scratch.
4735 * java/lang/Object.java: Rewrote from scratch.
4737 * java/io/natFile.cc: Conditionally include <dirent.h>.
4738 (list): If no <dirent.h>, always return NULL.
4739 * configure: Rebuilt.
4740 * configure.in: Check for dirent.h.
4742 * prims.cc (lookupArray): Don't use sprintf.
4744 * java/util/Hashtable.java (containsKey): Use `abs' to compute
4751 * java/util/Hashtable.java (hsize): Renamed from size to avoid
4752 name conflict with method.
4754 * include/javaprims.h (java::util): Added HashtableEntry.
4756 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
4758 * java/util/Hashtable.java: Rewritten.
4760 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
4762 * java/io/natFileDescriptor.cc (write): Correctly test `write'
4766 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
4769 * posix-threads.cc (_Jv_CondWait): Now returns int.
4770 * include/javaprims.h (java::lang): Added
4771 IllegalMonitorStateException.
4772 * Makefile.in: Rebuilt.
4773 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
4774 * include/no-threads.h (_Jv_CondDestroy): Removed.
4775 (_Jv_MutexDestroy): Removed.
4776 (_Jv_CondWait): Now returns int.
4777 (_Jv_CondNotify): Likewise. Added mutex argument.
4778 (_Jv_CondNotifyAll): Likewise.
4779 (_Jv_MutexLock): Always succeed.
4780 (_Jv_MutexUnlock): Likewise.
4781 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
4782 (_Jv_HaveMutexDestroy): Define.
4783 (_Jv_CondNotify): Now returns int. Added mutex argument.
4784 (_Jv_CondNotifyAll): Likewise.
4785 * include/quick-threads.h (_Jv_CondDestroy): Removed.
4786 (_Jv_MutexDestroy): Removed.
4787 (_Jv_CondWait): Now returns int.
4788 (_Jv_CondNotify): Likewise. Added mutex argument.
4789 (_Jv_CondNotifyAll): Likewise.
4790 * java/lang/natObject.cc (finalize_sync_info): New function.
4791 (init_mutex): Initialize `init' and register finalizer if
4794 (init_mutex): Use it.
4796 (notifyAll): Use it.
4798 (notify): Throw IllegalMonitorStateException on failure.
4799 (notifyAll): Likewise.
4800 (wait): Likewise. Also, throw InterruptedException if
4802 Include cni.h, Thread.h, IllegalMonitorStateException.h,
4803 InterruptedException.h, IllegalArgumentException.h.
4804 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
4806 * java/lang/natString.cc: Renamed all `JvPriv' functions.
4807 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
4808 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
4809 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
4810 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
4811 * quick-threads.cc: Renamed all `JvPriv' functions.
4812 * prims.cc: Renamed all `JvPriv' functions.
4813 * posix-threads.cc: Renamed all `JvPriv' functions.
4814 * nogc.cc: Renamed all `JvPriv' functions.
4815 * no-threads.cc: Renamed all `JvPriv' functions.
4816 * boehm.cc: Renamed all `JvPriv' functions.
4817 * include/quick-threads.h: Renamed all `JvPriv' functions.
4818 * include/posix-threads.h: Renamed all `JvPriv' functions.
4819 * include/no-threads.h: Renamed all `JvPriv' functions.
4820 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
4822 * include/no-threads.h (JvPrivCondWait): Wrote minimal
4824 (JvPrivCondNotify): Do nothing.
4825 (JvPrivCondNotifyAll): Do nothing.
4827 * prims.cc (processClass): Handle case where state is
4830 * java/lang/natFirstThread.cc: Include <stdlib.h>
4832 * configure: Rebuilt.
4833 * configure.in: Fixed sense of --enable-libjava-debug.
4835 * java/lang/natThread.cc (join): Declare `t' outside the loop so
4836 it can be used afterward by the assertion.
4838 * configure: Rebuilt.
4839 * configure.in: When cross-compiling, assume alloca.
4841 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
4842 __builtin_alloca (autoconf docs are wrong here).
4844 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
4846 (available): Use `FD_ZERO' (typo fix).
4848 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
4850 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4851 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
4853 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4854 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
4857 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
4859 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
4861 * java/lang/natDouble.cc: Declare alloca safely.
4863 * configure, include/config.h.in: Rebuilt.
4864 * configure.in: Add alloca check.
4866 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
4868 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
4869 condition while calling notify.
4870 (join): Remove `curr_nt' from `nt's join list, not vice versa.
4871 (interrupt): Hold mutex for interrupt condition while calling
4874 * java/lang/natString.cc (init): Allocate and try to read `count'
4875 characters, not `count - offset' characters.
4877 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
4878 Correctly compute `count'.
4880 * java/lang/Boolean.java (getBoolean): Return false if property
4883 * java/lang/System.java (setProperties): Set prop_init.
4885 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
4887 * java/io/PrintStream.java (println): Use line.separator, not
4889 * java/lang/System.java (out, err): Make both autoflush streams.
4890 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
4892 * include/config.h.in: Rebuilt.
4893 * acconfig.h (HAVE_MEMCPY): Removed.
4894 * configure: Rebuilt.
4895 * configure.in: Never define HAVE_MEMCPY.
4897 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
4899 (_Jv_AllocString): Use JvAllocObject again.
4900 * java/lang/Class.h (thread): New field.
4901 (_Jv_AllocString): No longer a friend.
4902 * prims.cc (processClass): Removed dead code. Changed to more
4903 closely follow the Java Language Specification.
4904 (processClass): Return early if already at the right state.
4906 * prims.cc (JvNewStringUTF): Removed.
4907 * include/cni.h (JvNewStringUTF): New function.
4908 (_Jv_NewStringUTF): Declare as `extern "C"'.
4909 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
4911 * java/lang/natDouble.cc: Added copyright info and header
4912 comment. Include <stdlib.h>.
4913 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
4914 bytes as are chars in string.
4916 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
4918 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
4922 * java/lang/System.java (init_properties): Now native.
4923 * java/lang/natSystem.cc (init_properties): New method.
4924 Include java/util/Properties.h.
4926 * Makefile.in: Rebuilt.
4927 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
4928 OutputStreamWriter.h, ByteArrayInputStream.h,
4929 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
4930 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
4931 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
4932 Properties.h, Hashtable.h, Dictionary.h.
4935 * include/javaprims.h (java::io): Added Reader, Writer,
4936 InputStreamReader, OutputStreamWriter,
4937 UnsupportedEncodingException, ByteArrayInputStream,
4938 ByteArrayOutputStream, EOFException, SyncFailedException,
4939 PushbackInputStream.
4940 (java::lang): Added Cloneable.
4941 (java::util): Added NoSuchElementException, VectorEnumeration,
4942 Dictionary, HashtableEnumeration, PropertiesEnumeration.
4944 * java/io/PipedReader.java: New file.
4946 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
4948 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
4951 * java/io/io-defs.h: Removed.
4953 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
4954 (FileInputStream): Use new constructor. Can throw IOException.
4956 * java/lang/System.java (getProperty): Don't throw
4957 NullPointerException.
4959 * java/io/RandomAccessFile.java: Rewrote from scratch.
4961 * java/io/natFileDescriptor.cc: Include EOFException.h.
4963 (length): New method.
4964 (getFilePointer): New method.
4966 (available): New method.
4967 * java/io/FileDescriptor.java (SET, CUR): New constants.
4968 (seek, length, getFilePointer, read, available): New decls.
4970 * java/io/PipedWriter.java: New file.
4971 * java/io/StringWriter.java: New file.
4972 * java/io/CharArrayWriter.java: New file.
4973 * java/io/CharConversionException.java: New file.
4974 * java/io/BufferedWriter.java: New file.
4975 * java/io/FilterWriter.java: New file.
4976 * java/io/FileWriter.java: New file.
4978 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
4979 OutputStreamWriter.h, NullPointerException.h,
4980 ByteArrayInputStream.h, InputStreamReader.h.
4981 (getBytes): New method.
4982 (init): Throw NullPointerException.
4983 (init): New function.
4984 * java/lang/String.java (getBytes): Added missing decl.
4985 (getBytes): New method.
4986 (String): Added byte[]-based constructors.
4987 (copyValueOf): Wrote.
4988 (init): Declare variant which takes byte array and encoding.
4989 Import java.io.UnsupportedEncodingException.
4991 * java/io/File.java: Rewrote from scratch.
4992 * java/io/natFileDescriptor.cc: Rewrote from scratch.
4993 * java/io/FileDescriptor.java: Rewrote from scratch.
4994 * java/io/FilenameFilter.java: Rewrote from scratch.
4996 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
4998 * java/io/SyncFailedException.java: New file.
4999 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5000 * java/io/InterruptedIOException.java: Rewrote from scratch.
5001 * java/io/FileNotFoundException.java: Rewrote from scratch.
5002 * java/io/EOFException.java: Rewrote from scratch.
5003 * java/io/IOException.java: Rewrote from scratch.
5004 * java/io/PrintStream.java: Rewrote from scratch.
5005 * java/io/DataOutputStream.java: Rewrote from scratch.
5006 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5007 * java/io/FilterOutputStream.java: Rewrote from scratch.
5008 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5009 * java/io/PipedOutputStream.java: Rewrote from scratch.
5010 * java/io/FileOutputStream.java: Rewrote from scratch.
5011 * java/io/OutputStream.java: Rewrote from scratch.
5012 * java/io/DataOutput.java: Rewrote from scratch.
5014 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5016 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5018 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5020 * configure.in: Add --enable-libjava-debug
5022 * Makefile.am (nat_headers): Add java/lang/Float.h and
5025 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5027 * Makefile.in, configure, include/config.h.in: Rebuilt.
5029 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5031 * java/lang/Float.java: Rewritten
5032 * java/lang/Double.java: Rewritten
5033 * java/lang/natFloat.cc: toString() added.
5034 * java/lang/natDouble.cc: toString() added.
5035 * java/lang/natDouble.cc: doubleValueOf() added.
5036 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5037 java/lang/strtod.c: added.
5038 * ieeefp.h: __sparc added.
5039 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5041 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5043 * include/javaprims.h (java::lang): Added
5044 CloneNotSupportedException.
5046 * java/lang/Object.java (clone): No longer native. Implemented.
5047 * java/lang/natObject.cc (clone): Removed.
5049 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5051 * prims.cc: Don't make definitions `extern "C"'.
5052 (_Jv_RegisterClass): Renamed from registerClass.
5053 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5054 (_Jv_NewArray): Likewise.
5055 (_Jv_NewMultiArray): Likewise.
5056 (_Jv_CheckCast): Likewise.
5057 (_Jv_LookupInterfaceMethod): Likewise.
5058 (_Jv_CheckArrayStore): Likewise.
5059 (_Jv_RegisterClass): Likewise.
5061 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5062 * configure: Rebuilt.
5063 * configure.in: Don't check for fmod; it is provided by the fdlibm
5065 * prims.cc (fmod): Removed.
5067 * java/lang/natString.cc (charAt): Use _Jv_uint.
5068 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5069 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5070 (equalUtf8Consts): Likewise.
5071 (internalAddClass): Use _Jv_uint.
5072 (processClass): Likewise.
5073 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5074 (_Jv_uint): Renamed from uint32.
5075 (struct _Jv_Utf8Const): Changed members to use new type names.
5077 * configure: Rebuilt.
5078 * configure.in: Don't check for memcpy. Require memmove and a way
5080 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5082 (currentTimeMillis): Don't use #error.
5084 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5086 * java/lang/Math.java: static member random renamed to random_ to
5087 avoid conflict with member function of the same name.
5088 * include/javaprims.h: java.util.Random added.
5090 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5092 * include/java-chartables.h: Regenerated.
5093 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5096 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5098 * java/lang/Math.java: Rewritten.
5099 * java/lang/natMath.cc: New file.
5100 * Files added from fdlibm:
5101 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5102 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5103 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5104 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5105 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5106 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5107 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5108 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5109 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5110 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5111 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5112 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5113 java/lang/k_cos.c, java/lang/sf_ceil.c,
5114 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5115 java/lang/ieeefp.h, java/lang/fdlibm.h
5116 * Makefile.am: rules added for compiling C files from fdlibm.
5118 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5120 * chartables.pl: Minor documentation fixes.
5122 * configure: Rebuilt.
5123 * configure.in: Fixed --help output for --enable-fast-character.
5125 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5127 * configure: Rebuilt.
5128 * configure.in: Recognize --enable-fast-character.
5129 * acconfig.h (COMPACT_CHARACTER): New define.
5130 * include/config.h.in: Rebuilt.
5131 * include/java-chartables.h: New file.
5132 * Makefile.in: Rebuilt.
5133 * Makefile.am (nat_files): Added natCharacter.o.
5134 * java/lang/natCharacter.cc: New file.
5135 * chartables.pl (set_attribute): New function.
5136 (@attributes, @second_attributes): New globals.
5137 ($ROMAN_START, $ROMAN_END): Likewise.
5138 (process_char): Call set_attribute when required.
5139 (print_char): Just print hex value.
5140 (print_block): Generate C++ syntax.
5141 (print_numerics): Likewise.
5142 (print_single_map): Likewise.
5143 (print_all_block): Likewise.
5144 (print_case_table): Likewise.
5145 (print_fast_tables): New function.
5146 Generate C++ code suitable for a header file.
5147 * java/lang/Character.java (table_search): Removed.
5148 (digit_value): Now native.
5149 (getNumericValue): Likewise.
5150 (getType): Likewise.
5151 Removed all automatically-generated tables.
5152 (Tamil_Digit_One): Removed.
5153 (isSpaceChar): Now native.
5154 (isTitleCase): Likewise.
5155 (isLowerCase): Likewise.
5156 (isUpperCase): Likewise.
5157 (toLowerCase): Likewise.
5158 (toTitleCase): Likewise.
5159 (toUpperCase): Likewise.
5160 (isDefined): Fixed sense of test.
5162 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5164 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5166 (regionMatches): Likewise.
5168 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5170 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5172 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5174 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5177 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5180 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5182 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5184 * prims.cc (instanceof_class): Removed.
5185 (instanceof_array): Likewise.
5186 (instanceof): Likewise.
5187 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5188 (_Jv_CheckCast): Likewise.
5189 * java/lang/natClass.cc (isAssignableFrom): New method.
5190 * java/lang/Class.java (isAssignableFrom): Now native.
5192 * include/cni.h (JvThrow): Use `extern inline'.
5193 (JvAllocObject): Likewise.
5194 (JvInitClass): Likewise.
5196 * java/lang/natSystem.cc (arraycopy): Only check class of source
5199 * prims.cc (_Jv_CheckArrayStore): Wrote.
5200 (_Jv_MonitorEnter): Prefer `JvThrow'.
5201 Include ArrayStoreException.h.
5202 (_Jv_CheckCast): Indentation cleanup.
5204 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5206 * chartables.pl: New file.
5207 * java/lang/Character.java: Rewrote from scratch.
5209 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5211 * java/lang/ArithmeticException.java,
5212 java/lang/ArrayIndexOutOfBoundsException.java,
5213 java/lang/ArrayStoreException.java,
5214 java/lang/ClassCastException.java,
5215 java/lang/ClassNotFoundException.java,
5216 java/lang/CloneNotSupportedException.java,
5217 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5218 java/lang/IllegalArgumentException.java,
5219 java/lang/IllegalMonitorStateException.java,
5220 java/lang/IllegalThreadStateException.java,
5221 java/lang/IndexOutOfBoundsException.java,
5222 java/lang/InstantiationException.java,
5223 java/lang/InterruptedException.java,
5224 java/lang/NegativeArraySizeException.java,
5225 java/lang/NoSuchMethodException.java,
5226 java/lang/NullPointerException.java,
5227 java/lang/NumberFormatException.java,
5228 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5229 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5231 * java/lang/IllegalStateException.java,
5232 java/lang/NoSuchFieldException.java,
5233 java/lang/UnsupportedOperationException.java: Created.
5235 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5237 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5238 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5240 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5242 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5244 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5246 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5248 * Makefile.in: Rebuilt.
5250 * include/javaprims.h (java::lang): Added
5251 StringIndexOutOfBoundsException.
5253 * java/lang/String.java: Added header comment and FIXME comment for
5254 missing constructors/methods.
5255 (endsWith): Adjusted offset into string to look at just the last chars.
5256 Commented out undocumented method.
5258 * java/lang/natString.cc: Added includes for
5259 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5260 (String::init): Throw StringIndexOutOfBoundsException.
5261 (String::charAt): Throw StringIndexOutOfBoundsException.
5262 (String::substring): Throw StringIndexOutOfBoundsException.
5263 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5264 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5265 (String::compareTo): Return difference/offset between chars/strings.
5267 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5269 * java/lang/Boolean.java (TYPE): Added comment.
5271 * java/lang/Byte.java (decode): Added - commented out until dependent
5272 code for Integer is written.
5273 (compareTo): JDK 1.2 methods written.
5274 (hashCode): Added comment to note that values have been verified.
5276 * java/lang/Short.java (decode): Added - commented out until dependent
5277 code for Integer is written.
5278 (compareTo): JDK 1.2 methods written.
5279 (hashCode): Added comment to note that values have been verified.
5281 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5283 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5285 * include/javaprims.h (java::lang): Added VirtualMachineError,
5287 * Makefile.in: Rebuilt.
5288 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5289 VirtualMachineError.h.
5290 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5291 (lookupArray): Likewise.
5292 (makeUtf8Const): Likewise.
5293 (_Jv_AllocObject): Likewise.
5294 (_Jv_NewObjectArray): Likewise.
5295 Include OutOfMemoryError.h.
5297 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5298 to use JvNewStringLatin1.
5300 * java/io/io-defs.h: Include java/lang/IOException.h.
5301 * Makefile.in: Rebuilt.
5302 * Makefile.am (nat_headers): Added
5303 ArrayIndexOutOfBoundsException.h,
5304 ClassFormatError.h,ClassNotFoundException.h,
5305 ClassCircularityError.h, ClassCastException.h,
5306 IncompatibleClassChangeError.h, AbstractMethodError.h,
5307 IllegalAccessError.h, LinkageError.h, Error.h,
5308 NegativeArraySizeException.h, IOException.h.
5309 * include/cni.h (SignalError): Removed declaration.
5310 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5311 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5312 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5313 (newInstance): Likewise.
5314 (forName): Likewise.
5315 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5317 (read): Use JvThrow, not SignalError.
5322 (open_read): Likewise.
5323 (open_write): Likewise.
5326 (newstr): New function.
5327 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5329 (lastModifiedUnchecked): Likewise.
5330 (lengthUnchecked): Likewise.
5331 * include/javaprims.h (sorry): Removed declaration.
5332 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5333 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5334 ClassCastException, IncompatibleClassChangeError,
5335 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5336 * prims.cc (instanceof_array): Use JvFail, not sorry.
5338 Include ArrayIndexOutOfBoundsException.h,
5339 ClassFormatError.h,ClassNotFoundException.h,
5340 ClassCircularityError.h, ClassCastException.h,
5341 IncompatibleClassChangeError.h, AbstractMethodError.h,
5342 IllegalAccessError.h, NegativeArraySizeException.h.
5343 (_Jv_ThrowBadArrayIndex): Implemented.
5344 (JvNewStringUTF): Use JvFail, not sorry.
5345 (_Jv_FindClass): Likewise.
5346 (_Jv_NewArray): Likewise.
5347 (throwException): Removed.
5348 (getClass): Use JvThrow.
5349 (processClass): Likewise.
5350 (_Jv_NewObjectArray): Likewise.
5351 (_Jv_NewMultiArray): Likewise.
5352 (_Jv_CheckCast): Likewise.
5353 (_Jv_LookupInterfaceMethod): Likewise.
5354 (SignalError): Removed.
5355 (getClass): Use _Jv_NewStringUtf8Const to create String.
5357 * java/lang/natSystem.cc (arraycopy): Throw
5358 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5360 * Makefile.in: Rebuilt.
5361 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5363 * include/java-array.h: Mention gcjh, not gjavah.
5365 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5366 (canReadUnchecked): Likewise.
5367 (canWriteUnchecked): Likewise.
5368 (isFileUnchecked): Likewise.
5369 * java/io/natFileDescriptor.cc: Don't include cni.h.
5371 * java/lang/Thread.java (run__): Declare.
5372 * java/lang/natThread.cc (run__): New method, to avoid compiler
5374 (start): Use run__, not run_.
5376 * java/io/io-defs.h: Include cni.h and jvm.h.
5378 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5380 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5381 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5382 to natString.cc (with suitable renaming, inlines etc).
5383 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5384 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5385 * java/lang/String.h: Removed - now generated using gjavah.
5386 * java/lang/String.java: Re-written from scratch. Many native methods.
5387 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5388 * java/lang/natString.cc: Many functions re-written for "compact
5389 strings" representation, or native java.lang.String methods added.
5390 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5391 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5392 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5393 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5394 * include/cni.h: Add inline method.
5395 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5396 * include/javaprims.h: Moved some stuff frm String.h.
5397 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5398 * Makefile.am (nat_header): Added Character.h and String.h.
5399 (String.h): Add new rule.
5401 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5403 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5405 * posix-threads.cc: Include cni.h, jvm.h.
5406 * quick-threads.cc: Include cni.h, jvm.h.
5407 * nogc.cc: Include cni.h, not javaprims.h.
5408 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5409 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5410 include java-assert.h.
5411 * java/lang/natSystem.cc: Include cni.h. Don't include
5413 * java/lang/natRuntime.cc: Include cni.h. Don't include
5415 * prims.cc: Rearranged #include ordering. Don't include
5416 java-array.h or java-assert.h.
5417 * boehm.cc: Include config.h, cni.h.
5418 * exception.cc: Include config.h, cni.h.
5419 * include/jvm.h: Include java-assert.h.
5420 * include/cni.h: Include java/lang/Object.h. Don't include
5421 java-threads.h or java-array.h.
5423 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5425 * java/lang/Boolean.java: Rewritten.
5427 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5429 * java/lang/natFirstThread.cc (main_func): New typedef.
5430 (run): Use main_func, not JvPrivThreadStartFunc.
5431 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5433 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5435 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5438 Can't throw Java exceptions with C++ `throw':
5439 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5440 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5441 (setPriority): Likewise.
5445 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5446 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5448 Can't catch Java exceptions from C++:
5449 * java/lang/natThread.cc (finish_): New method.
5451 * java/lang/Thread.java (run_): Rewrote in Java.
5452 (finish_): New native method.
5454 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5456 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5458 * include/javaprims.h (java::io): Added Serializable.
5460 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5462 * java/util/EmptyStackException.java,
5463 java/util/NoSuchElementException.java: Rewritten.
5465 * java/util/ConcurrentModificationException.java,
5466 java/util/MissingResourceException.java,
5467 java/util/TooManyListenersException.java: Created.
5469 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5471 * include/cni.h (JvThrow): New function.
5472 * include/javaprims.h (_Jv_Throw): Declare.
5474 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5476 * java/util/Observable.java: Rewritten.
5478 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5480 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5481 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5482 Include NullPointerException.h.
5484 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5486 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5487 assignability checks. Don't bother using memcpy.
5489 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5491 * include/quick-threads.h (JvPrivThreadWait): New function.
5492 * include/no-threads.h (JvPrivThreadWait): New function.
5493 * include/posix-threads.h (JvPrivThreadWait): New function.
5494 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5496 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5498 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5499 offsets by size of type that is being copied.
5501 * java/lang/natThread.cc (start): Don't pass `object' argument to
5503 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5504 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5506 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5507 always pass thread as object.
5508 * include/quick-threads.h, include/posix-threads.h,
5509 include/no-threads.h (JvPrivThreadStart): Removed `object'
5512 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5514 * java/util/Dictionary.java: Rewritten.
5516 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5518 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5519 (JvPrivThreadDestroy): Likewise.
5521 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
5523 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5525 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5527 * java/lang/natSystem.cc: Rewrote from scratch.
5528 * java/lang/System.java: Rewrote from scratch.
5529 * java/lang/Class.h (Class): Declare isAssignableFrom.
5530 * include/javaprims.h (java::lang): Added ArrayStoreException,
5531 IndexOutOfBoundsException.
5532 * Makefile.in: Rebuilt.
5533 * Makefile.am (nat_headers): Added ArrayStoreException.h,
5534 IndexOutOfBoundsException.h.
5535 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5536 * include/jvm.h (_Jv_HashCode): New function.
5538 * java/lang/natThread.cc (suspend): Call checkAccess.
5540 * java/lang/Thread.java (setDaemon): Call checkAccess.
5542 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5544 * java/lang/Runtime.java: Rewrote from scratch.
5545 * java/lang/natRuntime.cc: Rewrote from scratch.
5547 * nogc.cc (JvPrivGCTotalMemory): New function.
5548 (JvPrivGCFreeMemory): Likewise.
5549 (total): New global.
5550 (JvPrivAllocObj): Increment total.
5551 (JvPrivAllocArray): Likewise.
5552 (JvPrivAllocBytes): Likewise.
5553 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5554 * boehm.cc (JvPrivGCTotalMemory): New function.
5555 (sum_blocks): Likewise.
5556 (JvPrivGCFreeMemory): Likewise.
5558 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
5560 * include/javaprims.h (java::lang): Added FirstThread.
5561 * java/lang/natFirstThread.cc: New file.
5562 * java/lang/FirstThread.java: New file.
5563 * prims.cc (main_signature): Removed.
5564 (main_name): Removed.
5565 #include FirstThread.h.
5566 * Makefile.in: Rebuilt.
5567 * Makefile.am (TFRIEND): Removed.
5568 (java/lang/Thread.h): Likewise.
5569 (FTFRIEND): New macro.
5570 (java/lang/FirstThread.h): New target.
5571 (nat_files): Added natFirstThread.o.
5572 (nat_headers): Added FirstThread.h.
5573 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
5574 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
5576 * java/lang/Thread.java (setName): Throw IllegalArgumentException
5580 * java/lang/natThread.cc (start): Synchronize the thread.
5581 (stop): Synchronize the thread.
5583 * java/lang/ThreadDeath.java: Rewrote from scratch.
5585 * Makefile.in: Rebuilt.
5586 * Makefile.am (TGFRIEND): New macro.
5587 (java/lang/ThreadGroup.h): New target.
5588 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
5590 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
5592 * nogc.cc: Include config.h.
5594 * java/lang/ThreadGroup.java: Rewrote from scratch.
5596 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5598 * java/lang/Thread.java (checkAccess): Only call in to security
5599 manager if it exists.
5600 (Thread): Don't check access when creating the first thread. Add
5601 this thread to the appropriate ThreadGroup.
5603 * java/lang/natThread.cc (run_): Call uncaughtException method on
5606 * java/lang/Runnable.java: Rewrote from scratch.
5607 * java/lang/Thread.java: Updated copyright comment to correct
5610 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
5612 * java/util/Random.java: Rewritten.
5614 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5616 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
5617 trailing 0 in array[].
5619 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
5621 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
5622 and RUNTESTFLAGS from AM_MAKEFLAGS.
5623 (SUBDIRS): Conditionally include testsuite.
5624 * Makefile.in: Rebuilt.
5626 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
5628 * java/lang/Object.h: Include java-assert.h.
5630 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
5632 * Makefile.am: Add testsuite directory.
5633 * configure.in: Build testsuite/Makefile.
5634 * Makefile.in, configure: Rebuilt.
5636 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5638 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
5639 * include/jvm.h (_Jv_StartFirstThread): Declare.
5641 * include/javaprims.h (java::lang): Added Exception,
5644 * Makefile.in: Rebuilt.
5645 * Makefile.am (nat_headers): Added NullPointerException.h,
5646 InterruptedException.h, IllegalArgumentException.h, Exception.h,
5647 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
5648 (java/lang/Thread.h): New target.
5649 (TFRIEND): New macro
5651 * include/java-assert.h (JvFail): Use 0 and not NULL.
5653 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
5654 instead of assuming we are a friend of Thread.
5655 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
5656 instead of assuming we are a friend of Thread.
5658 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
5660 * java/lang/natThread.cc: Rewrote from scratch.
5661 * java/lang/Thread.java: Rewrote from scratch.
5662 * prims.cc (JvRunMain): Use new Thread constructor.
5663 * include/javaprims.h (java::lang): Added InterruptedException.
5664 * Makefile.in: Rebuilt.
5665 * Makefile.am (nat_headers): Added java/lang/Thread.h.
5666 * java/lang/Thread.h: Removed.
5667 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
5668 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
5670 * posix-threads.cc (JvPrivThreadJoin): Removed.
5671 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
5672 (really_start): Don't notify join_cond.
5673 (JvPrivThreadStart): Added `data' argument.
5674 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
5675 (JvPrivThreadJoin): Likewise.
5676 Use JvFail instead of sorry.
5677 (JvPrivThreadSuspend): Removed.
5678 (JvPrivThreadResume): Removed.
5679 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
5680 (JvPrivThreadJoin): Likewise.
5681 (JvPrivThreadSuspend): Use JvFail.
5682 (JvPrivThreadResume): Likewise.
5683 (JvPrivThreadSuspend): Removed.
5684 (JvPrivThreadResume): Likewise.
5685 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
5686 (JvPrivThread_t): Removed join_mutex, join_cond.
5687 Use JvFail instead of sorry.
5688 (JvPrivThreadSuspend): Removed.
5689 (JvPrivThreadResume): Likewise.
5691 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
5693 * java/util/Observer.java: Rewritten
5694 * java/util/Enumeration.java: Rewritten
5696 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
5698 * java/util/StringTokenizer.java: Rewritten
5699 * java/util/Stack.java: Added COPYRIGHT-TBD comment
5700 * java/util/Vector.java: Added COPYRIGHT-TBD comment
5701 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
5703 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
5705 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
5708 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
5709 Include java-assert.h.
5710 * include/java-assert.h: New file.
5711 * prims.cc (_Jv_Abort): New function.
5712 Include java-assert.h, not assert.h.
5713 (_Jv_MonitorExit): Use JvAssert.
5714 (resolveConstants): Likewise.
5715 (processClass): Likewise.
5716 (JvRunMain): Assert that method is found.
5718 * configure: Rebuilt.
5719 * configure.in: Check for test subdir.
5720 * Makefile.in: Rebuilt.
5721 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
5723 * prims.cc (JvRunMain): Use NORM_PRIORITY.
5724 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
5726 * prims.cc (resolveConstants): Removed unused variables.
5727 (processClass): Likewise.
5729 * include/quick-threads.h (JvPrivThreadCurrent): Use
5731 * quick-threads.cc (destroy_data): New function.
5732 (JvPrivInitThreads): Create key.
5733 (JvPrivThreadKey): New global.
5734 (JvPrivThreadStart): Use coop_setspecific.
5736 * include/quick-threads.h, include/posix-threads.h,
5737 include/no-threads.h, no-threads.cc, quick-threads.cc,
5738 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
5740 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
5742 * include/no-threads.h (JvPrivThreadInitData): Don't set
5745 * include/quick-threads.h (JvPrivCondWait): coop function now
5747 (JvPrivThreadJoin): Likewise.
5749 * java/lang/Thread.h (Thread): Updated declaration of
5751 * include/quick-threads.h, include/posix-threads.h: Updated
5752 declaration of JvPrivThreadStart.
5753 * include/no-threads.h (JvPrivThreadStart): Changed definition
5755 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
5756 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
5757 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
5759 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
5761 * quick-threads.cc (qthrow): New function.
5762 (JvPrivInitThreads): New function.
5763 (started): New global.
5764 (JvPrivThreadStart): Call coop_start if required.
5765 * include/quick-threads.h (JvPrivThreadCancel): Implement.
5766 (JvPrivThreadDestroy): Likewise.
5767 (JvPrivInitThreads): Removed.
5768 * include/posix-threads.h (JvPrivThreadCancel): Added error
5770 * java/lang/natThread.cc (stop_): Pass exception to
5773 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
5775 * include/javaprims.h (java::lang): Added
5776 IllegalArgumentException, IllegalThreadStateException, Math,
5777 NullPointerException, ThreadDeath.
5778 (java::util): Added Enumeration.
5780 * Makefile.in: Rebuilt.
5781 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
5783 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
5785 (threadsv): Renamed from threads to avoid clash in C++ header.
5786 (groupsv): Likewise.
5787 * include/no-threads.h (JvPrivThreadStart): Removed.
5788 * no-threads.cc (JvPrivThreadStart): New function.
5789 * java/lang/Thread.java (Thread): New constructor for internal use.
5790 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
5791 (Thread): Declare constructor.
5792 * prims.cc (JvRunMain): Create the initial Thread and
5794 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
5795 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
5796 Removed `daemon' argument.
5798 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
5799 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
5801 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
5803 * Makefile.in: Rebuilt.
5804 * Makefile.am (INCLUDES): Include THREADINCS.
5806 * configure: Rebuilt.
5807 * configure.in: Recognize `qt' as a threads package.
5809 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
5811 * java/util/Stack.java (pop): Null out topmost node for robustness.
5813 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
5815 * java/util/Stack.java: Rewritten.
5816 * java/util/Vector.java (isEmpty): Simplified expression.
5818 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
5820 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
5821 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
5823 * include/java-array.h (JvNewObjectArray): Created inline to
5826 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
5829 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
5831 * java/util/Vector.java: Rewritten.
5832 * java/io/Serializable.java: Created.
5834 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
5836 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
5837 Infinity is 1/0, not 1/1.
5839 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
5841 * configure: Rebuilt.
5842 * configure.in: Removed duplicate AC_ARG_WITH.
5844 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
5846 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
5848 (_Jv_InitClass): Renamed from soft_initialise_class.
5849 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
5850 (_Jv_CheckCast): Renamed from soft_checkcast.
5851 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
5852 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
5853 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
5854 * include/cni.h (JvInitClass): New function.
5855 (_Jv_InitClass): Renamed from soft_initialise_class.
5857 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
5859 * configure: Rebuilt.
5860 * configure.in (CXX): Don't set.
5861 * Makefile.in: Rebuilt.
5862 * Makefile.am (AM_CXXFLAGS): New macro.
5864 * Makefile.in: Rebuilt.
5865 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
5866 nogc.o): New target.
5868 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
5870 (mark_array): Likewise.
5872 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
5874 * java/lang/Class.h (JvMethod): Removed some unused fields.
5875 (JvField.info): Removed unused idx union variant.
5877 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
5879 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
5882 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
5884 * configure.in, configure (CXX): Add -fvtable-thunks.
5886 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
5888 * java/lang/Object.java (finalize): Move first.
5889 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
5890 (Object): Re-arrange order to match Object.java.
5892 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
5894 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
5895 * java/lang/natString.cc (hashChars): Likewise.
5897 * prims.cc (RuntimeClass): New macro.
5898 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
5900 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
5902 * Makefile.in: Rebuilt.
5903 * Makefile.am (AM_MAKEFLAGS): New macro.
5905 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
5907 * nogc.cc: Include <javaprims.h>.
5909 * Makefile.in: Rebuilt.
5910 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
5912 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
5914 * exception.cc (terminate): Removed.
5915 (unexpected): Removed.
5917 * configure: Rebuilt.
5918 * configure.in: Handle case where target subdir is ".".
5920 * configure: Rebuilt.
5921 * configure.in: Compute COMPPATH based on --with-target-subdir
5922 option. Added --with-target-subdir and --with-cross-host. Use
5923 --with-cross-host to determine when a cross compiler is in use.
5925 * Makefile.in: Rebuilt.
5926 * Makefile.am (GJAVAH): Include COMPPATH.
5927 * configure: Rebuilt.
5928 * configure.in: Subst COMPPATH.
5930 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
5932 * prims.cc (lockMutex): Removed.
5933 (unlockMutex): Likewise.
5934 (processClass): Lock the class using a JvSynchronize object.
5936 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
5938 * java/lang/natString.cc (gc_calloc_fixed): Removed.
5939 (gc_free_fixed): Removed.
5940 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
5941 freeing old value of strhash.
5943 * exception.cc (_Jv_type_matcher): Cast first argument to
5946 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
5948 * include/java-array.h (jstringArray): New type.
5949 * java/lang/natSystem.cc (setProperty): Removed.
5950 (initProperties): Directly call JvNewStringLatin1 for arguments.
5951 * java/util/natDate.cc: Include java/util/Date.h, not
5954 * java/io/FileDescriptor.java (available): No longer static.
5955 * java/lang/natDouble.cc (Double): Removed class definition.
5956 * include/javaprims.h (java::lang::Number): Declare.
5957 (java::lang::NumberFormatException): Likewise.
5958 (java::io::FilenameFilter): Likewise.
5959 (java::lang::Character): Likewise.
5960 (java::lang::Error): Likewise.
5961 (java::lang::SecurityManager): Likewise.
5962 (java::util::Vector): Likewise.
5963 (java::io::FileNotFoundException): Likewise.
5964 (java::io::IOException): Likewise.
5965 (java::lang::NativeLang): Likewise.
5966 (java::lang::UnsatisfiedLinkError): Likewise.
5967 (java::util::StringTokenizer): Likewise.
5968 (java::io::InputStream, java::io::OutputStream): Likewise.
5969 (java::io::PrintStream, java::lang::SecurityException): Likewise.
5970 (java::util::Hashtable): Likewise.
5971 * Makefile.in: Rebuilt.
5972 * Makefile.am (nat_headers): Added java/lang/Double.h,
5973 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
5974 (MOSTLYCLEANFILES): Added nat_headers.
5975 * include/jvm.h: Moved many defines, declarations, and functions
5976 to java/lang/Class.h.
5977 (struct JvSyncInfo): Moved to java/lang/Object.h.
5978 (UTF8_GET): Moved to java/lang/String.h.
5980 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
5982 * java/io/io-defs.h: Don't include java-io.h.
5983 * include/java-io.h: Removed.
5984 * include/javaprims.h: Include java::io.
5986 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
5988 * include/java-io.h (File): Removed
5989 (FileDescriptor): Likewise.
5991 * java/io/io-defs.h: Include java/io/File.h and
5992 java/io/FileDescriptor.h.
5994 * Makefile.in: Rebuilt.
5995 * Makefile.am (GJAVAH): New macro.
5996 (.class.h): New rule.
5997 (SUFFIXES): Added .h.
5998 (nat_headers): New macro.
5999 ($(nat_headers)): New target.
6000 (BUILT_SOURCES): Added nat_headers.
6002 * include/java-util.h: Removed.
6004 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6006 * include/java-io.h: Changed to avoid java-lang.h.
6007 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6009 * java/lang/natSystem.cc: Include java/lang/System.h, not
6011 * java/lang/natString.cc: Include java/lang/String.h, not
6013 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6015 * java/lang/natClass.cc: Include java/lang/Class.h, not
6017 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6019 * java/lang/natObject.cc: Include java/lang/Object.h, not
6021 * exception.cc: Don't include java-lang.h.
6022 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6023 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6024 * nogc.cc: Don't include java-lang.h.
6025 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6026 * prims.cc (processClass): Don't use `init_type'; just cast to
6028 Include java/lang/Class.h and jvm.h, not java-lang.h.
6029 (JvAllocObject): Wrote single-argument version.
6030 (PrimClass): Inherit from Class.
6031 (initPrimClass): Removed.
6032 * include/java-lang.h: Removed.
6033 * include/jvm.h: Declare struct _dispatchTable.
6034 * include/cni.h: Don't declare _Jv_MonitorEnter,
6035 _Jv_MonitorExit, struct _dispatchTable.
6036 * include/javaprims.h: Moved all typedefs here, from cni.h.
6037 * java/lang/Class.h: New file.
6038 * include/java-array.h: New file.
6039 * java/lang/Object.h: New file.
6041 * prims.cc (classFromSig): Now static.
6043 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6045 * include/cni.h: Don't mention soft_new.
6046 * include/java-lang.h (Object): Don't mention soft_new. Mention
6047 _Jv_NewPrimArray, not newPrimArray.
6048 * prims.cc (soft_new): Removed.
6049 (_Jv_NewArray): Renamed from soft_newarray.
6050 (soft_anewarray): Use JvNewObjectArray.
6051 (newArray): Likewise.
6052 (newRefArray): Removed.
6053 (_Jv_NewPrimArray): Renamed from newPrimArray.
6054 (equalUtf8Consts): Now static.
6055 (soft_instanceof): Removed.
6056 * java/lang/natDouble.cc (doubleToString): Now static.
6058 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6059 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6062 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6064 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6066 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6068 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6069 (JvPrivMutexUnlock): Likewise.
6070 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6071 Return value now jint.
6072 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6075 * Makefile.in: Rebuilt.
6076 * Makefile.am: Don't allow `jV' names.
6077 (maintainer-check): Depend on libjava.a.
6078 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6080 * Makefile.in: Rebuilt.
6081 * Makefile.am (NM): New macro.
6082 (maintainer-check): New target.
6084 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6086 * configure: Rebuilt.
6087 * configure.in: Use --enable-threads, not --enable-gc. Fix
6088 documentation for --enable-threads. Changed option to work like
6089 identical option in gcc/configure.
6091 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6093 * boehm.cc (mark_array): Use JvGetArrayLength.
6095 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6097 * exception.cc: New file (mostly written by Andrew MacLeod),
6098 exception handling support.
6099 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6100 Remove -fexceptions - it is now the default.
6102 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6103 (JvAllocObject): Renamed to _Jv_AllocObject.
6104 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6105 (loadClass): Renamed to _Jv_FindClass.
6106 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6107 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6108 * include/java-lang.h (JvGetArrayLength): New CNI function.
6109 * include/jvm.h (_Jv_FindClass): Added declaration.
6111 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6113 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6115 * java/lang/natClass.cc (getName): Add implementation.
6116 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6118 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6120 * Makefile.in: Rebuilt.
6121 * Makefile.am (.class.o): Added -fexceptions.
6123 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6125 * configure: Rebuilt.
6126 * configure.in: Don't check for __nanosleep.
6127 * posix-threads.cc (nanosleep): Never define.
6129 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6131 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6134 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6136 * java/lang/natThread.cc (enumerate): Uncommented.
6137 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6138 (interrupt): Call it.
6140 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6142 * configure: Rebuilt.
6143 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6145 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6147 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6148 * include/java-lang.h (Thread): Added `interrupted_' method.
6149 * java/lang/Thread.java (interrupted_): New method.
6150 * java/lang/natThread.cc (join): Possibly throw interrupted
6151 exception after join finishes.
6152 (interrupted_): New method.
6153 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6155 (JvPrivThreadJoin): New function.
6156 (really_start): Notify all threads waiting for this thread.
6157 (struct starter): Added `data' member.
6158 (JvPrivThreadStart): Set it.
6159 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6161 (JvPrivThreadJoin): No longer inline.
6162 (JvPrivThreadInterrupt): New function.
6164 * include/no-threads.h (JvPrivThreadSleep): Removed.
6165 * posix-threads.cc (JvPrivThreadSleep): Removed.
6167 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6169 * configure: Rebuilt.
6170 * configure.in (THREADOBJS): Initialize to no-threads.o in
6172 * posix-threads.cc (key): New global.
6173 (JvPrivInitThreads): New function.
6174 (really_start): Set thread-specific data to point to object.
6175 (JvPrivThreadStart): Added `daemon' argument.
6176 (JvPrivThreadSleep): Added `data' argument.
6177 * include/posix-threads.h (JvPrivInitThreads): Removed
6179 (JvPrivThreadCurrent): New function.
6180 * include/no-threads.h (JvPrivThreadInitData): Initialize
6181 JvPrivOnlyThread. Added `thread' argument.
6182 (JvPrivThreadCurrent): New function.
6183 (JvPrivThreadStart): Added `daemon' argument.
6184 * no-threads.cc: New file.
6185 * java/lang/natThread.cc (init_data): New function.
6187 (start): Set `alive' member.
6188 (stop_): Clear `alive' member.
6189 (destroy): Likewise.
6190 (currentThread): Implemented.
6191 (start): Pass `daemon' argument to JvPrivThreadStart.
6193 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6194 (Thread): Added `init_data' method.
6195 * java/lang/Thread.java (alive, data): New instance variables.
6196 (init_data): New private method.
6197 (isAlive): No longer native.
6199 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6201 * include/java-lang.h (JvRunMain): Declare.
6202 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6203 * prims.cc (JvRunMain): New function.
6204 (main_signature, main_name): New globals.
6206 * boehm.cc (mark_array): Use `elements' function and not
6207 operator[] on jarray.
6209 * posix-threads.cc: Include <config.h>. Define nanosleep if
6212 * configure: Rebuilt.
6213 * configure.in: Check for _nanosleep.
6215 * configure: Rebuilt.
6216 * configure.in: Check for pthread_mutexattr_settype.
6218 * include/cni.h (class JvSynchronize): New class.
6219 * java/lang/Thread.java (sleep): Throws InterruptedException.
6220 (join): Throws InterruptedException.
6221 (resume): Not native.
6222 (resume_): New method.
6223 (start): Now synchronized.
6224 (stop_): New method.
6225 (Thread): Synchronize when accessing threadNumber.
6227 * java/lang/natThread.cc (throwException): New macro.
6228 (sleep): Throw InterruptedException.
6231 * include/java-lang.h (Runtime): Added interrupted().
6233 * boehm.cc (call_finalizer): Correctly initialize jobj.
6234 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6236 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6239 * configure: Rebuilt.
6240 * configure.in: Added support for --disable-threads.
6241 * include/no-threads.h: New file.
6243 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6245 * Makefile.in: Rebuilt.
6246 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6247 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6248 (libjava_a_LIBADD): Added THREADOBJS.
6249 * configure: Rebuilt.
6250 * configure.in: Added --with-threads option.
6251 * posix-threads.cc: New file.
6252 * include/posix-threads.h: New file.
6253 * include/java-lang.h (Object): Added static member sync_mutex,
6254 member sync_info, method init_mutex.
6255 (struct JvSyncInfo): New struct.
6256 Include "java-threads.h".
6257 * prims.cc (soft_monitorenter): Wrote.
6258 (soft_monitorexit): Likewise.
6259 * java/lang/natObject.cc (init_mutex): New method.
6263 (sync_mutex): Define.
6264 Include "java-threads.h".
6266 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6268 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6269 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6271 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6273 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6274 Added extern "Java" in places to tell G++ Object is a "Java" type.
6275 Other minor renaming and fixes.
6276 * include/java-io.h (FileDescriptor): Add friend class declarations.
6277 G++ no longer allows non-Java types in method parameters and results
6278 of Java classes. Converted most offending methods to friends.
6279 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6280 * java/lang/natSystem.cc (setProperty): Make friend.
6281 * java/lang/natString.cc, include/java-lang.h (String): Rename
6282 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6283 * include/java-lang.h (JArray): Remove getData and eoprator[].
6284 Add elements friend function instead.
6285 * java/lang/natSystem.cc (arraycopy): Use elements function.
6286 * java/io/natFileDescriptor.cc (read, write): Likewise.
6287 * include/java-lang.h (Object): Remove unused make method.
6288 (System::setProperty(char*,char*)): Turn into friend function.
6289 (Class): Rename newObject by JvAllocObject.
6290 * prims.cc: Update to use JvAllocObject, and elements.
6292 * java/lang/natDouble.cc: Fix double -> jdouble.
6294 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6296 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6298 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6300 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6301 * include/java-lang.h (Runtime): finalize_on_exit and
6302 runFinalizersOnExit now static.
6303 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6305 (finalize_on_exit): Now static.
6307 * boehm.cc (mark_obj): Get class using getClass() method on
6309 (_dispatchTable): Removed.
6311 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6313 * java/io/natFileDescriptor.cc (open_read): Only call open if
6315 (open_write): Likewise.
6317 * Makefile.in: Rebuilt.
6318 * Makefile.am ($(nat_files)): Depend on config.h.
6320 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6322 * prims.cc (ObjectClass): Now a macro; updated for new class name
6324 (StringClass): Likewise.
6325 (ClassClass): Likewise.
6327 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6329 * java/io/natFileDescriptor.cc (available): Do nothing unless
6330 HAVE_SELECT defined.
6331 * java/util/natDate.cc (setTime): Conditional on
6333 (toString): Conditional on HAVE_TIME.
6334 * aclocal.m4, configure: Rebuilt.
6335 * acinclude.m4: New file.
6336 * configure.in: Don't actually call AM_EXEEXT. Call
6337 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6338 --with-target-subdir option. Check for select and open
6341 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6343 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6344 (call_finalizer): Likewise.
6345 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6346 * prims.cc (newObject): Pass actual method pointer to
6347 JvPrivRegisterFinalizer.
6348 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6349 (JvPrivRegisterFinalizer): Changed interface.
6351 * Makefile.in: Rebuilt.
6352 * Makefile.am (MOSTLYCLEANFILES): New macro.
6353 (CLEANFILES): Removed javao_files.
6355 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6357 * nogc.cc: New file.
6358 * Makefile.in: Rebuilt.
6359 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6360 (EXTRA_libjava_a_SOURCES): New macro.
6361 (libjava_a_SOURCES): Removed boehm.cc.
6362 (libjava_a_DEPENDENCIES): Added GCOBJS.
6363 (libjava_a_LIBADD): Likewise.
6364 * configure: Rebuilt.
6365 * configure.in: Added code for --enable-gc=TYPE.
6367 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6369 * boehm.cc (mark_array): Don't further dereference pointer from
6372 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6373 * Makefile.in: Rebuilt.
6374 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6375 one for boehm-gc build directory.
6377 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6379 * include/java-lang.h (finalize_on_exit): New instance variable in
6380 java::lang::Runtime.
6381 (runFinalizersOnExit): New method.
6382 * java/lang/Runtime.java (finalize_on_exit): New instance
6384 (runAllFinalizers_): New private method.
6385 (runFinalizersOnExit): New method.
6386 * boehm.cc (JvPrivRunFinalizers): New function.
6387 (JvPrivRunAllFinalizers): Likewise.
6388 (JvPrivRunGC): Likewise.
6389 * java/lang/natRuntime.cc: Include "jvm.h".
6390 (gc): Call JvPrivRunGC.
6391 (runFinalization): Call JvPrivRunFinalizers.
6392 (runFinalizersOnExit): New method.
6393 (exit_): Call JvPrivRunAllFinalizers if required.
6394 * include/jvm.h: Declare JvPrivRunFinalizers,
6395 JvPrivRunAllFinalizers, JvPrivRunGC.
6397 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6399 * boehm.cc (JvPrivRegisterFinalizer): New function.
6400 (call_finalizer): Likewise.
6401 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6402 * prims.cc (finalize_name): New global.
6403 (newObject): Just call other newObject.
6404 (newObject): Register finalizer if it exists.
6406 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6408 * prims.cc (gc_malloc): Removed.
6409 (makeUtf8Const): Use JvPrivAllocBytes.
6410 (lookupArray): Likewise.
6411 (newPrimArray): Likewise.
6412 (JvNewObjectArray): Use JvPrivAllocArray.
6413 (newObject): Use JvPrivAllocObj.
6414 (newObject): Likewise.
6415 Changed Method -> JvMethod everywhere.
6416 Changed Field -> JvField everywhere.
6417 * include/java-lang.h (Object): Changed type of `fields' to
6419 (jmethodID, jfieldID): New typedefs.
6420 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6422 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6424 (METHOD_NATIVECODE): Moved from java-lang.h.
6425 (class JvField): New class.
6426 (JvGetFirstInstanceField): New function.
6427 (JvFieldIsRef): Likewise.
6428 (JvGetObjectField): Likewise.
6429 (JvNumInstanceFields): Likewise.
6431 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6433 * boehm.cc: New file.
6434 * Makefile.in: Rebuilt.
6435 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6436 (INCLUDES): Added -I options to find boehm-gc files.
6438 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6440 * configure: Rebuilt.
6441 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6443 * Makefile.in: Rebuilt.
6444 * Makefile.am (nat_files): New macro.
6445 (libjava_a_DEPENDENCIES): Use it.
6446 (libjava_a_LIBADD): Likewise.
6447 ($(nat_files)): New static pattern rule.
6448 (class_files): Run separate find to find .class files.
6449 (javao_files): Compute based on class_files.
6450 (BUILT_SOURCES): New macro.
6452 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6454 * Makefile.am (java_files): New macro.
6455 (class_files): Likewise.
6456 (javao_files): Likewise.
6457 (libjava_a_DEPENDENCIES): Include $(javao_files).
6458 (libjava_a_LIBADD): Likewise.
6459 (classes.stamp): Depend on $(java_files); only recompile changed
6462 (CLEANFILES): Don't run find; use macros. Don't mention
6464 (.class.o): New target.
6465 (compiled.stamp): Removed.
6467 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6469 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6470 LineNumberReader}>java: Newly-implemented standard classes.
6472 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6474 * Makefile.in: Rebuilt.
6475 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6477 * Makefile.in: Rebuilt.
6478 * Makefile.am (hack): New macro.
6479 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6481 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6483 * include/config.h.in: New file.
6484 * include/config.h: Removed.
6485 * acconfig.h: New file.
6486 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6487 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6488 libjava_a_LIBADD): New macros.
6489 (INCLUDES): New macro.
6492 (SUFFIXES): Removed.
6494 (libjava.a): Removed.
6496 * configure: Rebuilt.
6497 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6498 Look for headers and functions we require. Create
6501 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6503 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6504 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6505 soft_lookupinterfacemethod): New functions.
6506 (PrimClass): Actually initialize the primitive classes.
6507 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6509 * include/java-util.h: Removed java::util definition.
6510 * include/cni.h: Moved java::util here and added Properties.
6511 Added more function prototypes.
6512 * include/java-lang.h: Added mroe methods and friend declarations.
6513 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6514 * include/jvm.h (strLengthUtf8): Add declaration.
6516 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6518 * java/lang/{Byte,Short,Void}.java: New classes.
6519 * java/lang/Character.java (isJavaIdentifierStart,
6520 JavaIdentifierPart): New static methods.
6521 * java/lang/Number.java (byteValue, shortValue): New methods.
6523 * java/lang/String.java (intern, hashCode): Make native.
6524 * java/lang/natString.cc: New file. Handle the string pool.
6525 * Makefile.am: Build natString.o. Use CXXFLAGS.
6527 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6528 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
6529 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
6530 * java/lang/System.java (setProperty): New private method.
6531 (initProperties): Take argument, and make native.
6532 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
6533 (currentTimeMillis): Make more robust.
6535 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
6536 * java/io/UnsupportedEncodingException.java: New exception class.
6538 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
6539 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
6541 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
6543 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
6544 * prims.cc: Added bunch of stuff.
6545 * include/cni.h: Added various definitions.
6546 * include/java-lang.h: Added Method, various friends, some macros.
6548 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
6549 * java/lang/System.java (arraycopy): Make native.
6551 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
6553 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6554 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
6555 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
6556 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6558 * java/lang/Runtime.java: Declare methods as native instead of
6560 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
6561 * java/lang/System.java: Comment out some stuff, for now.
6562 * java/lang/Thread.java: Re-write. Use native methods.
6563 * java/lang/NativeLang.java: Remove most of it.
6565 * java/util/natDate.cc: Native (C++) methods for Date.
6566 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
6567 * java/util/Date.java: Complete re-write.
6569 * java/io/io-defs.h: New header file.
6570 * java/io/FileDescriptor.java: Add a bunch of private methods,
6571 mostly moved from NativeIO.java and natNativeIO.cc.
6572 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
6573 * java/io/File.java: Use new code.
6574 * java/io/{FileInputStream.java.FileOutputStream.java,
6575 RandomAccessFile.java}: Use new private FileDescriptor methods.
6576 * java/io/NativeIO.java: Removed, no longer used.
6578 * java/io/StreamTokenizer.java (numericChars): Make char array.
6580 * include/*.h: Various header files used by the C++ native code.
6582 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
6583 New autoconf+automake-based setup.
6584 * prims.cc: New file for Java "primitives".