OSDN Git Service

2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>
2
3         * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
4         * configure.host (EXCEPTIONSPEC): New.
5         * configure.in (EXCEPTIONSPEC): New.
6         * configure: Rebuilt.
7
8 2001-05-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9
10         
11 2001-04-30  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
12
13         * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
14         (performDelete): Fix #endif placement.
15
16 2001-04-27  Zack Weinberg  <zackw@stanford.edu>
17
18         * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
19         * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
20         (_Jv_ThreadDestroyData): Use _Jv_Free.
21         * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
22         Use _Jv_Malloc.
23
24 2001-04-27  Tom Tromey  <tromey@redhat.com>
25
26         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
27         checking.
28         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
29
30 2001-04-27  Martin Kahlert  <martin.kahlert@infineon.com>
31
32         * include/jni.h (struct JNINativeInterface): Fixed types in
33         Get/Set*ArrayRegion declarations.
34         (class _Jv_JNIEnv): Likewise.
35
36 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
37
38         * configure.in: Obtain THREADS with `gcc -v'.
39         * configure: Rebuilt.
40
41 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
42
43         Fix PR libgcj/2237:
44         * java/io/ObjectStreamClass.java (setClass): Calculate 
45         serialVersionUID for local class and compare it against the UID
46         from the Object Stream. Throw InvalidClassException upon mismatch.
47         (setUID): Renamed to...
48         (getClassUID): this. Return the calculated class UID rather than 
49         setting uid field directly.
50         (getDefinedSUID): Removed.
51         * java/io/ObjectInputStream.java (resolveClass): Use the 
52         three-argument Class.forName(). 
53         * java/io/InvalidClassException (toString): Don't include classname in
54         result if it is null.
55
56 2001-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
57
58         * java/net/natInetAddress.cc (java::net::InetAddress::aton):
59         Wrap use of inet_pton in HAVE_INET6.
60
61 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
62
63         java.security merge and ClassLoader compliance fixes.
64
65         * java/lang/Class.h (Class): Include ProtectionDomain.h. 
66         New protectionDomain field.
67         (forName): Add initialize parameter. Fixes declaration to comply with 
68         JDK spec.
69         * java/lang/natClass.cc (forName): Correct declaration of the three-arg
70         variant. Honour "initialize" flag.
71         (getProtectionDomain0): New method.
72         * java/lang/Class.java: Fix forName() declaration.
73         (getPackage): New method based on Classpath implementation.
74         (getProtectionDomain0): New native method decl.
75         (getProtectionDomain): New method.
76         * java/lang/ClassLoader.java (getParent): Now final.
77         (definedPackages): New field.
78         (getPackage): New.
79         (defineClass): New variant with protectionDomain argument.
80         (definePackage): New.
81         (getPackages): New.
82         (findSystemClass): Now final.
83         (getSystemResourceAsStream): Remove redundant "final" modifier.
84         (getSystemResource): Remove redundant "final" modifier.
85         (getResources): Now final.
86         (protectionDomainPermission): New static field.
87         (unknownProtectionDomain): Ditto.
88         (defaultProtectionDomain): Ditto.
89         (getSystemClassLoader): Now non-native.
90         * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
91         arguments for Class.forName().
92         * java/lang/Package.java: New file.
93         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
94         (instance): Static initialize singleton.
95         (findClass): Override this, not findSystemClass.
96         * java/lang/natClassLoader.cc (defineClass0): Set class's
97         protectionDomain field as specified.
98         (getSystemClassLoader): Removed.
99         (findClass): Renamed from findSystemClass. Call the interpreter via
100         URLClassLoader.findClass if loading class via dlopen fails.
101
102         * java/security/*.java: java.security import/merge with Classpath.
103         * java/security/acl/*.java: Likewise.
104         * java/security/interfaces/*.java: Likewise.
105         * java/security/spec/*.java: Likewise.
106         * java/net/NetPermission.java: Likewise.
107         * java/net/SocketPermission.java: Likewise.
108         * gnu/java/security/provider/DefaultPolicy.java: Likewise.
109         
110         * Makefile.am: Add new classes.
111         * Makefile.in: Rebuilt.
112         * gcj/javaprims.h: CNI namespace rebuild.
113
114 2001-04-24  Alexandre Oliva  <aoliva@redhat.com>
115
116         * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
117         for libtool tests.  Pre-create gnu/classpath/Configuration.java.
118         * configure: Rebuilt.
119
120 2001-04-21  Tom Tromey  <tromey@redhat.com>
121
122         * Makefile.in: Rebuilt.
123         * Makefile.am (awt_java_source_files): Added Line2D.java.
124         * java/awt/geom/Line2D.java: Wrote.
125
126         * java/awt/Menu.java (addNotify): Wrote.
127
128         * java/awt/PopupMenu.java (addNotify): Implemented.
129         (show): Likewise.
130
131         * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
132         * java/awt/List.java (addNotify): Call super.addNotify.
133         * java/awt/Label.java (addNotify): Call super.addNotify.
134         * java/awt/FileDialog.java (addNotify): Call super.addNotify.
135         * java/awt/Dialog.java (addNotify): Call super.addNotify.
136         * java/awt/Choice.java (addNotify): Call super.addNotify.
137         * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
138         * java/awt/Checkbox.java (addNotify): Call super.addNotify.
139
140         * java/awt/List.java (replaceItem): Notify peer.
141
142         * java/awt/geom/Rectangle2D.java
143         (Float.setRect(float,float,float,float)): New method.
144
145         * java/awt/event/ContainerEvent.java (getContainer): Now returns
146         Container.
147
148         * java/awt/RenderingHints.java (Key): Class now public.
149
150         * java/awt/Rectangle.java (Rectangle): Now implements
151         Serializable.
152         (getPathIterator): Removed.
153
154         * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
155         constructor.
156
157         * java/awt/FileDialog.java: Wrote.
158
159         * java/awt/EventQueue.java (isDispatchThread): Now public.
160         (invokeLater): Likewise.
161
162         * java/awt/Component.java (setCursor): Update peer.
163         (getFontMetrics): Use peer.
164
165         * java/awt/ComponentOrientation.java (ComponentOrientation): Class
166         now final.
167
168 2001-04-20  Tom Tromey  <tromey@redhat.com>
169
170         * java/awt/List.java: Wrote.
171         * java/awt/Dialog.java: Wrote.
172
173 2001-04-20  Warren Levy  <warrenl@redhat.com>
174
175         * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
176         * java/text/SimpleDateFormat.java
177         (indexInArray): Removed private method.
178         (processYear): Removed private method.
179         (parseLenient): Removed private method.
180         (parseLeadingZeros): Removed private method.
181         (parseStrict): Removed private method.
182         (expect): Added new private method.
183         (parse): Reverted to pre-Classpath merge version with minor fixes.
184         * java/util/natGregorianCalendar.cc (computeTime): Handle strict
185         calendars.
186
187 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
188
189         * java/io/File.java (normalizePath): New private method. 
190         (File (String)): Use normalizePath().
191         (File (String, String)): Likewise.
192
193         * Makefile.am (libffi_files): Removed.
194         (libgcj.la): Link libffi as a convenience library instead of 
195         refering to its object files directly.
196         * Makefile.in: Rebuilt.
197
198 2001-04-08  Per Bothner  <per@bothner.com>
199
200         * java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
201         Recalculate hash, since Utf8Const's hash is only 16 bits.
202
203         * java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
204         bits of hash to calculate step for chaining.
205
206         * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
207         when 2/3 full, rather than 3/4 full.
208
209 2001-04-06  Tom Tromey  <tromey@redhat.com>
210
211         * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
212         (wrap_value<T*>): New specialization.
213         (_Jv_JNI_PopLocalFrame): Update env->locals.
214
215 2001-04-05  Tom Tromey  <tromey@redhat.com>
216
217         * libtool-version: Updated current.
218
219 2001-04-04  Andreas Jaeger  <aj@suse.de>
220
221         * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
222         * gcj/Makefile.in: Rebuilt.
223         * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
224         * Makefile.in: Rebuilt.
225         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
226         * testsuite/Makefile.in: Rebuild.
227         * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
228         * include/Makefile.in: Rebuild.
229
230 2001-04-02 Zack Weinberg <zackw@stanford.edu>
231
232         * testsuite/lib/libjava.exp: Correct typo: 'output from source
233         compiled test', not 'execution from source compiled test'.
234         Use UNTESTED, not XFAIL, for tests which are not run because
235         they depend on a previous test which failed.
236
237 2001-04-02  Richard Henderson  <rth@redhat.com>
238
239         * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
240         the same tree as gcc.
241         * configure: Rebuilt.
242
243         * exception.cc (_Jv_Throw): Clarify commentary.
244
245 2001-04-02  Marcus G. Daniels  <mgd@swarm.org>
246
247         * jni.cc (wrap_value<jclass>): New specialization.
248
249 2001-04-02  Tom Tromey  <tromey@redhat.com>
250
251         * java/io/PrintStream.java (out): Removed field.  Fixes PR
252         java/2449.
253         (write): Call flush, not out.flush, per spec.
254         (close): Flush output stream, per spec.  Handle
255         InterruptedIOException.
256         (checkError): Likewise.
257         (flush, print, write): Handle InterruptedIOException per spec.
258         (PrintStream): Don't create BufferedOutputStream.
259         (work_bytes): New field.
260         (writeChars): Use work_bytes.  Don't assume `out' is a
261         BufferedOutputStream.
262
263 2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>
264
265         * java/text/MessageFormat.java (setLocale): Added missing `else'.
266         For PR libgcj/2429.
267
268 2001-03-30  Tom Tromey  <tromey@redhat.com>
269
270         * jni.cc (add_char): Correctly encode non-ascii characters.
271         (add_char): Define even when INTERPRETER not defined.
272         (mangled_name): Likewise.
273         (_Jv_GetJNIEnvNewFrame): Likewise.
274         (_Jv_LookupJNIMethod): Likewise.
275
276 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
277
278         * configure.host: Enable interpreter for PPC.
279
280 2001-04-02  Bryce McKinlay  <bryce@albatross.co.nz>
281
282         * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
283         to "file.separator", "path.separator", and "java.io.tmpdir" property
284         initialization.
285         * java/io/File.java: Likewise.
286         * java/io/natFile.cc (init_native): Likewise.
287         * java/io/natFileWin32.cc (init_native): Likewise.
288
289 2001-04-01  Per Bothner  <per@bothner.com>
290
291         * java/lang/natString.cc (intern):  If string's data does not point to
292         this String, make a fresh String that does.
293
294         * java/lang/natString.cc (unintern):  Replace by static function.
295         * java/lang/String.java (unintern):  Remove method.
296
297 2001-04-01  Per Bothner  <per@bothner.com>
298
299         * DeflaterOutputStream.java (deflate):  Loop while def.needsInput.
300         (finish):  def.deflate needs to be called in a loop.
301         (inbuf, inbufLength):  New private fields.
302         (write(int)): Use inbuf.
303         (write(byte[],int,int):  Check if pending output in inbuf.
304         * ZipOutputStream.java:  Don't use Deflater if stored.
305         Use a Checksum object directly, not via a CheckedOutputStream.
306         (uncompressed_size):  New field,
307         (closeEntry):  Only write data_directory if needed.
308         (write):  If STORED, write directly.
309         Always update crc, and uncompressed_size.
310         (write_entry):  Fix lots of protocol erors.
311
312 2001-04-01  Bryce McKinlay  <bryce@albatross.co.nz>
313
314         1.3-Compliant Implementation of java.io.File.
315         * java/lang/natSystem.cc (init_properties): Get "file.separator",
316         "path.separator", and "java.io.tmpdir" from the File class, instead
317         of setting them explicitly.
318         * java/io/File.java: Do not canonicalize paths for security manager
319         checks. Call init_native() from static initializer. Do not pass path
320         argument to native methods. New native method declarations. Some
321         security manager checks moved to checkWrite().
322         (equals): Check file system case sensitivity and act appropriatly.
323         (hashCode): Likewise.
324         (isHidden): New method implemented.
325         (performList): Changed prototype. Now takes a class argument specifying
326         the class of the returned array: Strings or File objects. Also added
327         FileFilter argument.
328         (listFiles): New variants with "File" return type implemented.
329         (createTempFile): Use createNewFile(). Use maxPathLen.
330         (setReadOnly): New method implemented.
331         (listRoots): Likewise.
332         (compareTo): Likewise.
333         (setLastModified): Likewise.
334         (checkWrite): New method.
335         (setPath): Removed.
336         * java/io/natFile.cc: Various functions no longer take canonical path
337         argument.
338         (stat): Handle ISHIDDEN query.
339         (isAbsolute): Remove WIN32 cruft.
340         (performList): New arguments. Handle returning either File[] or String[]
341         arrays. Check with FileFilter or FilenameFilter arguments as
342         appropriate. Use an ArrayList, not a Vector, for the temporary list.
343         (performSetReadOnly): New method implemented.
344         (performListRoots): Likewise.
345         (performSetLastModified): Likewise.
346         (performCreate): Likewise.
347         (init_native): New initialization function.
348         * java/io/natFileWin32.cc: Various functions no longer take canonical
349         path argument.
350         (stat): Add FIXME about ISHIDDEN query.
351         (performList): New arguments. Handle returning either File[] or String[]
352         arrays. Check with FileFilter or FilenameFilter arguments as
353         appropriate. Use an ArrayList, not a Vector, for the temporary list.
354         (performSetReadOnly): New. Stubbed.
355         (performListRoots): Likewise.
356         (performSetLastModified): Likewise.
357         (performCreate): Likewise.
358         (init_native) New initialization function.
359         * configure.in: Check for utime() and chmod().
360         * configure: Rebuilt.
361         * include/config.h.in: Rebuilt.
362
363         Resolves PR libgcj/1759.
364
365 2001-03-28  Richard Henderson  <rth@redhat.com>
366
367         IA-64 ABI Exception Handling:
368         * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
369         (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
370         Remove EXCEPTIONSPEC.
371         * configure.host (libgcj_sjlj): Remove.
372         * configure.in (EXCEPTIONSPEC): Remove.
373         (enable-sjlj-exceptions): Detect if not specified.
374         (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
375         what header we're looking for.
376         * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
377         * Makefile.in, configure: Regenerate.
378         * exception.cc: Don't declare libgcc2 stuff.
379         (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
380         (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
381         (win32_get_restart_frame): Remove.
382         (struct java_exception_header): New.
383         (__gcj_exception_class): New.
384         (get_exception_header_from_ue): New.
385         (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
386         (size_of_encoded_value, read_encoded_value): New.
387         (read_uleb128, read_sleb128, parse_lsda_header): New.
388         (get_ttype_entry, __gcj_personality_sj0): New.
389         * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
390
391 2001-03-27  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>
392
393         * javax/naming/InitialContext.java (init): Fix typo.
394         (composeName): Remove unnecessary semicolon.
395         (addToEnvironment): Remove unnecessary semicolon.
396         (addToEnvironment): Use put() instead of add().
397
398         * javax/naming/InitialContext.java (InitialContext):
399         Make public.
400         (destroySubcontext): Method doesn't return a result.
401         * javax/naming/Context.java: Import java.util.Hashtable.
402         * javax/naming/Name.java: Import java.util.Enumeration.
403
404 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
405
406         * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
407         objects in subdirectories.
408         * Makefile.in: Rebuilt.
409
410 2001-03-25  Richard Henderson  <rth@redhat.com>
411
412         * exception.cc (java_eh_info): Make value type jthrowable.
413         (_Jv_type_matcher): Remove now unneeded cast.
414         (_Jv_Throw): Make argument type jthrowable.  Munge name
415         for SJLJ_EXCEPTIONS here ...
416         * gcj/cni.h: ... not here.
417         (JvThrow): Remove.
418         * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
419
420         * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
421         prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
422         gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
423         gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
424         gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
425         java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
426         java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
427         java/lang/natClass.cc, java/lang/natClassLoader.cc,
428         java/lang/natDouble.cc, java/lang/natObject.cc,
429         java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
430         java/lang/natString.cc, java/lang/natSystem.cc,
431         java/lang/natThread.cc, java/lang/reflect/natArray.cc,
432         java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
433         java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
434         java/util/zip/natInflater.cc:
435         Use throw, not JvThrow or _Jv_Throw.
436
437 2001-03-24  Bryce McKinlay  <bryce@albatross.co.nz>
438
439         * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
440         paramater, bump it to 1.
441         * java/util/Hashtable.java (Hashtable): Likewise.
442
443 2001-03-23  Per Bothner  <per@bothner.com>
444
445         * java/lang/natDouble.cc (parseDouble):  Cannot use errno to
446         check for errors, since we don't want to throw exception on
447         overflow/underflow.  Instead, trim whitespace, and then check that
448         _strtod_r uses up all the rest of the string.
449
450         * java/lang/natClass.cc (_Jv_IsAssignableFrom):  Checking the
451         ancestors array is invalid for interfaces, so do that *after*
452         check that the target type is not an interface.
453
454 2000-03-23  Jeff Sturm  <jsturm@one-point.com>
455
456         * prims.cc (_Jv_FindClassFromSignature): Check return of
457         recursive call.  Do not abort on invalid signature; return NULL
458         instead.
459
460 2001-03-22  Tom Tromey  <tromey@redhat.com>
461
462         * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
463         * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
464         unconditionally.
465         * include/jvm.h (_Jv_ResolveField): Declare.
466         * include/java-interp.h (_Jv_ResolveField): Don't declare.
467         * resolve.cc (_Jv_ResolveField): No longer conditional on
468         INTERPRETER.
469
470 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
471
472         Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
473         for libtool hacking.
474         * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
475         to a temporary file, then invoke libtool with the -objectlist
476         paramater.
477         (libgcjx.la): Likewise.
478         * Makefile.in: Rebuilt.
479
480 2001-03-22  Joerg Brunsmann <joerg_brunsmann@yahoo.de>
481
482         * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
483
484 2001-03-22  Marcus G. Daniels  <mgd@swarm.org>
485
486         * jni.cc (add_char): Handle `.' like `/'.
487
488 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
489
490         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
491         initialize if exception_types is null.
492         * java/lang/reflect/Constructor.java: Likewise.
493         * java/lang/reflect/natConstructor.cc (getType): Initialize
494         exception_types to an empty Object array.
495
496 2001-03-21  Tom Tromey  <tromey@redhat.com>
497
498         * configure: Rebuilt.
499         * configure.in (GCJFLAGS): Subst.
500         * Makefile.in: Rebuilt.
501         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
502         (gij_LDFLAGS): Likewise.
503         (JC1FLAGS): Added GCJFLAGS and removed -g.
504
505         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
506         read/write case.  Fixes PR libgcj/2338.
507
508 2001-03-20  Warren Levy  <warrenl@redhat.com>
509
510         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
511         and corrected SimpleTimeZone's for the timezones hash table.
512
513 2001-03-19  Per Bothner  <per@bothner.com>
514
515         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
516         "canonicalize" "../../xxx" to "/xxx".
517
518 2001-03-19  Mark Wielaard <mark@klomp.org>
519
520         * java/util/ArrayList.java: Remove RCS keywords from comments
521         * java/util/BasicMapEntry.java: idem
522         * java/util/Dictionary.java: idem
523         * java/util/HashSet.java: idem
524
525         * java/util/EventObject.java: reindent
526         * java/util/Properties.java: idem
527         * java/util/SortedMap.java: idem
528
529         * java/util/Enumeration.java: Merge with Classpath
530         * java/util/EventListener.java: idem
531         * java/util/Observable.java: idem
532         * java/util/Observer.java: idem
533         * java/util/Stack.java: idem
534
535 2001-03-17  Tom Tromey  <tromey@redhat.com>
536
537         * java/lang/natString.cc (rehash): Don't bother with memset;
538         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
539         Use UNMASK_PTR.
540         (UNMASK_PTR): New macro.
541         (intern): Unmask pointer before returning it.  Register finalizer
542         for the string.
543         (unintern): Handle case where
544         (MASK_PTR): New macro.
545         (PTR_MAKSED): Likewise.
546         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
547
548 2001-03-01  Andrew Haley  <aph@redhat.com>
549
550         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
551         stackTrace buffer to a correctly aligned pointer array.
552
553 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
554
555         * java/lang/Runtime.java (_exit): Declare new package-private native.
556         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
557         without a security manager check.
558         (exit): Call _exit after security check.
559         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
560         "naturally".
561         * java/lang/System.java (setSecurityManager): If a security manager
562         is already in place, call checkPermission.
563         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
564         throws an exception, try to deal with it gracefully.
565         * java/lang/ExceptionInInitializerError.java (printStackTrace):
566         Only try to print the subordinate stack trace if "exception" is set.
567         Print our class name first.
568
569 2001-03-08  Tom Tromey  <tromey@redhat.com>
570
571         * java/io/ObjectStreamClass.java (setUID): Don't write interface
572         info for array classes.
573         Fixes PR libgcj/1971.
574
575 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
576
577         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
578         Iterator.hasNext().
579
580 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
581
582         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
583         instead of the new JDK1.2 API.  This is simpler and makes
584         back-porting the classes to JDK1.1 trivial.
585         (readObject): likewise.
586
587 2001-03-01  Per Bothner  <per@bothner.com>
588
589         Changes merged from Kawa's gnu.math.
590         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
591         (rshift(int[],int[],int,int):  Removed - not needed.
592         (gcd):  Use rshift0 rather than rshift.
593         * java/math/BigInteger.java (setShiftRight):  Likewise.
594         (divide):  Simplify by using rshift0.
595         (divide):  Zero-extend results if high-order bit set.
596
597 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
598
599         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
600         linking.
601
602 2001-02-23  Per Bothner  <per@bothner.com>
603
604         Change to sometimes include class name in ClassFormatError message.
605         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
606         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
607         boolean instead of throwing ClassFormatError on failure.
608         (throw_class_format_error):  Change static function to method.
609         (_Jv_ClassReader):  New inline methods verify_identifier,
610         two overloads of verify_classname, verify_field_signature, and
611         verify_method_signature
612         * include/java-interp.h:  Update declarations to return bool.
613         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
614         ClassFormatError since _Jv_VerifyClassName now returns bool.
615
616 2001-02-23  Per Bothner  <per@bothner.com>
617
618         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
619         c++filt to select java-style output.
620
621 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
622
623         Fix for PR java/2040:
624         * java/util/HashMap.java (HashMap): Don't throw exception for
625         loadFactor > 1. Add exception messages.
626         * java/util/Hashtable.java (Hashtable): Likewise.
627
628 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
629
630         Disable libgcjx by default.
631         * configure.in: Add support for --enable-java-awt configure option.
632         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
633         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
634         * Makefile.in: Rebuilt.
635         * configure: Rebuilt.
636
637 2001-02-20  Tom Tromey  <tromey@redhat.com>
638
639         * java/io/PipedWriter.java (flush): Throw exception if stream
640         closed.
641         * java/io/OutputStreamWriter.java (write): Throw exception if
642         stream closed.
643         (writeChars): Don't throw exception if stream closed.
644         * java/io/CharArrayWriter.java (closed): New field.
645         (close): Set it.
646         (flush): Throw exception if stream closed.
647         (reset): Synchronize on correct lock.  Allow stream to be
648         reopened.
649         (toCharArray, toString, writeTo): Synchronize.
650         (write): Throwe exception if stream closed.
651         * java/io/BufferedWriter.java (close): Clear `buffer'.
652         (flush): Throw IOException if stream is closed.
653         (write): Likewise.
654
655 2001-02-16  Tom Tromey  <tromey@cygnus.com>
656
657         * java/lang/ThreadGroup.java (activeCount): Only include threads
658         which are alive.
659         (enumerate): Likewise.
660
661 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
662
663         * java/lang/Integer.java (getInteger): Return default argument if
664         property is not set. Don't call decode with null argument.
665         * java/lang/Long.java (getLong): Likewise.
666
667         * java/io/CharArrayReader.java (CharArrayReader): Throw
668         IllegalArgumentException if constructor arguments are illegal.
669         (ready): Return false if no more characters can be read.
670         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
671
672 2001-02-17  Mark Wielaard <mark@klomp.org>
673
674         * java/util/TimerTask.java: New version from Classpath.
675
676 2001-02-17  Mark Wielaard <mark@klomp.org>
677
678         Remerge with Classpath
679         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
680         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
681         (readByte): Use convertToByte().
682         (readChar): Use convertToChar().
683         (readInt): Use convertToInt().
684         (readLong): Use convertToLong().
685         (readShort): Use convertToShort().
686         (readUnsignedByte): Use convertToUnsignedByte().
687         (readUnsignedShort): Use convertToUnsignedShort().
688         (readUTF): Use convertToUTF().
689
690         (convertToBoolean): Resurrected.
691         (convertToByte): Ditto.
692         (convertToChar): Ditto.
693         (convertToInt): Ditto.
694         (convertToLong): Ditto.
695         (convertToShort): Ditto.
696         (convertToUnsignedByte): Ditto.
697         (convertToUnsignedShort): Ditto.
698         (convertToUTF): Ditto.
699
700 2001-02-17  Mark Wielaard <mark@klomp.org>
701
702         * HACKING: new file
703
704 2001-02-17  Mark Wielaard <mark@klomp.org>
705
706         * java/io/DataInputStream.java: update copyright notice
707         * java/io/PrintWriter.java: idem
708         * java/io/Reader.java: idem
709         * java/io/StreamTokenizer.java: idem
710         * java/io/StringReader.java: idem
711         * java/lang/reflect/ReflectPermission.java: idem
712
713 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
714
715         * java/util/TreeSet.java (clone): Made subclass safe, use
716         super.clone(), not new.
717         * java/util/TreeMap.java (clone): Likewise.
718
719         * java/util/TreeMap.java (nil): Made non-final.
720         (clone): Create new nil node for copy.
721
722         * java/util/HashSet.java (clone): Made subclass safe, use
723         super.clone(), not new.
724
725 2001-02-14  Andrew Haley  <aph@redhat.com>
726
727         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
728         set the handler.
729
730 2001-02-15  Anthony Green  <green@redhat.com>
731
732         * defineclass.cc: Don't include alloca.h.
733         (prepare_pool_entry): Convert alloca to __builtin_alloca.
734         * interpret.cc (run_normal): Ditto.
735         (continue1): Ditto.
736         * java/lang/natDouble.cc (parseDouble): Ditto.
737
738 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
739
740         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
741         Object.clone().
742         * java/util/Collections.java (ReverseComparator): New static class.
743         (reverseOrder): Return static instance of ReverseComparator.
744
745         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
746         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
747         Rectangle.clone(), not Object.clone().
748
749         * java/util/HashSet.java (clone): Remove try/catch.
750
751         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
752         * java/util/Collection.java: Likewise.
753         * java/util/Comparator.java: Likewise.
754         * java/util/Dictionary.java: Likewise.
755         * java/util/Iterator.java: Likewise.
756         * java/util/ListIterator.java: Likewise.
757         * java/util/Map.java: Likewise.
758         * java/util/Set.java: Likewise.
759
760 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
761
762         * java/util/TreeMap.java: New file.
763         * java/util/TreeSet.java: New file.
764         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
765         * Makefile.in: Rebuilt.
766         * java/util/HashSet.java (clone): Use constructor instead of calling
767         clone on itself.
768         * java/util/SortedSet.java: Sync with classpath.
769         * java/util/HashMap.java (hash): Use if statement instead of ternary,
770         for clarity.
771
772         * java/lang/natClass.cc (getSignature): Don't try to dereference
773         param_types if it is null. Instead, take this to mean "no parameters".
774         * java/lang/TreeMap.java (TreeIterator.next): Throw
775         NoSuchElementException in preference to ConcurrentModificationException.
776         (TreeIterator.remove): Throw IllegalStateException in preference to
777         ConcurrentModificationException.
778         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
779         throw a NoSuchElementException.
780         (SubMap.lastKey): Likewise.
781
782 2001-02-13  Tom Tromey  <tromey@redhat.com>
783
784         * java/io/PipedReader.java (ready): Throw IOException if pipe
785         closed.
786         * java/io/FilterReader.java (close): Don't clear `in'.
787         * java/io/CharArrayReader.java (mark): Throw IOException if stream
788         closed.
789         (read, ready, reset, skip): Added exception message.
790         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
791         Perform checkStatus check inside synchronized block.
792
793 2001-02-13  Tom Tromey  <tromey@redhat.com>
794
795         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
796
797 2001-02-13  Tom Tromey  <tromey@redhat.com>
798
799         Fix for PR libgcj/1351:
800         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
801         interrupted.
802         Include Thread.h and InterruptedIOException.h.
803
804 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
805
806         * java/io/BlockDataException.java: Removed.
807         * java/io/ObjectInputStream.java (readObject): Throw
808         StreamCorruptedException, not BlockDataException.
809         * Makefile.am: Remove BlockDataException.
810         * Makefile.in: Rebuild.
811
812 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
813             Tom Tromey  <tromey@redhat.com>
814
815         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
816         null pointer check.
817
818 2001-02-09  Tom Tromey  <tromey@redhat.com>
819
820         * java/util/Timer.java: New version from Classpath.
821
822 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
823
824         * java/lang/Double.java (doubleToRawLongBits): Now native.
825         * java/lang/Float.java (floatToRawIntBits): Likewise.
826         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
827         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
828
829 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
830
831         * java/io/File.java (java.net): Imported.
832         (getAbsoluteFile): Added.
833         (getCanonicalPath): Likewise.
834         (toURL): Likewise.
835
836 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
837
838         * java/lang/Byte.java: Remove redundant instanceof and null checks.
839         * java/lang/Integer.java: Likewise.
840         * java/lang/Long.java: Likewise.
841         * java/lang/Short.java: Likewise.
842         * java/lang/Double.java: Likewise.
843         (doubleToRawLongBits): New method.
844         * java/lang/Float.java: As above.
845         (floatToRawIntBits): New method.
846
847         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
848         IOException if stream closed.
849
850 2001-02-08  Tom Tromey  <tromey@redhat.com>
851
852         * java/lang/Float.java (parseFloat): New method.
853
854 2001-02-08  Tom Tromey  <tromey@redhat.com>
855
856         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
857         * java/io/InputStreamReader.java (ready, read): Throw IOException
858         if stream has been closed.
859
860 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
861
862         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
863         Change sources.redhat.com and sourceware.cygnus.com references to
864         gcc.gnu.org.
865
866 2001-02-07  Tom Tromey  <tromey@redhat.com>
867
868         Fix for PR libgcj/1906:
869         * java/text/MessageFormat.java (setLocale): Use named class
870         literals.
871         (forName): Removed.
872         (format(Object,StringBuffer,FieldPosition)): Special case if
873         argument is an Object[].
874
875 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
876
877         * java/util/Arrays.java: Removed "cmp" methods.
878         (qsort): Don't use "cmp".
879         (med3): Likewise.
880
881 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
882
883         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
884         sort. Fix for PR java/1895.
885
886 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
887
888         * configure.host: Use sjlj-exceptions for Alpha.
889
890 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
891
892         * libgcj.spec.in: Don't force static libgcc into the executable.
893         * configure.in (FORCELIBGCCSPEC): Removed.
894         * configure: Rebuilt.
895
896 2001-01-31  Tom Tromey  <tromey@redhat.com>
897
898         * Makefile.in: Rebuilt.
899         * Makefile.am (LTCXXCOMPILE): New macro.
900
901 2001-01-26  Andrew Haley  <aph@redhat.com>
902
903         (INIT_FPE): Use a direct system call to set the handler.
904
905 2001-01-27  Richard Henderson  <rth@redhat.com>
906
907         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
908
909 2001-01-27  Tom Tromey  <tromey@redhat.com>
910
911         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
912         native interface structure.
913
914 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
915
916         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
917         result unsigned.
918         (read (byte[], int, int)): Only call readNextBlock() if the block
919         buffer would actually be overrun. Increment blockDataPosition.
920         (callReadMethod): Propagate exceptions from invocation target.
921         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
922         exceptions from invocation target.
923
924 2001-01-26  Tom Tromey  <tromey@redhat.com>
925
926         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
927         to internal representation.
928         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
929         _Jv_FindClassFromSignature.
930
931 2001-01-26  Warren Levy  <warrenl@redhat.com>
932
933         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
934         and timezone if they are available on the system.
935
936 2001-01-24  Tom Tromey  <tromey@redhat.com>
937
938         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
939
940 2001-01-24  Tom Tromey  <tromey@redhat.com>
941
942         * Makefile.in: Rebuilt.
943         * Makefile.am (c_source_files): Added sf_fabs.c.
944         * java/lang/sf_fabs.c: New file.
945
946 2001-01-19  Warren Levy  <warrenl@redhat.com>
947
948         * java/text/SimpleDateFormat.java (format): Compute hour for cases
949         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
950         correctly.  Adjust properly from 0-23 clock hour.
951
952 2001-01-17  Mark Wielaard  <mark@klomp.org>
953
954         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
955
956 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
957
958         * java/lang/Class.h (isInterface): Move implementation from
959         natClass.cc. Declare inline.
960         (Class): Add default constructor.
961         * java/lang/Object.h: Update comments.
962         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
963         initialize superclass, saving a call if super is already initialized.
964
965 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
966
967         * prims.cc (init_prim_class): Deleted.
968         (DECLARE_PRIM_TYPE): Rewritten.
969         * java/lang/Class.h (stdio.h): Include removed.
970         (stddef.h): Included.
971         (java/lang/reflect/Modifier.h): Likewise.
972         (Class): Contructor now takes arguments, initializes fields.
973         (initializePrim): Prototype deleted.
974         * java/lang/natClass.cc (initializePrim): Deleted.
975
976 2001-01-16  Warren Levy  <warrenl@redhat.com>
977
978         * java/math/BigInteger.java: Update Copyright year.
979
980 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
981
982         * java/math/BigInteger.java (setShiftRight): Only do negative shift
983         if count != 0.
984
985 2001-01-14  Mark Wielaard  <mark@klomp.org>
986         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
987         (decode): Merge comments with Classpath, don't throw Exception
988
989 2001-01-12  Tom Tromey  <tromey@redhat.com>
990
991         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
992         Wrote.
993         (setCursor): Wrote.
994         Include Cursor.h.
995         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
996         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
997         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
998         * gnu/awt/gtk/GtkLabelPeer.java: New file.
999         * gnu/awt/gtk/GtkButtonPeer.java: New file.
1000
1001         * java/lang/natSystem.cc: Include locale.h if it exists.
1002         * configure: Rebuilt.
1003         * configure.in: Check for locale.h.
1004
1005 2001-01-11  Tom Tromey  <tromey@redhat.com>
1006
1007         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1008         (Cursor(int), getPredefinedCursor): Throw exception if argument
1009         invalid.
1010
1011 2001-01-03  Tom Tromey  <tromey@redhat.com>
1012
1013         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1014         (getLocationOnScreen): Wrote.
1015
1016 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
1017
1018         * Makefile.am: Re-enable dependencies.
1019         * Makefile.in: Rebuilt.
1020
1021 2001-01-10  Warren Levy  <warrenl@redhat.com>
1022
1023         * java/math/BigDecimal.java (divide): Fixed comment.
1024
1025 2001-01-10  Warren Levy  <warrenl@redhat.com>
1026
1027         Fix for PR libgcj/1596:
1028         * java/math/BigDecimal.java (divide): Check newScale for validity.
1029         Ensure that BigInteger.pow() is called with a non-negative value.
1030         (setScale (int)): New public method.
1031         (setScale (int,int)): New public method.
1032
1033 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
1034
1035         Fix for PR libgcj/1338:
1036         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1037         commentChar.  Fixed typos in comments.
1038
1039 2001-01-08  Warren Levy  <warrenl@redhat.com>
1040
1041         Fix for PR libgcj/1411:
1042         * Makefile.am: Removed java/util/natTimeZone.cc.
1043         * Makefile.in: Rebuilt.
1044         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1045         missing localized timezone names.
1046         * java/lang/System.java (getDefaultTimeZoneId): New private method.
1047         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1048         (init_properties): Set user.timezone property.
1049         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1050         default timezone names; removed non-standard ones.  Use standard
1051         ID names per JCL.
1052         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1053         (UTC): Ditto.
1054         * java/util/TimeZone.java: Add standard ID names per JCL; removed
1055         non-standard ones.
1056         (getDefaultTimeZoneId): Removed.
1057         (zoneGMT): Removed.
1058         * java/util/natTimeZone.cc: Removed.
1059
1060 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
1061
1062         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1063         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1064         (_Jv_GetArrayClass): New inline function.
1065         (arrayclass): New field.
1066         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1067         _Jv_GetArrayElementFromElementType.
1068         (_Jv_NewPrimArray): Ditto.
1069         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1070         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1071         Set Modifier::ABSTRACT.
1072         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1073         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1074         Now synchronized. Array classes are now referenced from
1075         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1076         Set array classes' accessibility flags correctly. Optimize so that
1077         all array classes share the same IDT.
1078         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1079         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1080         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1081         in superclasses from overwriting classes own fields.
1082         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1083         Modifier::isAbstract().
1084         (null_idt): New static field.
1085         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1086         no interfaces.
1087         (_Jv_IndexOf): Made inline.
1088         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1089
1090 2001-01-08  Tom Tromey  <tromey@redhat.com>
1091
1092         Fix for PR java/1586:
1093         * Makefile.in: Rebuilt.
1094         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1095
1096 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
1097
1098         * Makefile.am: Use the new "-M -MF" option for generating dependencies
1099         from the c++ compiler.
1100         * Makefile.in: Rebuilt.
1101
1102 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1103
1104         All files with updated copyright.
1105         * prims.cc (class _Jv_PrimClass): Removed.
1106         (init_prim_class): New function.
1107         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1108         `_Jv_PrimClass' in primitive type declarations. Assign to the
1109         value returned by `init_prim_class.'
1110         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1111         primitive type declarations.
1112         (JvPrimClass): Cast to `jclass' removed.
1113         * java/lang/Class.h (Class): New constructor.
1114         (Class): New copy constructor.
1115         (initializePrim): New prototype.
1116         (_Jv_PrimClass): Field removed.
1117         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1118         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1119         (class java::lang::Object): `finalize' moved up front.
1120         * java/lang/natClass.cc
1121         (isAssignableFrom): Turned outline.
1122         (isInstance): Likewise.
1123         (isInterface): Likewise, fixed indentation.
1124         (initializePrim): New function.
1125
1126 2001-01-07  Anthony Green  <green@redhat.com>
1127
1128         * Makefile.am (texinfo): Add texinfo target for generating texinfo
1129         documentation.
1130         * Makefile.in: Rebuilt.
1131
1132         * scripts/TexinfoDoclet.java: New file.
1133
1134         * doc/java-applet.texi, doc/java-lang-reflect.texi,
1135         doc/java-awt-color.texi, doc/java-lang.texi,
1136         doc/java-awt-datatransfer.texi, doc/java-math.texi,
1137         doc/java-awt-event.texi, doc/java-net.texi,
1138         doc/java-awt-geom.texi, doc/java-security-spec.texi,
1139         doc/java-awt-image.texi, doc/java-security.texi,
1140         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1141         doc/java-text.texi, doc/java-beans-beancontext.texi,
1142         doc/java-util-jar.texi, doc/java-beans.texi,
1143         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1144         doc/java-lang-ref.texi: New files.
1145
1146 2001-01-07  Anthony Green  <green@redhat.com>
1147
1148         * java/net/URLConnection.java (setDoOutput): URLConnection's may
1149         be used for both input and output, so don't clear doInput.
1150
1151         * java/lang/StringBuffer.java: Fix comments.
1152
1153 2001-01-06  Anthony Green  <green@redhat.com>
1154
1155         * java/beans/PropertyDescriptor.java: Fix comment.
1156         * java/io/PushbackReader.java: Fix comment.
1157         * java/io/ObjectStreamClass.java: Fix comment.
1158         * java/io/DataInputStream.java: Fix comment.
1159         * java/io/PipedInputStream.java: Fix comments.
1160         * java/io/PipedReader.java: Fix comments.
1161         * java/sql/DatabaseMetaData.java: Fix comments.
1162
1163 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
1164
1165         * java/io/PipedReader: Synchronize on "lock" instead of this.
1166
1167 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
1168
1169         * java/lang/Thread.java: Update comment.
1170
1171         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1172         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1173         * java/io/PipedReader: New implementation based on new
1174         PipedInputStream.
1175         * java/io/PipedWriter: Updated to match new PipedReader.
1176
1177 2001-01-03  Tom Tromey  <tromey@redhat.com>
1178
1179         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1180         (getViewportSize): Insets include scrollbar size.
1181         (doLayout): Finished.
1182         (getScrollPosition): Wrote.
1183         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1184
1185 2001-01-02  Tom Tromey  <tromey@redhat.com>
1186
1187         * java/awt/ScrollPane.java: Wrote.
1188         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1189         method.
1190
1191         * java/awt/Panel.java (Panel()): Fixed.
1192
1193         * java/awt/Component.java (isShowing): Return false if no peer
1194         exists, and true if component is visible and no parent exists.
1195         (getLocationOnScreen): Wrote.
1196         (getPreferredSize): Removed FIXME comment.
1197         (getMinimumSize): Likewise.
1198         (getAlignmentX, getAlignmentY): Wrote.
1199         (list): Wrote.
1200         (requestFocus): Wrote.
1201         (transferFocus): Wrote.
1202         (findNextFocusComponent): New method.
1203         (hasFocus()): Wrote.
1204         (checkImage): Wrote.
1205         (enableEvents): Call setEventMask on the peer.
1206
1207         * java/awt/Container.java (list): Use super.list() to print self.
1208         (findNextFocusComponent): New method.
1209         (setLayout): Call invalidate.
1210         (findComponentAt): Wrote.
1211
1212 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
1213
1214         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1215         the correct versions of various linuxthreads functions get linked.
1216         * Makefile.in: Rebuilt.
1217         * java/lang/natThread.cc (finalize_native): New static function. Call
1218         _Jv_ThreadDestroyData.
1219         (initialize_native): Register finalizer for "data".
1220         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1221         (_Jv_ThreadDestroyData): New prototype.
1222         * include/win32-threads.h: Ditto.
1223         * include/no-threads.h: Ditto.
1224         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1225         (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1226         move mutex and condition variable destroy code from:
1227         (really_start): ...here.
1228         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1229         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1230         (_Jv_ThreadDestroyData): Implemented.
1231         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1232         (_Jv_AllocArray): Ditto.
1233
1234 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
1235
1236         * java/sql/DriverManager.java (getConnection): Don't set user/password
1237         properties if null.
1238
1239 2000-12-27  Warren Levy  <warrenl@redhat.com>
1240
1241         Fix for PR libgcj/1358:
1242         * java/lang/System.java: Update Copyright date properly.
1243         * java/util/Calendar.java: Fix typo in comment.
1244         (set): Set 24-hour clock hour instead of 12-hour clock hour.
1245         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1246         initialize times.  Spec says to set H:M:S values to zero only if
1247         a date is given.
1248         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1249         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1250         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1251         timezones and GMT offsets, being careful to account for units of
1252         milliseconds vs. seconds.
1253
1254 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
1255
1256         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1257         not be assigned to Object.
1258
1259         Fix for PR libgcj/1516:
1260         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1261         Add boolean entry.
1262         (can_widen): Declared inline. Remove redundant checks for void
1263         arguments and char->short conversion. Add special case for boolean
1264         conversions.
1265         (ffi_type): Declared inline.
1266         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1267
1268 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
1269
1270         * java/sql/SQLWarning.java: Fixed typo in comment.
1271
1272 2000-12-26  Tom Tromey  <tromey@redhat.com>
1273
1274         * java/awt/MenuItem.java (paramString): Now protected.
1275
1276         * java/awt/MenuShortcut.java: Implements Serializable.
1277
1278         * java/awt/MenuBar.java: Rewrote from scratch.
1279
1280         * java/awt/MenuComponent.java (removeNotify): Wrote.
1281         Implements Serializable.
1282
1283         * java/awt/GridBagConstraints.java (GridBagConstraints): New
1284         constructor.
1285
1286         * java/awt/CheckboxMenuItem.java: Wrote.
1287
1288 2000-12-25  Tom Tromey  <tromey@redhat.com>
1289
1290         * java/awt/MenuContainer.java: Fixed typo.
1291
1292         * Makefile.in: Rebuilt.
1293         * Makefile.am (awt_java_source_files): Added SystemColor.java.
1294         * java/awt/SystemColor.java: New file.
1295
1296         * java/awt/Color.java (rgba): Now package-private.
1297
1298         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1299
1300         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1301         getComponent.
1302
1303         * java/awt/MenuItem.java (addNotify): New method.
1304         (MenuItem(String,MenuShortcut)): New constructor.
1305         (setLabel): Notify peer of change.
1306         (setEnabled): Likewise.
1307
1308         * java/awt/GridLayout.java (toString): New method.
1309
1310         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1311         (FlowLayout): Check for LEADING and TRAILING.
1312         (setAlignment): Likewise.
1313         (layoutContainer): Handle component orientation.
1314
1315         * java/awt/Component.java (orientatin): New field.
1316         (setComponentOrientation): Wrote.
1317         (getComponentOrientation): Wrote.
1318
1319         * java/awt/Event.java (Event): Implements Serializable.
1320         (consumed): New field for serialization.
1321         * java/awt/Dimension.java (Dimension): Implements Serializable.
1322         * java/awt/Cursor.java (Cursor): Implements Serializable.
1323         * java/awt/Container.java (Container): No longer abstract.
1324
1325         * java/awt/Choice.java: Wrote.
1326         * java/awt/Checkbox.java: Wrote.
1327         * java/awt/ItemSelectable.java: Documented.
1328         * java/awt/CheckboxGroup.java: Wrote.
1329
1330         * java/awt/CardLayout.java (layoutContainer): Directly use fields
1331         in other classes.
1332         (getSize): Likewise.
1333
1334 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
1335
1336         * java/io/FileDescriptor.java: Initialize fd to -1.
1337         Remove default constructor.
1338
1339 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1340
1341         * java/lang/mprec.h: Change C9X reference to refer to C99.
1342
1343 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
1344
1345         * java/lang/Throwable.java (trace_enabled): New static field.
1346         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1347         trace_enabled not set.
1348         * prims.cc (main_init): Turn off trace_enabled while creating
1349         default exception objects.
1350
1351 2000-12-21  Tom Tromey  <tromey@redhat.com>
1352
1353         * java/beans/PropertyChangeListener.java: Extends EventListener.
1354         * java/beans/VetoableChangeListener.java: Extends EventListener.
1355
1356         * java/util/zip/Deflater.java (update, init): Now private.
1357
1358 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
1359
1360         * java/util/BasicMapEntry.java: Re-added.
1361         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1362         (putAll): Test for BasicMapEntry.
1363         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1364         (putAll): Test for BasicMapEntry.
1365         Change references from `HashMap.Entry' to `Entry' in various places.
1366         * Makefile.am: Add BasicMapEntry.java.
1367         * Makefile.in: Rebuilt.
1368
1369 2000-12-18  Warren Levy  <warrenl@redhat.com>
1370
1371         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1372         need to set timezone to a valid non-null value.  Partial fix for
1373         PR 331.
1374
1375 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
1376
1377         * java/awt/Window.java (addNotify): Remove peer casting hack now that
1378         gcj/312 is fixed.
1379         * java/awt/Button.java (addNotify): Likewise.
1380         * java/awt/Label.java (addNotify): Likewise.
1381         * java/awt/Panel.java (addNotify): Likewise.
1382         * java/awt/Scrollbar.java (addNotify): Likewise.
1383         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1384         Remove redundant null checks.
1385
1386 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1387
1388         * COPYING: Update to current
1389         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1390         to 19yy as example year in copyright notice).
1391
1392 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
1393
1394         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1395         end-of-stream if avail_in is 0.
1396
1397 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
1398
1399         * java/util/ArrayList.java (data): Declare transient.
1400         (serialPersistantFields): Removed.
1401         (readObject): Use defaultReadObject(), not readFields().
1402         (writeObject): Use defaultWriteObject(), not writeFields().
1403
1404 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
1405
1406         * java/util/Hashtable.java (put): Remove `last' variable.
1407         Link new entry to head of list.
1408         * java/util/HashMap.java (put): Ditto.
1409
1410 2000-12-15  Tom Tromey  <tromey@redhat.com>
1411
1412         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1413         loader to Class.forName.
1414
1415 2000-12-14  Tom Tromey  <tromey@redhat.com>
1416
1417         * java/util/ResourceBundle.java
1418         (getBundle(String,Locale,ClassLoader)): New method.
1419         (trySomeGetBundle): Added `loader' argument.
1420         (partialGetBundle): Likewise.
1421
1422         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1423         maximumFractionDigits, maximumIntegerDigits,
1424         minimumFractionDigits, minimumIntegerDigits): Now
1425         package-private.
1426
1427         * java/lang/Thread.java (checkAccess): Now final.
1428
1429         * java/lang/RuntimePermission.java: Class now final.
1430
1431         * java/io/StringWriter.java (StringWriter(int)): Now public.
1432
1433         * java/io/SerializablePermission.java (legal_names): Now private.
1434
1435         * java/lang/Character.java: Updated UnicodeBlock constants.
1436         * scripts/blocks.pl: Special case private use and surrogate
1437         areas.  Updated URL.
1438
1439 2000-12-12  Tom Tromey  <tromey@redhat.com>
1440
1441         * Makefile.in: Rebuilt.
1442         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1443         option.
1444         (GCJCOMPILE): Use it.
1445         (JAVAC): Likewise.
1446
1447 2000-12-11  Tom Tromey  <tromey@redhat.com>
1448
1449         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1450         New static final fields.
1451
1452         * scripts/classes.pl (scan): Skip lines with leading `*'.
1453         Fix for PR libgcj/378.
1454
1455 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
1456
1457         * configure.in: Remove check for -fuse-divide-subroutine.
1458         * configure: Rebuilt.
1459
1460         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1461
1462         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1463
1464 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
1465
1466         * Makefile.am: Add HashSet.java and java/lang/ref classes.
1467         Remove BasicMapEntry.java and Bucket.java.
1468         * Makefile.in: Rebuilt.
1469         * java/util/HashMap.java: Rewritten.
1470         * java/util/HashSet.java: Imported from classpath.
1471         * java/util/WeakHashMap.java: Imported from classpath.
1472         * java/util/Hashtable.java: Rewritten based on new HashMap code.
1473         * java/util/Bucket.java: Deleted.
1474         * java/util/BasicMapEntry.java: Deleted.
1475         * java/util/Collections.java (search): Use a for-loop, not iterator
1476         hasNext().
1477         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1478         of elements in source.
1479         (max): Use a for-loop.
1480         (min): Ditto.
1481         (reverse): Keep track of positions instead of using Iterator's
1482         nextIndex() and previousIndex().
1483         (shuffle(List)): Initialize defaultRandom if required using
1484         double-check thread safety idiom. Call two-argument shuffle method
1485         using defaultRandom.
1486         (defaultRandom): New field.
1487         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1488         using previousIndex() and nextIndex().
1489         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1490         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1491         * java/util/AbstractMap.java (toString): Use StringBuffer.
1492         * java/lang/ref/PhantomReference.java: Imported from classpath.
1493         * java/lang/ref/SoftReference.java: Ditto.
1494         * java/lang/ref/Reference.java: Ditto.
1495         * java/lang/ref/WeakReference.java: Ditto.
1496         * java/lang/ref/ReferenceQueue.java: Ditto.
1497
1498 2000-12-10  Richard Henderson <rth@redhat.com>
1499
1500         * configure.host: Recognize alpha*-*, not alphaev6-*.
1501
1502 2000-12-09  Anthony Green  <green@redhat.com>
1503
1504         * configure.host: Enable interpreter for Alpha.
1505
1506 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1507
1508         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1509         (ZIP): Points at fastjar instead of zip.
1510         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1511         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1512         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1513         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1514         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1515         ($(x_java_source_files:.java=.class):): Likewise.
1516         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1517         fastar's flags.
1518         (CLEANFILES): libgcj.jar replaces libgcj.zip.
1519         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1520         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1521         java/lang/String.h:, java/lang/reflect/Constructor.h:,
1522         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1523         gnu/gcj/runtime/VMClassLoader.h:,
1524         java/io/ObjectInputStream$$GetField.h:,
1525         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1526         (Makefile.in): Rebuilt.
1527
1528 2000-12-08  Tom Tromey  <tromey@redhat.com>
1529
1530         From Phil Edwards:
1531         * configure: Rebuilt.
1532         * configure.in: Use echo, not `:', to create .d files.
1533
1534 2000-12-08  Warren Levy  <warrenl@redhat.com>
1535
1536         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1537         NullPointerException so proper check of offset can be done.
1538
1539 2000-12-08  Warren Levy  <warrenl@redhat.com>
1540
1541         * java/io/FileInputStream.java (close): Check if the fd is valid.
1542         * java/io/RandomAccessFile.java (close): Ditto.
1543         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1544         * java/net/PlainSocketImpl.java (close): Ditto.
1545
1546 2000-12-06  Tom Tromey  <tromey@redhat.com>
1547
1548         * java/awt/GridBagConstraints.java: Filled in values for static
1549         final fields.
1550
1551         * java/util/BitSet.java: Updated copyright notice.
1552
1553         * Makefile.in: Rebuilt.
1554         * Makefile.am (awt_java_source_files): Added new file.
1555         * java/awt/GridBagConstraints.java: New file.
1556
1557 2000-12-05  Tom Tromey  <tromey@redhat.com>
1558
1559         * java/text/Collator.java (decomposeCharacter, decmp, strength):
1560         Now package-private, not protected.
1561         * java/text/DateFormatSymbols.java (equals): Now private.
1562         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1563         * java/util/BitSet.java: Class no longer final.
1564
1565 2000-12-04  Warren Levy  <warrenl@redhat.com>
1566
1567         * java/util/TimeZone.java (getAvailableIDs): Activated commented
1568         out code dependent on compiler and library changes.
1569
1570 2000-12-04  Warren Levy  <warrenl@redhat.com>
1571
1572         * java/io/FilePermission.java: Made class final per spec.
1573         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1574         method name to match spec (fixed typo).
1575         * java/util/LinkedList.java: Implements List.
1576
1577 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
1578
1579         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1580         Edgar Villanueva <edgarvil@home.com>.
1581
1582 2000-12-03  Tom Tromey  <tromey@redhat.com>
1583
1584         * java/awt/geom/Point2D.java: Added protected constructor.
1585         (equals): New method.
1586         (Float.setLocation(float,float)): New method.
1587         * java/awt/geom/Dimension2D.java: Added protected constructor.
1588         * java/awt/geom/AffineTransform.java: Made all constants public.
1589         (concatenate): Fixed typo in name.
1590         * java/awt/event/WindowAdapter.java: Class now abstract.
1591         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1592         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1593         AWTEvent.
1594
1595         * java/awt/AWTError.java: Extend Error, not
1596         IllegalStateException.
1597
1598         * Makefile.in: Rebuilt.
1599         * Makefile.am (awt_java_source_files): Added new file.
1600         * java/awt/geom/RoundRectangle2D.java: New file.
1601
1602         * Makefile.in: Rebuilt.
1603         * Makefile.am (awt_java_source_files): Added new file.
1604         * java/awt/FlowLayout.java: New file.
1605
1606         * Makefile.in: Rebuilt.
1607         * Makefile.am (awt_java_source_files): Added new file.
1608         * java/awt/GridLayout.java: New file.
1609
1610 2000-12-02  Tom Tromey  <tromey@redhat.com>
1611
1612         * Makefile.in: Rebuilt.
1613         * Makefile.am (awt_java_source_files): Added new files.
1614         * java/awt/CardLayout.java: New file.
1615         * java/awt/AWTPermission.java: New file.
1616
1617 2000-12-01  Tom Tromey  <tromey@redhat.com>
1618
1619         * java/util/Vector.java (insertElementAt): Unconditionally
1620         increment elementCount.
1621         (removeRange): Clear unused slots in vector.
1622
1623 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
1624
1625         * java/lang/natMath.cc: Declare fabsf() function.
1626         * java/lang/mprec.h: Don't include math.h.
1627         * java/lang/dtoa.c: Include string.h.
1628         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1629         compiler warning.
1630
1631         From Adam Welc <welc@cs.purdue.edu>:
1632         * java/util/LinkedList.java (removeFirst): Update `first' field.
1633         Handle the last == first case.
1634         (removeLast): Update `last' field. Handle the last == first case.
1635
1636 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1637
1638         * Makefile.am: Added entries for new java.sql modules.
1639         * Makefile.in: Rebuilt.
1640
1641 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1642
1643         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1644         that aren't quite 1.2 compatible yet.
1645
1646 2000-11-30  Warren Levy  <warrenl@cygnus.com>
1647
1648         * java/sql/Array.java: New file from classpath.
1649         * java/sql/BatchUpdateException.java: Ditto.
1650         * java/sql/Blob.java: Ditto.
1651         * java/sql/Clob.java: Ditto.
1652         * java/sql/Ref.java: Ditto.
1653         * java/sql/SQLData.java: Ditto.
1654         * java/sql/SQLInput.java: Ditto.
1655         * java/sql/SQLOutput.java: Ditto.
1656         * java/sql/Struct.java: Ditto.
1657         * java/sql/CallableStatement.java: Merged file from claspath.
1658         * java/sql/Connection.java: Ditto.
1659         * java/sql/DataTruncation.java: Ditto.
1660         * java/sql/DatabaseMetaData.java: Ditto.
1661         * java/sql/DriverManager.java: Ditto.
1662         * java/sql/PreparedStatement.java: Ditto.
1663         * java/sql/ResultSet.java: Ditto.
1664         * java/sql/ResultSetMetaData.java: Ditto.
1665         * java/sql/SQLException.java: Ditto.
1666         * java/sql/SQLWarning.java: Ditto.
1667         * java/sql/Statement.java: Ditto.
1668         * java/sql/Types.java: Ditto.
1669
1670 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
1671
1672         * java/lang/natSystem.cc (init_properties): Set user.language and
1673         user.region.
1674         * configure.in: Check for setlocale.
1675         * configure: Rebuilt.
1676         * include/config.h.in: Rebuilt.
1677
1678         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1679         the infate() call didn't deliver any output. Throw a ZipException if
1680         the needsDictionary() call returns true.
1681         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1682         * java/io/InputStreamReader: Use the default buffer size for the
1683         contained BufferedInputStream.
1684
1685 2000-11-28  Warren Levy  <warrenl@cygnus.com>
1686
1687         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1688         more time zone entries.
1689         * java/text/SimpleDateFormat.java (format): Added case for
1690         TIMEZONE_FIELD.
1691
1692 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
1693
1694         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1695         directly rather than read() in all cases. Make primitive read
1696         implementations more efficient, as defined in JDK online docs.
1697         (skipBytes): Behave like the JDK's implementation.
1698         * java/io/BufferedReader.java: Merge classpath docs. Check for a
1699         closed stream with checkStatus() whenever an IOException can be
1700         thrown.
1701         (checkStatus): New private method.
1702
1703 2000-11-27  Warren Levy  <warrenl@cygnus.com>
1704
1705         * Makefile.am: Added natTimeZone.cc.
1706         * Makefile.in: Rebuilt.
1707         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1708         * java/text/DateFormatSymbols.java (ampms): Made package private.
1709         (eras): Made package private.
1710         (months): Made package private.
1711         (shortMonths): Made package private.
1712         (shortWeekdays): Made package private.
1713         (weekdays): Made package private.
1714         (formatPrefixes): New private field.
1715         (localPatternCharsDefault): Made private.
1716         (dateFormats): New package private field.
1717         (timeFormats): New package private field.
1718         (formatsForKey): New private method.
1719         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1720         (DateFormatSymbols(DateFormatSymbols)): Ditto.
1721         * java/text/SimpleDateFormat.java: Merged with Classpath.
1722         * java/util/TimeZone.java: Merged with Classpath.
1723         * java/util/natTimeZone.cc: New file.
1724
1725 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
1726
1727         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1728         (addElement): Don't increment elementCount twice. Doh.
1729         * java/util/ArrayList.java (add): Only call ensureCapacity if the
1730         array needs to be expanded.
1731         (addAll): Ditto.
1732         * java/util/Collections.java (UnmodifiableCollection): Implement
1733         toString().
1734         (UnmodifiableList): Throw UnsupportedOperationException from
1735         modification methods. Set `l' from the one-parameter constructor.
1736         (UnmodifiableMap): Implement toString().
1737         (SynchronizedCollection): Ditto.
1738         (SynchronizedList): Set `l' from the one-parameter constructor.
1739         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1740         (SynchronizedMap): Implement toString().
1741
1742 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
1743
1744         * javax/naming/NameParser.java,
1745         javax/naming/directory/AttributeInUseException.java,
1746         javax/naming/directory/AttributeModificationException.java,
1747         javax/naming/directory/InvalidAttributeIdentifierException.java,
1748         javax/naming/directory/InvalidAttributesException.java,
1749         javax/naming/directory/InvalidAttributeValueException.java,
1750         javax/naming/directory/InvalidSearchControlsException.java,
1751         javax/naming/directory/InvalidSearchFilterException.java,
1752         javax/naming/directory/NoSuchAttributeException.java,
1753         javax/naming/directory/SchemaViolationException.java: New files.
1754
1755 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
1756
1757         * javax/naming/InitialContext.java (rebind): Implement.
1758         (unbind): Implement.
1759         (rename): Implement.
1760         (list): Implement.
1761         (listBindings): Implement.
1762         (destroySubcontext): Implement.
1763         (createSubcontext): Implement.
1764         (lookupLink): Implement.
1765         (getNameParser): Implement.
1766         (composeName): Implement.
1767         (addToEnvironment): Implement.
1768
1769 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
1770
1771         * javax/naming/AuthenticationException.java,
1772         javax/naming/AuthenticationNotSupportedException.java,
1773         javax/naming/CannotProceedException.java,
1774         javax/naming/CommunicationException.java,
1775         javax/naming/ConfigurationException.java,
1776         javax/naming/ContextNotEmptyException.java,
1777         javax/naming/InsufficientResourcesException.java,
1778         javax/naming/InterruptedNamingException.java,
1779         javax/naming/InvalidNameException.java,
1780         javax/naming/LimitExceededException.java,
1781         javax/naming/LinkException.java,
1782         javax/naming/LinkLoopException.java,
1783         javax/naming/MalformedLinkException.java,
1784         javax/naming/NameAlreadyBoundException.java,
1785         javax/naming/NameNotFoundException.java,
1786         javax/naming/NamingSecurityException.java,
1787         javax/naming/NoPermissionException.java,
1788         javax/naming/NotContextException.java,
1789         javax/naming/PartialResultException.java,
1790         javax/naming/ReferralException.java,
1791         javax/naming/ServiceUnavailableException.java,
1792         javax/naming/SizeLimitExceededException.java,
1793         javax/naming/TimeLimitExceededException.java: New files.
1794
1795         * javax/naming/Name.java (clone): New method.
1796         (compareTo): New method.
1797         (isEmpty): New method.
1798         (getAll): New method.
1799         (getPrefix): New method.
1800         (getSuffix): New method.
1801         (startsWith): New method.
1802         (endsWith): New method.
1803         (addAll): New method.
1804         (addAll): New method.
1805         (add): New method.
1806         (add): New method.
1807         (remove): New method.
1808
1809         * javax/naming/Context.java (lookup): New method.
1810         (rebind): New method.
1811         (unbind): New method.
1812         (rename): New method.
1813         (list): New method.
1814         (listBindings): New method.
1815         (destroySubcontext): New method.
1816         (createSubcontext): New method.
1817         (lookupLink): New method.
1818         (getNameParser): New method.
1819         (composeName): New method.
1820         (addToEnvironment): New method.
1821         (removeFromEnvironment): New method.
1822         (getEnvironment): New method.
1823         (close): New method.
1824         (getNameInNamespace): New method.
1825
1826         * javax/naming/InitialContext.java (lookup): New method.
1827         (rebind): New method.
1828         (unbind): New method.
1829         (rename): New method.
1830         (list): New method.
1831         (listBindings): New method.
1832         (destroySubcontext): New method.
1833         (createSubcontext): New method.
1834         (lookupLink): New method.
1835         (getNameParser): New method.
1836         (composeName): New method.
1837         (addToEnvironment): New method.
1838         (removeFromEnvironment): New method.
1839         (getEnvironment): New method.
1840         (close): New method.
1841         (getNameInNamespace): New method.
1842
1843 2000-11-26  Tom Tromey  <tromey@cygnus.com>
1844
1845         * Makefile.in: Rebuilt.
1846         * Makefile.am (core_java_source_files): Added
1847         RuntimePermission.java.
1848         * java/lang/RuntimePermission.java: Imported from Classpath.
1849         * java/lang/Thread.java (getContextClassLoader): Now
1850         synchronized.  Added security code.
1851         (setContextClassLoader): Likewise.
1852
1853         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1854         length field of array.
1855         (_Jv_NewPrimArray): Likewise.
1856         * gcj/array.h (__JArray): `length' field now const.  Added
1857         constructor.
1858
1859 2000-11-26  Anthony Green  <green@redhat.com>
1860
1861         * javax/naming/spi/NamingManager.java,
1862         javax/naming/spi/ObjectFactory.java,
1863         javax/naming/spi/InitialContextFactory.java,
1864         javax/naming/spi/InitialContextFactoryBuilder.java,
1865         javax/naming/RefAddr.java, javax/naming/Reference.java,
1866         javax/naming/NamingException.java, javax/naming/Context.java,
1867         javax/naming/Referenceable.java,
1868         javax/naming/directory/InitialDirContext.java,
1869         javax/naming/directory/DirContext.java,
1870         javax/naming/directory/Attributes.java,
1871         javax/naming/directory/Attribute.java,
1872         javax/naming/StringRefAddr.java,
1873         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1874         javax/naming/InitialContext.java,
1875         javax/naming/NoInitialContextException.java: New files.
1876
1877 2000-11-25  Anthony Green  <green@redhat.com>
1878
1879         * prims.cc (_Jv_NewObjectArray): Undo placement change.
1880         (_Jv_NewPrimArray): Likewise.
1881         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
1882         (class JArray): Removed constructor.
1883
1884         * java/lang/Thread.java (context_class_loader): New private data.
1885         (getContextClassLoader): New method.
1886         (setContextClassLoader): New method.
1887         (Thread): Initialize context_class_loader.
1888
1889         * java/net/URLClassLoader.java: Import java.util.Enumeration.
1890         (getResource): Rename to findResource.
1891         (findResource): New method.  Used to be getResource.
1892         (getResourceAsStream): Deleted.
1893         (jarFileize): Extracted logic from URLClassLoader constructor into
1894         this new private method.
1895         (addURL): New protected method.
1896         (URLClassLoader): Call jarFileize.  Use addElement instead of
1897         insertElementAt.
1898         (findResources): New method.
1899
1900         * java/lang/ClassLoader.java: Import java.util.Enumeration.
1901         (getResource): Implement correct logic.
1902         (findResource): New method.
1903         (getResources): New method.
1904         (findClass): Create a ClassNotFoundException with the name of the
1905         class rather than nothing at all.
1906         (defineClass) Only throw ClassFormatError.
1907
1908         * java/lang/Class.java (forName): New method.
1909         * java/lang/Class.h (forName): New method.
1910         * java/lang/natClass.cc (forName): New method.
1911
1912 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1913
1914         * java/lang/System.java (setProperties): Only call init_properties()
1915         if properties is null.
1916         (getProperties): Ditto.
1917         (getProperty): Ditto.
1918         (setProperty): Call init_properties if properties are null.
1919         (prop_init): Remove field.
1920         * java/lang/natSystem.cc (init_properties): Synchronize the entire
1921         method. Check for null properties after synchronizing instead of
1922         prop_init flag. Set the properties field last for thread safety.
1923
1924         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1925         test for gcj.dumpobjects property and enable object stream dumping
1926         if it is set.
1927         (dumpElement): No longer native.
1928         (dumpElementln): Ditto.
1929         (setDump): Do not define.
1930         * java/io/natObjectInputStream.cc (dumpElement): Removed.
1931         (dumpElementln): Removed.
1932         (setDump): Removed.
1933
1934 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1935
1936         * configure: Rebuilt.
1937         * Makefile.in: Rebuilt.
1938         * Makefile.am (built_java_source_files): Add Configuration.java.
1939         * configure.in: Add Configuration.java to CONFIG_FILES. Set
1940         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1941         Create `gnu' directory in the build tree.
1942         * gnu/classpath/Configuration.java.in: New file.
1943
1944 2000-11-24  Tom Tromey  <tromey@cygnus.com>
1945
1946         * prims.cc (_Jv_NewObjectArray): Use placement new to create
1947         array.
1948         (_Jv_NewPrimArray): Likewise.
1949         Include <new>.
1950         * gcj/array.h (__JArray): `length' field now const.  Added
1951         constructor.
1952         (class JArray): Added constructor.
1953
1954 2000-11-23  Mark Wielaard  <mark@klomp.org>
1955
1956         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1957         lookup.
1958
1959 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
1960
1961         * java/util/Vector.java: Improve exception messages.
1962         (Vector): Check initialCapacity for IllegalArgumentException.
1963         (tromToSize): Don't check for elementCount == elementData.length
1964         case.
1965         (toArray): Don't try to set null marker if target array is the same
1966         length as the vector.
1967
1968 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
1969
1970         * Makefile.in: Rebuilt.
1971         * Makefile.am (core_java_source_files): Added Collections.java.
1972         * java/util/List.java: Merged from classpath.
1973         * java/util/Vector.java: Ditto.
1974         * java/util/Collections.java: From classpath.
1975         * java/util/ArrayList.java (addAll(Collection)): Call
1976         addAll(int,Collection) instead of duplicating code.
1977         (indexOf): Clean up int initialization.
1978         (clear): Set cleared array entries to null, to allow garbage
1979         collection.
1980         * java/util/List.java: Minor formatting fixes.
1981         * java/util/SimpleTimeZone.java: ditto.
1982
1983 2000-11-18  Tom Tromey  <tromey@cygnus.com>
1984
1985         * Makefile.in: Rebuilt.
1986         * Makefile.am (core_java_source_files): Added new files.
1987         * java/lang/reflect/ReflectPermission.java: New class.
1988         * java/io/FileFilter.java: From Classpath
1989         * java/io/FilePermission.java: From Classpath.
1990
1991 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1992
1993         * java/lang/reflect/AccessibleObject.java (isAccessible,
1994         setAccessible): Now public.
1995
1996         * java/lang/natString.cc: Include Locale.h.
1997         (toUpperCase): Added `locale' argument.  Handle locale
1998         sensitivity.
1999         (toLowerCase): Added `locale' argument.  Handle locale
2000         sensitivity.
2001         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2002         CAPITAL_I): New defines.
2003         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2004         final.
2005         Import Locale.
2006         (toUpperCase, toLowerCase): New methods.  Variants which accept
2007         locale now native.
2008
2009         * java/lang/ExceptionInInitializerError.java (printStackTrace):
2010         New methods.
2011
2012         * java/util/PropertyPermission.java: Re-merged from Classpath.
2013
2014         * java/text/RuleBasedCollator.java (getCollationElementIterator):
2015         New method.
2016         * java/text/StringCharacterIterator.java: Reindented.
2017         (setText): New method.
2018
2019 2000-11-17  Mark Wielaard  <mark@klomp.org>
2020
2021         Merge with Classpath (changes by Bryce McKinlay)
2022         * java/util/jar/*.java: Reformat all to unofficial standard coding
2023         style. No changes of substance.
2024
2025 2000-11-17  Mark Wielaard  <mark@klomp.org>
2026
2027         * java/util/zip/*.java: Javadoc updates.
2028
2029 2000-11-17  Tom Tromey  <tromey@cygnus.com>
2030
2031         * java/text/CollationKey.java: Implement Comparable.
2032         (compareTo(Object)): New method.
2033         * java/text/Collator.java (compare(Object,Object)): New method.
2034         Implement Comparator.
2035
2036         * java/util/zip/InflaterInputStream.java (available): New method.
2037         (close): New method.
2038         (read, available, skip, fill): Throw exception if stream closed.
2039         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2040         getNextEntry): Throw exception if closed.
2041
2042 2000-11-16  Tom Tromey  <tromey@cygnus.com>
2043
2044         * java/io/PushbackReader.java: Merged with Classpath.
2045         * java/util/Arrays.java: Updated from Classpath.
2046
2047         * scripts/blocks.pl: New file.
2048         * java/lang/Character.java (Subset): New class.
2049         (UnicodeBlock): New class.
2050
2051         * java/lang/Math.java (toDegrees, toRadians): New methods.
2052
2053         * java/lang/Float.java: Implement Comparable.
2054         (compareTo): New methods.
2055         * java/lang/Double.java: Implement Comparable.
2056         (compareTo): New methods.
2057
2058 2000-11-16  Warren Levy  <warrenl@cygnus.com>
2059
2060         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2061         transient.
2062         (listeners): Made transient.
2063         (source): Renamed from 'bean'.
2064         (children): New field for serialization.
2065         (propertyChangeSupportSerializedDataVersion): Ditto.
2066         (serialVersionUID): Ditto.
2067         (writeObject): New serialization method.
2068         (readObject): New serialization method.
2069         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2070         transient.
2071         (listeners): Made transient.
2072         (source): Renamed from 'bean'.
2073         (children): New field for serialization.
2074         (vetoableChangeSupportSerializedDataVersion): Ditto.
2075         (serialVersionUID): Ditto.
2076         (writeObject): New serialization method.
2077         (readObject): New serialization method.
2078         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2079         to allow constructor to have a return type (i.e. the class that the
2080         constructor constructs).
2081
2082 2000-11-14  Tom Tromey  <tromey@cygnus.com>
2083
2084         * Makefile.in: Rebuilt.
2085         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2086         and -k not given.
2087
2088 2000-11-02  Warren Levy  <warrenl@cygnus.com>
2089
2090         * java/io/ObjectInputStream.java (readObject): Added code to
2091         conditionally dump out the serialized data.
2092         Handle ENDBLOCKDATA case a bit more gracefully since the current
2093         behavior doesn't seem to work as expected.
2094         (readStreamHeader): Added code for serialized data dumper.
2095         (readNextBlock): Ditto.
2096         (readFields): Ditto.
2097         (dump): New private static field for turning on/off dumper.
2098         (setDump): New native method.
2099         (dumpElement): New native method.
2100         (dumpElementln): New native method.
2101         * java/io/natObjectInputStream.cc (setDump): New method.
2102         (dumpElement): New method.
2103         (dumpElementln): New method.
2104
2105 2000-11-02  Warren Levy  <warrenl@cygnus.com>
2106
2107         * java/net/InetAddress.java (addr): Renamed from 'address'.
2108         (address): New field to match Serialized Form doc.
2109         (hostName): Renamed from 'hostname' to match Serialized Form doc.
2110         (family): New serialization field.
2111         (serialVersionUID): New field.
2112         (readObject): New method.
2113         (writeObject): New method.
2114         (getFamily): New native method.
2115         (InetAddress): Set family.
2116         * java/net/natInetAddress.cc (getFamily): New method.
2117         (addr): Renamed from 'address'.
2118         (hostName): Renamed from 'hostname' to match Serialized Form doc.
2119         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2120         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2121
2122 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
2123
2124         * java/util/AbstractList.java (SubList): Make it a top-level private
2125         class.
2126         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2127         (add): Ditto.
2128         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2129         * Makefile.in: Rebuilt.
2130
2131 2000-11-02  Tom Tromey  <tromey@cygnus.com>
2132
2133         * Makefile.in: Rebuilt.
2134         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2135         link.
2136
2137 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
2138
2139         * java/util/AbstractList.java (remove): Comment out modCount increment
2140         to work around compiler bug.
2141         (add): Ditto.
2142
2143 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
2144
2145         * java/util/AbstractList.java: Throw messages with
2146         IndexOutOfBoundsExceptions.
2147          (listIterator()): Call listIterator(0).
2148         (size): New field. Initialize to size().
2149         (hasNext): Test position against size, not size().
2150         (remove): Increment knownMod by one instead of resetting it from
2151         modCount.
2152         (add): Ditto.
2153         (SubList.upMod): Removed.
2154         (SubList.set): Don't call upMod() or update knownMod.
2155         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2156         (SubList.remove): Ditto.
2157         (SubList.addAll): Don't call backingList.size(). Increment size from
2158         c.size().
2159         (SubList.iterator): New method. Call listIterator(0).
2160         (SubList.listIterator): New method. Restore code to return an anonymous
2161         listIterator implementation (with some changes).
2162         * java/util/AbstractSequentialList.java: Throw messages with
2163         IndexOutOfBoundsExceptions.
2164         (addAll): Add a specnote.
2165         * java/util/ArrayList.java (removeRange): Get the math right.
2166         (addAll): Increment modCount _before_ creating iterator.
2167         * java/util/LinkedList.java: Rewritten, mostly.
2168
2169 2000-11-01  Tom Tromey  <tromey@cygnus.com>
2170
2171         * scripts/encodings.pl: Added `ASCII' alias.
2172         * Makefile.in: Rebuilt.
2173         * Makefile.am (convert_source_files): Added new files.
2174         * gnu/gcj/convert/Input_ASCII.java: New file.
2175         * gnu/gcj/convert/Output_ASCII.java: New file.
2176         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2177         out-of-range characters.
2178         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2179         (read): Swap bytes if required.  Treat `count' as character count,
2180         not byte count.
2181         (write): Likewise.  Also, handle case where iconv fails on a given
2182         character.
2183         (init): Put encoding into exception.
2184         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2185         (static): Call iconv_init.  Rebuilt alias list.
2186         (iconv_init): New private method.
2187
2188 2000-11-01  Tom Tromey  <tromey@cygnus.com>
2189
2190         * Makefile.in: Rebuilt.
2191         * Makefile.am (install-exec-hook): Only make a single symlink, and
2192         remove the destination before making the link.
2193         * configure: Rebuilt.
2194         * configure.in: Call AC_PROG_LN_S.
2195
2196 2000-10-31  Warren Levy  <warrenl@cygnus.com>
2197
2198         * jni.cc: Added include of java/lang/ThreadGroup.h.
2199         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2200         per change of 2000-10-05.
2201
2202 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
2203
2204         * java/util/BitSet.java: Updated @specnote.
2205
2206         * java/io/Reader.java: Merge docs from classpath.
2207         (skip): Synchronize on `lock'.
2208         * java/io/FileReader.java: Import correct implementation from
2209         classpath.
2210         * java/io/StringReader.java: Merge docs from classpath.
2211         (ready): Throw IOException if stream is closed.
2212
2213 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
2214
2215         * java/util/AbstractCollection.java (addAll): Use size() instead of
2216         hasNext() in iterator loop.
2217         (clear): Ditto.
2218         (contains): Ditto. Simplify loop.
2219         (containsAll): Ditto.
2220         (remove): Ditto.
2221         (removeAll): Ditto.
2222         (retainAll): Ditto.
2223         (toArray): Ditto.
2224         (toString): Ditto. Use string concatenation operators, not
2225         StringBuffer.
2226         * java/util/AbstractList.java (addAll): Use size() instead of
2227         hasNext() in iterator loop.
2228         (equals): Ditto.
2229         (hashCode): Ditto.
2230         (indexOf): Ditto. Don't take null check outside of the loop.
2231         (iterator): Return an AbstractListItr instead of anonymous class.
2232         (lastIndexOf): Use a for loop bounded by size() instead of
2233         hasPrevious() in iterator loop.
2234         (listIterator): Return an AbstractListItr.
2235         (removeRange): Remove bounds checking code and docs.
2236         (AbstractListItr): New inner class. Code moved here from
2237         listIterator().
2238         (SubList.iterator): Removed. Use default implementation from
2239         AbstractList instead.
2240         (SubList.listIterator): As above.
2241         * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2242         instead of hasNext() in iterator loop.
2243         (containsValue): Ditto.
2244         (equals): Ditto.
2245         (get): Ditto.
2246         (put): Ditto.
2247         (putAll): Ditto.
2248         (remove): Ditto.
2249         (toString): Ditto. Use string concatenation operators, not
2250         StringBuffer.
2251         * java/util/AbstractSequentialList.java (addAll): Use a for loop
2252         bounded by size() instead of hasNext() in iterator loop.
2253         * java/util/AbstractSet.java (hashCode): Don't catch exception as
2254         part of normal execution flow. Do an explicit null check instead.
2255         * java/util/ArrayList.java (_iSize): Rename to `size'.
2256         (_arData): Rename to `data'.
2257         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2258         message.
2259         (remove): Ditto.
2260         (removeRange): Make protected. Don't check bounds.
2261         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2262         message.
2263         (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2264         check.
2265         (addAll (int, Collection)): Check lower bounds. Simplify exception
2266         string.
2267         (clone): Clone the data array too.
2268         (indexOf): Inline doesEqual().
2269         (lastIndexOf): Ditto.
2270         (clear): Don't set array data to null.
2271         (set): Check lower bounds. Simplify exception string.
2272         (toArray): Correct comment.
2273         (trimToSize): Don't update modCount, this is not a structural change.
2274         Add comment.
2275
2276         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2277         implemented.
2278         (toString): Declare `bit' as long, not int.
2279         (data): Made package-private, not private.
2280
2281 2000-10-27  Warren Levy  <warrenl@cygnus.com>
2282
2283         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2284         array elements to true.
2285
2286 2000-10-27  Warren Levy  <warrenl@cygnus.com>
2287
2288         * Makefile.am: Added locale files from Classpath.
2289         * Makefile.in: Rebuilt.
2290         * gnu/java/locale/Calendar.java: New file.
2291         * gnu/java/locale/Calendar_de.java: New file.
2292         * gnu/java/locale/Calendar_en.java: New file.
2293         * gnu/java/locale/Calendar_nl.java: New file.
2294         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2295         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2296         serialization compatibility.
2297         (scale): Made private.
2298         (serialVersionUID): New field.
2299         * java/math/BigInteger.java (ival): Made transient.
2300         (words): Made transient.
2301         (bitCount): New serialization field.
2302         (bitLength): Ditto.
2303         (firstNonzeroByteNum): Ditto.
2304         (lowestSetBit): Ditto.
2305         (magnitude): Ditto.
2306         (signum): Ditto.
2307         (serialVersionUID): New field.
2308         (readObject): New method.
2309         (writeObject): New method.
2310         * java/util/BitSet.java (serialVersionUID): New field.
2311         * java/util/Calendar.java: Replaced with Classpath file.
2312         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2313         of getDefault() for TimeZone or Locale instead of passing nulls.
2314         * java/util/Locale.java (serialVersionUID): New field.
2315         (writeObject): New method.
2316         (readObject): New method.
2317         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2318
2319 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
2320
2321         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2322         (core_java_source_files): Put java.lang, java.io, and java.util here.
2323         (ordinary_java_source_files): Order so that core_java_source_files are
2324         built first.
2325         (java_source_files): Reorder so that special_java_source_files are
2326         built first.
2327         * configure.in: Don't pass -I flag to gcj.
2328         * Makefile.in: Rebuilt.
2329         * configure: Rebuilt.
2330
2331 2000-10-25  Tom Tromey  <tromey@cygnus.com>
2332
2333         * Makefile.in: Rebuilt.
2334         * Makefile.am (install-exec-hook): New target.
2335
2336 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
2337
2338         * java/util/EventObject.java: Merged from classpath.
2339
2340         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2341         with stack dump.
2342
2343 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2344
2345         * java/util/AbstractSet.java (equals): Re-installed original code.
2346
2347 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2348
2349         * Makefile.am: Added rules for libgcjx library.
2350         * Makefile.in: Rebuilt.
2351         * configure.in: Added check for X.
2352         * configure: Rebuilt.
2353         * gnu/awt/LightweightRedirector.java: New file.
2354         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2355         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2356         * gnu/awt/j2d/Graphics2DImpl.java: New file.
2357         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2358         * gnu/awt/j2d/MappedRaster.java: New file.
2359         * gnu/awt/xlib/XCanvasPeer.java: New file.
2360         * gnu/awt/xlib/XEventLoop.java: New file.
2361         * gnu/awt/xlib/XEventQueue.java: New file.
2362         * gnu/awt/xlib/XFontMetrics.java: New file.
2363         * gnu/awt/xlib/XFramePeer.java: New file.
2364         * gnu/awt/xlib/XGraphics.java: New file.
2365         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2366         * gnu/awt/xlib/XPanelPeer.java: New file.
2367         * gnu/awt/xlib/XToolkit.java: New file.
2368         * gnu/gcj/xlib/Clip.java: New file.
2369         * gnu/gcj/xlib/Colormap.java: New file.
2370         * gnu/gcj/xlib/Display.java: New file.
2371         * gnu/gcj/xlib/Drawable.java: New file.
2372         * gnu/gcj/xlib/Font.java: New file.
2373         * gnu/gcj/xlib/GC.java: New file.
2374         * gnu/gcj/xlib/Pixmap.java: New file.
2375         * gnu/gcj/xlib/Screen.java: New file.
2376         * gnu/gcj/xlib/Visual.java: New file.
2377         * gnu/gcj/xlib/WMSizeHints.java: New file.
2378         * gnu/gcj/xlib/Window.java: New file.
2379         * gnu/gcj/xlib/WindowAttributes.java: New file.
2380         * gnu/gcj/xlib/XAnyEvent.java: New file.
2381         * gnu/gcj/xlib/XButtonEvent.java: New file.
2382         * gnu/gcj/xlib/XColor.java: New file.
2383         * gnu/gcj/xlib/XConfigureEvent.java: New file.
2384         * gnu/gcj/xlib/XConnectException.java: New file.
2385         * gnu/gcj/xlib/XEvent.java: New file.
2386         * gnu/gcj/xlib/XException.java: New file.
2387         * gnu/gcj/xlib/XExposeEvent.java: New file.
2388         * gnu/gcj/xlib/XID.java: New file.
2389         * gnu/gcj/xlib/XImage.java: New file.
2390         * gnu/gcj/xlib/XUnmapEvent.java: New file.
2391         * gnu/gcj/xlib/natClip.cc: New file.
2392         * gnu/gcj/xlib/natColormap.cc: New file.
2393         * gnu/gcj/xlib/natDisplay.cc: New file.
2394         * gnu/gcj/xlib/natDrawable.cc: New file.
2395         * gnu/gcj/xlib/natFont.cc: New file.
2396         * gnu/gcj/xlib/natGC.cc: New file.
2397         * gnu/gcj/xlib/natPixmap.cc: New file.
2398         * gnu/gcj/xlib/natScreen.cc: New file.
2399         * gnu/gcj/xlib/natVisual.cc: New file.
2400         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2401         * gnu/gcj/xlib/natWindow.cc: New file.
2402         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2403         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2404         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2405         * gnu/gcj/xlib/natXColor.cc: New file.
2406         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2407         * gnu/gcj/xlib/natXException.cc: New file.
2408         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2409         * gnu/gcj/xlib/natXImage.cc: New file.
2410         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2411         * java/awt/EventDispatchThread.java: Start thead on creation.
2412
2413 2000-10-20  Tom Tromey  <tromey@cygnus.com>
2414
2415         From Arno J. Klaassen:
2416         * interpret.cc: Include <stdlib.h> for alloca.
2417         * defineclass.cc: Include <stdlib.h> for alloca.
2418
2419         * Makefile.in: Rebuilt.
2420         * Makefile.am: Include deps.mk.
2421         (GCJCOMPILE): Added -MD, -MT, and -MF.
2422         ($(javao_files)): Don't depend on libgcj.zip.
2423         (all-recursive): New target.
2424         (%.lo:%.cc): Do dependency tracking.
2425         ($(nat_headers)): Don't depend on libgcj.zip.
2426         * configure: Rebuilt.
2427         * configure.in: Make .d files and deps.mk.
2428
2429 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
2430
2431         * exception.cc: Don't #include "exception".
2432         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2433
2434         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2435         * Makefile.in: Updated.
2436
2437 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
2438
2439         * java/awt/peer/ChoicePeer.java (addItem): Removed.
2440         * java/awt/peer/ComponentPeer.java (disable): Removed.
2441         (enable): Removed.
2442         (hide): Removed.
2443         (minimumSize): Removed.
2444         (preferredSize): Removed.
2445         (reshape): Removed.
2446         (show): Removed.
2447         * java/awt/peer/ListPeer.java (addItem): Removed.
2448         (clear): Removed.
2449         (minimumSize): Removed.
2450         (preferredSize): Removed.
2451         (setMultipleSelections): Removed.
2452         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2453         (remove): Renamed from removeMenu.
2454         * java/awt/peer/MenuItemPeer.java (disable): Removed.
2455         (enable): Removed.
2456         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2457         (remove): Renamed from removeItem.
2458         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2459         (getMinimumSize): Removed.
2460         (getPreferredSize): Removed.
2461         (minimumSize): Removed.
2462         (preferredSize): Removed.
2463         (replaceText): Removed.
2464         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2465         (preferredSize): Removed.
2466         (getMinimumSize): Removed.
2467         (getPreferredSize): Removed.
2468         (setEchoCharacter): Removed.
2469
2470 2000-10-10  Warren Levy  <warrenl@cygnus.com>
2471
2472         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2473         * java/sql/Date.java (serialVersionUID): New field.
2474         * java/sql/Time.java (serialVersionUID): New field.
2475         * java/sql/Timestamp.java (serialVersionUID): New field.
2476         * java/text/ChoiceFormat.java (serialVersionUID): New field.
2477         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2478         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2479         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2480         (readObject): New serialization method.
2481         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2482         (serialVersionOnStream): New field.
2483         (readObject): New serialization method.
2484         (getMonetaryDecimalSeparator): New method.
2485         (setMonetaryDecimalSeparator): New method.
2486         * java/text/NumberFormat.java (maxFractionDigits): New field.
2487         (maxIntegerDigits): New field.
2488         (minFractionDigits): New field.
2489         (minIntegerDigits): New field.
2490         (serialVersionOnStream): New field.
2491         (serialVersionUID): New field.
2492         (readObject): New serialization method.
2493         (writeObject): New serialization method.
2494         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2495         (serialVersionOnStream): New field.
2496         (serialVersionUID): New field.
2497         (readObject): New serialization method.
2498
2499 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
2500
2501         * configure.in (GCJ): Avoid bogus error message when looking for
2502         (and not finding) gcj in the build tree.
2503         * configure: Rebuilt.
2504
2505 2000-10-09  Tom Tromey  <tromey@cygnus.com>
2506
2507         * configure: Rebuilt.
2508         * configure.in: Include sys/types.h when checking for socklen_t.
2509         From Arno J. Klaassen.
2510
2511 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
2512
2513         * include/jvm.h: Enable __builtin_expect().
2514
2515         * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2516         the main program. Fix for PR libgcj/341.
2517
2518 2000-10-07  Tom Tromey  <tromey@cygnus.com>
2519
2520         * java/util/Properties.java: Merged with Classpath version.
2521
2522 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2523
2524         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2525         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2526         * java/lang/Class.h (Object): Added `class$' field.
2527         * java/lang/Object.h (Object): Added `class$' field.
2528         * defineclass.cc (ClassClass): Use `class$' form.
2529         (ClassObject): Likewise.
2530         * resolve.cc (ClassObject): Use `class$' form.
2531         (ObjectClass): Likewise.
2532         * interpret.cc (ClassError): Removed.
2533         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2534         `class$' form.
2535         (IntegerClass): Likewise.
2536         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2537         form.
2538         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2539         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2540         SerializableClass): Likewise.
2541         Include Serializable.h, Cloneable.h.
2542         * java/lang/natSystem.cc (SystemClass): Removed.
2543         (init_properties): Use `class$' form.
2544         * java/lang/natObject.cc (CloneableClass): Removed.
2545         (clone): Use `class$' form.
2546         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2547         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2548         ConstructorClass): Likewise.
2549         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2550         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2551         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2552         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2553         form.
2554         (ClassClass): Likewise.
2555         * include/jvm.h (StringClass): Use `class$' form.
2556         * prims.cc (ObjectClass): Removed.
2557         (_Jv_RunMain): Use `class$' form.
2558         (_Jv_AllocObject): Likewise.
2559         * jni.cc (ClassClass): Use `class$' form.
2560         (ThrowableClass): Likewise.
2561         (ObjectClass): Likewise.
2562         (MethodClass): Likewise.
2563         (ThreadGroupClass): Likewise.
2564         (NativeThreadClass): Likewise.
2565         * boehm.cc (ObjectClass): Removed.
2566         (ClassClass): Removed.
2567         (_Jv_MarkObj): Use `class$' form.
2568         * gcj/field.h (JvFieldIsRef): Use `class$' form.
2569         Include RawData.h.
2570
2571 2000-10-05  Warren Levy  <warrenl@cygnus.com>
2572
2573         * Makefile.am: Removed java/io/Replaceable.java and
2574         java/io/Resolvable.java.
2575         * Makefile.in: Rebuilt.
2576         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2577         namespace.
2578         * java/io/ObjectInputStream.java (processResolution): Fixed typo
2579         in method name.
2580         (processResolution): Handle readResolve method via reflection with
2581         removal of Resolvable interface.
2582         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2583         method via reflection with removal of Replaceable interface.
2584         * java/io/Replaceable.java: Removed.
2585         * java/io/Resolvable.java: Removed.
2586         * java/security/Key.java (serialVersionUID): New field.
2587         * java/security/Provider.java (serialVersionUID): New field.
2588         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2589         New field.
2590         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2591         New field.
2592         * java/sql/DataTruncation.java (serialVersionUID): New field.
2593         * java/sql/SQLException.java (serialVersionUID): New field.
2594         * java/sql/SQLWarning.java (serialVersionUID): New field.
2595         * java/util/Date.java (serialVersionUID): New field.
2596         (millis): Made transient.
2597         (readObject): New method.
2598         (writeObject): New method.
2599
2600 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2601
2602         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2603
2604 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
2605
2606         * prims.cc (_Jv_argv, _Jv_argc): New fields.
2607         (JvRunMain): Set _Jv_argv and _Jv_argc.
2608         * java/awt/Component.java: Minor fixes.
2609         * java/awt/Image.java (UndefinedProperty): Initialize final field.
2610         * java/awt/Toolkit.java (systemEventQueue): Removed.
2611         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2612         * java/awt/Window.java (getToolkit): Don't call super.
2613         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2614         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2615         * gnu/awt/gtk/GtkComponentPeer.java: New file.
2616         * gnu/awt/gtk/GtkContainerPeer.java: New file.
2617         * gnu/awt/gtk/GtkFramePeer.java: New file.
2618         * gnu/awt/gtk/GtkMainThread.java: New file.
2619         * gnu/awt/gtk/GtkToolkit.java: New file.
2620         * gnu/awt/gtk/GtkWindowPeer.java: New file.
2621         * gnu/awt/gtk/gtkcommon.cc: New file.
2622         * gnu/awt/gtk/gtkcommon.h: New file.
2623         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2624         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2625         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2626         * gnu/awt/gtk/natGtkMainThread.cc: New file.
2627         * gnu/awt/gtk/natGtkToolkit.cc: New file.
2628         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2629
2630 2000-09-30  Tom Tromey  <tromey@cygnus.com>
2631
2632         * posix-threads.cc (_Jv_CondWait): Check to see if we are
2633         interrupted before modifying the cv's wait set.
2634         From Corey Minyard.
2635
2636 2000-09-30  Hans Boehm  <boehm@acm.org>
2637             Bryce McKinlay  <bryce@albatross.co.nz>
2638
2639         Implement bitmap descriptor based marking for Boehm GC.
2640
2641         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2642         * configure: Rebuilt.
2643         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2644         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2645         method get_finalizer().
2646         (struct _Jv_ArrayVTable): Ditto. Declare method array with
2647         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2648         (_Jv_AllocObj): Add new jclass parameter.
2649         (_Jv_AllocArray): Ditto.
2650         (_Jv_BuildGCDescr): New prototype.
2651         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2652         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2653         get_finalizer() instead of direct finalizer vtable offset.
2654         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2655         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2656         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2657         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2658         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2659         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2660         (_Jv_DetermineVTableIndex): Ditto.
2661         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2662         calculations to account for new gc_descr field.
2663         * boehm.cc: #include gc_gcj.h.
2664         (obj_kind_x, obj_free_list): `#if 0'-ed away.
2665         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2666         New commentary from HB. Mark the classes vtable.
2667         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2668         (GC_DEFAULT_DESCR): New #define.
2669         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2670         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2671         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2672         scan conservativly if size is less than min_heap_addr. Set vtable
2673         pointer of new object before returning.
2674         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2675         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2676         allocation for obj_kind_x.
2677         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2678         (_Jv_AllocObj): Set vtable on returned object.
2679         (_Jv_AllocArray): Ditto.
2680         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2681         (_Jv_NewPrimArray): Ditto.
2682         (_Jv_AllocObj): Declare as a friend.
2683         (_Jv_AllocArray): Ditto.
2684         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2685         from &ObjectClass into new array class. Remove offset-by-one
2686         adjustments from `method' size calculations to account for gc_descr
2687         field.
2688
2689 2000-09-26  Tom Tromey  <tromey@cygnus.com>
2690
2691         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2692         `remove', not `add'.
2693
2694 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2695
2696         * java/lang/natSystem.cc (file_encoding): Added return statement.
2697
2698 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2699
2700         * Makefile.am: Re-work shell commands that exceeded command-line
2701         length limits.
2702         * Makefile.in: Rebuilt.
2703
2704         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2705
2706         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2707         * java/lang/natDouble.cc: Likewise.
2708         * java/lang/reflect/natMethod.cc: Likewise.
2709         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
2710
2711 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
2712
2713         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2714         libgcjdata.a.
2715         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
2716         * acinclude.m4: Arrange for automake to not bring in a new
2717         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
2718         * Makefile.am: Leave it up to automake to subst GCJ.
2719         * aclocal.m4, configure, Makefile.in: Rebuilt.
2720
2721 2000-09-13  Tom Tromey  <tromey@cygnus.com>
2722
2723         * java/lang/reflect/natArray.cc (BooleanClass): New define.
2724         (get): Ensure Boolean class is initialized.
2725         * java/lang/reflect/natField.cc (BooleanClass): New define.
2726         (get): Ensure Boolean class is initialized.
2727
2728 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
2729
2730         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2731         Initialize with anonymous class.
2732         (compareToIgnoreCase): New method.
2733
2734         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2735         (uncaughtException): Set had_uncaught_exception.
2736         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2737         exit with error status if set.
2738         (_Jv_RunMain): Ditto.
2739
2740 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
2741
2742         * configure: Rebuilt with new ../libtool.m4.
2743
2744 2000-09-11  Tom Tromey  <tromey@cygnus.com>
2745
2746         * java/lang/reflect/Field.java (toString): Don't rely on
2747         Class.toString.
2748
2749 2000-09-08  Tom Tromey  <tromey@cygnus.com>
2750
2751         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2752         default decoder use iconv.
2753         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2754         Let default encoder use iconv.
2755         * configure: Rebuilt.
2756         * configure.in: Check for nl_langinfo and <langinfo.h>.
2757         * java/lang/natSystem.cc (file_encoding): New function.
2758         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2759
2760 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
2761
2762         * acinclude.m4: Simplify the tests for CC and CXX.
2763         * aclocal.m4, configure: Rebuilt.
2764
2765         * acinclude.m4: Include libtool macros from the source tree.
2766         * aclocal.m4, configure: Rebuilt.
2767
2768 2000-09-08  Warren Levy  <warrenl@cygnus.com>
2769
2770         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2771         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2772         * java/io/File.java (writeObject): Added.
2773         (readObject): Added.
2774         (serialVersionUID): Added.
2775         * java/io/ObjectOutputStream.java (writeObject): Initialized
2776         fieldsAlreadyWritten before recursion rather than after.
2777         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2778         * java/io/OptionalDataException.java (serialVersionUID): Added.
2779         (OptionalDataException): Made package private.
2780         * java/io/SyncFailedException.java (SyncFailedException): Removed
2781         default constructor to match spec.
2782         * java/lang/Boolean.java (serialVersionUID): Added.
2783         * java/lang/Byte.java (serialVersionUID): Added.
2784         * java/lang/Character.java (serialVersionUID): Added.
2785         * java/lang/Double.java (serialVersionUID): Added.
2786         * java/lang/Float.java (serialVersionUID): Added.
2787         * java/lang/Integer.java (serialVersionUID): Added.
2788         * java/lang/Long.java (serialVersionUID): Added.
2789         * java/lang/Number.java (serialVersionUID): Added.
2790         * java/lang/Short.java (serialVersionUID): Added.
2791         * java/lang/String.java (serialVersionUID): Added.
2792         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2793         to match spec.
2794         * java/lang/reflect/InvocationTargetException.java
2795         (serialVersionUID): Added.
2796         * java/net/URL.java (handler): Made transient.
2797         (hashCode): Added field for serialization, per spec. and use
2798         cached value if available.
2799         (serialVersionUID): Added.
2800         (URL): Initialize hashCode.
2801         (set): Adjust hashCode.
2802         (readObject): New Method to initialize the protocol handler when
2803         deserializing.
2804         (writeObject): New method.
2805         * java/text/BreakIterator.java: Removed 'implements Serializable'.
2806         * java/text/Collator.java: Removed 'implements Serializable'.
2807         * java/util/GregorianCalendar.java (serialVersionUID): Added.
2808         * java/util/Properties.java (serialVersionUID): Added.
2809         * java/util/Random.java (serialVersionUID): Added.
2810         (seed): Made private.
2811         (nextNextGaussian): Made private.
2812         (haveNextNextGaussian): Made private.
2813         * java/util/Stack.java (serialVersionUID): Added.
2814         * java/util/TimeZone.java (serialVersionUID): Added.
2815         * java/util/Vector.java (serialVersionUID): Added.
2816
2817 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
2818
2819         * Makefile.am (Thread.h): Don't be friends with native threads
2820         functions.
2821         * Makefile.in: Rebuilt.
2822         * java/lang/Thread.java (interrupt_flag): Make package-private.
2823
2824 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
2825
2826         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2827         to avoid long long division.
2828
2829 2000-09-06  Tom Tromey  <tromey@cygnus.com>
2830
2831         * java/lang/reflect/Constructor.java (toString): Use `getName' for
2832         parameter types.
2833         * java/lang/reflect/Method.java (toString): Use `getName' for
2834         return type.
2835
2836         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2837         `args' if method takes no parameters.
2838
2839         Fix for PR java.lang/339:
2840         * java/lang/natPosixProcess.cc (fail): New function.
2841         (cleanup): New function.
2842         (startProcess): Use them.  Create pipe so child can communicate
2843         exec failure back to parent.
2844
2845 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2846
2847         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2848         calls to `throw'.
2849         (send): Undo last patch. Remove the label only.
2850         (mcastGrp): Ditto.
2851         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2852         `throw'.
2853         * java/net/natInetAdress.cc: Ditto.
2854
2855         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2856
2857 2000-09-05  Tom Tromey  <tromey@cygnus.com>
2858
2859         * doc/cni.sgml: Updated from master copy.
2860
2861 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2862
2863         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2864         (write): Ditto.
2865         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2866         stack. Synchronize.
2867         * java/lang/fdlibm.h: #undef __P if previously defined.
2868         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2869         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2870         block.
2871         (mcastGrp): Ditto.
2872
2873 2000-09-04  Tom Tromey  <tromey@cygnus.com>
2874
2875         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2876         DELETE mode.
2877
2878 2000-09-04  Anthony Green  <green@redhat.com>
2879
2880         Fix for PR java.io/203:
2881         * java/io/File.java (createTempFile): Obey directory argument.
2882         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
2883         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2884         variable to set java.io.tmpdir on non-WIN32 systems.
2885
2886 2000-09-04  Anthony Green  <green@redhat.com>
2887
2888         * java/io/File.java (deleteOnExit): New method.
2889         * gnu/gcj/runtime/FileDeleter.java: New class.
2890         * java/lang/natRuntime.cc (exit): Call
2891         FileDeleter.deleteOnExitNow()
2892         * Makefile.am: Add FileDeleter.java.
2893         * Makefile.in: Rebuilt.
2894
2895 2000-09-02  Tom Tromey  <tromey@cygnus.com>
2896
2897         * Makefile.in: Rebuilt.
2898         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2899         environment variable.
2900
2901 2000-09-01  Andrew Haley  <aph@redhat.com>
2902
2903         * java/io/StreamTokenizer.java: Don't throw a
2904         NumberFormatException if a field is numeric as far as the
2905         StreamTokenizer is concerned but not as far as Double.valueOf() is
2906         concerned: return a zero instead.
2907
2908 2000-08-30  Tom Tromey  <tromey@cygnus.com>
2909
2910         * Makefile.in: Rebuilt.
2911         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2912
2913 2000-08-28  Tom Tromey  <tromey@cygnus.com>
2914
2915         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2916         gnu/gcj/awt/ComponentDataBlitOp.java,
2917         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2918         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2919         java/awt/color/ICC_ColorSpace.java,
2920         java/awt/color/ICC_Profile.java,
2921         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2922         java/awt/image/ComponentColorModel.java,
2923         java/awt/image/ComponentSampleModel.java,
2924         java/awt/image/DataBuffer.java,
2925         java/awt/image/DataBufferByte.java,
2926         java/awt/image/DataBufferInt.java,
2927         java/awt/image/DataBufferUShort.java,
2928         java/awt/image/DirectColorModel.java,
2929         java/awt/image/IndexColorModel.java,
2930         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2931         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2932         java/awt/image/SinglePixelPackedSampleModel.java,
2933         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2934         Removed Latin-1 copyright symbols.
2935         * java/util/zip/ZipFile.java: Indentation fixes.
2936
2937 2000-08-27  Mark Wielaard  <mark@klomp.org>
2938
2939         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2940         constructor, close can delete the file, finalize calls close.
2941         * java/util/jar/JarFile.java: Constructor that takes mode now
2942         calls super.
2943
2944 2000-08-27  Anthony Green  <green@redhat.com>
2945
2946         * java/util/ArrayList.java, java/util/Timer.java,
2947         java/util/LinkedList.java, java/util/TimerTask.java,
2948         java/util/HashMap.java, java/util/AbstractMap.java,
2949         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2950         java/util/SortedSet.java: Imported from GNU Classpath.
2951         * Makefile.in: Rebuilt.
2952         * Makefile.am: Added new files.
2953
2954 2000-08-26  Anthony Green  <green@redhat.com>
2955
2956         * Makefile.in: Rebuilt.
2957         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2958         friend.
2959
2960         * prims.cc: Include ClassLoader.h.
2961         (_Jv_RunMain): When executing jar files, classpath must be the jar
2962         file only.  Lose our reference to the system ClassLoader in order
2963         to get a new one with the correct classpath.
2964         * java/lang/natSystem.cc (init_properties): When executing a jar
2965         file, only use the jar file for java.class.path.
2966
2967         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2968         for bytecode archives.
2969
2970         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2971         exists, but not Main-Class.
2972
2973 2000-08-23  Mark Wielaard  <mark@klomp.org>
2974
2975         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2976         return -1 when fill() has no more data for the Inflater.
2977
2978 2000-08-23  Mark Wielaard  <mark@klomp.org>
2979
2980         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2981         write(String) already does.
2982
2983 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2984
2985         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2986         to `alive_flag', call `init'.
2987         (init): New native method.
2988         * gnu/gcj/jni/natNativeThread.cc (init): New native method
2989         implementation.
2990
2991 2000-08-21  Mark Wielaard  <mark@klomp.org>
2992
2993         * Makefile.in: Rebuilt.
2994         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2995         a `friend class'.
2996         (java/lang/reflect/Field.h): Likewise.
2997         (java/lang/reflect/Method.h): Likewise.
2998         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2999         `friend class'.
3000
3001 2000-08-21  Tom Tromey  <tromey@cygnus.com>
3002
3003         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3004         debugging prints.
3005
3006 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
3007
3008         * java/lang/natSystem.cc (init_properties): Change sourceware
3009         reference to sources.redhat.com.
3010
3011         * include/java-props.h: Add _Jv_Jar_Class_Path.
3012         * prims.cc: Ditto.  Set it from `gij -jar file' option.
3013
3014         * java/lang/natSystem.cc (init_properties): Set java.class.path
3015         from
3016         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3017
3018         * java/util/PropertyPermission.java: Import from GNU Classpath.
3019         * Makefile.in: Rebuilt.
3020         * Makefile.am: Add java/util/PropertyPermission.java.
3021         * java/lang/System.java: Add setProperty method.
3022
3023         * gij.cc (main): Add -jar option to execute jar files.
3024         (help): Describe -jar option.
3025         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3026         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3027         * gnu/gcj/runtime/FirstThread.java (main): New method.
3028
3029         * java/util/jar/Attributes.java: Correct comment spelling.
3030
3031 2000-08-20  Mark Wielaard  <mark@klomp.org>
3032
3033         * java/util/zip/Adler32.java: Make private variables really private
3034         * java/util/zip/CRC32.java: Make private variables really private
3035         * java/util/zip/CheckedInputStream.java: skip() could skip to much
3036         bytes
3037         * java/util/zip/InflaterInputStream.java: skip() could skip to
3038         much bytes
3039         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3040         * java/util/zip/ZipFile.java: size() new 1.2 method
3041         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3042         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
3043         closed
3044
3045 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
3046
3047         * java/util/jar/JarFile.java: Don't call
3048         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
3049         <mark@klomp.org>.
3050
3051 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
3052
3053         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3054         Read the entire contents of the class file, not just what is
3055         available().
3056
3057         * java/net/JarURLConnection.java: getEntry doesn't take any
3058         arguments.  Return null if element is null.
3059
3060         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3061         size from the archive, not the inflated size.
3062
3063         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
3064         java.util.zip.ZipFile.getEntry.
3065
3066         * gij.cc (help): Change sourceware reference to
3067         sources.redhat.com.
3068
3069 2000-08-19  Tom Tromey  <tromey@cygnus.com>
3070
3071         * java/util/zip/ZipInputStream.java (createZipEntry):
3072         Implemented.
3073
3074 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
3075
3076         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3077         java/util/jar/JarException.java, java/util/jar/JarFile.java,
3078         java/util/jar/JarInputStream.java,
3079         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3080         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3081         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3082         java/security/cert/CRL.java, java/security/cert/CRLException.java,
3083         java/security/cert/Certificate.java,
3084         java/security/cert/CertificateEncodingException.java,
3085         java/security/cert/CertificateException.java,
3086         java/security/cert/CertificateExpiredException.java,
3087         java/security/cert/CertificateFactory.java,
3088         java/security/cert/CertificateFactorySpi.java,
3089         java/security/cert/CertificateNotYetValidException.java,
3090         java/security/cert/CertificateParsingException.java,
3091         java/security/cert/X509CRL.java,
3092         java/security/cert/X509CRLEntry.java,
3093         java/security/cert/X509Certificate.java,
3094         java/security/cert/X509Extension.java: Imported from Classpath.
3095         * java/util/Hashtable.java: Imported from Classpath.
3096
3097         * java/util/zip/ZipInputStream.java: Create stub for
3098         createZipEntry.
3099
3100         * gcj/javaprims.h: Updated class list.
3101
3102         * Makefile.in, gcj/Makefile.in: Rebuilt.
3103         * Makefile.am (ordinary_java_source_files): Add these new classes.
3104
3105 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3106
3107         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3108         * gnu/gcj/awt/GLightweightPeer.java: New file.
3109         * java/awt/BorderLayout.java: Implemented all methods.
3110         * java/awt/Button.java (actionListener, actionCommand): Renamed
3111         and modifier change.
3112         (addNotify): Call super.
3113         (dispatchEventImpl): New method.
3114         (getListeners): New method.
3115         (label): Made package-private, not private.
3116         * java/awt/Canvas.java: Implemented class body.
3117         * java/awt/Color.java (brighter): New method.
3118         (darker): New method.
3119         (hashCode): New method.
3120         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3121         (getGraphicsConfiguration): Delegate to
3122         getGraphicsConfigurationImpl().
3123         (getGraphicsConfigurationImpl): New method.
3124         (getToolkit): Only return value from peer if not null.
3125         (isDisplayable): Check with parent.
3126         (isShowing): No parent implies not showing.
3127         (getForeground): Check parent property if local is null.
3128         (getBackground): Likewise.
3129         (getFont): Likewise.
3130         (setForeground): Inform peer.
3131         (setBackground): Likewise
3132         (setLocale): Invalidate component.
3133         (getColorModel): Implemented.
3134         (setLocation): Invalidate, or ignore if no change.
3135         (setSize): Invalidate, or ignore if no change.
3136         (setBounds): Invalidate, or ignore if no change.
3137         (isOpaque): By default, heavyweight implies opaque.
3138         (isLightweight): Implemented.
3139         (getMaximumSize): Implemented.
3140         (doLayout): Implemented, NOP.
3141         (validate): Implemented, NOP.
3142         (invalidate): Only propagate to parent if parent was valid.
3143         (getGraphics): Implemented.
3144         (getFontMetrics): Implemented.
3145         (update): Implemented.
3146         (paintAll): Implemented.
3147         (repaint): Implemented all repaint methods.
3148         (print): Implemented.
3149         (printAll): Implemented.
3150         (createImage): Implemented.
3151         (dispatchEvent): Give the peer a chance to handle the event.
3152         (dispatchEventImpl): Dispatch paint events.
3153         (enableEvents): Lightweights enable events on parent component.
3154         (coalesceEvents): Coalesce paint events, and select event type
3155         using a switch.
3156         (coalescePaintEvents): New method.
3157         (processEvent): Fix unfortunate ordering of statements, and call
3158         correct method for MOUSE_CLICKED.
3159         (processPaintEvent): New method.
3160         (addNotify): Allow container to notify children before event
3161         mask is set in peer.
3162         (addNotifyContainerChildren): New method.
3163         (removeNotify): Visibility should not change on removeNotify.
3164         (paramString): Implemented.
3165         (list): Implemented two of the list methods.
3166         * Container (myInsets): Removed, insets are managed by peer.
3167         (getInsets): Query peer.
3168         (addImpl): Fix reparenting, enable events for lightweights,
3169         initialize component array.
3170         (validate): Call doLayout in validateTree() instead.
3171         (validateTree): Do nothing if already valid. Call beginValidate(),
3172         endValidate() on peer. Call validateTree() instead of validate()
3173         for children that are containers. Mark valid after validation of
3174         children.
3175         (setFont): Partial implementation.
3176         (paint): Implemented.
3177         (visitChildren): New method.
3178         (visitChild): New method.
3179         (update): Implemented.
3180         (print): Implemented.
3181         (paintComponents): Implemented.
3182         (printComponents): Consider translation and clipping.
3183         (getComponentAt): Ignore invisible children. Return this if no
3184         child match.
3185         (addNotify): Call super.
3186         (addNotifyContainerChildren): New method.
3187         (paramString): Implemented.
3188         (list): Implemented.
3189         * java/awt/EventQueue (invokeAndWait): Get system event queue the
3190         right way.
3191         (invokeLater): Likewise.
3192         (isDispatchThread): Likewise.
3193         * java/awt/FontMetrics (getLeading): Formula change.
3194         (getDescent): Consider leading also.
3195         (getMaxAscent): Default to getAscent().
3196         (getMaxDescent): Default to getDescent.
3197         (getMaxAdvance): Return value signifying unknown.
3198         (charWidth): Both methods implemented.
3199         (charsWidth): Implemented.
3200         (bytesWidth): Implemented.
3201         (getWidths): Implemented.
3202         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3203         state): New fields.
3204         (Frame): Rearragend constuctor chaining to disallow null being
3205         passed as a graphics configuration.
3206         (getTitle): Return empty string if null.
3207         (dispose): Removed.
3208         (getIconImage): New method.
3209         (setIconImage): New method.
3210         (finalize): New method.
3211         (setMenuBar): Notify peer.
3212         (isResizable): New method.
3213         (setResizable): New method.
3214         (getState): New method.
3215         (getFont): Removed.
3216         (remove): Implemented.
3217         (removeNotify): New method.
3218         (getFrames): New method.
3219         * java/awt/Graphics.java: Implemented body of class.
3220         * java/awt/Graphics2D.java: New file.
3221         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3222         * java/awt/Image.java: Implemented body of class.
3223         * java/awt/Panel.java (Panel): Call correct super constructor.
3224         (addNotify): Implemented.
3225         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3226         * java/awt/RenderingHints.java: New file.
3227         * java/awt/Toolkit.java (createComponent): Implemented.
3228         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3229         * java/awt/Window.java (Window): Two new constructors. Reordered
3230         constructor chaining.
3231         (getGraphicsConfigurationImpl): New method.
3232         (finalize): Call super.
3233         (addNotify): Call super.
3234         (pack): Do layout stuff.
3235         (show): Ensure that peer exists and that component is valid.
3236         (dispose): Dispose owned children.
3237         (getOwner): Simplify code, casting null pointers is valid.
3238         (getGraphicsConfiguration): Ask peer if local value is null.
3239         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3240         getcmd().
3241         * java/awt/image/BufferedImage.java: New file.
3242         * java/awt/image/RasterOp.java: New file.
3243         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3244         More powerfull replacement for getColorModel().
3245         (getColorModel) Removed.
3246         (setEventMask) New method.
3247         * Makefile.am: Added new files.
3248         * Makefile.in: Rebuilt.
3249
3250 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3251
3252         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3253         (finit_leg_name): New global.
3254         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3255         `$finit$'. This is a backward compatibility hack.
3256         (java::lang::Class::_getMethods): Likewise.
3257
3258 2000-08-15  Andrew Haley  <aph@cygnus.com>
3259
3260         * include/jvm.h (_Jv_HashCode): New hash code.
3261
3262 2000-08-15  Tom Tromey  <tromey@cygnus.com>
3263
3264         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3265
3266 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
3267
3268         * THANKS: More thanks.
3269
3270 2000-08-10  Tom Tromey  <tromey@cygnus.com>
3271
3272         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3273         when errno not set.
3274         (connect): Likewise.
3275         (accept): Likewise.
3276         (getOption): Likewise.
3277         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3278         case when errno not set.
3279         (peek): Likewise.
3280         (send): Likewise.
3281         (receive): Likewise.
3282         (mcastGrp): Likewise.
3283         (setOption): Likewise.
3284         (getOption): Likewise.
3285
3286 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
3287             John Stracke <francis@ecal.com>
3288
3289         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3290         (connect): Don't falsely claim HTTP/1.1 compliance. Call
3291         getHttpHeaders().
3292         (disconnect): Don't unset connected flag.
3293         (getHeaderField (String)): Call connect() if not connected.
3294         (getHeaderField (int)): Ditto.
3295         (getHeaderFieldKey): Ditto.
3296         (getHttpHeaders): Don't call connect().
3297         * java/net/HttpURLConnection.java (instanceFollowRedirects,
3298         gotResponseVals): New fields.
3299         (getResponseCode): Call getResponseVals() conditionally.
3300         (getResponseMessage): Ditto.
3301         (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3302
3303 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
3304
3305         * Makefile.am: Move beans and applet classes to awt_java_source_files.
3306         * Makefile.in: Rebuilt.
3307         * java/awt/Color.java (getTransparency): New method.
3308         * java/awt/Component.java: Various updates.
3309         * java/awt/Container.java (removeNotify): Call super.removeNotify()
3310         after dealing with children.
3311         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3312         * java/awt/Window.java: Various new methods and updates.
3313         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3314         to int for switch.
3315         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3316         * java/awt/event/WindowEvent.java (paramString): Ditto.
3317         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3318         try/catch block.
3319         * java/awt/geom/Point2D.java (clone): Ditto.
3320         * java/awt/geom/RectangularShape.java (clone): Ditto.
3321         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3322         isAlphaPremultiplied): Make package-private, not private.
3323
3324 2000-08-08  Tom Tromey  <tromey@cygnus.com>
3325
3326         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3327         surrogate characters.
3328         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3329         true.
3330         (write): Correct handling of surrogate characters.
3331
3332 2000-08-07  Tom Tromey  <tromey@cygnus.com>
3333
3334         * java/lang/reflect/Method.java (hashCode): Use getName().
3335         (toString): Likewise.
3336         * java/lang/reflect/natMethod.cc (getType): Initialize
3337         exception_types.
3338
3339         * java/lang/reflect/Method.java (toString): Use Class.getName, not
3340         Class.toString.
3341         * java/lang/reflect/Field.java (toString): Correct formatting.
3342         From Corey Minyard.
3343
3344         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3345         rewrote.
3346         (receive): Streamlined.
3347
3348 2000-08-05  Tom Tromey  <tromey@cygnus.com>
3349
3350         * java/io/PrintWriter.java: Merged comments from Classpath.
3351         (printlnUnsynchronized): Removed.
3352         (println()): Print the separator.
3353         (println): Call println(), not printlnUnsynchronized.
3354         (out): Now protected, to match spec.
3355
3356 2000-08-04  Tom Tromey  <tromey@cygnus.com>
3357
3358         * java/io/StreamTokenizer.java (TT_NONE): Now private.
3359         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
3360         For PR java.io/301.
3361
3362 2000-08-03  Warren Levy  <warrenl@cygnus.com>
3363
3364         * java/io/ObjectInputStream.java (readFields): Turn off
3365         readDataFromBlock while reading via GetField.
3366         (GetField$1.get(String, Object)): Pass Class of default value to
3367         getField.
3368         (getField): Allow for null default values.
3369
3370         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3371         (PutField$1.put): Fixed calls of checkType in most of the put
3372         methods to pass the correct parameter.
3373         (PutField$1.put(String, Object)): Allow for null value arg.
3374         (PutField$1.write): Turn off writeDataAsBlocks while writing via
3375         PutField.
3376
3377         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3378         typo in spec'ed field name.
3379         (getSerialPersistentFields): Changed spelling of method to match
3380         the correct spelling of the spec'ed field name.
3381
3382 2000-08-03  Tom Tromey  <tromey@cygnus.com>
3383
3384         * Makefile.in: Rebuilt.
3385         * Makefile.am (awt_java_source_files): Added new files.
3386
3387 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
3388
3389         * Makefile.am: Add new AWT stubs.
3390         * java/awt/Canvas.java: New placeholder class.
3391         * java/awt/Checkbox.java: Ditto.
3392         * java/awt/CheckboxMenuItem.java: Ditto.
3393         * java/awt/Choice.java: Ditto.
3394         * java/awt/Dialog.java: Ditto.
3395         * java/awt/FileDialog.java: Ditto.
3396         * java/awt/List.java: Ditto.
3397         * java/awt/ScrollPane.java: Ditto.
3398         * java/awt/TextField.java: Ditto.
3399         * java/awt/datatransfer/Clipboard.java: Ditto.
3400         * java/awt/Component.java (treeLock): Now a static String. Add comment.
3401         * java/awt/MenuItem.java (MenuItem): Add default constructor.
3402         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3403         Some commented out. Partially implemented.
3404         * java/awt/natToolkit.cc: Removed file.
3405
3406 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
3407
3408         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3409         Fixes "make -j" builds.
3410         * Makefile.in: Rebuild.
3411
3412 2000-08-02  Tom Tromey  <tromey@cygnus.com>
3413
3414         * Makefile.in: Rebuilt.
3415         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3416         * java/net/natPlainSocketImpl.cc: Include posix.h.
3417         (accept): Use _Jv_select.
3418         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3419         (receive): Use _Jv_select.
3420         * java/io/natFileDescriptorPosix.cc: Include posix.h.
3421         (available): Use _Jv_select.
3422         * java/lang/natSystem.cc: Include posix.h.
3423         (currentTimeMillis): Use _Jv_gettimeofday.
3424         * include/posix.h: New file.
3425         * posix.cc: New file.
3426
3427         * scripts/encodings.pl: New file.
3428         * Makefile.in: Rebuilt.
3429         * Makefile.am (convert_source_files): Added IOConverter.java.
3430         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3431         IOConverter.
3432         (getDefaultDecodingClass): Canonicalize default encoding name.
3433         (getEncoder): Likewise.
3434         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3435         IOConverter.
3436         (getDefaultDecodingClass): Canonicalize default encoding name.
3437         (getDecoder): Likewise.
3438         * gnu/gcj/convert/IOConverter.java: New file.
3439
3440 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
3441
3442         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3443         to match C declaration in ffi.h.
3444         * Makefile.am: Add java/awt/Button.java.
3445         * Makefile.in: Rebuilt.
3446
3447 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3448
3449         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3450         cast of the second argument to `ffi_raw_call' changed to match
3451         prototype.
3452
3453 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3454
3455         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3456         argument to `ffi_raw_call' changed to match prototype.
3457
3458 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
3459
3460         * java/awt/Component.java (toString): Implemented.
3461         * java/awt/Container.java (addImpl): Remove FIXME. Only call
3462         dispatchEvent() to dispatch the event.
3463         (removeImpl): Ditto.
3464
3465 2000-07-30  Anthony Green  <green@redhat.com>
3466
3467         * java/awt/Component.java: Add treeLock object.
3468         (getTreeLock): Implement.
3469         (isShowing): Implement.
3470
3471 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3472
3473         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3474
3475         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3476
3477         * java/awt/Window.java (addNotify): Wrote.
3478         (addWindowListener): Wrote.
3479         (getLocale): Wrote.
3480         (getWarningString): Wrote.
3481         (processEvent): Wrote.
3482         (processWindowEvent): Wrote.
3483         (removeWindowListener): Wrote.
3484         (show): Call validate(), setVisible().
3485         (toBack): Wrote.
3486         (toFront): Wrote.
3487
3488         * java/awt/Toolkit.java (createWindow): Declare.
3489
3490         * java/awt/Frame.java (addNotify): Use getToolkit to find
3491         toolkit.
3492
3493         * java/awt/Component.java (invalidate): Wrote.
3494         (isValid): Wrote.
3495         (getToolkit): Wrote.
3496
3497         * java/awt/Container.java (addContainerListener): Removed
3498         unnecessary cast.
3499         (removeContainerListener): Likewise.
3500         (addImpl): Wrote.
3501         (add(Component)): Use it.
3502         (add(String,Component)): Likewise.
3503         (add(Component,int)): Likewise.
3504         (add(Component,Object)): Likewise.
3505         (add(Component,Object,int)): Likewise.
3506         (doLayout): Wrote.
3507         (getAlignmentX): Wrote.
3508         (getAlignmentY): Wrote.
3509         (getComponentAt): Wrote.
3510         (getMaximumSize): Wrote.
3511         (invalidate): Wrote.
3512         (list(PrintStream,int)): Wrote.
3513         (list(PrintWriter,int)): Wrote.
3514         (getMinimumSize): Wrote.
3515         (getPreferredSize): Wrote.
3516         (printComponents): Wrote.
3517         (processContainerEvent): Look at containerListener, not
3518         componentListener.
3519         (remove): Added event processing and peer destruction.
3520         (removeAll): Use remove.
3521         (removeNotify): Wrote.
3522         (validate): Wrote.
3523         (validateTree): Wrote.
3524
3525         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3526         * java/awt/Label.java (addNotify): Do nothing if peer exists.
3527         * java/awt/Container.java (addNotify): Don't create Container
3528         peer.
3529         * java/awt/Button.java (addNotify): Do nothing if peer exists.
3530
3531 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3532
3533         * java/awt/Container.java (remove(int)): Wrote.
3534         (remove(Component)): Wrote.
3535         (add(Component)): Wrote.
3536         (add(Component,int)): Wrote.
3537         (removeAll): Wrote.
3538         (addNotify): Set our own peer.
3539         * java/awt/Scrollbar.java (listeners): Changed type.
3540         (Scrollbar): Don't initialize listeners.
3541         (addNotify): Wrote.
3542         (setValue): Call setValues.
3543         (setMinimum): Likewise.
3544         (setMaxPriority): Likewise.
3545         (setVisibleAmount): Likewise.
3546         (setValues): Wrote.
3547         (setUnitIncrement): Forward to peer.
3548         (setLineIncrement): Call setUnitIncrement.
3549         (setPageIncrement): Call setBlockIncrement.
3550         (setBlockIncrement): Forward to peer.
3551         (addAdjustmentListener): Rewrote.
3552         (removeAdjustmentListener): Rewrote.
3553         (processAdjustmentEvent): Rewrote.
3554         (paramString): Wrote.
3555         * Makefile.in: Rebuilt.
3556         * Makefile.am (awt_java_source_files): Added Button.java.
3557         * java/awt/Button.java: New file.
3558         * java/awt/Toolkit.java (createLabel): Declare.
3559         (createButton): Likewise.
3560         (createScrollbar): Likewise.
3561         (createContainer): Likewise.
3562         * java/awt/Label.java (addNotify): Wrote.
3563         (setAlignment): Call setAlignment in the peer.
3564         (setText): Call setText in the peer.
3565
3566 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3567
3568         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3569         NotSerializableException with just the class name.
3570
3571 2000-07-26  Andrew Haley  <aph@cygnus.com>
3572
3573         * interpret.cc (continue1): Insert missing break into switch.
3574
3575 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3576
3577         * java/io/ObjectStreamException.java: Made constructors protected.
3578
3579 2000-07-27  Tom Tromey  <tromey@cygnus.com>
3580
3581         * java/io/OutputStreamWriter.java (close): Only flush if not
3582         closed.
3583
3584 2000-07-27  Warren Levy  <warrenl@cygnus.com>
3585
3586         * mauve-libgcj: Activated serialization tests.
3587         * gcj/field.h (getModifiers): Mask off unknown flags.
3588         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3589         spurious bits don't cause discrepancies.
3590         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3591         * java/io/ObjectStreamClass.java: Fixed typos in comments.
3592         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3593         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3594         * java/lang/Throwable.java (serialVersionUID): New field.
3595         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3596         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3597         unknown flags.
3598         * java/lang/reflect/natMethod.cc: Ditto.
3599         * java/security/Key.java (serialVersionUID): Removed field for now.
3600         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3601         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3602
3603 2000-07-22  Tom Tromey  <tromey@cygnus.com>
3604
3605         * java/awt/geom/RectangularShape.java (getPathIterator):
3606         Wrote.
3607
3608 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3609
3610         * libjava/java/awt/image/ColorModel.java: New file, replaces the
3611         stub libjava/java/awt/ColorModel.java which was located in the
3612         wrong package.
3613         * libjava/java/awt/image/ComponentColorModel.java: New file.
3614         * libjava/java/awt/image/ComponentSampleModel.java: New file.
3615         * libjava/java/awt/image/DataBuffer.java: New file.
3616         * libjava/java/awt/image/DataBufferByte.java: New file.
3617         * libjava/java/awt/image/DataBufferInt.java: New file.
3618         * libjava/java/awt/image/DataBufferUShort.java: New file.
3619         * libjava/java/awt/image/DirectColorModel.java: New file.
3620         * libjava/java/awt/image/PackedColorModel.java: New file.
3621         * libjava/java/awt/image/Raster.java: New file.
3622         * libjava/java/awt/image/SampleModel.java: New file.
3623         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3624         file.
3625         * libjava/java/awt/image/IndexColorModel.java: New file.
3626         * libjava/java/awt/image/ImageConsumer.java: Removed import of
3627         java.awt.ColorModel stub.
3628
3629         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3630         * gnu/gcj/util/Buffers.java: New file, utility class.
3631
3632         * libjava/Makefile.am: Updated to include new files.
3633         * libjava/Makefile.in: Rebuilt.
3634
3635 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
3636
3637         * java/io/StreamTokenizer.java: Merged with classpath.
3638
3639 2000-07-20  Tom Tromey  <tromey@cygnus.com>
3640
3641         * Makefile.in: Rebuilt.
3642         * Makefile.am (awt_java_source_files): Updated for new files.
3643         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3644         * java/awt/Label.java: New file.
3645         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3646         (createIntersection, createUnion, getBounds2D): New methods.
3647         * java/awt/Scrollbar.java: New file.
3648         * java/awt/Shape.java: Updated to 1.2.
3649         * java/awt/geom/AffineTransform.java: New file.
3650         * java/awt/geom/Ellipse2D.java: New file.
3651         * java/awt/geom/NoninvertibleTransformException.java: New file.
3652         * java/awt/geom/PathIterator.java: New file.
3653         * java/awt/geom/Rectangle2D.java: New file.
3654         * java/awt/geom/RectangularShape.java: New file.
3655         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3656         * java/awt/geom/IllegalPathStateException.java: New file.
3657
3658         * scripts/showval.java: New file.
3659
3660         * scripts/classes.pl (scan): Print inner classes properly.
3661         * gcj/javaprims.h: Updated class list.
3662
3663         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3664         initialize String fields for interpreted classes.  Fixes bug
3665         reported by Hans Boehm.
3666
3667         * java/io/File.java (getParentFile): New method, from Classpath
3668         via Oskar Liljeblad.
3669
3670         * java/util/Vector.java (remove(Object)): Implemented.
3671
3672 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
3673
3674         * java/lang/natThrowable.cc (fillInStackTrace): Check for
3675         zero return from backtrace().
3676
3677 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
3678
3679         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3680         synchronized block.
3681         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3682         before calling notifyAll().
3683
3684 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
3685
3686         Add missing files from last check-in:
3687         * java/awt/image/ImageConsumer.java: New file.
3688         * java/awt/image/ImageProducer.java: New file.
3689         * java/awt/image/ImageObserver.java: New file.
3690
3691 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3692
3693         Merged implementation of java.applet from classpath:
3694         * java/applet/Applet.java: New file.
3695         * java/applet/AppletContext.java: New file.
3696         * java/applet/AppletStub.java: New file.
3697         * java/applet/AudioClip.java: New file.
3698
3699         * Makefile.am: Added new java.applet classes.
3700         * Makefile.in: Rebuilt.
3701
3702 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3703
3704         AWT Stuff:
3705         * java/util/ResourceBundle.java (getLocale): stub.
3706         * Makefile.am: Added new AWT classes.
3707         * Makefile.in: Rebuilt.
3708         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3709         constructors. Fix toString() and paramString().
3710         * java/awt/AWTEventMulticaster.java: New class. Implemented.
3711         * java/awt/CheckboxGroup.java: New class.
3712         * java/awt/ColorModel.java: New class.
3713         * java/awt/Component.java: Added stubs for most methods. Implemented
3714         event dispatch.
3715         * java/awt/Container.java: ditto.
3716         * java/awt/ComponentOrientation.java: New class. Partly implemented.
3717         * java/awt/Cursor.java: ditto.
3718         * java/awt/Event.java: Fix paramString().
3719         * java/awt/EventQueue.java: New class. Implemented.
3720         * java/awt/Font.java: Added additional stub methods. Implemented
3721         toString().
3722         * java/awt/FontMetrics.java: New class. Stubbed.
3723         * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3724         Java2D parts.
3725         * java/awt/Insets.java: New class. Implemented.
3726         * java/awt/Menu.java: Add new methods. Partially implemented.
3727         * java/awt/MenuItem.java: Add new methods and fields. Partially
3728         implemented.
3729         * java/awt/MenuShortcut.java: New class. Implemented.
3730         * java/awt/Panel.java: New class. Placeholder.
3731         * java/awt/PopupMenu.java: New class. Stubbed.
3732         * java/awt/Rectangle.java: New class. Implemented.
3733         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3734         * java/awt/event/ActionEvent.java: Implement paramString().
3735         * java/awt/event/AdjustmentEvent.java: Implement paramString().
3736         * java/awt/event/ComponentEvent.java: Implement paramString().
3737         * java/awt/event/ContainerEvent.java: Implement paramString().
3738         * java/awt/event/FocusEvent.java: Implement paramString().
3739         * java/awt/event/HierarchyBoundsAdapter.java: New class.
3740         * java/awt/event/HierarchyBoundsListener.java: New class.
3741         * java/awt/event/HierarchyEvent.java: New class.
3742         * java/awt/event/HierarchyListener.java: New class.
3743         * java/awt/event/InputMethodEvent.java: Implement paramString().
3744         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3745         exception if !catchExceptions.
3746         * java/awt/event/ItemEvent.java: Implement paramString().
3747         * java/awt/event/KeyEvent.java: Implement paramString().
3748         * java/awt/event/MouseEvent.java: Implement paramString().
3749         * java/awt/event/PaintEvent.java: Implement paramString().
3750         * java/awt/event/TextEvent.java: Implement paramString().
3751         * java/awt/event/WindowEvent.java: Implement paramString().
3752
3753         AWT Peer interfaces:
3754         * java/awt/peer/ButtonPeer.java: New file.
3755         * java/awt/peer/ListPeer.java: New file.
3756         * java/awt/peer/CanvasPeer.java: New file.
3757         * java/awt/peer/MenuBarPeer.java: New file.
3758         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3759         * java/awt/peer/MenuComponentPeer.java: New file.
3760         * java/awt/peer/CheckboxPeer.java: New file.
3761         * java/awt/peer/MenuItemPeer.java: New file.
3762         * java/awt/peer/ChoicePeer.java: New file.
3763         * java/awt/peer/MenuPeer.java: New file.
3764         * java/awt/peer/ComponentPeer.java: Implemented.
3765         * java/awt/peer/PanelPeer.java: New file.
3766         * java/awt/peer/ContainerPeer.java: Implemented.
3767         * java/awt/peer/PopupMenuPeer.java: New file.
3768         * java/awt/peer/DialogPeer.java: New file.
3769         * java/awt/peer/ScrollPanePeer.java: New file.
3770         * java/awt/peer/FileDialogPeer.java: New file.
3771         * java/awt/peer/ScrollbarPeer.java: New file.
3772         * java/awt/peer/FontPeer.java: New file.
3773         * java/awt/peer/TextAreaPeer.java: New file.
3774         * java/awt/peer/FramePeer.java: Implemented.
3775         * java/awt/peer/TextComponentPeer.java: New file.
3776         * java/awt/peer/LabelPeer.java: New file.
3777         * java/awt/peer/TextFieldPeer.java: New file.
3778         * java/awt/peer/LightweightPeer.java: New file.
3779         * java/awt/peer/WindowPeer.java: Implemented.
3780
3781 2000-07-06  Tom Tromey  <tromey@cygnus.com>
3782
3783         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3784         Initialize static final String fields.
3785
3786 2000-07-03  Tom Tromey  <tromey@cygnus.com>
3787
3788         * java/io/PrintWriter.java (print): Call write(String), not
3789         print(String).  See PR libgcj/277.
3790         (print(String)): Use write, not out.write.
3791
3792 2000-06-30  Tom Tromey  <tromey@cygnus.com>
3793
3794         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
3795
3796 2000-06-27  Andrew Haley  <aph@cygnus.com>
3797
3798        * java/io/File.java (createTempFile): Close the FileDescriptor
3799        used to create a temp file.  Fixes some of PR 203.
3800        * java/io/natFileDescriptorPosix.cc (open): Call garbage
3801        collection if we run out of file handles.
3802
3803 2000-06-28  Warren Levy  <warrenl@cygnus.com>
3804
3805         * gnu/java/security/provider/Gnu.java: New file.
3806         * gnu/java/security/provider/SHA.java: New file.
3807         * gnu/java/security/provider/SHA1PRNG.java: New file.
3808         * Makefile.am: Added the above files.
3809         * Makefile.in: Rebuilt.
3810
3811         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3812
3813 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
3814
3815         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3816         (destroyed_flag): Removed.
3817         (isDestroyed, removeGroup, removeThread): Test for parent == null.
3818         (activeCount): Added spec note.
3819
3820 2000-06-27  Warren Levy  <warrenl@cygnus.com>
3821
3822         * java/security/Principal.java: New file.
3823         * Makefile.am: Added Principal.java.
3824         * Makefile.in: Rebuilt.
3825
3826 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3827
3828         * java/awt/event/MouseEvent.java: Fixed coordinate space
3829         confusion.
3830
3831 2000-06-27  Tom Tromey  <tromey@cygnus.com>
3832
3833         * java/io/PushbackInputStream.java (read): If there are characters
3834         in the buffer, don't also call super.read().
3835         * java/io/PushbackReader.java (read): If there are characters in
3836         the buffer, don't also call super.read().
3837
3838         * java/lang/Double.java (valueOf): Call parseDouble().
3839
3840 2000-06-26  Warren Levy  <warrenl@cygnus.com>
3841
3842         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3843         (newVal): Renamed to newValue.
3844         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3845         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3846         (revokeNow): Renamed to invalidateRefs.
3847         * java/io/OptionalDataException.java: Updated FIXME.
3848         (eof): New placeholder field.
3849         (length); Ditto.
3850         * java/io/WriteAbortedException.java (message): Made transient.
3851         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3852         * java/lang/Throwable.java (stackTrace): Made transient.
3853         * java/net/InetAddress.java: Made Serializable.
3854         * java/security/KeyPair.java: Made Serializable.
3855         * java/security/Provider.java: Replaced with Classpath version that
3856         implements serialization and proper methods.
3857         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3858         (limits): Renamed to choiceLimits.
3859
3860 2000-06-24  Tom Tromey  <tromey@cygnus.com>
3861
3862         * java/lang/natDouble.cc (parseDouble): Renamed from
3863         doubleValueOf.
3864         * java/lang/Double.java (parseDouble): Renamed from
3865         doubleValueOf.  Now public.
3866
3867 2000-06-23  Andrew Haley  <aph@cygnus.com>
3868
3869         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3870         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3871
3872 2000-06-23  Tom Tromey  <tromey@cygnus.com>
3873
3874         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3875         * java/lang/natDouble.cc: Always include <alloca.h>.
3876         Fix for PR libgcj/267.
3877
3878 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
3879
3880         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3881         comply with classpath VM spec.
3882         (add(Group)): Rename to addGroup().
3883         * java/lang/Thread.java (Thread): Use addThread().
3884         * java/lang/natThread.cc (finish_): Use removeThread().
3885
3886 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
3887
3888         * java/lang/ThreadGroup.java: Merged with classpath.
3889         * prims.cc (_Jv_RunMain): Don't use `main_group'.
3890         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3891         argument.
3892         * java/lang/Thread.java (Thread): Bootstrap initial thread from
3893         ThreadGroup.root if Thread.currentThread is null. Honour the
3894         ThreadGroup's max priority setting.
3895
3896 2000-06-18  Tom Tromey  <tromey@cygnus.com>
3897
3898         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
3899         returned class.  For PR gcj/260.
3900
3901 2000-06-16  Tom Tromey  <tromey@cygnus.com>
3902
3903         Fix for PR libgcj/261:
3904         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3905         argument.
3906         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3907         argument.  (This is a patch from long ago that somehow went
3908         missing.)
3909
3910 2000-06-15  Tom Tromey  <tromey@cygnus.com>
3911
3912         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3913         (read): Use it.
3914         (write): Likewise.
3915
3916 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
3917
3918         Fix for PR java.lang/258:
3919         * prims.cc (_Jv_PrimClass): Set state of primitive class to
3920         JV_STATE_DONE, to prevent accidental initialization.
3921         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3922         _Jv_InterfaceAssignableFrom if target is an interface and source is an
3923         interface or an abstract class. Remove redundant initializeClass calls.
3924         Remove duplicate if_idt test.
3925         (_Jv_InterfaceAssignableFrom): New function.
3926         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3927
3928 2000-05-31  Tom Tromey  <tromey@cygnus.com>
3929
3930         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3931         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3932         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3933         (NUM_OBJECT_METHODS): New define.
3934         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3935         `array_vtable' parameter.  Added assertion.
3936         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3937         parameter.
3938
3939 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
3940
3941         * gcj/cni.h: Include <string.h>.
3942         * defineclass.cc: Include <alloca.h>.
3943         * interpret.cc: Ditto.
3944         * gij.cc: Include <stdlib.h>.
3945
3946 2000-05-30  Tom Tromey  <tromey@cygnus.com>
3947
3948         * include/name-finder.h: Include <sys/wait.h>.
3949         (_Jv_name_finder::pid): Now of type `pid_t'.
3950         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3951         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3952         `proc.waitFor()'.
3953
3954 2000-05-24  Warren Levy  <warrenl@cygnus.com>
3955
3956         * java/io/ObjectOutputStream.java (writeObject): Use component type
3957         when writing arrays.
3958         Fixed typo.
3959
3960 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3961
3962         Fix for PR libgcj/226:
3963         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3964         since this is an installed header.
3965
3966         Fix for PR libgcj/228:
3967         * java/util/zip/ZipFile (getInputStream): Create inflater with
3968         nowrapper option.
3969
3970         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3971         with DataFormatException.
3972
3973 2000-05-20  Tom Tromey  <tromey@cygnus.com>
3974
3975         * Makefile.in: Rebuilt.
3976         * Makefile.am (hack1): Removed.
3977         (awto_files): Likewise.
3978         (libgcjawt_la_SOURCES): Likewise.
3979         (EXTRA_libgcjawt_la_SOURCES): Likewise.
3980         (libgcjawt_la_DEPENDENCIES): Likewise.
3981         (libgcjawt_la_LIBADD): Likewise.
3982         (libgcjawt_la_LDFLAGS): Likewise.
3983         (libgcjawt_la_LINK): Likewise.
3984         ($(awt_java_source_files:.java=.class)): Likewise.
3985         (libgcj.zip): Don't depend on AWT files.
3986         (MOSTLYCLEANFILES): Don't include AWT files.
3987         ($(awto_files)): Removed.
3988         (nat_headers): Removed AWT files.
3989         (cond_awt_java_source_files): Removed.
3990         (ordinary_java_source_files): Added awt_java_source_files.
3991         * libgcj.spec.in (*lib): Removed -lgcjawt.
3992         * configure: Rebuilt.
3993         * configure.in: Removed --enable-java-awt option.
3994
3995 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3996
3997         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3998         (ZipEntry): Copy the `name' field.
3999         (clone): Implement JDK1.2 method.
4000         (setCompressedSize): ditto.
4001         (hashCode): ditto.
4002
4003 2000-05-19  Tom Tromey  <tromey@cygnus.com>
4004
4005         * java/io/BufferedWriter.java: Merged with Classpath.
4006         * java/io/BufferedOutputStream.java: Merged with Classpath.
4007
4008 2000-05-16  Andrew Haley  <aph@cygnus.com>
4009
4010         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4011         build_ia64_frame_state.
4012         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4013         defintion in gcc.
4014
4015 2000-05-15  Warren Levy  <warrenl@cygnus.com>
4016
4017         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4018         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4019         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4020         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4021         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4022         * gnu/gcj/beans/editors/FontEditor.java: Removed.
4023         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4024         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4025         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4026         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4027         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4028         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4029         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4030         * gnu/gcj/beans/editors/StringEditor.java: Removed.
4031         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4032         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4033         * gnu/gcj/io/NullOutputStream.java: Removed.
4034         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4035         * gnu/gcj/lang/ArrayHelper.java: Removed.
4036         * gnu/gcj/lang/ClassHelper.java: Removed.
4037         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4038
4039         * gnu/java/beans/BeanInfoEmbryo.java: New file.
4040         * gnu/java/beans/EmptyBeanInfo.java: New file.
4041         * gnu/java/beans/ExplicitBeanInfo.java: New file.
4042         * gnu/java/beans/IntrospectionIncubator.java: New file.
4043         * gnu/java/beans/editors/ColorEditor.java: New file.
4044         * gnu/java/beans/editors/FontEditor.java: New file.
4045         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4046         * gnu/java/beans/editors/NativeByteEditor.java: New file.
4047         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4048         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4049         * gnu/java/beans/editors/NativeIntEditor.java: New file.
4050         * gnu/java/beans/editors/NativeLongEditor.java: New file.
4051         * gnu/java/beans/editors/NativeShortEditor.java: New file.
4052         * gnu/java/beans/editors/StringEditor.java: New file.
4053         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4054         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4055         * gnu/java/io/NullOutputStream.java: New file.
4056         * gnu/java/io/ObjectIdentityWrapper.java: New file.
4057         * gnu/java/lang/ArrayHelper.java: New file.
4058         * gnu/java/lang/ClassHelper.java: New file.
4059         * gnu/java/lang/reflect/TypeSignature.java: New file.
4060
4061         * Makefile.am: Updated for moving Classpath files from gnu/gcj
4062         namespace back to the original Classpath gnu/java namespace.
4063         * Makefile.in: Rebuilt.
4064
4065         * java/beans/Beans.java: Namespace change.
4066         * java/beans/EventSetDescriptor.java: Namespace change.
4067         * java/beans/Introspector.java: Namespace change.
4068         * java/beans/PropertyEditorManager.java: Namespace change.
4069         * java/io/ObjectInputStream.java: Namespace change.
4070         * java/io/ObjectOutputStream.java: Namespace change.
4071         * java/io/ObjectStreamClass.java: Namespace change.
4072         * java/io/ObjectStreamField.java: Namespace change.
4073
4074 2000-04-21  Warren Levy  <warrenl@cygnus.com>
4075
4076         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4077         now that compiler patch is available.
4078         Removed unneeded System.loadLibrary.
4079         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4080         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4081
4082 2000-04-19  Andrew Haley  <aph@cygnus.com>
4083
4084         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4085         and target classes have been initialized.
4086
4087 2000-04-19  Andrew Haley  <aph@cygnus.com>
4088
4089         * java/lang/String.java: implement Serializable, Comparable.
4090         (compareTo (Object)): New method.
4091
4092 2000-04-19  Warren Levy  <warrenl@cygnus.com>
4093
4094         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4095         instead of getField to retrieve non-public field.
4096         (getSerialPersistantFields): Ditto.
4097
4098 2000-04-18  Warren Levy  <warrenl@cygnus.com>
4099
4100         * mauve-libgcj: Turned off object serialization tests temporarily
4101         due to compiler error.
4102
4103 2000-04-17  Warren Levy  <warrenl@cygnus.com>
4104
4105         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4106         to avoid build problem.
4107         (DEBUGln): Ditto.
4108         * mauve-libgcj: Turned on object serialization tests.
4109
4110 2000-04-17  Tom Tromey  <tromey@cygnus.com>
4111
4112         * libgcj.spec.in (*lib): Added -lgcjawt.
4113
4114 2000-04-17  Andrew Haley  <aph@cygnus.com>
4115
4116         * Makefile.am: Add new files:
4117         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4118         gnu/gcj/io/shs.cc.
4119         * Makefile.in: Rebuilt.
4120
4121         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4122         interface that has no implementations.
4123         Check for an attempt to assign an abstract class to an interface.
4124
4125         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4126         if we fail to find MessageDigest.getInstance ("SHA").
4127
4128         * gnu/gcj/io/SimpleSHSStream.java: New file.
4129         * gnu/gcj/io/natSimpleSHSStream.java: New file.
4130         * gnu/gcj/io/shs.cc: New file.
4131         * gnu/gcj/io/shs.h: new file.
4132
4133         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4134         serializable.
4135
4136         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4137         punctuation from the classname of an array element.
4138
4139         * gcj/javaprims.h: Add SimpleDigestStream.
4140
4141 2000-04-17  Andrew Haley  <aph@cygnus.com>
4142
4143         * java/lang/natClass.cc (getPrivateField): Make recursive calls
4144         to getPrivateField for superclasses.
4145
4146 2000-04-14  Andrew Haley  <aph@cygnus.com>
4147
4148         * Makefile.am: Add new files:
4149         java/io/ObjectOutputStream$PutField.h,
4150         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4151         java/io/natObjectOutputStream.cc
4152         * Makefile.in: Rebuilt.
4153         * gcj/Makefile.in: Rebuilt.
4154         * include/Makefile.in: Rebuilt.
4155         * java/lang/Class.h (getPrivateField): New method.
4156         (getPrivateMethod): Ditto.
4157         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4158         and java::io::ObjectStreamClass our friends.
4159         * java/lang/natClass.cc (getPrivateField): New method.
4160         (getPrivateMethod): Ditto.
4161         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4162         * gcj/javaprims.h: Add serialization classes.
4163         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4164         (setByteField): Ditto.
4165         (setCharField): Ditto.
4166         (setDoubleField): Ditto.
4167         (setFloatField): Ditto.
4168         (setIntField): Ditto.
4169         (setLongField): Ditto.
4170         (setShortField): Ditto.
4171         (setObjectField): Ditto.
4172         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4173         Java.
4174         (getByteField): Ditto.
4175         (getCharField): Ditto.
4176         (getDoubleField): Ditto.
4177         (getFloatField): Ditto.
4178         (getIntField): Ditto.
4179         (getLongField): Ditto.
4180         (getShortField): Ditto.
4181         (getObjectField): Ditto.
4182         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4183         Java.
4184         (getSerialPersistantFields): Ditto.
4185         (getDefinedSUID): Ditto.
4186         * java/io/natObjectOutputStream.cc: New file.
4187         * java/io/natObjectInputStream.cc: New file.
4188
4189 2000-04-13  Warren Levy  <warrenl@cygnus.com>
4190
4191         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4192         problems.  Revert to previous version to reproduce and when fixed.
4193
4194 2000-04-13  Warren Levy  <warrenl@cygnus.com>
4195
4196         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4197         * gnu/gcj/io/NullOutputStream.java: New file.
4198         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4199         * java/io/BlockDataException.java: New file.
4200         * java/io/Externalizable.java: New file.
4201         * java/io/InvalidClassException.java: New file.
4202         * java/io/InvalidObjectException.java: New file.
4203         * java/io/NotActiveException.java: New file.
4204         * java/io/NotSerializableException.java: New file.
4205         * java/io/ObjectInput.java: New file.
4206         * java/io/ObjectInputStream.java: New file.
4207         * java/io/ObjectInputValidation.java: New file.
4208         * java/io/ObjectOutput.java: New file.
4209         * java/io/ObjectOutputStream.java: New file.
4210         * java/io/ObjectStreamClass.java: New file.
4211         * java/io/ObjectStreamConstants.java: New file.
4212         * java/io/ObjectStreamField.java: New file.
4213         * java/io/Replaceable.java: New file.
4214         * java/io/Resolvable.java: New file.
4215         * java/io/SerializablePermission.java: New file.
4216         * java/io/WriteAbortedException.java: New file.
4217         * java/security/BasicPermission.java: New file.
4218         * java/security/DigestOutputStream.java: New file.
4219         * java/security/Guard.java: New file.
4220         * java/security/Permission.java: New file.
4221         * java/security/PermissionCollection.java: New file.
4222         * Makefile.am: Added above files.
4223         * Makefile.in: Rebuilt.
4224
4225         * java/beans/Beans.java (instantiate): Activated serialization code.
4226         * java/lang/SecurityManager.java (checkPermission): New method.
4227
4228 2000-04-12  Warren Levy  <warrenl@cygnus.com>
4229
4230         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4231         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4232         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4233         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4234         * gnu/gcj/beans/editors/ColorEditor.java: New file.
4235         * gnu/gcj/beans/editors/FontEditor.java: New file.
4236         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4237         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4238         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4239         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4240         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4241         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4242         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4243         * gnu/gcj/beans/editors/StringEditor.java: New file.
4244         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4245         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4246         * gnu/gcj/lang/ArrayHelper.java: New file.
4247         * gnu/gcj/lang/ClassHelper.java: New file.
4248         * java/beans/BeanDescriptor.java: New file.
4249         * java/beans/BeanInfo.java: New file.
4250         * java/beans/Beans.java: New file.
4251         * java/beans/Customizer.java: New file.
4252         * java/beans/DesignMode.java: New file.
4253         * java/beans/EventSetDescriptor.java: New file.
4254         * java/beans/FeatureDescriptor.java: New file.
4255         * java/beans/IndexedPropertyDescriptor.java: New file.
4256         * java/beans/IntrospectionException.java: New file.
4257         * java/beans/Introspector.java: New file.
4258         * java/beans/MethodDescriptor.java: New file.
4259         * java/beans/ParameterDescriptor.java: New file.
4260         * java/beans/PropertyChangeEvent.java: New file.
4261         * java/beans/PropertyChangeListener.java: New file.
4262         * java/beans/PropertyChangeSupport.java: New file.
4263         * java/beans/PropertyDescriptor.java: New file.
4264         * java/beans/PropertyEditor.java: New file.
4265         * java/beans/PropertyEditorManager.java: New file.
4266         * java/beans/PropertyEditorSupport.java: New file.
4267         * java/beans/PropertyVetoException.java: New file.
4268         * java/beans/SimpleBeanInfo.java: New file.
4269         * java/beans/VetoableChangeListener.java: New file.
4270         * java/beans/VetoableChangeSupport.java: New file.
4271         * java/beans/Visibility.java: New file.
4272         * java/beans/beancontext/BeanContext.java: New file.
4273         * java/beans/beancontext/BeanContextChild.java: New file.
4274         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4275         * java/beans/beancontext/BeanContextChildSupport.java: New file.
4276         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4277         * java/beans/beancontext/BeanContextEvent.java: New file.
4278         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4279         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4280         * java/beans/beancontext/BeanContextProxy.java: New file.
4281         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4282         New file.
4283         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4284         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4285         New file.
4286         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4287         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4288         New file.
4289         * java/beans/beancontext/BeanContextServices.java: New file.
4290         * java/beans/beancontext/BeanContextServicesListener.java: New file.
4291         * java/util/AbstractCollection.java: New file.
4292         * java/util/AbstractList.java: New file.
4293         * java/util/Arrays.java: New file.
4294         * Makefile.am: Added above files.
4295         * Makefile.in: Rebuilt.
4296
4297 2000-04-11  Warren Levy  <warrenl@cygnus.com>
4298
4299         * java/awt/AWTError.java: New file.
4300         * java/awt/AWTEvent.java: New file.
4301         * java/awt/AWTException.java: New file.
4302         * java/awt/ActiveEvent.java: New file.
4303         * java/awt/Adjustable.java: New file.
4304         * java/awt/BorderLayout.java: New file.
4305         * java/awt/Color.java: New file.
4306         * java/awt/Component.java: New file.
4307         * java/awt/Container.java: New file.
4308         * java/awt/Dimension.java: New file.
4309         * java/awt/Event.java: New file.
4310         * java/awt/Font.java: New file.
4311         * java/awt/Frame.java: New file.
4312         * java/awt/Graphics.java: New file.
4313         * java/awt/IllegalComponentStateException.java: New file.
4314         * java/awt/Image.java: New file.
4315         * java/awt/ItemSelectable.java: New file.
4316         * java/awt/LayoutManager.java: New file.
4317         * java/awt/LayoutManager2.java: New file.
4318         * java/awt/Menu.java: New file.
4319         * java/awt/MenuBar.java: New file.
4320         * java/awt/MenuComponent.java: New file.
4321         * java/awt/MenuContainer.java: New file.
4322         * java/awt/MenuItem.java: New file.
4323         * java/awt/Paint.java: New file.
4324         * java/awt/PaintContext.java: New file.
4325         * java/awt/Point.java: New file.
4326         * java/awt/Rectangle.java: New file.
4327         * java/awt/Shape.java: New file.
4328         * java/awt/TextArea.java: New file.
4329         * java/awt/TextComponent.java: New file.
4330         * java/awt/Toolkit.java: New file.
4331         * java/awt/Transparency.java: New file.
4332         * java/awt/Window.java: New file.
4333         * java/awt/natToolkit.cc: New file.
4334         * java/awt/event/AWTEventListener.java: New file.
4335         * java/awt/event/ActionEvent.java: New file.
4336         * java/awt/event/ActionListener.java: New file.
4337         * java/awt/event/AdjustmentEvent.java: New file.
4338         * java/awt/event/AdjustmentListener.java: New file.
4339         * java/awt/event/ComponentAdapter.java: New file.
4340         * java/awt/event/ComponentEvent.java: New file.
4341         * java/awt/event/ComponentListener.java: New file.
4342         * java/awt/event/ContainerAdapter.java: New file.
4343         * java/awt/event/ContainerEvent.java: New file.
4344         * java/awt/event/ContainerListener.java: New file.
4345         * java/awt/event/FocusAdapter.java: New file.
4346         * java/awt/event/FocusEvent.java: New file.
4347         * java/awt/event/FocusListener.java: New file.
4348         * java/awt/event/InputEvent.java: New file.
4349         * java/awt/event/InputMethodEvent.java: New file.
4350         * java/awt/event/InputMethodListener.java: New file.
4351         * java/awt/event/InvocationEvent.java: New file.
4352         * java/awt/event/ItemEvent.java: New file.
4353         * java/awt/event/ItemListener.java: New file.
4354         * java/awt/event/KeyAdapter.java: New file.
4355         * java/awt/event/KeyEvent.java: New file.
4356         * java/awt/event/KeyListener.java: New file.
4357         * java/awt/event/MouseAdapter.java: New file.
4358         * java/awt/event/MouseEvent.java: New file.
4359         * java/awt/event/MouseListener.java: New file.
4360         * java/awt/event/MouseMotionAdapter.java: New file.
4361         * java/awt/event/MouseMotionListener.java: New file.
4362         * java/awt/event/PaintEvent.java: New file.
4363         * java/awt/event/TextEvent.java: New file.
4364         * java/awt/event/TextListener.java: New file.
4365         * java/awt/event/WindowAdapter.java: New file.
4366         * java/awt/event/WindowEvent.java: New file.
4367         * java/awt/event/WindowListener.java: New file.
4368         * java/awt/geom/Dimension2D.java: New file.
4369         * java/awt/geom/Point2D.java: New file.
4370         * java/awt/peer/ComponentPeer.java: New file.
4371         * java/awt/peer/ContainerPeer.java: New file.
4372         * java/awt/peer/FramePeer.java: New file.
4373         * java/awt/peer/WindowPeer.java: New file.
4374         * java/util/Collection.java: New file.
4375         * java/util/Comparator.java: New file.
4376         * java/util/Iterator.java: New file.
4377         * java/util/List.java: New file.
4378         * java/util/ListIterator.java: New file.
4379         * Makefile.am: Added above files.
4380         * Makefile.in: Rebuilt.
4381
4382 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4383
4384         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4385         * java/lang/FirstThread.java: Ditto.
4386         * java/lang/StringBuffer.java: Ditto.
4387         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4388
4389         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4390         Special case handled in java.math.BigInteger.
4391         * java/math/BigInteger.java (divide): Handle the special case when
4392         dividing by 1 and the high bit of the dividend is set.
4393         (setShiftRight): Handle case when count == 0.
4394
4395 2000-04-05  Andrew Haley  <aph@cygnus.com>
4396
4397         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4398         special case.
4399
4400 2000-04-05  Andrew Haley  <aph@cygnus.com>
4401
4402         * sysdep/ia64.c (rse_address_add): Delete.
4403         (IS_NaT_COLLECTION_ADDR): Delete.
4404         (ia64_backtrace_helper): check for null unwind_info.
4405
4406         * sysdep/ia64-frame.h: add calc_caller_bsp.
4407
4408         * java/lang/natThrowable.cc (printRawStackTrace): Flush
4409         PrintWriter.
4410
4411         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4412         (_Jv_remI): Likewise.
4413         (_Jv_divJ): Likewise.
4414         (_Jv_remJ): Likewise.
4415
4416         * interpret.cc (continue1): Use divide subroutines to guarantee
4417         correct Java standard behaviour.
4418         Floating-point division should not abort; make it so.
4419
4420 2000-03-29  Tom Tromey  <tromey@cygnus.com>
4421
4422         * configure: Rebuilt.
4423         * configure.in: Test against `libgcj_sjlj', not
4424         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
4425         to be set even when using sjlj.
4426
4427 2000-03-24  Andrew Haley  <aph@cygnus.com>
4428
4429         * Makefile.am: Add file addr2name.awk.
4430         * Makefile.in: Rebuilt.
4431         * addr2name.awk: New file.
4432         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4433         lookups on ia64.
4434         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4435         blank line.
4436
4437 2000-03-22  Andrew Haley  <aph@cygnus.com>
4438
4439         * configure.host: Add -funwind-tables for IA64.
4440         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4441         * Makefile.in: Rebuilt.
4442         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4443         * sysdep/ia64.c: New file.
4444         * sysdep/ia64-frame.h: New file.
4445         * configure.in: Add sysdep/ia64.c for ia64.
4446         * configure: Rebuilt.
4447
4448 2000-03-17  Andrew Haley  <aph@cygnus.com>
4449
4450         * java/lang/natString.cc: Remove `register' keyword.
4451         interpret.cc: ditto.
4452
4453 2000-03-16  Andrew Haley  <aph@cygnus.com>
4454
4455         * configure.host (ia64): Enable interpreter.
4456
4457 2000-03-14  Hans Boehm  <boehm@acm.org>
4458
4459         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4460
4461 2000-03-14  Andrew Haley  <aph@cygnus.com>
4462
4463         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4464         `_exception'.
4465
4466 2000-03-10  Andrew Haley  <aph@cygnus.com>
4467
4468         * java/lang/ieeefp.h: Import latest version from fdlibm.
4469
4470 2000-03-14  Andrew Haley  <aph@cygnus.com>
4471
4472         * prims.cc (_Jv_ThrowSignal): New function.
4473         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4474         (catch_fpe): Ditto.
4475         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4476         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4477         * include/ppc-signal.h: New file.
4478
4479 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
4480
4481         * java/lang/Thread.java: Declare `data' as Object, not RawData.
4482         * java/lang/natThread.java (initialize_native): Cast `data' to
4483         jobject.
4484         * gnu/gcj/RawData.java: Clarify documentation.
4485
4486         From Gregory R. Warnes <warnes@biostat.washington.edu>:
4487         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4488         `jarFile', not `jarFileURL'.
4489
4490 2000-05-15  Andrew Haley  <aph@cygnus.com>
4491
4492         * include/ppc-signal.h: New file.
4493
4494 2000-05-11  Tom Tromey  <tromey@cygnus.com>
4495
4496         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4497         file headers, don't include `size' in the skip call.
4498
4499 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
4500
4501         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4502         Avoid arrayCopy() call where possible. Update `count' _after_ calling
4503         arrayCopy().
4504         (replace): Reimplemented. Fix javadoc.
4505         (reverse): Call ensureCapacity_unsynchronized().
4506         (StringBuffer (String)): Use DEFAULT_CAPACITY.
4507
4508         (replace): Calculate length for arraycopy() correctly.
4509
4510 2000-05-09  Tom Tromey  <tromey@cygnus.com>
4511
4512         * java/lang/StringBuffer.java (toString): Don't mark buffer as
4513         shared.
4514         (insert(int,char[],int,int): New method.
4515         (delete): New method from Classpath.
4516         (deleteCharAt): Likewise.
4517         (substring): Likewise.
4518         (shared): No longer private.
4519         Added JavaDoc comments from Classpath.
4520         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4521         shared.
4522
4523 2000-05-07  Tom Tromey  <tromey@cygnus.com>
4524
4525         * Makefile.in: Rebuilt.
4526         * Makefile.am (LIBLINK): New macro.
4527         (libgcj_la_LINK): Use it.
4528         (libgcjawt_la_LINK): Likewise.
4529
4530 2000-05-06  Tom Tromey  <tromey@cygnus.com>
4531
4532         * Makefile.in: Rebuilt.
4533         * Makefile.am (libgcj.zip): Don't pass -L to javac.
4534
4535 2000-05-05  Tom Tromey  <tromey@cygnus.com>
4536
4537         Fix for PR libgcj/220:
4538         * Makefile.in: Rebuilt.
4539         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4540         (jv_convert_LDFLAGS): Likewise.
4541         (libgcj_la_LDFLAGS): Likewise.
4542         (GCJLINK): New macro.
4543         (jv_convert_LINK): Use it.
4544         (gij_LINK): Likewise.
4545         (libgcj_la_LINK): New macro.
4546         (libgcjawt_la_LINK): Likewise.
4547
4548 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4549
4550         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4551         field.
4552         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
4553         `0x0008'.
4554         Include Modifier.h.
4555
4556 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
4557
4558         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4559         (_Jv_IsAssignableFrom): Ditto.
4560         (_Jv_IsInstanceOf): Ditto.
4561         (_Jv_CheckCast): Ditto.
4562         (_Jv_CheckArrayStore): Ditto.
4563         * java/lang/Class.h (_Jv_InitClass): Ditto.
4564         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4565         not `0'.
4566         (notify): Ditto.
4567         (notifyAll): Ditto.
4568         (wait): Ditto.
4569         (_Jv_MonitorExit): Ditto.
4570         * boehm.cc (_Jv_MarkObj): Ditto.
4571         (_Jv_MarkObj): Ditto.
4572         (_Jv_MarkArray): Ditto.
4573         * prims.cc (_Jv_AllocObject): Ditto.
4574         (_Jv_NewObjectArray): Ditto.
4575         (_Jv_NewPrimArray): Ditto.
4576         (_Jv_Malloc): Ditto.
4577         (_Jv_Realloc): Ditto.
4578         (_Jv_MallocUnchecked): Ditto.
4579         (_Jv_divI): Ditto.
4580         (_Jv_remI): Ditto.
4581         (_Jv_divJ): Ditto.
4582         (_Jv_remJ): Ditto.
4583
4584 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4585
4586         * java/util/Locale.java (Locale): Don't explicitly check for
4587         null.
4588         * java/util/Hashtable.java (containsKey): Don't explicitly check
4589         for null.
4590         (get): Likewise.
4591         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4592         null.
4593         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4594         for null.
4595         * java/text/StringCharacterIterator.java
4596         (StringCharacterIterator): Don't check for null.
4597         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4598         for null pointer.
4599         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4600         check for null pointer.
4601         (leaveGroup): Likewise.
4602         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4603         comment.
4604         (setData): Likewise.
4605         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4606         for `p==null'.
4607
4608 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
4609
4610         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4611         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4612         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4613         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4614         -rpath for in-gcc builds.
4615         * Makefile.in: Rebuilt.
4616
4617 2000-04-28  Tom Tromey  <tromey@cygnus.com>
4618
4619         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4620         Fix for PR gcj/218.
4621
4622 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
4623
4624         * libjava/java/lang/String.java (toString): Remove `final' hack.
4625
4626 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4627
4628         Runtime support for PR gcj/2:
4629         * prims.cc (_Jv_ThrowNullPointerException): New function.
4630         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4631
4632 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
4633
4634         * prims.cc (_Jv_NewObjectArray): Fix typo.
4635
4636 2000-04-26  Tom Tromey  <tromey@cygnus.com>
4637
4638         * Makefile.in: Rebuilt.
4639         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4640
4641 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
4642
4643         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4644         calling main.
4645
4646 2000-04-22  Anthony Green  <green@cygnus.com>
4647
4648         * include/jvm.h (__builtin_expect): Define as unused for now.
4649         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4650         (notify): Ditto.
4651         (notifyAll): Ditto.
4652         (wait): Ditto.
4653         (_Jv_MonitorExit): Ditto.
4654         * boehm.cc (_Jv_MarkObj): Ditto.
4655         (_Jv_MarkObj): Ditto.
4656         (_Jv_MarkArray): Ditto.
4657         (_Jv_AllocBytes): Ditto.
4658         * prims.cc (_Jv_AllocObject): Ditto.
4659         (_Jv_NewObjectArray): Ditto.
4660         (_Jv_NewPrimArray): Ditto.
4661         (_Jv_Malloc): Ditto.
4662         (_Jv_Realloc): Ditto.
4663         (_Jv_MallocUnchecked): Ditto.
4664         (_Jv_divI): Ditto.
4665         (_Jv_remI): Ditto.
4666         (_Jv_divJ): Ditto.
4667         (_Jv_remJ): Ditto.
4668
4669         * include/Makefile.in: Rebuilt.
4670         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4671
4672 2000-04-21  Tom Tromey  <tromey@cygnus.com>
4673
4674         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4675         Yet another new version from Classpath.
4676
4677         Fix for PR libgcj/15:
4678         * java/util/natGregorianCalendar.cc (_REENTRANT,
4679         _POSIX_PTHREAD_SEMANTICS): Don't define.
4680         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4681         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4682         Don't define.
4683         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4684         define.
4685         * configure: Rebuilt.
4686         * configure.in: If using POSIX threads, define _REENTRANT if
4687         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
4688         GETHOSTBYNAME_R_NEEDS_REENTRANT.
4689
4690         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4691         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4692         version from Classpath.
4693
4694         Fix for PR libgcj/213:
4695         * Makefile.in: Rebuilt.
4696         * Makefile.am (gij_SOURCES): Added gij.cc.
4697         (EXTRA_gij_SOURCES): Removed.
4698         (gij_LDADD): Removed gij.lo.
4699         (gij_DEPENDENCIES): Likewise.
4700         ($(gij_OBJECTS)): Depend on nat_headers.
4701
4702         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4703         `setURL', not `url.set'.
4704
4705 2000-04-20  Tom Tromey  <tromey@cygnus.com>
4706
4707         Fix for PR java.io/204:
4708         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4709         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4710         from Classpath.
4711
4712         Fix for PR libgcj/212:
4713         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4714         * include/jvm.h (_Jv_word, _Jv_word2): Define.
4715         * java/lang/Class.h (_Jv_word): Declare.
4716
4717         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4718
4719 2000-04-19  Tom Tromey  <tromey@cygnus.com>
4720
4721         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4722         doesn't have a loader.
4723
4724 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
4725
4726         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4727         MAYBE_MARK to ptr_t, for compatibility with new GC version.
4728
4729 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
4730
4731         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4732         libgcj/202.
4733         (available): Initialize `where' to prevent bogus compiler warning.
4734
4735 2000-04-12  Tom Tromey  <tromey@cygnus.com>
4736
4737         * java/lang/natString.cc (intern): Temporarily disable finalizer
4738         registration.
4739
4740         * java/lang/natString.cc (unintern): Added `obj' argument.
4741         (intern): Register finalizer for string.
4742         * java/lang/String.java (unintern): Now static; added obj
4743         argument.
4744
4745 2000-04-11  Tom Tromey  <tromey@cygnus.com>
4746
4747         * java/util/Vector.java (VectorEnumeration): Now `final'.
4748         * java/util/Hashtable.java (HashtableEntry): Now `final'.
4749         (HashtableEnumeration): Likewise.
4750         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4751         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4752
4753 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4754
4755         * java/io/ObjectStreamException.java: New file.
4756         * java/io/OptionalDataException.java: New file.
4757         * java/io/StreamCorruptedException.java: New file.
4758         * java/math/BigDecimal.java: New file.
4759         * java/sql/CallableStatement.java: New file.
4760         * java/sql/Connection.java: New file.
4761         * java/sql/DataTruncation.java: New file.
4762         * java/sql/DatabaseMetaData.java: New file.
4763         * java/sql/Date.java: New file.
4764         * java/sql/Driver.java: New file.
4765         * java/sql/DriverManager.java: New file.
4766         * java/sql/DriverPropertyInfo.java: New file.
4767         * java/sql/PreparedStatement.java: New file.
4768         * java/sql/ResultSet.java: New file.
4769         * java/sql/ResultSetMetaData.java: New file.
4770         * java/sql/SQLException.java: New file.
4771         * java/sql/SQLWarning.java: New file.
4772         * java/sql/Statement.java: New file.
4773         * java/sql/Time.java: New file.
4774         * java/sql/Timestamp.java: New file.
4775         * java/sql/Types.java: New file.
4776         * Makefile.am: Added above new files.
4777         * Makefile.in: Rebuilt.
4778
4779         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4780         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4781         DatagramSocket constructor instead of null.
4782
4783 2000-04-08  Anthony Green  <green@cygnus.com>
4784
4785         * include/posix-threads.h (_Jv_MutexUnlock): Replace
4786         _JV_NOT_OWNER.
4787
4788 2000-04-08  Anthony Green  <green@cygnus.com>
4789
4790         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4791         (_Jv_MutexUnlock): Ditto.
4792         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4793         (_Jv_MutexUnlock): Ditto.
4794
4795 2000-04-08  Anthony Green  <green@cygnus.com>
4796
4797         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4798         (ensureCapacity_unsynchronized): New private method.
4799         (append): Use ensureCapacity_unsynchronized.
4800
4801 2000-04-08  Tom Tromey  <tromey@cygnus.com>
4802
4803         * Makefile.in: Rebuilt.
4804         * Makefile.am (awt_java_source_files): Added new files.
4805         * java/awt/IllegalComponentStateException.java: New file.
4806         * java/awt/ItemSelectable.java: New file.
4807         * java/awt/event/WindowEvent.java: Finished.
4808         * java/awt/event/TextEvent.java: Finished.
4809         * java/awt/event/ContainerEvent.java: New file.
4810         * java/awt/Component.java (getX, getY): New methods.
4811         * java/awt/event/PaintEvent.java: New file.
4812         * java/awt/event/MouseEvent.java: New file.
4813         * java/awt/ActiveEvent.java: New file.
4814         * java/awt/event/KeyEvent.java: Finished.
4815         * java/awt/event/ItemEvent.java: New file.
4816         * java/awt/Adjustable.java: New file.
4817         * java/awt/event/InputMethodEvent.java: New file.
4818         * java/awt/event/InputEvent.java: Finished.
4819         * java/awt/event/FocusEvent.java: New file.
4820         * java/awt/event/MouseMotionAdapter.java: New file.
4821         * java/awt/event/MouseAdapter.java: New file.
4822         * java/awt/event/KeyAdapter.java: New file.
4823         * java/awt/event/FocusAdapter.java: New file.
4824         * java/awt/event/ContainerAdapter.java: New file.
4825         * java/awt/event/ComponentEvent.java: Finished.
4826         * java/awt/event/AdjustmentEvent.java: New file.
4827         * java/awt/event/ComponentAdapter.java: New file.
4828         * java/awt/event/ActionEvent.java: Finished.
4829         * java/awt/event/MouseMotionListener.java: New file.
4830         * java/awt/event/MouseListener.java: New file.
4831         * java/awt/event/ItemListener.java: New file.
4832         * java/awt/event/InputMethodListener.java: New file.
4833         * java/awt/event/ContainerListener.java: New file.
4834         * java/awt/event/FocusListener.java: New file.
4835         * java/awt/event/ComponentListener.java: New file.
4836         * java/awt/event/AWTEventListener.java: New file.
4837         * java/awt/event/AdjustmentListener.java: New file.
4838
4839 2000-04-08  Anthony Green  <green@cygnus.com>
4840
4841         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4842         check when we have to.
4843
4844         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4845         x) as `inline'.
4846
4847         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
4848         one method call.
4849
4850         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4851         inline hasMoreElements.
4852
4853 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4854
4855         * configure: Rebuilt.
4856         * configure.in: Recognize --enable-java-awt.
4857         (AWT): New conditional.
4858         * Makefile.in: Rebuilt.
4859         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4860         requested.
4861         (libgcjawt_la_SOURCES): New macro.
4862         (EXTRA_libgcjawt_la_SOURCES): Likewise.
4863         (libgcjawt_la_DEPENDENCIES): Likewise.
4864         (libgcjawt_la_LIBADD): Likewise.
4865         (libgcjawt_la_LDFLAGS): Likewise.
4866         (libgcj.zip): Depend on cond_java_awt_source_files
4867         (cond_awt_java_source_files): New macro.
4868         (MOSTLYCLEANFILES): Added awto_files.
4869         (awto_files): New macro.  Use where javao_files used.
4870         (nat_headers): Use cond_awt_java_source_files.
4871
4872 2000-04-04  Tom Tromey  <tromey@cygnus.com>
4873
4874         * Makefile.in: Rebuilt.
4875         * Makefile.am (awt_java_source_files): Added AWTException.java.
4876         * java/awt/AWTException.java: New file.
4877
4878 2000-04-03  Tom Tromey  <tromey@cygnus.com>
4879
4880         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4881         commentary from Alex.
4882
4883         * Makefile.in: Rebuilt.
4884         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4885         From H.J. Lu.
4886
4887 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
4888
4889         * configure: Rebuilt.
4890         * configure.in: Add --disable-jvmpi.
4891         * include/config.h.in: Rebuilt.
4892         * acconfig.h: Add ENABLE_JVMPI.
4893
4894         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4895         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4896         (_Jv_JVMPI_Notify_THREAD_END): New define.
4897         (_Jv_JVMPI_Notify_THREAD_END): New define.
4898         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4899         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4900         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4901
4902         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4903         events.
4904
4905         * java/lang/natThread.cc: Include JVMPI headers if necessary.
4906         (finish_): Generate JVMPI thread end events.
4907         (run_): Generate JVMPI thread start events.
4908         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4909         preloaded JNI library.
4910         Include JVMPI headers if necessary.
4911         (run): Generate JVMPI thread start events.
4912
4913         * boehm.cc: Define GC_disable and GC_enable.
4914         (_Jv_DisableGC): New function.
4915         (_Jv_EnableGC): New function.
4916         (disable_gc_mutex): Declare.
4917         * nogc.cc (_Jv_DisableGC): New function.
4918         (_Jv_EnableGC): New function.
4919
4920         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4921         (_Jv_JVMPI_Interface): Define.
4922         (jvmpiEnableEvent): New function.
4923         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4924
4925         * include/jvmpi.h: New file.
4926
4927 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
4928
4929         * Makefile.in: New #defines and friends for Thread.h.
4930         * Makefile.am: Ditto.
4931         * posix-threads.cc: (struct starter): Remove `object'.
4932         (_Jv_CondWait): Use interruptable condition variables and new
4933         recursive mutexes. New return codes on interrupt or non-ownership
4934         of mutex.
4935         (_Jv_CondNotify): Ditto.
4936         (_Jv_CondNotifyAll): Ditto.
4937         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4938         the target thread by signaling its wait condition.
4939         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4940         not the starter struct. Initialize wait_mutex and wait_cond.
4941         (_Jv_MutexLock): New recursive mutex implementation. Moved from
4942         posix-threads.h.
4943         (_Jv_MutexUnlock): Ditto.
4944         (really_start): Set info->data->thread from pthread_self() to work
4945         around a race condition. Destroy wait_mutex and wait_cond when run()
4946         returns.
4947         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4948         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4949         set.
4950         startable_flag: New private field.
4951         (Thread): Initialize `startable_flag'.
4952         (toString): Check for null thread group.
4953         * java/lang/natThread.cc: (struct natThread): New fields
4954         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4955         (class locker): Removed.
4956         (initialize_native): Initialize `join_cond' and `join_mutex'.
4957         (interrupt): Now just calls _Jv_ThreadInterrupt().
4958         (join): Simplified. Just wait on the target thread's join condition.
4959         (finish_): Remove join list code. Unset thread group. Signal
4960         potential joiners by notifying the dying threads join_cond.
4961         (start): Check for illegal restarts.
4962         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4963         act appropriatly.
4964         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4965         #defines and #ifdefs.
4966         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4967         `wait_mutex', `next'.
4968         (struct _Jv_ConditionVariable_t): Define as a struct instead of
4969         directly mapping to pthread_cond_t.
4970         (struct _Jv_Mutex_t): New recursive implementation.
4971         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4972         _Jv_HaveCondDestroy: Never define this for posix-threads.
4973         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4974         (_Jv_CondNotifyAll): Ditto.
4975         (_Jv_MutexLock): Ditto.
4976         (_Jv_MutexUnlock): Ditto.
4977         (_Jv_MutexInit): Changed to reflect new mutex implementation.
4978         (_Jv_MutexDestroy): Ditto.
4979         (_Jv_CondDestroy): Removed.
4980         (_Jv_PthreadGetMutex): Removed.
4981         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4982         error. Add a FIXME about this.
4983         (_Jv_CondNotifyAll): Ditto.
4984         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4985         _JV_NOT_OWNER on other errors. Add FIXME.
4986
4987 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4988
4989         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4990         set, throw it.
4991         (call): Don't throw exception here.
4992
4993 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4994
4995         * java/lang/mprec.h: Use SIZEOF_VOID_P.
4996         * interpret.cc: Use SIZEOF_VOID_P.
4997         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4998         (_Jv_loadLong): Likewise.
4999         (_Jv_storeDouble): Likewise.
5000         * configure: Rebuilt.
5001         * configure.in: Check size of void*.
5002
5003         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5004
5005 2000-03-26  Hans Boehm  <boehm@acm.org>
5006
5007         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5008         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5009         machine.
5010         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5011         __IEEE_LITTLE_ENDIAN appropriately on IA64.
5012         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5013         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5014         case.
5015         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5016         (FFI_RAW_SIZE): Likewise.
5017         (_Jv_InterpMethod::ncode): Use them.
5018         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5019         STORED): Define differently on a 64 bit machine.
5020         (continue1): Use ffi_java_raw_call when appropriate.
5021
5022 2000-03-24  Warren Levy  <warrenl@cygnus.com>
5023
5024         * java/math/BigInteger.java(divide): Handle the special case when
5025         dividing by 1 and the high bit of the dividend is set.
5026         (setShiftRight): Handle case when count == 0.
5027
5028 2000-03-24  Warren Levy  <warrenl@cygnus.com>
5029
5030         * java/awt/Font.java(isBold): Fix syntax error.
5031         (isItalic): ditto.
5032         * java/awt/Frame.java(postEvent): ditto.
5033         * java/awt/Menu.java(postEvent): ditto.
5034         * java/awt/MenuBar.java(postEvent): ditto.
5035         * java/awt/Toolkit.java(init): Included a stub.
5036
5037 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
5038
5039         * java/awt/Event.java: Add all the event type constants.
5040         (Event): Implemented constructors.
5041         (controlDown): Implemented.
5042         (metaDown): Implemented.
5043         (paramString): Stubbed.
5044         (shiftDown): Implemented.
5045         (toString): Implemented.
5046         (translate): Implemented.
5047
5048 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
5049
5050         * java/lang/natClass.cc (isInstance): Initialize `this'.
5051         (isAssignableFrom): Initialize `this' and `klass'.
5052         (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5053         implemented by any loaded class, so return false.
5054         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5055         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5056
5057 2000-03-19  Warren Levy  <warrenl@cygnus.com>
5058
5059         * java/awt/Color.java: Specified java.io for Serializable.
5060         * java/awt/Toolkit.java: Imported java.net.URL.
5061
5062 2000-03-19  Warren Levy  <warrenl@cygnus.com>
5063
5064         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5065
5066 2000-03-16  Warren Levy  <warrenl@cygnus.com>
5067
5068         * java/awt/Color.java: New file.
5069         * java/awt/Graphics.java: New file.
5070         * java/awt/Image.java: New file.
5071         * java/awt/Paint.java: New file.
5072         * java/awt/PaintContext.java: New file.
5073         * java/awt/Transparency.java: New file.
5074         * java/util/Collection.java: New file.
5075         * java/util/Comparator.java: New file.
5076         * java/util/Iterator.java: New file.
5077         * java/util/List.java: New file.
5078         * java/util/ListIterator.java: New file.
5079         * Makefile.am: Added above new files.
5080         * Makefile.in: Rebuilt.
5081
5082         * java/awt/Font.java (PLAIN): New field.
5083         (BOLD): New field.
5084         (ITALIC): New field.
5085         (ROMAN_BASELINE): New field.
5086         (CENTER_BASELINE): New field.
5087         (HANGING_BASELINE): New field.
5088         (name): New field.
5089         (style): New field.
5090         (size): New field.
5091         (pointSize): New field.
5092         (Font): Implemented constructor.
5093         (isPlain): Implemented method.
5094         (isBold): Implemented method.
5095         (isItalic): Implemented method.
5096         (getName): Implemented method.
5097         (getStyle): Implemented method.
5098         (getSize): Implemented method.
5099         (getSize2D): Implemented method.
5100         (decode): Stubbed.
5101         * java/awt/Frame.java (getFont): Stubbed.
5102         (postEvent): Stubbed.
5103         (remove): Stubbed.
5104         * java/awt/Menu.java (postEvent): Stubbed.
5105         * java/awt/MenuBar.java (getFont): Stubbed.
5106         (postEvent): Stubbed.
5107         * java/awt/Toolkit.java (getImage): Added abstract method.
5108
5109 2000-03-15  Tom Tromey  <tromey@cygnus.com>
5110
5111         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5112
5113         * prims.cc (win32_exception_handler): Reformatted.
5114
5115         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5116         (_Jv_HaveMutexDestroy): Likewise.
5117
5118 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5119
5120         * java/io/natFileDescriptorWin32.cc: New file.
5121         * java/io/natFileWin32.cc: New file.
5122         * java/net/natInetAddress.cc: Added conditional inclusion of
5123         Windows / Winsock headers.
5124         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5125         inclusion of Windows / Winsock headers.
5126         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5127         Windows / Winsock headers.
5128         * include/win32-signal.h: New file.
5129         * include/win32-threads.h: New file.
5130         * win32-threads.cc: New file.
5131         * exception.cc (win32_get_restart_frame): New function.
5132         * prims.cc (win32_exception_handler): New function.
5133         (main_init) Performs Winsock initialisation.
5134         (main_init) Installs exeception handler.
5135
5136 2000-03-14  Tom Tromey  <tromey@cygnus.com>
5137
5138         * jni.cc (mangled_name): Fixed assertion.
5139         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5140         turned assert into actual failure.
5141
5142 2000-03-09  Warren Levy  <warrenl@cygnus.com>
5143
5144         * java/security/Key.java(serialVersionUID): Set to 0 for now.
5145         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5146         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5147
5148 2000-03-09  Warren Levy  <warrenl@cygnus.com>
5149
5150         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5151         * java/security/DigestException.java: New file.
5152         * java/security/GeneralSecurityException.java: New file.
5153         * java/security/InvalidAlgorithmParameterException.java: New file.
5154         * java/security/InvalidKeyException.java: New file.
5155         * java/security/InvalidParameterException.java: New file.
5156         * java/security/Key.java: New file.
5157         * java/security/KeyException.java: New file.
5158         * java/security/KeyPair.java: New file.
5159         * java/security/KeyPairGenerator.java: New file.
5160         * java/security/KeyPairGeneratorSpi.java: New file.
5161         * java/security/NoSuchProviderException.java: New file.
5162         * java/security/PrivateKey.java: New file.
5163         * java/security/Provider.java: New file.
5164         * java/security/PublicKey.java: New file.
5165         * java/security/SecureRandom.java: New file.
5166         * java/security/Security.java: New file.
5167         * java/security/Signature.java: New file.
5168         * java/security/SignatureException.java: New file.
5169         * java/security/interfaces/DSAKey.java: New file.
5170         * java/security/interfaces/DSAParams.java: New file.
5171         * java/security/interfaces/DSAPrivateKey.java: New file.
5172         * java/security/interfaces/DSAPublicKey.java: New file.
5173         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5174         * java/security/interfaces/RSAPrivateKey.java: New file.
5175         * java/security/interfaces/RSAPublicKey.java: New file.
5176         * java/security/spec/AlgorithmParameterSpec.java: New file.
5177         * java/security/spec/InvalidKeySpecException.java: New file.
5178         * java/security/spec/InvalidParameterSpecException.java: New file.
5179         * java/security/spec/KeySpec.java: New file.
5180         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5181         * java/security/spec/RSAPrivateKeySpec.java: New file.
5182         * java/security/spec/RSAPublicKeySpec.java: New file.
5183         * Makefile.am: Added above java.security files.
5184         * Makefile.in: Rebuilt.
5185
5186         * java/security/MessageDigest.java: Rewritten.
5187         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5188
5189 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
5190
5191         * README: Updated.
5192
5193 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
5194
5195         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5196         _Jv_PrepareConstantTimeTables.
5197         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5198         classes should have an IDT, so don't return if klass is an array
5199         class.
5200
5201 2000-03-08  Tom Tromey  <tromey@cygnus.com>
5202
5203         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5204         of `void' to be created.
5205
5206 2000-03-08  Warren Levy  <warrenl@cygnus.com>
5207
5208         * java/math/BigInteger.java(signum): Handle zero properly.
5209
5210 2000-03-07  Tom Tromey  <tromey@cygnus.com>
5211
5212         * All files: Updated copyright information.
5213         * COPYING: New file.
5214         * COPYING.LIB: Removed.
5215         * LIBGCJ_LICENSE: We now use GPL + special exception.
5216
5217 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
5218
5219         * resolve.cc (_Jv_SearchMethodInClass): New function.
5220         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5221         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5222
5223 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
5224
5225         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5226         (struct _Jv_ifaces): New declaration.
5227         JV_CLASS: New macro definition.
5228         (getComponentType): Relocate below isArray() for inlining.
5229         (getModifiers): Declare `inline'.
5230         (getSuperclass): Ditto.
5231         (isArray): Ditto.
5232         (isPrimitive): Ditto.
5233         (_Jv_IsAssignableFrom): New prototype.
5234         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5235         linkage.
5236         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5237         Check for JV_STATE_DONE before invoking initializeClass().
5238         (_Jv_PrepareConstantTimeTables): New prototype.
5239         (_Jv_GetInterfaces): Ditto.
5240         (_Jv_GenerateITable): Ditto.
5241         (_Jv_GetMethodString): Ditto.
5242         (_Jv_AppendPartialITable): Ditto.
5243         (_Jv_FindIIndex): Ditto.
5244         depth, ancestors, idt: New class fields.
5245
5246         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5247         inline function `_Jv_IsAssignableFrom'. Use that function.
5248         (isInstance): Declare `inline'.
5249         (initializeClass): Get lock on class before checking `state'. Unlock
5250         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5251         the lock held.
5252         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5253         (_Jv_IsAssignableFrom): New inline function. Test assignability using
5254         class->depth and ancestor table.
5255         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5256         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5257         _Jv_IsAssignableFrom.
5258         (_Jv_CheckArrayStore): Ditto.
5259         (_Jv_LookupInterfaceMethodIdx): New function.
5260         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5261         (_Jv_PrepareConstantTimeTables): New function.
5262         (_Jv_IndexOf): Ditto.
5263         (_Jv_GetInterfaces): Ditto.
5264         (_Jv_GenerateITable): Ditto.
5265         (_Jv_GetMethodString): Ditto.
5266         (_Jv_AppendPartialITable): Ditto.
5267         iindex_mutex, iindex_mutex_initialized: New static fields.
5268         (_Jv_FindIIndex): New function.
5269
5270         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5271
5272         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5273         (_Jv_CheckArrayStore): Ditto.
5274         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5275         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5276         Moved to gcj/array.h.
5277         (_Jv_Realloc): New function.
5278
5279         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5280
5281         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5282         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5283         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5284         JvNewDoubleArray): Implementations moved from prims.cc and
5285         declared `inline'.
5286
5287         * gcj/javaprims.h (_Jv_Realloc): Prototype.
5288
5289         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5290
5291 2000-03-06  Tom Tromey  <tromey@cygnus.com>
5292
5293         * jni.cc (MARK_NONE): New define.
5294         (MARK_USER): Likewise.
5295         (MARK_SYSTEM): Likewise.
5296         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5297         smaller.
5298         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5299         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5300         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5301         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5302         argument.
5303         (call): Use MARK_SYSTEM.
5304         (_Jv_GetJNIEnvNewFrame): New function.
5305         (_Jv_LookupJNIMethod): New function.
5306         (_Jv_JNI_PopSystemFrame): New function.
5307         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5308
5309 2000-03-05  Tom Tromey  <tromey@cygnus.com>
5310
5311         Fix for PR libgcj/43:
5312         * include/Makefile.in: Rebuilt.
5313         * include/Makefile.am (include_HEADERS): New define.
5314
5315 2000-03-05  Anthony Green  <green@redhat.com>
5316
5317         * gcj/javaprims.h ("Java"): Remove FirstThread.
5318
5319         * configure.host: Fix __NO_MATH_INLNES botch.
5320
5321         * Makefile.in: Rebuilt.
5322         * Makefile.am (nat_source_files): Move natFirstThread.cc.
5323         (gnu/gcj/runtime/FirstThread.h): Moved.
5324         (ordinary_java_source_files): Move FirstThread.java.
5325         * prims.cc: Deal with FirstThread movement.
5326         (JvRunMain): Ditto.
5327         (_Jv_RunMain): Ditto.
5328
5329         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5330         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5331
5332 2000-03-05  Warren Levy  <warrenl@cygnus.com>
5333
5334         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5335           Handle null addresses.
5336
5337 2000-03-04  Anthony Green  <green@redhat.com>
5338
5339         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5340         See PR gcj/151.
5341
5342 2000-03-04  Anthony Green  <green@redhat.com>
5343
5344         * configure: Rebuilt.
5345         * configure.in (ZLIBTESTSPEC): New macro.
5346         (GCTESTSPEC): New macro.
5347         (LIBGCJTESTSPEC): New macro.
5348         * libgcj-test.spec.in: New file.
5349
5350 2000-03-02  Tom Tromey  <tromey@cygnus.com>
5351
5352         * include/java-interp.h: Don't include MethodInvocation.h.
5353         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5354         * Makefile.in: Rebuilt.
5355         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5356         (ordinary_java_source_files): Don't mention
5357         MethodInvocation.java.
5358         * gnu/gcj/runtime/MethodInvocation.java: Removed.
5359         * interpret.cc (MethodInvocation::continue1): Removed.
5360         (run): Handle exceptions here.
5361         * java/lang/ClassLoader.java (defineClass1, defineClass2):
5362         Removed.
5363         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5364         here.
5365         (defineClass2): Removed.
5366
5367         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5368         Removed.
5369         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5370         exceptions here.
5371         (hack_call): Removed.
5372
5373         * java/lang/Class.h (Class): Removed hackRunInitializers,
5374         hackTrampoline.
5375         * java/lang/natClass.cc (hackRunInitializers): Removed.
5376         (initializeClass): Catch exceptions here.
5377         Include ExceptionInInitializerError.h.
5378         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5379         Removed.
5380
5381         * java/lang/Object.h (Object): Don't mention hack12_6.
5382         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5383         here.
5384         * java/lang/Object.java (hack12_6): Removed.
5385
5386         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
5387         (start): Use run_, not run__.
5388         * java/lang/Thread.java (run_): Renamed from run__; old run_
5389         removed.
5390
5391         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5392         (_Jv_JNI_EnsureLocalCapacity): Likewise.
5393         (_Jv_JNI_DefineClass): Likewise.
5394         (_Jv_JNI_ThrowNew): Likewise.
5395         (_Jv_JNI_AllocObject): Likewise.
5396         (_Jv_JNI_GetAnyMethodID): Likewise.
5397         (_Jv_JNI_CallAnyMethodV): Likewise.
5398         (_Jv_JNI_CallAnyMethodA): Likewise.
5399         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5400         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5401         (_Jv_JNI_GetAnyFieldID): Likewise.
5402         (_Jv_JNI_NewString): Likewise.
5403         (_Jv_JNI_NewStringUTF): Likewise.
5404         (_Jv_JNI_GetStringUTFChars): Likewise.
5405         (_Jv_JNI_NewObjectArray): Likewise.
5406         (_Jv_JNI_NewPrimitiveArray): Likewise.
5407         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5408         (_Jv_JNI_GetStringRegion): Likewise.
5409         (_Jv_JNI_GetStringUTFRegion): Likewise.
5410         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5411         (_Jv_JNI_MonitorEnter): Likewise.
5412         (_Jv_JNI_MonitorExit): Likewise.
5413         (_Jv_JNI_ToReflectedField): Likewise.
5414         (_Jv_JNI_ToReflectedMethod): Likewise.
5415         (_Jv_JNI_RegisterNatives): Likewise.
5416         (_Jv_JNI_AttachCurrentThread): Likewise.
5417         (_Jv_JNI_DestroyJavaVM): Likewise.
5418
5419 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
5420
5421         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5422         error caused by the incorrect casting of a long to an int.
5423
5424 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
5425
5426         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5427         SIGSEV caused by use of the wrong instance variable.
5428
5429 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
5430
5431         * java/io/File.java (File(String, String)): For dirPath, treat an
5432         empty String the same as `null'.
5433
5434 2000-02-26  Anthony Green  <green@cygnus.com>
5435
5436         * gnu/gcj/io/MimeTypes.java: Test for null.
5437
5438         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5439         (JNI_GetCreatedJavaVMs): Remove compiler warning.
5440
5441         * java/net/URLConnection.java: Update copyright notice.
5442
5443 2000-02-25  Tom Tromey  <tromey@cygnus.com>
5444
5445         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5446         `INTERPRETER'.
5447
5448 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
5449
5450         * java/net/URLConnection.java (initializeDateFormats): New
5451         private method.
5452         (getHeaderFieldDate): Call initializeDateFormats if required.
5453         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5454         these.
5455         Fix for PR libgcj/38.
5456
5457 2000-02-24  Warren Levy  <warrenl@cygnus.com>
5458
5459         * java/math/BigInteger.java(ival): Made private.
5460         (words): Ditto.
5461         (neg): Ditto.
5462
5463 2000-02-20  Anthony Green  <green@cygnus.com>
5464
5465         * Makefile.in: Rebuilt.
5466         * Makefile.am (ordinary_java_source_files): Add
5467         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5468
5469         * scripts/MakeDefaultMimeTypes.java: New file.
5470         * scripts/mime.types: New file.
5471         * scripts/classes.pl: Moved from top level.
5472         * classes.pl: Moved to scripts directory.
5473
5474         * java/net/URLConnection.java: Implement guessContentTypeFromName.
5475
5476         * gnu/gcj/io/MimeTypes.java: New file.
5477         * gnu/gcj/io/DefaultMimeTypes.java: New file.
5478
5479 2000-02-20  Tom Tromey  <tromey@cygnus.com>
5480
5481         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5482
5483 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
5484
5485         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5486         (setSize): ditto.
5487
5488 2000-02-18  Tom Tromey  <tromey@cygnus.com>
5489
5490         * include/jvm.h (_Jv_GetJavaVM): Declare.
5491         * include/java-interp.h (_Jv_GetFirstMethod): New function.
5492         (_Jv_MethodBase::get_method): New method.
5493         (_Jv_JNIMethod::set_function): New method.
5494         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5495         (_Jv_JNI_RegisterNatives): New function.
5496         (_Jv_JNIFunctions): Updated for new functions.
5497         (_Jv_GetJavaVM): New function.
5498         (_Jv_JNI_GetJavaVM): Use it.  Now static.
5499         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5500         is already a Java thread but does not have a JNIEnv yet.
5501
5502         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5503         function.
5504
5505 2000-02-17  Tom Tromey  <tromey@cygnus.com>
5506
5507         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5508         Fixes PR gcj/152.
5509
5510 2000-02-16  Tom Tromey  <tromey@cygnus.com>
5511
5512         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5513
5514         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5515         (_Jv_JNI_NewObject): Likewise.
5516         (_Jv_JNI_NewObjectA): Likewise.
5517         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5518         as "return" type to _Jv_CallAnyMethodA.
5519         (_Jv_JNI_CallAnyMethodA): Likewise.
5520         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5521
5522         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5523         findClass.
5524
5525 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5526
5527         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
5528         jni_arg_types.
5529         (init_cif): Added `rtype_p' argument.
5530         * include/java-interp.h (class _Jv_MethodBase): Added
5531         args_raw_size.
5532         (class _Jv_InterpMethod): Removed args_raw_size.
5533         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5534         * jni.cc (call): Pass JNIEnv and (for static methods only) the
5535         class pointer as well as the ordinary arguments.
5536
5537         * jni.cc (mangled_name): Skip leading `(' in signature.
5538
5539         * jni.cc (add_char): Added missing `else'.
5540
5541         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5542         fails.
5543
5544 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
5545
5546         * NEWS: Updated.
5547
5548         * java/lang/natRuntime.cc (_load): Include library path with
5549         exception message.
5550
5551         * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5552         property.
5553
5554         * java/lang/natThread.cc (dumpStack): Removed.
5555         * java/lang/Thread.java (dumpStack): Implemented.
5556
5557 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5558
5559         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5560         with `lib' for loadLibrary.  Fixes PR gcj/150.
5561
5562 2000-02-14  Warren Levy  <warrenl@cygnus.com>
5563
5564         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5565
5566         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5567           New constructor.
5568         (min): Implemented.
5569         (max): Implemented.
5570         (modPow): Rewritten to not use the naive, slow, brute force approach.
5571         (isProbablePrime): Implemented.
5572         (testBit): Implemented.
5573         (flipBit): Implemented.
5574         (getLowestSetBit): Implemented.
5575
5576 2000-02-16  Anthony Green  <green@redhat.com>
5577
5578         * configure.host: Use the same options for i386 and i486 as we do
5579         for i586 and i686.
5580
5581 2000-02-12  Tom Tromey  <tromey@cygnus.com>
5582
5583         * java/io/File.java (createTempFile): Use low bits from counter,
5584         not high bits.
5585
5586 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
5587
5588         * THANKS: More thanks.
5589
5590 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5591
5592         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5593         astore instruction.  From Hans Boehm.
5594
5595 2000-02-11  Warren Levy  <warrenl@cygnus.com>
5596
5597         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5598         (BigInteger(String)): New constructor.
5599         (not): Rewritten using version from Kawa's BitOps class.
5600         (valueOf): New private methods from Kawa's BitOps class.
5601         (swappedOp): ditto.
5602         (bitOp): ditto.
5603         (setBitOp): ditto.
5604         (and): Implemented.
5605         (or): Implemented.
5606         (xor): Implemented.
5607         (andNot): Implemented.
5608         (clearBit): Implemented.
5609         (setBit): Implemented.
5610         (bitCount): Implemented.
5611         (toByteArray): Implemented.
5612
5613 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5614
5615         * java/io/File.java (nextValue): Now synchronized.
5616
5617 2000-02-10  Tom Tromey  <tromey@cygnus.com>
5618
5619         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5620         * java/io/FileDescriptor.java (EXCL): New static field.
5621         * java/io/File.java (tmpdir): New static field.
5622         (createTempFile): New method.
5623         (nextValue): New method.
5624         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5625         property.
5626
5627         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5628         (jboolean): Declare as an attributed int, not a bool.
5629         (_Jv_func): Declare differently for C.
5630
5631         * gnu/gcj/jni/natNativeThread.cc: New file.
5632         * gnu/gcj/jni/NativeThread.java: New file.
5633         * java/lang/Thread.java (data): Now a RawData.
5634         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5635         Declare.
5636         * Makefile.in: Rebuilt.
5637         * Makefile.am (java/lang/Thread.h): New target.
5638         (ordinary_java_source_files): Added NativeThread.java.
5639         (nat_source_files): Added natNativeThread.cc.
5640         * java/lang/natThread.cc: Include <jni.h>
5641         (struct natThread): Added `jni_env' field.
5642         (_Jv_GetCurrentJNIEnv): New function.
5643         (_Jv_SetCurrentJNIEnv): Likewise.
5644         (initialize_native): Initialize jni_env.
5645         Include RawData.h.
5646         * jni.cc (ThreadGroupClass): New define.
5647         (_Jv_JNI_InvokeFunctions): New structure.
5648         (JNI_GetCreatedJavaVMs): New function.
5649         (the_vm): New global.
5650         (JNI_GetDefaultJavaVMInitArgs): New function.
5651         Include NativeThread.h.
5652         (NativeThreadClass): New define.
5653         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5654         (_Jv_JNI_DestroyJavaVM): New function.
5655         (_Jv_JNI_AttachCurrentThread): New function.
5656         (_Jv_JNI_DetachCurrentThread): New function.
5657         (_Jv_JNI_GetEnv): New function.
5658         (JNI_CreateJavaVM): New function.
5659         (_Jv_JNI_GetJavaVM): New function.
5660         (_Jv_JNIFunctions): Added entry for GetJavaVM.
5661         * include/jni.h (JavaVMAttachArgs): New structure.
5662         (JNI_EDETACHED): New define.
5663         (JNI_EVERSION): Likewise.
5664         (JavaVM): Define properly.
5665         (struct JNIInvokeInterface): New structure.
5666         (class _Jv_JavaVM): New class.
5667         (JNI_OnLoad, JNI_OnUnload): Declare.
5668         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5669         JNI_GetCreatedJavaVMs): Declare.
5670         (JavaVMInitArgs): New typedef.
5671         (JavaVMOption): Likewise.
5672         (JNI_ERR): New define.
5673         (JNI_OK): Likewise.
5674
5675 2000-02-10  Andrew Haley  <aph@cygnus.com>
5676
5677         * interpret.cc: Don't include fdlibm.h.
5678         Replace #if with #ifdef throughout.
5679         Declare extern __ieee754_fmod.
5680         (continue1): Remove op_getfield, op_getstatic, op_putfield,
5681         op_putstatic insns.
5682         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5683         Search class hierarchy for superclass vtable.
5684
5685         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5686         off the end of a pointer list.
5687
5688         * java/lang/natThread.cc (stop): Don't abort, throw an exception
5689         instead.
5690         (suspend): Ditto.
5691
5692 2000-02-09  Tom Tromey  <tromey@cygnus.com>
5693
5694         * java/lang/natRuntime.cc (_load): Call add_library.
5695         (loadLibraryInternal): Likewise.
5696
5697         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5698         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
5699         (Output_iconv::finalize): Likewise.
5700
5701 2000-02-08  Tom Tromey  <tromey@cygnus.com>
5702
5703         * java/util/Properties.java (setProperty): New method.
5704         (store): New method.
5705
5706 2000-02-07  Tom Tromey  <tromey@cygnus.com>
5707
5708         * java/lang/Runtime.java (_load): Declare.
5709         (load, loadLibrary): Wrote in terms of _load.
5710         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5711         library.
5712         (loadLibrary): Likewise.
5713         Include <jni.h>.
5714         (_load): New method.
5715         (loadLibrary, load): Removed.
5716
5717         * jni.cc (ThrowableClass): New define.
5718         (_Jv_JNI_Throw): Check argument.
5719         (_Jv_JNI_ThrowNew): Likewise.
5720         (wrap_value): Don't wrap object if it is NULL.
5721         (_Jv_JNI_DefineClass): Use wrap_value.
5722         (_Jv_JNI_FindClass): Likewise.
5723         (_Jv_JNI_GetSuperclass): Likewise.
5724         (_Jv_JNI_ExceptionOccurred): Likewise.
5725         (_Jv_JNI_AllocObject): Likewise.
5726         (_Jv_JNI_GetObjectClass): Likewise.
5727         (_Jv_JNI_NewString): Likewise.
5728         (_Jv_JNI_NewStringUTF): Likewise.
5729         (_Jv_JNI_NewObjectArray): Likewise.
5730         (_Jv_JNI_GetObjectArrayElement): Likewise.
5731         (_Jv_JNI_NewPrimitiveArray): Likewise.
5732         (_Jv_JNI_ToReflectedField): Likewise.
5733         (_Jv_JNI_ToReflectedMethod): Likewise.
5734         (_Jv_JNI_AllocObject): Check argument.
5735         (_Jv_JNI_NewObjectV): Likewise.
5736         (_Jv_JNI_NewObject): Likewise.
5737         (_Jv_JNI_NewObjectA): Likewise.
5738         (_Jv_JNI_GetObjectClass): Likewise.
5739         (_Jv_JNI_GetField): Likewise.
5740         (_Jv_JNI_SetField): Likewise.
5741
5742         * interpret.cc (PUSHL): Don't use expression statement.
5743         (PUSHD): Likewise.
5744         (LOADL): Likewise.
5745         (STOREL): Likewise.
5746
5747         * jni.cc (add_char): Conditional on INTERPRETER.
5748         (mangled_name): Likewise.
5749         (call): Likewise.
5750         * include/java-interp.h (class _Jv_MethodBase): Conditional on
5751         INTERPRETER.
5752         (class _Jv_JNIMethod): Likewise.
5753
5754 2000-02-04  Warren Levy  <warrenl@cygnus.com>
5755
5756         * Makefile.am: Added MPN.java and BigInteger.java.
5757         * Makefile.in: Rebuilt.
5758         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
5759         <per@bothner.com>.
5760         * java/math/BigInteger.java: New file.  Based primarily on
5761         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5762
5763 2000-02-04  Tom Tromey  <tromey@cygnus.com>
5764
5765         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5766         pointers.
5767         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
5768         if the method is native.
5769         * resolve.cc (ncode): Don't handle native methods.
5770         (_Jv_JNIMethod::ncode): New method.
5771         (_Jv_PrepareClass): Handle native methods.
5772         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5773         Include AbstractMethodError.h.
5774         (add_char): New function.
5775         (mangled_name): Likewise.
5776         * include/java-interp.h (class _Jv_JNIMethod): New class.
5777         (class _Jv_MethodBase): New class.
5778         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5779         (_Jv_InterpClass): Changed `interpreted_methods' field to type
5780         `_Jv_MethodBase'.
5781
5782         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5783         * java/lang/natRuntime.cc (libraries_size, libraries_count,
5784         libraries): New globals.
5785         (add_library): New function.
5786         (_Jv_FindSymbolInExecutable): New function.
5787
5788         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5789         Now static.
5790
5791 2000-02-04  Andrew Haley  <aph@cygnus.com>
5792
5793         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5794         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5795         * java/lang/natThrowable.cc (printRawStackTrace): Rename
5796         printStackTrace to printRawStackTrace.
5797
5798 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5799
5800         * java/util/Calendar.java (toString): New method.
5801         * java/util/SimpleTimeZone.java (clone): New method.
5802         (toString): New method.
5803         * java/util/TimeZone.java (clone): New method.
5804         * java/text/SimpleDateFormat.java (clone): New method.
5805         * java/text/NumberFormat.java (clone): New method.
5806         (equals): New method.
5807         * java/text/Format.java (clone): New method.
5808         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5809         constructor.
5810         (clone): New method.
5811         * java/text/DateFormat.java (clone): New method.
5812         * java/text/Collator.java (clone): New method.
5813
5814 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5815
5816         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5817         method.
5818
5819 2000-02-01  Tom Tromey  <tromey@cygnus.com>
5820
5821         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5822         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5823         constructing the closure if the function is native.
5824         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
5825         a template function, #if'd out, or static.
5826         Include <java-interp.h>.
5827
5828         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5829
5830         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5831
5832         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5833         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5834         `locals == NULL'.
5835         (wrap_value): New function.
5836         (_Jv_JNI_CallAnyMethodV): Use it.
5837         (_Jv_JNI_CallAnyMethodA): Likewise.
5838         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5839         (_Jv_JNI_GetStaticField): Likewise.
5840
5841         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5842         (_Jv_JNI_GetStaticField): Likewise.
5843
5844 2000-01-31  Tom Tromey  <tromey@cygnus.com>
5845
5846         * prims.cc (_Jv_MallocUnchecked): New function.
5847         (main_init): Call _Jv_JNI_Init.
5848         * include/jvm.h (_Jv_MallocUnchecked): Declare.
5849         (_Jv_JNI_Init): Declare.
5850         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5851         <string.h>.
5852         (_Jv_JNI_NewGlobalRef): New function.
5853         (_Jv_JNI_DeleteGlobalRef): New function.
5854         (_Jv_JNI_DeleteLocalRef): New function.
5855         (_Jv_JNI_conversion_call): Initialize and clear local reference
5856         frame.
5857         (_Jv_JNI_NewLocalRef): New function.
5858         (struct _Jv_JNI_LocalFrame): New structure.
5859         (_Jv_JNI_PushLocalFrame): New function.
5860         (_Jv_JNI_EnsureLocalCapacity): New function.
5861         (FRAME_SIZE): New define.
5862         (_Jv_JNI_GetStringChars): Mark string, not characters.
5863         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5864         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5865         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5866         elements.
5867         (_Jv_JNI_DefineClass): Make return value a local ref.
5868         (_Jv_JNI_FindClass): Likewise.
5869         (_Jv_JNI_GetSuperclass): Likewise.
5870         (_Jv_JNI_ExceptionOccurred): Likewise.
5871         (_Jv_JNI_AllocObject): Likewise.
5872         (_Jv_JNI_GetObjectClass): Likewise.
5873         (_Jv_JNI_CallAnyMethodV): Likewise.
5874         (_Jv_JNI_NewString): Likewise.
5875         (_Jv_JNI_NewStringUTF): Likewise.
5876         (_Jv_JNI_NewObjectArray): Likewise.
5877         (_Jv_JNI_GetObjectArrayElement): Likewise.
5878         (_Jv_JNI_ToReflectedField): Likewise.
5879         (_Jv_JNI_ToReflectedMethod): Likewise.
5880         (_Jv_JNIFunctions): Updated table for new functions.
5881         (_Jv_JNI_Init): New function.
5882         (mark_for_gc): Wrote.
5883         (unmark_for_gc): Wrote.
5884         * include/jni.h (struct JNINativeInterface): Removed name from
5885         PopLocalFrame parameter.
5886         (class _Jv_JNIEnv): Added `locals' field.
5887
5888 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
5889
5890         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5891         (write): Ditto.
5892
5893 2000-01-30  Tom Tromey  <tromey@cygnus.com>
5894
5895         * include/config.h.in: Rebuilt.
5896         * acconfig.h (HAVE_ICONV): Define.
5897         * configure: Rebuilt.
5898         * configure.in: Check for `iconv' function.
5899         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5900         no specific encoder exists.
5901         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5902         no specific encoder exists.
5903         * Makefile.in: Rebuilt.
5904         * Makefile.am (convert_source_files): Mention Input_iconv.java and
5905         Output_iconv.java.
5906         (nat_source_files): Added natIconv.cc.
5907         * gnu/gcj/convert/natIconv.cc: New file.
5908         * gnu/gcj/convert/Input_iconv.java: New file.
5909         * gnu/gcj/convert/Output_iconv.java: New file.
5910
5911 2000-01-28  Tom Tromey  <tromey@cygnus.com>
5912
5913         * Makefile.in: Rebuilt.
5914         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5915
5916 2000-01-26  Tom Tromey  <tromey@cygnus.com>
5917
5918         * gcj/method.h (JvNumMethods): Moved from Class.h.
5919         (JvGetFirstMethod): Likewise.
5920         * java/lang/Class.h (Object): Updated decl of
5921         _Jv_JNI_ToReflectedField.
5922         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5923         * Makefile.in: Rebuilt.
5924         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5925         argument of _Jv_JNI_ToReflectedField.
5926         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5927         as a friend.
5928         (java/lang/reflect/Method.h): Likewise.
5929         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
5930         __GCJ_JNI_IMPL__.
5931         (jweak): New typedef.
5932         (struct JNINativeInterface): Correctly declare remaining entries.
5933         * jni.cc: Include Class.h, ClassLoader.h.
5934         (_Jv_JNI_FindClass): New function.
5935         (_Jv_JNI_DefineClass): New function.
5936         (_Jv_JNI_conversion_call): New function.
5937         (_Jv_JNI_FindClass): Use current class loader to find class.
5938         (_Jv_JNI_ExceptionCheck): New function.
5939         (_Jv_JNI_FromReflectedField): Now static.
5940         (MethodClass): New define.
5941         (_Jv_JNI_FromReflectedMethod): New function.
5942         (_Jv_JNI_ToReflectedMethod): Likewise.
5943         Include Method.h.
5944         (_Jv_JNI_IsAssignableFrom): Renamed.
5945         (_Jv_JNI_GetStringRegion): New function.
5946         Include StringIndexOutOfBoundsException.h.
5947         (_Jv_JNI_GetStringUTFRegion): New function.
5948         (_Jv_JNIFunctions): Updated for new functions.
5949         (_Jv_JNI_GetPrimitiveArrayCritical): New function
5950         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5951         (_Jv_JNI_GetStringCritical): New function.
5952         (_Jv_JNI_ReleaseStringCritical): Likewise.
5953         (get_throwable): Removed.
5954         (GCJ_JV_JNIENV_FRIEND): Removed.
5955         (__GCJ_JNI_IMPL__): Define.
5956         Include method.h.
5957
5958         * resolve.cc (get_ffi_type_from_signature): Handle case where
5959         boolean is an int.
5960
5961 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
5962
5963         * interpret.cc (run): Don't call println.
5964         Don't include PrintStream.h.
5965
5966         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5967         nameIndex.  Use "jint" as type for boffset.
5968         * java/lang/Class.h (struct _Jv_Method): Made accflags a
5969         _Jv_ushort.
5970         (Class): Likewise.  Also changed type of method_count,
5971         vtable_method_count, size_in_bytes, field_count,
5972         static_field_count, interface_count.
5973         * gcj/array.h (__JArray): Made `length' a const jsize, not an
5974         int.
5975
5976 2000-01-21  Tom Tromey  <tromey@cygnus.com>
5977
5978         * java/lang/reflect/natConstructor.cc (newInstance): Use
5979         _Jv_CallAnyMethodA.
5980         * include/jvm.h: Declare _Jv_CallAnyMethodA.
5981         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5982         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
5983         Include <jni.h>.
5984         (COPY): Removed.
5985         (invoke): Use _Jv_CallAnyMethodA.
5986         (VAL): Redefined.
5987         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5988         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5989         functions.
5990         (struct _Jv_Method): Added getNextMethod method.
5991         (JvNumMethods): New function.
5992         (JvGetFirstMethod): Likewise.
5993         * gcj/field.h (JvGetFirstStaticField): New function.
5994         (JvNumStaticFields): Likewise.
5995         (getNextField): Renamed from getNextInstanceField.
5996         (struct _Jv_Field): New method getClass.
5997         * jni.cc: Wrote many new functions.
5998         * include/jni.h (JNI_TRUE): Define.
5999         (JNI_FALSE): Likewise.
6000         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6001         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6002         jcharArray, jfloatArray, jdoubleArray): New typedefs.
6003         (jfieldID, jmethodID): Likewise.
6004         (JNI_COMMIT, JNI_ABORT): New defines.
6005         (JNINativeMethod): New struct.
6006         (struct JNINativeInterface): Correctly declared more entries.
6007         (class _Jv_JNIEnv): Added `ex' member.
6008         (JNI_VERSION_1_1): New define.
6009         (JNI_VERSION_1_2): Likewise.
6010
6011         * boehm.cc (_Jv_MarkObj): Use getNextField, not
6012         getNextInstanceField.
6013
6014 2000-01-20  Tom Tromey  <tromey@cygnus.com>
6015
6016         * resolve.cc (StringClass): Removed.
6017         * defineclass.cc (StringClass): Removed.
6018
6019 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
6020
6021         * NEWS: updated.
6022
6023 2000-01-19  Tom Tromey  <tromey@cygnus.com>
6024
6025         * interpret.cc (PC_REGISTER_ASM): Removed.
6026
6027         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6028         From Bryce McKinlay.
6029
6030         * All files: Updated copyright to reflect Cygnus purchase.
6031
6032 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
6033
6034         * configure: Rebuilt.
6035         * configure.in: Recognize --disable-interpreter.
6036
6037 2000-01-18  Andrew Haley  <aph@cygnus.com>
6038
6039         * name-finder.cc (lookup): Check for dladdr function.
6040         acconfig.h (HAVE_DLADDR): Add.
6041         configure.in: Check for HAVE_DLADDR
6042         configure: Rebuilt.
6043         include/config.h.in:  Rebuilt.
6044
6045 2000-01-17  Andrew Haley  <aph@cygnus.com>
6046
6047         * prims.cc (_Jv_RunMain): Set the name of this executable.
6048
6049 2000-01-17  Tom Tromey  <tromey@cygnus.com>
6050
6051         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6052         when backtrace can't be computed.
6053
6054         * configure: Rebuilt.
6055         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6056
6057         * java/lang/Runtime.java (loadLibraryInternal): Declare.
6058         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6059         (_Jv_FindClassInCache): Likewise.
6060         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6061         (findSystemClass): Try to load class from compiled module.
6062         Include Runtime.h.
6063         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6064         (loadLibrary): Likewise.
6065         (lt_preloaded_symbols): Define.
6066         (loadLibraryInternal): New method.
6067         * include/config.h.in: Rebuilt.
6068         * acconfig.h (USE_LTDL): Added.
6069         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6070         (INCLUDES): Added $(INCLTDL).
6071         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6072         (libgcj_la_LIBADD): Likewise.
6073         * aclocal.m4, configure: Rebuilt.
6074         * configure.in: Added libltdl support.
6075
6076 2000-01-15  Tom Tromey  <tromey@cygnus.com>
6077
6078         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6079
6080 2000-01-14  Andrew Haley  <aph@cygnus.com>
6081
6082         * java/lang/natThrowable.cc: New file.
6083
6084         * java/lang/Throwable.java (fillInStackTrace): Make native.
6085         (printStackTrace): Call native method to do this.
6086         (Throwable): Call fillInStackTrace.
6087         (stackTrace): New variable.
6088
6089         * include/jvm.h: Add _Jv_ThisExecutable functions.
6090
6091         * prims.cc: (_Jv_execName): New variable.
6092         (catch_segv): Call fillInStackTrace.
6093         (catch_fpe): Ditto.
6094         (_Jv_ThisExecutable): New functions.
6095         (JvRunMain): Set the name of this executable.
6096
6097         * Makefile.am: Add java/lang/natThrowable.cc.
6098         Add name-finder.cc.
6099         * Makefile.in: Rebuilt.
6100
6101         * acconfig.h: Add HAVE_PROC_SELF_EXE.
6102
6103         * configure.in: Force link with __frame_state_for in
6104         FORCELIBGCCSPEC.  Add new checks for backtrace.
6105         * include/config.h.in: Rebuilt.
6106
6107         * name-finder.cc: New file.
6108         * include/name-finder.h: New file.
6109
6110 2000-01-16  Anthony Green  <green@cygnus.com>
6111
6112         * java/lang/StringBuffer.java (StringBuffer): Don't special case
6113         null argument.
6114
6115 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
6116
6117         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6118
6119 2000-01-13  Tom Tromey  <tromey@cygnus.com>
6120
6121         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6122         not system loader, as initiating loader.
6123
6124 2000-01-11  Tom Tromey  <tromey@cygnus.com>
6125
6126         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6127         HP/UX.  From David Scott Urban.
6128
6129 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
6130
6131         * java/lang/natMath.cc (pow): Cast args to `double', not
6132         `jdouble'.
6133         (atan2): Likewise.
6134         (IEEEremainder): Likewise.
6135         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6136         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6137
6138 2000-01-09  Anthony Green  <green@cygnus.com>
6139
6140         * java/lang/natString.cc (init): Test for overflow condition
6141         during out of bounds check.
6142         (getChars): Throw StringIndexOutOfBoundsException, not
6143         ArrayIndexOutOfBoundsException.
6144         (getBytes): Ditto.
6145         (regionMatches): Obey case option during string comparison.
6146
6147         * configure.host (ligcj_interpreter): New variable.  Enable
6148         interpreter by default on IA-32.
6149         * configure.in:  Examine libgcj_interpreter.
6150         * configure: Rebuilt.
6151
6152 2000-01-07  Tom Tromey  <tromey@cygnus.com>
6153
6154         * mauve-libgcj: Don't disable ClassTest.
6155
6156         * java/lang/natClass.cc (getClasses): Wrote.
6157
6158 2000-01-06  Tom Tromey  <tromey@cygnus.com>
6159
6160         * java/lang/natClass.cc (_getConstructors): Correctly check
6161         whether method name is the init name.
6162         (getMethod): Look at accflags on method in `klass', not `this'.
6163
6164 2000-01-05  Tom Tromey  <tromey@cygnus.com>
6165
6166         * java/lang/natClass.cc (getMethod): Compute offset relative to
6167         `klass's methods table, not `this's table.
6168
6169         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6170         In unwrapping/widening case, check whether `k' is null, not
6171         whether it is primitive.  Initialize `num' from `argelts', not
6172         `paramelts'.  Correct create and pass arguments to ffi_call.
6173         Don't let presence of `this' argument affect index used to look in
6174         argument arrays.
6175         (COPY): Set appropriate element in `values' vector.
6176
6177         * java/lang/natClass.cc: Include <gcj/method.h>.
6178
6179         * java/lang/Class.h (_getMethods): Correctly declare as private,
6180         not public.
6181
6182         * java/lang/Class.h (_getMethods): Declare.
6183         * java/lang/Class.java (_getMethods): Declare.
6184         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6185         (getDeclaredClasses): Always return empty array.
6186         (_getMethods): New method.
6187         (getMethods): Wrote.
6188         (getDeclaredMethod): Return `rmethod'.
6189         (finit_name): New global.
6190         (getDeclaredMethods): Check for finit_name.
6191         (_getMethods): Likewise.
6192         (getMethod): Only return public methods.
6193
6194         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6195         jboolean and select correct ffi type on that basis.
6196         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6197         Constructor call always has `void' return type.
6198
6199 2000-01-04  Tom Tromey  <tromey@cygnus.com>
6200
6201         * java/lang/Class.h (getSignature): Updated.
6202         * java/lang/Class.java (getSignature): Updated.
6203         * java/lang/natClass.cc (getSignature): Added `is_constructor'
6204         argument.
6205         (getConstructor): Ensure constructor is public.
6206         (_getConstructors): Check for public-ness of constructor when
6207         `declared' is false, not when it is true.
6208
6209 2000-01-04  Warren Levy  <warrenl@cygnus.com>
6210
6211         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6212         comment.
6213         (receive): Set the sender's address in the DatagramPacket.
6214
6215 2000-01-04  Tom Tromey  <tromey@cygnus.com>
6216
6217         * java/lang/reflect/natConstructor.cc (newInstance): Pass
6218         declaring class as return_type argument to
6219         _Jv_CallNonvirtualMethodA.
6220         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6221         constructor case, create object and use it as `this' argument.
6222         * java/lang/Class.h (_getConstructors): Declare.
6223         (_getFields): Declare.
6224         * java/lang/Class.java (getConstructors): Wrote.
6225         (_getConstructors): New native method.
6226         (getDeclaredConstructors): Wrote.
6227         (_getFields): Declare new native method.
6228         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6229         incorrect comment.
6230         (getMethod): Work correctly when class is primitive.
6231         (getDeclaredMethods): Likewise.  Compute offset using `method',
6232         not `mptr'.
6233         (getDeclaredMethod): Likewise.
6234         (getConstructor): Wrote.
6235         (ConstructorClass): New define.
6236         (getDeclaredConstructor): Wrote.
6237         (_getConstructors): New method.
6238         (_getFields): New method.
6239         (getFields): Wrote.
6240
6241         * Makefile.in: Rebuilt.
6242         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6243
6244         * prims.cc: Remove `#pragma implementation'.
6245         * gcj/array.h: Remove `#pragma interface'.
6246
6247         * prims.cc (_Jv_equaln): New function.
6248         * java/lang/Class.java (getSignature): Declare.
6249         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6250         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6251         resolve.cc.
6252         (getSignature): New method.
6253         (getDeclaredMethod): Wrote.
6254         (getMethod): Wrote.
6255         Include StringBuffer.h.
6256         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6257         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
6258         a friend.
6259         (getSignature): Declare.
6260         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6261         (_Jv_equaln): Declare.
6262         (_Jv_CallNonvirtualMethodA): Declare.
6263         * Makefile.in: Rebuilt.
6264         * Makefile.am (nat_source_files): Added natConstructor.cc.
6265         (java/lang/reflect/Constructor.h): New target.
6266         * java/lang/reflect/natConstructor.cc: New file.
6267         * java/lang/reflect/Constructor.java (newInstance): Now native.
6268         (declaringClass): Renamed from decl_class.
6269         (offset): Renamed from index.
6270         (getType): New native method.
6271         (getModifiers): Now native.
6272         (getParameterTypes): Call getType if required.
6273         (hashCode): Include hash code from declaring class.
6274         (modifiers): Removed.
6275         (toString): Call getType if required.
6276         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6277         * java/lang/reflect/natMethod.cc (hack_call): New method.
6278         Removed `#if 0' around FFI code.
6279         Include <gnu/gcj/RawData.h>.
6280         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
6281         IllegalArgumentException when argument object and class disagree.
6282         (_Jv_GetTypesFromSignature): New function.
6283         (getType): Use it.
6284         (ObjectClass): New define.
6285         (_Jv_CallNonvirtualMethodA): New function.
6286         * java/lang/reflect/Method.java (hack_trampoline): New method.
6287         (hack_call): New native method.