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