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