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