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