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