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