1 2001-05-23 Tom Tromey <tromey@redhat.com>
3 Revert patch of 2001-05-21:
4 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
5 (libgcj_la_LIBADD): Likewise.
6 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
7 (libgcjx_la_LIBADD): Likewise.
9 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
10 * gcj/Makefile.in: Rebuilt.
11 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
12 * gcj/javaprims.h: Include gcj/libgcj-config.h.
13 * gcj/libgcj-config.h.in: New file.
14 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
16 * configure.in: Enable hash synchronization by default on some
18 (HASH_SYNC_SPEC): New subst.
19 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
20 Correctly use `test -z' instead of `test -n' in a couple places.
21 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
23 * configure.host (enable_java_net_default): Initialize.
24 (enable_hash_synchronization_default): New variable.
26 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
28 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
29 synchronization in use.
30 (_Jv_MarkArray): Likewise.
31 (_Jv_AllocBytes): Don't check return result.
32 (handle_out_of_memory): New function.
33 (_Jv_InitGC): Set GC_oom_fn.
34 (trace_one_vtable): New global.
35 (_Jv_AllocTraceOne): New function.
36 * configure.in: Added --enable-hash-synchronization.
37 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
38 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
39 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
40 (_Jv_AllocArray): Likewise.
41 (_Jv_AllocBytes): Likewise.
42 (_Jv_AllocPtrFreeObject): New function.
43 (_Jv_AllocTraceOne): Likewise.
44 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
46 (self_cache): New global.
47 (_Jv_ThreadSelf_out_of_line): New function.
48 * prims.cc (_Jv_AllocBytesChecked): Removed.
49 (_Jv_ThrowNoMemory): New function.
50 (_Jv_AllocObject): Don't check for null return from allocator.
51 (_Jv_NewObjectArray): Likewise.
52 (_Jv_AllocPtrFreeObject): New function.
53 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
54 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
55 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
56 * include/boehm-gc.h (_Jv_AllocObj): Define.
57 (_Jv_AllocPtrFreeObj): Define.
58 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
59 (_Jv_ThrowNoMemory): Declare.
60 (_Jv_AllocTraceOne): Declare.
61 (_Jv_AllocBytesChecked): Removed.
62 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
63 _Jv_MutexUnlock): Handle LOCK_DEBUG.
64 (_Jv_ThreadSelf): Handle case where system pthread_self() is
66 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
68 * java/lang/Object.h (sync_info): Conditional upon presence of
70 * java/lang/natObject.cc: Much new code to handle thin locks and
72 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
75 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
77 * gij.cc (version): Update copyright year.
79 2001-05-22 Anthony Green <green@redhat.com>
81 * configure.in: Tweak canadian cross test, and don't redefine GCJ
84 2001-05-21 Per Bothner <per@bothner.com>
86 Implement invocation interface; don't create new thread for main.
87 * java/lang/Thread.java (gen_name): Make native.
88 (<init>(Thread,THreadGroup,Runnable,String)): New private
89 constructor, used by other constructors, and _Jv_AttachCurrentThread.
90 * java/lang/natThread.cc (gen_name): New implementation.
91 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
92 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
93 (_Jv_CreateJavaVM): New runtime initialization procedure.
94 (runFirst): New proecdure - mostly code from old FirstThread::run.
95 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
96 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
97 JvDetachCurrentThread): New inline wrappers.
98 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
99 _Jv_DetachCurrentThread): New declarations.
100 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
101 (getMain): new static method.
102 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
103 by runFirst in prims.cc.
104 (java/lang/Thread.h): Update for new invocation interface.
105 * include/posix-threads.h (_Jv_ThreadRegister,
106 _Jv_ThreadUnRegister): New declarations.
107 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
108 (really_start): Use new _Jv_ThreadRegister.
109 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
110 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
111 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
112 Complain of called when _Jv_OnlyThread already set.
113 (_Jv_ThreadStart): Always JvFail.
114 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
115 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
116 * win32-threads.cc (struct starter): Remove objet field -
117 we use _Jv_Thread_t's new thread_obj field instead.
118 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
119 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
120 (really_start): Use new _Jv_ThreadRegister.
121 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
122 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
123 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
124 Removed - no longer needed with new invocation interface.
125 * Makefile.am: Update for removed/added files.
127 2001-05-21 Per Bothner <per@bothner.com>
129 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
130 (libgcj_la_LIBADD): Likewise.
131 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
133 2001-05-21 Per Bothner <per@bothner.com>
135 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
136 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
137 taken from old Integer.toString code.
138 (Integer::valueOf): Use _Jv_FormatInt.
139 * java/lang/Integer.java (toString): Just use call String.valueOf.
140 * java/lang/Long.java (toString): Fix typo in comment.
141 * java/lang/String.java (valueOf(int)): Make native.
142 * java/lang/StringBuffer.java (append(int)): Make native.
143 * java/lang/natStringBuffer.cc: New file, for append(jint).
144 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
146 2001-05-21 Tom Tromey <tromey@redhat.com>
148 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
150 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
152 * include/dwarf2-signal.h: New file.
153 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
154 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
155 * configure: Rebuilt.
157 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
159 * configure.in: Update boehm-gc include dir for new GC version.
160 * configure: Rebuilt.
161 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
163 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
164 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
165 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
168 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
170 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
171 (_Jv_MutexInit): Likewise.
173 2001-05-18 Tom Tromey <tromey@redhat.com>
175 * Makefile.in: Rebuilt.
176 * Makefile.am (awt_java_source_files): Added Polygon.java.
178 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
180 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
181 * gcj/javaprims.h: ... here.
182 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
184 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
186 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
187 with length of ioffset table.
188 (_Jv_IsAssignableFrom): Likewise.
190 2001-05-17 Per Bothner <per@bothner.com>
192 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
194 2001-05-16 Tom Tromey <tromey@redhat.com>
196 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
199 2001-05-15 Tom Tromey <tromey@redhat.com>
201 * java/util/GregorianCalendar.java (computeTime): Only call
204 2001-05-14 Tom Tromey <tromey@redhat.com>
206 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
207 ZONE_OFFSET just before computing the time.
209 2001-05-12 Zack Weinberg <zackw@stanford.edu>
211 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
212 * Makefile.in: Regenerate (by hand).
213 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
214 * doc/cni.sgml: Document #pragma GCC java_exceptions.
216 2001-05-11 Richard Henderson <rth@redhat.com>
218 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
219 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
221 2001-05-11 Richard Henderson <rth@redhat.com>
223 * exception.cc: Include unwind-pe.h. Remove all pointer
226 2001-05-10 Tom Tromey <tromey@redhat.com>
228 * Makefile.in: Rebuilt.
229 * Makefile.am (awt_java_source_files): Added Polygon.java.
230 * java/awt/Polygon.java: New file.
232 * java/awt/geom/AffineTransform.java
233 (setToRotation(double,double,double)): New method.
234 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
235 (setToShear): Likewise.
237 2001-05-10 Tom Tromey <tromey@redhat.com>
239 * java/util/GregorianCalendar.java: Imported from Classpath.
240 * gnu/java/locale/LocaleInformation_nl.java: New file from
242 * gnu/java/locale/LocaleInformation_en.java: Likewise.
243 * gnu/java/locale/LocaleInformation_de.java: Likewise.
244 * gnu/java/locale/LocaleInformation.java: Likewise.
245 * natGregorianCalendar.cc: Removed.
246 * Makefile.in: Rebuilt.
247 * Makefile.am (nat_source_files): Removed
248 natGregorianCalendar.cc.
250 2001-05-10 Tom Tromey <tromey@redhat.com>
252 * java/text/SimpleDateFormat.java (computeCenturyStart): New
254 (defaultCenturyStart): Use it.
255 (readObject): Likewise.
256 (SimpleDateFormat): Clear the calendar. Set the grouping on the
258 (parse): Copy the calendar before modifying it. Correctly handle
261 * java/util/Calendar.java (clear): Set field value(s) to 0.
263 2001-05-10 Jeff Sturm <jsturm@one-point.com>
265 * Calendar.java (get): Clear areFieldsSet if requested field
267 (set): Unset fields that depend on new value.
269 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
271 * java/lang/Class.h (_Jv_Self): New union type.
272 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
273 Jeff Sturm and Fergus Henderson.
275 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
277 * java/lang/ClassLoader.java: Remove dead code fragment.
279 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
281 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
283 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
285 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
287 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
288 * configure.host (EXCEPTIONSPEC): New.
289 * configure.in (EXCEPTIONSPEC): New.
290 * configure: Rebuilt.
292 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
294 * doc/*.texi: Remove generated documentation.
296 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
298 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
299 (performDelete): Fix #endif placement.
301 2001-04-27 Zack Weinberg <zackw@stanford.edu>
303 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
304 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
305 (_Jv_ThreadDestroyData): Use _Jv_Free.
306 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
309 2001-04-27 Tom Tromey <tromey@redhat.com>
311 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
313 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
315 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
317 * include/jni.h (struct JNINativeInterface): Fixed types in
318 Get/Set*ArrayRegion declarations.
319 (class _Jv_JNIEnv): Likewise.
321 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
323 * configure.in: Obtain THREADS with `gcc -v'.
324 * configure: Rebuilt.
326 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
329 * java/io/ObjectStreamClass.java (setClass): Calculate
330 serialVersionUID for local class and compare it against the UID
331 from the Object Stream. Throw InvalidClassException upon mismatch.
332 (setUID): Renamed to...
333 (getClassUID): this. Return the calculated class UID rather than
334 setting uid field directly.
335 (getDefinedSUID): Removed.
336 * java/io/ObjectInputStream.java (resolveClass): Use the
337 three-argument Class.forName().
338 * java/io/InvalidClassException (toString): Don't include classname in
339 result if it is null.
341 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
343 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
344 Wrap use of inet_pton in HAVE_INET6.
346 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
348 java.security merge and ClassLoader compliance fixes.
350 * java/lang/Class.h (Class): Include ProtectionDomain.h.
351 New protectionDomain field.
352 (forName): Add initialize parameter. Fixes declaration to comply with
354 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
355 variant. Honour "initialize" flag.
356 (getProtectionDomain0): New method.
357 * java/lang/Class.java: Fix forName() declaration.
358 (getPackage): New method based on Classpath implementation.
359 (getProtectionDomain0): New native method decl.
360 (getProtectionDomain): New method.
361 * java/lang/ClassLoader.java (getParent): Now final.
362 (definedPackages): New field.
364 (defineClass): New variant with protectionDomain argument.
365 (definePackage): New.
367 (findSystemClass): Now final.
368 (getSystemResourceAsStream): Remove redundant "final" modifier.
369 (getSystemResource): Remove redundant "final" modifier.
370 (getResources): Now final.
371 (protectionDomainPermission): New static field.
372 (unknownProtectionDomain): Ditto.
373 (defaultProtectionDomain): Ditto.
374 (getSystemClassLoader): Now non-native.
375 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
376 arguments for Class.forName().
377 * java/lang/Package.java: New file.
378 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
379 (instance): Static initialize singleton.
380 (findClass): Override this, not findSystemClass.
381 * java/lang/natClassLoader.cc (defineClass0): Set class's
382 protectionDomain field as specified.
383 (getSystemClassLoader): Removed.
384 (findClass): Renamed from findSystemClass. Call the interpreter via
385 URLClassLoader.findClass if loading class via dlopen fails.
387 * java/security/*.java: java.security import/merge with Classpath.
388 * java/security/acl/*.java: Likewise.
389 * java/security/interfaces/*.java: Likewise.
390 * java/security/spec/*.java: Likewise.
391 * java/net/NetPermission.java: Likewise.
392 * java/net/SocketPermission.java: Likewise.
393 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
395 * Makefile.am: Add new classes.
396 * Makefile.in: Rebuilt.
397 * gcj/javaprims.h: CNI namespace rebuild.
399 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
401 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
402 for libtool tests. Pre-create gnu/classpath/Configuration.java.
403 * configure: Rebuilt.
405 2001-04-21 Tom Tromey <tromey@redhat.com>
407 * Makefile.in: Rebuilt.
408 * Makefile.am (awt_java_source_files): Added Line2D.java.
409 * java/awt/geom/Line2D.java: Wrote.
411 * java/awt/Menu.java (addNotify): Wrote.
413 * java/awt/PopupMenu.java (addNotify): Implemented.
416 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
417 * java/awt/List.java (addNotify): Call super.addNotify.
418 * java/awt/Label.java (addNotify): Call super.addNotify.
419 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
420 * java/awt/Dialog.java (addNotify): Call super.addNotify.
421 * java/awt/Choice.java (addNotify): Call super.addNotify.
422 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
423 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
425 * java/awt/List.java (replaceItem): Notify peer.
427 * java/awt/geom/Rectangle2D.java
428 (Float.setRect(float,float,float,float)): New method.
430 * java/awt/event/ContainerEvent.java (getContainer): Now returns
433 * java/awt/RenderingHints.java (Key): Class now public.
435 * java/awt/Rectangle.java (Rectangle): Now implements
437 (getPathIterator): Removed.
439 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
442 * java/awt/FileDialog.java: Wrote.
444 * java/awt/EventQueue.java (isDispatchThread): Now public.
445 (invokeLater): Likewise.
447 * java/awt/Component.java (setCursor): Update peer.
448 (getFontMetrics): Use peer.
450 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
453 2001-04-20 Tom Tromey <tromey@redhat.com>
455 * java/awt/List.java: Wrote.
456 * java/awt/Dialog.java: Wrote.
458 2001-04-20 Warren Levy <warrenl@redhat.com>
460 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
461 * java/text/SimpleDateFormat.java
462 (indexInArray): Removed private method.
463 (processYear): Removed private method.
464 (parseLenient): Removed private method.
465 (parseLeadingZeros): Removed private method.
466 (parseStrict): Removed private method.
467 (expect): Added new private method.
468 (parse): Reverted to pre-Classpath merge version with minor fixes.
469 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
472 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
474 * java/io/File.java (normalizePath): New private method.
475 (File (String)): Use normalizePath().
476 (File (String, String)): Likewise.
478 * Makefile.am (libffi_files): Removed.
479 (libgcj.la): Link libffi as a convenience library instead of
480 refering to its object files directly.
481 * Makefile.in: Rebuilt.
483 2001-04-08 Per Bothner <per@bothner.com>
485 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
486 Recalculate hash, since Utf8Const's hash is only 16 bits.
488 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
489 bits of hash to calculate step for chaining.
491 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
492 when 2/3 full, rather than 3/4 full.
494 2001-04-06 Tom Tromey <tromey@redhat.com>
496 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
497 (wrap_value<T*>): New specialization.
498 (_Jv_JNI_PopLocalFrame): Update env->locals.
500 2001-04-05 Tom Tromey <tromey@redhat.com>
502 * libtool-version: Updated current.
504 2001-04-04 Andreas Jaeger <aj@suse.de>
506 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
507 * gcj/Makefile.in: Rebuilt.
508 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
509 * Makefile.in: Rebuilt.
510 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
511 * testsuite/Makefile.in: Rebuild.
512 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
513 * include/Makefile.in: Rebuild.
515 2001-04-02 Zack Weinberg <zackw@stanford.edu>
517 * testsuite/lib/libjava.exp: Correct typo: 'output from source
518 compiled test', not 'execution from source compiled test'.
519 Use UNTESTED, not XFAIL, for tests which are not run because
520 they depend on a previous test which failed.
522 2001-04-02 Richard Henderson <rth@redhat.com>
524 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
525 the same tree as gcc.
526 * configure: Rebuilt.
528 * exception.cc (_Jv_Throw): Clarify commentary.
530 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
532 * jni.cc (wrap_value<jclass>): New specialization.
534 2001-04-02 Tom Tromey <tromey@redhat.com>
536 * java/io/PrintStream.java (out): Removed field. Fixes PR
538 (write): Call flush, not out.flush, per spec.
539 (close): Flush output stream, per spec. Handle
540 InterruptedIOException.
541 (checkError): Likewise.
542 (flush, print, write): Handle InterruptedIOException per spec.
543 (PrintStream): Don't create BufferedOutputStream.
544 (work_bytes): New field.
545 (writeChars): Use work_bytes. Don't assume `out' is a
546 BufferedOutputStream.
548 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
550 * java/text/MessageFormat.java (setLocale): Added missing `else'.
553 2001-03-30 Tom Tromey <tromey@redhat.com>
555 * jni.cc (add_char): Correctly encode non-ascii characters.
556 (add_char): Define even when INTERPRETER not defined.
557 (mangled_name): Likewise.
558 (_Jv_GetJNIEnvNewFrame): Likewise.
559 (_Jv_LookupJNIMethod): Likewise.
561 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
563 * configure.host: Enable interpreter for PPC.
565 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
567 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
568 to "file.separator", "path.separator", and "java.io.tmpdir" property
570 * java/io/File.java: Likewise.
571 * java/io/natFile.cc (init_native): Likewise.
572 * java/io/natFileWin32.cc (init_native): Likewise.
574 2001-04-01 Per Bothner <per@bothner.com>
576 * java/lang/natString.cc (intern): If string's data does not point to
577 this String, make a fresh String that does.
579 * java/lang/natString.cc (unintern): Replace by static function.
580 * java/lang/String.java (unintern): Remove method.
582 2001-04-01 Per Bothner <per@bothner.com>
584 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
585 (finish): def.deflate needs to be called in a loop.
586 (inbuf, inbufLength): New private fields.
587 (write(int)): Use inbuf.
588 (write(byte[],int,int): Check if pending output in inbuf.
589 * ZipOutputStream.java: Don't use Deflater if stored.
590 Use a Checksum object directly, not via a CheckedOutputStream.
591 (uncompressed_size): New field,
592 (closeEntry): Only write data_directory if needed.
593 (write): If STORED, write directly.
594 Always update crc, and uncompressed_size.
595 (write_entry): Fix lots of protocol erors.
597 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
599 1.3-Compliant Implementation of java.io.File.
600 * java/lang/natSystem.cc (init_properties): Get "file.separator",
601 "path.separator", and "java.io.tmpdir" from the File class, instead
602 of setting them explicitly.
603 * java/io/File.java: Do not canonicalize paths for security manager
604 checks. Call init_native() from static initializer. Do not pass path
605 argument to native methods. New native method declarations. Some
606 security manager checks moved to checkWrite().
607 (equals): Check file system case sensitivity and act appropriatly.
608 (hashCode): Likewise.
609 (isHidden): New method implemented.
610 (performList): Changed prototype. Now takes a class argument specifying
611 the class of the returned array: Strings or File objects. Also added
613 (listFiles): New variants with "File" return type implemented.
614 (createTempFile): Use createNewFile(). Use maxPathLen.
615 (setReadOnly): New method implemented.
616 (listRoots): Likewise.
617 (compareTo): Likewise.
618 (setLastModified): Likewise.
619 (checkWrite): New method.
621 * java/io/natFile.cc: Various functions no longer take canonical path
623 (stat): Handle ISHIDDEN query.
624 (isAbsolute): Remove WIN32 cruft.
625 (performList): New arguments. Handle returning either File[] or String[]
626 arrays. Check with FileFilter or FilenameFilter arguments as
627 appropriate. Use an ArrayList, not a Vector, for the temporary list.
628 (performSetReadOnly): New method implemented.
629 (performListRoots): Likewise.
630 (performSetLastModified): Likewise.
631 (performCreate): Likewise.
632 (init_native): New initialization function.
633 * java/io/natFileWin32.cc: Various functions no longer take canonical
635 (stat): Add FIXME about ISHIDDEN query.
636 (performList): New arguments. Handle returning either File[] or String[]
637 arrays. Check with FileFilter or FilenameFilter arguments as
638 appropriate. Use an ArrayList, not a Vector, for the temporary list.
639 (performSetReadOnly): New. Stubbed.
640 (performListRoots): Likewise.
641 (performSetLastModified): Likewise.
642 (performCreate): Likewise.
643 (init_native) New initialization function.
644 * configure.in: Check for utime() and chmod().
645 * configure: Rebuilt.
646 * include/config.h.in: Rebuilt.
648 Resolves PR libgcj/1759.
650 2001-03-28 Richard Henderson <rth@redhat.com>
652 IA-64 ABI Exception Handling:
653 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
654 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
655 Remove EXCEPTIONSPEC.
656 * configure.host (libgcj_sjlj): Remove.
657 * configure.in (EXCEPTIONSPEC): Remove.
658 (enable-sjlj-exceptions): Detect if not specified.
659 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
660 what header we're looking for.
661 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
662 * Makefile.in, configure: Regenerate.
663 * exception.cc: Don't declare libgcc2 stuff.
664 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
665 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
666 (win32_get_restart_frame): Remove.
667 (struct java_exception_header): New.
668 (__gcj_exception_class): New.
669 (get_exception_header_from_ue): New.
670 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
671 (size_of_encoded_value, read_encoded_value): New.
672 (read_uleb128, read_sleb128, parse_lsda_header): New.
673 (get_ttype_entry, __gcj_personality_sj0): New.
674 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
676 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
678 * javax/naming/InitialContext.java (init): Fix typo.
679 (composeName): Remove unnecessary semicolon.
680 (addToEnvironment): Remove unnecessary semicolon.
681 (addToEnvironment): Use put() instead of add().
683 * javax/naming/InitialContext.java (InitialContext):
685 (destroySubcontext): Method doesn't return a result.
686 * javax/naming/Context.java: Import java.util.Hashtable.
687 * javax/naming/Name.java: Import java.util.Enumeration.
689 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
691 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
692 objects in subdirectories.
693 * Makefile.in: Rebuilt.
695 2001-03-25 Richard Henderson <rth@redhat.com>
697 * exception.cc (java_eh_info): Make value type jthrowable.
698 (_Jv_type_matcher): Remove now unneeded cast.
699 (_Jv_Throw): Make argument type jthrowable. Munge name
700 for SJLJ_EXCEPTIONS here ...
701 * gcj/cni.h: ... not here.
703 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
705 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
706 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
707 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
708 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
709 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
710 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
711 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
712 java/lang/natClass.cc, java/lang/natClassLoader.cc,
713 java/lang/natDouble.cc, java/lang/natObject.cc,
714 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
715 java/lang/natString.cc, java/lang/natSystem.cc,
716 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
717 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
718 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
719 java/util/zip/natInflater.cc:
720 Use throw, not JvThrow or _Jv_Throw.
722 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
724 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
725 paramater, bump it to 1.
726 * java/util/Hashtable.java (Hashtable): Likewise.
728 2001-03-23 Per Bothner <per@bothner.com>
730 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
731 check for errors, since we don't want to throw exception on
732 overflow/underflow. Instead, trim whitespace, and then check that
733 _strtod_r uses up all the rest of the string.
735 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
736 ancestors array is invalid for interfaces, so do that *after*
737 check that the target type is not an interface.
739 2000-03-23 Jeff Sturm <jsturm@one-point.com>
741 * prims.cc (_Jv_FindClassFromSignature): Check return of
742 recursive call. Do not abort on invalid signature; return NULL
745 2001-03-22 Tom Tromey <tromey@redhat.com>
747 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
748 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
750 * include/jvm.h (_Jv_ResolveField): Declare.
751 * include/java-interp.h (_Jv_ResolveField): Don't declare.
752 * resolve.cc (_Jv_ResolveField): No longer conditional on
755 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
757 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
759 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
760 to a temporary file, then invoke libtool with the -objectlist
762 (libgcjx.la): Likewise.
763 * Makefile.in: Rebuilt.
765 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
767 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
769 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
771 * jni.cc (add_char): Handle `.' like `/'.
773 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
775 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
776 initialize if exception_types is null.
777 * java/lang/reflect/Constructor.java: Likewise.
778 * java/lang/reflect/natConstructor.cc (getType): Initialize
779 exception_types to an empty Object array.
781 2001-03-21 Tom Tromey <tromey@redhat.com>
783 * configure: Rebuilt.
784 * configure.in (GCJFLAGS): Subst.
785 * Makefile.in: Rebuilt.
786 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
787 (gij_LDFLAGS): Likewise.
788 (JC1FLAGS): Added GCJFLAGS and removed -g.
790 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
791 read/write case. Fixes PR libgcj/2338.
793 2001-03-20 Warren Levy <warrenl@redhat.com>
795 * java/util/TimeZone.java: Sync up with Classpath. Includes new
796 and corrected SimpleTimeZone's for the timezones hash table.
798 2001-03-19 Per Bothner <per@bothner.com>
800 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
801 "canonicalize" "../../xxx" to "/xxx".
803 2001-03-19 Mark Wielaard <mark@klomp.org>
805 * java/util/ArrayList.java: Remove RCS keywords from comments
806 * java/util/BasicMapEntry.java: idem
807 * java/util/Dictionary.java: idem
808 * java/util/HashSet.java: idem
810 * java/util/EventObject.java: reindent
811 * java/util/Properties.java: idem
812 * java/util/SortedMap.java: idem
814 * java/util/Enumeration.java: Merge with Classpath
815 * java/util/EventListener.java: idem
816 * java/util/Observable.java: idem
817 * java/util/Observer.java: idem
818 * java/util/Stack.java: idem
820 2001-03-17 Tom Tromey <tromey@redhat.com>
822 * java/lang/natString.cc (rehash): Don't bother with memset;
823 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
825 (UNMASK_PTR): New macro.
826 (intern): Unmask pointer before returning it. Register finalizer
828 (unintern): Handle case where
829 (MASK_PTR): New macro.
830 (PTR_MAKSED): Likewise.
831 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
833 2001-03-01 Andrew Haley <aph@redhat.com>
835 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
836 stackTrace buffer to a correctly aligned pointer array.
838 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
840 * java/lang/Runtime.java (_exit): Declare new package-private native.
841 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
842 without a security manager check.
843 (exit): Call _exit after security check.
844 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
846 * java/lang/System.java (setSecurityManager): If a security manager
847 is already in place, call checkPermission.
848 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
849 throws an exception, try to deal with it gracefully.
850 * java/lang/ExceptionInInitializerError.java (printStackTrace):
851 Only try to print the subordinate stack trace if "exception" is set.
852 Print our class name first.
854 2001-03-08 Tom Tromey <tromey@redhat.com>
856 * java/io/ObjectStreamClass.java (setUID): Don't write interface
857 info for array classes.
858 Fixes PR libgcj/1971.
860 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
862 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
865 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
867 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
868 instead of the new JDK1.2 API. This is simpler and makes
869 back-porting the classes to JDK1.1 trivial.
870 (readObject): likewise.
872 2001-03-01 Per Bothner <per@bothner.com>
874 Changes merged from Kawa's gnu.math.
875 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
876 (rshift(int[],int[],int,int): Removed - not needed.
877 (gcd): Use rshift0 rather than rshift.
878 * java/math/BigInteger.java (setShiftRight): Likewise.
879 (divide): Simplify by using rshift0.
880 (divide): Zero-extend results if high-order bit set.
882 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
884 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
887 2001-02-23 Per Bothner <per@bothner.com>
889 Change to sometimes include class name in ClassFormatError message.
890 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
891 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
892 boolean instead of throwing ClassFormatError on failure.
893 (throw_class_format_error): Change static function to method.
894 (_Jv_ClassReader): New inline methods verify_identifier,
895 two overloads of verify_classname, verify_field_signature, and
896 verify_method_signature
897 * include/java-interp.h: Update declarations to return bool.
898 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
899 ClassFormatError since _Jv_VerifyClassName now returns bool.
901 2001-02-23 Per Bothner <per@bothner.com>
903 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
904 c++filt to select java-style output.
906 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
908 Fix for PR java/2040:
909 * java/util/HashMap.java (HashMap): Don't throw exception for
910 loadFactor > 1. Add exception messages.
911 * java/util/Hashtable.java (Hashtable): Likewise.
913 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
915 Disable libgcjx by default.
916 * configure.in: Add support for --enable-java-awt configure option.
917 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
918 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
919 * Makefile.in: Rebuilt.
920 * configure: Rebuilt.
922 2001-02-20 Tom Tromey <tromey@redhat.com>
924 * java/io/PipedWriter.java (flush): Throw exception if stream
926 * java/io/OutputStreamWriter.java (write): Throw exception if
928 (writeChars): Don't throw exception if stream closed.
929 * java/io/CharArrayWriter.java (closed): New field.
931 (flush): Throw exception if stream closed.
932 (reset): Synchronize on correct lock. Allow stream to be
934 (toCharArray, toString, writeTo): Synchronize.
935 (write): Throwe exception if stream closed.
936 * java/io/BufferedWriter.java (close): Clear `buffer'.
937 (flush): Throw IOException if stream is closed.
940 2001-02-16 Tom Tromey <tromey@cygnus.com>
942 * java/lang/ThreadGroup.java (activeCount): Only include threads
944 (enumerate): Likewise.
946 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
948 * java/lang/Integer.java (getInteger): Return default argument if
949 property is not set. Don't call decode with null argument.
950 * java/lang/Long.java (getLong): Likewise.
952 * java/io/CharArrayReader.java (CharArrayReader): Throw
953 IllegalArgumentException if constructor arguments are illegal.
954 (ready): Return false if no more characters can be read.
955 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
957 2001-02-17 Mark Wielaard <mark@klomp.org>
959 * java/util/TimerTask.java: New version from Classpath.
961 2001-02-17 Mark Wielaard <mark@klomp.org>
963 Remerge with Classpath
964 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
965 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
966 (readByte): Use convertToByte().
967 (readChar): Use convertToChar().
968 (readInt): Use convertToInt().
969 (readLong): Use convertToLong().
970 (readShort): Use convertToShort().
971 (readUnsignedByte): Use convertToUnsignedByte().
972 (readUnsignedShort): Use convertToUnsignedShort().
973 (readUTF): Use convertToUTF().
975 (convertToBoolean): Resurrected.
976 (convertToByte): Ditto.
977 (convertToChar): Ditto.
978 (convertToInt): Ditto.
979 (convertToLong): Ditto.
980 (convertToShort): Ditto.
981 (convertToUnsignedByte): Ditto.
982 (convertToUnsignedShort): Ditto.
983 (convertToUTF): Ditto.
985 2001-02-17 Mark Wielaard <mark@klomp.org>
989 2001-02-17 Mark Wielaard <mark@klomp.org>
991 * java/io/DataInputStream.java: update copyright notice
992 * java/io/PrintWriter.java: idem
993 * java/io/Reader.java: idem
994 * java/io/StreamTokenizer.java: idem
995 * java/io/StringReader.java: idem
996 * java/lang/reflect/ReflectPermission.java: idem
998 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1000 * java/util/TreeSet.java (clone): Made subclass safe, use
1001 super.clone(), not new.
1002 * java/util/TreeMap.java (clone): Likewise.
1004 * java/util/TreeMap.java (nil): Made non-final.
1005 (clone): Create new nil node for copy.
1007 * java/util/HashSet.java (clone): Made subclass safe, use
1008 super.clone(), not new.
1010 2001-02-14 Andrew Haley <aph@redhat.com>
1012 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1015 2001-02-15 Anthony Green <green@redhat.com>
1017 * defineclass.cc: Don't include alloca.h.
1018 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1019 * interpret.cc (run_normal): Ditto.
1021 * java/lang/natDouble.cc (parseDouble): Ditto.
1023 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1025 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1027 * java/util/Collections.java (ReverseComparator): New static class.
1028 (reverseOrder): Return static instance of ReverseComparator.
1030 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1031 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1032 Rectangle.clone(), not Object.clone().
1034 * java/util/HashSet.java (clone): Remove try/catch.
1036 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1037 * java/util/Collection.java: Likewise.
1038 * java/util/Comparator.java: Likewise.
1039 * java/util/Dictionary.java: Likewise.
1040 * java/util/Iterator.java: Likewise.
1041 * java/util/ListIterator.java: Likewise.
1042 * java/util/Map.java: Likewise.
1043 * java/util/Set.java: Likewise.
1045 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1047 * java/util/TreeMap.java: New file.
1048 * java/util/TreeSet.java: New file.
1049 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1050 * Makefile.in: Rebuilt.
1051 * java/util/HashSet.java (clone): Use constructor instead of calling
1053 * java/util/SortedSet.java: Sync with classpath.
1054 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1057 * java/lang/natClass.cc (getSignature): Don't try to dereference
1058 param_types if it is null. Instead, take this to mean "no parameters".
1059 * java/lang/TreeMap.java (TreeIterator.next): Throw
1060 NoSuchElementException in preference to ConcurrentModificationException.
1061 (TreeIterator.remove): Throw IllegalStateException in preference to
1062 ConcurrentModificationException.
1063 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1064 throw a NoSuchElementException.
1065 (SubMap.lastKey): Likewise.
1067 2001-02-13 Tom Tromey <tromey@redhat.com>
1069 * java/io/PipedReader.java (ready): Throw IOException if pipe
1071 * java/io/FilterReader.java (close): Don't clear `in'.
1072 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1074 (read, ready, reset, skip): Added exception message.
1075 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1076 Perform checkStatus check inside synchronized block.
1078 2001-02-13 Tom Tromey <tromey@redhat.com>
1080 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1082 2001-02-13 Tom Tromey <tromey@redhat.com>
1084 Fix for PR libgcj/1351:
1085 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1087 Include Thread.h and InterruptedIOException.h.
1089 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1091 * java/io/BlockDataException.java: Removed.
1092 * java/io/ObjectInputStream.java (readObject): Throw
1093 StreamCorruptedException, not BlockDataException.
1094 * Makefile.am: Remove BlockDataException.
1095 * Makefile.in: Rebuild.
1097 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1098 Tom Tromey <tromey@redhat.com>
1100 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1103 2001-02-09 Tom Tromey <tromey@redhat.com>
1105 * java/util/Timer.java: New version from Classpath.
1107 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1109 * java/lang/Double.java (doubleToRawLongBits): Now native.
1110 * java/lang/Float.java (floatToRawIntBits): Likewise.
1111 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1112 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1114 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1116 * java/io/File.java (java.net): Imported.
1117 (getAbsoluteFile): Added.
1118 (getCanonicalPath): Likewise.
1121 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1123 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1124 * java/lang/Integer.java: Likewise.
1125 * java/lang/Long.java: Likewise.
1126 * java/lang/Short.java: Likewise.
1127 * java/lang/Double.java: Likewise.
1128 (doubleToRawLongBits): New method.
1129 * java/lang/Float.java: As above.
1130 (floatToRawIntBits): New method.
1132 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1133 IOException if stream closed.
1135 2001-02-08 Tom Tromey <tromey@redhat.com>
1137 * java/lang/Float.java (parseFloat): New method.
1139 2001-02-08 Tom Tromey <tromey@redhat.com>
1141 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1142 * java/io/InputStreamReader.java (ready, read): Throw IOException
1143 if stream has been closed.
1145 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1147 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1148 Change sources.redhat.com and sourceware.cygnus.com references to
1151 2001-02-07 Tom Tromey <tromey@redhat.com>
1153 Fix for PR libgcj/1906:
1154 * java/text/MessageFormat.java (setLocale): Use named class
1157 (format(Object,StringBuffer,FieldPosition)): Special case if
1158 argument is an Object[].
1160 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1162 * java/util/Arrays.java: Removed "cmp" methods.
1163 (qsort): Don't use "cmp".
1166 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1168 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1169 sort. Fix for PR java/1895.
1171 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1173 * configure.host: Use sjlj-exceptions for Alpha.
1175 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1177 * libgcj.spec.in: Don't force static libgcc into the executable.
1178 * configure.in (FORCELIBGCCSPEC): Removed.
1179 * configure: Rebuilt.
1181 2001-01-31 Tom Tromey <tromey@redhat.com>
1183 * Makefile.in: Rebuilt.
1184 * Makefile.am (LTCXXCOMPILE): New macro.
1186 2001-01-26 Andrew Haley <aph@redhat.com>
1188 (INIT_FPE): Use a direct system call to set the handler.
1190 2001-01-27 Richard Henderson <rth@redhat.com>
1192 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1194 2001-01-27 Tom Tromey <tromey@redhat.com>
1196 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1197 native interface structure.
1199 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1201 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1203 (read (byte[], int, int)): Only call readNextBlock() if the block
1204 buffer would actually be overrun. Increment blockDataPosition.
1205 (callReadMethod): Propagate exceptions from invocation target.
1206 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1207 exceptions from invocation target.
1209 2001-01-26 Tom Tromey <tromey@redhat.com>
1211 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1212 to internal representation.
1213 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1214 _Jv_FindClassFromSignature.
1216 2001-01-26 Warren Levy <warrenl@redhat.com>
1218 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1219 and timezone if they are available on the system.
1221 2001-01-24 Tom Tromey <tromey@redhat.com>
1223 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1225 2001-01-24 Tom Tromey <tromey@redhat.com>
1227 * Makefile.in: Rebuilt.
1228 * Makefile.am (c_source_files): Added sf_fabs.c.
1229 * java/lang/sf_fabs.c: New file.
1231 2001-01-19 Warren Levy <warrenl@redhat.com>
1233 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1234 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1235 correctly. Adjust properly from 0-23 clock hour.
1237 2001-01-17 Mark Wielaard <mark@klomp.org>
1239 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1241 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1243 * java/lang/Class.h (isInterface): Move implementation from
1244 natClass.cc. Declare inline.
1245 (Class): Add default constructor.
1246 * java/lang/Object.h: Update comments.
1247 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1248 initialize superclass, saving a call if super is already initialized.
1250 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1252 * prims.cc (init_prim_class): Deleted.
1253 (DECLARE_PRIM_TYPE): Rewritten.
1254 * java/lang/Class.h (stdio.h): Include removed.
1255 (stddef.h): Included.
1256 (java/lang/reflect/Modifier.h): Likewise.
1257 (Class): Contructor now takes arguments, initializes fields.
1258 (initializePrim): Prototype deleted.
1259 * java/lang/natClass.cc (initializePrim): Deleted.
1261 2001-01-16 Warren Levy <warrenl@redhat.com>
1263 * java/math/BigInteger.java: Update Copyright year.
1265 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1267 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1270 2001-01-14 Mark Wielaard <mark@klomp.org>
1271 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1272 (decode): Merge comments with Classpath, don't throw Exception
1274 2001-01-12 Tom Tromey <tromey@redhat.com>
1276 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1280 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1281 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1282 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1283 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1284 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1286 * java/lang/natSystem.cc: Include locale.h if it exists.
1287 * configure: Rebuilt.
1288 * configure.in: Check for locale.h.
1290 2001-01-11 Tom Tromey <tromey@redhat.com>
1292 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1293 (Cursor(int), getPredefinedCursor): Throw exception if argument
1296 2001-01-03 Tom Tromey <tromey@redhat.com>
1298 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1299 (getLocationOnScreen): Wrote.
1301 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1303 * Makefile.am: Re-enable dependencies.
1304 * Makefile.in: Rebuilt.
1306 2001-01-10 Warren Levy <warrenl@redhat.com>
1308 * java/math/BigDecimal.java (divide): Fixed comment.
1310 2001-01-10 Warren Levy <warrenl@redhat.com>
1312 Fix for PR libgcj/1596:
1313 * java/math/BigDecimal.java (divide): Check newScale for validity.
1314 Ensure that BigInteger.pow() is called with a non-negative value.
1315 (setScale (int)): New public method.
1316 (setScale (int,int)): New public method.
1318 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1320 Fix for PR libgcj/1338:
1321 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1322 commentChar. Fixed typos in comments.
1324 2001-01-08 Warren Levy <warrenl@redhat.com>
1326 Fix for PR libgcj/1411:
1327 * Makefile.am: Removed java/util/natTimeZone.cc.
1328 * Makefile.in: Rebuilt.
1329 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1330 missing localized timezone names.
1331 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1332 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1333 (init_properties): Set user.timezone property.
1334 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1335 default timezone names; removed non-standard ones. Use standard
1337 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1339 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1341 (getDefaultTimeZoneId): Removed.
1343 * java/util/natTimeZone.cc: Removed.
1345 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1347 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1348 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1349 (_Jv_GetArrayClass): New inline function.
1350 (arrayclass): New field.
1351 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1352 _Jv_GetArrayElementFromElementType.
1353 (_Jv_NewPrimArray): Ditto.
1354 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1355 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1356 Set Modifier::ABSTRACT.
1357 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1358 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1359 Now synchronized. Array classes are now referenced from
1360 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1361 Set array classes' accessibility flags correctly. Optimize so that
1362 all array classes share the same IDT.
1363 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1364 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1365 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1366 in superclasses from overwriting classes own fields.
1367 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1368 Modifier::isAbstract().
1369 (null_idt): New static field.
1370 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1372 (_Jv_IndexOf): Made inline.
1373 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1375 2001-01-08 Tom Tromey <tromey@redhat.com>
1377 Fix for PR java/1586:
1378 * Makefile.in: Rebuilt.
1379 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1381 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1383 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1384 from the c++ compiler.
1385 * Makefile.in: Rebuilt.
1387 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1389 All files with updated copyright.
1390 * prims.cc (class _Jv_PrimClass): Removed.
1391 (init_prim_class): New function.
1392 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1393 `_Jv_PrimClass' in primitive type declarations. Assign to the
1394 value returned by `init_prim_class.'
1395 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1396 primitive type declarations.
1397 (JvPrimClass): Cast to `jclass' removed.
1398 * java/lang/Class.h (Class): New constructor.
1399 (Class): New copy constructor.
1400 (initializePrim): New prototype.
1401 (_Jv_PrimClass): Field removed.
1402 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1403 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1404 (class java::lang::Object): `finalize' moved up front.
1405 * java/lang/natClass.cc
1406 (isAssignableFrom): Turned outline.
1407 (isInstance): Likewise.
1408 (isInterface): Likewise, fixed indentation.
1409 (initializePrim): New function.
1411 2001-01-07 Anthony Green <green@redhat.com>
1413 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1415 * Makefile.in: Rebuilt.
1417 * scripts/TexinfoDoclet.java: New file.
1419 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1420 doc/java-awt-color.texi, doc/java-lang.texi,
1421 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1422 doc/java-awt-event.texi, doc/java-net.texi,
1423 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1424 doc/java-awt-image.texi, doc/java-security.texi,
1425 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1426 doc/java-text.texi, doc/java-beans-beancontext.texi,
1427 doc/java-util-jar.texi, doc/java-beans.texi,
1428 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1429 doc/java-lang-ref.texi: New files.
1431 2001-01-07 Anthony Green <green@redhat.com>
1433 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1434 be used for both input and output, so don't clear doInput.
1436 * java/lang/StringBuffer.java: Fix comments.
1438 2001-01-06 Anthony Green <green@redhat.com>
1440 * java/beans/PropertyDescriptor.java: Fix comment.
1441 * java/io/PushbackReader.java: Fix comment.
1442 * java/io/ObjectStreamClass.java: Fix comment.
1443 * java/io/DataInputStream.java: Fix comment.
1444 * java/io/PipedInputStream.java: Fix comments.
1445 * java/io/PipedReader.java: Fix comments.
1446 * java/sql/DatabaseMetaData.java: Fix comments.
1448 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1450 * java/io/PipedReader: Synchronize on "lock" instead of this.
1452 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1454 * java/lang/Thread.java: Update comment.
1456 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1457 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1458 * java/io/PipedReader: New implementation based on new
1460 * java/io/PipedWriter: Updated to match new PipedReader.
1462 2001-01-03 Tom Tromey <tromey@redhat.com>
1464 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1465 (getViewportSize): Insets include scrollbar size.
1466 (doLayout): Finished.
1467 (getScrollPosition): Wrote.
1468 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1470 2001-01-02 Tom Tromey <tromey@redhat.com>
1472 * java/awt/ScrollPane.java: Wrote.
1473 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1476 * java/awt/Panel.java (Panel()): Fixed.
1478 * java/awt/Component.java (isShowing): Return false if no peer
1479 exists, and true if component is visible and no parent exists.
1480 (getLocationOnScreen): Wrote.
1481 (getPreferredSize): Removed FIXME comment.
1482 (getMinimumSize): Likewise.
1483 (getAlignmentX, getAlignmentY): Wrote.
1485 (requestFocus): Wrote.
1486 (transferFocus): Wrote.
1487 (findNextFocusComponent): New method.
1488 (hasFocus()): Wrote.
1489 (checkImage): Wrote.
1490 (enableEvents): Call setEventMask on the peer.
1492 * java/awt/Container.java (list): Use super.list() to print self.
1493 (findNextFocusComponent): New method.
1494 (setLayout): Call invalidate.
1495 (findComponentAt): Wrote.
1497 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1499 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1500 the correct versions of various linuxthreads functions get linked.
1501 * Makefile.in: Rebuilt.
1502 * java/lang/natThread.cc (finalize_native): New static function. Call
1503 _Jv_ThreadDestroyData.
1504 (initialize_native): Register finalizer for "data".
1505 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1506 (_Jv_ThreadDestroyData): New prototype.
1507 * include/win32-threads.h: Ditto.
1508 * include/no-threads.h: Ditto.
1509 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1510 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1511 move mutex and condition variable destroy code from:
1512 (really_start): ...here.
1513 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1514 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1515 (_Jv_ThreadDestroyData): Implemented.
1516 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1517 (_Jv_AllocArray): Ditto.
1519 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1521 * java/sql/DriverManager.java (getConnection): Don't set user/password
1524 2000-12-27 Warren Levy <warrenl@redhat.com>
1526 Fix for PR libgcj/1358:
1527 * java/lang/System.java: Update Copyright date properly.
1528 * java/util/Calendar.java: Fix typo in comment.
1529 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1530 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1531 initialize times. Spec says to set H:M:S values to zero only if
1533 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1534 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1535 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1536 timezones and GMT offsets, being careful to account for units of
1537 milliseconds vs. seconds.
1539 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1541 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1542 not be assigned to Object.
1544 Fix for PR libgcj/1516:
1545 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1547 (can_widen): Declared inline. Remove redundant checks for void
1548 arguments and char->short conversion. Add special case for boolean
1550 (ffi_type): Declared inline.
1551 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1553 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1555 * java/sql/SQLWarning.java: Fixed typo in comment.
1557 2000-12-26 Tom Tromey <tromey@redhat.com>
1559 * java/awt/MenuItem.java (paramString): Now protected.
1561 * java/awt/MenuShortcut.java: Implements Serializable.
1563 * java/awt/MenuBar.java: Rewrote from scratch.
1565 * java/awt/MenuComponent.java (removeNotify): Wrote.
1566 Implements Serializable.
1568 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1571 * java/awt/CheckboxMenuItem.java: Wrote.
1573 2000-12-25 Tom Tromey <tromey@redhat.com>
1575 * java/awt/MenuContainer.java: Fixed typo.
1577 * Makefile.in: Rebuilt.
1578 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1579 * java/awt/SystemColor.java: New file.
1581 * java/awt/Color.java (rgba): Now package-private.
1583 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1585 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1588 * java/awt/MenuItem.java (addNotify): New method.
1589 (MenuItem(String,MenuShortcut)): New constructor.
1590 (setLabel): Notify peer of change.
1591 (setEnabled): Likewise.
1593 * java/awt/GridLayout.java (toString): New method.
1595 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1596 (FlowLayout): Check for LEADING and TRAILING.
1597 (setAlignment): Likewise.
1598 (layoutContainer): Handle component orientation.
1600 * java/awt/Component.java (orientatin): New field.
1601 (setComponentOrientation): Wrote.
1602 (getComponentOrientation): Wrote.
1604 * java/awt/Event.java (Event): Implements Serializable.
1605 (consumed): New field for serialization.
1606 * java/awt/Dimension.java (Dimension): Implements Serializable.
1607 * java/awt/Cursor.java (Cursor): Implements Serializable.
1608 * java/awt/Container.java (Container): No longer abstract.
1610 * java/awt/Choice.java: Wrote.
1611 * java/awt/Checkbox.java: Wrote.
1612 * java/awt/ItemSelectable.java: Documented.
1613 * java/awt/CheckboxGroup.java: Wrote.
1615 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1617 (getSize): Likewise.
1619 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1621 * java/io/FileDescriptor.java: Initialize fd to -1.
1622 Remove default constructor.
1624 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1626 * java/lang/mprec.h: Change C9X reference to refer to C99.
1628 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1630 * java/lang/Throwable.java (trace_enabled): New static field.
1631 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1632 trace_enabled not set.
1633 * prims.cc (main_init): Turn off trace_enabled while creating
1634 default exception objects.
1636 2000-12-21 Tom Tromey <tromey@redhat.com>
1638 * java/beans/PropertyChangeListener.java: Extends EventListener.
1639 * java/beans/VetoableChangeListener.java: Extends EventListener.
1641 * java/util/zip/Deflater.java (update, init): Now private.
1643 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1645 * java/util/BasicMapEntry.java: Re-added.
1646 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1647 (putAll): Test for BasicMapEntry.
1648 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1649 (putAll): Test for BasicMapEntry.
1650 Change references from `HashMap.Entry' to `Entry' in various places.
1651 * Makefile.am: Add BasicMapEntry.java.
1652 * Makefile.in: Rebuilt.
1654 2000-12-18 Warren Levy <warrenl@redhat.com>
1656 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1657 need to set timezone to a valid non-null value. Partial fix for
1660 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1662 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1664 * java/awt/Button.java (addNotify): Likewise.
1665 * java/awt/Label.java (addNotify): Likewise.
1666 * java/awt/Panel.java (addNotify): Likewise.
1667 * java/awt/Scrollbar.java (addNotify): Likewise.
1668 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1669 Remove redundant null checks.
1671 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1673 * COPYING: Update to current
1674 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1675 to 19yy as example year in copyright notice).
1677 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1679 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1680 end-of-stream if avail_in is 0.
1682 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1684 * java/util/ArrayList.java (data): Declare transient.
1685 (serialPersistantFields): Removed.
1686 (readObject): Use defaultReadObject(), not readFields().
1687 (writeObject): Use defaultWriteObject(), not writeFields().
1689 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1691 * java/util/Hashtable.java (put): Remove `last' variable.
1692 Link new entry to head of list.
1693 * java/util/HashMap.java (put): Ditto.
1695 2000-12-15 Tom Tromey <tromey@redhat.com>
1697 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1698 loader to Class.forName.
1700 2000-12-14 Tom Tromey <tromey@redhat.com>
1702 * java/util/ResourceBundle.java
1703 (getBundle(String,Locale,ClassLoader)): New method.
1704 (trySomeGetBundle): Added `loader' argument.
1705 (partialGetBundle): Likewise.
1707 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1708 maximumFractionDigits, maximumIntegerDigits,
1709 minimumFractionDigits, minimumIntegerDigits): Now
1712 * java/lang/Thread.java (checkAccess): Now final.
1714 * java/lang/RuntimePermission.java: Class now final.
1716 * java/io/StringWriter.java (StringWriter(int)): Now public.
1718 * java/io/SerializablePermission.java (legal_names): Now private.
1720 * java/lang/Character.java: Updated UnicodeBlock constants.
1721 * scripts/blocks.pl: Special case private use and surrogate
1724 2000-12-12 Tom Tromey <tromey@redhat.com>
1726 * Makefile.in: Rebuilt.
1727 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1729 (GCJCOMPILE): Use it.
1732 2000-12-11 Tom Tromey <tromey@redhat.com>
1734 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1735 New static final fields.
1737 * scripts/classes.pl (scan): Skip lines with leading `*'.
1738 Fix for PR libgcj/378.
1740 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1742 * configure.in: Remove check for -fuse-divide-subroutine.
1743 * configure: Rebuilt.
1745 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1747 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1749 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1751 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1752 Remove BasicMapEntry.java and Bucket.java.
1753 * Makefile.in: Rebuilt.
1754 * java/util/HashMap.java: Rewritten.
1755 * java/util/HashSet.java: Imported from classpath.
1756 * java/util/WeakHashMap.java: Imported from classpath.
1757 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1758 * java/util/Bucket.java: Deleted.
1759 * java/util/BasicMapEntry.java: Deleted.
1760 * java/util/Collections.java (search): Use a for-loop, not iterator
1762 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1763 of elements in source.
1764 (max): Use a for-loop.
1766 (reverse): Keep track of positions instead of using Iterator's
1767 nextIndex() and previousIndex().
1768 (shuffle(List)): Initialize defaultRandom if required using
1769 double-check thread safety idiom. Call two-argument shuffle method
1770 using defaultRandom.
1771 (defaultRandom): New field.
1772 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1773 using previousIndex() and nextIndex().
1774 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1775 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1776 * java/util/AbstractMap.java (toString): Use StringBuffer.
1777 * java/lang/ref/PhantomReference.java: Imported from classpath.
1778 * java/lang/ref/SoftReference.java: Ditto.
1779 * java/lang/ref/Reference.java: Ditto.
1780 * java/lang/ref/WeakReference.java: Ditto.
1781 * java/lang/ref/ReferenceQueue.java: Ditto.
1783 2000-12-10 Richard Henderson <rth@redhat.com>
1785 * configure.host: Recognize alpha*-*, not alphaev6-*.
1787 2000-12-09 Anthony Green <green@redhat.com>
1789 * configure.host: Enable interpreter for Alpha.
1791 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1793 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1794 (ZIP): Points at fastjar instead of zip.
1795 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1796 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1797 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1798 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1799 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1800 ($(x_java_source_files:.java=.class):): Likewise.
1801 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1803 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1804 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1805 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1806 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1807 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1808 gnu/gcj/runtime/VMClassLoader.h:,
1809 java/io/ObjectInputStream$$GetField.h:,
1810 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1811 (Makefile.in): Rebuilt.
1813 2000-12-08 Tom Tromey <tromey@redhat.com>
1816 * configure: Rebuilt.
1817 * configure.in: Use echo, not `:', to create .d files.
1819 2000-12-08 Warren Levy <warrenl@redhat.com>
1821 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1822 NullPointerException so proper check of offset can be done.
1824 2000-12-08 Warren Levy <warrenl@redhat.com>
1826 * java/io/FileInputStream.java (close): Check if the fd is valid.
1827 * java/io/RandomAccessFile.java (close): Ditto.
1828 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1829 * java/net/PlainSocketImpl.java (close): Ditto.
1831 2000-12-06 Tom Tromey <tromey@redhat.com>
1833 * java/awt/GridBagConstraints.java: Filled in values for static
1836 * java/util/BitSet.java: Updated copyright notice.
1838 * Makefile.in: Rebuilt.
1839 * Makefile.am (awt_java_source_files): Added new file.
1840 * java/awt/GridBagConstraints.java: New file.
1842 2000-12-05 Tom Tromey <tromey@redhat.com>
1844 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1845 Now package-private, not protected.
1846 * java/text/DateFormatSymbols.java (equals): Now private.
1847 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1848 * java/util/BitSet.java: Class no longer final.
1850 2000-12-04 Warren Levy <warrenl@redhat.com>
1852 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1853 out code dependent on compiler and library changes.
1855 2000-12-04 Warren Levy <warrenl@redhat.com>
1857 * java/io/FilePermission.java: Made class final per spec.
1858 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1859 method name to match spec (fixed typo).
1860 * java/util/LinkedList.java: Implements List.
1862 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1864 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1865 Edgar Villanueva <edgarvil@home.com>.
1867 2000-12-03 Tom Tromey <tromey@redhat.com>
1869 * java/awt/geom/Point2D.java: Added protected constructor.
1870 (equals): New method.
1871 (Float.setLocation(float,float)): New method.
1872 * java/awt/geom/Dimension2D.java: Added protected constructor.
1873 * java/awt/geom/AffineTransform.java: Made all constants public.
1874 (concatenate): Fixed typo in name.
1875 * java/awt/event/WindowAdapter.java: Class now abstract.
1876 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1877 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1880 * java/awt/AWTError.java: Extend Error, not
1881 IllegalStateException.
1883 * Makefile.in: Rebuilt.
1884 * Makefile.am (awt_java_source_files): Added new file.
1885 * java/awt/geom/RoundRectangle2D.java: New file.
1887 * Makefile.in: Rebuilt.
1888 * Makefile.am (awt_java_source_files): Added new file.
1889 * java/awt/FlowLayout.java: New file.
1891 * Makefile.in: Rebuilt.
1892 * Makefile.am (awt_java_source_files): Added new file.
1893 * java/awt/GridLayout.java: New file.
1895 2000-12-02 Tom Tromey <tromey@redhat.com>
1897 * Makefile.in: Rebuilt.
1898 * Makefile.am (awt_java_source_files): Added new files.
1899 * java/awt/CardLayout.java: New file.
1900 * java/awt/AWTPermission.java: New file.
1902 2000-12-01 Tom Tromey <tromey@redhat.com>
1904 * java/util/Vector.java (insertElementAt): Unconditionally
1905 increment elementCount.
1906 (removeRange): Clear unused slots in vector.
1908 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1910 * java/lang/natMath.cc: Declare fabsf() function.
1911 * java/lang/mprec.h: Don't include math.h.
1912 * java/lang/dtoa.c: Include string.h.
1913 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1916 From Adam Welc <welc@cs.purdue.edu>:
1917 * java/util/LinkedList.java (removeFirst): Update `first' field.
1918 Handle the last == first case.
1919 (removeLast): Update `last' field. Handle the last == first case.
1921 2000-12-01 Warren Levy <warrenl@cygnus.com>
1923 * Makefile.am: Added entries for new java.sql modules.
1924 * Makefile.in: Rebuilt.
1926 2000-12-01 Warren Levy <warrenl@cygnus.com>
1928 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1929 that aren't quite 1.2 compatible yet.
1931 2000-11-30 Warren Levy <warrenl@cygnus.com>
1933 * java/sql/Array.java: New file from classpath.
1934 * java/sql/BatchUpdateException.java: Ditto.
1935 * java/sql/Blob.java: Ditto.
1936 * java/sql/Clob.java: Ditto.
1937 * java/sql/Ref.java: Ditto.
1938 * java/sql/SQLData.java: Ditto.
1939 * java/sql/SQLInput.java: Ditto.
1940 * java/sql/SQLOutput.java: Ditto.
1941 * java/sql/Struct.java: Ditto.
1942 * java/sql/CallableStatement.java: Merged file from claspath.
1943 * java/sql/Connection.java: Ditto.
1944 * java/sql/DataTruncation.java: Ditto.
1945 * java/sql/DatabaseMetaData.java: Ditto.
1946 * java/sql/DriverManager.java: Ditto.
1947 * java/sql/PreparedStatement.java: Ditto.
1948 * java/sql/ResultSet.java: Ditto.
1949 * java/sql/ResultSetMetaData.java: Ditto.
1950 * java/sql/SQLException.java: Ditto.
1951 * java/sql/SQLWarning.java: Ditto.
1952 * java/sql/Statement.java: Ditto.
1953 * java/sql/Types.java: Ditto.
1955 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1957 * java/lang/natSystem.cc (init_properties): Set user.language and
1959 * configure.in: Check for setlocale.
1960 * configure: Rebuilt.
1961 * include/config.h.in: Rebuilt.
1963 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1964 the infate() call didn't deliver any output. Throw a ZipException if
1965 the needsDictionary() call returns true.
1966 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1967 * java/io/InputStreamReader: Use the default buffer size for the
1968 contained BufferedInputStream.
1970 2000-11-28 Warren Levy <warrenl@cygnus.com>
1972 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1973 more time zone entries.
1974 * java/text/SimpleDateFormat.java (format): Added case for
1977 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1979 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1980 directly rather than read() in all cases. Make primitive read
1981 implementations more efficient, as defined in JDK online docs.
1982 (skipBytes): Behave like the JDK's implementation.
1983 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1984 closed stream with checkStatus() whenever an IOException can be
1986 (checkStatus): New private method.
1988 2000-11-27 Warren Levy <warrenl@cygnus.com>
1990 * Makefile.am: Added natTimeZone.cc.
1991 * Makefile.in: Rebuilt.
1992 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1993 * java/text/DateFormatSymbols.java (ampms): Made package private.
1994 (eras): Made package private.
1995 (months): Made package private.
1996 (shortMonths): Made package private.
1997 (shortWeekdays): Made package private.
1998 (weekdays): Made package private.
1999 (formatPrefixes): New private field.
2000 (localPatternCharsDefault): Made private.
2001 (dateFormats): New package private field.
2002 (timeFormats): New package private field.
2003 (formatsForKey): New private method.
2004 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2005 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2006 * java/text/SimpleDateFormat.java: Merged with Classpath.
2007 * java/util/TimeZone.java: Merged with Classpath.
2008 * java/util/natTimeZone.cc: New file.
2010 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2012 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2013 (addElement): Don't increment elementCount twice. Doh.
2014 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2015 array needs to be expanded.
2017 * java/util/Collections.java (UnmodifiableCollection): Implement
2019 (UnmodifiableList): Throw UnsupportedOperationException from
2020 modification methods. Set `l' from the one-parameter constructor.
2021 (UnmodifiableMap): Implement toString().
2022 (SynchronizedCollection): Ditto.
2023 (SynchronizedList): Set `l' from the one-parameter constructor.
2024 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2025 (SynchronizedMap): Implement toString().
2027 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2029 * javax/naming/NameParser.java,
2030 javax/naming/directory/AttributeInUseException.java,
2031 javax/naming/directory/AttributeModificationException.java,
2032 javax/naming/directory/InvalidAttributeIdentifierException.java,
2033 javax/naming/directory/InvalidAttributesException.java,
2034 javax/naming/directory/InvalidAttributeValueException.java,
2035 javax/naming/directory/InvalidSearchControlsException.java,
2036 javax/naming/directory/InvalidSearchFilterException.java,
2037 javax/naming/directory/NoSuchAttributeException.java,
2038 javax/naming/directory/SchemaViolationException.java: New files.
2040 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2042 * javax/naming/InitialContext.java (rebind): Implement.
2043 (unbind): Implement.
2044 (rename): Implement.
2046 (listBindings): Implement.
2047 (destroySubcontext): Implement.
2048 (createSubcontext): Implement.
2049 (lookupLink): Implement.
2050 (getNameParser): Implement.
2051 (composeName): Implement.
2052 (addToEnvironment): Implement.
2054 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2056 * javax/naming/AuthenticationException.java,
2057 javax/naming/AuthenticationNotSupportedException.java,
2058 javax/naming/CannotProceedException.java,
2059 javax/naming/CommunicationException.java,
2060 javax/naming/ConfigurationException.java,
2061 javax/naming/ContextNotEmptyException.java,
2062 javax/naming/InsufficientResourcesException.java,
2063 javax/naming/InterruptedNamingException.java,
2064 javax/naming/InvalidNameException.java,
2065 javax/naming/LimitExceededException.java,
2066 javax/naming/LinkException.java,
2067 javax/naming/LinkLoopException.java,
2068 javax/naming/MalformedLinkException.java,
2069 javax/naming/NameAlreadyBoundException.java,
2070 javax/naming/NameNotFoundException.java,
2071 javax/naming/NamingSecurityException.java,
2072 javax/naming/NoPermissionException.java,
2073 javax/naming/NotContextException.java,
2074 javax/naming/PartialResultException.java,
2075 javax/naming/ReferralException.java,
2076 javax/naming/ServiceUnavailableException.java,
2077 javax/naming/SizeLimitExceededException.java,
2078 javax/naming/TimeLimitExceededException.java: New files.
2080 * javax/naming/Name.java (clone): New method.
2081 (compareTo): New method.
2082 (isEmpty): New method.
2083 (getAll): New method.
2084 (getPrefix): New method.
2085 (getSuffix): New method.
2086 (startsWith): New method.
2087 (endsWith): New method.
2088 (addAll): New method.
2089 (addAll): New method.
2092 (remove): New method.
2094 * javax/naming/Context.java (lookup): New method.
2095 (rebind): New method.
2096 (unbind): New method.
2097 (rename): New method.
2099 (listBindings): New method.
2100 (destroySubcontext): New method.
2101 (createSubcontext): New method.
2102 (lookupLink): New method.
2103 (getNameParser): New method.
2104 (composeName): New method.
2105 (addToEnvironment): New method.
2106 (removeFromEnvironment): New method.
2107 (getEnvironment): New method.
2108 (close): New method.
2109 (getNameInNamespace): New method.
2111 * javax/naming/InitialContext.java (lookup): New method.
2112 (rebind): New method.
2113 (unbind): New method.
2114 (rename): New method.
2116 (listBindings): New method.
2117 (destroySubcontext): New method.
2118 (createSubcontext): New method.
2119 (lookupLink): New method.
2120 (getNameParser): New method.
2121 (composeName): New method.
2122 (addToEnvironment): New method.
2123 (removeFromEnvironment): New method.
2124 (getEnvironment): New method.
2125 (close): New method.
2126 (getNameInNamespace): New method.
2128 2000-11-26 Tom Tromey <tromey@cygnus.com>
2130 * Makefile.in: Rebuilt.
2131 * Makefile.am (core_java_source_files): Added
2132 RuntimePermission.java.
2133 * java/lang/RuntimePermission.java: Imported from Classpath.
2134 * java/lang/Thread.java (getContextClassLoader): Now
2135 synchronized. Added security code.
2136 (setContextClassLoader): Likewise.
2138 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2139 length field of array.
2140 (_Jv_NewPrimArray): Likewise.
2141 * gcj/array.h (__JArray): `length' field now const. Added
2144 2000-11-26 Anthony Green <green@redhat.com>
2146 * javax/naming/spi/NamingManager.java,
2147 javax/naming/spi/ObjectFactory.java,
2148 javax/naming/spi/InitialContextFactory.java,
2149 javax/naming/spi/InitialContextFactoryBuilder.java,
2150 javax/naming/RefAddr.java, javax/naming/Reference.java,
2151 javax/naming/NamingException.java, javax/naming/Context.java,
2152 javax/naming/Referenceable.java,
2153 javax/naming/directory/InitialDirContext.java,
2154 javax/naming/directory/DirContext.java,
2155 javax/naming/directory/Attributes.java,
2156 javax/naming/directory/Attribute.java,
2157 javax/naming/StringRefAddr.java,
2158 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2159 javax/naming/InitialContext.java,
2160 javax/naming/NoInitialContextException.java: New files.
2162 2000-11-25 Anthony Green <green@redhat.com>
2164 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2165 (_Jv_NewPrimArray): Likewise.
2166 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2167 (class JArray): Removed constructor.
2169 * java/lang/Thread.java (context_class_loader): New private data.
2170 (getContextClassLoader): New method.
2171 (setContextClassLoader): New method.
2172 (Thread): Initialize context_class_loader.
2174 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2175 (getResource): Rename to findResource.
2176 (findResource): New method. Used to be getResource.
2177 (getResourceAsStream): Deleted.
2178 (jarFileize): Extracted logic from URLClassLoader constructor into
2179 this new private method.
2180 (addURL): New protected method.
2181 (URLClassLoader): Call jarFileize. Use addElement instead of
2183 (findResources): New method.
2185 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2186 (getResource): Implement correct logic.
2187 (findResource): New method.
2188 (getResources): New method.
2189 (findClass): Create a ClassNotFoundException with the name of the
2190 class rather than nothing at all.
2191 (defineClass) Only throw ClassFormatError.
2193 * java/lang/Class.java (forName): New method.
2194 * java/lang/Class.h (forName): New method.
2195 * java/lang/natClass.cc (forName): New method.
2197 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2199 * java/lang/System.java (setProperties): Only call init_properties()
2200 if properties is null.
2201 (getProperties): Ditto.
2202 (getProperty): Ditto.
2203 (setProperty): Call init_properties if properties are null.
2204 (prop_init): Remove field.
2205 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2206 method. Check for null properties after synchronizing instead of
2207 prop_init flag. Set the properties field last for thread safety.
2209 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2210 test for gcj.dumpobjects property and enable object stream dumping
2212 (dumpElement): No longer native.
2213 (dumpElementln): Ditto.
2214 (setDump): Do not define.
2215 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2216 (dumpElementln): Removed.
2219 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2221 * configure: Rebuilt.
2222 * Makefile.in: Rebuilt.
2223 * Makefile.am (built_java_source_files): Add Configuration.java.
2224 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2225 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2226 Create `gnu' directory in the build tree.
2227 * gnu/classpath/Configuration.java.in: New file.
2229 2000-11-24 Tom Tromey <tromey@cygnus.com>
2231 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2233 (_Jv_NewPrimArray): Likewise.
2235 * gcj/array.h (__JArray): `length' field now const. Added
2237 (class JArray): Added constructor.
2239 2000-11-23 Mark Wielaard <mark@klomp.org>
2241 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2244 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2246 * java/util/Vector.java: Improve exception messages.
2247 (Vector): Check initialCapacity for IllegalArgumentException.
2248 (tromToSize): Don't check for elementCount == elementData.length
2250 (toArray): Don't try to set null marker if target array is the same
2251 length as the vector.
2253 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2255 * Makefile.in: Rebuilt.
2256 * Makefile.am (core_java_source_files): Added Collections.java.
2257 * java/util/List.java: Merged from classpath.
2258 * java/util/Vector.java: Ditto.
2259 * java/util/Collections.java: From classpath.
2260 * java/util/ArrayList.java (addAll(Collection)): Call
2261 addAll(int,Collection) instead of duplicating code.
2262 (indexOf): Clean up int initialization.
2263 (clear): Set cleared array entries to null, to allow garbage
2265 * java/util/List.java: Minor formatting fixes.
2266 * java/util/SimpleTimeZone.java: ditto.
2268 2000-11-18 Tom Tromey <tromey@cygnus.com>
2270 * Makefile.in: Rebuilt.
2271 * Makefile.am (core_java_source_files): Added new files.
2272 * java/lang/reflect/ReflectPermission.java: New class.
2273 * java/io/FileFilter.java: From Classpath
2274 * java/io/FilePermission.java: From Classpath.
2276 2000-11-17 Tom Tromey <tromey@cygnus.com>
2278 * java/lang/reflect/AccessibleObject.java (isAccessible,
2279 setAccessible): Now public.
2281 * java/lang/natString.cc: Include Locale.h.
2282 (toUpperCase): Added `locale' argument. Handle locale
2284 (toLowerCase): Added `locale' argument. Handle locale
2286 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2287 CAPITAL_I): New defines.
2288 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2291 (toUpperCase, toLowerCase): New methods. Variants which accept
2294 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2297 * java/util/PropertyPermission.java: Re-merged from Classpath.
2299 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2301 * java/text/StringCharacterIterator.java: Reindented.
2302 (setText): New method.
2304 2000-11-17 Mark Wielaard <mark@klomp.org>
2306 Merge with Classpath (changes by Bryce McKinlay)
2307 * java/util/jar/*.java: Reformat all to unofficial standard coding
2308 style. No changes of substance.
2310 2000-11-17 Mark Wielaard <mark@klomp.org>
2312 * java/util/zip/*.java: Javadoc updates.
2314 2000-11-17 Tom Tromey <tromey@cygnus.com>
2316 * java/text/CollationKey.java: Implement Comparable.
2317 (compareTo(Object)): New method.
2318 * java/text/Collator.java (compare(Object,Object)): New method.
2319 Implement Comparator.
2321 * java/util/zip/InflaterInputStream.java (available): New method.
2322 (close): New method.
2323 (read, available, skip, fill): Throw exception if stream closed.
2324 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2325 getNextEntry): Throw exception if closed.
2327 2000-11-16 Tom Tromey <tromey@cygnus.com>
2329 * java/io/PushbackReader.java: Merged with Classpath.
2330 * java/util/Arrays.java: Updated from Classpath.
2332 * scripts/blocks.pl: New file.
2333 * java/lang/Character.java (Subset): New class.
2334 (UnicodeBlock): New class.
2336 * java/lang/Math.java (toDegrees, toRadians): New methods.
2338 * java/lang/Float.java: Implement Comparable.
2339 (compareTo): New methods.
2340 * java/lang/Double.java: Implement Comparable.
2341 (compareTo): New methods.
2343 2000-11-16 Warren Levy <warrenl@cygnus.com>
2345 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2347 (listeners): Made transient.
2348 (source): Renamed from 'bean'.
2349 (children): New field for serialization.
2350 (propertyChangeSupportSerializedDataVersion): Ditto.
2351 (serialVersionUID): Ditto.
2352 (writeObject): New serialization method.
2353 (readObject): New serialization method.
2354 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2356 (listeners): Made transient.
2357 (source): Renamed from 'bean'.
2358 (children): New field for serialization.
2359 (vetoableChangeSupportSerializedDataVersion): Ditto.
2360 (serialVersionUID): Ditto.
2361 (writeObject): New serialization method.
2362 (readObject): New serialization method.
2363 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2364 to allow constructor to have a return type (i.e. the class that the
2365 constructor constructs).
2367 2000-11-14 Tom Tromey <tromey@cygnus.com>
2369 * Makefile.in: Rebuilt.
2370 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2373 2000-11-02 Warren Levy <warrenl@cygnus.com>
2375 * java/io/ObjectInputStream.java (readObject): Added code to
2376 conditionally dump out the serialized data.
2377 Handle ENDBLOCKDATA case a bit more gracefully since the current
2378 behavior doesn't seem to work as expected.
2379 (readStreamHeader): Added code for serialized data dumper.
2380 (readNextBlock): Ditto.
2381 (readFields): Ditto.
2382 (dump): New private static field for turning on/off dumper.
2383 (setDump): New native method.
2384 (dumpElement): New native method.
2385 (dumpElementln): New native method.
2386 * java/io/natObjectInputStream.cc (setDump): New method.
2387 (dumpElement): New method.
2388 (dumpElementln): New method.
2390 2000-11-02 Warren Levy <warrenl@cygnus.com>
2392 * java/net/InetAddress.java (addr): Renamed from 'address'.
2393 (address): New field to match Serialized Form doc.
2394 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2395 (family): New serialization field.
2396 (serialVersionUID): New field.
2397 (readObject): New method.
2398 (writeObject): New method.
2399 (getFamily): New native method.
2400 (InetAddress): Set family.
2401 * java/net/natInetAddress.cc (getFamily): New method.
2402 (addr): Renamed from 'address'.
2403 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2404 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2405 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2407 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2409 * java/util/AbstractList.java (SubList): Make it a top-level private
2411 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2413 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2414 * Makefile.in: Rebuilt.
2416 2000-11-02 Tom Tromey <tromey@cygnus.com>
2418 * Makefile.in: Rebuilt.
2419 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2422 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2424 * java/util/AbstractList.java (remove): Comment out modCount increment
2425 to work around compiler bug.
2428 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2430 * java/util/AbstractList.java: Throw messages with
2431 IndexOutOfBoundsExceptions.
2432 (listIterator()): Call listIterator(0).
2433 (size): New field. Initialize to size().
2434 (hasNext): Test position against size, not size().
2435 (remove): Increment knownMod by one instead of resetting it from
2438 (SubList.upMod): Removed.
2439 (SubList.set): Don't call upMod() or update knownMod.
2440 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2441 (SubList.remove): Ditto.
2442 (SubList.addAll): Don't call backingList.size(). Increment size from
2444 (SubList.iterator): New method. Call listIterator(0).
2445 (SubList.listIterator): New method. Restore code to return an anonymous
2446 listIterator implementation (with some changes).
2447 * java/util/AbstractSequentialList.java: Throw messages with
2448 IndexOutOfBoundsExceptions.
2449 (addAll): Add a specnote.
2450 * java/util/ArrayList.java (removeRange): Get the math right.
2451 (addAll): Increment modCount _before_ creating iterator.
2452 * java/util/LinkedList.java: Rewritten, mostly.
2454 2000-11-01 Tom Tromey <tromey@cygnus.com>
2456 * scripts/encodings.pl: Added `ASCII' alias.
2457 * Makefile.in: Rebuilt.
2458 * Makefile.am (convert_source_files): Added new files.
2459 * gnu/gcj/convert/Input_ASCII.java: New file.
2460 * gnu/gcj/convert/Output_ASCII.java: New file.
2461 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2462 out-of-range characters.
2463 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2464 (read): Swap bytes if required. Treat `count' as character count,
2466 (write): Likewise. Also, handle case where iconv fails on a given
2468 (init): Put encoding into exception.
2469 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2470 (static): Call iconv_init. Rebuilt alias list.
2471 (iconv_init): New private method.
2473 2000-11-01 Tom Tromey <tromey@cygnus.com>
2475 * Makefile.in: Rebuilt.
2476 * Makefile.am (install-exec-hook): Only make a single symlink, and
2477 remove the destination before making the link.
2478 * configure: Rebuilt.
2479 * configure.in: Call AC_PROG_LN_S.
2481 2000-10-31 Warren Levy <warrenl@cygnus.com>
2483 * jni.cc: Added include of java/lang/ThreadGroup.h.
2484 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2485 per change of 2000-10-05.
2487 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2489 * java/util/BitSet.java: Updated @specnote.
2491 * java/io/Reader.java: Merge docs from classpath.
2492 (skip): Synchronize on `lock'.
2493 * java/io/FileReader.java: Import correct implementation from
2495 * java/io/StringReader.java: Merge docs from classpath.
2496 (ready): Throw IOException if stream is closed.
2498 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2500 * java/util/AbstractCollection.java (addAll): Use size() instead of
2501 hasNext() in iterator loop.
2503 (contains): Ditto. Simplify loop.
2504 (containsAll): Ditto.
2509 (toString): Ditto. Use string concatenation operators, not
2511 * java/util/AbstractList.java (addAll): Use size() instead of
2512 hasNext() in iterator loop.
2515 (indexOf): Ditto. Don't take null check outside of the loop.
2516 (iterator): Return an AbstractListItr instead of anonymous class.
2517 (lastIndexOf): Use a for loop bounded by size() instead of
2518 hasPrevious() in iterator loop.
2519 (listIterator): Return an AbstractListItr.
2520 (removeRange): Remove bounds checking code and docs.
2521 (AbstractListItr): New inner class. Code moved here from
2523 (SubList.iterator): Removed. Use default implementation from
2524 AbstractList instead.
2525 (SubList.listIterator): As above.
2526 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2527 instead of hasNext() in iterator loop.
2528 (containsValue): Ditto.
2534 (toString): Ditto. Use string concatenation operators, not
2536 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2537 bounded by size() instead of hasNext() in iterator loop.
2538 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2539 part of normal execution flow. Do an explicit null check instead.
2540 * java/util/ArrayList.java (_iSize): Rename to `size'.
2541 (_arData): Rename to `data'.
2542 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2545 (removeRange): Make protected. Don't check bounds.
2546 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2548 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2550 (addAll (int, Collection)): Check lower bounds. Simplify exception
2552 (clone): Clone the data array too.
2553 (indexOf): Inline doesEqual().
2554 (lastIndexOf): Ditto.
2555 (clear): Don't set array data to null.
2556 (set): Check lower bounds. Simplify exception string.
2557 (toArray): Correct comment.
2558 (trimToSize): Don't update modCount, this is not a structural change.
2561 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2563 (toString): Declare `bit' as long, not int.
2564 (data): Made package-private, not private.
2566 2000-10-27 Warren Levy <warrenl@cygnus.com>
2568 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2569 array elements to true.
2571 2000-10-27 Warren Levy <warrenl@cygnus.com>
2573 * Makefile.am: Added locale files from Classpath.
2574 * Makefile.in: Rebuilt.
2575 * gnu/java/locale/Calendar.java: New file.
2576 * gnu/java/locale/Calendar_de.java: New file.
2577 * gnu/java/locale/Calendar_en.java: New file.
2578 * gnu/java/locale/Calendar_nl.java: New file.
2579 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2580 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2581 serialization compatibility.
2582 (scale): Made private.
2583 (serialVersionUID): New field.
2584 * java/math/BigInteger.java (ival): Made transient.
2585 (words): Made transient.
2586 (bitCount): New serialization field.
2588 (firstNonzeroByteNum): Ditto.
2589 (lowestSetBit): Ditto.
2592 (serialVersionUID): New field.
2593 (readObject): New method.
2594 (writeObject): New method.
2595 * java/util/BitSet.java (serialVersionUID): New field.
2596 * java/util/Calendar.java: Replaced with Classpath file.
2597 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2598 of getDefault() for TimeZone or Locale instead of passing nulls.
2599 * java/util/Locale.java (serialVersionUID): New field.
2600 (writeObject): New method.
2601 (readObject): New method.
2602 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2604 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2606 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2607 (core_java_source_files): Put java.lang, java.io, and java.util here.
2608 (ordinary_java_source_files): Order so that core_java_source_files are
2610 (java_source_files): Reorder so that special_java_source_files are
2612 * configure.in: Don't pass -I flag to gcj.
2613 * Makefile.in: Rebuilt.
2614 * configure: Rebuilt.
2616 2000-10-25 Tom Tromey <tromey@cygnus.com>
2618 * Makefile.in: Rebuilt.
2619 * Makefile.am (install-exec-hook): New target.
2621 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2623 * java/util/EventObject.java: Merged from classpath.
2625 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2628 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2630 * java/util/AbstractSet.java (equals): Re-installed original code.
2632 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2634 * Makefile.am: Added rules for libgcjx library.
2635 * Makefile.in: Rebuilt.
2636 * configure.in: Added check for X.
2637 * configure: Rebuilt.
2638 * gnu/awt/LightweightRedirector.java: New file.
2639 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2640 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2641 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2642 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2643 * gnu/awt/j2d/MappedRaster.java: New file.
2644 * gnu/awt/xlib/XCanvasPeer.java: New file.
2645 * gnu/awt/xlib/XEventLoop.java: New file.
2646 * gnu/awt/xlib/XEventQueue.java: New file.
2647 * gnu/awt/xlib/XFontMetrics.java: New file.
2648 * gnu/awt/xlib/XFramePeer.java: New file.
2649 * gnu/awt/xlib/XGraphics.java: New file.
2650 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2651 * gnu/awt/xlib/XPanelPeer.java: New file.
2652 * gnu/awt/xlib/XToolkit.java: New file.
2653 * gnu/gcj/xlib/Clip.java: New file.
2654 * gnu/gcj/xlib/Colormap.java: New file.
2655 * gnu/gcj/xlib/Display.java: New file.
2656 * gnu/gcj/xlib/Drawable.java: New file.
2657 * gnu/gcj/xlib/Font.java: New file.
2658 * gnu/gcj/xlib/GC.java: New file.
2659 * gnu/gcj/xlib/Pixmap.java: New file.
2660 * gnu/gcj/xlib/Screen.java: New file.
2661 * gnu/gcj/xlib/Visual.java: New file.
2662 * gnu/gcj/xlib/WMSizeHints.java: New file.
2663 * gnu/gcj/xlib/Window.java: New file.
2664 * gnu/gcj/xlib/WindowAttributes.java: New file.
2665 * gnu/gcj/xlib/XAnyEvent.java: New file.
2666 * gnu/gcj/xlib/XButtonEvent.java: New file.
2667 * gnu/gcj/xlib/XColor.java: New file.
2668 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2669 * gnu/gcj/xlib/XConnectException.java: New file.
2670 * gnu/gcj/xlib/XEvent.java: New file.
2671 * gnu/gcj/xlib/XException.java: New file.
2672 * gnu/gcj/xlib/XExposeEvent.java: New file.
2673 * gnu/gcj/xlib/XID.java: New file.
2674 * gnu/gcj/xlib/XImage.java: New file.
2675 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2676 * gnu/gcj/xlib/natClip.cc: New file.
2677 * gnu/gcj/xlib/natColormap.cc: New file.
2678 * gnu/gcj/xlib/natDisplay.cc: New file.
2679 * gnu/gcj/xlib/natDrawable.cc: New file.
2680 * gnu/gcj/xlib/natFont.cc: New file.
2681 * gnu/gcj/xlib/natGC.cc: New file.
2682 * gnu/gcj/xlib/natPixmap.cc: New file.
2683 * gnu/gcj/xlib/natScreen.cc: New file.
2684 * gnu/gcj/xlib/natVisual.cc: New file.
2685 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2686 * gnu/gcj/xlib/natWindow.cc: New file.
2687 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2688 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2689 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2690 * gnu/gcj/xlib/natXColor.cc: New file.
2691 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2692 * gnu/gcj/xlib/natXException.cc: New file.
2693 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2694 * gnu/gcj/xlib/natXImage.cc: New file.
2695 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2696 * java/awt/EventDispatchThread.java: Start thead on creation.
2698 2000-10-20 Tom Tromey <tromey@cygnus.com>
2700 From Arno J. Klaassen:
2701 * interpret.cc: Include <stdlib.h> for alloca.
2702 * defineclass.cc: Include <stdlib.h> for alloca.
2704 * Makefile.in: Rebuilt.
2705 * Makefile.am: Include deps.mk.
2706 (GCJCOMPILE): Added -MD, -MT, and -MF.
2707 ($(javao_files)): Don't depend on libgcj.zip.
2708 (all-recursive): New target.
2709 (%.lo:%.cc): Do dependency tracking.
2710 ($(nat_headers)): Don't depend on libgcj.zip.
2711 * configure: Rebuilt.
2712 * configure.in: Make .d files and deps.mk.
2714 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2716 * exception.cc: Don't #include "exception".
2717 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2719 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2720 * Makefile.in: Updated.
2722 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2724 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2725 * java/awt/peer/ComponentPeer.java (disable): Removed.
2728 (minimumSize): Removed.
2729 (preferredSize): Removed.
2732 * java/awt/peer/ListPeer.java (addItem): Removed.
2734 (minimumSize): Removed.
2735 (preferredSize): Removed.
2736 (setMultipleSelections): Removed.
2737 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2738 (remove): Renamed from removeMenu.
2739 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2741 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2742 (remove): Renamed from removeItem.
2743 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2744 (getMinimumSize): Removed.
2745 (getPreferredSize): Removed.
2746 (minimumSize): Removed.
2747 (preferredSize): Removed.
2748 (replaceText): Removed.
2749 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2750 (preferredSize): Removed.
2751 (getMinimumSize): Removed.
2752 (getPreferredSize): Removed.
2753 (setEchoCharacter): Removed.
2755 2000-10-10 Warren Levy <warrenl@cygnus.com>
2757 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2758 * java/sql/Date.java (serialVersionUID): New field.
2759 * java/sql/Time.java (serialVersionUID): New field.
2760 * java/sql/Timestamp.java (serialVersionUID): New field.
2761 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2762 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2763 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2764 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2765 (readObject): New serialization method.
2766 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2767 (serialVersionOnStream): New field.
2768 (readObject): New serialization method.
2769 (getMonetaryDecimalSeparator): New method.
2770 (setMonetaryDecimalSeparator): New method.
2771 * java/text/NumberFormat.java (maxFractionDigits): New field.
2772 (maxIntegerDigits): New field.
2773 (minFractionDigits): New field.
2774 (minIntegerDigits): New field.
2775 (serialVersionOnStream): New field.
2776 (serialVersionUID): New field.
2777 (readObject): New serialization method.
2778 (writeObject): New serialization method.
2779 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2780 (serialVersionOnStream): New field.
2781 (serialVersionUID): New field.
2782 (readObject): New serialization method.
2784 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2786 * configure.in (GCJ): Avoid bogus error message when looking for
2787 (and not finding) gcj in the build tree.
2788 * configure: Rebuilt.
2790 2000-10-09 Tom Tromey <tromey@cygnus.com>
2792 * configure: Rebuilt.
2793 * configure.in: Include sys/types.h when checking for socklen_t.
2794 From Arno J. Klaassen.
2796 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2798 * include/jvm.h: Enable __builtin_expect().
2800 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2801 the main program. Fix for PR libgcj/341.
2803 2000-10-07 Tom Tromey <tromey@cygnus.com>
2805 * java/util/Properties.java: Merged with Classpath version.
2807 2000-10-05 Tom Tromey <tromey@cygnus.com>
2809 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2810 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2811 * java/lang/Class.h (Object): Added `class$' field.
2812 * java/lang/Object.h (Object): Added `class$' field.
2813 * defineclass.cc (ClassClass): Use `class$' form.
2814 (ClassObject): Likewise.
2815 * resolve.cc (ClassObject): Use `class$' form.
2816 (ObjectClass): Likewise.
2817 * interpret.cc (ClassError): Removed.
2818 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2820 (IntegerClass): Likewise.
2821 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2823 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2824 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2825 SerializableClass): Likewise.
2826 Include Serializable.h, Cloneable.h.
2827 * java/lang/natSystem.cc (SystemClass): Removed.
2828 (init_properties): Use `class$' form.
2829 * java/lang/natObject.cc (CloneableClass): Removed.
2830 (clone): Use `class$' form.
2831 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2832 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2833 ConstructorClass): Likewise.
2834 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2835 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2836 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2837 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2839 (ClassClass): Likewise.
2840 * include/jvm.h (StringClass): Use `class$' form.
2841 * prims.cc (ObjectClass): Removed.
2842 (_Jv_RunMain): Use `class$' form.
2843 (_Jv_AllocObject): Likewise.
2844 * jni.cc (ClassClass): Use `class$' form.
2845 (ThrowableClass): Likewise.
2846 (ObjectClass): Likewise.
2847 (MethodClass): Likewise.
2848 (ThreadGroupClass): Likewise.
2849 (NativeThreadClass): Likewise.
2850 * boehm.cc (ObjectClass): Removed.
2851 (ClassClass): Removed.
2852 (_Jv_MarkObj): Use `class$' form.
2853 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2856 2000-10-05 Warren Levy <warrenl@cygnus.com>
2858 * Makefile.am: Removed java/io/Replaceable.java and
2859 java/io/Resolvable.java.
2860 * Makefile.in: Rebuilt.
2861 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2863 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2865 (processResolution): Handle readResolve method via reflection with
2866 removal of Resolvable interface.
2867 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2868 method via reflection with removal of Replaceable interface.
2869 * java/io/Replaceable.java: Removed.
2870 * java/io/Resolvable.java: Removed.
2871 * java/security/Key.java (serialVersionUID): New field.
2872 * java/security/Provider.java (serialVersionUID): New field.
2873 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2875 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2877 * java/sql/DataTruncation.java (serialVersionUID): New field.
2878 * java/sql/SQLException.java (serialVersionUID): New field.
2879 * java/sql/SQLWarning.java (serialVersionUID): New field.
2880 * java/util/Date.java (serialVersionUID): New field.
2881 (millis): Made transient.
2882 (readObject): New method.
2883 (writeObject): New method.
2885 2000-10-05 Tom Tromey <tromey@cygnus.com>
2887 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2889 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2891 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2892 (JvRunMain): Set _Jv_argv and _Jv_argc.
2893 * java/awt/Component.java: Minor fixes.
2894 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2895 * java/awt/Toolkit.java (systemEventQueue): Removed.
2896 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2897 * java/awt/Window.java (getToolkit): Don't call super.
2898 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2899 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2900 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2901 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2902 * gnu/awt/gtk/GtkFramePeer.java: New file.
2903 * gnu/awt/gtk/GtkMainThread.java: New file.
2904 * gnu/awt/gtk/GtkToolkit.java: New file.
2905 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2906 * gnu/awt/gtk/gtkcommon.cc: New file.
2907 * gnu/awt/gtk/gtkcommon.h: New file.
2908 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2909 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2910 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2911 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2912 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2913 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2915 2000-09-30 Tom Tromey <tromey@cygnus.com>
2917 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2918 interrupted before modifying the cv's wait set.
2921 2000-09-30 Hans Boehm <boehm@acm.org>
2922 Bryce McKinlay <bryce@albatross.co.nz>
2924 Implement bitmap descriptor based marking for Boehm GC.
2926 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2927 * configure: Rebuilt.
2928 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2929 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2930 method get_finalizer().
2931 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2932 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2933 (_Jv_AllocObj): Add new jclass parameter.
2934 (_Jv_AllocArray): Ditto.
2935 (_Jv_BuildGCDescr): New prototype.
2936 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2937 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2938 get_finalizer() instead of direct finalizer vtable offset.
2939 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2940 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2941 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2942 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2943 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2944 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2945 (_Jv_DetermineVTableIndex): Ditto.
2946 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2947 calculations to account for new gc_descr field.
2948 * boehm.cc: #include gc_gcj.h.
2949 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2950 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2951 New commentary from HB. Mark the classes vtable.
2952 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2953 (GC_DEFAULT_DESCR): New #define.
2954 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2955 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2956 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2957 scan conservativly if size is less than min_heap_addr. Set vtable
2958 pointer of new object before returning.
2959 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2960 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2961 allocation for obj_kind_x.
2962 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2963 (_Jv_AllocObj): Set vtable on returned object.
2964 (_Jv_AllocArray): Ditto.
2965 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2966 (_Jv_NewPrimArray): Ditto.
2967 (_Jv_AllocObj): Declare as a friend.
2968 (_Jv_AllocArray): Ditto.
2969 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2970 from &ObjectClass into new array class. Remove offset-by-one
2971 adjustments from `method' size calculations to account for gc_descr
2974 2000-09-26 Tom Tromey <tromey@cygnus.com>
2976 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2977 `remove', not `add'.
2979 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2981 * java/lang/natSystem.cc (file_encoding): Added return statement.
2983 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2985 * Makefile.am: Re-work shell commands that exceeded command-line
2987 * Makefile.in: Rebuilt.
2989 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2991 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2992 * java/lang/natDouble.cc: Likewise.
2993 * java/lang/reflect/natMethod.cc: Likewise.
2994 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2996 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2998 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3000 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3001 * acinclude.m4: Arrange for automake to not bring in a new
3002 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3003 * Makefile.am: Leave it up to automake to subst GCJ.
3004 * aclocal.m4, configure, Makefile.in: Rebuilt.
3006 2000-09-13 Tom Tromey <tromey@cygnus.com>
3008 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3009 (get): Ensure Boolean class is initialized.
3010 * java/lang/reflect/natField.cc (BooleanClass): New define.
3011 (get): Ensure Boolean class is initialized.
3013 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3015 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3016 Initialize with anonymous class.
3017 (compareToIgnoreCase): New method.
3019 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3020 (uncaughtException): Set had_uncaught_exception.
3021 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3022 exit with error status if set.
3023 (_Jv_RunMain): Ditto.
3025 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3027 * configure: Rebuilt with new ../libtool.m4.
3029 2000-09-11 Tom Tromey <tromey@cygnus.com>
3031 * java/lang/reflect/Field.java (toString): Don't rely on
3034 2000-09-08 Tom Tromey <tromey@cygnus.com>
3036 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3037 default decoder use iconv.
3038 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3039 Let default encoder use iconv.
3040 * configure: Rebuilt.
3041 * configure.in: Check for nl_langinfo and <langinfo.h>.
3042 * java/lang/natSystem.cc (file_encoding): New function.
3043 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3045 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3047 * acinclude.m4: Simplify the tests for CC and CXX.
3048 * aclocal.m4, configure: Rebuilt.
3050 * acinclude.m4: Include libtool macros from the source tree.
3051 * aclocal.m4, configure: Rebuilt.
3053 2000-09-08 Warren Levy <warrenl@cygnus.com>
3055 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3056 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3057 * java/io/File.java (writeObject): Added.
3058 (readObject): Added.
3059 (serialVersionUID): Added.
3060 * java/io/ObjectOutputStream.java (writeObject): Initialized
3061 fieldsAlreadyWritten before recursion rather than after.
3062 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3063 * java/io/OptionalDataException.java (serialVersionUID): Added.
3064 (OptionalDataException): Made package private.
3065 * java/io/SyncFailedException.java (SyncFailedException): Removed
3066 default constructor to match spec.
3067 * java/lang/Boolean.java (serialVersionUID): Added.
3068 * java/lang/Byte.java (serialVersionUID): Added.
3069 * java/lang/Character.java (serialVersionUID): Added.
3070 * java/lang/Double.java (serialVersionUID): Added.
3071 * java/lang/Float.java (serialVersionUID): Added.
3072 * java/lang/Integer.java (serialVersionUID): Added.
3073 * java/lang/Long.java (serialVersionUID): Added.
3074 * java/lang/Number.java (serialVersionUID): Added.
3075 * java/lang/Short.java (serialVersionUID): Added.
3076 * java/lang/String.java (serialVersionUID): Added.
3077 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3079 * java/lang/reflect/InvocationTargetException.java
3080 (serialVersionUID): Added.
3081 * java/net/URL.java (handler): Made transient.
3082 (hashCode): Added field for serialization, per spec. and use
3083 cached value if available.
3084 (serialVersionUID): Added.
3085 (URL): Initialize hashCode.
3086 (set): Adjust hashCode.
3087 (readObject): New Method to initialize the protocol handler when
3089 (writeObject): New method.
3090 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3091 * java/text/Collator.java: Removed 'implements Serializable'.
3092 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3093 * java/util/Properties.java (serialVersionUID): Added.
3094 * java/util/Random.java (serialVersionUID): Added.
3095 (seed): Made private.
3096 (nextNextGaussian): Made private.
3097 (haveNextNextGaussian): Made private.
3098 * java/util/Stack.java (serialVersionUID): Added.
3099 * java/util/TimeZone.java (serialVersionUID): Added.
3100 * java/util/Vector.java (serialVersionUID): Added.
3102 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3104 * Makefile.am (Thread.h): Don't be friends with native threads
3106 * Makefile.in: Rebuilt.
3107 * java/lang/Thread.java (interrupt_flag): Make package-private.
3109 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3111 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3112 to avoid long long division.
3114 2000-09-06 Tom Tromey <tromey@cygnus.com>
3116 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3118 * java/lang/reflect/Method.java (toString): Use `getName' for
3121 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3122 `args' if method takes no parameters.
3124 Fix for PR java.lang/339:
3125 * java/lang/natPosixProcess.cc (fail): New function.
3126 (cleanup): New function.
3127 (startProcess): Use them. Create pipe so child can communicate
3128 exec failure back to parent.
3130 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3132 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3134 (send): Undo last patch. Remove the label only.
3136 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3138 * java/net/natInetAdress.cc: Ditto.
3140 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3142 2000-09-05 Tom Tromey <tromey@cygnus.com>
3144 * doc/cni.sgml: Updated from master copy.
3146 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3148 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3150 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3152 * java/lang/fdlibm.h: #undef __P if previously defined.
3153 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3154 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3158 2000-09-04 Tom Tromey <tromey@cygnus.com>
3160 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3163 2000-09-04 Anthony Green <green@redhat.com>
3165 Fix for PR java.io/203:
3166 * java/io/File.java (createTempFile): Obey directory argument.
3167 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3168 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3169 variable to set java.io.tmpdir on non-WIN32 systems.
3171 2000-09-04 Anthony Green <green@redhat.com>
3173 * java/io/File.java (deleteOnExit): New method.
3174 * gnu/gcj/runtime/FileDeleter.java: New class.
3175 * java/lang/natRuntime.cc (exit): Call
3176 FileDeleter.deleteOnExitNow()
3177 * Makefile.am: Add FileDeleter.java.
3178 * Makefile.in: Rebuilt.
3180 2000-09-02 Tom Tromey <tromey@cygnus.com>
3182 * Makefile.in: Rebuilt.
3183 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3184 environment variable.
3186 2000-09-01 Andrew Haley <aph@redhat.com>
3188 * java/io/StreamTokenizer.java: Don't throw a
3189 NumberFormatException if a field is numeric as far as the
3190 StreamTokenizer is concerned but not as far as Double.valueOf() is
3191 concerned: return a zero instead.
3193 2000-08-30 Tom Tromey <tromey@cygnus.com>
3195 * Makefile.in: Rebuilt.
3196 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3198 2000-08-28 Tom Tromey <tromey@cygnus.com>
3200 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3201 gnu/gcj/awt/ComponentDataBlitOp.java,
3202 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3203 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3204 java/awt/color/ICC_ColorSpace.java,
3205 java/awt/color/ICC_Profile.java,
3206 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3207 java/awt/image/ComponentColorModel.java,
3208 java/awt/image/ComponentSampleModel.java,
3209 java/awt/image/DataBuffer.java,
3210 java/awt/image/DataBufferByte.java,
3211 java/awt/image/DataBufferInt.java,
3212 java/awt/image/DataBufferUShort.java,
3213 java/awt/image/DirectColorModel.java,
3214 java/awt/image/IndexColorModel.java,
3215 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3216 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3217 java/awt/image/SinglePixelPackedSampleModel.java,
3218 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3219 Removed Latin-1 copyright symbols.
3220 * java/util/zip/ZipFile.java: Indentation fixes.
3222 2000-08-27 Mark Wielaard <mark@klomp.org>
3224 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3225 constructor, close can delete the file, finalize calls close.
3226 * java/util/jar/JarFile.java: Constructor that takes mode now
3229 2000-08-27 Anthony Green <green@redhat.com>
3231 * java/util/ArrayList.java, java/util/Timer.java,
3232 java/util/LinkedList.java, java/util/TimerTask.java,
3233 java/util/HashMap.java, java/util/AbstractMap.java,
3234 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3235 java/util/SortedSet.java: Imported from GNU Classpath.
3236 * Makefile.in: Rebuilt.
3237 * Makefile.am: Added new files.
3239 2000-08-26 Anthony Green <green@redhat.com>
3241 * Makefile.in: Rebuilt.
3242 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3245 * prims.cc: Include ClassLoader.h.
3246 (_Jv_RunMain): When executing jar files, classpath must be the jar
3247 file only. Lose our reference to the system ClassLoader in order
3248 to get a new one with the correct classpath.
3249 * java/lang/natSystem.cc (init_properties): When executing a jar
3250 file, only use the jar file for java.class.path.
3252 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3253 for bytecode archives.
3255 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3256 exists, but not Main-Class.
3258 2000-08-23 Mark Wielaard <mark@klomp.org>
3260 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3261 return -1 when fill() has no more data for the Inflater.
3263 2000-08-23 Mark Wielaard <mark@klomp.org>
3265 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3266 write(String) already does.
3268 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3270 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3271 to `alive_flag', call `init'.
3272 (init): New native method.
3273 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3276 2000-08-21 Mark Wielaard <mark@klomp.org>
3278 * Makefile.in: Rebuilt.
3279 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3281 (java/lang/reflect/Field.h): Likewise.
3282 (java/lang/reflect/Method.h): Likewise.
3283 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3286 2000-08-21 Tom Tromey <tromey@cygnus.com>
3288 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3291 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3293 * java/lang/natSystem.cc (init_properties): Change sourceware
3294 reference to sources.redhat.com.
3296 * include/java-props.h: Add _Jv_Jar_Class_Path.
3297 * prims.cc: Ditto. Set it from `gij -jar file' option.
3299 * java/lang/natSystem.cc (init_properties): Set java.class.path
3301 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3303 * java/util/PropertyPermission.java: Import from GNU Classpath.
3304 * Makefile.in: Rebuilt.
3305 * Makefile.am: Add java/util/PropertyPermission.java.
3306 * java/lang/System.java: Add setProperty method.
3308 * gij.cc (main): Add -jar option to execute jar files.
3309 (help): Describe -jar option.
3310 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3311 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3312 * gnu/gcj/runtime/FirstThread.java (main): New method.
3314 * java/util/jar/Attributes.java: Correct comment spelling.
3316 2000-08-20 Mark Wielaard <mark@klomp.org>
3318 * java/util/zip/Adler32.java: Make private variables really private
3319 * java/util/zip/CRC32.java: Make private variables really private
3320 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3322 * java/util/zip/InflaterInputStream.java: skip() could skip to
3324 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3325 * java/util/zip/ZipFile.java: size() new 1.2 method
3326 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3327 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3330 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3332 * java/util/jar/JarFile.java: Don't call
3333 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3336 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3338 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3339 Read the entire contents of the class file, not just what is
3342 * java/net/JarURLConnection.java: getEntry doesn't take any
3343 arguments. Return null if element is null.
3345 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3346 size from the archive, not the inflated size.
3348 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3349 java.util.zip.ZipFile.getEntry.
3351 * gij.cc (help): Change sourceware reference to
3354 2000-08-19 Tom Tromey <tromey@cygnus.com>
3356 * java/util/zip/ZipInputStream.java (createZipEntry):
3359 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3361 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3362 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3363 java/util/jar/JarInputStream.java,
3364 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3365 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3366 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3367 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3368 java/security/cert/Certificate.java,
3369 java/security/cert/CertificateEncodingException.java,
3370 java/security/cert/CertificateException.java,
3371 java/security/cert/CertificateExpiredException.java,
3372 java/security/cert/CertificateFactory.java,
3373 java/security/cert/CertificateFactorySpi.java,
3374 java/security/cert/CertificateNotYetValidException.java,
3375 java/security/cert/CertificateParsingException.java,
3376 java/security/cert/X509CRL.java,
3377 java/security/cert/X509CRLEntry.java,
3378 java/security/cert/X509Certificate.java,
3379 java/security/cert/X509Extension.java: Imported from Classpath.
3380 * java/util/Hashtable.java: Imported from Classpath.
3382 * java/util/zip/ZipInputStream.java: Create stub for
3385 * gcj/javaprims.h: Updated class list.
3387 * Makefile.in, gcj/Makefile.in: Rebuilt.
3388 * Makefile.am (ordinary_java_source_files): Add these new classes.
3390 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3392 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3393 * gnu/gcj/awt/GLightweightPeer.java: New file.
3394 * java/awt/BorderLayout.java: Implemented all methods.
3395 * java/awt/Button.java (actionListener, actionCommand): Renamed
3396 and modifier change.
3397 (addNotify): Call super.
3398 (dispatchEventImpl): New method.
3399 (getListeners): New method.
3400 (label): Made package-private, not private.
3401 * java/awt/Canvas.java: Implemented class body.
3402 * java/awt/Color.java (brighter): New method.
3403 (darker): New method.
3404 (hashCode): New method.
3405 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3406 (getGraphicsConfiguration): Delegate to
3407 getGraphicsConfigurationImpl().
3408 (getGraphicsConfigurationImpl): New method.
3409 (getToolkit): Only return value from peer if not null.
3410 (isDisplayable): Check with parent.
3411 (isShowing): No parent implies not showing.
3412 (getForeground): Check parent property if local is null.
3413 (getBackground): Likewise.
3414 (getFont): Likewise.
3415 (setForeground): Inform peer.
3416 (setBackground): Likewise
3417 (setLocale): Invalidate component.
3418 (getColorModel): Implemented.
3419 (setLocation): Invalidate, or ignore if no change.
3420 (setSize): Invalidate, or ignore if no change.
3421 (setBounds): Invalidate, or ignore if no change.
3422 (isOpaque): By default, heavyweight implies opaque.
3423 (isLightweight): Implemented.
3424 (getMaximumSize): Implemented.
3425 (doLayout): Implemented, NOP.
3426 (validate): Implemented, NOP.
3427 (invalidate): Only propagate to parent if parent was valid.
3428 (getGraphics): Implemented.
3429 (getFontMetrics): Implemented.
3430 (update): Implemented.
3431 (paintAll): Implemented.
3432 (repaint): Implemented all repaint methods.
3433 (print): Implemented.
3434 (printAll): Implemented.
3435 (createImage): Implemented.
3436 (dispatchEvent): Give the peer a chance to handle the event.
3437 (dispatchEventImpl): Dispatch paint events.
3438 (enableEvents): Lightweights enable events on parent component.
3439 (coalesceEvents): Coalesce paint events, and select event type
3441 (coalescePaintEvents): New method.
3442 (processEvent): Fix unfortunate ordering of statements, and call
3443 correct method for MOUSE_CLICKED.
3444 (processPaintEvent): New method.
3445 (addNotify): Allow container to notify children before event
3446 mask is set in peer.
3447 (addNotifyContainerChildren): New method.
3448 (removeNotify): Visibility should not change on removeNotify.
3449 (paramString): Implemented.
3450 (list): Implemented two of the list methods.
3451 * Container (myInsets): Removed, insets are managed by peer.
3452 (getInsets): Query peer.
3453 (addImpl): Fix reparenting, enable events for lightweights,
3454 initialize component array.
3455 (validate): Call doLayout in validateTree() instead.
3456 (validateTree): Do nothing if already valid. Call beginValidate(),
3457 endValidate() on peer. Call validateTree() instead of validate()
3458 for children that are containers. Mark valid after validation of
3460 (setFont): Partial implementation.
3461 (paint): Implemented.
3462 (visitChildren): New method.
3463 (visitChild): New method.
3464 (update): Implemented.
3465 (print): Implemented.
3466 (paintComponents): Implemented.
3467 (printComponents): Consider translation and clipping.
3468 (getComponentAt): Ignore invisible children. Return this if no
3470 (addNotify): Call super.
3471 (addNotifyContainerChildren): New method.
3472 (paramString): Implemented.
3473 (list): Implemented.
3474 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3476 (invokeLater): Likewise.
3477 (isDispatchThread): Likewise.
3478 * java/awt/FontMetrics (getLeading): Formula change.
3479 (getDescent): Consider leading also.
3480 (getMaxAscent): Default to getAscent().
3481 (getMaxDescent): Default to getDescent.
3482 (getMaxAdvance): Return value signifying unknown.
3483 (charWidth): Both methods implemented.
3484 (charsWidth): Implemented.
3485 (bytesWidth): Implemented.
3486 (getWidths): Implemented.
3487 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3489 (Frame): Rearragend constuctor chaining to disallow null being
3490 passed as a graphics configuration.
3491 (getTitle): Return empty string if null.
3493 (getIconImage): New method.
3494 (setIconImage): New method.
3495 (finalize): New method.
3496 (setMenuBar): Notify peer.
3497 (isResizable): New method.
3498 (setResizable): New method.
3499 (getState): New method.
3501 (remove): Implemented.
3502 (removeNotify): New method.
3503 (getFrames): New method.
3504 * java/awt/Graphics.java: Implemented body of class.
3505 * java/awt/Graphics2D.java: New file.
3506 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3507 * java/awt/Image.java: Implemented body of class.
3508 * java/awt/Panel.java (Panel): Call correct super constructor.
3509 (addNotify): Implemented.
3510 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3511 * java/awt/RenderingHints.java: New file.
3512 * java/awt/Toolkit.java (createComponent): Implemented.
3513 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3514 * java/awt/Window.java (Window): Two new constructors. Reordered
3515 constructor chaining.
3516 (getGraphicsConfigurationImpl): New method.
3517 (finalize): Call super.
3518 (addNotify): Call super.
3519 (pack): Do layout stuff.
3520 (show): Ensure that peer exists and that component is valid.
3521 (dispose): Dispose owned children.
3522 (getOwner): Simplify code, casting null pointers is valid.
3523 (getGraphicsConfiguration): Ask peer if local value is null.
3524 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3526 * java/awt/image/BufferedImage.java: New file.
3527 * java/awt/image/RasterOp.java: New file.
3528 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3529 More powerfull replacement for getColorModel().
3530 (getColorModel) Removed.
3531 (setEventMask) New method.
3532 * Makefile.am: Added new files.
3533 * Makefile.in: Rebuilt.
3535 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3537 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3538 (finit_leg_name): New global.
3539 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3540 `$finit$'. This is a backward compatibility hack.
3541 (java::lang::Class::_getMethods): Likewise.
3543 2000-08-15 Andrew Haley <aph@cygnus.com>
3545 * include/jvm.h (_Jv_HashCode): New hash code.
3547 2000-08-15 Tom Tromey <tromey@cygnus.com>
3549 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3551 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3553 * THANKS: More thanks.
3555 2000-08-10 Tom Tromey <tromey@cygnus.com>
3557 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3559 (connect): Likewise.
3561 (getOption): Likewise.
3562 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3563 case when errno not set.
3566 (receive): Likewise.
3567 (mcastGrp): Likewise.
3568 (setOption): Likewise.
3569 (getOption): Likewise.
3571 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3572 John Stracke <francis@ecal.com>
3574 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3575 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3577 (disconnect): Don't unset connected flag.
3578 (getHeaderField (String)): Call connect() if not connected.
3579 (getHeaderField (int)): Ditto.
3580 (getHeaderFieldKey): Ditto.
3581 (getHttpHeaders): Don't call connect().
3582 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3583 gotResponseVals): New fields.
3584 (getResponseCode): Call getResponseVals() conditionally.
3585 (getResponseMessage): Ditto.
3586 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3588 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3590 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3591 * Makefile.in: Rebuilt.
3592 * java/awt/Color.java (getTransparency): New method.
3593 * java/awt/Component.java: Various updates.
3594 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3595 after dealing with children.
3596 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3597 * java/awt/Window.java: Various new methods and updates.
3598 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3600 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3601 * java/awt/event/WindowEvent.java (paramString): Ditto.
3602 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3604 * java/awt/geom/Point2D.java (clone): Ditto.
3605 * java/awt/geom/RectangularShape.java (clone): Ditto.
3606 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3607 isAlphaPremultiplied): Make package-private, not private.
3609 2000-08-08 Tom Tromey <tromey@cygnus.com>
3611 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3612 surrogate characters.
3613 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3615 (write): Correct handling of surrogate characters.
3617 2000-08-07 Tom Tromey <tromey@cygnus.com>
3619 * java/lang/reflect/Method.java (hashCode): Use getName().
3620 (toString): Likewise.
3621 * java/lang/reflect/natMethod.cc (getType): Initialize
3624 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3626 * java/lang/reflect/Field.java (toString): Correct formatting.
3629 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3631 (receive): Streamlined.
3633 2000-08-05 Tom Tromey <tromey@cygnus.com>
3635 * java/io/PrintWriter.java: Merged comments from Classpath.
3636 (printlnUnsynchronized): Removed.
3637 (println()): Print the separator.
3638 (println): Call println(), not printlnUnsynchronized.
3639 (out): Now protected, to match spec.
3641 2000-08-04 Tom Tromey <tromey@cygnus.com>
3643 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3644 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3647 2000-08-03 Warren Levy <warrenl@cygnus.com>
3649 * java/io/ObjectInputStream.java (readFields): Turn off
3650 readDataFromBlock while reading via GetField.
3651 (GetField$1.get(String, Object)): Pass Class of default value to
3653 (getField): Allow for null default values.
3655 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3656 (PutField$1.put): Fixed calls of checkType in most of the put
3657 methods to pass the correct parameter.
3658 (PutField$1.put(String, Object)): Allow for null value arg.
3659 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3662 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3663 typo in spec'ed field name.
3664 (getSerialPersistentFields): Changed spelling of method to match
3665 the correct spelling of the spec'ed field name.
3667 2000-08-03 Tom Tromey <tromey@cygnus.com>
3669 * Makefile.in: Rebuilt.
3670 * Makefile.am (awt_java_source_files): Added new files.
3672 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3674 * Makefile.am: Add new AWT stubs.
3675 * java/awt/Canvas.java: New placeholder class.
3676 * java/awt/Checkbox.java: Ditto.
3677 * java/awt/CheckboxMenuItem.java: Ditto.
3678 * java/awt/Choice.java: Ditto.
3679 * java/awt/Dialog.java: Ditto.
3680 * java/awt/FileDialog.java: Ditto.
3681 * java/awt/List.java: Ditto.
3682 * java/awt/ScrollPane.java: Ditto.
3683 * java/awt/TextField.java: Ditto.
3684 * java/awt/datatransfer/Clipboard.java: Ditto.
3685 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3686 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3687 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3688 Some commented out. Partially implemented.
3689 * java/awt/natToolkit.cc: Removed file.
3691 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3693 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3694 Fixes "make -j" builds.
3695 * Makefile.in: Rebuild.
3697 2000-08-02 Tom Tromey <tromey@cygnus.com>
3699 * Makefile.in: Rebuilt.
3700 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3701 * java/net/natPlainSocketImpl.cc: Include posix.h.
3702 (accept): Use _Jv_select.
3703 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3704 (receive): Use _Jv_select.
3705 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3706 (available): Use _Jv_select.
3707 * java/lang/natSystem.cc: Include posix.h.
3708 (currentTimeMillis): Use _Jv_gettimeofday.
3709 * include/posix.h: New file.
3710 * posix.cc: New file.
3712 * scripts/encodings.pl: New file.
3713 * Makefile.in: Rebuilt.
3714 * Makefile.am (convert_source_files): Added IOConverter.java.
3715 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3717 (getDefaultDecodingClass): Canonicalize default encoding name.
3718 (getEncoder): Likewise.
3719 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3721 (getDefaultDecodingClass): Canonicalize default encoding name.
3722 (getDecoder): Likewise.
3723 * gnu/gcj/convert/IOConverter.java: New file.
3725 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3727 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3728 to match C declaration in ffi.h.
3729 * Makefile.am: Add java/awt/Button.java.
3730 * Makefile.in: Rebuilt.
3732 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3734 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3735 cast of the second argument to `ffi_raw_call' changed to match
3738 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3740 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3741 argument to `ffi_raw_call' changed to match prototype.
3743 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3745 * java/awt/Component.java (toString): Implemented.
3746 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3747 dispatchEvent() to dispatch the event.
3748 (removeImpl): Ditto.
3750 2000-07-30 Anthony Green <green@redhat.com>
3752 * java/awt/Component.java: Add treeLock object.
3753 (getTreeLock): Implement.
3754 (isShowing): Implement.
3756 2000-07-30 Tom Tromey <tromey@cygnus.com>
3758 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3760 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3762 * java/awt/Window.java (addNotify): Wrote.
3763 (addWindowListener): Wrote.
3765 (getWarningString): Wrote.
3766 (processEvent): Wrote.
3767 (processWindowEvent): Wrote.
3768 (removeWindowListener): Wrote.
3769 (show): Call validate(), setVisible().
3773 * java/awt/Toolkit.java (createWindow): Declare.
3775 * java/awt/Frame.java (addNotify): Use getToolkit to find
3778 * java/awt/Component.java (invalidate): Wrote.
3780 (getToolkit): Wrote.
3782 * java/awt/Container.java (addContainerListener): Removed
3784 (removeContainerListener): Likewise.
3786 (add(Component)): Use it.
3787 (add(String,Component)): Likewise.
3788 (add(Component,int)): Likewise.
3789 (add(Component,Object)): Likewise.
3790 (add(Component,Object,int)): Likewise.
3792 (getAlignmentX): Wrote.
3793 (getAlignmentY): Wrote.
3794 (getComponentAt): Wrote.
3795 (getMaximumSize): Wrote.
3796 (invalidate): Wrote.
3797 (list(PrintStream,int)): Wrote.
3798 (list(PrintWriter,int)): Wrote.
3799 (getMinimumSize): Wrote.
3800 (getPreferredSize): Wrote.
3801 (printComponents): Wrote.
3802 (processContainerEvent): Look at containerListener, not
3804 (remove): Added event processing and peer destruction.
3805 (removeAll): Use remove.
3806 (removeNotify): Wrote.
3808 (validateTree): Wrote.
3810 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3811 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3812 * java/awt/Container.java (addNotify): Don't create Container
3814 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3816 2000-07-30 Tom Tromey <tromey@cygnus.com>
3818 * java/awt/Container.java (remove(int)): Wrote.
3819 (remove(Component)): Wrote.
3820 (add(Component)): Wrote.
3821 (add(Component,int)): Wrote.
3823 (addNotify): Set our own peer.
3824 * java/awt/Scrollbar.java (listeners): Changed type.
3825 (Scrollbar): Don't initialize listeners.
3827 (setValue): Call setValues.
3828 (setMinimum): Likewise.
3829 (setMaxPriority): Likewise.
3830 (setVisibleAmount): Likewise.
3832 (setUnitIncrement): Forward to peer.
3833 (setLineIncrement): Call setUnitIncrement.
3834 (setPageIncrement): Call setBlockIncrement.
3835 (setBlockIncrement): Forward to peer.
3836 (addAdjustmentListener): Rewrote.
3837 (removeAdjustmentListener): Rewrote.
3838 (processAdjustmentEvent): Rewrote.
3839 (paramString): Wrote.
3840 * Makefile.in: Rebuilt.
3841 * Makefile.am (awt_java_source_files): Added Button.java.
3842 * java/awt/Button.java: New file.
3843 * java/awt/Toolkit.java (createLabel): Declare.
3844 (createButton): Likewise.
3845 (createScrollbar): Likewise.
3846 (createContainer): Likewise.
3847 * java/awt/Label.java (addNotify): Wrote.
3848 (setAlignment): Call setAlignment in the peer.
3849 (setText): Call setText in the peer.
3851 2000-07-28 Warren Levy <warrenl@cygnus.com>
3853 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3854 NotSerializableException with just the class name.
3856 2000-07-26 Andrew Haley <aph@cygnus.com>
3858 * interpret.cc (continue1): Insert missing break into switch.
3860 2000-07-28 Warren Levy <warrenl@cygnus.com>
3862 * java/io/ObjectStreamException.java: Made constructors protected.
3864 2000-07-27 Tom Tromey <tromey@cygnus.com>
3866 * java/io/OutputStreamWriter.java (close): Only flush if not
3869 2000-07-27 Warren Levy <warrenl@cygnus.com>
3871 * mauve-libgcj: Activated serialization tests.
3872 * gcj/field.h (getModifiers): Mask off unknown flags.
3873 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3874 spurious bits don't cause discrepancies.
3875 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3876 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3877 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3878 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3879 * java/lang/Throwable.java (serialVersionUID): New field.
3880 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3881 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3883 * java/lang/reflect/natMethod.cc: Ditto.
3884 * java/security/Key.java (serialVersionUID): Removed field for now.
3885 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3886 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3888 2000-07-22 Tom Tromey <tromey@cygnus.com>
3890 * java/awt/geom/RectangularShape.java (getPathIterator):
3893 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3895 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3896 stub libjava/java/awt/ColorModel.java which was located in the
3898 * libjava/java/awt/image/ComponentColorModel.java: New file.
3899 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3900 * libjava/java/awt/image/DataBuffer.java: New file.
3901 * libjava/java/awt/image/DataBufferByte.java: New file.
3902 * libjava/java/awt/image/DataBufferInt.java: New file.
3903 * libjava/java/awt/image/DataBufferUShort.java: New file.
3904 * libjava/java/awt/image/DirectColorModel.java: New file.
3905 * libjava/java/awt/image/PackedColorModel.java: New file.
3906 * libjava/java/awt/image/Raster.java: New file.
3907 * libjava/java/awt/image/SampleModel.java: New file.
3908 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3910 * libjava/java/awt/image/IndexColorModel.java: New file.
3911 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3912 java.awt.ColorModel stub.
3914 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3915 * gnu/gcj/util/Buffers.java: New file, utility class.
3917 * libjava/Makefile.am: Updated to include new files.
3918 * libjava/Makefile.in: Rebuilt.
3920 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3922 * java/io/StreamTokenizer.java: Merged with classpath.
3924 2000-07-20 Tom Tromey <tromey@cygnus.com>
3926 * Makefile.in: Rebuilt.
3927 * Makefile.am (awt_java_source_files): Updated for new files.
3928 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3929 * java/awt/Label.java: New file.
3930 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3931 (createIntersection, createUnion, getBounds2D): New methods.
3932 * java/awt/Scrollbar.java: New file.
3933 * java/awt/Shape.java: Updated to 1.2.
3934 * java/awt/geom/AffineTransform.java: New file.
3935 * java/awt/geom/Ellipse2D.java: New file.
3936 * java/awt/geom/NoninvertibleTransformException.java: New file.
3937 * java/awt/geom/PathIterator.java: New file.
3938 * java/awt/geom/Rectangle2D.java: New file.
3939 * java/awt/geom/RectangularShape.java: New file.
3940 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3941 * java/awt/geom/IllegalPathStateException.java: New file.
3943 * scripts/showval.java: New file.
3945 * scripts/classes.pl (scan): Print inner classes properly.
3946 * gcj/javaprims.h: Updated class list.
3948 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3949 initialize String fields for interpreted classes. Fixes bug
3950 reported by Hans Boehm.
3952 * java/io/File.java (getParentFile): New method, from Classpath
3953 via Oskar Liljeblad.
3955 * java/util/Vector.java (remove(Object)): Implemented.
3957 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3959 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3960 zero return from backtrace().
3962 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3964 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3966 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3967 before calling notifyAll().
3969 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3971 Add missing files from last check-in:
3972 * java/awt/image/ImageConsumer.java: New file.
3973 * java/awt/image/ImageProducer.java: New file.
3974 * java/awt/image/ImageObserver.java: New file.
3976 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3978 Merged implementation of java.applet from classpath:
3979 * java/applet/Applet.java: New file.
3980 * java/applet/AppletContext.java: New file.
3981 * java/applet/AppletStub.java: New file.
3982 * java/applet/AudioClip.java: New file.
3984 * Makefile.am: Added new java.applet classes.
3985 * Makefile.in: Rebuilt.
3987 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3990 * java/util/ResourceBundle.java (getLocale): stub.
3991 * Makefile.am: Added new AWT classes.
3992 * Makefile.in: Rebuilt.
3993 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3994 constructors. Fix toString() and paramString().
3995 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3996 * java/awt/CheckboxGroup.java: New class.
3997 * java/awt/ColorModel.java: New class.
3998 * java/awt/Component.java: Added stubs for most methods. Implemented
4000 * java/awt/Container.java: ditto.
4001 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4002 * java/awt/Cursor.java: ditto.
4003 * java/awt/Event.java: Fix paramString().
4004 * java/awt/EventQueue.java: New class. Implemented.
4005 * java/awt/Font.java: Added additional stub methods. Implemented
4007 * java/awt/FontMetrics.java: New class. Stubbed.
4008 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4010 * java/awt/Insets.java: New class. Implemented.
4011 * java/awt/Menu.java: Add new methods. Partially implemented.
4012 * java/awt/MenuItem.java: Add new methods and fields. Partially
4014 * java/awt/MenuShortcut.java: New class. Implemented.
4015 * java/awt/Panel.java: New class. Placeholder.
4016 * java/awt/PopupMenu.java: New class. Stubbed.
4017 * java/awt/Rectangle.java: New class. Implemented.
4018 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4019 * java/awt/event/ActionEvent.java: Implement paramString().
4020 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4021 * java/awt/event/ComponentEvent.java: Implement paramString().
4022 * java/awt/event/ContainerEvent.java: Implement paramString().
4023 * java/awt/event/FocusEvent.java: Implement paramString().
4024 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4025 * java/awt/event/HierarchyBoundsListener.java: New class.
4026 * java/awt/event/HierarchyEvent.java: New class.
4027 * java/awt/event/HierarchyListener.java: New class.
4028 * java/awt/event/InputMethodEvent.java: Implement paramString().
4029 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4030 exception if !catchExceptions.
4031 * java/awt/event/ItemEvent.java: Implement paramString().
4032 * java/awt/event/KeyEvent.java: Implement paramString().
4033 * java/awt/event/MouseEvent.java: Implement paramString().
4034 * java/awt/event/PaintEvent.java: Implement paramString().
4035 * java/awt/event/TextEvent.java: Implement paramString().
4036 * java/awt/event/WindowEvent.java: Implement paramString().
4038 AWT Peer interfaces:
4039 * java/awt/peer/ButtonPeer.java: New file.
4040 * java/awt/peer/ListPeer.java: New file.
4041 * java/awt/peer/CanvasPeer.java: New file.
4042 * java/awt/peer/MenuBarPeer.java: New file.
4043 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4044 * java/awt/peer/MenuComponentPeer.java: New file.
4045 * java/awt/peer/CheckboxPeer.java: New file.
4046 * java/awt/peer/MenuItemPeer.java: New file.
4047 * java/awt/peer/ChoicePeer.java: New file.
4048 * java/awt/peer/MenuPeer.java: New file.
4049 * java/awt/peer/ComponentPeer.java: Implemented.
4050 * java/awt/peer/PanelPeer.java: New file.
4051 * java/awt/peer/ContainerPeer.java: Implemented.
4052 * java/awt/peer/PopupMenuPeer.java: New file.
4053 * java/awt/peer/DialogPeer.java: New file.
4054 * java/awt/peer/ScrollPanePeer.java: New file.
4055 * java/awt/peer/FileDialogPeer.java: New file.
4056 * java/awt/peer/ScrollbarPeer.java: New file.
4057 * java/awt/peer/FontPeer.java: New file.
4058 * java/awt/peer/TextAreaPeer.java: New file.
4059 * java/awt/peer/FramePeer.java: Implemented.
4060 * java/awt/peer/TextComponentPeer.java: New file.
4061 * java/awt/peer/LabelPeer.java: New file.
4062 * java/awt/peer/TextFieldPeer.java: New file.
4063 * java/awt/peer/LightweightPeer.java: New file.
4064 * java/awt/peer/WindowPeer.java: Implemented.
4066 2000-07-06 Tom Tromey <tromey@cygnus.com>
4068 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4069 Initialize static final String fields.
4071 2000-07-03 Tom Tromey <tromey@cygnus.com>
4073 * java/io/PrintWriter.java (print): Call write(String), not
4074 print(String). See PR libgcj/277.
4075 (print(String)): Use write, not out.write.
4077 2000-06-30 Tom Tromey <tromey@cygnus.com>
4079 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4081 2000-06-27 Andrew Haley <aph@cygnus.com>
4083 * java/io/File.java (createTempFile): Close the FileDescriptor
4084 used to create a temp file. Fixes some of PR 203.
4085 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4086 collection if we run out of file handles.
4088 2000-06-28 Warren Levy <warrenl@cygnus.com>
4090 * gnu/java/security/provider/Gnu.java: New file.
4091 * gnu/java/security/provider/SHA.java: New file.
4092 * gnu/java/security/provider/SHA1PRNG.java: New file.
4093 * Makefile.am: Added the above files.
4094 * Makefile.in: Rebuilt.
4096 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4098 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4100 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4101 (destroyed_flag): Removed.
4102 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4103 (activeCount): Added spec note.
4105 2000-06-27 Warren Levy <warrenl@cygnus.com>
4107 * java/security/Principal.java: New file.
4108 * Makefile.am: Added Principal.java.
4109 * Makefile.in: Rebuilt.
4111 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4113 * java/awt/event/MouseEvent.java: Fixed coordinate space
4116 2000-06-27 Tom Tromey <tromey@cygnus.com>
4118 * java/io/PushbackInputStream.java (read): If there are characters
4119 in the buffer, don't also call super.read().
4120 * java/io/PushbackReader.java (read): If there are characters in
4121 the buffer, don't also call super.read().
4123 * java/lang/Double.java (valueOf): Call parseDouble().
4125 2000-06-26 Warren Levy <warrenl@cygnus.com>
4127 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4128 (newVal): Renamed to newValue.
4129 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4130 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4131 (revokeNow): Renamed to invalidateRefs.
4132 * java/io/OptionalDataException.java: Updated FIXME.
4133 (eof): New placeholder field.
4135 * java/io/WriteAbortedException.java (message): Made transient.
4136 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4137 * java/lang/Throwable.java (stackTrace): Made transient.
4138 * java/net/InetAddress.java: Made Serializable.
4139 * java/security/KeyPair.java: Made Serializable.
4140 * java/security/Provider.java: Replaced with Classpath version that
4141 implements serialization and proper methods.
4142 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4143 (limits): Renamed to choiceLimits.
4145 2000-06-24 Tom Tromey <tromey@cygnus.com>
4147 * java/lang/natDouble.cc (parseDouble): Renamed from
4149 * java/lang/Double.java (parseDouble): Renamed from
4150 doubleValueOf. Now public.
4152 2000-06-23 Andrew Haley <aph@cygnus.com>
4154 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4155 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4157 2000-06-23 Tom Tromey <tromey@cygnus.com>
4159 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4160 * java/lang/natDouble.cc: Always include <alloca.h>.
4161 Fix for PR libgcj/267.
4163 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4165 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4166 comply with classpath VM spec.
4167 (add(Group)): Rename to addGroup().
4168 * java/lang/Thread.java (Thread): Use addThread().
4169 * java/lang/natThread.cc (finish_): Use removeThread().
4171 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4173 * java/lang/ThreadGroup.java: Merged with classpath.
4174 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4175 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4177 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4178 ThreadGroup.root if Thread.currentThread is null. Honour the
4179 ThreadGroup's max priority setting.
4181 2000-06-18 Tom Tromey <tromey@cygnus.com>
4183 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4184 returned class. For PR gcj/260.
4186 2000-06-16 Tom Tromey <tromey@cygnus.com>
4188 Fix for PR libgcj/261:
4189 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4191 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4192 argument. (This is a patch from long ago that somehow went
4195 2000-06-15 Tom Tromey <tromey@cygnus.com>
4197 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4201 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4203 Fix for PR java.lang/258:
4204 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4205 JV_STATE_DONE, to prevent accidental initialization.
4206 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4207 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4208 interface or an abstract class. Remove redundant initializeClass calls.
4209 Remove duplicate if_idt test.
4210 (_Jv_InterfaceAssignableFrom): New function.
4211 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4213 2000-05-31 Tom Tromey <tromey@cygnus.com>
4215 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4216 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4217 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4218 (NUM_OBJECT_METHODS): New define.
4219 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4220 `array_vtable' parameter. Added assertion.
4221 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4224 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4226 * gcj/cni.h: Include <string.h>.
4227 * defineclass.cc: Include <alloca.h>.
4228 * interpret.cc: Ditto.
4229 * gij.cc: Include <stdlib.h>.
4231 2000-05-30 Tom Tromey <tromey@cygnus.com>
4233 * include/name-finder.h: Include <sys/wait.h>.
4234 (_Jv_name_finder::pid): Now of type `pid_t'.
4235 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4236 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4239 2000-05-24 Warren Levy <warrenl@cygnus.com>
4241 * java/io/ObjectOutputStream.java (writeObject): Use component type
4242 when writing arrays.
4245 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4247 Fix for PR libgcj/226:
4248 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4249 since this is an installed header.
4251 Fix for PR libgcj/228:
4252 * java/util/zip/ZipFile (getInputStream): Create inflater with
4255 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4256 with DataFormatException.
4258 2000-05-20 Tom Tromey <tromey@cygnus.com>
4260 * Makefile.in: Rebuilt.
4261 * Makefile.am (hack1): Removed.
4262 (awto_files): Likewise.
4263 (libgcjawt_la_SOURCES): Likewise.
4264 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4265 (libgcjawt_la_DEPENDENCIES): Likewise.
4266 (libgcjawt_la_LIBADD): Likewise.
4267 (libgcjawt_la_LDFLAGS): Likewise.
4268 (libgcjawt_la_LINK): Likewise.
4269 ($(awt_java_source_files:.java=.class)): Likewise.
4270 (libgcj.zip): Don't depend on AWT files.
4271 (MOSTLYCLEANFILES): Don't include AWT files.
4272 ($(awto_files)): Removed.
4273 (nat_headers): Removed AWT files.
4274 (cond_awt_java_source_files): Removed.
4275 (ordinary_java_source_files): Added awt_java_source_files.
4276 * libgcj.spec.in (*lib): Removed -lgcjawt.
4277 * configure: Rebuilt.
4278 * configure.in: Removed --enable-java-awt option.
4280 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4282 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4283 (ZipEntry): Copy the `name' field.
4284 (clone): Implement JDK1.2 method.
4285 (setCompressedSize): ditto.
4288 2000-05-19 Tom Tromey <tromey@cygnus.com>
4290 * java/io/BufferedWriter.java: Merged with Classpath.
4291 * java/io/BufferedOutputStream.java: Merged with Classpath.
4293 2000-05-16 Andrew Haley <aph@cygnus.com>
4295 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4296 build_ia64_frame_state.
4297 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4300 2000-05-15 Warren Levy <warrenl@cygnus.com>
4302 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4303 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4304 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4305 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4306 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4307 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4308 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4309 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4310 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4311 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4312 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4313 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4314 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4315 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4316 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4317 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4318 * gnu/gcj/io/NullOutputStream.java: Removed.
4319 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4320 * gnu/gcj/lang/ArrayHelper.java: Removed.
4321 * gnu/gcj/lang/ClassHelper.java: Removed.
4322 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4324 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4325 * gnu/java/beans/EmptyBeanInfo.java: New file.
4326 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4327 * gnu/java/beans/IntrospectionIncubator.java: New file.
4328 * gnu/java/beans/editors/ColorEditor.java: New file.
4329 * gnu/java/beans/editors/FontEditor.java: New file.
4330 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4331 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4332 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4333 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4334 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4335 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4336 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4337 * gnu/java/beans/editors/StringEditor.java: New file.
4338 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4339 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4340 * gnu/java/io/NullOutputStream.java: New file.
4341 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4342 * gnu/java/lang/ArrayHelper.java: New file.
4343 * gnu/java/lang/ClassHelper.java: New file.
4344 * gnu/java/lang/reflect/TypeSignature.java: New file.
4346 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4347 namespace back to the original Classpath gnu/java namespace.
4348 * Makefile.in: Rebuilt.
4350 * java/beans/Beans.java: Namespace change.
4351 * java/beans/EventSetDescriptor.java: Namespace change.
4352 * java/beans/Introspector.java: Namespace change.
4353 * java/beans/PropertyEditorManager.java: Namespace change.
4354 * java/io/ObjectInputStream.java: Namespace change.
4355 * java/io/ObjectOutputStream.java: Namespace change.
4356 * java/io/ObjectStreamClass.java: Namespace change.
4357 * java/io/ObjectStreamField.java: Namespace change.
4359 2000-04-21 Warren Levy <warrenl@cygnus.com>
4361 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4362 now that compiler patch is available.
4363 Removed unneeded System.loadLibrary.
4364 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4365 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4367 2000-04-19 Andrew Haley <aph@cygnus.com>
4369 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4370 and target classes have been initialized.
4372 2000-04-19 Andrew Haley <aph@cygnus.com>
4374 * java/lang/String.java: implement Serializable, Comparable.
4375 (compareTo (Object)): New method.
4377 2000-04-19 Warren Levy <warrenl@cygnus.com>
4379 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4380 instead of getField to retrieve non-public field.
4381 (getSerialPersistantFields): Ditto.
4383 2000-04-18 Warren Levy <warrenl@cygnus.com>
4385 * mauve-libgcj: Turned off object serialization tests temporarily
4386 due to compiler error.
4388 2000-04-17 Warren Levy <warrenl@cygnus.com>
4390 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4391 to avoid build problem.
4393 * mauve-libgcj: Turned on object serialization tests.
4395 2000-04-17 Tom Tromey <tromey@cygnus.com>
4397 * libgcj.spec.in (*lib): Added -lgcjawt.
4399 2000-04-17 Andrew Haley <aph@cygnus.com>
4401 * Makefile.am: Add new files:
4402 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4404 * Makefile.in: Rebuilt.
4406 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4407 interface that has no implementations.
4408 Check for an attempt to assign an abstract class to an interface.
4410 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4411 if we fail to find MessageDigest.getInstance ("SHA").
4413 * gnu/gcj/io/SimpleSHSStream.java: New file.
4414 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4415 * gnu/gcj/io/shs.cc: New file.
4416 * gnu/gcj/io/shs.h: new file.
4418 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4421 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4422 punctuation from the classname of an array element.
4424 * gcj/javaprims.h: Add SimpleDigestStream.
4426 2000-04-17 Andrew Haley <aph@cygnus.com>
4428 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4429 to getPrivateField for superclasses.
4431 2000-04-14 Andrew Haley <aph@cygnus.com>
4433 * Makefile.am: Add new files:
4434 java/io/ObjectOutputStream$PutField.h,
4435 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4436 java/io/natObjectOutputStream.cc
4437 * Makefile.in: Rebuilt.
4438 * gcj/Makefile.in: Rebuilt.
4439 * include/Makefile.in: Rebuilt.
4440 * java/lang/Class.h (getPrivateField): New method.
4441 (getPrivateMethod): Ditto.
4442 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4443 and java::io::ObjectStreamClass our friends.
4444 * java/lang/natClass.cc (getPrivateField): New method.
4445 (getPrivateMethod): Ditto.
4446 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4447 * gcj/javaprims.h: Add serialization classes.
4448 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4449 (setByteField): Ditto.
4450 (setCharField): Ditto.
4451 (setDoubleField): Ditto.
4452 (setFloatField): Ditto.
4453 (setIntField): Ditto.
4454 (setLongField): Ditto.
4455 (setShortField): Ditto.
4456 (setObjectField): Ditto.
4457 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4459 (getByteField): Ditto.
4460 (getCharField): Ditto.
4461 (getDoubleField): Ditto.
4462 (getFloatField): Ditto.
4463 (getIntField): Ditto.
4464 (getLongField): Ditto.
4465 (getShortField): Ditto.
4466 (getObjectField): Ditto.
4467 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4469 (getSerialPersistantFields): Ditto.
4470 (getDefinedSUID): Ditto.
4471 * java/io/natObjectOutputStream.cc: New file.
4472 * java/io/natObjectInputStream.cc: New file.
4474 2000-04-13 Warren Levy <warrenl@cygnus.com>
4476 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4477 problems. Revert to previous version to reproduce and when fixed.
4479 2000-04-13 Warren Levy <warrenl@cygnus.com>
4481 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4482 * gnu/gcj/io/NullOutputStream.java: New file.
4483 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4484 * java/io/BlockDataException.java: New file.
4485 * java/io/Externalizable.java: New file.
4486 * java/io/InvalidClassException.java: New file.
4487 * java/io/InvalidObjectException.java: New file.
4488 * java/io/NotActiveException.java: New file.
4489 * java/io/NotSerializableException.java: New file.
4490 * java/io/ObjectInput.java: New file.
4491 * java/io/ObjectInputStream.java: New file.
4492 * java/io/ObjectInputValidation.java: New file.
4493 * java/io/ObjectOutput.java: New file.
4494 * java/io/ObjectOutputStream.java: New file.
4495 * java/io/ObjectStreamClass.java: New file.
4496 * java/io/ObjectStreamConstants.java: New file.
4497 * java/io/ObjectStreamField.java: New file.
4498 * java/io/Replaceable.java: New file.
4499 * java/io/Resolvable.java: New file.
4500 * java/io/SerializablePermission.java: New file.
4501 * java/io/WriteAbortedException.java: New file.
4502 * java/security/BasicPermission.java: New file.
4503 * java/security/DigestOutputStream.java: New file.
4504 * java/security/Guard.java: New file.
4505 * java/security/Permission.java: New file.
4506 * java/security/PermissionCollection.java: New file.
4507 * Makefile.am: Added above files.
4508 * Makefile.in: Rebuilt.
4510 * java/beans/Beans.java (instantiate): Activated serialization code.
4511 * java/lang/SecurityManager.java (checkPermission): New method.
4513 2000-04-12 Warren Levy <warrenl@cygnus.com>
4515 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4516 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4517 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4518 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4519 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4520 * gnu/gcj/beans/editors/FontEditor.java: New file.
4521 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4522 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4523 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4524 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4525 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4526 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4527 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4528 * gnu/gcj/beans/editors/StringEditor.java: New file.
4529 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4530 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4531 * gnu/gcj/lang/ArrayHelper.java: New file.
4532 * gnu/gcj/lang/ClassHelper.java: New file.
4533 * java/beans/BeanDescriptor.java: New file.
4534 * java/beans/BeanInfo.java: New file.
4535 * java/beans/Beans.java: New file.
4536 * java/beans/Customizer.java: New file.
4537 * java/beans/DesignMode.java: New file.
4538 * java/beans/EventSetDescriptor.java: New file.
4539 * java/beans/FeatureDescriptor.java: New file.
4540 * java/beans/IndexedPropertyDescriptor.java: New file.
4541 * java/beans/IntrospectionException.java: New file.
4542 * java/beans/Introspector.java: New file.
4543 * java/beans/MethodDescriptor.java: New file.
4544 * java/beans/ParameterDescriptor.java: New file.
4545 * java/beans/PropertyChangeEvent.java: New file.
4546 * java/beans/PropertyChangeListener.java: New file.
4547 * java/beans/PropertyChangeSupport.java: New file.
4548 * java/beans/PropertyDescriptor.java: New file.
4549 * java/beans/PropertyEditor.java: New file.
4550 * java/beans/PropertyEditorManager.java: New file.
4551 * java/beans/PropertyEditorSupport.java: New file.
4552 * java/beans/PropertyVetoException.java: New file.
4553 * java/beans/SimpleBeanInfo.java: New file.
4554 * java/beans/VetoableChangeListener.java: New file.
4555 * java/beans/VetoableChangeSupport.java: New file.
4556 * java/beans/Visibility.java: New file.
4557 * java/beans/beancontext/BeanContext.java: New file.
4558 * java/beans/beancontext/BeanContextChild.java: New file.
4559 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4560 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4561 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4562 * java/beans/beancontext/BeanContextEvent.java: New file.
4563 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4564 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4565 * java/beans/beancontext/BeanContextProxy.java: New file.
4566 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4568 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4569 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4571 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4572 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4574 * java/beans/beancontext/BeanContextServices.java: New file.
4575 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4576 * java/util/AbstractCollection.java: New file.
4577 * java/util/AbstractList.java: New file.
4578 * java/util/Arrays.java: New file.
4579 * Makefile.am: Added above files.
4580 * Makefile.in: Rebuilt.
4582 2000-04-11 Warren Levy <warrenl@cygnus.com>
4584 * java/awt/AWTError.java: New file.
4585 * java/awt/AWTEvent.java: New file.
4586 * java/awt/AWTException.java: New file.
4587 * java/awt/ActiveEvent.java: New file.
4588 * java/awt/Adjustable.java: New file.
4589 * java/awt/BorderLayout.java: New file.
4590 * java/awt/Color.java: New file.
4591 * java/awt/Component.java: New file.
4592 * java/awt/Container.java: New file.
4593 * java/awt/Dimension.java: New file.
4594 * java/awt/Event.java: New file.
4595 * java/awt/Font.java: New file.
4596 * java/awt/Frame.java: New file.
4597 * java/awt/Graphics.java: New file.
4598 * java/awt/IllegalComponentStateException.java: New file.
4599 * java/awt/Image.java: New file.
4600 * java/awt/ItemSelectable.java: New file.
4601 * java/awt/LayoutManager.java: New file.
4602 * java/awt/LayoutManager2.java: New file.
4603 * java/awt/Menu.java: New file.
4604 * java/awt/MenuBar.java: New file.
4605 * java/awt/MenuComponent.java: New file.
4606 * java/awt/MenuContainer.java: New file.
4607 * java/awt/MenuItem.java: New file.
4608 * java/awt/Paint.java: New file.
4609 * java/awt/PaintContext.java: New file.
4610 * java/awt/Point.java: New file.
4611 * java/awt/Rectangle.java: New file.
4612 * java/awt/Shape.java: New file.
4613 * java/awt/TextArea.java: New file.
4614 * java/awt/TextComponent.java: New file.
4615 * java/awt/Toolkit.java: New file.
4616 * java/awt/Transparency.java: New file.
4617 * java/awt/Window.java: New file.
4618 * java/awt/natToolkit.cc: New file.
4619 * java/awt/event/AWTEventListener.java: New file.
4620 * java/awt/event/ActionEvent.java: New file.
4621 * java/awt/event/ActionListener.java: New file.
4622 * java/awt/event/AdjustmentEvent.java: New file.
4623 * java/awt/event/AdjustmentListener.java: New file.
4624 * java/awt/event/ComponentAdapter.java: New file.
4625 * java/awt/event/ComponentEvent.java: New file.
4626 * java/awt/event/ComponentListener.java: New file.
4627 * java/awt/event/ContainerAdapter.java: New file.
4628 * java/awt/event/ContainerEvent.java: New file.
4629 * java/awt/event/ContainerListener.java: New file.
4630 * java/awt/event/FocusAdapter.java: New file.
4631 * java/awt/event/FocusEvent.java: New file.
4632 * java/awt/event/FocusListener.java: New file.
4633 * java/awt/event/InputEvent.java: New file.
4634 * java/awt/event/InputMethodEvent.java: New file.
4635 * java/awt/event/InputMethodListener.java: New file.
4636 * java/awt/event/InvocationEvent.java: New file.
4637 * java/awt/event/ItemEvent.java: New file.
4638 * java/awt/event/ItemListener.java: New file.
4639 * java/awt/event/KeyAdapter.java: New file.
4640 * java/awt/event/KeyEvent.java: New file.
4641 * java/awt/event/KeyListener.java: New file.
4642 * java/awt/event/MouseAdapter.java: New file.
4643 * java/awt/event/MouseEvent.java: New file.
4644 * java/awt/event/MouseListener.java: New file.
4645 * java/awt/event/MouseMotionAdapter.java: New file.
4646 * java/awt/event/MouseMotionListener.java: New file.
4647 * java/awt/event/PaintEvent.java: New file.
4648 * java/awt/event/TextEvent.java: New file.
4649 * java/awt/event/TextListener.java: New file.
4650 * java/awt/event/WindowAdapter.java: New file.
4651 * java/awt/event/WindowEvent.java: New file.
4652 * java/awt/event/WindowListener.java: New file.
4653 * java/awt/geom/Dimension2D.java: New file.
4654 * java/awt/geom/Point2D.java: New file.
4655 * java/awt/peer/ComponentPeer.java: New file.
4656 * java/awt/peer/ContainerPeer.java: New file.
4657 * java/awt/peer/FramePeer.java: New file.
4658 * java/awt/peer/WindowPeer.java: New file.
4659 * java/util/Collection.java: New file.
4660 * java/util/Comparator.java: New file.
4661 * java/util/Iterator.java: New file.
4662 * java/util/List.java: New file.
4663 * java/util/ListIterator.java: New file.
4664 * Makefile.am: Added above files.
4665 * Makefile.in: Rebuilt.
4667 2000-04-10 Warren Levy <warrenl@cygnus.com>
4669 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4670 * java/lang/FirstThread.java: Ditto.
4671 * java/lang/StringBuffer.java: Ditto.
4672 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4674 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4675 Special case handled in java.math.BigInteger.
4676 * java/math/BigInteger.java (divide): Handle the special case when
4677 dividing by 1 and the high bit of the dividend is set.
4678 (setShiftRight): Handle case when count == 0.
4680 2000-04-05 Andrew Haley <aph@cygnus.com>
4682 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4685 2000-04-05 Andrew Haley <aph@cygnus.com>
4687 * sysdep/ia64.c (rse_address_add): Delete.
4688 (IS_NaT_COLLECTION_ADDR): Delete.
4689 (ia64_backtrace_helper): check for null unwind_info.
4691 * sysdep/ia64-frame.h: add calc_caller_bsp.
4693 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4696 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4697 (_Jv_remI): Likewise.
4698 (_Jv_divJ): Likewise.
4699 (_Jv_remJ): Likewise.
4701 * interpret.cc (continue1): Use divide subroutines to guarantee
4702 correct Java standard behaviour.
4703 Floating-point division should not abort; make it so.
4705 2000-03-29 Tom Tromey <tromey@cygnus.com>
4707 * configure: Rebuilt.
4708 * configure.in: Test against `libgcj_sjlj', not
4709 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4710 to be set even when using sjlj.
4712 2000-03-24 Andrew Haley <aph@cygnus.com>
4714 * Makefile.am: Add file addr2name.awk.
4715 * Makefile.in: Rebuilt.
4716 * addr2name.awk: New file.
4717 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4719 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4722 2000-03-22 Andrew Haley <aph@cygnus.com>
4724 * configure.host: Add -funwind-tables for IA64.
4725 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4726 * Makefile.in: Rebuilt.
4727 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4728 * sysdep/ia64.c: New file.
4729 * sysdep/ia64-frame.h: New file.
4730 * configure.in: Add sysdep/ia64.c for ia64.
4731 * configure: Rebuilt.
4733 2000-03-17 Andrew Haley <aph@cygnus.com>
4735 * java/lang/natString.cc: Remove `register' keyword.
4736 interpret.cc: ditto.
4738 2000-03-16 Andrew Haley <aph@cygnus.com>
4740 * configure.host (ia64): Enable interpreter.
4742 2000-03-14 Hans Boehm <boehm@acm.org>
4744 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4746 2000-03-14 Andrew Haley <aph@cygnus.com>
4748 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4751 2000-03-10 Andrew Haley <aph@cygnus.com>
4753 * java/lang/ieeefp.h: Import latest version from fdlibm.
4755 2000-03-14 Andrew Haley <aph@cygnus.com>
4757 * prims.cc (_Jv_ThrowSignal): New function.
4758 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4760 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4761 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4762 * include/ppc-signal.h: New file.
4764 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4766 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4767 * java/lang/natThread.java (initialize_native): Cast `data' to
4769 * gnu/gcj/RawData.java: Clarify documentation.
4771 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4772 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4773 `jarFile', not `jarFileURL'.
4775 2000-05-15 Andrew Haley <aph@cygnus.com>
4777 * include/ppc-signal.h: New file.
4779 2000-05-11 Tom Tromey <tromey@cygnus.com>
4781 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4782 file headers, don't include `size' in the skip call.
4784 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4786 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4787 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4789 (replace): Reimplemented. Fix javadoc.
4790 (reverse): Call ensureCapacity_unsynchronized().
4791 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4793 (replace): Calculate length for arraycopy() correctly.
4795 2000-05-09 Tom Tromey <tromey@cygnus.com>
4797 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4799 (insert(int,char[],int,int): New method.
4800 (delete): New method from Classpath.
4801 (deleteCharAt): Likewise.
4802 (substring): Likewise.
4803 (shared): No longer private.
4804 Added JavaDoc comments from Classpath.
4805 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4808 2000-05-07 Tom Tromey <tromey@cygnus.com>
4810 * Makefile.in: Rebuilt.
4811 * Makefile.am (LIBLINK): New macro.
4812 (libgcj_la_LINK): Use it.
4813 (libgcjawt_la_LINK): Likewise.
4815 2000-05-06 Tom Tromey <tromey@cygnus.com>
4817 * Makefile.in: Rebuilt.
4818 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4820 2000-05-05 Tom Tromey <tromey@cygnus.com>
4822 Fix for PR libgcj/220:
4823 * Makefile.in: Rebuilt.
4824 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4825 (jv_convert_LDFLAGS): Likewise.
4826 (libgcj_la_LDFLAGS): Likewise.
4827 (GCJLINK): New macro.
4828 (jv_convert_LINK): Use it.
4829 (gij_LINK): Likewise.
4830 (libgcj_la_LINK): New macro.
4831 (libgcjawt_la_LINK): Likewise.
4833 2000-05-04 Tom Tromey <tromey@cygnus.com>
4835 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4837 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4841 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4843 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4844 (_Jv_IsAssignableFrom): Ditto.
4845 (_Jv_IsInstanceOf): Ditto.
4846 (_Jv_CheckCast): Ditto.
4847 (_Jv_CheckArrayStore): Ditto.
4848 * java/lang/Class.h (_Jv_InitClass): Ditto.
4849 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4854 (_Jv_MonitorExit): Ditto.
4855 * boehm.cc (_Jv_MarkObj): Ditto.
4856 (_Jv_MarkObj): Ditto.
4857 (_Jv_MarkArray): Ditto.
4858 * prims.cc (_Jv_AllocObject): Ditto.
4859 (_Jv_NewObjectArray): Ditto.
4860 (_Jv_NewPrimArray): Ditto.
4861 (_Jv_Malloc): Ditto.
4862 (_Jv_Realloc): Ditto.
4863 (_Jv_MallocUnchecked): Ditto.
4869 2000-05-04 Tom Tromey <tromey@cygnus.com>
4871 * java/util/Locale.java (Locale): Don't explicitly check for
4873 * java/util/Hashtable.java (containsKey): Don't explicitly check
4876 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4878 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4880 * java/text/StringCharacterIterator.java
4881 (StringCharacterIterator): Don't check for null.
4882 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4884 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4885 check for null pointer.
4886 (leaveGroup): Likewise.
4887 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4889 (setData): Likewise.
4890 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4893 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4895 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4896 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4897 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4898 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4899 -rpath for in-gcc builds.
4900 * Makefile.in: Rebuilt.
4902 2000-04-28 Tom Tromey <tromey@cygnus.com>
4904 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4907 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4909 * libjava/java/lang/String.java (toString): Remove `final' hack.
4911 2000-04-05 Tom Tromey <tromey@cygnus.com>
4913 Runtime support for PR gcj/2:
4914 * prims.cc (_Jv_ThrowNullPointerException): New function.
4915 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4917 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4919 * prims.cc (_Jv_NewObjectArray): Fix typo.
4921 2000-04-26 Tom Tromey <tromey@cygnus.com>
4923 * Makefile.in: Rebuilt.
4924 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4926 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4928 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4931 2000-04-22 Anthony Green <green@cygnus.com>
4933 * include/jvm.h (__builtin_expect): Define as unused for now.
4934 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4938 (_Jv_MonitorExit): Ditto.
4939 * boehm.cc (_Jv_MarkObj): Ditto.
4940 (_Jv_MarkObj): Ditto.
4941 (_Jv_MarkArray): Ditto.
4942 (_Jv_AllocBytes): Ditto.
4943 * prims.cc (_Jv_AllocObject): Ditto.
4944 (_Jv_NewObjectArray): Ditto.
4945 (_Jv_NewPrimArray): Ditto.
4946 (_Jv_Malloc): Ditto.
4947 (_Jv_Realloc): Ditto.
4948 (_Jv_MallocUnchecked): Ditto.
4954 * include/Makefile.in: Rebuilt.
4955 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4957 2000-04-21 Tom Tromey <tromey@cygnus.com>
4959 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4960 Yet another new version from Classpath.
4962 Fix for PR libgcj/15:
4963 * java/util/natGregorianCalendar.cc (_REENTRANT,
4964 _POSIX_PTHREAD_SEMANTICS): Don't define.
4965 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4966 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4968 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4970 * configure: Rebuilt.
4971 * configure.in: If using POSIX threads, define _REENTRANT if
4972 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4973 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4975 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4976 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4977 version from Classpath.
4979 Fix for PR libgcj/213:
4980 * Makefile.in: Rebuilt.
4981 * Makefile.am (gij_SOURCES): Added gij.cc.
4982 (EXTRA_gij_SOURCES): Removed.
4983 (gij_LDADD): Removed gij.lo.
4984 (gij_DEPENDENCIES): Likewise.
4985 ($(gij_OBJECTS)): Depend on nat_headers.
4987 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4988 `setURL', not `url.set'.
4990 2000-04-20 Tom Tromey <tromey@cygnus.com>
4992 Fix for PR java.io/204:
4993 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4994 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4997 Fix for PR libgcj/212:
4998 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4999 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5000 * java/lang/Class.h (_Jv_word): Declare.
5002 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5004 2000-04-19 Tom Tromey <tromey@cygnus.com>
5006 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5007 doesn't have a loader.
5009 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5011 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5012 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5014 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5016 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5018 (available): Initialize `where' to prevent bogus compiler warning.
5020 2000-04-12 Tom Tromey <tromey@cygnus.com>
5022 * java/lang/natString.cc (intern): Temporarily disable finalizer
5025 * java/lang/natString.cc (unintern): Added `obj' argument.
5026 (intern): Register finalizer for string.
5027 * java/lang/String.java (unintern): Now static; added obj
5030 2000-04-11 Tom Tromey <tromey@cygnus.com>
5032 * java/util/Vector.java (VectorEnumeration): Now `final'.
5033 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5034 (HashtableEnumeration): Likewise.
5035 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5036 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5038 2000-04-10 Warren Levy <warrenl@cygnus.com>
5040 * java/io/ObjectStreamException.java: New file.
5041 * java/io/OptionalDataException.java: New file.
5042 * java/io/StreamCorruptedException.java: New file.
5043 * java/math/BigDecimal.java: New file.
5044 * java/sql/CallableStatement.java: New file.
5045 * java/sql/Connection.java: New file.
5046 * java/sql/DataTruncation.java: New file.
5047 * java/sql/DatabaseMetaData.java: New file.
5048 * java/sql/Date.java: New file.
5049 * java/sql/Driver.java: New file.
5050 * java/sql/DriverManager.java: New file.
5051 * java/sql/DriverPropertyInfo.java: New file.
5052 * java/sql/PreparedStatement.java: New file.
5053 * java/sql/ResultSet.java: New file.
5054 * java/sql/ResultSetMetaData.java: New file.
5055 * java/sql/SQLException.java: New file.
5056 * java/sql/SQLWarning.java: New file.
5057 * java/sql/Statement.java: New file.
5058 * java/sql/Time.java: New file.
5059 * java/sql/Timestamp.java: New file.
5060 * java/sql/Types.java: New file.
5061 * Makefile.am: Added above new files.
5062 * Makefile.in: Rebuilt.
5064 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5065 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5066 DatagramSocket constructor instead of null.
5068 2000-04-08 Anthony Green <green@cygnus.com>
5070 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5073 2000-04-08 Anthony Green <green@cygnus.com>
5075 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5076 (_Jv_MutexUnlock): Ditto.
5077 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5078 (_Jv_MutexUnlock): Ditto.
5080 2000-04-08 Anthony Green <green@cygnus.com>
5082 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5083 (ensureCapacity_unsynchronized): New private method.
5084 (append): Use ensureCapacity_unsynchronized.
5086 2000-04-08 Tom Tromey <tromey@cygnus.com>
5088 * Makefile.in: Rebuilt.
5089 * Makefile.am (awt_java_source_files): Added new files.
5090 * java/awt/IllegalComponentStateException.java: New file.
5091 * java/awt/ItemSelectable.java: New file.
5092 * java/awt/event/WindowEvent.java: Finished.
5093 * java/awt/event/TextEvent.java: Finished.
5094 * java/awt/event/ContainerEvent.java: New file.
5095 * java/awt/Component.java (getX, getY): New methods.
5096 * java/awt/event/PaintEvent.java: New file.
5097 * java/awt/event/MouseEvent.java: New file.
5098 * java/awt/ActiveEvent.java: New file.
5099 * java/awt/event/KeyEvent.java: Finished.
5100 * java/awt/event/ItemEvent.java: New file.
5101 * java/awt/Adjustable.java: New file.
5102 * java/awt/event/InputMethodEvent.java: New file.
5103 * java/awt/event/InputEvent.java: Finished.
5104 * java/awt/event/FocusEvent.java: New file.
5105 * java/awt/event/MouseMotionAdapter.java: New file.
5106 * java/awt/event/MouseAdapter.java: New file.
5107 * java/awt/event/KeyAdapter.java: New file.
5108 * java/awt/event/FocusAdapter.java: New file.
5109 * java/awt/event/ContainerAdapter.java: New file.
5110 * java/awt/event/ComponentEvent.java: Finished.
5111 * java/awt/event/AdjustmentEvent.java: New file.
5112 * java/awt/event/ComponentAdapter.java: New file.
5113 * java/awt/event/ActionEvent.java: Finished.
5114 * java/awt/event/MouseMotionListener.java: New file.
5115 * java/awt/event/MouseListener.java: New file.
5116 * java/awt/event/ItemListener.java: New file.
5117 * java/awt/event/InputMethodListener.java: New file.
5118 * java/awt/event/ContainerListener.java: New file.
5119 * java/awt/event/FocusListener.java: New file.
5120 * java/awt/event/ComponentListener.java: New file.
5121 * java/awt/event/AWTEventListener.java: New file.
5122 * java/awt/event/AdjustmentListener.java: New file.
5124 2000-04-08 Anthony Green <green@cygnus.com>
5126 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5127 check when we have to.
5129 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5132 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5135 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5136 inline hasMoreElements.
5138 2000-04-05 Tom Tromey <tromey@cygnus.com>
5140 * configure: Rebuilt.
5141 * configure.in: Recognize --enable-java-awt.
5142 (AWT): New conditional.
5143 * Makefile.in: Rebuilt.
5144 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5146 (libgcjawt_la_SOURCES): New macro.
5147 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5148 (libgcjawt_la_DEPENDENCIES): Likewise.
5149 (libgcjawt_la_LIBADD): Likewise.
5150 (libgcjawt_la_LDFLAGS): Likewise.
5151 (libgcj.zip): Depend on cond_java_awt_source_files
5152 (cond_awt_java_source_files): New macro.
5153 (MOSTLYCLEANFILES): Added awto_files.
5154 (awto_files): New macro. Use where javao_files used.
5155 (nat_headers): Use cond_awt_java_source_files.
5157 2000-04-04 Tom Tromey <tromey@cygnus.com>
5159 * Makefile.in: Rebuilt.
5160 * Makefile.am (awt_java_source_files): Added AWTException.java.
5161 * java/awt/AWTException.java: New file.
5163 2000-04-03 Tom Tromey <tromey@cygnus.com>
5165 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5166 commentary from Alex.
5168 * Makefile.in: Rebuilt.
5169 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5172 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5174 * configure: Rebuilt.
5175 * configure.in: Add --disable-jvmpi.
5176 * include/config.h.in: Rebuilt.
5177 * acconfig.h: Add ENABLE_JVMPI.
5179 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5180 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5181 (_Jv_JVMPI_Notify_THREAD_END): New define.
5182 (_Jv_JVMPI_Notify_THREAD_END): New define.
5183 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5184 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5185 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5187 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5190 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5191 (finish_): Generate JVMPI thread end events.
5192 (run_): Generate JVMPI thread start events.
5193 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5194 preloaded JNI library.
5195 Include JVMPI headers if necessary.
5196 (run): Generate JVMPI thread start events.
5198 * boehm.cc: Define GC_disable and GC_enable.
5199 (_Jv_DisableGC): New function.
5200 (_Jv_EnableGC): New function.
5201 (disable_gc_mutex): Declare.
5202 * nogc.cc (_Jv_DisableGC): New function.
5203 (_Jv_EnableGC): New function.
5205 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5206 (_Jv_JVMPI_Interface): Define.
5207 (jvmpiEnableEvent): New function.
5208 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5210 * include/jvmpi.h: New file.
5212 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5214 * Makefile.in: New #defines and friends for Thread.h.
5215 * Makefile.am: Ditto.
5216 * posix-threads.cc: (struct starter): Remove `object'.
5217 (_Jv_CondWait): Use interruptable condition variables and new
5218 recursive mutexes. New return codes on interrupt or non-ownership
5220 (_Jv_CondNotify): Ditto.
5221 (_Jv_CondNotifyAll): Ditto.
5222 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5223 the target thread by signaling its wait condition.
5224 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5225 not the starter struct. Initialize wait_mutex and wait_cond.
5226 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5228 (_Jv_MutexUnlock): Ditto.
5229 (really_start): Set info->data->thread from pthread_self() to work
5230 around a race condition. Destroy wait_mutex and wait_cond when run()
5232 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5233 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5235 startable_flag: New private field.
5236 (Thread): Initialize `startable_flag'.
5237 (toString): Check for null thread group.
5238 * java/lang/natThread.cc: (struct natThread): New fields
5239 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5240 (class locker): Removed.
5241 (initialize_native): Initialize `join_cond' and `join_mutex'.
5242 (interrupt): Now just calls _Jv_ThreadInterrupt().
5243 (join): Simplified. Just wait on the target thread's join condition.
5244 (finish_): Remove join list code. Unset thread group. Signal
5245 potential joiners by notifying the dying threads join_cond.
5246 (start): Check for illegal restarts.
5247 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5249 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5250 #defines and #ifdefs.
5251 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5252 `wait_mutex', `next'.
5253 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5254 directly mapping to pthread_cond_t.
5255 (struct _Jv_Mutex_t): New recursive implementation.
5256 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5257 _Jv_HaveCondDestroy: Never define this for posix-threads.
5258 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5259 (_Jv_CondNotifyAll): Ditto.
5260 (_Jv_MutexLock): Ditto.
5261 (_Jv_MutexUnlock): Ditto.
5262 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5263 (_Jv_MutexDestroy): Ditto.
5264 (_Jv_CondDestroy): Removed.
5265 (_Jv_PthreadGetMutex): Removed.
5266 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5267 error. Add a FIXME about this.
5268 (_Jv_CondNotifyAll): Ditto.
5269 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5270 _JV_NOT_OWNER on other errors. Add FIXME.
5272 2000-03-26 Tom Tromey <tromey@cygnus.com>
5274 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5276 (call): Don't throw exception here.
5278 2000-03-26 Tom Tromey <tromey@cygnus.com>
5280 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5281 * interpret.cc: Use SIZEOF_VOID_P.
5282 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5283 (_Jv_loadLong): Likewise.
5284 (_Jv_storeDouble): Likewise.
5285 * configure: Rebuilt.
5286 * configure.in: Check size of void*.
5288 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5290 2000-03-26 Hans Boehm <boehm@acm.org>
5292 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5293 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5295 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5296 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5297 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5298 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5300 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5301 (FFI_RAW_SIZE): Likewise.
5302 (_Jv_InterpMethod::ncode): Use them.
5303 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5304 STORED): Define differently on a 64 bit machine.
5305 (continue1): Use ffi_java_raw_call when appropriate.
5307 2000-03-24 Warren Levy <warrenl@cygnus.com>
5309 * java/math/BigInteger.java(divide): Handle the special case when
5310 dividing by 1 and the high bit of the dividend is set.
5311 (setShiftRight): Handle case when count == 0.
5313 2000-03-24 Warren Levy <warrenl@cygnus.com>
5315 * java/awt/Font.java(isBold): Fix syntax error.
5317 * java/awt/Frame.java(postEvent): ditto.
5318 * java/awt/Menu.java(postEvent): ditto.
5319 * java/awt/MenuBar.java(postEvent): ditto.
5320 * java/awt/Toolkit.java(init): Included a stub.
5322 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5324 * java/awt/Event.java: Add all the event type constants.
5325 (Event): Implemented constructors.
5326 (controlDown): Implemented.
5327 (metaDown): Implemented.
5328 (paramString): Stubbed.
5329 (shiftDown): Implemented.
5330 (toString): Implemented.
5331 (translate): Implemented.
5333 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5335 * java/lang/natClass.cc (isInstance): Initialize `this'.
5336 (isAssignableFrom): Initialize `this' and `klass'.
5337 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5338 implemented by any loaded class, so return false.
5339 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5340 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5342 2000-03-19 Warren Levy <warrenl@cygnus.com>
5344 * java/awt/Color.java: Specified java.io for Serializable.
5345 * java/awt/Toolkit.java: Imported java.net.URL.
5347 2000-03-19 Warren Levy <warrenl@cygnus.com>
5349 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5351 2000-03-16 Warren Levy <warrenl@cygnus.com>
5353 * java/awt/Color.java: New file.
5354 * java/awt/Graphics.java: New file.
5355 * java/awt/Image.java: New file.
5356 * java/awt/Paint.java: New file.
5357 * java/awt/PaintContext.java: New file.
5358 * java/awt/Transparency.java: New file.
5359 * java/util/Collection.java: New file.
5360 * java/util/Comparator.java: New file.
5361 * java/util/Iterator.java: New file.
5362 * java/util/List.java: New file.
5363 * java/util/ListIterator.java: New file.
5364 * Makefile.am: Added above new files.
5365 * Makefile.in: Rebuilt.
5367 * java/awt/Font.java (PLAIN): New field.
5369 (ITALIC): New field.
5370 (ROMAN_BASELINE): New field.
5371 (CENTER_BASELINE): New field.
5372 (HANGING_BASELINE): New field.
5376 (pointSize): New field.
5377 (Font): Implemented constructor.
5378 (isPlain): Implemented method.
5379 (isBold): Implemented method.
5380 (isItalic): Implemented method.
5381 (getName): Implemented method.
5382 (getStyle): Implemented method.
5383 (getSize): Implemented method.
5384 (getSize2D): Implemented method.
5386 * java/awt/Frame.java (getFont): Stubbed.
5387 (postEvent): Stubbed.
5389 * java/awt/Menu.java (postEvent): Stubbed.
5390 * java/awt/MenuBar.java (getFont): Stubbed.
5391 (postEvent): Stubbed.
5392 * java/awt/Toolkit.java (getImage): Added abstract method.
5394 2000-03-15 Tom Tromey <tromey@cygnus.com>
5396 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5398 * prims.cc (win32_exception_handler): Reformatted.
5400 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5401 (_Jv_HaveMutexDestroy): Likewise.
5403 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5405 * java/io/natFileDescriptorWin32.cc: New file.
5406 * java/io/natFileWin32.cc: New file.
5407 * java/net/natInetAddress.cc: Added conditional inclusion of
5408 Windows / Winsock headers.
5409 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5410 inclusion of Windows / Winsock headers.
5411 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5412 Windows / Winsock headers.
5413 * include/win32-signal.h: New file.
5414 * include/win32-threads.h: New file.
5415 * win32-threads.cc: New file.
5416 * exception.cc (win32_get_restart_frame): New function.
5417 * prims.cc (win32_exception_handler): New function.
5418 (main_init) Performs Winsock initialisation.
5419 (main_init) Installs exeception handler.
5421 2000-03-14 Tom Tromey <tromey@cygnus.com>
5423 * jni.cc (mangled_name): Fixed assertion.
5424 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5425 turned assert into actual failure.
5427 2000-03-09 Warren Levy <warrenl@cygnus.com>
5429 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5430 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5431 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5433 2000-03-09 Warren Levy <warrenl@cygnus.com>
5435 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5436 * java/security/DigestException.java: New file.
5437 * java/security/GeneralSecurityException.java: New file.
5438 * java/security/InvalidAlgorithmParameterException.java: New file.
5439 * java/security/InvalidKeyException.java: New file.
5440 * java/security/InvalidParameterException.java: New file.
5441 * java/security/Key.java: New file.
5442 * java/security/KeyException.java: New file.
5443 * java/security/KeyPair.java: New file.
5444 * java/security/KeyPairGenerator.java: New file.
5445 * java/security/KeyPairGeneratorSpi.java: New file.
5446 * java/security/NoSuchProviderException.java: New file.
5447 * java/security/PrivateKey.java: New file.
5448 * java/security/Provider.java: New file.
5449 * java/security/PublicKey.java: New file.
5450 * java/security/SecureRandom.java: New file.
5451 * java/security/Security.java: New file.
5452 * java/security/Signature.java: New file.
5453 * java/security/SignatureException.java: New file.
5454 * java/security/interfaces/DSAKey.java: New file.
5455 * java/security/interfaces/DSAParams.java: New file.
5456 * java/security/interfaces/DSAPrivateKey.java: New file.
5457 * java/security/interfaces/DSAPublicKey.java: New file.
5458 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5459 * java/security/interfaces/RSAPrivateKey.java: New file.
5460 * java/security/interfaces/RSAPublicKey.java: New file.
5461 * java/security/spec/AlgorithmParameterSpec.java: New file.
5462 * java/security/spec/InvalidKeySpecException.java: New file.
5463 * java/security/spec/InvalidParameterSpecException.java: New file.
5464 * java/security/spec/KeySpec.java: New file.
5465 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5466 * java/security/spec/RSAPrivateKeySpec.java: New file.
5467 * java/security/spec/RSAPublicKeySpec.java: New file.
5468 * Makefile.am: Added above java.security files.
5469 * Makefile.in: Rebuilt.
5471 * java/security/MessageDigest.java: Rewritten.
5472 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5474 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5478 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5480 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5481 _Jv_PrepareConstantTimeTables.
5482 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5483 classes should have an IDT, so don't return if klass is an array
5486 2000-03-08 Tom Tromey <tromey@cygnus.com>
5488 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5489 of `void' to be created.
5491 2000-03-08 Warren Levy <warrenl@cygnus.com>
5493 * java/math/BigInteger.java(signum): Handle zero properly.
5495 2000-03-07 Tom Tromey <tromey@cygnus.com>
5497 * All files: Updated copyright information.
5498 * COPYING: New file.
5499 * COPYING.LIB: Removed.
5500 * LIBGCJ_LICENSE: We now use GPL + special exception.
5502 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5504 * resolve.cc (_Jv_SearchMethodInClass): New function.
5505 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5506 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5508 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5510 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5511 (struct _Jv_ifaces): New declaration.
5512 JV_CLASS: New macro definition.
5513 (getComponentType): Relocate below isArray() for inlining.
5514 (getModifiers): Declare `inline'.
5515 (getSuperclass): Ditto.
5517 (isPrimitive): Ditto.
5518 (_Jv_IsAssignableFrom): New prototype.
5519 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5521 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5522 Check for JV_STATE_DONE before invoking initializeClass().
5523 (_Jv_PrepareConstantTimeTables): New prototype.
5524 (_Jv_GetInterfaces): Ditto.
5525 (_Jv_GenerateITable): Ditto.
5526 (_Jv_GetMethodString): Ditto.
5527 (_Jv_AppendPartialITable): Ditto.
5528 (_Jv_FindIIndex): Ditto.
5529 depth, ancestors, idt: New class fields.
5531 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5532 inline function `_Jv_IsAssignableFrom'. Use that function.
5533 (isInstance): Declare `inline'.
5534 (initializeClass): Get lock on class before checking `state'. Unlock
5535 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5537 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5538 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5539 class->depth and ancestor table.
5540 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5541 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5542 _Jv_IsAssignableFrom.
5543 (_Jv_CheckArrayStore): Ditto.
5544 (_Jv_LookupInterfaceMethodIdx): New function.
5545 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5546 (_Jv_PrepareConstantTimeTables): New function.
5547 (_Jv_IndexOf): Ditto.
5548 (_Jv_GetInterfaces): Ditto.
5549 (_Jv_GenerateITable): Ditto.
5550 (_Jv_GetMethodString): Ditto.
5551 (_Jv_AppendPartialITable): Ditto.
5552 iindex_mutex, iindex_mutex_initialized: New static fields.
5553 (_Jv_FindIIndex): New function.
5555 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5557 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5558 (_Jv_CheckArrayStore): Ditto.
5559 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5560 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5561 Moved to gcj/array.h.
5562 (_Jv_Realloc): New function.
5564 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5566 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5567 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5568 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5569 JvNewDoubleArray): Implementations moved from prims.cc and
5572 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5574 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5576 2000-03-06 Tom Tromey <tromey@cygnus.com>
5578 * jni.cc (MARK_NONE): New define.
5579 (MARK_USER): Likewise.
5580 (MARK_SYSTEM): Likewise.
5581 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5583 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5584 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5585 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5586 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5588 (call): Use MARK_SYSTEM.
5589 (_Jv_GetJNIEnvNewFrame): New function.
5590 (_Jv_LookupJNIMethod): New function.
5591 (_Jv_JNI_PopSystemFrame): New function.
5592 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5594 2000-03-05 Tom Tromey <tromey@cygnus.com>
5596 Fix for PR libgcj/43:
5597 * include/Makefile.in: Rebuilt.
5598 * include/Makefile.am (include_HEADERS): New define.
5600 2000-03-05 Anthony Green <green@redhat.com>
5602 * gcj/javaprims.h ("Java"): Remove FirstThread.
5604 * configure.host: Fix __NO_MATH_INLNES botch.
5606 * Makefile.in: Rebuilt.
5607 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5608 (gnu/gcj/runtime/FirstThread.h): Moved.
5609 (ordinary_java_source_files): Move FirstThread.java.
5610 * prims.cc: Deal with FirstThread movement.
5612 (_Jv_RunMain): Ditto.
5614 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5615 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5617 2000-03-05 Warren Levy <warrenl@cygnus.com>
5619 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5620 Handle null addresses.
5622 2000-03-04 Anthony Green <green@redhat.com>
5624 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5627 2000-03-04 Anthony Green <green@redhat.com>
5629 * configure: Rebuilt.
5630 * configure.in (ZLIBTESTSPEC): New macro.
5631 (GCTESTSPEC): New macro.
5632 (LIBGCJTESTSPEC): New macro.
5633 * libgcj-test.spec.in: New file.
5635 2000-03-02 Tom Tromey <tromey@cygnus.com>
5637 * include/java-interp.h: Don't include MethodInvocation.h.
5638 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5639 * Makefile.in: Rebuilt.
5640 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5641 (ordinary_java_source_files): Don't mention
5642 MethodInvocation.java.
5643 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5644 * interpret.cc (MethodInvocation::continue1): Removed.
5645 (run): Handle exceptions here.
5646 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5648 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5650 (defineClass2): Removed.
5652 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5654 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5656 (hack_call): Removed.
5658 * java/lang/Class.h (Class): Removed hackRunInitializers,
5660 * java/lang/natClass.cc (hackRunInitializers): Removed.
5661 (initializeClass): Catch exceptions here.
5662 Include ExceptionInInitializerError.h.
5663 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5666 * java/lang/Object.h (Object): Don't mention hack12_6.
5667 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5669 * java/lang/Object.java (hack12_6): Removed.
5671 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5672 (start): Use run_, not run__.
5673 * java/lang/Thread.java (run_): Renamed from run__; old run_
5676 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5677 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5678 (_Jv_JNI_DefineClass): Likewise.
5679 (_Jv_JNI_ThrowNew): Likewise.
5680 (_Jv_JNI_AllocObject): Likewise.
5681 (_Jv_JNI_GetAnyMethodID): Likewise.
5682 (_Jv_JNI_CallAnyMethodV): Likewise.
5683 (_Jv_JNI_CallAnyMethodA): Likewise.
5684 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5685 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5686 (_Jv_JNI_GetAnyFieldID): Likewise.
5687 (_Jv_JNI_NewString): Likewise.
5688 (_Jv_JNI_NewStringUTF): Likewise.
5689 (_Jv_JNI_GetStringUTFChars): Likewise.
5690 (_Jv_JNI_NewObjectArray): Likewise.
5691 (_Jv_JNI_NewPrimitiveArray): Likewise.
5692 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5693 (_Jv_JNI_GetStringRegion): Likewise.
5694 (_Jv_JNI_GetStringUTFRegion): Likewise.
5695 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5696 (_Jv_JNI_MonitorEnter): Likewise.
5697 (_Jv_JNI_MonitorExit): Likewise.
5698 (_Jv_JNI_ToReflectedField): Likewise.
5699 (_Jv_JNI_ToReflectedMethod): Likewise.
5700 (_Jv_JNI_RegisterNatives): Likewise.
5701 (_Jv_JNI_AttachCurrentThread): Likewise.
5702 (_Jv_JNI_DestroyJavaVM): Likewise.
5704 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5706 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5707 error caused by the incorrect casting of a long to an int.
5709 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5711 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5712 SIGSEV caused by use of the wrong instance variable.
5714 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5716 * java/io/File.java (File(String, String)): For dirPath, treat an
5717 empty String the same as `null'.
5719 2000-02-26 Anthony Green <green@cygnus.com>
5721 * gnu/gcj/io/MimeTypes.java: Test for null.
5723 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5724 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5726 * java/net/URLConnection.java: Update copyright notice.
5728 2000-02-25 Tom Tromey <tromey@cygnus.com>
5730 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5733 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5735 * java/net/URLConnection.java (initializeDateFormats): New
5737 (getHeaderFieldDate): Call initializeDateFormats if required.
5738 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5740 Fix for PR libgcj/38.
5742 2000-02-24 Warren Levy <warrenl@cygnus.com>
5744 * java/math/BigInteger.java(ival): Made private.
5748 2000-02-20 Anthony Green <green@cygnus.com>
5750 * Makefile.in: Rebuilt.
5751 * Makefile.am (ordinary_java_source_files): Add
5752 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5754 * scripts/MakeDefaultMimeTypes.java: New file.
5755 * scripts/mime.types: New file.
5756 * scripts/classes.pl: Moved from top level.
5757 * classes.pl: Moved to scripts directory.
5759 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5761 * gnu/gcj/io/MimeTypes.java: New file.
5762 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5764 2000-02-20 Tom Tromey <tromey@cygnus.com>
5766 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5768 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5770 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5773 2000-02-18 Tom Tromey <tromey@cygnus.com>
5775 * include/jvm.h (_Jv_GetJavaVM): Declare.
5776 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5777 (_Jv_MethodBase::get_method): New method.
5778 (_Jv_JNIMethod::set_function): New method.
5779 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5780 (_Jv_JNI_RegisterNatives): New function.
5781 (_Jv_JNIFunctions): Updated for new functions.
5782 (_Jv_GetJavaVM): New function.
5783 (_Jv_JNI_GetJavaVM): Use it. Now static.
5784 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5785 is already a Java thread but does not have a JNIEnv yet.
5787 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5790 2000-02-17 Tom Tromey <tromey@cygnus.com>
5792 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5795 2000-02-16 Tom Tromey <tromey@cygnus.com>
5797 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5799 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5800 (_Jv_JNI_NewObject): Likewise.
5801 (_Jv_JNI_NewObjectA): Likewise.
5802 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5803 as "return" type to _Jv_CallAnyMethodA.
5804 (_Jv_JNI_CallAnyMethodA): Likewise.
5805 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5807 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5810 2000-02-15 Tom Tromey <tromey@cygnus.com>
5812 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5814 (init_cif): Added `rtype_p' argument.
5815 * include/java-interp.h (class _Jv_MethodBase): Added
5817 (class _Jv_InterpMethod): Removed args_raw_size.
5818 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5819 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5820 class pointer as well as the ordinary arguments.
5822 * jni.cc (mangled_name): Skip leading `(' in signature.
5824 * jni.cc (add_char): Added missing `else'.
5826 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5829 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5833 * java/lang/natRuntime.cc (_load): Include library path with
5836 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5839 * java/lang/natThread.cc (dumpStack): Removed.
5840 * java/lang/Thread.java (dumpStack): Implemented.
5842 2000-02-15 Tom Tromey <tromey@cygnus.com>
5844 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5845 with `lib' for loadLibrary. Fixes PR gcj/150.
5847 2000-02-14 Warren Levy <warrenl@cygnus.com>
5849 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5851 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5855 (modPow): Rewritten to not use the naive, slow, brute force approach.
5856 (isProbablePrime): Implemented.
5857 (testBit): Implemented.
5858 (flipBit): Implemented.
5859 (getLowestSetBit): Implemented.
5861 2000-02-16 Anthony Green <green@redhat.com>
5863 * configure.host: Use the same options for i386 and i486 as we do
5866 2000-02-12 Tom Tromey <tromey@cygnus.com>
5868 * java/io/File.java (createTempFile): Use low bits from counter,
5871 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5873 * THANKS: More thanks.
5875 2000-02-11 Tom Tromey <tromey@cygnus.com>
5877 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5878 astore instruction. From Hans Boehm.
5880 2000-02-11 Warren Levy <warrenl@cygnus.com>
5882 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5883 (BigInteger(String)): New constructor.
5884 (not): Rewritten using version from Kawa's BitOps class.
5885 (valueOf): New private methods from Kawa's BitOps class.
5892 (andNot): Implemented.
5893 (clearBit): Implemented.
5894 (setBit): Implemented.
5895 (bitCount): Implemented.
5896 (toByteArray): Implemented.
5898 2000-02-11 Tom Tromey <tromey@cygnus.com>
5900 * java/io/File.java (nextValue): Now synchronized.
5902 2000-02-10 Tom Tromey <tromey@cygnus.com>
5904 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5905 * java/io/FileDescriptor.java (EXCL): New static field.
5906 * java/io/File.java (tmpdir): New static field.
5907 (createTempFile): New method.
5908 (nextValue): New method.
5909 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5912 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5913 (jboolean): Declare as an attributed int, not a bool.
5914 (_Jv_func): Declare differently for C.
5916 * gnu/gcj/jni/natNativeThread.cc: New file.
5917 * gnu/gcj/jni/NativeThread.java: New file.
5918 * java/lang/Thread.java (data): Now a RawData.
5919 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5921 * Makefile.in: Rebuilt.
5922 * Makefile.am (java/lang/Thread.h): New target.
5923 (ordinary_java_source_files): Added NativeThread.java.
5924 (nat_source_files): Added natNativeThread.cc.
5925 * java/lang/natThread.cc: Include <jni.h>
5926 (struct natThread): Added `jni_env' field.
5927 (_Jv_GetCurrentJNIEnv): New function.
5928 (_Jv_SetCurrentJNIEnv): Likewise.
5929 (initialize_native): Initialize jni_env.
5931 * jni.cc (ThreadGroupClass): New define.
5932 (_Jv_JNI_InvokeFunctions): New structure.
5933 (JNI_GetCreatedJavaVMs): New function.
5934 (the_vm): New global.
5935 (JNI_GetDefaultJavaVMInitArgs): New function.
5936 Include NativeThread.h.
5937 (NativeThreadClass): New define.
5938 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5939 (_Jv_JNI_DestroyJavaVM): New function.
5940 (_Jv_JNI_AttachCurrentThread): New function.
5941 (_Jv_JNI_DetachCurrentThread): New function.
5942 (_Jv_JNI_GetEnv): New function.
5943 (JNI_CreateJavaVM): New function.
5944 (_Jv_JNI_GetJavaVM): New function.
5945 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5946 * include/jni.h (JavaVMAttachArgs): New structure.
5947 (JNI_EDETACHED): New define.
5948 (JNI_EVERSION): Likewise.
5949 (JavaVM): Define properly.
5950 (struct JNIInvokeInterface): New structure.
5951 (class _Jv_JavaVM): New class.
5952 (JNI_OnLoad, JNI_OnUnload): Declare.
5953 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5954 JNI_GetCreatedJavaVMs): Declare.
5955 (JavaVMInitArgs): New typedef.
5956 (JavaVMOption): Likewise.
5957 (JNI_ERR): New define.
5960 2000-02-10 Andrew Haley <aph@cygnus.com>
5962 * interpret.cc: Don't include fdlibm.h.
5963 Replace #if with #ifdef throughout.
5964 Declare extern __ieee754_fmod.
5965 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5967 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5968 Search class hierarchy for superclass vtable.
5970 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5971 off the end of a pointer list.
5973 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5977 2000-02-09 Tom Tromey <tromey@cygnus.com>
5979 * java/lang/natRuntime.cc (_load): Call add_library.
5980 (loadLibraryInternal): Likewise.
5982 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5983 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5984 (Output_iconv::finalize): Likewise.
5986 2000-02-08 Tom Tromey <tromey@cygnus.com>
5988 * java/util/Properties.java (setProperty): New method.
5989 (store): New method.
5991 2000-02-07 Tom Tromey <tromey@cygnus.com>
5993 * java/lang/Runtime.java (_load): Declare.
5994 (load, loadLibrary): Wrote in terms of _load.
5995 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5997 (loadLibrary): Likewise.
5999 (_load): New method.
6000 (loadLibrary, load): Removed.
6002 * jni.cc (ThrowableClass): New define.
6003 (_Jv_JNI_Throw): Check argument.
6004 (_Jv_JNI_ThrowNew): Likewise.
6005 (wrap_value): Don't wrap object if it is NULL.
6006 (_Jv_JNI_DefineClass): Use wrap_value.
6007 (_Jv_JNI_FindClass): Likewise.
6008 (_Jv_JNI_GetSuperclass): Likewise.
6009 (_Jv_JNI_ExceptionOccurred): Likewise.
6010 (_Jv_JNI_AllocObject): Likewise.
6011 (_Jv_JNI_GetObjectClass): Likewise.
6012 (_Jv_JNI_NewString): Likewise.
6013 (_Jv_JNI_NewStringUTF): Likewise.
6014 (_Jv_JNI_NewObjectArray): Likewise.
6015 (_Jv_JNI_GetObjectArrayElement): Likewise.
6016 (_Jv_JNI_NewPrimitiveArray): Likewise.
6017 (_Jv_JNI_ToReflectedField): Likewise.
6018 (_Jv_JNI_ToReflectedMethod): Likewise.
6019 (_Jv_JNI_AllocObject): Check argument.
6020 (_Jv_JNI_NewObjectV): Likewise.
6021 (_Jv_JNI_NewObject): Likewise.
6022 (_Jv_JNI_NewObjectA): Likewise.
6023 (_Jv_JNI_GetObjectClass): Likewise.
6024 (_Jv_JNI_GetField): Likewise.
6025 (_Jv_JNI_SetField): Likewise.
6027 * interpret.cc (PUSHL): Don't use expression statement.
6032 * jni.cc (add_char): Conditional on INTERPRETER.
6033 (mangled_name): Likewise.
6035 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6037 (class _Jv_JNIMethod): Likewise.
6039 2000-02-04 Warren Levy <warrenl@cygnus.com>
6041 * Makefile.am: Added MPN.java and BigInteger.java.
6042 * Makefile.in: Rebuilt.
6043 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6045 * java/math/BigInteger.java: New file. Based primarily on
6046 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6048 2000-02-04 Tom Tromey <tromey@cygnus.com>
6050 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6052 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6053 if the method is native.
6054 * resolve.cc (ncode): Don't handle native methods.
6055 (_Jv_JNIMethod::ncode): New method.
6056 (_Jv_PrepareClass): Handle native methods.
6057 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6058 Include AbstractMethodError.h.
6059 (add_char): New function.
6060 (mangled_name): Likewise.
6061 * include/java-interp.h (class _Jv_JNIMethod): New class.
6062 (class _Jv_MethodBase): New class.
6063 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6064 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6067 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6068 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6069 libraries): New globals.
6070 (add_library): New function.
6071 (_Jv_FindSymbolInExecutable): New function.
6073 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6076 2000-02-04 Andrew Haley <aph@cygnus.com>
6078 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6079 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6080 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6081 printStackTrace to printRawStackTrace.
6083 2000-02-03 Tom Tromey <tromey@cygnus.com>
6085 * java/util/Calendar.java (toString): New method.
6086 * java/util/SimpleTimeZone.java (clone): New method.
6087 (toString): New method.
6088 * java/util/TimeZone.java (clone): New method.
6089 * java/text/SimpleDateFormat.java (clone): New method.
6090 * java/text/NumberFormat.java (clone): New method.
6091 (equals): New method.
6092 * java/text/Format.java (clone): New method.
6093 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6095 (clone): New method.
6096 * java/text/DateFormat.java (clone): New method.
6097 * java/text/Collator.java (clone): New method.
6099 2000-02-03 Tom Tromey <tromey@cygnus.com>
6101 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6104 2000-02-01 Tom Tromey <tromey@cygnus.com>
6106 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6107 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6108 constructing the closure if the function is native.
6109 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6110 a template function, #if'd out, or static.
6111 Include <java-interp.h>.
6113 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6115 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6117 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6118 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6120 (wrap_value): New function.
6121 (_Jv_JNI_CallAnyMethodV): Use it.
6122 (_Jv_JNI_CallAnyMethodA): Likewise.
6123 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6124 (_Jv_JNI_GetStaticField): Likewise.
6126 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6127 (_Jv_JNI_GetStaticField): Likewise.
6129 2000-01-31 Tom Tromey <tromey@cygnus.com>
6131 * prims.cc (_Jv_MallocUnchecked): New function.
6132 (main_init): Call _Jv_JNI_Init.
6133 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6134 (_Jv_JNI_Init): Declare.
6135 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6137 (_Jv_JNI_NewGlobalRef): New function.
6138 (_Jv_JNI_DeleteGlobalRef): New function.
6139 (_Jv_JNI_DeleteLocalRef): New function.
6140 (_Jv_JNI_conversion_call): Initialize and clear local reference
6142 (_Jv_JNI_NewLocalRef): New function.
6143 (struct _Jv_JNI_LocalFrame): New structure.
6144 (_Jv_JNI_PushLocalFrame): New function.
6145 (_Jv_JNI_EnsureLocalCapacity): New function.
6146 (FRAME_SIZE): New define.
6147 (_Jv_JNI_GetStringChars): Mark string, not characters.
6148 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6149 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6150 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6152 (_Jv_JNI_DefineClass): Make return value a local ref.
6153 (_Jv_JNI_FindClass): Likewise.
6154 (_Jv_JNI_GetSuperclass): Likewise.
6155 (_Jv_JNI_ExceptionOccurred): Likewise.
6156 (_Jv_JNI_AllocObject): Likewise.
6157 (_Jv_JNI_GetObjectClass): Likewise.
6158 (_Jv_JNI_CallAnyMethodV): Likewise.
6159 (_Jv_JNI_NewString): Likewise.
6160 (_Jv_JNI_NewStringUTF): Likewise.
6161 (_Jv_JNI_NewObjectArray): Likewise.
6162 (_Jv_JNI_GetObjectArrayElement): Likewise.
6163 (_Jv_JNI_ToReflectedField): Likewise.
6164 (_Jv_JNI_ToReflectedMethod): Likewise.
6165 (_Jv_JNIFunctions): Updated table for new functions.
6166 (_Jv_JNI_Init): New function.
6167 (mark_for_gc): Wrote.
6168 (unmark_for_gc): Wrote.
6169 * include/jni.h (struct JNINativeInterface): Removed name from
6170 PopLocalFrame parameter.
6171 (class _Jv_JNIEnv): Added `locals' field.
6173 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6175 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6178 2000-01-30 Tom Tromey <tromey@cygnus.com>
6180 * include/config.h.in: Rebuilt.
6181 * acconfig.h (HAVE_ICONV): Define.
6182 * configure: Rebuilt.
6183 * configure.in: Check for `iconv' function.
6184 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6185 no specific encoder exists.
6186 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6187 no specific encoder exists.
6188 * Makefile.in: Rebuilt.
6189 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6191 (nat_source_files): Added natIconv.cc.
6192 * gnu/gcj/convert/natIconv.cc: New file.
6193 * gnu/gcj/convert/Input_iconv.java: New file.
6194 * gnu/gcj/convert/Output_iconv.java: New file.
6196 2000-01-28 Tom Tromey <tromey@cygnus.com>
6198 * Makefile.in: Rebuilt.
6199 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6201 2000-01-26 Tom Tromey <tromey@cygnus.com>
6203 * gcj/method.h (JvNumMethods): Moved from Class.h.
6204 (JvGetFirstMethod): Likewise.
6205 * java/lang/Class.h (Object): Updated decl of
6206 _Jv_JNI_ToReflectedField.
6207 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6208 * Makefile.in: Rebuilt.
6209 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6210 argument of _Jv_JNI_ToReflectedField.
6211 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6213 (java/lang/reflect/Method.h): Likewise.
6214 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6216 (jweak): New typedef.
6217 (struct JNINativeInterface): Correctly declare remaining entries.
6218 * jni.cc: Include Class.h, ClassLoader.h.
6219 (_Jv_JNI_FindClass): New function.
6220 (_Jv_JNI_DefineClass): New function.
6221 (_Jv_JNI_conversion_call): New function.
6222 (_Jv_JNI_FindClass): Use current class loader to find class.
6223 (_Jv_JNI_ExceptionCheck): New function.
6224 (_Jv_JNI_FromReflectedField): Now static.
6225 (MethodClass): New define.
6226 (_Jv_JNI_FromReflectedMethod): New function.
6227 (_Jv_JNI_ToReflectedMethod): Likewise.
6229 (_Jv_JNI_IsAssignableFrom): Renamed.
6230 (_Jv_JNI_GetStringRegion): New function.
6231 Include StringIndexOutOfBoundsException.h.
6232 (_Jv_JNI_GetStringUTFRegion): New function.
6233 (_Jv_JNIFunctions): Updated for new functions.
6234 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6235 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6236 (_Jv_JNI_GetStringCritical): New function.
6237 (_Jv_JNI_ReleaseStringCritical): Likewise.
6238 (get_throwable): Removed.
6239 (GCJ_JV_JNIENV_FRIEND): Removed.
6240 (__GCJ_JNI_IMPL__): Define.
6243 * resolve.cc (get_ffi_type_from_signature): Handle case where
6246 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6248 * interpret.cc (run): Don't call println.
6249 Don't include PrintStream.h.
6251 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6252 nameIndex. Use "jint" as type for boffset.
6253 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6255 (Class): Likewise. Also changed type of method_count,
6256 vtable_method_count, size_in_bytes, field_count,
6257 static_field_count, interface_count.
6258 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6261 2000-01-21 Tom Tromey <tromey@cygnus.com>
6263 * java/lang/reflect/natConstructor.cc (newInstance): Use
6265 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6266 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6267 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6270 (invoke): Use _Jv_CallAnyMethodA.
6272 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6273 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6275 (struct _Jv_Method): Added getNextMethod method.
6276 (JvNumMethods): New function.
6277 (JvGetFirstMethod): Likewise.
6278 * gcj/field.h (JvGetFirstStaticField): New function.
6279 (JvNumStaticFields): Likewise.
6280 (getNextField): Renamed from getNextInstanceField.
6281 (struct _Jv_Field): New method getClass.
6282 * jni.cc: Wrote many new functions.
6283 * include/jni.h (JNI_TRUE): Define.
6284 (JNI_FALSE): Likewise.
6285 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6286 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6287 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6288 (jfieldID, jmethodID): Likewise.
6289 (JNI_COMMIT, JNI_ABORT): New defines.
6290 (JNINativeMethod): New struct.
6291 (struct JNINativeInterface): Correctly declared more entries.
6292 (class _Jv_JNIEnv): Added `ex' member.
6293 (JNI_VERSION_1_1): New define.
6294 (JNI_VERSION_1_2): Likewise.
6296 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6297 getNextInstanceField.
6299 2000-01-20 Tom Tromey <tromey@cygnus.com>
6301 * resolve.cc (StringClass): Removed.
6302 * defineclass.cc (StringClass): Removed.
6304 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6308 2000-01-19 Tom Tromey <tromey@cygnus.com>
6310 * interpret.cc (PC_REGISTER_ASM): Removed.
6312 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6313 From Bryce McKinlay.
6315 * All files: Updated copyright to reflect Cygnus purchase.
6317 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6319 * configure: Rebuilt.
6320 * configure.in: Recognize --disable-interpreter.
6322 2000-01-18 Andrew Haley <aph@cygnus.com>
6324 * name-finder.cc (lookup): Check for dladdr function.
6325 acconfig.h (HAVE_DLADDR): Add.
6326 configure.in: Check for HAVE_DLADDR
6328 include/config.h.in: Rebuilt.
6330 2000-01-17 Andrew Haley <aph@cygnus.com>
6332 * prims.cc (_Jv_RunMain): Set the name of this executable.
6334 2000-01-17 Tom Tromey <tromey@cygnus.com>
6336 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6337 when backtrace can't be computed.
6339 * configure: Rebuilt.
6340 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6342 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6343 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6344 (_Jv_FindClassInCache): Likewise.
6345 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6346 (findSystemClass): Try to load class from compiled module.
6348 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6349 (loadLibrary): Likewise.
6350 (lt_preloaded_symbols): Define.
6351 (loadLibraryInternal): New method.
6352 * include/config.h.in: Rebuilt.
6353 * acconfig.h (USE_LTDL): Added.
6354 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6355 (INCLUDES): Added $(INCLTDL).
6356 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6357 (libgcj_la_LIBADD): Likewise.
6358 * aclocal.m4, configure: Rebuilt.
6359 * configure.in: Added libltdl support.
6361 2000-01-15 Tom Tromey <tromey@cygnus.com>
6363 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6365 2000-01-14 Andrew Haley <aph@cygnus.com>
6367 * java/lang/natThrowable.cc: New file.
6369 * java/lang/Throwable.java (fillInStackTrace): Make native.
6370 (printStackTrace): Call native method to do this.
6371 (Throwable): Call fillInStackTrace.
6372 (stackTrace): New variable.
6374 * include/jvm.h: Add _Jv_ThisExecutable functions.
6376 * prims.cc: (_Jv_execName): New variable.
6377 (catch_segv): Call fillInStackTrace.
6379 (_Jv_ThisExecutable): New functions.
6380 (JvRunMain): Set the name of this executable.
6382 * Makefile.am: Add java/lang/natThrowable.cc.
6384 * Makefile.in: Rebuilt.
6386 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6388 * configure.in: Force link with __frame_state_for in
6389 FORCELIBGCCSPEC. Add new checks for backtrace.
6390 * include/config.h.in: Rebuilt.
6392 * name-finder.cc: New file.
6393 * include/name-finder.h: New file.
6395 2000-01-16 Anthony Green <green@cygnus.com>
6397 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6400 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6402 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6404 2000-01-13 Tom Tromey <tromey@cygnus.com>
6406 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6407 not system loader, as initiating loader.
6409 2000-01-11 Tom Tromey <tromey@cygnus.com>
6411 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6412 HP/UX. From David Scott Urban.
6414 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6416 * java/lang/natMath.cc (pow): Cast args to `double', not
6419 (IEEEremainder): Likewise.
6420 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6421 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6423 2000-01-09 Anthony Green <green@cygnus.com>
6425 * java/lang/natString.cc (init): Test for overflow condition
6426 during out of bounds check.
6427 (getChars): Throw StringIndexOutOfBoundsException, not
6428 ArrayIndexOutOfBoundsException.
6430 (regionMatches): Obey case option during string comparison.
6432 * configure.host (ligcj_interpreter): New variable. Enable
6433 interpreter by default on IA-32.
6434 * configure.in: Examine libgcj_interpreter.
6435 * configure: Rebuilt.
6437 2000-01-07 Tom Tromey <tromey@cygnus.com>
6439 * mauve-libgcj: Don't disable ClassTest.
6441 * java/lang/natClass.cc (getClasses): Wrote.
6443 2000-01-06 Tom Tromey <tromey@cygnus.com>
6445 * java/lang/natClass.cc (_getConstructors): Correctly check
6446 whether method name is the init name.
6447 (getMethod): Look at accflags on method in `klass', not `this'.
6449 2000-01-05 Tom Tromey <tromey@cygnus.com>
6451 * java/lang/natClass.cc (getMethod): Compute offset relative to
6452 `klass's methods table, not `this's table.
6454 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6455 In unwrapping/widening case, check whether `k' is null, not
6456 whether it is primitive. Initialize `num' from `argelts', not
6457 `paramelts'. Correct create and pass arguments to ffi_call.
6458 Don't let presence of `this' argument affect index used to look in
6460 (COPY): Set appropriate element in `values' vector.
6462 * java/lang/natClass.cc: Include <gcj/method.h>.
6464 * java/lang/Class.h (_getMethods): Correctly declare as private,
6467 * java/lang/Class.h (_getMethods): Declare.
6468 * java/lang/Class.java (_getMethods): Declare.
6469 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6470 (getDeclaredClasses): Always return empty array.
6471 (_getMethods): New method.
6472 (getMethods): Wrote.
6473 (getDeclaredMethod): Return `rmethod'.
6474 (finit_name): New global.
6475 (getDeclaredMethods): Check for finit_name.
6476 (_getMethods): Likewise.
6477 (getMethod): Only return public methods.
6479 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6480 jboolean and select correct ffi type on that basis.
6481 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6482 Constructor call always has `void' return type.
6484 2000-01-04 Tom Tromey <tromey@cygnus.com>
6486 * java/lang/Class.h (getSignature): Updated.
6487 * java/lang/Class.java (getSignature): Updated.
6488 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6490 (getConstructor): Ensure constructor is public.
6491 (_getConstructors): Check for public-ness of constructor when
6492 `declared' is false, not when it is true.
6494 2000-01-04 Warren Levy <warrenl@cygnus.com>
6496 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6498 (receive): Set the sender's address in the DatagramPacket.
6500 2000-01-04 Tom Tromey <tromey@cygnus.com>
6502 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6503 declaring class as return_type argument to
6504 _Jv_CallNonvirtualMethodA.
6505 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6506 constructor case, create object and use it as `this' argument.
6507 * java/lang/Class.h (_getConstructors): Declare.
6508 (_getFields): Declare.
6509 * java/lang/Class.java (getConstructors): Wrote.
6510 (_getConstructors): New native method.
6511 (getDeclaredConstructors): Wrote.
6512 (_getFields): Declare new native method.
6513 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6515 (getMethod): Work correctly when class is primitive.
6516 (getDeclaredMethods): Likewise. Compute offset using `method',
6518 (getDeclaredMethod): Likewise.
6519 (getConstructor): Wrote.
6520 (ConstructorClass): New define.
6521 (getDeclaredConstructor): Wrote.
6522 (_getConstructors): New method.
6523 (_getFields): New method.
6526 * Makefile.in: Rebuilt.
6527 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6529 * prims.cc: Remove `#pragma implementation'.
6530 * gcj/array.h: Remove `#pragma interface'.
6532 * prims.cc (_Jv_equaln): New function.
6533 * java/lang/Class.java (getSignature): Declare.
6534 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6535 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6537 (getSignature): New method.
6538 (getDeclaredMethod): Wrote.
6540 Include StringBuffer.h.
6541 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6542 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6544 (getSignature): Declare.
6545 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6546 (_Jv_equaln): Declare.
6547 (_Jv_CallNonvirtualMethodA): Declare.
6548 * Makefile.in: Rebuilt.
6549 * Makefile.am (nat_source_files): Added natConstructor.cc.
6550 (java/lang/reflect/Constructor.h): New target.
6551 * java/lang/reflect/natConstructor.cc: New file.
6552 * java/lang/reflect/Constructor.java (newInstance): Now native.
6553 (declaringClass): Renamed from decl_class.
6554 (offset): Renamed from index.
6555 (getType): New native method.
6556 (getModifiers): Now native.
6557 (getParameterTypes): Call getType if required.
6558 (hashCode): Include hash code from declaring class.
6559 (modifiers): Removed.
6560 (toString): Call getType if required.
6561 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6562 * java/lang/reflect/natMethod.cc (hack_call): New method.
6563 Removed `#if 0' around FFI code.
6564 Include <gnu/gcj/RawData.h>.
6565 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6566 IllegalArgumentException when argument object and class disagree.
6567 (_Jv_GetTypesFromSignature): New function.
6569 (ObjectClass): New define.
6570 (_Jv_CallNonvirtualMethodA): New function.
6571 * java/lang/reflect/Method.java (hack_trampoline): New method.
6572 (hack_call): New native method.