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