OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [ChangeLog-1999] - Blame information for rev 18

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
1999-12-21  Per Bothner  
2
 
3
        * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
4
        offset in new Method.
5
 
6
1999-12-22  Bryce McKinlay  
7
 
8
        * java/lang/natObject.cc (notify): Throw message with
9
        IllegalMonitorStateException.
10
        (notifyAll): Ditto.
11
        (wait): Ditto.
12
        * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
13
        (isInterrupted_): New function, which does clear interrupt_flag.
14
        (interrupt): Use `isInterrupted_'.
15
        * java/lang/natThread.cc (interrupt): Add comment.
16
        (join): Set `prev' in joiner loop.
17
        Change various calls to `isInterrupted' to use `isInterrupted_'.
18
        * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
19
        on linux. Set result to 0 on an interrupt. Test interrupted status
20
        of java Thread object directly.
21
        FLAG_INTERRUPTED: removed.
22
        (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
23
        (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
24
        (_Jv_InitThreads): Don't block SIGINT.
25
        (_Jv_ThreadWait): Don't configure SIGINT handler.
26
 
27
1999-12-21  Tom Tromey  
28
 
29
        * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
30
 
31
1999-12-20  Tom Tromey  
32
 
33
        * java/lang/reflect/Modifier.java (STRICT): New constant.
34
        (isStrict): New method.
35
        (toString): Added `strict'.
36
 
37
1999-12-23  Anthony Green  
38
 
39
        * configure: Rebuilt.
40
        * configure.in (LIBDATASTARTSPEC): Force data_start in with
41
        linker trick.
42
 
43
1999-12-19  Anthony Green  
44
 
45
        * libgcjdata.c: New file.
46
        * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
47
        * configure: Rebuilt.
48
        * configure.in (LIBDATASTARTSPEC): Force data with a known name
49
        into the program.
50
        * Makefile.in: Rebuilt.
51
        * Makefile.am: Build libgcjdata.a.
52
 
53
        * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
54
        * configure: Rebuilt.
55
        * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
56
        into every program.
57
 
58
1999-12-17  Tom Tromey  
59
 
60
        * java/lang/reflect/Method.java (toString): Call getType if
61
        required.  Partial fix for PR libgcj/111.  From Per Bothner.
62
 
63
        * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
64
 
65
1999-12-16  Bryce McKinlay  
66
 
67
        * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
68
        null String constructor parameter.
69
        * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
70
        for exception messages.
71
        BooleanClass: declare.
72
        (setOption): Use BooleanClass instead of Class.forName() for
73
        instanceof test.
74
        (bind): Cast 4th parameter of setsockopt to `char *' for
75
        compatibility with older Solaris headers.
76
        * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
77
        sprintf calls for exception messages.
78
        BooleanClass, IntegerClass: declare.
79
        (setOption): Use BooleanClass and IntegerClass, not Class.forName()
80
        for instanceof test.
81
 
82
1999-12-15  Tom Tromey  
83
 
84
        * java/lang/natSystem.cc (init_properties): Don't set user.name or
85
        user.home if NO_GETUID defined.  Only set user.dir if getcwd
86
        exists.
87
 
88
        * include/config.h.in: Rebuilt.
89
        * acconfig.h (NO_GETUID): New define.
90
        * configure.in: Rebuilt.
91
        * configure.in: Define NO_GETUID in cross case.  Check for getcwd
92
        in native case.
93
 
94
1999-12-08  Tom Tromey  
95
 
96
        * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
97
        where no recursive mutexes exist.  Fixes PR libgcj/117.
98
 
99
1999-12-05  Anthony Green  
100
 
101
        * include/jvm.h: Declare many functions with
102
        __attribute__((__malloc__)).
103
        * gcj/javaprims.h: Ditto.
104
 
105
Thu Dec  2 17:26:47 1999  Anthony Green  
106
 
107
        * THANKS: Giving credit where credit is due.
108
 
109
1999-12-02  Bryce McKinlay  
110
 
111
        * java/net/ServerSocket.java (ServerSocket): Bind to any interface
112
        if bindAddr is null.
113
        * java/lang/natString.cc (equalsIgnoreCase): return false if
114
        anotherString is null.
115
        * java/lang/Boolean.java (valueOf): return FALSE if argument is
116
        null.
117
 
118
1999-11-30  Tom Tromey  
119
 
120
        * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
121
        mutex to initialize.  Initialize `count' if required.
122
        Fixes PR libgcj/98.
123
 
124
1999-11-27  Per Bothner  
125
 
126
        * exception.cc:  Remove prototype declarations for malloc and free.
127
        These clash with recent versions of glibc, which specifies `throws ()'
128
        when __cplusplus is defined.  Instead, #include .
129
 
130
1999-11-24  Tom Tromey  
131
 
132
        * prims.cc (_Jv_NewObjectArray): Use
133
        _Jv_GetArrayElementFromElementType.
134
        (_Jv_NewPrimArray): Likewise.
135
        * java/lang/natObject.cc (clone): Use
136
        _Jv_GetArrayElementFromElementType instead of sizeof.
137
        * java/lang/natSystem.cc (arraycopy): Use
138
        _Jv_GetArrayElementFromElementType.
139
        * include/jvm.h (_Jv_GetArrayElementFromElementType): New
140
        function.
141
 
142
1999-11-23  Bryce McKinlay  
143
 
144
        * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
145
        Exception messages. PR java.net/57.
146
        (bind): set SO_REUSEADDR before bind.
147
        * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
148
        overruns. PR java.net/57.
149
 
150
1999-11-19  Tom Tromey  
151
 
152
        * Makefile.am (DIVIDESPEC): Removed.
153
        (EXCEPTIONSPEC): Removed.
154
 
155
1999-11-19  Andrew Haley  
156
 
157
        * Makefile.am (JCFLAGS): Add -L$(here)
158
        (JC1FLAGS): Ditto.
159
        * Makefile.in: Rebuild.
160
 
161
1999-11-18  Tom Tromey  
162
 
163
        * java/lang/natDouble.cc: Include .
164
 
165
        * include/config.h.in: Rebuilt.
166
        * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
167
        * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
168
        targets.
169
        * configure: Rebuilt.
170
        * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
171
        requested by configure.host.  Don't put `-D' option into
172
        libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
173
 
174
        * configure: Rebuilt.
175
        * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
176
        sjlj-exceptions.
177
 
178
1999-11-18  Andrew Haley  
179
 
180
        * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
181
        (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
182
        (JC1FLAGS): Ditto.
183
        * Makefile.in: Rebuild
184
        * acconfig.h: remove SJLJ_EXCEPTIONS
185
        * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
186
        Do not AC_DEFINE SJLJ_EXCEPTIONS.
187
        * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
188
        * gcj/Makefile.in, include/Makefile.in: rebuild.
189
        * include/config.h.in: remove SJLJ_EXCEPTIONS.
190
 
191
1999-11-18  Andrew Haley  
192
 
193
        * gij.cc (main): Rename label to prevent conflict.
194
 
195
        * exception.cc (_Jv_type_matcher): Don't check the table if we're
196
        using setjmp/longjmp exceptions: there isn't one.
197
 
198
1999-11-17  Andrew Haley  
199
 
200
        * exception.cc (_Jv_type_matcher): Ignore null exception tables.
201
        (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
202
        (__sjthrow): Add declaration.
203
        * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
204
        (JC1FLAGS): Ditto
205
        (AM_CFLAGS): Ditto
206
        (AM_CXXFLAGS): Ditto
207
        * Makefile.in: Rebuild
208
        * acconfig.h: Add SJLJ_EXCEPTIONS
209
        * configure.in: Add SJLJ_EXCEPTIONS
210
        * configure: Rebuild.
211
        * gcj/Makefile.in: Rebuild.
212
        * gcj/cni.h: Add support for sjlj-exceptions.
213
        * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
214
        * include/Makefile.in: Rebuild.
215
        * include/default-signal.h: Add support for sjlj-exceptions.
216
 
217
1999-11-18  Tom Tromey  
218
 
219
        * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
220
 
221
        * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
222
        minus 1.
223
        (method_cache): Made larger.
224
 
225
1999-11-11  Tom Tromey  
226
 
227
        * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
228
        initializing mutex.  Initialize `count' when required.
229
 
230
1999-11-07  Anthony Green  
231
 
232
        * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
233
        data correctly.
234
 
235
1999-11-05  Tom Tromey  
236
 
237
        * java/lang/natThread.cc (destroy): Removed incorrect comment.
238
 
239
1999-11-05  Jeff Sturm  
240
 
241
        * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
242
        * prims.cc (parse_heap_size): Use end, not spec.  Use 1024
243
        multipler for `k'.
244
 
245
1999-11-05  Tom Tromey  
246
 
247
        * java/lang/natThread.cc (stop): Removed argument name.
248
 
249
        * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
250
        `private'; now has default access.
251
        * Makefile.in: Rebuilt.
252
        * Makefile.am (java/lang/ThreadGroup.h): Removed.
253
 
254
1999-11-04  Tom Tromey  
255
 
256
        * java/lang/natClass.cc (method_cache_count): Removed.
257
        (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
258
        (_Jv_AddMethodToCache): Don't loop.
259
 
260
        * configure.in: Removed `qt' threads case.
261
        * include/quick-threads.h: Removed.
262
        * quick-threads.cc: Removed.
263
 
264
        * include/quick-threads.h (_Jv_ThreadCancel): Removed.
265
        (_Jv_ThreadDestroy): Likewise.
266
        * include/no-threads.h (_Jv_ThreadCancel): Removed.
267
        (_Jv_ThreadDestroy): Likewise.
268
        * include/posix-threads.h (struct _Jv_Thread_t): Removed
269
        `exception' field.
270
        (_Jv_ThreadCancel): Removed decl.
271
        (_Jv_ThreadDestroy): Removed.
272
        * posix-threads.cc (_Jv_ThreadCancel): Removed.
273
        (throw_cleanup): Removed.
274
        (really_start): Don't push or pop cleanup.
275
        (_Jv_ThreadInitData): Don't initialize `exception' field.
276
        * java/lang/Thread.java (stop): Officially unimplemented.
277
        * java/lang/natThread.cc (stop): Officially unimplemented.
278
 
279
1999-11-02  Bryce McKinlay  
280
 
281
        * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
282
        instead.
283
 
284
1999-11-02  Tom Tromey  
285
 
286
        * boehm.cc: Don't include boehm-config.h.
287
 
288
1999-11-01  Tom Tromey  
289
 
290
        * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
291
        (sum_blocks): Removed.
292
        (_Jv_GCFreeMemory): Use GC_get_free_bytes.
293
 
294
1999-11-01  Bryce McKinlay  
295
 
296
        * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
297
          before "super".
298
        * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
299
        * java/io/InputStreamReader (InputStreamReader): ditto.
300
 
301
1999-10-22  Tom Tromey  
302
 
303
        * Makefile.in: Rebuilt.
304
        * Makefile.am (java/lang/ClassLoader.h): New target.
305
        * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
306
        to `redirect'.
307
 
308
        * include/java-props.h (_Jv_Compiler_Properties): Changed
309
        declaration.
310
        * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
311
        * include/jvm.h (_Jv_GCSetInitialHeapSize,
312
        _Jv_GCSetMaximumHeapSize): Declare.
313
        (JvRunMain, _Jv_RunMain): Declare.
314
        (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
315
        * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
316
        (_Jv_GCSetMaximumHeapSize): Likewise.
317
        * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
318
        (_Jv_GCSetMaximumHeapSize): Likewise.
319
        * prims.cc (parse_heap_size): New function.
320
        (_Jv_SetInitialHeapSize): Likewise.
321
        (_Jv_SetMaximumHeapSize): Likewise.
322
        (_Jv_Compiler_Properties): New global.
323
        * gij.cc (help): New function.
324
        (version): Likewise.
325
        (heap_size): Likewise.
326
        (heap_max_size): Likewise.
327
        (main): Parse arguments.  Set _Jv_Compiler_Properties.
328
        Include , .
329
        (_Jv_Compiler_Properties): Removed.
330
 
331
1999-10-18  Tom Tromey  
332
 
333
        * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
334
        method.
335
        (redirect): New static field.
336
        * java/lang/ClassLoader.java (getSystemClassLoader): Now
337
        native
338
        (getVMClassLoader0): Removed.
339
        * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
340
        (redirect): Removed.
341
        (getSystemClassLoader): Implemented.
342
 
343
1999-10-16  Anthony Green  
344
 
345
        * java/lang/ClassLoader.java (getSystemResource): Use
346
        getSystemClassLoader instead of ClassLoader.system.
347
        (getSystemResourceAsStream): Ditto.
348
 
349
        * java/lang/natClassLoader.cc (redirect): Make static and
350
        remove #ifdef INTERPRETER so it is always defined.
351
        (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
352
        returns a VMClassLoader.
353
 
354
        * java/util/ResourceBundle.java (trySomeGetBundle): Create a
355
        PropertyResourceBundle if a properties file is found before a
356
        ResourceBundle class.
357
 
358
1999-10-15  Tom Tromey  
359
 
360
        * gij.cc (main): Formatting fixes.
361
        (_Jv_Compiler_Properties): Define.
362
        * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
363
        declare.
364
        (init_properties): Set properites from _Jv_Compiler_Properties.
365
        * include/java-props.h (_Jv_Compiler_Properties,
366
        _Jv_Environment_Properties): Declare.
367
 
368
        * include/java-props.h: Added copyright.
369
 
370
1999-10-13  Anthony Green  
371
 
372
        * libtool-version: Catch up by incrementing current.
373
 
374
        * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
375
        * configure, include/config.h.in: Rebuilt.
376
        * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
377
        * configure.in: Added --disable-getenv-properties and new define
378
        `DISABLE_GETENV_PROPERTIES'.
379
 
380
        * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
381
        (next_property_key): New function.
382
        (next_property_value): New function.
383
        (process_gcj_properties): New function.
384
        (JvRunMain): Call process_gcj_properties.
385
        (_JvRunMain): Ditto.
386
 
387
        * java/lang/natSystem.cc (init_properties): Set properties defined
388
        in GCJ_PROPERTIES.
389
 
390
        * include/java-props.h: New file.
391
 
392
        * java/lang/natSystem.cc (init_properties): Add new properties to
393
        conform with Java Product Versioning Specification.
394
 
395
1999-10-12  Tom Tromey  
396
 
397
        * configure: Rebuilt.
398
        * configure.in: Fixed test for --disable-java-net.
399
 
400
1999-10-06  Tom Tromey  
401
 
402
        * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
403
        when building Canadian cross.
404
        (NATIVE): Don't define when cross-compiling.
405
 
406
1999-10-04  Tom Tromey  
407
 
408
        * java/net/natPlainSocketImpl.cc: Don't include headers if
409
        java.net is disabled.
410
 
411
        * Makefile.in: Rebuilt.
412
        * Makefile.am (ZINCS): Removed.  This is defined in configure.in
413
        when needed, and must be left empty when not needed.
414
 
415
1999-10-01  Anthony Green  
416
 
417
        * THANKS: Refreshed from htdocs version.
418
 
419
1999-10-01  Steve Chamberlain  
420
 
421
        * Makefile.in: Rebuilt.
422
        * Makefile.am (ZINCS): Define
423
 
424
        * configure: Rebuilt.
425
        * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
426
 
427
        * java/lang/ieeefp.h: Add definitions for picoJava.
428
 
429
1999-10-01  Tom Tromey  
430
 
431
        * configure: Rebuilt.
432
        * configure.in: Set classpath when invoking gcj.  Use changequote
433
        around sed invocation.
434
 
435
        * java/net/natPlainSocketImpl.cc: Stub native functions if
436
        DISABLE_JAVA_NET is defined.
437
        * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
438
        typo in exception string.
439
        (getTimeToLive): Likewise.
440
        Stub native functions if DISABLE_JAVA_NET is defined.
441
        * java/net/natInetAddress.cc: Stub native functions if
442
        DISABLE_JAVA_NET is defined.
443
        * configure.host: Disable java.net for mips-tx39.
444
        * configure, include/config.h.in: Rebuilt.
445
        * acconfig.h (DISABLE_JAVA_NET): Undefine.
446
        * configure.in: Added --disable-java-net and new define
447
        `DISABLE_JAVA_NET'.
448
 
449
1999-09-30  Tom Tromey  
450
 
451
        * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
452
 
453
1999-09-29  Bryce McKinlay  
454
 
455
        * README: New file.
456
 
457
1999-09-28  Tom Tromey  
458
 
459
        * configure: Rebuilt.
460
        * configure.in (PROCESS): In POSIX case, only set if not already
461
        set.
462
        * configure.host (PROCESS): Set in mips-tx39 case.
463
 
464
        * aclocal.m4, configure: Rebuilt.
465
        * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
466
        appropriate AC_PROG_ symbol.
467
 
468
1999-09-24  Tom Tromey  
469
 
470
        * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
471
        `void *'.
472
        (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
473
 
474
        Fix for PR java.util/47:
475
        * configure, include/config.h: Rebuilt.
476
        * configure.in: Don't look for ctime or ctime_r.
477
        * Makefile.in: Rebuilt.
478
        * Makefile.am (nat_source_files): Don't mention natDate.cc.
479
        * java/util/natDate.cc: Removed.
480
        * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
481
        static fields.
482
        (getAvailableIDs): Rewrote.
483
        (getTimeZone): Rewrote.
484
        * java/util/Date.java (toGMTString): New method.
485
        (toLocaleString): New method.
486
        (toString): Rewrote.
487
 
488
1999-09-23  Tom Tromey  
489
 
490
        * configure: Rebuilt.
491
        * configure.in: Print message when checking to see if gcj can
492
        handle -fuse-divide-subroutine.
493
 
494
        * java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
495
        dead code.
496
        * java/lang/FirstThread.java (run0): Renamed to `run'.
497
        (run): Removed.
498
 
499
        * prims.cc (main_init): New function.
500
        (JvRunMain): Call it.
501
        (_Jv_RunMain): Likewise.
502
        Include .
503
        (main_init): Ignore SIGPIPE.  Fixes PR 51.
504
 
505
1999-09-22  Tom Tromey  
506
 
507
        * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
508
 
509
1999-09-16  Bryce McKinlay  
510
 
511
        * java/text/MessageFormat.java (MessageFormat(String)): Set the
512
        default locale.
513
        * java/text/NumberFormat.java: Check that object is a Number. If
514
        not, throw IllegialArgumentException.
515
 
516
1999-09-21  Tom Tromey  
517
 
518
        * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
519
        both `inlength' and `bytes_todo' are 0.  Simplified 2-byte case.
520
 
521
        * include/posix-threads.h (_Jv_MutexDestroy): Use
522
        _Jv_PthreadGetMutex.
523
        (_Jv_MutexLock): Likewise.
524
        (_Jv_MutexUnlock): Likewise.
525
 
526
        * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
527
        previous patch; it too was incorrect.
528
        * java/io/PrintStream.java (PrintStream): Likewise.
529
 
530
        * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
531
        refer to `this' before calling superclass constructor.
532
        * java/io/PrintStream.java (PrintStream): Don't refer to `this'
533
        before calling superclass constructor.
534
 
535
1999-09-20  Tom Tromey  
536
 
537
        * configure: Rebuilt.
538
        * configure.in: Send output of `-fuse-divide-subroutine' test
539
        compilation to /dev/null.
540
 
541
1999-09-14  Tom Tromey  
542
 
543
        * include/java-insns.h: Turned constants into an enum.  Added
544
        multiple-inclusion protection.
545
 
546
1999-09-10  Tom Tromey  
547
 
548
        * configure: Rebuilt.
549
        * configure.in: Build include/Makefile.
550
        * Makefile.in: Rebuilt.
551
        * Makefile.am (SUBDIRS): Added gcj and include.
552
        (install-data-local): New target.
553
        (extra_headers): New macro.
554
        * include/Makefile.in: New file.
555
        * include/Makefile.am: New file.
556
 
557
        * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
558
        * java/lang/reflect/natField.cc: Don't include gcj/field.h or
559
        gcj/cni.h.
560
        * boehm.cc: Don't include java-threads.h or gcj/field.h.
561
        * resolve.cc: Include config.h.
562
        * defineclass.cc: Include config.h.
563
        * include/java-interp.h: Don't include config.h.
564
        * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
565
        cni.h.
566
 
567
        * gcj/javaprims.h: Regenerated namespace decls.
568
        * classes.pl (scan): Don't put `;' after closing brace.
569
 
570
        * Makefile.in: Rebuilt.
571
        * Makefile.am (INCLUDES): Added -I for top_srcdir.
572
        * configure.in: Create gcj/Makefile.
573
        * gcj/Makefile.in: New file.
574
        * gcj/Makefile.am: New file.
575
        * java/lang/Object.h: Don't include any other headers.
576
        * gcj/array.h: Renamed from include/java-array.h.
577
        * gcj/field.h: Renamed from include/java-field.h.
578
        * gcj/method.h: Renamed from include/java-method.h.
579
        * gcj/cni.h, gcj/javaprims.h: Moved from include/.
580
        Updated all files to reflect new include structure.
581
 
582
1999-09-09  Tom Tromey  
583
 
584
        * configure: Rebuilt.
585
        * configure.in: Fixed typo; variable is THREADSPEC and not
586
        THREADSPECS.
587
 
588
1999-09-08  Tom Tromey  
589
 
590
        * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
591
        previous change and implemented a correct test in the __m_count
592
        case.
593
 
594
        * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
595
        in __m_count case.
596
 
597
1999-09-07  Tom Tromey  
598
 
599
        * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
600
        code and don't set errno.
601
 
602
        * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
603
        not `r'.  Changed `done_sleeping' to a `bool'.
604
 
605
1999-09-07  Matt Welsh 
606
 
607
        * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
608
        Added FLAG_INTERRUPTED to indicate that a thread was interrupted
609
        by another thread, rather than by the GC.
610
        (_Jv_CondWait): Prevent premature thread wakeup by GC.
611
        (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
612
        * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
613
        function.
614
 
615
1999-09-03  Tom Tromey  
616
 
617
        * configure: Rebuilt.
618
        * configure.in: Check for fstat function.
619
        * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
620
        FIONREAD fails.
621
 
622
1999-09-02  Tom Tromey  
623
 
624
        * include/java-array.h (jobjectArrayjchar): Removed unused
625
        declaration.
626
 
627
        * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
628
        _Jv_PrepareCompiledClass while holding class mutex.
629
 
630
1999-09-01  Tom Tromey  
631
 
632
        * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
633
        (_Jv_PthreadGetMutex): Use it.
634
        (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
635
        (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
636
        (_Jv_MutexLock): Likewise.
637
        (_Jv_MutexUnlock): Likewise.
638
        * include/config.h.in: Rebuilt.
639
        * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
640
        PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
641
        * configure: Rebuilt.
642
        * libgcj.spec.in: Don't mention INTERPSPEC.
643
        * configure.in (INTERPSPEC): Removed.
644
        Only run pthreads-related checks when using POSIX threads.  Check
645
        for m_count and __m_count in mutex structure.
646
 
647
1999-09-01  Matt Welsh 
648
 
649
        * java/lang/natClass.cc: Fixed notification of threads
650
        when class initialization is complete.
651
 
652
1999-09-01  Tom Tromey  
653
 
654
        * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
655
        * resolve.cc: Removed constants defined by
656
        java.lang.reflect.Modifier.
657
        Include .
658
        (_Jv_ResolvePoolEntry): Use values from Modifier.
659
        (_Jv_DetermineVTableIndex): Likewise.
660
        (_Jv_PrepareClass): Likewise.
661
        (ncode): Likewise.
662
        * defineclass.cc (_Jv_ClassReader): Removed constants defined by
663
        java.lang.reflect.Modifier.
664
        Include .
665
        (checkExtends): Use values from Modifier.
666
        (checkImplements): Likewise.
667
        (handleField): Likewise.
668
        (handleConstantValueAttribute): Likewise.
669
        (handleFieldsEnd): Likewise.
670
        (handleMethod ): Likewise.
671
        (handleMethodsEnd): Likewise.
672
        (handleClassBegin): Likewise.
673
        * interpret.cc: Removed constants defined by
674
        java.lang.reflect.Modifier.
675
        (continue1): Use values from Modifier.
676
        * java/lang/natClassLoader.cc: Removed constants defined by
677
        java.lang.reflect.Modifier.
678
 
679
        * java/lang/natClassLoader.cc (_Jv_NewClass): Use
680
        JV_STATE_NOTHING, not `0'.
681
        * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
682
 
683
        * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
684
        * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
685
        except on Linux.
686
        (_Jv_PthreadGetMutex): New function.
687
        (_Jv_PthreadCheckMonitor): Use it.
688
        (_Jv_MutexInit): Likewise.  ALso, initialize `count'.
689
        (_Jv_MutexLock): Update `count'.
690
        (_Jv_MutexUnlock): Likewise.
691
        (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
692
        appropriate.
693
 
694
1999-09-01  Kresten Krab Thorup  
695
 
696
        * Makefile.am (.java.lo): Add rule.
697
 
698
        * Makefile.in: Rebuilt.
699
 
700
1999-09-01  Tom Tromey  
701
 
702
        * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
703
        * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
704
        function.
705
        (_Jv_CondNotify): Use it.
706
        (_Jv_CondNotifyAll): Likewise.
707
 
708
        * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
709
 
710
1999-08-31  Tom Tromey  
711
 
712
        * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
713
        declaration.
714
 
715
1999-08-24  Bryce McKinlay  
716
 
717
        * posix-threads.cc: Include .
718
 
719
1999-08-23  Tom Tromey  
720
 
721
        * boehm.cc: Undefine TRUE and FALSE.
722
 
723
        * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
724
 
725
1999-08-21  Tom Tromey  
726
 
727
        * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
728
        result.  PR 40.
729
 
730
1999-08-21  Alexandre Oliva  
731
 
732
        * configure.in: Check for in_addr_t in netinet/in.h too.  Check
733
        for ip_mreq too.
734
        * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
735
        (HAVE_STRUCT_IP_MREQ): Added.
736
        * configure, include/config.h.in: Rebuilt.
737
        * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
738
        if needed.
739
        * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
740
        Disable if ip_mreq is not available.
741
 
742
        * configure.in: Check types ssize_t and in_addr_t.
743
        * acconfig.h: Undefine them.
744
        * configure, include/config.h.in: Rebuilt.
745
 
746
        * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
747
        function that detects the signature of getpwuid_r.
748
        (init_properties): Use it.
749
        * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
750
        (toString): Use it.
751
 
752
1999-08-20  Kresten Krab Thorup  
753
 
754
        * interpret.cc (continue1): Implement explicit dispatch table.
755
        insn_target: Explicit interpreter switch table.
756
        SAVE_PC: New macro, moves pc saving code into instructions that
757
        require so.
758
        NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
759
        PC_REGISTER_ASM: New macro.
760
        INLINE_SWITCH: New macro.  Constrols dispatching strategy.
761
        opcode: Remove local variable.
762
        {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
763
        (POKEI): Use _Jv_word.
764
        (iinc): Use _Jv_word.
765
        (dupx): Change reference argument (sp) to pointer.
766
        (jvdump): Remove
767
 
768
        * interpret.cc: Remove instruction timing instrumentation.
769
 
770
        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
771
        comment.  Don't use _Jv_ClassNameSamePackage.
772
 
773
        * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
774
        URLPathEntry, CacheEntry}: Removed.
775
 
776
        * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
777
        package.
778
        (.java.lo): Rule removed.
779
 
780
        * Makefile.in: Rebuilt.
781
 
782
1999-08-19  Tom Tromey  
783
 
784
        * java/lang/natThread.cc (class locker): New class.
785
        (join): Use a locker around _Jv_CondWait.
786
        (sleep): Likewise.
787
 
788
1999-08-18  Tom Tromey  
789
 
790
        * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
791
        * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
792
 
793
1999-08-18  Tom Tromey  
794
 
795
        * include/javaprims.h ("Java"): Regenerated namespace decls.
796
 
797
1999-08-18  Kresten Krab Thorup  
798
 
799
        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
800
        from _Jv_InternClassStrings.
801
 
802
        * prims.cc (_Jv_RunMain): New function.
803
        (JvRunMain): Remove gij-support.
804
 
805
        * gij.cc (main): Use _Jv_RunMain.
806
 
807
        * java/util/zip/ZipFile.java: Call readDirectory in constructor.
808
 
809
        * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
810
        argument in temp variable.
811
        (continue1): For all op_x2y insns, use temp variable for
812
        intermediate value.  Also remove some comments.
813
 
814
        * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
815
        (forName): Don't call _Jv_InitClass.
816
 
817
        * java/lang/Class.java (getResource,getResourceAsStream): Implement.
818
 
819
        * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
820
 
821
        * java/util/jar/JarInputStream.java: New file.
822
 
823
        * java/util/jar/JarEntry.java: New file.
824
 
825
        * java/util/jar/JarFile.java: New file.
826
 
827
        * java/net/URLClassLoader.java: New file.
828
 
829
        * java/net/JarURLConnection.java: New file.
830
 
831
        * gnu/gcj/protocol/jar/Handler.java: New file.
832
 
833
        * gnu/gcj/protocol/jar/Connection.java: New file.
834
 
835
        * java/security/SecureClassLoader.java: New file.
836
 
837
        * java/lang/ClassLoader.java (parent): New variable.
838
        (ClassLoader (ClassLoader)): new constructor.
839
        (findClass): New method.
840
        (loadClass): Add default 1.2 implementation.
841
        (getSystemResourceAsBytes, getResourceAsBytes): Removed.
842
        (readfully): Removed.
843
 
844
        * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
845
        (findSystemClass): New method.
846
        (VMClassLoader): Constructor rewritten.
847
        (init): New method.
848
        All other methods removed.
849
 
850
        * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
851
        to gnu::gcj::runtime::VMClassLoader.
852
        (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
853
        class entries.
854
        (VMClassLoader::findSystemClass): renamed from findBootClass.
855
 
856
        * Makefile.am: Add new files.
857
        (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
858
 
859
        * Makefile.in: Rebuilt.
860
 
861
1999-08-17  Tom Tromey  
862
 
863
        * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
864
        nano.
865
        * include/quick-threads.h (_Jv_CondWait): Don't round to 0
866
        inappropriately.
867
 
868
1999-08-16  Tom Tromey  
869
 
870
        * configure: Rebuilt.
871
        * configure.in: Set DIVIDESPEC to empty string if compiler does
872
        not support -fuse-divide-subroutine.
873
 
874
1999-08-14  Per Bothner  
875
 
876
        * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
877
        * java/lang/natClass.cc (initializeClass): Likewise.
878
        * java/lang/ClassLoader.java (resolveClass0): New static method.
879
        (resolveClass): Call resolveClass0.
880
        (findSystemClass): No longer static.
881
 
882
1999-08-12  Alexandre Oliva  
883
 
884
        * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
885
 
886
1999-08-11  Bryce McKinlay  
887
 
888
        * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
889
        as long.
890
 
891
Mon Aug  9 18:33:38 1999  Rainer Orth  
892
 
893
        * Makefile: Rebuilt.
894
        * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
895
        builds.
896
 
897
        * java/net/natPlainSocketImpl.cc: Include  only if
898
        present.
899
 
900
        * configure: Rebuilt.
901
        * configure.in: Properly align --help output, fix capitalization
902
        and punctuation.
903
        * acinclude.m4: Likewise.
904
 
905
1999-08-09  Kresten Krab Thorup  
906
 
907
        * include/javaprims.h (_Jv_word, _Jv_word2): New types.
908
 
909
        * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
910
        (_Jv_callInterpretedMethod): Unused. Remove.
911
        (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
912
        Use ffi_raw.
913
        * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
914
        (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
915
        * boehm.cc (_Jv_MarkObj): Use _Jv_word.
916
        * interpret.cc: use _Jv_word.
917
        * defineclass.cc: use_Jv_word.
918
        * resolve.cc: Use _Jv_word.
919
        (_Jv_ResolvePoolEntry): Return _Jv_word.
920
        * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
921
        * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
922
 
923
        * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
924
        Change comment.
925
 
926
Mon Aug  9 18:33:38 1999  Rainer Orth  
927
 
928
        * configure: Rebuilt.
929
        * configure.in (sched_yield): Try librt first, then libposix4.
930
        Add -lrt, -lposix4 to THREADSPEC.
931
 
932
1999-08-08  Anthony Green  
933
 
934
        * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
935
 
936
1999-08-08  Anthony Green  
937
 
938
        * defineclass.cc (_Jv_VerifyClassName): Verify array names
939
        correctly.
940
 
941
1999-08-08  Anthony Green  
942
 
943
        * gij.cc: New file.
944
 
945
        * include/config.h.in: Rebuilt.
946
        * acconfig.h: Add INTERPRETER.
947
 
948
        * Makefile.in: Rebuilt.
949
        * Makefile.am (libffi_files): Identify the libffi object files for
950
        inclusion in libgcj.
951
        (LIBFFIINCS): Define.
952
 
953
        * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
954
        Dummy definition for configurations without an interpreter.
955
 
956
        * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
957
        java::lang::Boolean constructor.
958
 
959
        * include/java-interp.h: Always include java-cpool.h.
960
 
961
        * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
962
        when INTERPRETER not defined.
963
 
964
        * java/lang/Class.h (finalize): Define.
965
 
966
        * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
967
        IOException from File.getCanonicalPath.
968
        (getStream): Likewise.
969
 
970
        * NEWS: More news.
971
        * THANKS: More thanks.
972
 
973
1999-08-08  Kresten Krab Thorup  
974
 
975
        * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
976
        jchar type.
977
        (_Jv_PrepareClass): Allow non-abstract classes to
978
        have abstract subclasses.
979
        (_Jv_ResolvePoolEntry): Revert subclass check for protected
980
        fields and methods.
981
        * interpret.cc (continue1/perform_invoke): Don't sign extend
982
        uint16 return val.
983
        (continue1/lshl,lshr): Push long, not int.
984
        (continue1/ulshr): Use UINT64, not long long.
985
        * defineclass.cc (handleFieldsEnd): Handle case when all fields
986
        are static.
987
        * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
988
        * java/lang/FirstThread.java (run): Add top-level exception
989
        handler.
990
        (run0): Renamed from run.
991
 
992
1999-08-08  Kresten Krab Thorup  
993
 
994
        * configure.in (--with-interpreter): Added.
995
        * include/config.h.in (INTERPRETER): Added.
996
 
997
        * java/lang/ClassLoader.java: File replaced.
998
        * java/lang/VMClassLoader.java: New file.
999
        * java/lang/natClassLoader.cc: New file.
1000
        * gnu/gcj/runtime/MethodInvocation.java: New file.
1001
        * gnu/gcj/util/path/SearchPath.java: New file.
1002
        * gnu/gcj/util/path/PathEntry.java: New file.
1003
        * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1004
        * gnu/gcj/util/path/ZipPathEntry.java: New file.
1005
        * gnu/gcj/util/path/URLPathEntry.java: New file.
1006
        * gnu/gcj/util/path/CacheEntry.java: New file.
1007
        * include/java-interp.h: New file.
1008
        * include/java-cpool.h: New file.
1009
        * include/java-insns.h: New file.
1010
        * defineclass.cc: New file.
1011
        * interpret.cc: New file.
1012
        * resolve.cc: New file.
1013
 
1014
        * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1015
        _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1016
        _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1017
        (finalize): New.
1018
        (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1019
        STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1020
        prefix.
1021
        (initializeClass): Use new JV_ prefixed names.  Also, call
1022
        ClassLoader::resolveClass instead of _Jv_ResolveClass.
1023
 
1024
        * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1025
        JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1026
        JV_STATE_LINKED): New.
1027
        (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1028
        _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1029
        (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1030
        _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1031
        _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1032
        _Jv_InterpMethodInvocation): New friends for interpreter.
1033
        (finalize): New.
1034
        (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1035
        include/java-cpool.h and renamed with JV_ prefix.
1036
 
1037
        * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1038
        decls.
1039
        (_Jv_UnregisterClass): New decl.
1040
 
1041
        * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1042
        class loader argument.
1043
        (_Jv_FindClass): Use class loader.
1044
 
1045
        * prims.cc (_Jv_makeUtf8Const): New function.
1046
        (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1047
        (_Jv_NewPrimArray): Ditto.
1048
        (_Jv_FindClassFromSignature): Ditto.
1049
        * java/lang/reflect/natArray.cc (newInstance): Ditto.
1050
        * java/lang/reflect/natMethod.cc (getType): Ditto.
1051
 
1052
        * include/java-field.h (_Jv_Field::isRef): Make robust for
1053
        non-resolved contexts.
1054
 
1055
        * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1056
        Also, don't mark class->next field.
1057
 
1058
        * java/lang/VirtualMachineError.java: Added FIXME note.
1059
 
1060
        * configure.in (INTERPSPEC): New spec.
1061
        * libgcj.spec.in: Added INTERPSPEC.
1062
        * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1063
        gnu/gcj/runtime/MethodInvocation.
1064
        (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1065
        (ordinary_java_source_files): Added above mentioned java classes.
1066
 
1067
        * configure: Rebuilt.
1068
        * Makefile.in: Rebuilt.
1069
 
1070
1999-08-06  Tom Tromey  
1071
 
1072
        * configure: Rebuilt.
1073
        * configure.in: Look for sched_yield in -lrt.
1074
 
1075
1999-08-06  Mojo Jojo 
1076
 
1077
        * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1078
        ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1079
        SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1080
        locales.
1081
        (toString): Print correctly when `country' is empty.
1082
 
1083
1999-08-04  Per Bothner 
1084
 
1085
        * configure.in:  Also do AC_SUBST for DIVIDESPEC.
1086
 
1087
1999-08-02  Tom Tromey  
1088
 
1089
        * aclocal.m4, configure: Rebuilt for new libtool.
1090
 
1091
1999-08-02  Bryce McKinlay  
1092
 
1093
        * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1094
        * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1095
        * java/net/ServerSocket.java: Define ANY_IF.
1096
        (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1097
        all network interfaces.
1098
        * java/net/DatagramSocket.java (DatagramSocket): ditto.
1099
        * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1100
        null.
1101
        * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1102
        instead of null.
1103
        * java/io/natFile.cc (performMkdir): Remove FIXME.
1104
        * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1105
 
1106
1999-08-01  Alexandre Oliva  
1107
 
1108
        * configure.in: Check for bstring.h.
1109
        * configure, include/config.h.in: Rebuilt.
1110
        * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1111
        * java/net/natPlainSocketImpl.cc: Likewise.
1112
 
1113
1999-07-31  Tom Tromey  
1114
 
1115
        * NEWS: Likewise.
1116
        * THANKS: New file.
1117
 
1118
1999-07-31  Alexandre Oliva  
1119
 
1120
        * configure.in: Check for struct hostent_data and need for
1121
        -D_REENTRANT for gethostbyname_r declaration.
1122
        * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1123
        (lookup): Use hostent_data for fixed_buffer.
1124
        * configure, include/config.h.in: Rebuilt.
1125
 
1126
1999-07-31  Alexandre Oliva  
1127
 
1128
        * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1129
        available.  Don't cast memmove args to (void*).
1130
        * configure.in: Do not abort if memmove is not available.
1131
 
1132
1999-07-22  Bryce McKinlay  
1133
 
1134
        * java/lang/natString.cc (substring): optimize where substring is
1135
        entire String.
1136
        * java/io/File.java (getName): don't return separator with file name.
1137
        * java/io/natFile.cc (attr): fix overflow.
1138
 
1139
Sun Jul 25 01:43:34 1999  Anthony Green  
1140
 
1141
        * mauve-libgcj: Disable Object Serialization tests.
1142
 
1143
1999-07-20  Warren Levy  
1144
 
1145
        * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1146
        Default to using PlainDatagramSocketImpl.
1147
        * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1148
 
1149
1999-07-19  Tom Tromey  
1150
 
1151
        * include/stamp-h.in: New file.
1152
 
1153
1999-07-12  Tom Tromey  
1154
 
1155
        * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1156
        _UINT32_T.
1157
 
1158
1999-07-07  Andrew Haley  
1159
 
1160
        * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1161
        bytes to make it point after the instruction where the trap
1162
        occurred.
1163
        (HANDLE_DIVIDE_OVERFLOW): Ditto.
1164
 
1165
1999-07-07  Tom Tromey  
1166
 
1167
        * mauve-libgcj: Explicitly enable formerly disabled java.text
1168
        tests.
1169
 
1170
        * mauve-libgcj: Turn off ClassTest test.  Enable java.text tests
1171
        again.
1172
 
1173
Mon Jul  5 12:01:35 1999  Anthony Green  
1174
 
1175
        * java/net/URL.java (equals): Compare strings using String.equals.
1176
        * java/net/URL.java (sameFile): Ditto.
1177
 
1178
1999-07-02  Warren Levy  
1179
 
1180
        * configure: Rebuilt.
1181
        * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1182
        * include/config.h.in: Rebuilt.
1183
        * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1184
        (mcastGrp): Updated FIXME comments.
1185
        (setOption): Fixed typo.
1186
        (getOption):Implemented IP_MULTICAST_IF.
1187
 
1188
1999-07-02  Warren Levy  
1189
 
1190
        * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1191
        * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1192
        (getTimeToLive): Implemented.
1193
        (setOption): Implemented IP_MULTICAST_IF.
1194
 
1195
1999-07-01  Bryce McKinlay  
1196
 
1197
        * java/lang/String.java (toString): Check for this == null and throw
1198
        NullPointerException.
1199
 
1200
1999-07-01  Warren Levy  
1201
 
1202
        * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1203
        to count and revised comments to match.
1204
        * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1205
        * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1206
        * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1207
        * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1208
        * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1209
        * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1210
 
1211
1999-07-01  John-Marc Chandonia  
1212
 
1213
        * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1214
        properly as count rather than outlength.
1215
        * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1216
        output on overflow rather than buffer fill.
1217
        * java/io/BufferedReader.java (fill): Don't clear out the buffer
1218
        if markPos is 0 and there is still room in the buffer.
1219
 
1220
1999-07-01  Andrew Haley  
1221
 
1222
        * include/i386-signal.h: Replace sigaction () with __sigaction ().
1223
        This is a workaround for a bug in glibc's pthreads package which
1224
        doesn't deliver any sigcontext information to a signal handler.
1225
 
1226
1999-06-24  Tom Tromey  
1227
 
1228
        * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1229
        * java/lang/fdlibm.h (HUGE): Conditionally define.
1230
 
1231
Fri May 28 22:20:03 1999  Anthony Green  
1232
 
1233
        * java/lang/fdlibm.h: Don't use __uint32_t.  Include mprec.h.
1234
        * java/lang/e_log.c: Don't use __uint32_t.
1235
 
1236
1999-05-27  Eric Christopher 
1237
 
1238
        * configure: Rebuilt
1239
        * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1240
        * acconfig.h: Rebuilt
1241
        * include/config.h.in: Rebuilt
1242
 
1243
        * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1244
        java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1245
        e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1246
        java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1247
        k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1248
        java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1249
        s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1250
        and namespace collision with __uint32_t
1251
 
1252
1999-06-23  Tom Tromey  
1253
 
1254
        * java/util/zip/InflaterInputStream.java (read): Throw
1255
        ZipException if inflater throws a DataFormatException.
1256
 
1257
1999-06-23  Warren Levy  
1258
 
1259
        * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1260
        * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1261
        * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1262
        is not final per JDK.
1263
        * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1264
        public per JDK.
1265
        * java/util/zip/DataFormatException.java: Class extends Exception.
1266
        * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1267
        * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1268
        * java/util/zip/ZipInputStream.java: ditto.
1269
        (closeEntry): Changed method name to match JDK spec.
1270
 
1271
1999-06-21  Tom Tromey  
1272
 
1273
        * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1274
        From Jeff Sturm.
1275
 
1276
        * Makefile.in: Rebuilt.
1277
        * Makefile.am (toolexeclibdir): Define as libdir when
1278
        appropriate.
1279
        * configure: Rebuilt.
1280
        * configure.in (USE_LIBDIR): New conditional.
1281
 
1282
1999-06-18  Bryce McKinlay  
1283
 
1284
        * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1285
        hostname in returned InetAddress objects.
1286
        (getLocalHostname): Fix typo.
1287
        * java/net/InetAddress.java (getByName): Set hostname on return
1288
        object.
1289
        (getLocalHost): Call lookup directly to ensure that a fully-qualified
1290
        name is returned.
1291
 
1292
1999-06-17  Bryce McKinlay  
1293
 
1294
        * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1295
        interfaces if host==NULL.
1296
        (accept): Throw message with InterruptedIOException.
1297
        (getOption): Cache localAddress.
1298
        * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1299
        'address' for DatagramSocket.
1300
        (setTimeToLive): Fix compiler warnings.
1301
        (getOption): Cache localAddress.
1302
        * java/net/Socket.java (getLocalAddress): Don't need local
1303
        InetAddress object. Add FIXME comment about calling checkConnect().
1304
        * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1305
        connection queue to 50 as per JDK 1.2 docs.
1306
        (ServerSocket(int,int)): Listen on all network interfaces by
1307
        default, per JDK 1.2 docs.
1308
        * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1309
        Add localAddress caching.
1310
 
1311
1999-06-15  Bryce McKinlay  
1312
 
1313
        * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1314
        to JDK 1.2 docs.
1315
        (write(byte[],int,int)): ditto.
1316
 
1317
1999-06-14  Bryce McKinlay  
1318
 
1319
        * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1320
 
1321
1999-06-11  Warren Levy  
1322
 
1323
        * mauve-libgcj: Activated java.net Mauve tests.
1324
 
1325
1999-06-10  Bryce McKinlay  
1326
 
1327
        * java/net/natInetAddress.cc (aton): Fix typos.
1328
        (lookup): Use a bigger buffer size for gethostbyname_r on all
1329
        versions of glibc. Updated FIXME comment explaining this.
1330
        Modified while loops to not set herr = ERANGE to work around glibc
1331
        problems. Use user specified hostname in InetAddress result when
1332
        available (consistent with JDK).
1333
 
1334
1999-06-10  Warren Levy  
1335
 
1336
        * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1337
        Throw FileNotFoundException instead of IOException.
1338
        (open): ditto.
1339
        * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1340
        IOException.
1341
        * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1342
        in static field name.
1343
        * java/text/DecimalFormat.java: Throw IllegalArgumentException
1344
        throughout rather than ParseException.
1345
 
1346
1999-06-09  Bryce McKinlay  
1347
 
1348
        * java/lang/Runtime.java (exec): Convert prog name and arguments
1349
        to string array.
1350
        * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1351
        environment array conversion. Preserve current environment if envp
1352
        not passed. Preserve PATH unless explicitly specified.
1353
        * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1354
        followed by EOF. Set a flag when a line is terminated by '\r' and
1355
        ignore following '\n' if set.
1356
 
1357
1999-06-02  Warren Levy  
1358
 
1359
        * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1360
        Ignore context if spec is an absolute URL.  Fix braindead
1361
        string comparison.
1362
        (hashCode): Use JDK 1.2 style algorithm.
1363
        * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1364
        context URL properly.
1365
 
1366
1999-05-30  Anthony Green  
1367
 
1368
        * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1369
        correctly.  Clean up "/../" and "/./" path fragments.
1370
 
1371
1999-05-28  Warren Levy  
1372
 
1373
        * java/net/DatagramSocket.java (laddr): Removed.
1374
        (DatagramSocket): Removed attempts to get or set laddr if null.
1375
        (getLocalAddress): Reimplemented per spec.
1376
        * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1377
        when ttl is 0.
1378
        (joinGroup): Throw NullPointerException if any argument is null.
1379
        (leaveGroup): ditto.
1380
        * java/net/PlainDatagramSocketImpl.java: Updated comments.
1381
        * java/net/PlainSocketImpl.java (timeout): Added.
1382
        (getInputStream): Added FIXME comment on how to support timeouts
1383
        for TCP.
1384
        * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1385
        * java/net/Socket.java: Added FIXME comments to identify
1386
        conflicting specs between the JCL and JDK 1.2 documents.
1387
        * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1388
        if host is null.  Get localport value resolved by kernel if bind
1389
        lport is 0.
1390
        (receive): Implemented support for timeouts in UDP.
1391
        (setOption): Implemented based on natPlainSocketImpl version.
1392
        (getOption): ditto.
1393
        * java/net/natPlainSocketImpl.cc (bind): Get localport value
1394
        resolved by kernel if bind lport is 0.
1395
        (connect): Get localport value resolved by kernel if bind wasn't
1396
        done to set localport.
1397
        (accept): Implemented support for timeouts for ServerSocket.
1398
        (setOption): Save value for SO_TIMEOUT.
1399
        (getOption): Return timeout for SO_TIMEOUT.
1400
 
1401
1999-05-26  Bryce McKinlay 
1402
 
1403
        * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1404
        * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1405
        (setOption): Made abstract.
1406
        * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1407
        to avoid cpp conflicts in native code.
1408
        * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1409
        cpp conflicts in native code.
1410
        * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1411
        * java/net/Socket.java (getLocalAddress): Implemented.
1412
        (setTcpNoDelay): Implemented.
1413
        (getTcpNoDelay): Implemented.
1414
        (setSoLinger): Implemented.
1415
        (getSoLinger): Implemented.
1416
        (getSoTimeout): Verify class type.
1417
        (setSendBufferSize): Implemented.
1418
        (getSendBufferSize): Implemented.
1419
        (setReceiveBufferSize): Implemented.
1420
        (getReceiveBufferSize): Implemented.
1421
        (toString): Prepended "Socket".
1422
        * java/net/SocketImpl.java (toString): Rewritten.
1423
        (getOption): Made abstract.
1424
        (setOption): Made abstract.
1425
        * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1426
        (setOption): Implemented.
1427
        (getOption): Implemented.
1428
 
1429
1999-05-26  Warren Levy  
1430
 
1431
        * java/net/DatagramSocket.java (DatagramSocket): Get local host
1432
        address when null.  Set SO_REUSEADDR for multicasts.
1433
        (getSoTimeout): Implemented.
1434
        (setSoTimeout): Implemented.
1435
        * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1436
        * java/net/MulticastSocket.java (getInterface): Implemented.
1437
        (setInterface): Implemented.
1438
        (setTimeToLive): Check for invalid ttl.
1439
        (joinGroup): Verify multicast address and security.
1440
        (leaveGroup): Verify multicast address and security.
1441
        (send): Implemented.
1442
        * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1443
        (iface): Added.
1444
        (ttl): Added.
1445
        (setOption): Added.
1446
        (getOption): Added.
1447
        (mcastGrp): Added.
1448
        (getTTL): Implemented as non-native.
1449
        (setTTL): ditto.
1450
        (join): ditto.
1451
        (leave): ditto.
1452
        * java/net/ServerSocket.java (setSoTimeout): Implemented.
1453
        (getSoTimeout): Implemented.
1454
        (setSocketFactory): Made synchronized.
1455
        * java/net/Socket.java (setSoTimeout): Implemented.
1456
        (getSoTimeout): Implemented.
1457
        (close): Made synchronized.
1458
        (setSocketImplFactory): Made synchronized.
1459
        * java/net/SocketImpl.java: Implement SocketOptions interface.
1460
        * java/net/natInetAddress.cc: Corrected module name at top of file.
1461
        * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1462
        (bind): Added FIXME.
1463
        (peek): Implemented.
1464
        (setTTL): Removed.
1465
        (getTTL): Removed.
1466
        (join): Removed.
1467
        (leave): Removed.
1468
        (mcastGrp): Added.
1469
        (setOption): Implemented for SO_REUSEADDR.
1470
        (getOption): Implemented for SO_REUSEADDR.
1471
 
1472
1999-05-24  Tom Tromey  
1473
 
1474
        * java/util/ResourceBundle.java (getBundle): Throw
1475
        NullPointerException if baseName is null.
1476
 
1477
1999-05-22  Tom Tromey  
1478
 
1479
        * java/util/zip/ZipInputStream.java (fill): New method.
1480
        (compressed_len): New instance variable.
1481
        (getNextStream): Set it.
1482
        (read): Reset inflater on EOF.  Only read via `super' if entry is
1483
        deflated.
1484
        (skip): Only skip via `super' if entry is deflated.
1485
        * java/util/zip/Deflater.java (last_input_count): Removed.
1486
        * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1487
        is length 0.
1488
        (needsInput): Don't use last_input_count.
1489
        (setInput): Don't set last_input_count.
1490
        * java/util/zip/natInflater.cc (getRemaining): Return correct
1491
        result.
1492
        (inflate): Return 0 if input array is length 0.
1493
        (setInput): Don't set last_input_count.
1494
        * java/util/zip/Inflater.java (last_input_count): Removed.
1495
 
1496
1999-05-21  Tom Tromey  
1497
 
1498
        * Makefile.in: Rebuilt.
1499
        * Makefile.am (INCLUDES): Added $(ZINCS).
1500
        * configure: Rebuilt.
1501
        * configure.in (ZINCS): New subst.
1502
 
1503
1999-05-21  Andrew Haley  
1504
 
1505
        * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1506
        to signal options to allow the same exceptions to be rethrown
1507
        later.
1508
 
1509
1999-05-20  Andrew Haley  
1510
 
1511
        * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1512
        added.
1513
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1514
        (INIT_FPE): Exception string made more informative.
1515
        * include/sparc-signal.h (INIT_FPE): Exception string made more
1516
        informative.
1517
        * testsuite/libjava.lang/Divide_1.java: New file.
1518
        * testsuite/libjava.lang/Divide_1.out: New file.
1519
 
1520
1999-05-19  Tom Tromey  
1521
 
1522
        * aclocal.m4, configure: Rebuilt.
1523
        * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1524
 
1525
        * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1526
        method.
1527
 
1528
        * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1529
        Include .
1530
        * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1531
        Include .
1532
        (update): Fail in default case.  Always initialize `strat'.
1533
 
1534
        * mauve-libgcj: Enable java.util.zip.
1535
 
1536
1999-05-18  Warren Levy  
1537
 
1538
        * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1539
        DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1540
        PlainDatagramSocketImpl.java, and SocketOptions.java.
1541
        (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1542
        * Makefile.in: Rebuilt.
1543
 
1544
        * java/net/DatagramPacket.java: New file.
1545
        * java/net/DatagramSocket.java: New file.
1546
        * java/net/DatagramSocketImpl.java: New file.
1547
        * java/net/MulticastSocket.java: New file.
1548
        * java/net/PlainDatagramSocketImpl.java: New file.
1549
        * java/net/SocketOptions.java: New file.
1550
        * java/net/natPlainDatagramSocketImpl.cc: New file.
1551
 
1552
1999-05-18  Tom Tromey  
1553
 
1554
        * java/util/zip/ZipOutputStream.java (level): Initial value is
1555
        Deflater.DEFAULT_COMPRESSION.
1556
        (close): New method.
1557
        (closeEntry): Likewise.
1558
        (finish): Likewise.
1559
        (put_version): Likewise.
1560
        (write_entry): Likewise.
1561
        (put2, put4): Now return `int'.
1562
        (comment): Default to empty string.
1563
        (bytes_written): New instance variable.
1564
        (chain): Likewise.
1565
        * java/util/zip/ZipEntry.java (setComment): Limit length of
1566
        comment string.
1567
        (setCrc): Check CRC validity.
1568
        (setExtra): Check argument validity.
1569
        (setMethod): Likewise.
1570
        (setSize): Likewise.
1571
        (ZipEntry): Likewise.
1572
        * include/javaprims.h: Updated namespace declarations.
1573
        * Makefile.in: Rebuilt.
1574
        * Makefile.am (ordinary_java_source_files): Mention new files.
1575
        (nat_source_files): Likewise.
1576
        * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1577
        EOFException.
1578
        (read4): Likewise.
1579
        (getInputStream): Handle compressed entries.
1580
        * java/util/zip/GZIPOutputStream.java: New file.
1581
        * java/util/zip/GZIPInputStream.java: New file.
1582
        * java/util/zip/DataFormatException.java: New file.
1583
        * java/util/zip/CheckedInputStream.java: New file.
1584
        * java/util/zip/CheckedOutputStream.java: New file.
1585
        * java/util/zip/InflaterInputStream.java: Implemented.
1586
        * java/util/zip/natInflater.cc: New file.
1587
        * java/util/zip/Deflater.java: Implemented.
1588
        * java/util/zip/natDeflater.cc: New file.
1589
        * java/util/zip/DeflaterOutputStream.java: Implemented.
1590
 
1591
        * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1592
        ZipException, not IOException.
1593
        * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1594
        not IOException.
1595
 
1596
1999-05-17  Tom Tromey  
1597
 
1598
        * java/lang/natSystem.cc (init_properties): URL now points to
1599
        sourceware.
1600
 
1601
1999-05-12  Per Bothner  
1602
 
1603
        * java/util/Calendar.java (set):  First call computeFields if needed.
1604
        * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
1605
 
1606
1999-05-12  Tom Tromey  
1607
 
1608
        * configure: Rebuilt.
1609
        * configure.in: Look for -ldl when using the Boehm collector.
1610
        Look for sched_yield in -lposix4.
1611
 
1612
1999-05-12  Per Bothner  
1613
 
1614
        * java/io/File.java (mkdirs):  Handle a null parent directory.
1615
 
1616
1999-05-12  Tom Tromey  
1617
 
1618
        * include/javaprims.h: Updated namespace declarations.
1619
        * classes.pl (scan): Uniquify class list.
1620
        * Makefile.in, configure: Rebuilt.
1621
        * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1622
        (built_java_source_files): New macro.
1623
        (nat_headers): Added built_java_source_files.
1624
        (javao_files): Likewise.
1625
        (EXTRA_libgcj_la_SOURCES): Likewise.
1626
        (libgcj.zip): Create built class files.
1627
        ($(built_java_source_files:.java=.class)): New target.
1628
        (jv_convert_LDADD): Added -L$(here)/.libs.
1629
        * configure.in: Create links for ConcreteProcess.java and
1630
        natConcreteProcess.cc.
1631
        * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1632
        * java/lang/natEcosProcess.cc: New file.
1633
        * java/lang/EcosProcess.java: New file.
1634
        * java/lang/PosixProcess.java: New file.
1635
        * java/lang/natPosixProcess.cc: New file.
1636
 
1637
1999-05-12  Warren Levy  
1638
 
1639
        * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1640
        * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1641
        * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1642
        (connect): Throw ConnectException.
1643
 
1644
1999-05-11  Tom Tromey  
1645
 
1646
        * Makefile.in: Rebuilt.
1647
        * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1648
        * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
1649
        our libraries.
1650
 
1651
        * Makefile.in: Rebuilt.
1652
        * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1653
        and it causes problems with libtool.
1654
 
1655
        * Makefile.in, configure: Rebuilt.
1656
        * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1657
        (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
1658
        (jv_convert_DEPENDENCIES): Added ZDEPS.
1659
        * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1660
        directory.
1661
        (THREADSPEC): Added `-L' to point to qthreads build directory.
1662
        (ZLIBS): New subst.
1663
        (ZDEPS): New subst.
1664
 
1665
        * configure, Makefile.in: Rebuilt.
1666
        * Makefile.am (toolexeclib_DATA): New macro.
1667
        * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
1668
        Recognize --with-system-zlib.
1669
        (GCSPEC): New subst.
1670
        (THREADSPEC): New subst.
1671
        (SYSTEMSPEC): New subst.
1672
        (ZLIBSPEC): New subst.
1673
        * libgcj.spec.in: New file.
1674
 
1675
1999-05-10  Tom Tromey  
1676
 
1677
        * java/io/InputStreamReader.java (read): If length is 0, return
1678
        0.  Reset `wpos' and `wcount' when buffer has been filled and
1679
        emptied.
1680
 
1681
        * java/util/Properties.java (save): Removed `FIXME' comment.
1682
        (load): Invalid characters in \u now treated as terminators.
1683
        Make sure to append character resulting from `\' handling.
1684
        Cast to `char' when appending to key or value.
1685
        (skip_ws): Inverted test for whitespace.
1686
 
1687
        * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1688
        `FIXME' comment.
1689
        (readLine): Likewise.
1690
        (readFully): Implemented.
1691
 
1692
        * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1693
 
1694
        * java/awt/natToolkit.cc: Added copyright header.
1695
        * java/util/zip/InflaterInputStream.java: Added copyright header.
1696
 
1697
        * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1698
        comment.
1699
        * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1700
        `FIXME' comment.
1701
        (getNextStream): Likewise.
1702
 
1703
        * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1704
        locale.toString().
1705
        (getBundle): Don't explicitly throw null pointer exception.
1706
 
1707
        * gnu/gcj/RawData.java: Added copyright header.
1708
 
1709
        * include/jni.h (_Jv_va_list): Always define as va_list.
1710
 
1711
1999-05-9  Anthony Green  
1712
 
1713
        * java/text/DateFormat.java (computeInstance): Separate time
1714
        and date styles.
1715
        (getDateTimeInstance): Ditto.
1716
        (getDateTimeInstance(int,int)): New method.
1717
 
1718
        * Makefile.in: Rebuilt.
1719
        * Makefile.am (ordinary_java_source_files): Add new classes.
1720
 
1721
        * java/util/PropertyResourceBundle.java: New file.
1722
        * gnu/gcj/util/EnumerationChain.java: New file.
1723
 
1724
1999-05-07  Tom Tromey  
1725
 
1726
        * acconfig.h (GCJVERSION): New undef.
1727
        * java/lang/natSystem.cc (init_properties): Define java.version,
1728
        java.class.version, os.name, os.arch, os.version.
1729
        Include  if required.
1730
        * configure: Rebuilt.
1731
        * configure.in: Compute and define GCJVERSION.
1732
 
1733
        * java/lang/natSystem.cc (default_file_encoding): Now static.
1734
 
1735
        * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1736
 
1737
        * libtool-version: New file.
1738
        * Makefile.in: Rebuilt.
1739
        * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1740
        -release.
1741
 
1742
        * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1743
        Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1744
        again (oops).
1745
 
1746
        * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
1747
        (we pick those up already).
1748
 
1749
1999-05-05  Per Bothner  
1750
 
1751
        * java/awt/*:  Check a bunch of classes, a few complete, but mostly
1752
        stub classes.  (This is enough to get Kawa to compile against libgcj.)
1753
 
1754
        * gnu/gcj/RawData.java:  New class.
1755
        * doc/cni.sgml:  Document RawData.
1756
 
1757
        * java/util/zip/InflaterInputStream.java:  New stub class.
1758
        * java/util/zip/ZipInputStream.java:  New class.  Partly works.
1759
        * java/util/zip/ZipConstants.java:  Add two (internal) constants.
1760
        * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
1761
        * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
1762
        * java/util/zip/ZipOutputStream.java:  Start implementation.
1763
 
1764
        * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
1765
        (default_file_encoding):  New global, initial value is above macro.
1766
        (init_properties):  Default file.encoding to default_file_encoding.
1767
 
1768
        * Makefile.am:  Add new classes.
1769
 
1770
1999-05-05  Tom Tromey  
1771
 
1772
        * Makefile.in: Rebuilt.
1773
        * Makefile.am (CLEANFILES): Don't mention $(class_files).
1774
        (clean-local): New target
1775
 
1776
        * java/lang/natRuntime.cc: Include  if required.
1777
        (load, loadLibrary): Now native.
1778
        (init): New method.
1779
        * java/lang/Runtime.java (load, loadLibrary): Now native.
1780
        (init): New native method.
1781
        (Runtime): Use init.
1782
        * prims.cc: Include  if required.
1783
        (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1784
 
1785
1999-05-05  Gilles Zunino  
1786
 
1787
        * configure.in: Switch from irix threads to posix threads
1788
        * configure: Regenerate.
1789
 
1790
1999-04-30  Tom Tromey  
1791
 
1792
        * Makefile.in: Rebuilt.
1793
        * Makefile.am (jv_convert_LDADD): Added -lgcc.
1794
 
1795
1999-04-29  Tom Tromey  
1796
 
1797
        * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1798
        vector when shared.
1799
 
1800
        * java/util/Locale.java (Locale(String,String)): Implement in
1801
        terms of 3-argument version; variant now defaults to empty
1802
        string.
1803
        (toString): Assume variant is not null.
1804
        (equals): Assume all strings are not null.
1805
        (Locale): Throw NullPointerException if any argument is null.
1806
 
1807
        * java/util/ResourceBundle.java (getBundle): Don't try the base
1808
        name; now implicit in partialGetBundle call.
1809
        (trySomeGetBundle): Search for parent bundles and call setParent
1810
        as required.
1811
        (partialGetBundle): Added `langStop' argument.  Use
1812
        `Locale.toString' to compute bundleName.
1813
        (resource_cache): New static field.
1814
        (partialGetBundle): Cache the returned resource bundle.  Now
1815
        synchronized.
1816
 
1817
        * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1818
        missing `<'.
1819
 
1820
        * mauve-libgcj: Enable Collator and RuleBasedCollator.
1821
        * java/text/natCollator.cc (decomposeCharacter): `base' now
1822
        `const'.
1823
        * Makefile.in: Rebuilt.
1824
        * Makefile.am (ordinary_java_source_files): Added
1825
        CollationElementIterator, CollationKey, Collator,
1826
        RuleBasedCollator.
1827
        (nat_source_files): Added natCollator.cc.
1828
        * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1829
        (compare): Pass `this' to CollationElementIterator constructor.
1830
        (getCollationElementIterator): Likewise.
1831
        (ceiNext): Fix off-by-one error when finding initial substring.
1832
        (next): Correctly mask off bits when computing return value.
1833
        Fixed return values when one string is shorter than the other.
1834
        * java/text/CollationElementIterator.java (collator): New field.
1835
        (CollationElementIterator): Added collator argument.
1836
        (next): Call ceiNext on collator object.
1837
 
1838
1999-04-26  Tom Tromey  
1839
 
1840
        * natCollator.cc: New file.
1841
 
1842
        * java/util/GregorianCalendar.java (setDefaultTime): New method.
1843
        (GregorianCalendar): Use it in all constructors.
1844
        * java/util/Calendar.java (Calendar): Changed argument name to
1845
        `zone' to match code.
1846
 
1847
        * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1848
        * java/text/CollationKey.java: New file.
1849
        * java/text/CollationElementIterator.java: New file.
1850
        * java/text/Collator.java: New file.
1851
        * java/text/RuleBasedCollator.java: New file.
1852
 
1853
        * Makefile.in: Rebuilt.
1854
        * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1855
        (jv_convert_LDADD): Explicltly add -lm -lc.
1856
 
1857
1999-04-26  Tom Tromey  
1858
 
1859
        * configure, Makefile.in: Rebuilt.
1860
        * configure.in: Added AM_PROG_LIBTOOL.
1861
        (GCOBJS): Use `.lo' form of files.
1862
        (THREADOBJS): Likewise.
1863
        (GCDEPS): Use `.la' form of library.
1864
        (GCLIBS): Set to be the same as GCDEPS.
1865
        (THREADDEPS): Use `.la' form of library.
1866
        (THREADLIBS): Set to be the same as THREADDEPS.
1867
        * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1868
        toolexeclib_LIBRARIES.
1869
        (libgcj_la_SOURCES): Renamed for libtoolization.
1870
        (EXTRA_libgcj_la_SOURCES): Likewise.
1871
        (libgcj_la_DEPENDENCIES): Likewise.
1872
        (libgcj_la_LIBADD): Likewise.
1873
        ($(nat_files)): Use LTCXXCOMPILE.
1874
        ($(c_files)): Use LTCOMPILE.
1875
        (GCJCOMPILE): New macro.
1876
        (.class.o): Use it.
1877
        (.java.o): Likewise.
1878
        ($(javao_files)): Likewise.
1879
        (jv_convert_LINK): Use LIBTOOL.
1880
        (nat_files): Use `.lo' files.
1881
        (c_files): Likewise.
1882
        (javao_files): Likewise.
1883
        (.class.lo): Renamed.
1884
        (.java.lo): Likewise.
1885
        ($(nat_files)): Depend on %.lo.
1886
        ($(c_files)): Likewise.
1887
        ($(javao_files)): Likewise.
1888
        (jv_convert_LDADD): Link against .lo files.
1889
        (jv_convert_DEPENDENCIES): Depend on .lo files.
1890
        (maintainer-check): Depend on libgcj.la, but examine .a file.
1891
        (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1892
        (libgcj_la_LDFLAGS): New macro.
1893
 
1894
1999-04-23  Warren Levy  
1895
 
1896
        * Makefile.am: Added URLDecoder and URLEncoder.
1897
        * Makefile.in: Rebuilt.
1898
 
1899
        * java/net/ServerSocket.java (setSocketFactory): Renamed from
1900
        setSocketImplFactory to match spec.
1901
        * java/net/Socket.java (getSoLinger): Changed return type to
1902
        match spec.
1903
 
1904
        * java/net/URLDecoder.java: New file.
1905
        * java/net/URLEncoder.java: New file.
1906
 
1907
1999-04-21  Tom Tromey  
1908
 
1909
        * java/lang/natString.cc (getBytes): Reverted earlier change and
1910
        applied correct fix from Per Bothner.
1911
 
1912
        * java/lang/String.java: Don't throw
1913
        UnsupportedEncodingException.
1914
 
1915
        * java/lang/natString.cc (getBytes): Correctly size result
1916
        buffer.  From Bryce McKinlay .
1917
 
1918
1999-04-20  Andrew Haley  
1919
 
1920
        * include/sparc-signal.h: new file.
1921
        * configure.in: include/sparc-signal.h added.
1922
        * configure: regenerated.
1923
        * prims.cc (JvRunMain): signal handling code rewritten to be more
1924
        portable.
1925
        (catch_segv): ditto.
1926
        (catch_fpe): ditto.
1927
        * include/i386-signal.h: reorganized.
1928
        * include/default-signal.h: reorganized.
1929
 
1930
1999-04-19  Tom Tromey  
1931
 
1932
        * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1933
        once.  From Anthony Green.
1934
 
1935
1999-04-19  Andrew Haley  
1936
 
1937
        * Makefile.in: Processed with new automake.
1938
 
1939
1999-04-19  Tom Tromey  
1940
 
1941
        * include/javaprims.h: Removed security namespace.
1942
 
1943
1999-04-20  Anthony Green  
1944
 
1945
        * java/io/PrintStream.java (println): Remove extra println.
1946
 
1947
1999-04-19  Anthony Green  
1948
 
1949
        * Makefile.in: Rebuilt.
1950
        * Makefile.am (ordinary_java_source_files): Add new security files.
1951
 
1952
        * java/security/NoSuchAlgorithmException.java,
1953
        java/security/MessageDigest.java: New files.
1954
 
1955
        * include/javaprims.h: Add security namespace.
1956
 
1957
1999-04-16  Per Bothner  
1958
 
1959
        * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
1960
        * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1961
        * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1962
        * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
1963
        * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
1964
        * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
1965
        * gnu/gcj/convert/natInput_SJIS.cc:  New file.
1966
        * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
1967
        * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
1968
        * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
1969
        * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
1970
        * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
1971
        * Makefile.am:  Various changes for new files and conversions.
1972
 
1973
        * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1974
        New overloading, allows greater efficiency.
1975
        * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1976
        New overloading (for efficiency - avoids copying).
1977
 
1978
        * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
1979
        * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
1980
 
1981
        * java/io/InputStreamReader.java ():  Set super.in correctly.
1982
        * java/io/OutputStreamWriter.java ():  Set super.in correctly.
1983
        (writeChars):  Don't be quite so eager to flush.
1984
        * java/io/PrintStream.java:  Rewrite.  Now more similar to
1985
        OutputStreamWriter, using explicit UnicodeToBytes converter.
1986
        Also, autoflush does not need to flush so often.
1987
        * java/lang/natString.cc (getBytes):  More efficient algorithm.
1988
        (init(jbyteArray,jint,jint,jstring)):  More efficient.
1989
 
1990
1999-04-15  Warren Levy  
1991
 
1992
        * Makefile.am (ordinary_java_source_files): Added new Connection
1993
        and Handler classes in gnu.gcj.protocol.file package.
1994
        * Makefile.in: Rebuilt.
1995
 
1996
        * gnu/gcj/protocol/file/Connection.java: New file.
1997
        * gnu/gcj/protocol/file/Handler.java: New file.
1998
        * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1999
        if doInput allows input.
2000
        (getOutputStream): Check if doOutput allows output.
2001
        * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2002
 
2003
1999-04-14  Tom Tromey  
2004
 
2005
        * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2006
        buffer larger to work around bug.
2007
        From Bryce McKinlay .
2008
 
2009
1999-04-14  Andrew Haley  
2010
 
2011
        * java/lang/natDouble.java (doubleToLongBits): ensure that all
2012
        NaNs are always converted to the same long value.
2013
        * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2014
        converted to int.
2015
 
2016
1999-04-13  Tom Tromey  
2017
 
2018
        * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2019
        instead switch on actual element type.
2020
 
2021
        * Makefile.in: Rebuilt.
2022
        * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2023
 
2024
1999-04-13  Andrew Haley  
2025
 
2026
        * include/i386-signal.h, include/default-signal.h: New files.
2027
        * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2028
        handler.
2029
        (catch_fpe): New function.
2030
        * configure.in: Make link to appropriate include/java-signal.h.
2031
        * configure: Rebuilt.
2032
        * Makefile.am: include/java-signal.h added to dependency list.
2033
        * Makefile.in: Rebuilt.
2034
 
2035
1999-04-12  Urban Widmark 
2036
 
2037
        * java/io/DataInputStream.java (readLine): Corrected handling of
2038
        empty lines, from null to "".
2039
 
2040
1999-04-12  Tom Tromey  
2041
 
2042
        * Makefile.in: Rebuilt.
2043
        * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2044
 
2045
        * java/lang/natSystem.cc (SystemClass): New define.
2046
        (init_properties): Synchronize.
2047
 
2048
1999-04-08  Geoff Berry  
2049
 
2050
        * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2051
        * natPlainSocketImpl.cc (accept): Add missing else if check
2052
        for AF_INET6.
2053
 
2054
1999-04-08  Tom Tromey  
2055
 
2056
        * java/lang/Long.java (parseLong): Corrected overflow detection
2057
        code.
2058
        * java/lang/Integer.java (parseInt): Corrected overflow detection
2059
        code.
2060
 
2061
        * java/io/PrintStream.java (print): Handle null string argument.
2062
        (println): Likewise.
2063
 
2064
1999-04-07  Warren Levy  
2065
 
2066
        * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2067
        Set count to 0 when InputStreamReader returns -1 for EOF.
2068
 
2069
1999-04-07  Tom Tromey  
2070
 
2071
        * mauve-libgcj: Omit java.text.Collator,
2072
        java.text.RuleBasedCollator.
2073
 
2074
1999-04-06  Tom Tromey  
2075
 
2076
        * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2077
        IOException from getHttpHeaders().
2078
        (getHeaderFieldKey): Likewise.
2079
 
2080
        * include/javaprims.h: Regenerated declarations.
2081
 
2082
        * Makefile.in: Rebuilt.
2083
        * Makefile.am (ordinary_java_source_files): Updated for removed
2084
        files.
2085
 
2086
1999-04-06  Per Bothner  
2087
 
2088
        * java/util/zip/Adler32.java:  New class.
2089
        * java/util/zip/CRC32.java:  Add working method bodies.
2090
        * Makefile.am (ordinary_java_source_files):  Add new Adler32 class.
2091
        * Makefile.in:  Re-generate.
2092
 
2093
Tue Apr  6 18:28:42 1999  Warren Levy  
2094
 
2095
        * gnu/gcj/protocol/http/Connection.java: New file.  Rewritten
2096
        from version in removed www hierarchy.
2097
        * gnu/gcj/protocol/http/Handler.java: New file.  Copied from
2098
        version in removed www hierarchy.
2099
 
2100
        * gnu/gcj/www/protocol/http/Connection.java: Removed.
2101
        * gnu/gcj/www/protocol/http/Handler.java: Removed.
2102
        * gnu/gcj/www/protocol/http: Removed dir.
2103
        * gnu/gcj/www/protocol: Removed dir.
2104
        * gnu/gcj/www: Removed dir.
2105
 
2106
        * java/net/HttpURLConnection.java: Revised comments to indicate
2107
        missing JDK 1.2 methods.
2108
 
2109
        * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2110
        hierarchy rather than the gnu/gcj/www/protocol one.
2111
        * java/net/URLConnection.java: Updated status comments.
2112
        (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2113
        the gnu/gcj/www/content one.
2114
 
2115
1999-04-06  Per Bothner  
2116
 
2117
        * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2118
        The gen-from-JIS program is in $(CONVERT_DIR).
2119
 
2120
1999-04-06  Tom Tromey  
2121
 
2122
        * mauve-libgcj: Renamed from mauve-libjava.
2123
 
2124
Tue Apr  6 03:18:38 1999  Warren Levy  
2125
 
2126
        * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2127
        (getResponseMessage): Implemented.
2128
        (getResponseVals): New private method.
2129
 
2130
        * java/net/URLConnection.java (getContent): Implemented.
2131
        (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2132
 
2133
1999-04-05  Tom Tromey  
2134
 
2135
        * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2136
        (jv_convert_SOURCES): Renamed.
2137
        (EXTRA_jv_convert_SOURCES): Likewise.
2138
        (jv_convert_LDFLAGS): Likewise.
2139
        (jv_convert_LINK): Likewise.
2140
        (jv_convert_LDADD): Likewise.
2141
        (jv_convert_DEPENDENCIES): Likewise.
2142
 
2143
        * Makefile.in: Rebuilt.
2144
        * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2145
        tooldir.
2146
 
2147
Mon Apr  5 02:14:35 1999  Warren Levy  
2148
 
2149
        * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2150
        method for comparison.
2151
 
2152
        * java/net/URLConnection.java (getContentLength): Implemented.
2153
        (getContentType): Implemented.
2154
        (getContentEncoding): Implemented.
2155
        (getExpiration): Implemented.
2156
        (getDate): Implemented.
2157
        (getLastModified): Implemented.
2158
        (getHeaderFieldInt): Implemented.
2159
        (getHeaderFieldDate): Implemented.
2160
 
2161
Fri Apr  2 18:04:52 1999  Warren Levy  
2162
 
2163
        * java/net/URLConnection.java (toString): Implemented.
2164
        (setContentHandlerFactory): Implemented.
2165
        (setContentHandler): Wrote new private helper method.
2166
 
2167
1999-04-01  Tom Tromey  
2168
 
2169
        * Makefile.in: Rebuilt.
2170
        * Makefile.am ($(java_source_files:.java=.class): Reverted change
2171
        of 1999-03-31; we always want to build all the .class files.
2172
        Depend on java_source_files, not libgcj.zip.
2173
        (nat_headers): Define in terms of ordinary_java_source_files.
2174
 
2175
1999-03-31  Tom Tromey  
2176
 
2177
        * Makefile.in: Rebuilt.
2178
        * Makefile.am (special_java_source_files): New macro.
2179
        (java_source_files): Use it.
2180
        (ordinary_java_source_files): New macro.
2181
        (java_source_files): Use it.
2182
        ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2183
        creating headers for those files with hand-maintained headers.
2184
 
2185
        * include/javaprims.h: Regenerated namespace declarations.
2186
        * classes.pl (scan): Include [0-9] in regexp for matching class
2187
        names; for java.util.zip.CRC32.
2188
 
2189
        * Makefile.in: Rebuilt.
2190
        * Makefile.am (nat_headers): Redefined to generate all possible
2191
        header files.
2192
 
2193
        * java/util/zip/ZipException.java: In package java.util.zip, not
2194
        java.net.
2195
 
2196
1999-03-30  Tom Tromey  
2197
 
2198
        * configure: Rebuilt.
2199
        * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2200
        eh-common.h when not building in tree with gcc.
2201
 
2202
        * Makefile.in: Rebuilt.
2203
        * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2204
        $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2205
        nat_headers.
2206
        ($(java_source_files:.java=.class)): New target.
2207
 
2208
        * Makefile.in: Rebuilt.
2209
        * Makefile.am (java_source_files): Added
2210
        java/net/HttpURLConnection.java and
2211
        gnu/gcj/www/protocol/http/Connection.java.
2212
 
2213
Tue Mar 30 15:20:45 1999  Warren Levy  
2214
 
2215
        * gnu/gcj/www/protocol/http/Connection.java: New file.
2216
        * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2217
        * java/net/HttpURLConnection.java: New file.
2218
        * java/net/URLConnection.java (getHeaderField): Implemented default.
2219
        (getHeaderFieldKey): Implemented default method.
2220
 
2221
1999-03-30  Tom Tromey  
2222
 
2223
        * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2224
 
2225
        * java/util/zip/Deflater.java: Added copyright header.
2226
        * java/util/zip/CRC32.java: Added copyright header.
2227
 
2228
        * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2229
        that it is automatically generated.
2230
        ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2231
 
2232
        * gnu/gcj/convert/BytesToUnicode.java,
2233
        gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2234
        gnu/gcj/convert/Input_EUCJIS.java,
2235
        gnu/gcj/convert/Input_UTF8.java,
2236
        gnu/gcj/convert/JIS0208_to_Unicode.cc,
2237
        gnu/gcj/convert/JIS0212_to_Unicode.cc,
2238
        gnu/gcj/convert/Output_8859_1.java,
2239
        gnu/gcj/convert/Output_JavaSrc.java,
2240
        gnu/gcj/convert/Output_UTF8.java,
2241
        gnu/gcj/convert/UnicodeToBytes.java,
2242
        gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2243
 
2244
        * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2245
 
2246
        * Makefile.in, configure: Rebuilt.
2247
        * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2248
        not if test subdir exists.
2249
        (--enable-gcj-classes): Removed; gcj always used to generate
2250
        .class files.
2251
        (JAVA, JAVAC): Removed.
2252
        (--enable-single-compilation, --enable-source-compilation):
2253
        Removed.
2254
        (here): New subst.
2255
        (NATIVE): New conditional.
2256
        * Makefile.am (toolexecdir): Renamed from tooldir to allow
2257
        `install-exec' to work.
2258
        (toolexeclibdir): Likewise.
2259
        (toollib_LIBRARIES): Likewise.
2260
        (AM_MAKEFLAGS): Don't pass tooldir.
2261
        (JAVAC): New macro.
2262
        (javao_files): Redefined.
2263
        (java_source_files): New macro.
2264
        (c_source_files): New macro.
2265
        (c_files): Redefined in terms of c_source_files.
2266
        (java_io_files, java_lang_files, java_net_files, java_text_files,
2267
        java_util_files, gnu_files, java_files): Removed.
2268
        (class_io_files, class_lang_files, class_net_files,
2269
        class_text_files, class_util_files, class_gnu_files, class_files):
2270
        Removed.
2271
        (nat_source_files): New macro.
2272
        (nat_files): Redefined in terms of nat_source_files.
2273
        (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2274
        java_source_files.  Removed no-such-file.c.
2275
        (here): Removed.
2276
        (ETAGS_ARGS): Removed.
2277
        (TAGS_DEPENDENCIES): Likewise.
2278
        (libgcj.zip): Depend on java_source_files.  Use $(here) and not
2279
        pwd in rule.
2280
        (src_io_files, src_lang_files, src_text_files, src_util_files,
2281
        src_gnu_files): Removed.
2282
        Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2283
        (BUILT_SOURCES): Removed.
2284
        (header-check): New target.
2285
        (javadir): Removed.
2286
        (noinst_PROGRAMS): New macro.
2287
        ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2288
        on MAINTAINER_MODE.
2289
        ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2290
        (gen-from-JIS): Build in top directory.
2291
        (convert_source_files): New macro.
2292
        (convert_SOURCES): New macro.
2293
        (convert_LDFLAGS): Likewise.
2294
        (convert_LINK): Likewise.
2295
        (convert_LDADD): Likewise.
2296
        (convert_DEPENDENCIES): Likewise.
2297
        (convert): Removed.
2298
        (gen-from-JIS): Removed.
2299
        (gen_from_JIS_SOURCES): New macro.
2300
        (gen_from_JIS_LDADD): Likewise.
2301
        (gen_from_JIS_DEPENDENCIES): Likewise.
2302
 
2303
        * configure: Rebuilt.
2304
        * configure.in (CANADIAN): Set to `yes', not `canadian'.
2305
        (NULL_TARGET): Initialize to `no'.  Correctly examine $NULL_TARGET
2306
        when defining conditional.
2307
 
2308
Tue Mar 30 10:36:27 1999  Per Bothner  
2309
 
2310
        * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  Remove these files.
2311
        The Unicode Consortium does not permit their re-distribution.
2312
        * Makefile.am, Makefile.in:  Add comments with URLs for removed files.
2313
        (JIS0208.h, JIS0212.h):  Do not depend on removed files.
2314
 
2315
Mon Mar 29 18:58:13 1999  Per Bothner  
2316
 
2317
        * natSystem.c (init_properties):  Use malloc, realloc, free after all.
2318
 
2319
Mon Mar 29 13:41:02 1999  Per Bothner  
2320
 
2321
        * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  New mapping tables
2322
        from Unicode Consortium.
2323
        * gnu/gcj/convert/{JIS0208.h,JIS0212.h}:  New generated headers.
2324
        * gnu/gcj/convert/gen-from-JIS.c:  New utility for maintainers only.
2325
        * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2326
        New tables, generated using gen-from-JIS.
2327
        * gnu/gcj/convert/Output_JavaSrc.java:  New UnicodeToBytes class.
2328
        * gnu/gcj/convert/Output_UTF8.java:  Fix bug.
2329
        * gnu/gcj/convert/Input_EUCJIS.java:  New BytesToUnicode class.
2330
        * gnu/gcj/convert/natInput_EUCJIS.cc:  Native methods for new class.
2331
 
2332
        * gnu/gcj/convert/Convert.java:  New application.
2333
        * Makefile.am, Makefile.in (convert):  New program, using Convert.
2334
        Build the various JIS conversion tables (in maintainer mode).
2335
 
2336
Fri Mar 26 16:51:30 1999  Warren Levy  
2337
 
2338
        * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2339
 
2340
        * java/net/URL.java (URL): Deal with null property value.  Use "."
2341
        as separator in building class name.
2342
        * java/net/URLConnection.java: Implemented majority of stubbed methods.
2343
        * java/net/URLStreamHandler.java (parseURL): Use "" in string
2344
        manipulations instead of 'null'.  Comment cleanup.  Use 0 for the
2345
        beginning of the substring rather than 'start'.
2346
 
2347
1999-03-26  Tom Tromey  
2348
 
2349
        * include/java-chartables.h: Rebuilt.
2350
        * include/java-chardecomp.h: New file.
2351
        * chartables.pl: Generate output files directly.  Added support
2352
        for generating decomposition header.
2353
        (canonical_decomposition, full_decomposition): New globals.
2354
        (DECOMPOSITION): New constant.
2355
        (process_char): Call add_decomposition.
2356
        (add_decomposition): New sub.
2357
        (write_decompositions): New sub.
2358
 
2359
1999-03-25  Tom Tromey  
2360
 
2361
        * java/text/CollationElementIterator.java: New file.
2362
 
2363
        * mauve-libjava: Omit StringTest.
2364
 
2365
Wed Mar 24 15:17:49 1999  Warren Levy  
2366
 
2367
        * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2368
        without a '/' when parsing protocol.  Handle ref outside of parseURL.
2369
        (hashCode): Implemented.
2370
        (set): Don't expand -1 to default port.
2371
        (getDefaultPort): Removed.
2372
 
2373
        * java/net/URLStreamHandler.java (parseURL): Implemented.
2374
        (toExternalForm): Implemented.
2375
 
2376
1999-03-23  Tom Tromey  
2377
 
2378
        * java/text/BreakIterator.java (getSentenceInstance):
2379
        Implemented.
2380
        * gnu/gcj/text/SentenceBreakIterator.java: New file.
2381
 
2382
        * Makefile.in: Rebuilt.
2383
        * Makefile.am (nat_headers): Added IllegalAccessException.
2384
        * java/lang/natClass.cc (newInstance): Throw
2385
        IllegalAccessException, not IllegalAccessError.
2386
        Include IllegalAccessException.h.
2387
 
2388
1999-03-22  Tom Tromey  
2389
 
2390
        * gnu/gcj/text/LineBreakIterator.java: New file.
2391
        * java/text/BreakIterator.java (getLineInstance): Implemented.
2392
 
2393
        * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2394
        copy constructor private.
2395
        (previous, next): Removed erroneous comment about line
2396
        separators.
2397
        (previous): Correctly recognize break between non-letter on the
2398
        left and letter on the right.  Handle apostrophes correctly.
2399
 
2400
        * java/text/BreakIterator.java (getWordInstance): Implemented.
2401
        * gnu/gcj/text/WordBreakIterator.java: New file.
2402
        * gnu/gcj/text/CharacterBreakIterator.java: Extend
2403
        BaseBreakIterator.
2404
        * gnu/gcj/text/BaseBreakIterator.java: New file.
2405
 
2406
1999-03-19  Tom Tromey  
2407
 
2408
        * java/text/BreakIterator.java: New file (partially stubbed out).
2409
        * gnu/gcj/text/CharacterBreakIterator.java: New file.
2410
 
2411
        * include/config.h.in: Rebuilt.
2412
        * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2413
        (HAVE_TIMEZONE): Likewise.
2414
        * configure: Rebuilt.
2415
        * configure.in: Added timezone checks.
2416
        * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2417
        timezone.
2418
 
2419
Fri Mar 19 15:26:35 1999  Per Bothner  
2420
 
2421
        * gnu/gcj/convert/BytesToUnicode.java:  New abstract class.
2422
        * gnu/gcj/convert/UnicodeToBytes.java:  New abstract class.
2423
        * gnu/gcj/convert/Input_8859_1.java:  New BytesToUnicode sub-class.
2424
        * gnu/gcj/convert/Input_UTF8.java:  New BytesToUnicode sub-class.
2425
        * gnu/gcj/convert/Output_8859_1.java:  New UnicodeToBytes sub-class.
2426
        * gnu/gcj/convert/Output_UTF8.java:  New UnicodeToBytes sub-class.
2427
        * java/io/InputStreamReader.java:  Rewrite to use BytesToUnicode.
2428
        * java/io/OutputStreamWriter.java:  Rewrite to use UnicodeToBytes.
2429
 
2430
        * java/io/natFileDescriptorPosix.cc (open):  Use O_BINARY flag.
2431
        (BSD_COMP):  Kludge needed for Solaris2.
2432
 
2433
Fri Mar 19 01:49:46 1999  Warren Levy  
2434
 
2435
        * java/net/URL.java (URL(java.net.URL, string): Moved code to
2436
        URL(java.net.URL, string, URLStreamHandler) and call it with a
2437
        null handler.  In latter constructor, added SecurityManager check.
2438
        (set): Expect null handler on bad protocol rather than an exception.
2439
        (setURLStreamHandler): Simplified exception handling; return null
2440
        on invalid protocol.
2441
 
2442
1999-03-18  Tom Tromey  
2443
 
2444
        * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2445
 
2446
        * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2447
        methods.
2448
        Include PrintStream.h, InputStream.h.
2449
        * java/lang/System.java (ForwardingInputStream,
2450
        ForwardingOutputStream): Removed.
2451
        (setErr, setIn, setOut): Now native.
2452
 
2453
        Reverted patch from 1999-02-12 to work around problem in
2454
        libgcc2.c.
2455
        * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2456
        (_Jv_eh_free): Use free.
2457
 
2458
        * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2459
        for path name.  Minor formatting fixes.
2460
 
2461
        * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2462
 
2463
        * prims.cc (fail_on_finalization): New function.
2464
        (_Jv_GCWatch): Likewise.
2465
 
2466
        * prims.cc (JvRunMain): Initialize `nullp'.
2467
        (nullp): New global.
2468
        (catch_segv): Throw nullp.
2469
 
2470
        * Makefile.in: Rebuilt.
2471
        * Makefile.am (ZIP): In "null target" case, zip is found in the
2472
        build tree.
2473
 
2474
        * prims.cc (_Jv_PrimClass): Initialize all elements of class
2475
        object.
2476
        Include Modifier.h.
2477
 
2478
        * java/lang/StringBuffer.java (StringBuffer): Don't use
2479
        ensureCapacity to set initial capacity.
2480
        (capacity): Subtract `length' from return result.
2481
 
2482
Thu Mar 18 01:53:35 1999  Warren Levy  
2483
 
2484
        * java/io/natFileDescriptorPosix.cc (open): Throw
2485
        FileNotFoundException, but with filename and errno in msg.
2486
 
2487
Wed Mar 17 11:09:30 1999  Warren Levy  
2488
 
2489
        * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2490
        functionality folded into java/net/URL.java per spec.
2491
 
2492
        * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2493
        than EEXIST for throwing FileNotFoundException.
2494
 
2495
        * java/net/URL.java: Folded in default URLStreamHandlerFactory
2496
        algorithm per JDK 1.2 doc.  Added SecurityManager checks.
2497
 
2498
        * java/net/URLStreamHandler.java (parseURL): Added stub.
2499
 
2500
1999-03-15  Andrew Haley  
2501
 
2502
        * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2503
        by one errors.
2504
 
2505
1999-03-15  Andrew Haley  
2506
 
2507
        * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2508
        support.
2509
 
2510
1999-03-12  Tom Tromey  
2511
 
2512
        * prims.cc (catch_segv): New function.
2513
        Include  if HANDLE_SEGV defined.  Include
2514
        NullPointerException.h.
2515
        (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2516
        handler.
2517
 
2518
        * java/text/SimpleDateFormat.java (equals): Ensure that object is
2519
        a SimpleDateFormat, not just a DateFormat.
2520
        (defaultCenturyStart, formatData, pattern): Now private.
2521
        (append): Now `final'.  Use `NumberFormat.format'.
2522
        (parse): Wrote.
2523
        (SimpleDateFormat): Turn off groupin in NumberFormat object.
2524
 
2525
        * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2526
        result.
2527
 
2528
        * java/text/MessageFormat.java (format): Use default MessageFormat
2529
        constructor.
2530
        (parse, parseObject): Wrote.
2531
 
2532
        * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2533
        constructor.
2534
 
2535
1999-03-12  Andrew Haley  
2536
 
2537
        * java/lang/String.java (indexOf): Replace with native method for
2538
        better performance.
2539
        * java/lang/natString.cc (IndexOf): As above.
2540
 
2541
        * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2542
        Argument check corrected.
2543
        (init(jbyteArray,jint,jint,jstring)): Likewise.
2544
 
2545
        * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2546
        1.2 compliant method.
2547
 
2548
        * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2549
        added.
2550
        * java/lang/Float.java (byteValue, shortValue): Likewise.
2551
 
2552
1999-03-11  Tom Tromey  
2553
 
2554
        * java/text/DecimalFormat.java (parse): Wrote.
2555
 
2556
        * java/text/ChoiceFormat.java (parse): Set error index on
2557
        ParsePosition object.
2558
 
2559
        * java/lang/Integer.java (parseInt): Throw exception on overflow
2560
        when intermediate result is most negative number.  Changed
2561
        overflow detection as well.
2562
        * java/lang/Long.java (parseLong): Likewise.
2563
 
2564
        * configure, Makefile.in: Rebuilt.
2565
        * configure.in (NULL_TARGET, CANADIAN): New conditionals.  Set
2566
        CANADIAN when building in source tree that doesn't include gcc.
2567
        * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2568
        define.
2569
 
2570
        * java/text/ChoiceFormat.java (nextDouble): Correct some
2571
        off-by-one errors when masking or adding.
2572
 
2573
        * java/text/DecimalFormat.java (format): Fill in FieldPosition
2574
        parameter, if given.  Use `%', not IEEEremainder.
2575
        (scanFix): Throw error if multiplier already set.
2576
        (computePattern): Wrote.
2577
 
2578
1999-03-11  Andrew Haley  
2579
 
2580
        * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2581
        52.
2582
        (nextDouble): Corrected masking logic.  Handle interaction between
2583
        `next' and negative numbers.
2584
 
2585
Wed Mar 10 18:58:37 1999  Warren Levy  
2586
 
2587
        * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2588
        * java/net/URL.java: Added general comments.
2589
 
2590
1999-03-10  Tom Tromey  
2591
 
2592
        * java/text/ChoiceFormat.java (parse): Wrote.
2593
 
2594
        * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2595
 
2596
        * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2597
        Create ChoiceFormat objects.
2598
        (format): Special-case ChoiceFormat.
2599
        (scanFormatElement): Include { and } in generated style string.
2600
 
2601
1999-03-09  Tom Tromey  
2602
 
2603
        * java/text/ChoiceFormat.java: New file.
2604
 
2605
Tue Mar  9 17:09:18 1999  Warren Levy  
2606
 
2607
        * java/net/BindException.java: Created.
2608
        * java/net/ConnectException.java: Created.
2609
        * java/net/ContentHandler.java: Created.
2610
        * java/net/ContentHandlerFactory.java: Created.
2611
        * java/net/FileNameMap.java: Created.
2612
        * java/net/MalformedURLException.java: Created.
2613
        * java/net/NoRouteToHostException.java: Created.
2614
        * java/net/ProtocolException.java: Created.
2615
        * java/net/ServerSocket.java (@author): Fixed typo.
2616
        * java/net/Socket.java (@author): Fixed typo.
2617
        * java/net/SocketImpl.java (@author): Fixed typo.
2618
        * java/net/SocketImplFactory.java (@author): Fixed typo.
2619
        * java/net/URL.java: Created - nearly complete.
2620
        * java/net/URLConnection.java: Created - near-empty stub.
2621
        * java/net/URLStreamHandler.java: Created - incomplete stub.
2622
        * java/net/URLStreamHandlerFactory.java: Created.
2623
        * java/net/UnknownServiceException.java: Created.
2624
 
2625
1999-03-09  Tom Tromey  
2626
 
2627
        * java/lang/System.java (ForwardingInputStream): New class.
2628
        (ForwardingOutputStream): Likewise.
2629
        (in, out, err): Now `final' forwarding streams.
2630
        (setIn, setOut, setErr): Use appropriate method on forwarding
2631
        streams.
2632
 
2633
        * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2634
        class.
2635
 
2636
Tue Mar  9 12:16:53 1999  Per Bothner  
2637
 
2638
        * java/util/zip/CRC32.java:  New class (just an incomplete stub).
2639
        * java/util/zip/Checksum.java:  New interface (complete).
2640
        * java/util/zip/Deflater.java:  New class (near-empty stub).
2641
        * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2642
        * java/util/zip/ZipConstants.java:  New interface (near-empty stub).
2643
        * java/util/zip/ZipEntry.java:  New class (complete).
2644
        * java/util/zip/ZipException.java:  New class (complete).
2645
        * java/util/zip/ZipFile.java:  New class (incomplete stub).
2646
        * java/util/zip/ZipOutputStream.java:  New class (incomplete stub).
2647
 
2648
1999-03-09  Tom Tromey  
2649
 
2650
        * java/text/MessageFormat.java (MessageFormatElement): Removed
2651
        `public' specifiers.
2652
 
2653
        * java/text/DecimalFormat.java (scanFormat): Increment index
2654
        before processing exponential format.  Fixed a couple typos in
2655
        exception messages.
2656
        (format): Correct normalization of exponent.
2657
 
2658
1999-03-08  Tom Tromey  
2659
 
2660
        * java/text/SimpleDateFormat.java (parse): Throw
2661
        IllegalArgumentException, not ParseException.
2662
 
2663
1999-03-05  Tom Tromey  
2664
 
2665
        * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2666
        when constructing DateFormatSymbols.  Initialize numberFormat
2667
        field of superclass.
2668
 
2669
        * java/text/DateFormat.java (equals): Rewrote.
2670
        (getAvailableLocales): New method.
2671
        (getDateInstance): New methods.
2672
        (getDateTimeInstance): Likewise.
2673
        (getTimeInstance): Likewise.
2674
        (getInstance): New method.
2675
        (computeInstance): New method.
2676
 
2677
        * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2678
        for US.
2679
        (safeGetResource): New method.
2680
        (DateFormatSymbols): Use Locale paramater.
2681
        (equals): Now protected.
2682
        Made instance variables private.
2683
 
2684
1999-03-04  Tom Tromey  
2685
 
2686
        * java/text/DecimalFormat.java: New file.
2687
 
2688
        * java/text/NumberFormat.java (groupingUsed,
2689
        maximumFractionDigits, maximumIntegerDigits,
2690
        minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2691
        New fields.
2692
        (setDecimalSeparatorAlwaysShown, setMultiplier,
2693
        setPositivePrefix): Removed.
2694
        (setMinimumFractionDigits, setMaximumFractionDigits):
2695
        Implemented.
2696
        (format): Now final.
2697
        Added many new methods.
2698
 
2699
        * Makefile.in: Rebuilt.
2700
        * Makefile.am (gnu_files): New macro.
2701
        (java_files): Added gnu_files.
2702
        (class_gnu_files): New macro.
2703
        (class_files): Use it.
2704
        (src_gnu_files): New macro.
2705
        (gnu.o): New target.
2706
        (javao_files): Added gnu.o.
2707
 
2708
        * gnu/gcj/text/LocaleData_en_US.java: New file.
2709
        * gnu/gcj/text/LocaleData_en.java: New file.
2710
        * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2711
        (DecimalFormatSymbols): Use ResourceBundle to find resources.
2712
        (safeGetString): New method.
2713
        (safeGetChar): Likewise.
2714
 
2715
1999-03-03  Tom Tromey  
2716
 
2717
        * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2718
        constants.
2719
 
2720
        * java/text/FieldPosition.java (equals): Don't check for null
2721
        object; instanceof does this.
2722
 
2723
        * java/util/Locale.java (clone): New method.
2724
        (equals): Likewise.
2725
 
2726
Wed Mar  3 17:20:15 1999  Anthony Green  
2727
 
2728
        * doc/cni.sgml: New file.
2729
 
2730
1999-03-03  Tom Tromey  
2731
 
2732
        * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2733
 
2734
        * java/text/DecimalFormatSymbols.java: New file.
2735
 
2736
1999-03-02  Tom Tromey  
2737
 
2738
        * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2739
        exists.
2740
        * configure: Rebuilt.
2741
        * configure.in: Check for sys/filio.h.
2742
 
2743
        * java/lang/Runtime.java (checkLink): Throw NullPointerException
2744
        if required.
2745
        (load): Always throw UnsatisfiedLinkError.
2746
        (loadLibrary): Likewise.
2747
 
2748
1999-03-02  Anthony Green  
2749
 
2750
        * LIBGCJ_LICENSE: New file.
2751
        * LIBJAVA_LICENSE: Removed.
2752
        * Many files: libjava now libgcj.
2753
 
2754
1999-03-02  Tom Tromey  
2755
 
2756
        * include/java-chartables.h: Rebuilt.
2757
        * chartables.pl (print_block): Make table `const'.
2758
        (print_numerics): Likewise.
2759
        (print_single_map): Likewise.
2760
        (print_all_block): Likewise.
2761
        (print_case_table): Likewise.
2762
        (print_fast_tables): Likewise.
2763
        * java/lang/natCharacter.cc (table_search): `table' argument now
2764
        const.
2765
 
2766
1999-03-01  Tom Tromey  
2767
 
2768
        * java/util/Date.java (before, after): Inverted logic.
2769
 
2770
        * java/util/Date.java (parse): Handle case where first character
2771
        in string is open parenthesis.
2772
        (skipParens): Rewrote.
2773
 
2774
        * java/lang/reflect/natArray.cc: Include .
2775
        * java/lang/reflect/natField.cc: Include .
2776
 
2777
        * java/util/Date.java (parse): Correctly compute beginning of
2778
        punctuation.
2779
 
2780
        * java/util/Hashtable.java (get): Throw NullPointerException if
2781
        key is null.
2782
        (containsKey): Likewise.
2783
 
2784
        * java/util/Properties.java (list): Truncate value to 37
2785
        characters and add `...'.
2786
 
2787
        * java/lang/Byte.java (parseByte): Pass `radix' to
2788
        Integer.parseInt.
2789
 
2790
        * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2791
        fprintf.
2792
        Include System.h, PrintStream.h.
2793
 
2794
        * java/lang/natSystem.cc (init_properties): Don't use malloc,
2795
        realloc, or free.
2796
 
2797
        * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2798
        exists.
2799
        * configure: Rebuilt.
2800
        * configure.in: Check for getpwuid_r.  Look for `pwd.h', not
2801
        `pwd.d'.
2802
 
2803
        * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2804
 
2805
        * java/lang/SecurityManager.java: Import java.net.*.
2806
        (checkMulticast): New methods.
2807
 
2808
Fri Feb 26 14:54:52 1999  Per Bothner  
2809
 
2810
        * Makefile.am, Makefile.in (java/lang/reflect/Method.h):  New rule.
2811
        (nat_files):  Add java/lang/reflect/natArray.o.
2812
        (nat_headers):  Add Field.h and NoSuchFieldException.h.
2813
 
2814
        * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2815
        _Jv_GetStaticShortField, _Jv_GetStaticByteField):  New inline methods.
2816
        (_Jv_FromReflectedField):  Fix buglet.
2817
        * include/jvm.h (_Jv_NewMultiArray):  New declaration.
2818
        * include/java-assert.h (JvFail):  Pass message string to _Jv_Abort.
2819
        * prims.cc (_Jv_Abort):  Include message in print-out.
2820
 
2821
        * prims.cc (_Jv_equal):  New method (compare Utf8Const and jstring).
2822
        (new_multi_array):  Rename to _Jv_NewMultiArray.  Make non-static.
2823
        * include/jvm.h (_Jv_NewMultiArray, _Jv_equal):  New declarations.
2824
 
2825
        * configure.in (AC_CHECK_HEADERS), configure:  Add pwd.h.
2826
        * include/config.h.in (HAVE_PWD_H):  New feature macro.
2827
        * java/lang/natSystem.cc (init_properties):  Set file.encoding,
2828
        user.name, user.home, user.dir.
2829
 
2830
        * java/lang/reflect/Array.java:  New class.
2831
        * java/lang/reflect/natArray.cc:  New native methods.
2832
        * include/javaprims.h:  Declare java::lang::reflect::Array.
2833
 
2834
        * java/lang/Class.h (getField):  New private method.  Add friends.
2835
        * java/lang/Class.java (getField):  Add private overload.
2836
        * java/lang/natClass.cc (getField, getField, getDeclaredField,
2837
        getDeclaredMethods):  Add working implementations.
2838
        * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2839
        Finish implementation, except for access control.
2840
 
2841
        * java/lang/reflect/Modifier.java (toString):  New overload.
2842
        * include/java-method.h:  New file.
2843
        * java/lang/reflect/Method.java (index):  Replaced by offset field.
2844
        Remove various private fields - get them from _Jv_Field instead.
2845
        * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2846
        New method implementations.
2847
 
2848
        * java/text/NumberFormat.java:  Add a bunch of methods.
2849
 
2850
Mon Feb 22 17:52:34 1999  Per Bothner  
2851
 
2852
        * java/lang/StringBuffer.java (getChars):  Fix bounds checks.
2853
 
2854
1999-02-26  Tom Tromey  
2855
 
2856
        * include/config.h.in: Rebuilt.
2857
        * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2858
        GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2859
        HAVE_GETHOSTBYADDR_R): New defines.
2860
        * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2861
        gethostbyaddr_r if available.
2862
        Include .
2863
        * configure: Rebuilt.
2864
        * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2865
 
2866
        * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2867
        Don't use JvFree.
2868
        (lookup): Likewise.
2869
        Include .
2870
        * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2871
        * prims.cc (_Jv_AllocBytesChecked): New function.
2872
 
2873
        * Makefile.in: Rebuilt.
2874
        * Makefile.am (SUBDIRS): Removed `test'.
2875
        * configure: Rebuilt.
2876
        * configure.in: Don't build test/Makefile.
2877
        * test/*: Removed all files.
2878
 
2879
Thu Feb 25 17:27:37 1999  Warren Levy  
2880
 
2881
        * java/lang/reflect/Constructor.java: Make class final to match spec.
2882
        * java/lang/reflect/Method.java: Ditto.
2883
 
2884
1999-02-25  Tom Tromey  
2885
 
2886
        * java/net/natInetAddress.cc: Include  before
2887
        .
2888
        * java/net/natPlainSocketImpl.cc: Include  before
2889
        .
2890
 
2891
        * java/net/natInetAddress.cc: Declare gethostname if required.
2892
        * include/config.h.in: Rebuilt.
2893
        * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2894
        * configure: Rebuilt.
2895
        * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2896
        declared in unistd.h.
2897
 
2898
1999-02-24  Tom Tromey  
2899
 
2900
        * Makefile.in: Rebuilt.
2901
        * Makefile.am (java/io/FileDescriptor.h): Removed target.
2902
        * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2903
        from private to "none".
2904
 
2905
        * include/javaprims.h: Regenerated class declarations with new
2906
        classes.pl.
2907
        * classes.pl (scan): Only generate decls for java.lang, java.io,
2908
        and java.util.
2909
 
2910
1999-02-24  Tom Tromey  
2911
 
2912
        * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2913
        (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2914
 
2915
1999-02-23  Tom Tromey  
2916
 
2917
        * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2918
        not already defined.
2919
        * java/io/natFile.cc (_REENTRANT): Only define if not already
2920
        defined.
2921
        * include/config.h.in: Rebuilt.
2922
        * acconfig.h (HAVE_BOEHM_GC): New define.
2923
        * configure: Rebuilt.
2924
        * configure.in: Define HAVE_BOEHM_GC if using it.
2925
        * posix-threads.cc: Include boehm-config.h and gc.h if
2926
        HAVE_BOEHM_GC.
2927
        * include/posix-threads.h: Added explanatory note about Boehm GC.
2928
 
2929
        * java/io/BufferedReader.java (readLine): Only return null when
2930
        EOF seen before any characters read.  (In particular, an empty
2931
        line should not return null.)
2932
 
2933
        * java/io/BufferedInputStream.java (read): Only refill once per
2934
        invocation.
2935
 
2936
        * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2937
        java.lang.Character.classify12, java.lang.String.hash,
2938
        java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2939
        java.text.SimpleDateFormat.getAndSet2DigitYearStart
2940
 
2941
        * java/text/StringCharacterIterator.java (setIndex): No error if
2942
        index == end.
2943
        (next): Check for `pos == end', not `end - 1'.
2944
        (StringCharacterIterator): Allow `pos == end'.  Explicitly check
2945
        for null text in each constructor.
2946
        (clone): Fixed order of arguments to constructor.
2947
 
2948
1999-02-22  Tom Tromey  
2949
 
2950
        * include/config.h.in: Rebuilt.
2951
        * acconfig.h (HAVE_INET6): New define.
2952
        (HAVE_SOCKLEN_T): Likewise.
2953
        * java/net/PlainSocketImpl.java: Added copyright header.
2954
        * java/net/natPlainSocketImpl.cc: Added copyright header.
2955
        (union SockAddr): Use HAVE_INET6, not AF_INET6.
2956
        (bind): Likewise.
2957
        (connect): Likewise.
2958
        (accept): Likewise.
2959
        (socklen_t): New typedef.
2960
        (accept): Use socklen_t.
2961
        * java/net/natInetAddress.cc: Added copyright header.
2962
        (HAVE_GETHOSTNAME): Don't define.
2963
        (HAVE_INET_ADDR): Likewise.
2964
        (lookup): Fixed typo.
2965
        (aton): Don't use `address' as name of local variable.
2966
        (lookup): Use HAVE_INET6, not AF_INET6.
2967
 
2968
        * configure: Rebuilt.
2969
        * configure.in: Look for functions inet_aton, inet_addr,
2970
        gethostname, inet_pton, uname.  Check for sockaddr_in6 structure.
2971
        Check for socklen_t typedef.
2972
 
2973
        * exception.cc (__throw): Declare as __noreturn__.
2974
 
2975
Mon Feb 22 15:27:35 1999  Per Bothner  
2976
 
2977
        * Makefile.am, Makefile.in:  Also build java/net.
2978
        (java/io/FileDescriptor.h):  Add friend java::net::PlainSocketImpl.
2979
 
2980
        * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2981
        * java/util/natGregorianCalendar.cc:  #define _REENTRANT.
2982
 
2983
        * prims.cc (_Jv_malloc, _Jv_Free):  New functions.
2984
        * include/cni.h (JvMalloc, JvFree):  New inline functions.
2985
        (JvThrow):  Add __noreturn__ attribute.
2986
        * include/javaprims.h (_Jv_Malloc, _Jv_Free):  New declarations.
2987
        (_Jv_Throw):  Add __noreturn__ attribute.
2988
 
2989
        * java/net/PlainSocketImpl.java:  Init fnum to -1.
2990
        * java/net/ServerSocket.java:  Add missing throws clauses.
2991
        * java/lang/Socket.java:  For the constructor taking a SocketImpl,
2992
        don't call create on the latter.  Instead, other constructors
2993
        have to explicitly call SocketImpl.create.
2994
        * java/net/natPlainSocketImpl.cc (accept):  Change variable addrlen
2995
        from size_t to int, to match ::accept prototype.
2996
        * java/net/natInetAddress.cc:  Use JvFree rather than free.
2997
 
2998
 
2999
1999-02-22  Tom Tromey  
3000
 
3001
        * include/javaprims.h: Added new classes.
3002
        * java/text/StringCharacterIterator.java: New file.
3003
        * java/text/CharacterIterator.java: New file.
3004
 
3005
        * java/text/ParseException.java (errorOffset): Now private.
3006
 
3007
Mon Feb 22 12:54:53 1999  Per Bothner  
3008
 
3009
        * java/net:  New package.
3010
        * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3011
        Socket.java,SocketException.java,SocketImpl.java,
3012
        SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3013
        natPlainSocketImpl.cc}:  New classes.
3014
 
3015
        * configure.in (AC_CHECK_HEADERS):  Also check for ,
3016
        ,  and .
3017
        * include/config.h.in:  Add place-holders for HAVE_ARPA_INET_H,
3018
        HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3019
 
3020
        * classes.pl:  Translate package into "namespace", not "class".
3021
        * include/javaprims.h:  Update class list, using "namespace".
3022
 
3023
1999-02-21  Tom Tromey  
3024
 
3025
        * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3026
        Define when appropriate.
3027
 
3028
1999-02-20  Tom Tromey  
3029
 
3030
        * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3031
        as a single byte and \u07ff as two bytes.
3032
        (_Jv_GetStringUTFLength): Likewise.
3033
        * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3034
        with 0x0f, not 0x1f.
3035
 
3036
1999-02-19  Tom Tromey  
3037
 
3038
        * java/io/DataOutputStream.java (writeUTF): When encoding
3039
        character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3040
        * java/io/DataInputStream.java (readUTF): Mask second byte of
3041
        3-byte character with 0x3f, not 0x1f.
3042
 
3043
        * java/io/DataInputStream.java (readLong): Cast result of
3044
        readUnsignedByte to long before using.
3045
 
3046
        * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3047
        it is not null.
3048
 
3049
        * mauve-libjava: Re-enabled java.io.DataInputOutput.
3050
        * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3051
        argument to avoid warning.
3052
        * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3053
        argument to avoid warning.
3054
 
3055
1999-02-18  Tom Tromey  
3056
 
3057
        * mauve-libjava: Omit java.io.DataInputOutput and
3058
        java.io.Utf8Encoding.
3059
 
3060
1999-02-17  Tom Tromey  
3061
 
3062
        * Makefile.in: Rebuilt.
3063
        * Makefile.am (nat_headers): Added InterruptedIOException.h.
3064
        * java/io/natFileDescriptorPosix.cc: Include
3065
        InterruptedIOException.h, Thread.h.
3066
        (write): Throw InterruptedIOException when required.
3067
        (read): Likewise.
3068
        * posix-threads.cc: Include .
3069
        (_Jv_ThreadInterrupt): New function.
3070
        (INTR): New define.
3071
        (handle_intr): New function.
3072
        (_Jv_InitThreads): Register handle_intr via sigaction.
3073
        * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3074
        * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3075
        * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3076
        * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3077
 
3078
1999-02-19  Andrew Haley  
3079
 
3080
        * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3081
        of subgroups.
3082
        (ThreadGroup (int)): Set the maximum priority of the initial
3083
        ThreadGroup.
3084
 
3085
1999-02-18  Andrew Haley  
3086
 
3087
        * java/lang/natClass.cc (forName): Check for the case where a
3088
        classname is the name of an array and call FindClassFromSignature
3089
        to find the Class.
3090
 
3091
1999-02-18  Andrew Haley  
3092
 
3093
        * java/lang/StringBuffer (insert (int, String)): Move up any
3094
        characters above the insert position and increase the length of
3095
        the string buffer by the length of the argument.
3096
        (insert (int, char[])): Likewise.
3097
        (insert (int, char)): Likewise.
3098
        (StringBuffer (String)): The initial capacity of the string buffer
3099
        is 16 plus the length of the argument.
3100
        (getChars): Add a JDK 1.2 FIXME.
3101
 
3102
1999-02-18  Andrew Haley  
3103
 
3104
        * java/lang/Short.java (parseShort(String, int)): Pass radix to
3105
        Integer.parseInt.
3106
 
3107
1999-02-18  Andrew Haley  
3108
 
3109
        * java/lang/Double.java (equals): Use a bit-by-bit comparision
3110
        instead of floating-point equality.  This is necessary for
3111
        correct floating-point Hashtables.
3112
        * java/lang/Float.java (equals): Ditto.
3113
 
3114
1999-02-16  Tom Tromey  
3115
 
3116
        * java/util/Properties.java (list): Truncate value to 37
3117
        characters and add "...".
3118
 
3119
1999-02-16  Tom Tromey  
3120
 
3121
        * java/util/Vector.java (Vector): Throw IllegalArgumentException
3122
        if initCap is negative.
3123
        (contains): Implement JDK1.2-style handling of null argument.
3124
        (removeElement): Likewise.
3125
        (indexOf): Likewise.  Also, correctly handle case where idx is
3126
        negative.
3127
        (lastIndexOf): Likewise.
3128
 
3129
1999-02-16  Tom Tromey  
3130
 
3131
        * java/lang/natString.cc (init): Increment source pointer in
3132
        loop.
3133
 
3134
1999-02-16  Tom Tromey  
3135
 
3136
        * exception.cc: Include NullPointerException.h.
3137
        (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3138
 
3139
1999-02-16  Tom Tromey  
3140
 
3141
        * Makefile.in: Rebuilt.
3142
        * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3143
 
3144
Sat Feb 13 20:25:09 1999  Bonzo Armstrong  
3145
 
3146
        * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3147
        we're compiling canadian.
3148
        * configure: Regenerated.
3149
 
3150
1999-02-12  Andrew Haley  
3151
 
3152
        * java/lang/sf_rint.c: Resurrected.  This file shouldn't have been
3153
        deleted from libgcj.
3154
 
3155
1999-02-12  Tom Tromey  
3156
 
3157
        * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3158
        (_Jv_eh_free): Don't call free.
3159
        Don't declare malloc or free.
3160
 
3161
1999-02-11  Tom Tromey  
3162
 
3163
        * configure.host: Use `libgcj', not `libjava'.  Removed `echo'.
3164
 
3165
1999-02-11  Andrew Haley  
3166
 
3167
        * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3168
        wf_fmod.c: Deleted.  These are all files from fdlibm which aren't
3169
        needed by java.lang.*.
3170
        * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3171
        wf_fmod.o: Removed from libjava.a.
3172
 
3173
1999-02-11  Tom Tromey  
3174
 
3175
        * include/javaprims.h: Reverted previous change; with it
3176
        exception.cc can't compile.
3177
 
3178
        * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3179
 
3180
        * include/config.h.in: Rebuilt.
3181
        * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3182
        HAVE_SCHED_YIELD.
3183
        * configure: Rebuilt.
3184
        * configure.in: Check for sched_yield.  Look in thread library for
3185
        all thread functions.
3186
 
3187
        * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3188
        no recursive mutexes.
3189
        (_Jv_MutexDestroy): Define when required.
3190
        (_Jv_MutexLock): Likewise.
3191
        (_Jv_MutexUnlock): Likewise.
3192
        (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3193
        * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3194
        (_Jv_Mutex_t): New structure.
3195
        (_Jv_MutexDestroy): Only define if recursive mutexes available.
3196
        (_Jv_MutexLock): Likewise.
3197
        (_Jv_MutexUnlock): Likewise.
3198
 
3199
1999-02-10  Tom Tromey  
3200
 
3201
        * aclocal.m4, configure, Makefile.in: Rebuilt.
3202
        * acinclude.m4: Renamed libjava to libgcj.  Updated to use
3203
        automake 1.4.
3204
        * configure.in: Changed to track library changes.
3205
        * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3206
        (AM_CXXFLAGS): Likewise.
3207
        (data_DATA): Likewise.
3208
        (AM_CFLAGS): Likewise.
3209
        (JC1FLAGS): Likewise.
3210
        (libgcj_a_SOURCES): Likewise.
3211
        (EXTRA_libgcj_a_SOURCES): Likewise.
3212
        (libgcj_a_DEPENDENCIES): Likewise.
3213
        (libgcj_a_LIBADD): Likewise.
3214
        (libgcj.zip): Likewise.
3215
        (CLEANFILES): Likewise.
3216
        ($(nat_headers)): Likewise.
3217
        (java/lang/FirstThread.h): Likewise.
3218
        (java/lang/ThreadGroup.h): Likewise.
3219
        (java/lang/String.h): Likewise.
3220
        (java/lang/reflect/Field.h): Likewise.
3221
        (BUILT_SOURCES): Likewise.
3222
        (maintainer-check): Likewise.
3223
        (CONFIG_STATUS_DEPENDENCIES): Likewise.
3224
Tue Feb  9 11:06:38 1999  Anthony Green  
3225
 
3226
        * java/util/natGregorianCalendar.cc (computeFields): Only use
3227
        gmtime_r and localtime_r when configured for posix threads.
3228
 
3229
        * java/io/natFile.cc (get_entry): Only use readdir_r when
3230
        configured for posix threads.
3231
 
3232
        * java/util/natGregorianCalendar.cc: Update copyright notice.
3233
        * java/util/TimeZone.java: Ditto.
3234
        * java/util/SimpleTimeZone.java: Ditto.
3235
 
3236
1999-02-08  Tom Tromey  
3237
 
3238
        * java/io/PrintStream.java (line_separator): New constant.
3239
        (print): Use line_separator, not `file.separator' property.
3240
        (println): Use line_separator.
3241
 
3242
        * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3243
        when trying to instantiate Class.
3244
 
3245
        * java/lang/ThreadGroup.java (ThreadGroup): Throw
3246
        NullPointerException if argument is null.
3247
 
3248
        * java/lang/Thread.java (setName): Throw NullPointerException, not
3249
        IllegalArgumentException.
3250
        (Thread): Likewise.
3251
 
3252
1999-02-08  Andrew Haley  
3253
 
3254
        * java/lang/natClass.cc (newInstance): Don't allow anyone to
3255
        create new Classes with Class.newInstance().
3256
 
3257
        * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3258
        semiciolon to end of an array Class's signature if the elements of
3259
        the array aren't themselves arrays.
3260
 
3261
        * java/lang/natSystem.cc (arraycopy): The size of an element of an
3262
        array of objects is always sizeof(jobject), not the size of the
3263
        object to which the reference points.
3264
 
3265
1999-02-08  Tom Tromey  
3266
 
3267
        * java/util/BitSet.java (and): Throw NullPointerException when
3268
        required.
3269
        (or): Likewise.
3270
        (xor): Likewise.
3271
 
3272
        * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3273
        if argument is negative.
3274
        (clear): Correctly compute `offset'.  Throw
3275
        IndexOutOfBoundsException when required.
3276
        (set): Likewise.
3277
        (get): Likewise.  Also, return correct value.
3278
        (ensure): Changed meaning of argument.
3279
        (toString): Wrap contents in `{}'; put spaces after commas.
3280
        (hashCode): Don't try to examine elements off the end of array.
3281
        (or): Correctly include bits past the end of this bit set.
3282
        (xor): Likewise.
3283
 
3284
Thu Feb  4 12:48:03 1999  Warren Levy  
3285
 
3286
        * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3287
        instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3288
 
3289
1999-02-04  Andrew Haley  
3290
 
3291
        * java/lang/natClass.cc (Class::forName): Remove code which mapped
3292
        '/' in signatures to '.'
3293
        (Class::getName): Likewise,
3294
        (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3295
        signature.
3296
        * java/lang/natFirstThread.cc (run): Change '/' in main's
3297
        signature to '.'.
3298
 
3299
1999-02-03  Andrew Haley  
3300
 
3301
        * configure.host: -ffloat-store added when compiling libjava on
3302
        x86.  fdlibm apparently relies on this.
3303
 
3304
        * java/lang/ThreadGroup.java (add): throw an exception if the
3305
        ThreadGroup has been destroyed.
3306
 
3307
        * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3308
        behaviour.
3309
 
3310
1999-01-27  Tom Tromey  
3311
 
3312
        * java/lang/StringBuffer.java (StringBuffer): Handle null
3313
        argument.
3314
 
3315
1999-01-21  Tom Tromey  
3316
 
3317
        * java/lang/natFirstThread.cc (run): Don't require main to be
3318
        public.
3319
 
3320
Wed Jan 20 15:44:56 1999  Anthony Green  
3321
 
3322
        * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3323
 
3324
1999-01-20  Tom Tromey  
3325
 
3326
        * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3327
        StringClass.
3328
        (rehash): Likewise.
3329
        (intern): Likewise.
3330
        (unintern): Likewise.
3331
        (_Jv_NewStringUtf8Const): Likewise.
3332
 
3333
        * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3334
        Character.isLetter, to see if character is self-quoting.  Also,
3335
        correctly handle quoted characters.
3336
        (parse): Fixed typo.  Also now throws ParseException.
3337
 
3338
1999-01-15  Tom Tromey  
3339
 
3340
        * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3341
 
3342
        * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3343
        _Jv_SyncInfo has `init' member.
3344
 
3345
        * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3346
        coop_mutex_unlock.
3347
 
3348
        * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3349
        IllegalMonitorStateException if unlock fails.
3350
 
3351
        * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3352
        zero.
3353
        (_Jv_NewObjectArray): Likewise.
3354
 
3355
1999-01-14  Tom Tromey  
3356
 
3357
        * java/lang/Character.java (isJavaIdentifierPart): Allow
3358
        LETTER_NUMBER characters.
3359
 
3360
        * chartables.pl (process_char): Fixed error messages.
3361
 
3362
        * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3363
        * chartables.pl: Updated comments.  Changed detection of non-digit
3364
        numeric values (no longer miss \u00b2 and friends).
3365
 
3366
        * java/lang/Character.java (isJavaIdentifierPart): Recognize
3367
        currency symbols and connector punctuation.
3368
        (isIdentifierIgnorable): Make 7f-9f ignorable.
3369
 
3370
        * prims.cc (_Jv_NewObjectArray): Check for overflow.
3371
        (_Jv_NewPrimArray): Likewise.
3372
        (SIZE_T_MAX): New define.
3373
 
3374
        * java/lang/ClassLoader.java (system): Now private and final.
3375
 
3376
        * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3377
        null.
3378
 
3379
        * configure: Rebuilt.
3380
        * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3381
        well.
3382
        * exception.cc: Include gansidecl.h.
3383
 
3384
1999-01-14  Andrew Haley  
3385
 
3386
        * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3387
        corrected: they didn't treat -0.0 and NaNs correctly.
3388
 
3389
Wed Jan 13 13:32:22 1999  Anthony Green  
3390
 
3391
        * nogc.cc: Use calloc to zero out memory.
3392
 
3393
1999-01-11  Tom Tromey  
3394
 
3395
        * java/lang/natClass.cc (isInstance): Return false if this class
3396
        is primitive, not if class of `obj' is primitive.
3397
        (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3398
 
3399
        * java/io/SequenceInputStream.java (close): Handle case where `in'
3400
        is already null.
3401
 
3402
        * java/text/DateFormat.java (format): New method.
3403
 
3404
        * mauve-libjava: Omit java.text.DateFormat.
3405
 
3406
1999-01-08  Tom Tromey  
3407
 
3408
        * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3409
        argument.
3410
        * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3411
        argument.
3412
        (_Jv_CondNotifyAll): Likewise.
3413
 
3414
        * configure: Rebuilt.
3415
        * configure.in: Change --enable-source-compilation logic to work
3416
        correctly.
3417
 
3418
1999-01-07  Andrew Haley  
3419
 
3420
        * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3421
        and RUNTESTFLAGS from AM_MAKEFLAGS.
3422
        * configure.in: AM_RUNTESTFLAGS added.
3423
        * configure.host: AM_RUNTESTFLAGS added.
3424
        * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3425
        * configure: rebuilt.
3426
        * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3427
 
3428
        * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3429
        argv[] made conditional because embedded targets may not have
3430
        argv[].
3431
        * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3432
        explanatory comments added in call to super.
3433
 
3434
        * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3435
        exception thrown in the test harness itself added.
3436
        * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3437
 
3438
Wed Jan  6 17:27:39 1999  Per Bothner  
3439
 
3440
        * java/text/DateFormatSymbols.java (zoneStringsDefault):  Make static.
3441
 
3442
1999-01-06  Tom Tromey  
3443
 
3444
        * java/io/natFile.cc (get_entry): New function.
3445
        (performList): Use get_entry.
3446
        * include/config.h.in: Rebuilt.
3447
        * acconfig.h (HAVE_READDIR_R): New define.
3448
        * configure: Rebuilt.
3449
        * configure.in: Look for readdir_r.
3450
 
3451
        * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3452
 
3453
        * java/util/natDate.cc: Added copyright header.
3454
 
3455
1999-01-05  Tom Tromey  
3456
 
3457
        * include/config.h.in: Rebuilt.
3458
        * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3459
        HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3460
        * configure: Rebuilt.
3461
        * configure.in: Check for access, stat, mkdir, rename, rmdir,
3462
        unlink, and realpath.
3463
        * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3464
        (stat): Conditionalize on HAVE_STAT.
3465
        (attr): Likewise.
3466
        (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3467
        (performMkdir): Conditionalize on HAVE_MKDIR.
3468
        (performRenameTo): Conditionalize on HAVE_RENAME.
3469
        (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3470
 
3471
        * include/config.h.in: Rebuilt.
3472
        * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3473
        * configure: Rebuilt.
3474
        * configure.in: Check for gmtime_r and localtime_r.  For cross
3475
        builds, assume they exist.
3476
 
3477
        * mauve-libjava: Include java.text.DateFormatSymbols again.
3478
        * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3479
        from setAmPmStrings.
3480
 
3481
        * mauve-libjava: Omit java.text.DateFormatSymbols.
3482
 
3483
1999-01-04  Tom Tromey  
3484
 
3485
        * java/io/PushbackReader.java: `off' already includes `numBytes'.
3486
 
3487
        * java/io/LineNumberReader.java (read): Decrement `count' in
3488
        loop.
3489
 
3490
        * java/io/BufferedWriter.java (write): Correctly determine when
3491
        incoming data would overrun buffer.  Flush buffer if write causes
3492
        it to become full.
3493
 
3494
        * java/io/BufferedOutputStream.java (write): Increment `count'
3495
        after copying data into buffer.
3496
 
3497
        * java/io/FilterOutputStream.java (close): Call flush first.
3498
 
3499
        * java/io/PipedReader.java (read): If read causes `out' to catch
3500
        up with `in', then set `in' to -1.
3501
 
3502
        * java/io/LineNumberInputStream.java (read): If no bytes read,
3503
        return -1.  If no bytes requested, return 0.
3504
 
3505
        * java/lang/StringBuffer.java (insert): If `str' is null, use
3506
        string "null".
3507
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.