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