OSDN Git Service

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