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