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