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