1 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
3 * gij.cc (version): Update copyright year.
5 2001-05-22 Anthony Green <green@redhat.com>
7 * configure.in: Tweak canadian cross test, and don't redefine GCJ
10 2001-05-21 Per Bothner <per@bothner.com>
12 Implement invocation interface; don't create new thread for main.
13 * java/lang/Thread.java (gen_name): Make native.
14 (<init>(Thread,THreadGroup,Runnable,String)): New private
15 constructor, used by other constructors, and _Jv_AttachCurrentThread.
16 * java/lang/natThread.cc (gen_name): New implementation.
17 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
18 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
19 (_Jv_CreateJavaVM): New runtime initialization procedure.
20 (runFirst): New proecdure - mostly code from old FirstThread::run.
21 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
22 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
23 JvDetachCurrentThread): New inline wrappers.
24 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
25 _Jv_DetachCurrentThread): New declarations.
26 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
27 (getMain): new static method.
28 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
29 by runFirst in prims.cc.
30 (java/lang/Thread.h): Update for new invocation interface.
31 * include/posix-threads.h (_Jv_ThreadRegister,
32 _Jv_ThreadUnRegister): New declarations.
33 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
34 (really_start): Use new _Jv_ThreadRegister.
35 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
36 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
37 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
38 Complain of called when _Jv_OnlyThread already set.
39 (_Jv_ThreadStart): Always JvFail.
40 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
41 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
42 * win32-threads.cc (struct starter): Remove objet field -
43 we use _Jv_Thread_t's new thread_obj field instead.
44 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
45 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
46 (really_start): Use new _Jv_ThreadRegister.
47 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
48 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
49 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
50 Removed - no longer needed with new invocation interface.
51 * Makefile.am: Update for removed/added files.
53 2001-05-21 Per Bothner <per@bothner.com>
55 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
56 (libgcj_la_LIBADD): Likewise.
57 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
59 2001-05-21 Per Bothner <per@bothner.com>
61 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
62 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
63 taken from old Integer.toString code.
64 (Integer::valueOf): Use _Jv_FormatInt.
65 * java/lang/Integer.java (toString): Just use call String.valueOf.
66 * java/lang/Long.java (toString): Fix typo in comment.
67 * java/lang/String.java (valueOf(int)): Make native.
68 * java/lang/StringBuffer.java (append(int)): Make native.
69 * java/lang/natStringBuffer.cc: New file, for append(jint).
70 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
72 2001-05-21 Tom Tromey <tromey@redhat.com>
74 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
76 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
78 * include/dwarf2-signal.h: New file.
79 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
80 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
83 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
85 * configure.in: Update boehm-gc include dir for new GC version.
87 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
89 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
90 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
91 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
94 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
96 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
97 (_Jv_MutexInit): Likewise.
99 2001-05-18 Tom Tromey <tromey@redhat.com>
101 * Makefile.in: Rebuilt.
102 * Makefile.am (awt_java_source_files): Added Polygon.java.
104 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
106 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
107 * gcj/javaprims.h: ... here.
108 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
110 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
112 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
113 with length of ioffset table.
114 (_Jv_IsAssignableFrom): Likewise.
116 2001-05-17 Per Bothner <per@bothner.com>
118 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
120 2001-05-16 Tom Tromey <tromey@redhat.com>
122 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
125 2001-05-15 Tom Tromey <tromey@redhat.com>
127 * java/util/GregorianCalendar.java (computeTime): Only call
130 2001-05-14 Tom Tromey <tromey@redhat.com>
132 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
133 ZONE_OFFSET just before computing the time.
135 2001-05-12 Zack Weinberg <zackw@stanford.edu>
137 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
138 * Makefile.in: Regenerate (by hand).
139 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
140 * doc/cni.sgml: Document #pragma GCC java_exceptions.
142 2001-05-11 Richard Henderson <rth@redhat.com>
144 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
145 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
147 2001-05-11 Richard Henderson <rth@redhat.com>
149 * exception.cc: Include unwind-pe.h. Remove all pointer
152 2001-05-10 Tom Tromey <tromey@redhat.com>
154 * Makefile.in: Rebuilt.
155 * Makefile.am (awt_java_source_files): Added Polygon.java.
156 * java/awt/Polygon.java: New file.
158 * java/awt/geom/AffineTransform.java
159 (setToRotation(double,double,double)): New method.
160 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
161 (setToShear): Likewise.
163 2001-05-10 Tom Tromey <tromey@redhat.com>
165 * java/util/GregorianCalendar.java: Imported from Classpath.
166 * gnu/java/locale/LocaleInformation_nl.java: New file from
168 * gnu/java/locale/LocaleInformation_en.java: Likewise.
169 * gnu/java/locale/LocaleInformation_de.java: Likewise.
170 * gnu/java/locale/LocaleInformation.java: Likewise.
171 * natGregorianCalendar.cc: Removed.
172 * Makefile.in: Rebuilt.
173 * Makefile.am (nat_source_files): Removed
174 natGregorianCalendar.cc.
176 2001-05-10 Tom Tromey <tromey@redhat.com>
178 * java/text/SimpleDateFormat.java (computeCenturyStart): New
180 (defaultCenturyStart): Use it.
181 (readObject): Likewise.
182 (SimpleDateFormat): Clear the calendar. Set the grouping on the
184 (parse): Copy the calendar before modifying it. Correctly handle
187 * java/util/Calendar.java (clear): Set field value(s) to 0.
189 2001-05-10 Jeff Sturm <jsturm@one-point.com>
191 * Calendar.java (get): Clear areFieldsSet if requested field
193 (set): Unset fields that depend on new value.
195 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
197 * java/lang/Class.h (_Jv_Self): New union type.
198 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
199 Jeff Sturm and Fergus Henderson.
201 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
203 * java/lang/ClassLoader.java: Remove dead code fragment.
205 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
207 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
209 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
211 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
213 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
214 * configure.host (EXCEPTIONSPEC): New.
215 * configure.in (EXCEPTIONSPEC): New.
216 * configure: Rebuilt.
218 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
220 * doc/*.texi: Remove generated documentation.
222 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
224 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
225 (performDelete): Fix #endif placement.
227 2001-04-27 Zack Weinberg <zackw@stanford.edu>
229 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
230 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
231 (_Jv_ThreadDestroyData): Use _Jv_Free.
232 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
235 2001-04-27 Tom Tromey <tromey@redhat.com>
237 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
239 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
241 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
243 * include/jni.h (struct JNINativeInterface): Fixed types in
244 Get/Set*ArrayRegion declarations.
245 (class _Jv_JNIEnv): Likewise.
247 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
249 * configure.in: Obtain THREADS with `gcc -v'.
250 * configure: Rebuilt.
252 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
255 * java/io/ObjectStreamClass.java (setClass): Calculate
256 serialVersionUID for local class and compare it against the UID
257 from the Object Stream. Throw InvalidClassException upon mismatch.
258 (setUID): Renamed to...
259 (getClassUID): this. Return the calculated class UID rather than
260 setting uid field directly.
261 (getDefinedSUID): Removed.
262 * java/io/ObjectInputStream.java (resolveClass): Use the
263 three-argument Class.forName().
264 * java/io/InvalidClassException (toString): Don't include classname in
265 result if it is null.
267 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
269 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
270 Wrap use of inet_pton in HAVE_INET6.
272 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
274 java.security merge and ClassLoader compliance fixes.
276 * java/lang/Class.h (Class): Include ProtectionDomain.h.
277 New protectionDomain field.
278 (forName): Add initialize parameter. Fixes declaration to comply with
280 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
281 variant. Honour "initialize" flag.
282 (getProtectionDomain0): New method.
283 * java/lang/Class.java: Fix forName() declaration.
284 (getPackage): New method based on Classpath implementation.
285 (getProtectionDomain0): New native method decl.
286 (getProtectionDomain): New method.
287 * java/lang/ClassLoader.java (getParent): Now final.
288 (definedPackages): New field.
290 (defineClass): New variant with protectionDomain argument.
291 (definePackage): New.
293 (findSystemClass): Now final.
294 (getSystemResourceAsStream): Remove redundant "final" modifier.
295 (getSystemResource): Remove redundant "final" modifier.
296 (getResources): Now final.
297 (protectionDomainPermission): New static field.
298 (unknownProtectionDomain): Ditto.
299 (defaultProtectionDomain): Ditto.
300 (getSystemClassLoader): Now non-native.
301 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
302 arguments for Class.forName().
303 * java/lang/Package.java: New file.
304 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
305 (instance): Static initialize singleton.
306 (findClass): Override this, not findSystemClass.
307 * java/lang/natClassLoader.cc (defineClass0): Set class's
308 protectionDomain field as specified.
309 (getSystemClassLoader): Removed.
310 (findClass): Renamed from findSystemClass. Call the interpreter via
311 URLClassLoader.findClass if loading class via dlopen fails.
313 * java/security/*.java: java.security import/merge with Classpath.
314 * java/security/acl/*.java: Likewise.
315 * java/security/interfaces/*.java: Likewise.
316 * java/security/spec/*.java: Likewise.
317 * java/net/NetPermission.java: Likewise.
318 * java/net/SocketPermission.java: Likewise.
319 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
321 * Makefile.am: Add new classes.
322 * Makefile.in: Rebuilt.
323 * gcj/javaprims.h: CNI namespace rebuild.
325 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
327 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
328 for libtool tests. Pre-create gnu/classpath/Configuration.java.
329 * configure: Rebuilt.
331 2001-04-21 Tom Tromey <tromey@redhat.com>
333 * Makefile.in: Rebuilt.
334 * Makefile.am (awt_java_source_files): Added Line2D.java.
335 * java/awt/geom/Line2D.java: Wrote.
337 * java/awt/Menu.java (addNotify): Wrote.
339 * java/awt/PopupMenu.java (addNotify): Implemented.
342 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
343 * java/awt/List.java (addNotify): Call super.addNotify.
344 * java/awt/Label.java (addNotify): Call super.addNotify.
345 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
346 * java/awt/Dialog.java (addNotify): Call super.addNotify.
347 * java/awt/Choice.java (addNotify): Call super.addNotify.
348 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
349 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
351 * java/awt/List.java (replaceItem): Notify peer.
353 * java/awt/geom/Rectangle2D.java
354 (Float.setRect(float,float,float,float)): New method.
356 * java/awt/event/ContainerEvent.java (getContainer): Now returns
359 * java/awt/RenderingHints.java (Key): Class now public.
361 * java/awt/Rectangle.java (Rectangle): Now implements
363 (getPathIterator): Removed.
365 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
368 * java/awt/FileDialog.java: Wrote.
370 * java/awt/EventQueue.java (isDispatchThread): Now public.
371 (invokeLater): Likewise.
373 * java/awt/Component.java (setCursor): Update peer.
374 (getFontMetrics): Use peer.
376 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
379 2001-04-20 Tom Tromey <tromey@redhat.com>
381 * java/awt/List.java: Wrote.
382 * java/awt/Dialog.java: Wrote.
384 2001-04-20 Warren Levy <warrenl@redhat.com>
386 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
387 * java/text/SimpleDateFormat.java
388 (indexInArray): Removed private method.
389 (processYear): Removed private method.
390 (parseLenient): Removed private method.
391 (parseLeadingZeros): Removed private method.
392 (parseStrict): Removed private method.
393 (expect): Added new private method.
394 (parse): Reverted to pre-Classpath merge version with minor fixes.
395 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
398 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
400 * java/io/File.java (normalizePath): New private method.
401 (File (String)): Use normalizePath().
402 (File (String, String)): Likewise.
404 * Makefile.am (libffi_files): Removed.
405 (libgcj.la): Link libffi as a convenience library instead of
406 refering to its object files directly.
407 * Makefile.in: Rebuilt.
409 2001-04-08 Per Bothner <per@bothner.com>
411 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
412 Recalculate hash, since Utf8Const's hash is only 16 bits.
414 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
415 bits of hash to calculate step for chaining.
417 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
418 when 2/3 full, rather than 3/4 full.
420 2001-04-06 Tom Tromey <tromey@redhat.com>
422 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
423 (wrap_value<T*>): New specialization.
424 (_Jv_JNI_PopLocalFrame): Update env->locals.
426 2001-04-05 Tom Tromey <tromey@redhat.com>
428 * libtool-version: Updated current.
430 2001-04-04 Andreas Jaeger <aj@suse.de>
432 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
433 * gcj/Makefile.in: Rebuilt.
434 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
435 * Makefile.in: Rebuilt.
436 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
437 * testsuite/Makefile.in: Rebuild.
438 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
439 * include/Makefile.in: Rebuild.
441 2001-04-02 Zack Weinberg <zackw@stanford.edu>
443 * testsuite/lib/libjava.exp: Correct typo: 'output from source
444 compiled test', not 'execution from source compiled test'.
445 Use UNTESTED, not XFAIL, for tests which are not run because
446 they depend on a previous test which failed.
448 2001-04-02 Richard Henderson <rth@redhat.com>
450 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
451 the same tree as gcc.
452 * configure: Rebuilt.
454 * exception.cc (_Jv_Throw): Clarify commentary.
456 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
458 * jni.cc (wrap_value<jclass>): New specialization.
460 2001-04-02 Tom Tromey <tromey@redhat.com>
462 * java/io/PrintStream.java (out): Removed field. Fixes PR
464 (write): Call flush, not out.flush, per spec.
465 (close): Flush output stream, per spec. Handle
466 InterruptedIOException.
467 (checkError): Likewise.
468 (flush, print, write): Handle InterruptedIOException per spec.
469 (PrintStream): Don't create BufferedOutputStream.
470 (work_bytes): New field.
471 (writeChars): Use work_bytes. Don't assume `out' is a
472 BufferedOutputStream.
474 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
476 * java/text/MessageFormat.java (setLocale): Added missing `else'.
479 2001-03-30 Tom Tromey <tromey@redhat.com>
481 * jni.cc (add_char): Correctly encode non-ascii characters.
482 (add_char): Define even when INTERPRETER not defined.
483 (mangled_name): Likewise.
484 (_Jv_GetJNIEnvNewFrame): Likewise.
485 (_Jv_LookupJNIMethod): Likewise.
487 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
489 * configure.host: Enable interpreter for PPC.
491 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
493 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
494 to "file.separator", "path.separator", and "java.io.tmpdir" property
496 * java/io/File.java: Likewise.
497 * java/io/natFile.cc (init_native): Likewise.
498 * java/io/natFileWin32.cc (init_native): Likewise.
500 2001-04-01 Per Bothner <per@bothner.com>
502 * java/lang/natString.cc (intern): If string's data does not point to
503 this String, make a fresh String that does.
505 * java/lang/natString.cc (unintern): Replace by static function.
506 * java/lang/String.java (unintern): Remove method.
508 2001-04-01 Per Bothner <per@bothner.com>
510 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
511 (finish): def.deflate needs to be called in a loop.
512 (inbuf, inbufLength): New private fields.
513 (write(int)): Use inbuf.
514 (write(byte[],int,int): Check if pending output in inbuf.
515 * ZipOutputStream.java: Don't use Deflater if stored.
516 Use a Checksum object directly, not via a CheckedOutputStream.
517 (uncompressed_size): New field,
518 (closeEntry): Only write data_directory if needed.
519 (write): If STORED, write directly.
520 Always update crc, and uncompressed_size.
521 (write_entry): Fix lots of protocol erors.
523 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
525 1.3-Compliant Implementation of java.io.File.
526 * java/lang/natSystem.cc (init_properties): Get "file.separator",
527 "path.separator", and "java.io.tmpdir" from the File class, instead
528 of setting them explicitly.
529 * java/io/File.java: Do not canonicalize paths for security manager
530 checks. Call init_native() from static initializer. Do not pass path
531 argument to native methods. New native method declarations. Some
532 security manager checks moved to checkWrite().
533 (equals): Check file system case sensitivity and act appropriatly.
534 (hashCode): Likewise.
535 (isHidden): New method implemented.
536 (performList): Changed prototype. Now takes a class argument specifying
537 the class of the returned array: Strings or File objects. Also added
539 (listFiles): New variants with "File" return type implemented.
540 (createTempFile): Use createNewFile(). Use maxPathLen.
541 (setReadOnly): New method implemented.
542 (listRoots): Likewise.
543 (compareTo): Likewise.
544 (setLastModified): Likewise.
545 (checkWrite): New method.
547 * java/io/natFile.cc: Various functions no longer take canonical path
549 (stat): Handle ISHIDDEN query.
550 (isAbsolute): Remove WIN32 cruft.
551 (performList): New arguments. Handle returning either File[] or String[]
552 arrays. Check with FileFilter or FilenameFilter arguments as
553 appropriate. Use an ArrayList, not a Vector, for the temporary list.
554 (performSetReadOnly): New method implemented.
555 (performListRoots): Likewise.
556 (performSetLastModified): Likewise.
557 (performCreate): Likewise.
558 (init_native): New initialization function.
559 * java/io/natFileWin32.cc: Various functions no longer take canonical
561 (stat): Add FIXME about ISHIDDEN query.
562 (performList): New arguments. Handle returning either File[] or String[]
563 arrays. Check with FileFilter or FilenameFilter arguments as
564 appropriate. Use an ArrayList, not a Vector, for the temporary list.
565 (performSetReadOnly): New. Stubbed.
566 (performListRoots): Likewise.
567 (performSetLastModified): Likewise.
568 (performCreate): Likewise.
569 (init_native) New initialization function.
570 * configure.in: Check for utime() and chmod().
571 * configure: Rebuilt.
572 * include/config.h.in: Rebuilt.
574 Resolves PR libgcj/1759.
576 2001-03-28 Richard Henderson <rth@redhat.com>
578 IA-64 ABI Exception Handling:
579 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
580 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
581 Remove EXCEPTIONSPEC.
582 * configure.host (libgcj_sjlj): Remove.
583 * configure.in (EXCEPTIONSPEC): Remove.
584 (enable-sjlj-exceptions): Detect if not specified.
585 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
586 what header we're looking for.
587 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
588 * Makefile.in, configure: Regenerate.
589 * exception.cc: Don't declare libgcc2 stuff.
590 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
591 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
592 (win32_get_restart_frame): Remove.
593 (struct java_exception_header): New.
594 (__gcj_exception_class): New.
595 (get_exception_header_from_ue): New.
596 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
597 (size_of_encoded_value, read_encoded_value): New.
598 (read_uleb128, read_sleb128, parse_lsda_header): New.
599 (get_ttype_entry, __gcj_personality_sj0): New.
600 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
602 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
604 * javax/naming/InitialContext.java (init): Fix typo.
605 (composeName): Remove unnecessary semicolon.
606 (addToEnvironment): Remove unnecessary semicolon.
607 (addToEnvironment): Use put() instead of add().
609 * javax/naming/InitialContext.java (InitialContext):
611 (destroySubcontext): Method doesn't return a result.
612 * javax/naming/Context.java: Import java.util.Hashtable.
613 * javax/naming/Name.java: Import java.util.Enumeration.
615 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
617 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
618 objects in subdirectories.
619 * Makefile.in: Rebuilt.
621 2001-03-25 Richard Henderson <rth@redhat.com>
623 * exception.cc (java_eh_info): Make value type jthrowable.
624 (_Jv_type_matcher): Remove now unneeded cast.
625 (_Jv_Throw): Make argument type jthrowable. Munge name
626 for SJLJ_EXCEPTIONS here ...
627 * gcj/cni.h: ... not here.
629 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
631 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
632 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
633 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
634 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
635 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
636 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
637 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
638 java/lang/natClass.cc, java/lang/natClassLoader.cc,
639 java/lang/natDouble.cc, java/lang/natObject.cc,
640 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
641 java/lang/natString.cc, java/lang/natSystem.cc,
642 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
643 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
644 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
645 java/util/zip/natInflater.cc:
646 Use throw, not JvThrow or _Jv_Throw.
648 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
650 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
651 paramater, bump it to 1.
652 * java/util/Hashtable.java (Hashtable): Likewise.
654 2001-03-23 Per Bothner <per@bothner.com>
656 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
657 check for errors, since we don't want to throw exception on
658 overflow/underflow. Instead, trim whitespace, and then check that
659 _strtod_r uses up all the rest of the string.
661 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
662 ancestors array is invalid for interfaces, so do that *after*
663 check that the target type is not an interface.
665 2000-03-23 Jeff Sturm <jsturm@one-point.com>
667 * prims.cc (_Jv_FindClassFromSignature): Check return of
668 recursive call. Do not abort on invalid signature; return NULL
671 2001-03-22 Tom Tromey <tromey@redhat.com>
673 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
674 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
676 * include/jvm.h (_Jv_ResolveField): Declare.
677 * include/java-interp.h (_Jv_ResolveField): Don't declare.
678 * resolve.cc (_Jv_ResolveField): No longer conditional on
681 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
683 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
685 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
686 to a temporary file, then invoke libtool with the -objectlist
688 (libgcjx.la): Likewise.
689 * Makefile.in: Rebuilt.
691 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
693 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
695 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
697 * jni.cc (add_char): Handle `.' like `/'.
699 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
701 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
702 initialize if exception_types is null.
703 * java/lang/reflect/Constructor.java: Likewise.
704 * java/lang/reflect/natConstructor.cc (getType): Initialize
705 exception_types to an empty Object array.
707 2001-03-21 Tom Tromey <tromey@redhat.com>
709 * configure: Rebuilt.
710 * configure.in (GCJFLAGS): Subst.
711 * Makefile.in: Rebuilt.
712 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
713 (gij_LDFLAGS): Likewise.
714 (JC1FLAGS): Added GCJFLAGS and removed -g.
716 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
717 read/write case. Fixes PR libgcj/2338.
719 2001-03-20 Warren Levy <warrenl@redhat.com>
721 * java/util/TimeZone.java: Sync up with Classpath. Includes new
722 and corrected SimpleTimeZone's for the timezones hash table.
724 2001-03-19 Per Bothner <per@bothner.com>
726 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
727 "canonicalize" "../../xxx" to "/xxx".
729 2001-03-19 Mark Wielaard <mark@klomp.org>
731 * java/util/ArrayList.java: Remove RCS keywords from comments
732 * java/util/BasicMapEntry.java: idem
733 * java/util/Dictionary.java: idem
734 * java/util/HashSet.java: idem
736 * java/util/EventObject.java: reindent
737 * java/util/Properties.java: idem
738 * java/util/SortedMap.java: idem
740 * java/util/Enumeration.java: Merge with Classpath
741 * java/util/EventListener.java: idem
742 * java/util/Observable.java: idem
743 * java/util/Observer.java: idem
744 * java/util/Stack.java: idem
746 2001-03-17 Tom Tromey <tromey@redhat.com>
748 * java/lang/natString.cc (rehash): Don't bother with memset;
749 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
751 (UNMASK_PTR): New macro.
752 (intern): Unmask pointer before returning it. Register finalizer
754 (unintern): Handle case where
755 (MASK_PTR): New macro.
756 (PTR_MAKSED): Likewise.
757 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
759 2001-03-01 Andrew Haley <aph@redhat.com>
761 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
762 stackTrace buffer to a correctly aligned pointer array.
764 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
766 * java/lang/Runtime.java (_exit): Declare new package-private native.
767 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
768 without a security manager check.
769 (exit): Call _exit after security check.
770 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
772 * java/lang/System.java (setSecurityManager): If a security manager
773 is already in place, call checkPermission.
774 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
775 throws an exception, try to deal with it gracefully.
776 * java/lang/ExceptionInInitializerError.java (printStackTrace):
777 Only try to print the subordinate stack trace if "exception" is set.
778 Print our class name first.
780 2001-03-08 Tom Tromey <tromey@redhat.com>
782 * java/io/ObjectStreamClass.java (setUID): Don't write interface
783 info for array classes.
784 Fixes PR libgcj/1971.
786 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
788 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
791 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
793 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
794 instead of the new JDK1.2 API. This is simpler and makes
795 back-porting the classes to JDK1.1 trivial.
796 (readObject): likewise.
798 2001-03-01 Per Bothner <per@bothner.com>
800 Changes merged from Kawa's gnu.math.
801 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
802 (rshift(int[],int[],int,int): Removed - not needed.
803 (gcd): Use rshift0 rather than rshift.
804 * java/math/BigInteger.java (setShiftRight): Likewise.
805 (divide): Simplify by using rshift0.
806 (divide): Zero-extend results if high-order bit set.
808 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
810 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
813 2001-02-23 Per Bothner <per@bothner.com>
815 Change to sometimes include class name in ClassFormatError message.
816 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
817 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
818 boolean instead of throwing ClassFormatError on failure.
819 (throw_class_format_error): Change static function to method.
820 (_Jv_ClassReader): New inline methods verify_identifier,
821 two overloads of verify_classname, verify_field_signature, and
822 verify_method_signature
823 * include/java-interp.h: Update declarations to return bool.
824 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
825 ClassFormatError since _Jv_VerifyClassName now returns bool.
827 2001-02-23 Per Bothner <per@bothner.com>
829 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
830 c++filt to select java-style output.
832 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
834 Fix for PR java/2040:
835 * java/util/HashMap.java (HashMap): Don't throw exception for
836 loadFactor > 1. Add exception messages.
837 * java/util/Hashtable.java (Hashtable): Likewise.
839 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
841 Disable libgcjx by default.
842 * configure.in: Add support for --enable-java-awt configure option.
843 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
844 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
845 * Makefile.in: Rebuilt.
846 * configure: Rebuilt.
848 2001-02-20 Tom Tromey <tromey@redhat.com>
850 * java/io/PipedWriter.java (flush): Throw exception if stream
852 * java/io/OutputStreamWriter.java (write): Throw exception if
854 (writeChars): Don't throw exception if stream closed.
855 * java/io/CharArrayWriter.java (closed): New field.
857 (flush): Throw exception if stream closed.
858 (reset): Synchronize on correct lock. Allow stream to be
860 (toCharArray, toString, writeTo): Synchronize.
861 (write): Throwe exception if stream closed.
862 * java/io/BufferedWriter.java (close): Clear `buffer'.
863 (flush): Throw IOException if stream is closed.
866 2001-02-16 Tom Tromey <tromey@cygnus.com>
868 * java/lang/ThreadGroup.java (activeCount): Only include threads
870 (enumerate): Likewise.
872 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
874 * java/lang/Integer.java (getInteger): Return default argument if
875 property is not set. Don't call decode with null argument.
876 * java/lang/Long.java (getLong): Likewise.
878 * java/io/CharArrayReader.java (CharArrayReader): Throw
879 IllegalArgumentException if constructor arguments are illegal.
880 (ready): Return false if no more characters can be read.
881 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
883 2001-02-17 Mark Wielaard <mark@klomp.org>
885 * java/util/TimerTask.java: New version from Classpath.
887 2001-02-17 Mark Wielaard <mark@klomp.org>
889 Remerge with Classpath
890 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
891 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
892 (readByte): Use convertToByte().
893 (readChar): Use convertToChar().
894 (readInt): Use convertToInt().
895 (readLong): Use convertToLong().
896 (readShort): Use convertToShort().
897 (readUnsignedByte): Use convertToUnsignedByte().
898 (readUnsignedShort): Use convertToUnsignedShort().
899 (readUTF): Use convertToUTF().
901 (convertToBoolean): Resurrected.
902 (convertToByte): Ditto.
903 (convertToChar): Ditto.
904 (convertToInt): Ditto.
905 (convertToLong): Ditto.
906 (convertToShort): Ditto.
907 (convertToUnsignedByte): Ditto.
908 (convertToUnsignedShort): Ditto.
909 (convertToUTF): Ditto.
911 2001-02-17 Mark Wielaard <mark@klomp.org>
915 2001-02-17 Mark Wielaard <mark@klomp.org>
917 * java/io/DataInputStream.java: update copyright notice
918 * java/io/PrintWriter.java: idem
919 * java/io/Reader.java: idem
920 * java/io/StreamTokenizer.java: idem
921 * java/io/StringReader.java: idem
922 * java/lang/reflect/ReflectPermission.java: idem
924 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
926 * java/util/TreeSet.java (clone): Made subclass safe, use
927 super.clone(), not new.
928 * java/util/TreeMap.java (clone): Likewise.
930 * java/util/TreeMap.java (nil): Made non-final.
931 (clone): Create new nil node for copy.
933 * java/util/HashSet.java (clone): Made subclass safe, use
934 super.clone(), not new.
936 2001-02-14 Andrew Haley <aph@redhat.com>
938 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
941 2001-02-15 Anthony Green <green@redhat.com>
943 * defineclass.cc: Don't include alloca.h.
944 (prepare_pool_entry): Convert alloca to __builtin_alloca.
945 * interpret.cc (run_normal): Ditto.
947 * java/lang/natDouble.cc (parseDouble): Ditto.
949 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
951 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
953 * java/util/Collections.java (ReverseComparator): New static class.
954 (reverseOrder): Return static instance of ReverseComparator.
956 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
957 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
958 Rectangle.clone(), not Object.clone().
960 * java/util/HashSet.java (clone): Remove try/catch.
962 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
963 * java/util/Collection.java: Likewise.
964 * java/util/Comparator.java: Likewise.
965 * java/util/Dictionary.java: Likewise.
966 * java/util/Iterator.java: Likewise.
967 * java/util/ListIterator.java: Likewise.
968 * java/util/Map.java: Likewise.
969 * java/util/Set.java: Likewise.
971 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
973 * java/util/TreeMap.java: New file.
974 * java/util/TreeSet.java: New file.
975 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
976 * Makefile.in: Rebuilt.
977 * java/util/HashSet.java (clone): Use constructor instead of calling
979 * java/util/SortedSet.java: Sync with classpath.
980 * java/util/HashMap.java (hash): Use if statement instead of ternary,
983 * java/lang/natClass.cc (getSignature): Don't try to dereference
984 param_types if it is null. Instead, take this to mean "no parameters".
985 * java/lang/TreeMap.java (TreeIterator.next): Throw
986 NoSuchElementException in preference to ConcurrentModificationException.
987 (TreeIterator.remove): Throw IllegalStateException in preference to
988 ConcurrentModificationException.
989 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
990 throw a NoSuchElementException.
991 (SubMap.lastKey): Likewise.
993 2001-02-13 Tom Tromey <tromey@redhat.com>
995 * java/io/PipedReader.java (ready): Throw IOException if pipe
997 * java/io/FilterReader.java (close): Don't clear `in'.
998 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1000 (read, ready, reset, skip): Added exception message.
1001 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1002 Perform checkStatus check inside synchronized block.
1004 2001-02-13 Tom Tromey <tromey@redhat.com>
1006 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1008 2001-02-13 Tom Tromey <tromey@redhat.com>
1010 Fix for PR libgcj/1351:
1011 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1013 Include Thread.h and InterruptedIOException.h.
1015 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1017 * java/io/BlockDataException.java: Removed.
1018 * java/io/ObjectInputStream.java (readObject): Throw
1019 StreamCorruptedException, not BlockDataException.
1020 * Makefile.am: Remove BlockDataException.
1021 * Makefile.in: Rebuild.
1023 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1024 Tom Tromey <tromey@redhat.com>
1026 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1029 2001-02-09 Tom Tromey <tromey@redhat.com>
1031 * java/util/Timer.java: New version from Classpath.
1033 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1035 * java/lang/Double.java (doubleToRawLongBits): Now native.
1036 * java/lang/Float.java (floatToRawIntBits): Likewise.
1037 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1038 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1040 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1042 * java/io/File.java (java.net): Imported.
1043 (getAbsoluteFile): Added.
1044 (getCanonicalPath): Likewise.
1047 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1049 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1050 * java/lang/Integer.java: Likewise.
1051 * java/lang/Long.java: Likewise.
1052 * java/lang/Short.java: Likewise.
1053 * java/lang/Double.java: Likewise.
1054 (doubleToRawLongBits): New method.
1055 * java/lang/Float.java: As above.
1056 (floatToRawIntBits): New method.
1058 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1059 IOException if stream closed.
1061 2001-02-08 Tom Tromey <tromey@redhat.com>
1063 * java/lang/Float.java (parseFloat): New method.
1065 2001-02-08 Tom Tromey <tromey@redhat.com>
1067 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1068 * java/io/InputStreamReader.java (ready, read): Throw IOException
1069 if stream has been closed.
1071 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1073 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1074 Change sources.redhat.com and sourceware.cygnus.com references to
1077 2001-02-07 Tom Tromey <tromey@redhat.com>
1079 Fix for PR libgcj/1906:
1080 * java/text/MessageFormat.java (setLocale): Use named class
1083 (format(Object,StringBuffer,FieldPosition)): Special case if
1084 argument is an Object[].
1086 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1088 * java/util/Arrays.java: Removed "cmp" methods.
1089 (qsort): Don't use "cmp".
1092 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1094 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1095 sort. Fix for PR java/1895.
1097 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1099 * configure.host: Use sjlj-exceptions for Alpha.
1101 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1103 * libgcj.spec.in: Don't force static libgcc into the executable.
1104 * configure.in (FORCELIBGCCSPEC): Removed.
1105 * configure: Rebuilt.
1107 2001-01-31 Tom Tromey <tromey@redhat.com>
1109 * Makefile.in: Rebuilt.
1110 * Makefile.am (LTCXXCOMPILE): New macro.
1112 2001-01-26 Andrew Haley <aph@redhat.com>
1114 (INIT_FPE): Use a direct system call to set the handler.
1116 2001-01-27 Richard Henderson <rth@redhat.com>
1118 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1120 2001-01-27 Tom Tromey <tromey@redhat.com>
1122 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1123 native interface structure.
1125 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1127 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1129 (read (byte[], int, int)): Only call readNextBlock() if the block
1130 buffer would actually be overrun. Increment blockDataPosition.
1131 (callReadMethod): Propagate exceptions from invocation target.
1132 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1133 exceptions from invocation target.
1135 2001-01-26 Tom Tromey <tromey@redhat.com>
1137 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1138 to internal representation.
1139 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1140 _Jv_FindClassFromSignature.
1142 2001-01-26 Warren Levy <warrenl@redhat.com>
1144 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1145 and timezone if they are available on the system.
1147 2001-01-24 Tom Tromey <tromey@redhat.com>
1149 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1151 2001-01-24 Tom Tromey <tromey@redhat.com>
1153 * Makefile.in: Rebuilt.
1154 * Makefile.am (c_source_files): Added sf_fabs.c.
1155 * java/lang/sf_fabs.c: New file.
1157 2001-01-19 Warren Levy <warrenl@redhat.com>
1159 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1160 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1161 correctly. Adjust properly from 0-23 clock hour.
1163 2001-01-17 Mark Wielaard <mark@klomp.org>
1165 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1167 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1169 * java/lang/Class.h (isInterface): Move implementation from
1170 natClass.cc. Declare inline.
1171 (Class): Add default constructor.
1172 * java/lang/Object.h: Update comments.
1173 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1174 initialize superclass, saving a call if super is already initialized.
1176 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1178 * prims.cc (init_prim_class): Deleted.
1179 (DECLARE_PRIM_TYPE): Rewritten.
1180 * java/lang/Class.h (stdio.h): Include removed.
1181 (stddef.h): Included.
1182 (java/lang/reflect/Modifier.h): Likewise.
1183 (Class): Contructor now takes arguments, initializes fields.
1184 (initializePrim): Prototype deleted.
1185 * java/lang/natClass.cc (initializePrim): Deleted.
1187 2001-01-16 Warren Levy <warrenl@redhat.com>
1189 * java/math/BigInteger.java: Update Copyright year.
1191 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1193 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1196 2001-01-14 Mark Wielaard <mark@klomp.org>
1197 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1198 (decode): Merge comments with Classpath, don't throw Exception
1200 2001-01-12 Tom Tromey <tromey@redhat.com>
1202 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1206 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1207 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1208 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1209 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1210 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1212 * java/lang/natSystem.cc: Include locale.h if it exists.
1213 * configure: Rebuilt.
1214 * configure.in: Check for locale.h.
1216 2001-01-11 Tom Tromey <tromey@redhat.com>
1218 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1219 (Cursor(int), getPredefinedCursor): Throw exception if argument
1222 2001-01-03 Tom Tromey <tromey@redhat.com>
1224 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1225 (getLocationOnScreen): Wrote.
1227 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1229 * Makefile.am: Re-enable dependencies.
1230 * Makefile.in: Rebuilt.
1232 2001-01-10 Warren Levy <warrenl@redhat.com>
1234 * java/math/BigDecimal.java (divide): Fixed comment.
1236 2001-01-10 Warren Levy <warrenl@redhat.com>
1238 Fix for PR libgcj/1596:
1239 * java/math/BigDecimal.java (divide): Check newScale for validity.
1240 Ensure that BigInteger.pow() is called with a non-negative value.
1241 (setScale (int)): New public method.
1242 (setScale (int,int)): New public method.
1244 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1246 Fix for PR libgcj/1338:
1247 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1248 commentChar. Fixed typos in comments.
1250 2001-01-08 Warren Levy <warrenl@redhat.com>
1252 Fix for PR libgcj/1411:
1253 * Makefile.am: Removed java/util/natTimeZone.cc.
1254 * Makefile.in: Rebuilt.
1255 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1256 missing localized timezone names.
1257 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1258 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1259 (init_properties): Set user.timezone property.
1260 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1261 default timezone names; removed non-standard ones. Use standard
1263 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1265 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1267 (getDefaultTimeZoneId): Removed.
1269 * java/util/natTimeZone.cc: Removed.
1271 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1273 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1274 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1275 (_Jv_GetArrayClass): New inline function.
1276 (arrayclass): New field.
1277 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1278 _Jv_GetArrayElementFromElementType.
1279 (_Jv_NewPrimArray): Ditto.
1280 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1281 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1282 Set Modifier::ABSTRACT.
1283 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1284 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1285 Now synchronized. Array classes are now referenced from
1286 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1287 Set array classes' accessibility flags correctly. Optimize so that
1288 all array classes share the same IDT.
1289 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1290 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1291 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1292 in superclasses from overwriting classes own fields.
1293 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1294 Modifier::isAbstract().
1295 (null_idt): New static field.
1296 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1298 (_Jv_IndexOf): Made inline.
1299 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1301 2001-01-08 Tom Tromey <tromey@redhat.com>
1303 Fix for PR java/1586:
1304 * Makefile.in: Rebuilt.
1305 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1307 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1309 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1310 from the c++ compiler.
1311 * Makefile.in: Rebuilt.
1313 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1315 All files with updated copyright.
1316 * prims.cc (class _Jv_PrimClass): Removed.
1317 (init_prim_class): New function.
1318 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1319 `_Jv_PrimClass' in primitive type declarations. Assign to the
1320 value returned by `init_prim_class.'
1321 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1322 primitive type declarations.
1323 (JvPrimClass): Cast to `jclass' removed.
1324 * java/lang/Class.h (Class): New constructor.
1325 (Class): New copy constructor.
1326 (initializePrim): New prototype.
1327 (_Jv_PrimClass): Field removed.
1328 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1329 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1330 (class java::lang::Object): `finalize' moved up front.
1331 * java/lang/natClass.cc
1332 (isAssignableFrom): Turned outline.
1333 (isInstance): Likewise.
1334 (isInterface): Likewise, fixed indentation.
1335 (initializePrim): New function.
1337 2001-01-07 Anthony Green <green@redhat.com>
1339 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1341 * Makefile.in: Rebuilt.
1343 * scripts/TexinfoDoclet.java: New file.
1345 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1346 doc/java-awt-color.texi, doc/java-lang.texi,
1347 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1348 doc/java-awt-event.texi, doc/java-net.texi,
1349 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1350 doc/java-awt-image.texi, doc/java-security.texi,
1351 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1352 doc/java-text.texi, doc/java-beans-beancontext.texi,
1353 doc/java-util-jar.texi, doc/java-beans.texi,
1354 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1355 doc/java-lang-ref.texi: New files.
1357 2001-01-07 Anthony Green <green@redhat.com>
1359 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1360 be used for both input and output, so don't clear doInput.
1362 * java/lang/StringBuffer.java: Fix comments.
1364 2001-01-06 Anthony Green <green@redhat.com>
1366 * java/beans/PropertyDescriptor.java: Fix comment.
1367 * java/io/PushbackReader.java: Fix comment.
1368 * java/io/ObjectStreamClass.java: Fix comment.
1369 * java/io/DataInputStream.java: Fix comment.
1370 * java/io/PipedInputStream.java: Fix comments.
1371 * java/io/PipedReader.java: Fix comments.
1372 * java/sql/DatabaseMetaData.java: Fix comments.
1374 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1376 * java/io/PipedReader: Synchronize on "lock" instead of this.
1378 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1380 * java/lang/Thread.java: Update comment.
1382 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1383 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1384 * java/io/PipedReader: New implementation based on new
1386 * java/io/PipedWriter: Updated to match new PipedReader.
1388 2001-01-03 Tom Tromey <tromey@redhat.com>
1390 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1391 (getViewportSize): Insets include scrollbar size.
1392 (doLayout): Finished.
1393 (getScrollPosition): Wrote.
1394 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1396 2001-01-02 Tom Tromey <tromey@redhat.com>
1398 * java/awt/ScrollPane.java: Wrote.
1399 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1402 * java/awt/Panel.java (Panel()): Fixed.
1404 * java/awt/Component.java (isShowing): Return false if no peer
1405 exists, and true if component is visible and no parent exists.
1406 (getLocationOnScreen): Wrote.
1407 (getPreferredSize): Removed FIXME comment.
1408 (getMinimumSize): Likewise.
1409 (getAlignmentX, getAlignmentY): Wrote.
1411 (requestFocus): Wrote.
1412 (transferFocus): Wrote.
1413 (findNextFocusComponent): New method.
1414 (hasFocus()): Wrote.
1415 (checkImage): Wrote.
1416 (enableEvents): Call setEventMask on the peer.
1418 * java/awt/Container.java (list): Use super.list() to print self.
1419 (findNextFocusComponent): New method.
1420 (setLayout): Call invalidate.
1421 (findComponentAt): Wrote.
1423 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1425 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1426 the correct versions of various linuxthreads functions get linked.
1427 * Makefile.in: Rebuilt.
1428 * java/lang/natThread.cc (finalize_native): New static function. Call
1429 _Jv_ThreadDestroyData.
1430 (initialize_native): Register finalizer for "data".
1431 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1432 (_Jv_ThreadDestroyData): New prototype.
1433 * include/win32-threads.h: Ditto.
1434 * include/no-threads.h: Ditto.
1435 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1436 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1437 move mutex and condition variable destroy code from:
1438 (really_start): ...here.
1439 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1440 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1441 (_Jv_ThreadDestroyData): Implemented.
1442 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1443 (_Jv_AllocArray): Ditto.
1445 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1447 * java/sql/DriverManager.java (getConnection): Don't set user/password
1450 2000-12-27 Warren Levy <warrenl@redhat.com>
1452 Fix for PR libgcj/1358:
1453 * java/lang/System.java: Update Copyright date properly.
1454 * java/util/Calendar.java: Fix typo in comment.
1455 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1456 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1457 initialize times. Spec says to set H:M:S values to zero only if
1459 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1460 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1461 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1462 timezones and GMT offsets, being careful to account for units of
1463 milliseconds vs. seconds.
1465 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1467 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1468 not be assigned to Object.
1470 Fix for PR libgcj/1516:
1471 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1473 (can_widen): Declared inline. Remove redundant checks for void
1474 arguments and char->short conversion. Add special case for boolean
1476 (ffi_type): Declared inline.
1477 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1479 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1481 * java/sql/SQLWarning.java: Fixed typo in comment.
1483 2000-12-26 Tom Tromey <tromey@redhat.com>
1485 * java/awt/MenuItem.java (paramString): Now protected.
1487 * java/awt/MenuShortcut.java: Implements Serializable.
1489 * java/awt/MenuBar.java: Rewrote from scratch.
1491 * java/awt/MenuComponent.java (removeNotify): Wrote.
1492 Implements Serializable.
1494 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1497 * java/awt/CheckboxMenuItem.java: Wrote.
1499 2000-12-25 Tom Tromey <tromey@redhat.com>
1501 * java/awt/MenuContainer.java: Fixed typo.
1503 * Makefile.in: Rebuilt.
1504 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1505 * java/awt/SystemColor.java: New file.
1507 * java/awt/Color.java (rgba): Now package-private.
1509 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1511 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1514 * java/awt/MenuItem.java (addNotify): New method.
1515 (MenuItem(String,MenuShortcut)): New constructor.
1516 (setLabel): Notify peer of change.
1517 (setEnabled): Likewise.
1519 * java/awt/GridLayout.java (toString): New method.
1521 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1522 (FlowLayout): Check for LEADING and TRAILING.
1523 (setAlignment): Likewise.
1524 (layoutContainer): Handle component orientation.
1526 * java/awt/Component.java (orientatin): New field.
1527 (setComponentOrientation): Wrote.
1528 (getComponentOrientation): Wrote.
1530 * java/awt/Event.java (Event): Implements Serializable.
1531 (consumed): New field for serialization.
1532 * java/awt/Dimension.java (Dimension): Implements Serializable.
1533 * java/awt/Cursor.java (Cursor): Implements Serializable.
1534 * java/awt/Container.java (Container): No longer abstract.
1536 * java/awt/Choice.java: Wrote.
1537 * java/awt/Checkbox.java: Wrote.
1538 * java/awt/ItemSelectable.java: Documented.
1539 * java/awt/CheckboxGroup.java: Wrote.
1541 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1543 (getSize): Likewise.
1545 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1547 * java/io/FileDescriptor.java: Initialize fd to -1.
1548 Remove default constructor.
1550 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1552 * java/lang/mprec.h: Change C9X reference to refer to C99.
1554 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1556 * java/lang/Throwable.java (trace_enabled): New static field.
1557 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1558 trace_enabled not set.
1559 * prims.cc (main_init): Turn off trace_enabled while creating
1560 default exception objects.
1562 2000-12-21 Tom Tromey <tromey@redhat.com>
1564 * java/beans/PropertyChangeListener.java: Extends EventListener.
1565 * java/beans/VetoableChangeListener.java: Extends EventListener.
1567 * java/util/zip/Deflater.java (update, init): Now private.
1569 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1571 * java/util/BasicMapEntry.java: Re-added.
1572 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1573 (putAll): Test for BasicMapEntry.
1574 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1575 (putAll): Test for BasicMapEntry.
1576 Change references from `HashMap.Entry' to `Entry' in various places.
1577 * Makefile.am: Add BasicMapEntry.java.
1578 * Makefile.in: Rebuilt.
1580 2000-12-18 Warren Levy <warrenl@redhat.com>
1582 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1583 need to set timezone to a valid non-null value. Partial fix for
1586 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1588 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1590 * java/awt/Button.java (addNotify): Likewise.
1591 * java/awt/Label.java (addNotify): Likewise.
1592 * java/awt/Panel.java (addNotify): Likewise.
1593 * java/awt/Scrollbar.java (addNotify): Likewise.
1594 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1595 Remove redundant null checks.
1597 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1599 * COPYING: Update to current
1600 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1601 to 19yy as example year in copyright notice).
1603 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1605 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1606 end-of-stream if avail_in is 0.
1608 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1610 * java/util/ArrayList.java (data): Declare transient.
1611 (serialPersistantFields): Removed.
1612 (readObject): Use defaultReadObject(), not readFields().
1613 (writeObject): Use defaultWriteObject(), not writeFields().
1615 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1617 * java/util/Hashtable.java (put): Remove `last' variable.
1618 Link new entry to head of list.
1619 * java/util/HashMap.java (put): Ditto.
1621 2000-12-15 Tom Tromey <tromey@redhat.com>
1623 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1624 loader to Class.forName.
1626 2000-12-14 Tom Tromey <tromey@redhat.com>
1628 * java/util/ResourceBundle.java
1629 (getBundle(String,Locale,ClassLoader)): New method.
1630 (trySomeGetBundle): Added `loader' argument.
1631 (partialGetBundle): Likewise.
1633 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1634 maximumFractionDigits, maximumIntegerDigits,
1635 minimumFractionDigits, minimumIntegerDigits): Now
1638 * java/lang/Thread.java (checkAccess): Now final.
1640 * java/lang/RuntimePermission.java: Class now final.
1642 * java/io/StringWriter.java (StringWriter(int)): Now public.
1644 * java/io/SerializablePermission.java (legal_names): Now private.
1646 * java/lang/Character.java: Updated UnicodeBlock constants.
1647 * scripts/blocks.pl: Special case private use and surrogate
1650 2000-12-12 Tom Tromey <tromey@redhat.com>
1652 * Makefile.in: Rebuilt.
1653 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1655 (GCJCOMPILE): Use it.
1658 2000-12-11 Tom Tromey <tromey@redhat.com>
1660 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1661 New static final fields.
1663 * scripts/classes.pl (scan): Skip lines with leading `*'.
1664 Fix for PR libgcj/378.
1666 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1668 * configure.in: Remove check for -fuse-divide-subroutine.
1669 * configure: Rebuilt.
1671 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1673 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1675 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1677 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1678 Remove BasicMapEntry.java and Bucket.java.
1679 * Makefile.in: Rebuilt.
1680 * java/util/HashMap.java: Rewritten.
1681 * java/util/HashSet.java: Imported from classpath.
1682 * java/util/WeakHashMap.java: Imported from classpath.
1683 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1684 * java/util/Bucket.java: Deleted.
1685 * java/util/BasicMapEntry.java: Deleted.
1686 * java/util/Collections.java (search): Use a for-loop, not iterator
1688 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1689 of elements in source.
1690 (max): Use a for-loop.
1692 (reverse): Keep track of positions instead of using Iterator's
1693 nextIndex() and previousIndex().
1694 (shuffle(List)): Initialize defaultRandom if required using
1695 double-check thread safety idiom. Call two-argument shuffle method
1696 using defaultRandom.
1697 (defaultRandom): New field.
1698 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1699 using previousIndex() and nextIndex().
1700 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1701 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1702 * java/util/AbstractMap.java (toString): Use StringBuffer.
1703 * java/lang/ref/PhantomReference.java: Imported from classpath.
1704 * java/lang/ref/SoftReference.java: Ditto.
1705 * java/lang/ref/Reference.java: Ditto.
1706 * java/lang/ref/WeakReference.java: Ditto.
1707 * java/lang/ref/ReferenceQueue.java: Ditto.
1709 2000-12-10 Richard Henderson <rth@redhat.com>
1711 * configure.host: Recognize alpha*-*, not alphaev6-*.
1713 2000-12-09 Anthony Green <green@redhat.com>
1715 * configure.host: Enable interpreter for Alpha.
1717 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1719 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1720 (ZIP): Points at fastjar instead of zip.
1721 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1722 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1723 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1724 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1725 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1726 ($(x_java_source_files:.java=.class):): Likewise.
1727 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1729 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1730 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1731 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1732 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1733 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1734 gnu/gcj/runtime/VMClassLoader.h:,
1735 java/io/ObjectInputStream$$GetField.h:,
1736 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1737 (Makefile.in): Rebuilt.
1739 2000-12-08 Tom Tromey <tromey@redhat.com>
1742 * configure: Rebuilt.
1743 * configure.in: Use echo, not `:', to create .d files.
1745 2000-12-08 Warren Levy <warrenl@redhat.com>
1747 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1748 NullPointerException so proper check of offset can be done.
1750 2000-12-08 Warren Levy <warrenl@redhat.com>
1752 * java/io/FileInputStream.java (close): Check if the fd is valid.
1753 * java/io/RandomAccessFile.java (close): Ditto.
1754 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1755 * java/net/PlainSocketImpl.java (close): Ditto.
1757 2000-12-06 Tom Tromey <tromey@redhat.com>
1759 * java/awt/GridBagConstraints.java: Filled in values for static
1762 * java/util/BitSet.java: Updated copyright notice.
1764 * Makefile.in: Rebuilt.
1765 * Makefile.am (awt_java_source_files): Added new file.
1766 * java/awt/GridBagConstraints.java: New file.
1768 2000-12-05 Tom Tromey <tromey@redhat.com>
1770 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1771 Now package-private, not protected.
1772 * java/text/DateFormatSymbols.java (equals): Now private.
1773 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1774 * java/util/BitSet.java: Class no longer final.
1776 2000-12-04 Warren Levy <warrenl@redhat.com>
1778 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1779 out code dependent on compiler and library changes.
1781 2000-12-04 Warren Levy <warrenl@redhat.com>
1783 * java/io/FilePermission.java: Made class final per spec.
1784 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1785 method name to match spec (fixed typo).
1786 * java/util/LinkedList.java: Implements List.
1788 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1790 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1791 Edgar Villanueva <edgarvil@home.com>.
1793 2000-12-03 Tom Tromey <tromey@redhat.com>
1795 * java/awt/geom/Point2D.java: Added protected constructor.
1796 (equals): New method.
1797 (Float.setLocation(float,float)): New method.
1798 * java/awt/geom/Dimension2D.java: Added protected constructor.
1799 * java/awt/geom/AffineTransform.java: Made all constants public.
1800 (concatenate): Fixed typo in name.
1801 * java/awt/event/WindowAdapter.java: Class now abstract.
1802 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1803 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1806 * java/awt/AWTError.java: Extend Error, not
1807 IllegalStateException.
1809 * Makefile.in: Rebuilt.
1810 * Makefile.am (awt_java_source_files): Added new file.
1811 * java/awt/geom/RoundRectangle2D.java: New file.
1813 * Makefile.in: Rebuilt.
1814 * Makefile.am (awt_java_source_files): Added new file.
1815 * java/awt/FlowLayout.java: New file.
1817 * Makefile.in: Rebuilt.
1818 * Makefile.am (awt_java_source_files): Added new file.
1819 * java/awt/GridLayout.java: New file.
1821 2000-12-02 Tom Tromey <tromey@redhat.com>
1823 * Makefile.in: Rebuilt.
1824 * Makefile.am (awt_java_source_files): Added new files.
1825 * java/awt/CardLayout.java: New file.
1826 * java/awt/AWTPermission.java: New file.
1828 2000-12-01 Tom Tromey <tromey@redhat.com>
1830 * java/util/Vector.java (insertElementAt): Unconditionally
1831 increment elementCount.
1832 (removeRange): Clear unused slots in vector.
1834 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1836 * java/lang/natMath.cc: Declare fabsf() function.
1837 * java/lang/mprec.h: Don't include math.h.
1838 * java/lang/dtoa.c: Include string.h.
1839 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1842 From Adam Welc <welc@cs.purdue.edu>:
1843 * java/util/LinkedList.java (removeFirst): Update `first' field.
1844 Handle the last == first case.
1845 (removeLast): Update `last' field. Handle the last == first case.
1847 2000-12-01 Warren Levy <warrenl@cygnus.com>
1849 * Makefile.am: Added entries for new java.sql modules.
1850 * Makefile.in: Rebuilt.
1852 2000-12-01 Warren Levy <warrenl@cygnus.com>
1854 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1855 that aren't quite 1.2 compatible yet.
1857 2000-11-30 Warren Levy <warrenl@cygnus.com>
1859 * java/sql/Array.java: New file from classpath.
1860 * java/sql/BatchUpdateException.java: Ditto.
1861 * java/sql/Blob.java: Ditto.
1862 * java/sql/Clob.java: Ditto.
1863 * java/sql/Ref.java: Ditto.
1864 * java/sql/SQLData.java: Ditto.
1865 * java/sql/SQLInput.java: Ditto.
1866 * java/sql/SQLOutput.java: Ditto.
1867 * java/sql/Struct.java: Ditto.
1868 * java/sql/CallableStatement.java: Merged file from claspath.
1869 * java/sql/Connection.java: Ditto.
1870 * java/sql/DataTruncation.java: Ditto.
1871 * java/sql/DatabaseMetaData.java: Ditto.
1872 * java/sql/DriverManager.java: Ditto.
1873 * java/sql/PreparedStatement.java: Ditto.
1874 * java/sql/ResultSet.java: Ditto.
1875 * java/sql/ResultSetMetaData.java: Ditto.
1876 * java/sql/SQLException.java: Ditto.
1877 * java/sql/SQLWarning.java: Ditto.
1878 * java/sql/Statement.java: Ditto.
1879 * java/sql/Types.java: Ditto.
1881 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1883 * java/lang/natSystem.cc (init_properties): Set user.language and
1885 * configure.in: Check for setlocale.
1886 * configure: Rebuilt.
1887 * include/config.h.in: Rebuilt.
1889 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1890 the infate() call didn't deliver any output. Throw a ZipException if
1891 the needsDictionary() call returns true.
1892 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1893 * java/io/InputStreamReader: Use the default buffer size for the
1894 contained BufferedInputStream.
1896 2000-11-28 Warren Levy <warrenl@cygnus.com>
1898 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1899 more time zone entries.
1900 * java/text/SimpleDateFormat.java (format): Added case for
1903 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1905 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1906 directly rather than read() in all cases. Make primitive read
1907 implementations more efficient, as defined in JDK online docs.
1908 (skipBytes): Behave like the JDK's implementation.
1909 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1910 closed stream with checkStatus() whenever an IOException can be
1912 (checkStatus): New private method.
1914 2000-11-27 Warren Levy <warrenl@cygnus.com>
1916 * Makefile.am: Added natTimeZone.cc.
1917 * Makefile.in: Rebuilt.
1918 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1919 * java/text/DateFormatSymbols.java (ampms): Made package private.
1920 (eras): Made package private.
1921 (months): Made package private.
1922 (shortMonths): Made package private.
1923 (shortWeekdays): Made package private.
1924 (weekdays): Made package private.
1925 (formatPrefixes): New private field.
1926 (localPatternCharsDefault): Made private.
1927 (dateFormats): New package private field.
1928 (timeFormats): New package private field.
1929 (formatsForKey): New private method.
1930 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1931 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1932 * java/text/SimpleDateFormat.java: Merged with Classpath.
1933 * java/util/TimeZone.java: Merged with Classpath.
1934 * java/util/natTimeZone.cc: New file.
1936 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1938 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1939 (addElement): Don't increment elementCount twice. Doh.
1940 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1941 array needs to be expanded.
1943 * java/util/Collections.java (UnmodifiableCollection): Implement
1945 (UnmodifiableList): Throw UnsupportedOperationException from
1946 modification methods. Set `l' from the one-parameter constructor.
1947 (UnmodifiableMap): Implement toString().
1948 (SynchronizedCollection): Ditto.
1949 (SynchronizedList): Set `l' from the one-parameter constructor.
1950 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1951 (SynchronizedMap): Implement toString().
1953 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1955 * javax/naming/NameParser.java,
1956 javax/naming/directory/AttributeInUseException.java,
1957 javax/naming/directory/AttributeModificationException.java,
1958 javax/naming/directory/InvalidAttributeIdentifierException.java,
1959 javax/naming/directory/InvalidAttributesException.java,
1960 javax/naming/directory/InvalidAttributeValueException.java,
1961 javax/naming/directory/InvalidSearchControlsException.java,
1962 javax/naming/directory/InvalidSearchFilterException.java,
1963 javax/naming/directory/NoSuchAttributeException.java,
1964 javax/naming/directory/SchemaViolationException.java: New files.
1966 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1968 * javax/naming/InitialContext.java (rebind): Implement.
1969 (unbind): Implement.
1970 (rename): Implement.
1972 (listBindings): Implement.
1973 (destroySubcontext): Implement.
1974 (createSubcontext): Implement.
1975 (lookupLink): Implement.
1976 (getNameParser): Implement.
1977 (composeName): Implement.
1978 (addToEnvironment): Implement.
1980 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1982 * javax/naming/AuthenticationException.java,
1983 javax/naming/AuthenticationNotSupportedException.java,
1984 javax/naming/CannotProceedException.java,
1985 javax/naming/CommunicationException.java,
1986 javax/naming/ConfigurationException.java,
1987 javax/naming/ContextNotEmptyException.java,
1988 javax/naming/InsufficientResourcesException.java,
1989 javax/naming/InterruptedNamingException.java,
1990 javax/naming/InvalidNameException.java,
1991 javax/naming/LimitExceededException.java,
1992 javax/naming/LinkException.java,
1993 javax/naming/LinkLoopException.java,
1994 javax/naming/MalformedLinkException.java,
1995 javax/naming/NameAlreadyBoundException.java,
1996 javax/naming/NameNotFoundException.java,
1997 javax/naming/NamingSecurityException.java,
1998 javax/naming/NoPermissionException.java,
1999 javax/naming/NotContextException.java,
2000 javax/naming/PartialResultException.java,
2001 javax/naming/ReferralException.java,
2002 javax/naming/ServiceUnavailableException.java,
2003 javax/naming/SizeLimitExceededException.java,
2004 javax/naming/TimeLimitExceededException.java: New files.
2006 * javax/naming/Name.java (clone): New method.
2007 (compareTo): New method.
2008 (isEmpty): New method.
2009 (getAll): New method.
2010 (getPrefix): New method.
2011 (getSuffix): New method.
2012 (startsWith): New method.
2013 (endsWith): New method.
2014 (addAll): New method.
2015 (addAll): New method.
2018 (remove): New method.
2020 * javax/naming/Context.java (lookup): New method.
2021 (rebind): New method.
2022 (unbind): New method.
2023 (rename): New method.
2025 (listBindings): New method.
2026 (destroySubcontext): New method.
2027 (createSubcontext): New method.
2028 (lookupLink): New method.
2029 (getNameParser): New method.
2030 (composeName): New method.
2031 (addToEnvironment): New method.
2032 (removeFromEnvironment): New method.
2033 (getEnvironment): New method.
2034 (close): New method.
2035 (getNameInNamespace): New method.
2037 * javax/naming/InitialContext.java (lookup): New method.
2038 (rebind): New method.
2039 (unbind): New method.
2040 (rename): New method.
2042 (listBindings): New method.
2043 (destroySubcontext): New method.
2044 (createSubcontext): New method.
2045 (lookupLink): New method.
2046 (getNameParser): New method.
2047 (composeName): New method.
2048 (addToEnvironment): New method.
2049 (removeFromEnvironment): New method.
2050 (getEnvironment): New method.
2051 (close): New method.
2052 (getNameInNamespace): New method.
2054 2000-11-26 Tom Tromey <tromey@cygnus.com>
2056 * Makefile.in: Rebuilt.
2057 * Makefile.am (core_java_source_files): Added
2058 RuntimePermission.java.
2059 * java/lang/RuntimePermission.java: Imported from Classpath.
2060 * java/lang/Thread.java (getContextClassLoader): Now
2061 synchronized. Added security code.
2062 (setContextClassLoader): Likewise.
2064 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2065 length field of array.
2066 (_Jv_NewPrimArray): Likewise.
2067 * gcj/array.h (__JArray): `length' field now const. Added
2070 2000-11-26 Anthony Green <green@redhat.com>
2072 * javax/naming/spi/NamingManager.java,
2073 javax/naming/spi/ObjectFactory.java,
2074 javax/naming/spi/InitialContextFactory.java,
2075 javax/naming/spi/InitialContextFactoryBuilder.java,
2076 javax/naming/RefAddr.java, javax/naming/Reference.java,
2077 javax/naming/NamingException.java, javax/naming/Context.java,
2078 javax/naming/Referenceable.java,
2079 javax/naming/directory/InitialDirContext.java,
2080 javax/naming/directory/DirContext.java,
2081 javax/naming/directory/Attributes.java,
2082 javax/naming/directory/Attribute.java,
2083 javax/naming/StringRefAddr.java,
2084 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2085 javax/naming/InitialContext.java,
2086 javax/naming/NoInitialContextException.java: New files.
2088 2000-11-25 Anthony Green <green@redhat.com>
2090 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2091 (_Jv_NewPrimArray): Likewise.
2092 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2093 (class JArray): Removed constructor.
2095 * java/lang/Thread.java (context_class_loader): New private data.
2096 (getContextClassLoader): New method.
2097 (setContextClassLoader): New method.
2098 (Thread): Initialize context_class_loader.
2100 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2101 (getResource): Rename to findResource.
2102 (findResource): New method. Used to be getResource.
2103 (getResourceAsStream): Deleted.
2104 (jarFileize): Extracted logic from URLClassLoader constructor into
2105 this new private method.
2106 (addURL): New protected method.
2107 (URLClassLoader): Call jarFileize. Use addElement instead of
2109 (findResources): New method.
2111 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2112 (getResource): Implement correct logic.
2113 (findResource): New method.
2114 (getResources): New method.
2115 (findClass): Create a ClassNotFoundException with the name of the
2116 class rather than nothing at all.
2117 (defineClass) Only throw ClassFormatError.
2119 * java/lang/Class.java (forName): New method.
2120 * java/lang/Class.h (forName): New method.
2121 * java/lang/natClass.cc (forName): New method.
2123 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2125 * java/lang/System.java (setProperties): Only call init_properties()
2126 if properties is null.
2127 (getProperties): Ditto.
2128 (getProperty): Ditto.
2129 (setProperty): Call init_properties if properties are null.
2130 (prop_init): Remove field.
2131 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2132 method. Check for null properties after synchronizing instead of
2133 prop_init flag. Set the properties field last for thread safety.
2135 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2136 test for gcj.dumpobjects property and enable object stream dumping
2138 (dumpElement): No longer native.
2139 (dumpElementln): Ditto.
2140 (setDump): Do not define.
2141 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2142 (dumpElementln): Removed.
2145 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2147 * configure: Rebuilt.
2148 * Makefile.in: Rebuilt.
2149 * Makefile.am (built_java_source_files): Add Configuration.java.
2150 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2151 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2152 Create `gnu' directory in the build tree.
2153 * gnu/classpath/Configuration.java.in: New file.
2155 2000-11-24 Tom Tromey <tromey@cygnus.com>
2157 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2159 (_Jv_NewPrimArray): Likewise.
2161 * gcj/array.h (__JArray): `length' field now const. Added
2163 (class JArray): Added constructor.
2165 2000-11-23 Mark Wielaard <mark@klomp.org>
2167 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2170 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2172 * java/util/Vector.java: Improve exception messages.
2173 (Vector): Check initialCapacity for IllegalArgumentException.
2174 (tromToSize): Don't check for elementCount == elementData.length
2176 (toArray): Don't try to set null marker if target array is the same
2177 length as the vector.
2179 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2181 * Makefile.in: Rebuilt.
2182 * Makefile.am (core_java_source_files): Added Collections.java.
2183 * java/util/List.java: Merged from classpath.
2184 * java/util/Vector.java: Ditto.
2185 * java/util/Collections.java: From classpath.
2186 * java/util/ArrayList.java (addAll(Collection)): Call
2187 addAll(int,Collection) instead of duplicating code.
2188 (indexOf): Clean up int initialization.
2189 (clear): Set cleared array entries to null, to allow garbage
2191 * java/util/List.java: Minor formatting fixes.
2192 * java/util/SimpleTimeZone.java: ditto.
2194 2000-11-18 Tom Tromey <tromey@cygnus.com>
2196 * Makefile.in: Rebuilt.
2197 * Makefile.am (core_java_source_files): Added new files.
2198 * java/lang/reflect/ReflectPermission.java: New class.
2199 * java/io/FileFilter.java: From Classpath
2200 * java/io/FilePermission.java: From Classpath.
2202 2000-11-17 Tom Tromey <tromey@cygnus.com>
2204 * java/lang/reflect/AccessibleObject.java (isAccessible,
2205 setAccessible): Now public.
2207 * java/lang/natString.cc: Include Locale.h.
2208 (toUpperCase): Added `locale' argument. Handle locale
2210 (toLowerCase): Added `locale' argument. Handle locale
2212 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2213 CAPITAL_I): New defines.
2214 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2217 (toUpperCase, toLowerCase): New methods. Variants which accept
2220 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2223 * java/util/PropertyPermission.java: Re-merged from Classpath.
2225 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2227 * java/text/StringCharacterIterator.java: Reindented.
2228 (setText): New method.
2230 2000-11-17 Mark Wielaard <mark@klomp.org>
2232 Merge with Classpath (changes by Bryce McKinlay)
2233 * java/util/jar/*.java: Reformat all to unofficial standard coding
2234 style. No changes of substance.
2236 2000-11-17 Mark Wielaard <mark@klomp.org>
2238 * java/util/zip/*.java: Javadoc updates.
2240 2000-11-17 Tom Tromey <tromey@cygnus.com>
2242 * java/text/CollationKey.java: Implement Comparable.
2243 (compareTo(Object)): New method.
2244 * java/text/Collator.java (compare(Object,Object)): New method.
2245 Implement Comparator.
2247 * java/util/zip/InflaterInputStream.java (available): New method.
2248 (close): New method.
2249 (read, available, skip, fill): Throw exception if stream closed.
2250 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2251 getNextEntry): Throw exception if closed.
2253 2000-11-16 Tom Tromey <tromey@cygnus.com>
2255 * java/io/PushbackReader.java: Merged with Classpath.
2256 * java/util/Arrays.java: Updated from Classpath.
2258 * scripts/blocks.pl: New file.
2259 * java/lang/Character.java (Subset): New class.
2260 (UnicodeBlock): New class.
2262 * java/lang/Math.java (toDegrees, toRadians): New methods.
2264 * java/lang/Float.java: Implement Comparable.
2265 (compareTo): New methods.
2266 * java/lang/Double.java: Implement Comparable.
2267 (compareTo): New methods.
2269 2000-11-16 Warren Levy <warrenl@cygnus.com>
2271 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2273 (listeners): Made transient.
2274 (source): Renamed from 'bean'.
2275 (children): New field for serialization.
2276 (propertyChangeSupportSerializedDataVersion): Ditto.
2277 (serialVersionUID): Ditto.
2278 (writeObject): New serialization method.
2279 (readObject): New serialization method.
2280 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2282 (listeners): Made transient.
2283 (source): Renamed from 'bean'.
2284 (children): New field for serialization.
2285 (vetoableChangeSupportSerializedDataVersion): Ditto.
2286 (serialVersionUID): Ditto.
2287 (writeObject): New serialization method.
2288 (readObject): New serialization method.
2289 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2290 to allow constructor to have a return type (i.e. the class that the
2291 constructor constructs).
2293 2000-11-14 Tom Tromey <tromey@cygnus.com>
2295 * Makefile.in: Rebuilt.
2296 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2299 2000-11-02 Warren Levy <warrenl@cygnus.com>
2301 * java/io/ObjectInputStream.java (readObject): Added code to
2302 conditionally dump out the serialized data.
2303 Handle ENDBLOCKDATA case a bit more gracefully since the current
2304 behavior doesn't seem to work as expected.
2305 (readStreamHeader): Added code for serialized data dumper.
2306 (readNextBlock): Ditto.
2307 (readFields): Ditto.
2308 (dump): New private static field for turning on/off dumper.
2309 (setDump): New native method.
2310 (dumpElement): New native method.
2311 (dumpElementln): New native method.
2312 * java/io/natObjectInputStream.cc (setDump): New method.
2313 (dumpElement): New method.
2314 (dumpElementln): New method.
2316 2000-11-02 Warren Levy <warrenl@cygnus.com>
2318 * java/net/InetAddress.java (addr): Renamed from 'address'.
2319 (address): New field to match Serialized Form doc.
2320 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2321 (family): New serialization field.
2322 (serialVersionUID): New field.
2323 (readObject): New method.
2324 (writeObject): New method.
2325 (getFamily): New native method.
2326 (InetAddress): Set family.
2327 * java/net/natInetAddress.cc (getFamily): New method.
2328 (addr): Renamed from 'address'.
2329 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2330 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2331 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2333 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2335 * java/util/AbstractList.java (SubList): Make it a top-level private
2337 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2339 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2340 * Makefile.in: Rebuilt.
2342 2000-11-02 Tom Tromey <tromey@cygnus.com>
2344 * Makefile.in: Rebuilt.
2345 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2348 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2350 * java/util/AbstractList.java (remove): Comment out modCount increment
2351 to work around compiler bug.
2354 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2356 * java/util/AbstractList.java: Throw messages with
2357 IndexOutOfBoundsExceptions.
2358 (listIterator()): Call listIterator(0).
2359 (size): New field. Initialize to size().
2360 (hasNext): Test position against size, not size().
2361 (remove): Increment knownMod by one instead of resetting it from
2364 (SubList.upMod): Removed.
2365 (SubList.set): Don't call upMod() or update knownMod.
2366 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2367 (SubList.remove): Ditto.
2368 (SubList.addAll): Don't call backingList.size(). Increment size from
2370 (SubList.iterator): New method. Call listIterator(0).
2371 (SubList.listIterator): New method. Restore code to return an anonymous
2372 listIterator implementation (with some changes).
2373 * java/util/AbstractSequentialList.java: Throw messages with
2374 IndexOutOfBoundsExceptions.
2375 (addAll): Add a specnote.
2376 * java/util/ArrayList.java (removeRange): Get the math right.
2377 (addAll): Increment modCount _before_ creating iterator.
2378 * java/util/LinkedList.java: Rewritten, mostly.
2380 2000-11-01 Tom Tromey <tromey@cygnus.com>
2382 * scripts/encodings.pl: Added `ASCII' alias.
2383 * Makefile.in: Rebuilt.
2384 * Makefile.am (convert_source_files): Added new files.
2385 * gnu/gcj/convert/Input_ASCII.java: New file.
2386 * gnu/gcj/convert/Output_ASCII.java: New file.
2387 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2388 out-of-range characters.
2389 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2390 (read): Swap bytes if required. Treat `count' as character count,
2392 (write): Likewise. Also, handle case where iconv fails on a given
2394 (init): Put encoding into exception.
2395 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2396 (static): Call iconv_init. Rebuilt alias list.
2397 (iconv_init): New private method.
2399 2000-11-01 Tom Tromey <tromey@cygnus.com>
2401 * Makefile.in: Rebuilt.
2402 * Makefile.am (install-exec-hook): Only make a single symlink, and
2403 remove the destination before making the link.
2404 * configure: Rebuilt.
2405 * configure.in: Call AC_PROG_LN_S.
2407 2000-10-31 Warren Levy <warrenl@cygnus.com>
2409 * jni.cc: Added include of java/lang/ThreadGroup.h.
2410 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2411 per change of 2000-10-05.
2413 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2415 * java/util/BitSet.java: Updated @specnote.
2417 * java/io/Reader.java: Merge docs from classpath.
2418 (skip): Synchronize on `lock'.
2419 * java/io/FileReader.java: Import correct implementation from
2421 * java/io/StringReader.java: Merge docs from classpath.
2422 (ready): Throw IOException if stream is closed.
2424 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2426 * java/util/AbstractCollection.java (addAll): Use size() instead of
2427 hasNext() in iterator loop.
2429 (contains): Ditto. Simplify loop.
2430 (containsAll): Ditto.
2435 (toString): Ditto. Use string concatenation operators, not
2437 * java/util/AbstractList.java (addAll): Use size() instead of
2438 hasNext() in iterator loop.
2441 (indexOf): Ditto. Don't take null check outside of the loop.
2442 (iterator): Return an AbstractListItr instead of anonymous class.
2443 (lastIndexOf): Use a for loop bounded by size() instead of
2444 hasPrevious() in iterator loop.
2445 (listIterator): Return an AbstractListItr.
2446 (removeRange): Remove bounds checking code and docs.
2447 (AbstractListItr): New inner class. Code moved here from
2449 (SubList.iterator): Removed. Use default implementation from
2450 AbstractList instead.
2451 (SubList.listIterator): As above.
2452 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2453 instead of hasNext() in iterator loop.
2454 (containsValue): Ditto.
2460 (toString): Ditto. Use string concatenation operators, not
2462 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2463 bounded by size() instead of hasNext() in iterator loop.
2464 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2465 part of normal execution flow. Do an explicit null check instead.
2466 * java/util/ArrayList.java (_iSize): Rename to `size'.
2467 (_arData): Rename to `data'.
2468 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2471 (removeRange): Make protected. Don't check bounds.
2472 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2474 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2476 (addAll (int, Collection)): Check lower bounds. Simplify exception
2478 (clone): Clone the data array too.
2479 (indexOf): Inline doesEqual().
2480 (lastIndexOf): Ditto.
2481 (clear): Don't set array data to null.
2482 (set): Check lower bounds. Simplify exception string.
2483 (toArray): Correct comment.
2484 (trimToSize): Don't update modCount, this is not a structural change.
2487 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2489 (toString): Declare `bit' as long, not int.
2490 (data): Made package-private, not private.
2492 2000-10-27 Warren Levy <warrenl@cygnus.com>
2494 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2495 array elements to true.
2497 2000-10-27 Warren Levy <warrenl@cygnus.com>
2499 * Makefile.am: Added locale files from Classpath.
2500 * Makefile.in: Rebuilt.
2501 * gnu/java/locale/Calendar.java: New file.
2502 * gnu/java/locale/Calendar_de.java: New file.
2503 * gnu/java/locale/Calendar_en.java: New file.
2504 * gnu/java/locale/Calendar_nl.java: New file.
2505 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2506 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2507 serialization compatibility.
2508 (scale): Made private.
2509 (serialVersionUID): New field.
2510 * java/math/BigInteger.java (ival): Made transient.
2511 (words): Made transient.
2512 (bitCount): New serialization field.
2514 (firstNonzeroByteNum): Ditto.
2515 (lowestSetBit): Ditto.
2518 (serialVersionUID): New field.
2519 (readObject): New method.
2520 (writeObject): New method.
2521 * java/util/BitSet.java (serialVersionUID): New field.
2522 * java/util/Calendar.java: Replaced with Classpath file.
2523 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2524 of getDefault() for TimeZone or Locale instead of passing nulls.
2525 * java/util/Locale.java (serialVersionUID): New field.
2526 (writeObject): New method.
2527 (readObject): New method.
2528 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2530 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2532 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2533 (core_java_source_files): Put java.lang, java.io, and java.util here.
2534 (ordinary_java_source_files): Order so that core_java_source_files are
2536 (java_source_files): Reorder so that special_java_source_files are
2538 * configure.in: Don't pass -I flag to gcj.
2539 * Makefile.in: Rebuilt.
2540 * configure: Rebuilt.
2542 2000-10-25 Tom Tromey <tromey@cygnus.com>
2544 * Makefile.in: Rebuilt.
2545 * Makefile.am (install-exec-hook): New target.
2547 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2549 * java/util/EventObject.java: Merged from classpath.
2551 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2554 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2556 * java/util/AbstractSet.java (equals): Re-installed original code.
2558 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2560 * Makefile.am: Added rules for libgcjx library.
2561 * Makefile.in: Rebuilt.
2562 * configure.in: Added check for X.
2563 * configure: Rebuilt.
2564 * gnu/awt/LightweightRedirector.java: New file.
2565 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2566 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2567 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2568 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2569 * gnu/awt/j2d/MappedRaster.java: New file.
2570 * gnu/awt/xlib/XCanvasPeer.java: New file.
2571 * gnu/awt/xlib/XEventLoop.java: New file.
2572 * gnu/awt/xlib/XEventQueue.java: New file.
2573 * gnu/awt/xlib/XFontMetrics.java: New file.
2574 * gnu/awt/xlib/XFramePeer.java: New file.
2575 * gnu/awt/xlib/XGraphics.java: New file.
2576 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2577 * gnu/awt/xlib/XPanelPeer.java: New file.
2578 * gnu/awt/xlib/XToolkit.java: New file.
2579 * gnu/gcj/xlib/Clip.java: New file.
2580 * gnu/gcj/xlib/Colormap.java: New file.
2581 * gnu/gcj/xlib/Display.java: New file.
2582 * gnu/gcj/xlib/Drawable.java: New file.
2583 * gnu/gcj/xlib/Font.java: New file.
2584 * gnu/gcj/xlib/GC.java: New file.
2585 * gnu/gcj/xlib/Pixmap.java: New file.
2586 * gnu/gcj/xlib/Screen.java: New file.
2587 * gnu/gcj/xlib/Visual.java: New file.
2588 * gnu/gcj/xlib/WMSizeHints.java: New file.
2589 * gnu/gcj/xlib/Window.java: New file.
2590 * gnu/gcj/xlib/WindowAttributes.java: New file.
2591 * gnu/gcj/xlib/XAnyEvent.java: New file.
2592 * gnu/gcj/xlib/XButtonEvent.java: New file.
2593 * gnu/gcj/xlib/XColor.java: New file.
2594 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2595 * gnu/gcj/xlib/XConnectException.java: New file.
2596 * gnu/gcj/xlib/XEvent.java: New file.
2597 * gnu/gcj/xlib/XException.java: New file.
2598 * gnu/gcj/xlib/XExposeEvent.java: New file.
2599 * gnu/gcj/xlib/XID.java: New file.
2600 * gnu/gcj/xlib/XImage.java: New file.
2601 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2602 * gnu/gcj/xlib/natClip.cc: New file.
2603 * gnu/gcj/xlib/natColormap.cc: New file.
2604 * gnu/gcj/xlib/natDisplay.cc: New file.
2605 * gnu/gcj/xlib/natDrawable.cc: New file.
2606 * gnu/gcj/xlib/natFont.cc: New file.
2607 * gnu/gcj/xlib/natGC.cc: New file.
2608 * gnu/gcj/xlib/natPixmap.cc: New file.
2609 * gnu/gcj/xlib/natScreen.cc: New file.
2610 * gnu/gcj/xlib/natVisual.cc: New file.
2611 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2612 * gnu/gcj/xlib/natWindow.cc: New file.
2613 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2614 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2615 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2616 * gnu/gcj/xlib/natXColor.cc: New file.
2617 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2618 * gnu/gcj/xlib/natXException.cc: New file.
2619 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2620 * gnu/gcj/xlib/natXImage.cc: New file.
2621 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2622 * java/awt/EventDispatchThread.java: Start thead on creation.
2624 2000-10-20 Tom Tromey <tromey@cygnus.com>
2626 From Arno J. Klaassen:
2627 * interpret.cc: Include <stdlib.h> for alloca.
2628 * defineclass.cc: Include <stdlib.h> for alloca.
2630 * Makefile.in: Rebuilt.
2631 * Makefile.am: Include deps.mk.
2632 (GCJCOMPILE): Added -MD, -MT, and -MF.
2633 ($(javao_files)): Don't depend on libgcj.zip.
2634 (all-recursive): New target.
2635 (%.lo:%.cc): Do dependency tracking.
2636 ($(nat_headers)): Don't depend on libgcj.zip.
2637 * configure: Rebuilt.
2638 * configure.in: Make .d files and deps.mk.
2640 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2642 * exception.cc: Don't #include "exception".
2643 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2645 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2646 * Makefile.in: Updated.
2648 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2650 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2651 * java/awt/peer/ComponentPeer.java (disable): Removed.
2654 (minimumSize): Removed.
2655 (preferredSize): Removed.
2658 * java/awt/peer/ListPeer.java (addItem): Removed.
2660 (minimumSize): Removed.
2661 (preferredSize): Removed.
2662 (setMultipleSelections): Removed.
2663 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2664 (remove): Renamed from removeMenu.
2665 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2667 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2668 (remove): Renamed from removeItem.
2669 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2670 (getMinimumSize): Removed.
2671 (getPreferredSize): Removed.
2672 (minimumSize): Removed.
2673 (preferredSize): Removed.
2674 (replaceText): Removed.
2675 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2676 (preferredSize): Removed.
2677 (getMinimumSize): Removed.
2678 (getPreferredSize): Removed.
2679 (setEchoCharacter): Removed.
2681 2000-10-10 Warren Levy <warrenl@cygnus.com>
2683 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2684 * java/sql/Date.java (serialVersionUID): New field.
2685 * java/sql/Time.java (serialVersionUID): New field.
2686 * java/sql/Timestamp.java (serialVersionUID): New field.
2687 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2688 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2689 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2690 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2691 (readObject): New serialization method.
2692 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2693 (serialVersionOnStream): New field.
2694 (readObject): New serialization method.
2695 (getMonetaryDecimalSeparator): New method.
2696 (setMonetaryDecimalSeparator): New method.
2697 * java/text/NumberFormat.java (maxFractionDigits): New field.
2698 (maxIntegerDigits): New field.
2699 (minFractionDigits): New field.
2700 (minIntegerDigits): New field.
2701 (serialVersionOnStream): New field.
2702 (serialVersionUID): New field.
2703 (readObject): New serialization method.
2704 (writeObject): New serialization method.
2705 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2706 (serialVersionOnStream): New field.
2707 (serialVersionUID): New field.
2708 (readObject): New serialization method.
2710 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2712 * configure.in (GCJ): Avoid bogus error message when looking for
2713 (and not finding) gcj in the build tree.
2714 * configure: Rebuilt.
2716 2000-10-09 Tom Tromey <tromey@cygnus.com>
2718 * configure: Rebuilt.
2719 * configure.in: Include sys/types.h when checking for socklen_t.
2720 From Arno J. Klaassen.
2722 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2724 * include/jvm.h: Enable __builtin_expect().
2726 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2727 the main program. Fix for PR libgcj/341.
2729 2000-10-07 Tom Tromey <tromey@cygnus.com>
2731 * java/util/Properties.java: Merged with Classpath version.
2733 2000-10-05 Tom Tromey <tromey@cygnus.com>
2735 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2736 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2737 * java/lang/Class.h (Object): Added `class$' field.
2738 * java/lang/Object.h (Object): Added `class$' field.
2739 * defineclass.cc (ClassClass): Use `class$' form.
2740 (ClassObject): Likewise.
2741 * resolve.cc (ClassObject): Use `class$' form.
2742 (ObjectClass): Likewise.
2743 * interpret.cc (ClassError): Removed.
2744 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2746 (IntegerClass): Likewise.
2747 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2749 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2750 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2751 SerializableClass): Likewise.
2752 Include Serializable.h, Cloneable.h.
2753 * java/lang/natSystem.cc (SystemClass): Removed.
2754 (init_properties): Use `class$' form.
2755 * java/lang/natObject.cc (CloneableClass): Removed.
2756 (clone): Use `class$' form.
2757 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2758 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2759 ConstructorClass): Likewise.
2760 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2761 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2762 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2763 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2765 (ClassClass): Likewise.
2766 * include/jvm.h (StringClass): Use `class$' form.
2767 * prims.cc (ObjectClass): Removed.
2768 (_Jv_RunMain): Use `class$' form.
2769 (_Jv_AllocObject): Likewise.
2770 * jni.cc (ClassClass): Use `class$' form.
2771 (ThrowableClass): Likewise.
2772 (ObjectClass): Likewise.
2773 (MethodClass): Likewise.
2774 (ThreadGroupClass): Likewise.
2775 (NativeThreadClass): Likewise.
2776 * boehm.cc (ObjectClass): Removed.
2777 (ClassClass): Removed.
2778 (_Jv_MarkObj): Use `class$' form.
2779 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2782 2000-10-05 Warren Levy <warrenl@cygnus.com>
2784 * Makefile.am: Removed java/io/Replaceable.java and
2785 java/io/Resolvable.java.
2786 * Makefile.in: Rebuilt.
2787 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2789 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2791 (processResolution): Handle readResolve method via reflection with
2792 removal of Resolvable interface.
2793 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2794 method via reflection with removal of Replaceable interface.
2795 * java/io/Replaceable.java: Removed.
2796 * java/io/Resolvable.java: Removed.
2797 * java/security/Key.java (serialVersionUID): New field.
2798 * java/security/Provider.java (serialVersionUID): New field.
2799 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2801 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2803 * java/sql/DataTruncation.java (serialVersionUID): New field.
2804 * java/sql/SQLException.java (serialVersionUID): New field.
2805 * java/sql/SQLWarning.java (serialVersionUID): New field.
2806 * java/util/Date.java (serialVersionUID): New field.
2807 (millis): Made transient.
2808 (readObject): New method.
2809 (writeObject): New method.
2811 2000-10-05 Tom Tromey <tromey@cygnus.com>
2813 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2815 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2817 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2818 (JvRunMain): Set _Jv_argv and _Jv_argc.
2819 * java/awt/Component.java: Minor fixes.
2820 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2821 * java/awt/Toolkit.java (systemEventQueue): Removed.
2822 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2823 * java/awt/Window.java (getToolkit): Don't call super.
2824 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2825 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2826 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2827 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2828 * gnu/awt/gtk/GtkFramePeer.java: New file.
2829 * gnu/awt/gtk/GtkMainThread.java: New file.
2830 * gnu/awt/gtk/GtkToolkit.java: New file.
2831 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2832 * gnu/awt/gtk/gtkcommon.cc: New file.
2833 * gnu/awt/gtk/gtkcommon.h: New file.
2834 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2835 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2836 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2837 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2838 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2839 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2841 2000-09-30 Tom Tromey <tromey@cygnus.com>
2843 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2844 interrupted before modifying the cv's wait set.
2847 2000-09-30 Hans Boehm <boehm@acm.org>
2848 Bryce McKinlay <bryce@albatross.co.nz>
2850 Implement bitmap descriptor based marking for Boehm GC.
2852 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2853 * configure: Rebuilt.
2854 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2855 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2856 method get_finalizer().
2857 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2858 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2859 (_Jv_AllocObj): Add new jclass parameter.
2860 (_Jv_AllocArray): Ditto.
2861 (_Jv_BuildGCDescr): New prototype.
2862 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2863 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2864 get_finalizer() instead of direct finalizer vtable offset.
2865 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2866 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2867 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2868 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2869 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2870 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2871 (_Jv_DetermineVTableIndex): Ditto.
2872 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2873 calculations to account for new gc_descr field.
2874 * boehm.cc: #include gc_gcj.h.
2875 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2876 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2877 New commentary from HB. Mark the classes vtable.
2878 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2879 (GC_DEFAULT_DESCR): New #define.
2880 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2881 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2882 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2883 scan conservativly if size is less than min_heap_addr. Set vtable
2884 pointer of new object before returning.
2885 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2886 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2887 allocation for obj_kind_x.
2888 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2889 (_Jv_AllocObj): Set vtable on returned object.
2890 (_Jv_AllocArray): Ditto.
2891 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2892 (_Jv_NewPrimArray): Ditto.
2893 (_Jv_AllocObj): Declare as a friend.
2894 (_Jv_AllocArray): Ditto.
2895 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2896 from &ObjectClass into new array class. Remove offset-by-one
2897 adjustments from `method' size calculations to account for gc_descr
2900 2000-09-26 Tom Tromey <tromey@cygnus.com>
2902 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2903 `remove', not `add'.
2905 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2907 * java/lang/natSystem.cc (file_encoding): Added return statement.
2909 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2911 * Makefile.am: Re-work shell commands that exceeded command-line
2913 * Makefile.in: Rebuilt.
2915 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2917 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2918 * java/lang/natDouble.cc: Likewise.
2919 * java/lang/reflect/natMethod.cc: Likewise.
2920 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2922 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2924 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2926 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2927 * acinclude.m4: Arrange for automake to not bring in a new
2928 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2929 * Makefile.am: Leave it up to automake to subst GCJ.
2930 * aclocal.m4, configure, Makefile.in: Rebuilt.
2932 2000-09-13 Tom Tromey <tromey@cygnus.com>
2934 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2935 (get): Ensure Boolean class is initialized.
2936 * java/lang/reflect/natField.cc (BooleanClass): New define.
2937 (get): Ensure Boolean class is initialized.
2939 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2941 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2942 Initialize with anonymous class.
2943 (compareToIgnoreCase): New method.
2945 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2946 (uncaughtException): Set had_uncaught_exception.
2947 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2948 exit with error status if set.
2949 (_Jv_RunMain): Ditto.
2951 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2953 * configure: Rebuilt with new ../libtool.m4.
2955 2000-09-11 Tom Tromey <tromey@cygnus.com>
2957 * java/lang/reflect/Field.java (toString): Don't rely on
2960 2000-09-08 Tom Tromey <tromey@cygnus.com>
2962 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2963 default decoder use iconv.
2964 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2965 Let default encoder use iconv.
2966 * configure: Rebuilt.
2967 * configure.in: Check for nl_langinfo and <langinfo.h>.
2968 * java/lang/natSystem.cc (file_encoding): New function.
2969 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2971 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2973 * acinclude.m4: Simplify the tests for CC and CXX.
2974 * aclocal.m4, configure: Rebuilt.
2976 * acinclude.m4: Include libtool macros from the source tree.
2977 * aclocal.m4, configure: Rebuilt.
2979 2000-09-08 Warren Levy <warrenl@cygnus.com>
2981 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2982 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2983 * java/io/File.java (writeObject): Added.
2984 (readObject): Added.
2985 (serialVersionUID): Added.
2986 * java/io/ObjectOutputStream.java (writeObject): Initialized
2987 fieldsAlreadyWritten before recursion rather than after.
2988 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2989 * java/io/OptionalDataException.java (serialVersionUID): Added.
2990 (OptionalDataException): Made package private.
2991 * java/io/SyncFailedException.java (SyncFailedException): Removed
2992 default constructor to match spec.
2993 * java/lang/Boolean.java (serialVersionUID): Added.
2994 * java/lang/Byte.java (serialVersionUID): Added.
2995 * java/lang/Character.java (serialVersionUID): Added.
2996 * java/lang/Double.java (serialVersionUID): Added.
2997 * java/lang/Float.java (serialVersionUID): Added.
2998 * java/lang/Integer.java (serialVersionUID): Added.
2999 * java/lang/Long.java (serialVersionUID): Added.
3000 * java/lang/Number.java (serialVersionUID): Added.
3001 * java/lang/Short.java (serialVersionUID): Added.
3002 * java/lang/String.java (serialVersionUID): Added.
3003 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3005 * java/lang/reflect/InvocationTargetException.java
3006 (serialVersionUID): Added.
3007 * java/net/URL.java (handler): Made transient.
3008 (hashCode): Added field for serialization, per spec. and use
3009 cached value if available.
3010 (serialVersionUID): Added.
3011 (URL): Initialize hashCode.
3012 (set): Adjust hashCode.
3013 (readObject): New Method to initialize the protocol handler when
3015 (writeObject): New method.
3016 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3017 * java/text/Collator.java: Removed 'implements Serializable'.
3018 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3019 * java/util/Properties.java (serialVersionUID): Added.
3020 * java/util/Random.java (serialVersionUID): Added.
3021 (seed): Made private.
3022 (nextNextGaussian): Made private.
3023 (haveNextNextGaussian): Made private.
3024 * java/util/Stack.java (serialVersionUID): Added.
3025 * java/util/TimeZone.java (serialVersionUID): Added.
3026 * java/util/Vector.java (serialVersionUID): Added.
3028 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3030 * Makefile.am (Thread.h): Don't be friends with native threads
3032 * Makefile.in: Rebuilt.
3033 * java/lang/Thread.java (interrupt_flag): Make package-private.
3035 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3037 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3038 to avoid long long division.
3040 2000-09-06 Tom Tromey <tromey@cygnus.com>
3042 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3044 * java/lang/reflect/Method.java (toString): Use `getName' for
3047 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3048 `args' if method takes no parameters.
3050 Fix for PR java.lang/339:
3051 * java/lang/natPosixProcess.cc (fail): New function.
3052 (cleanup): New function.
3053 (startProcess): Use them. Create pipe so child can communicate
3054 exec failure back to parent.
3056 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3058 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3060 (send): Undo last patch. Remove the label only.
3062 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3064 * java/net/natInetAdress.cc: Ditto.
3066 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3068 2000-09-05 Tom Tromey <tromey@cygnus.com>
3070 * doc/cni.sgml: Updated from master copy.
3072 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3074 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3076 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3078 * java/lang/fdlibm.h: #undef __P if previously defined.
3079 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3080 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3084 2000-09-04 Tom Tromey <tromey@cygnus.com>
3086 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3089 2000-09-04 Anthony Green <green@redhat.com>
3091 Fix for PR java.io/203:
3092 * java/io/File.java (createTempFile): Obey directory argument.
3093 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3094 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3095 variable to set java.io.tmpdir on non-WIN32 systems.
3097 2000-09-04 Anthony Green <green@redhat.com>
3099 * java/io/File.java (deleteOnExit): New method.
3100 * gnu/gcj/runtime/FileDeleter.java: New class.
3101 * java/lang/natRuntime.cc (exit): Call
3102 FileDeleter.deleteOnExitNow()
3103 * Makefile.am: Add FileDeleter.java.
3104 * Makefile.in: Rebuilt.
3106 2000-09-02 Tom Tromey <tromey@cygnus.com>
3108 * Makefile.in: Rebuilt.
3109 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3110 environment variable.
3112 2000-09-01 Andrew Haley <aph@redhat.com>
3114 * java/io/StreamTokenizer.java: Don't throw a
3115 NumberFormatException if a field is numeric as far as the
3116 StreamTokenizer is concerned but not as far as Double.valueOf() is
3117 concerned: return a zero instead.
3119 2000-08-30 Tom Tromey <tromey@cygnus.com>
3121 * Makefile.in: Rebuilt.
3122 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3124 2000-08-28 Tom Tromey <tromey@cygnus.com>
3126 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3127 gnu/gcj/awt/ComponentDataBlitOp.java,
3128 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3129 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3130 java/awt/color/ICC_ColorSpace.java,
3131 java/awt/color/ICC_Profile.java,
3132 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3133 java/awt/image/ComponentColorModel.java,
3134 java/awt/image/ComponentSampleModel.java,
3135 java/awt/image/DataBuffer.java,
3136 java/awt/image/DataBufferByte.java,
3137 java/awt/image/DataBufferInt.java,
3138 java/awt/image/DataBufferUShort.java,
3139 java/awt/image/DirectColorModel.java,
3140 java/awt/image/IndexColorModel.java,
3141 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3142 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3143 java/awt/image/SinglePixelPackedSampleModel.java,
3144 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3145 Removed Latin-1 copyright symbols.
3146 * java/util/zip/ZipFile.java: Indentation fixes.
3148 2000-08-27 Mark Wielaard <mark@klomp.org>
3150 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3151 constructor, close can delete the file, finalize calls close.
3152 * java/util/jar/JarFile.java: Constructor that takes mode now
3155 2000-08-27 Anthony Green <green@redhat.com>
3157 * java/util/ArrayList.java, java/util/Timer.java,
3158 java/util/LinkedList.java, java/util/TimerTask.java,
3159 java/util/HashMap.java, java/util/AbstractMap.java,
3160 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3161 java/util/SortedSet.java: Imported from GNU Classpath.
3162 * Makefile.in: Rebuilt.
3163 * Makefile.am: Added new files.
3165 2000-08-26 Anthony Green <green@redhat.com>
3167 * Makefile.in: Rebuilt.
3168 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3171 * prims.cc: Include ClassLoader.h.
3172 (_Jv_RunMain): When executing jar files, classpath must be the jar
3173 file only. Lose our reference to the system ClassLoader in order
3174 to get a new one with the correct classpath.
3175 * java/lang/natSystem.cc (init_properties): When executing a jar
3176 file, only use the jar file for java.class.path.
3178 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3179 for bytecode archives.
3181 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3182 exists, but not Main-Class.
3184 2000-08-23 Mark Wielaard <mark@klomp.org>
3186 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3187 return -1 when fill() has no more data for the Inflater.
3189 2000-08-23 Mark Wielaard <mark@klomp.org>
3191 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3192 write(String) already does.
3194 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3196 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3197 to `alive_flag', call `init'.
3198 (init): New native method.
3199 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3202 2000-08-21 Mark Wielaard <mark@klomp.org>
3204 * Makefile.in: Rebuilt.
3205 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3207 (java/lang/reflect/Field.h): Likewise.
3208 (java/lang/reflect/Method.h): Likewise.
3209 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3212 2000-08-21 Tom Tromey <tromey@cygnus.com>
3214 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3217 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3219 * java/lang/natSystem.cc (init_properties): Change sourceware
3220 reference to sources.redhat.com.
3222 * include/java-props.h: Add _Jv_Jar_Class_Path.
3223 * prims.cc: Ditto. Set it from `gij -jar file' option.
3225 * java/lang/natSystem.cc (init_properties): Set java.class.path
3227 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3229 * java/util/PropertyPermission.java: Import from GNU Classpath.
3230 * Makefile.in: Rebuilt.
3231 * Makefile.am: Add java/util/PropertyPermission.java.
3232 * java/lang/System.java: Add setProperty method.
3234 * gij.cc (main): Add -jar option to execute jar files.
3235 (help): Describe -jar option.
3236 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3237 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3238 * gnu/gcj/runtime/FirstThread.java (main): New method.
3240 * java/util/jar/Attributes.java: Correct comment spelling.
3242 2000-08-20 Mark Wielaard <mark@klomp.org>
3244 * java/util/zip/Adler32.java: Make private variables really private
3245 * java/util/zip/CRC32.java: Make private variables really private
3246 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3248 * java/util/zip/InflaterInputStream.java: skip() could skip to
3250 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3251 * java/util/zip/ZipFile.java: size() new 1.2 method
3252 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3253 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3256 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3258 * java/util/jar/JarFile.java: Don't call
3259 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3262 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3264 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3265 Read the entire contents of the class file, not just what is
3268 * java/net/JarURLConnection.java: getEntry doesn't take any
3269 arguments. Return null if element is null.
3271 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3272 size from the archive, not the inflated size.
3274 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3275 java.util.zip.ZipFile.getEntry.
3277 * gij.cc (help): Change sourceware reference to
3280 2000-08-19 Tom Tromey <tromey@cygnus.com>
3282 * java/util/zip/ZipInputStream.java (createZipEntry):
3285 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3287 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3288 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3289 java/util/jar/JarInputStream.java,
3290 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3291 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3292 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3293 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3294 java/security/cert/Certificate.java,
3295 java/security/cert/CertificateEncodingException.java,
3296 java/security/cert/CertificateException.java,
3297 java/security/cert/CertificateExpiredException.java,
3298 java/security/cert/CertificateFactory.java,
3299 java/security/cert/CertificateFactorySpi.java,
3300 java/security/cert/CertificateNotYetValidException.java,
3301 java/security/cert/CertificateParsingException.java,
3302 java/security/cert/X509CRL.java,
3303 java/security/cert/X509CRLEntry.java,
3304 java/security/cert/X509Certificate.java,
3305 java/security/cert/X509Extension.java: Imported from Classpath.
3306 * java/util/Hashtable.java: Imported from Classpath.
3308 * java/util/zip/ZipInputStream.java: Create stub for
3311 * gcj/javaprims.h: Updated class list.
3313 * Makefile.in, gcj/Makefile.in: Rebuilt.
3314 * Makefile.am (ordinary_java_source_files): Add these new classes.
3316 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3318 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3319 * gnu/gcj/awt/GLightweightPeer.java: New file.
3320 * java/awt/BorderLayout.java: Implemented all methods.
3321 * java/awt/Button.java (actionListener, actionCommand): Renamed
3322 and modifier change.
3323 (addNotify): Call super.
3324 (dispatchEventImpl): New method.
3325 (getListeners): New method.
3326 (label): Made package-private, not private.
3327 * java/awt/Canvas.java: Implemented class body.
3328 * java/awt/Color.java (brighter): New method.
3329 (darker): New method.
3330 (hashCode): New method.
3331 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3332 (getGraphicsConfiguration): Delegate to
3333 getGraphicsConfigurationImpl().
3334 (getGraphicsConfigurationImpl): New method.
3335 (getToolkit): Only return value from peer if not null.
3336 (isDisplayable): Check with parent.
3337 (isShowing): No parent implies not showing.
3338 (getForeground): Check parent property if local is null.
3339 (getBackground): Likewise.
3340 (getFont): Likewise.
3341 (setForeground): Inform peer.
3342 (setBackground): Likewise
3343 (setLocale): Invalidate component.
3344 (getColorModel): Implemented.
3345 (setLocation): Invalidate, or ignore if no change.
3346 (setSize): Invalidate, or ignore if no change.
3347 (setBounds): Invalidate, or ignore if no change.
3348 (isOpaque): By default, heavyweight implies opaque.
3349 (isLightweight): Implemented.
3350 (getMaximumSize): Implemented.
3351 (doLayout): Implemented, NOP.
3352 (validate): Implemented, NOP.
3353 (invalidate): Only propagate to parent if parent was valid.
3354 (getGraphics): Implemented.
3355 (getFontMetrics): Implemented.
3356 (update): Implemented.
3357 (paintAll): Implemented.
3358 (repaint): Implemented all repaint methods.
3359 (print): Implemented.
3360 (printAll): Implemented.
3361 (createImage): Implemented.
3362 (dispatchEvent): Give the peer a chance to handle the event.
3363 (dispatchEventImpl): Dispatch paint events.
3364 (enableEvents): Lightweights enable events on parent component.
3365 (coalesceEvents): Coalesce paint events, and select event type
3367 (coalescePaintEvents): New method.
3368 (processEvent): Fix unfortunate ordering of statements, and call
3369 correct method for MOUSE_CLICKED.
3370 (processPaintEvent): New method.
3371 (addNotify): Allow container to notify children before event
3372 mask is set in peer.
3373 (addNotifyContainerChildren): New method.
3374 (removeNotify): Visibility should not change on removeNotify.
3375 (paramString): Implemented.
3376 (list): Implemented two of the list methods.
3377 * Container (myInsets): Removed, insets are managed by peer.
3378 (getInsets): Query peer.
3379 (addImpl): Fix reparenting, enable events for lightweights,
3380 initialize component array.
3381 (validate): Call doLayout in validateTree() instead.
3382 (validateTree): Do nothing if already valid. Call beginValidate(),
3383 endValidate() on peer. Call validateTree() instead of validate()
3384 for children that are containers. Mark valid after validation of
3386 (setFont): Partial implementation.
3387 (paint): Implemented.
3388 (visitChildren): New method.
3389 (visitChild): New method.
3390 (update): Implemented.
3391 (print): Implemented.
3392 (paintComponents): Implemented.
3393 (printComponents): Consider translation and clipping.
3394 (getComponentAt): Ignore invisible children. Return this if no
3396 (addNotify): Call super.
3397 (addNotifyContainerChildren): New method.
3398 (paramString): Implemented.
3399 (list): Implemented.
3400 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3402 (invokeLater): Likewise.
3403 (isDispatchThread): Likewise.
3404 * java/awt/FontMetrics (getLeading): Formula change.
3405 (getDescent): Consider leading also.
3406 (getMaxAscent): Default to getAscent().
3407 (getMaxDescent): Default to getDescent.
3408 (getMaxAdvance): Return value signifying unknown.
3409 (charWidth): Both methods implemented.
3410 (charsWidth): Implemented.
3411 (bytesWidth): Implemented.
3412 (getWidths): Implemented.
3413 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3415 (Frame): Rearragend constuctor chaining to disallow null being
3416 passed as a graphics configuration.
3417 (getTitle): Return empty string if null.
3419 (getIconImage): New method.
3420 (setIconImage): New method.
3421 (finalize): New method.
3422 (setMenuBar): Notify peer.
3423 (isResizable): New method.
3424 (setResizable): New method.
3425 (getState): New method.
3427 (remove): Implemented.
3428 (removeNotify): New method.
3429 (getFrames): New method.
3430 * java/awt/Graphics.java: Implemented body of class.
3431 * java/awt/Graphics2D.java: New file.
3432 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3433 * java/awt/Image.java: Implemented body of class.
3434 * java/awt/Panel.java (Panel): Call correct super constructor.
3435 (addNotify): Implemented.
3436 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3437 * java/awt/RenderingHints.java: New file.
3438 * java/awt/Toolkit.java (createComponent): Implemented.
3439 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3440 * java/awt/Window.java (Window): Two new constructors. Reordered
3441 constructor chaining.
3442 (getGraphicsConfigurationImpl): New method.
3443 (finalize): Call super.
3444 (addNotify): Call super.
3445 (pack): Do layout stuff.
3446 (show): Ensure that peer exists and that component is valid.
3447 (dispose): Dispose owned children.
3448 (getOwner): Simplify code, casting null pointers is valid.
3449 (getGraphicsConfiguration): Ask peer if local value is null.
3450 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3452 * java/awt/image/BufferedImage.java: New file.
3453 * java/awt/image/RasterOp.java: New file.
3454 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3455 More powerfull replacement for getColorModel().
3456 (getColorModel) Removed.
3457 (setEventMask) New method.
3458 * Makefile.am: Added new files.
3459 * Makefile.in: Rebuilt.
3461 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3463 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3464 (finit_leg_name): New global.
3465 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3466 `$finit$'. This is a backward compatibility hack.
3467 (java::lang::Class::_getMethods): Likewise.
3469 2000-08-15 Andrew Haley <aph@cygnus.com>
3471 * include/jvm.h (_Jv_HashCode): New hash code.
3473 2000-08-15 Tom Tromey <tromey@cygnus.com>
3475 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3477 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3479 * THANKS: More thanks.
3481 2000-08-10 Tom Tromey <tromey@cygnus.com>
3483 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3485 (connect): Likewise.
3487 (getOption): Likewise.
3488 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3489 case when errno not set.
3492 (receive): Likewise.
3493 (mcastGrp): Likewise.
3494 (setOption): Likewise.
3495 (getOption): Likewise.
3497 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3498 John Stracke <francis@ecal.com>
3500 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3501 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3503 (disconnect): Don't unset connected flag.
3504 (getHeaderField (String)): Call connect() if not connected.
3505 (getHeaderField (int)): Ditto.
3506 (getHeaderFieldKey): Ditto.
3507 (getHttpHeaders): Don't call connect().
3508 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3509 gotResponseVals): New fields.
3510 (getResponseCode): Call getResponseVals() conditionally.
3511 (getResponseMessage): Ditto.
3512 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3514 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3516 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3517 * Makefile.in: Rebuilt.
3518 * java/awt/Color.java (getTransparency): New method.
3519 * java/awt/Component.java: Various updates.
3520 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3521 after dealing with children.
3522 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3523 * java/awt/Window.java: Various new methods and updates.
3524 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3526 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3527 * java/awt/event/WindowEvent.java (paramString): Ditto.
3528 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3530 * java/awt/geom/Point2D.java (clone): Ditto.
3531 * java/awt/geom/RectangularShape.java (clone): Ditto.
3532 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3533 isAlphaPremultiplied): Make package-private, not private.
3535 2000-08-08 Tom Tromey <tromey@cygnus.com>
3537 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3538 surrogate characters.
3539 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3541 (write): Correct handling of surrogate characters.
3543 2000-08-07 Tom Tromey <tromey@cygnus.com>
3545 * java/lang/reflect/Method.java (hashCode): Use getName().
3546 (toString): Likewise.
3547 * java/lang/reflect/natMethod.cc (getType): Initialize
3550 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3552 * java/lang/reflect/Field.java (toString): Correct formatting.
3555 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3557 (receive): Streamlined.
3559 2000-08-05 Tom Tromey <tromey@cygnus.com>
3561 * java/io/PrintWriter.java: Merged comments from Classpath.
3562 (printlnUnsynchronized): Removed.
3563 (println()): Print the separator.
3564 (println): Call println(), not printlnUnsynchronized.
3565 (out): Now protected, to match spec.
3567 2000-08-04 Tom Tromey <tromey@cygnus.com>
3569 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3570 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3573 2000-08-03 Warren Levy <warrenl@cygnus.com>
3575 * java/io/ObjectInputStream.java (readFields): Turn off
3576 readDataFromBlock while reading via GetField.
3577 (GetField$1.get(String, Object)): Pass Class of default value to
3579 (getField): Allow for null default values.
3581 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3582 (PutField$1.put): Fixed calls of checkType in most of the put
3583 methods to pass the correct parameter.
3584 (PutField$1.put(String, Object)): Allow for null value arg.
3585 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3588 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3589 typo in spec'ed field name.
3590 (getSerialPersistentFields): Changed spelling of method to match
3591 the correct spelling of the spec'ed field name.
3593 2000-08-03 Tom Tromey <tromey@cygnus.com>
3595 * Makefile.in: Rebuilt.
3596 * Makefile.am (awt_java_source_files): Added new files.
3598 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3600 * Makefile.am: Add new AWT stubs.
3601 * java/awt/Canvas.java: New placeholder class.
3602 * java/awt/Checkbox.java: Ditto.
3603 * java/awt/CheckboxMenuItem.java: Ditto.
3604 * java/awt/Choice.java: Ditto.
3605 * java/awt/Dialog.java: Ditto.
3606 * java/awt/FileDialog.java: Ditto.
3607 * java/awt/List.java: Ditto.
3608 * java/awt/ScrollPane.java: Ditto.
3609 * java/awt/TextField.java: Ditto.
3610 * java/awt/datatransfer/Clipboard.java: Ditto.
3611 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3612 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3613 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3614 Some commented out. Partially implemented.
3615 * java/awt/natToolkit.cc: Removed file.
3617 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3619 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3620 Fixes "make -j" builds.
3621 * Makefile.in: Rebuild.
3623 2000-08-02 Tom Tromey <tromey@cygnus.com>
3625 * Makefile.in: Rebuilt.
3626 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3627 * java/net/natPlainSocketImpl.cc: Include posix.h.
3628 (accept): Use _Jv_select.
3629 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3630 (receive): Use _Jv_select.
3631 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3632 (available): Use _Jv_select.
3633 * java/lang/natSystem.cc: Include posix.h.
3634 (currentTimeMillis): Use _Jv_gettimeofday.
3635 * include/posix.h: New file.
3636 * posix.cc: New file.
3638 * scripts/encodings.pl: New file.
3639 * Makefile.in: Rebuilt.
3640 * Makefile.am (convert_source_files): Added IOConverter.java.
3641 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3643 (getDefaultDecodingClass): Canonicalize default encoding name.
3644 (getEncoder): Likewise.
3645 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3647 (getDefaultDecodingClass): Canonicalize default encoding name.
3648 (getDecoder): Likewise.
3649 * gnu/gcj/convert/IOConverter.java: New file.
3651 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3653 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3654 to match C declaration in ffi.h.
3655 * Makefile.am: Add java/awt/Button.java.
3656 * Makefile.in: Rebuilt.
3658 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3660 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3661 cast of the second argument to `ffi_raw_call' changed to match
3664 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3666 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3667 argument to `ffi_raw_call' changed to match prototype.
3669 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3671 * java/awt/Component.java (toString): Implemented.
3672 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3673 dispatchEvent() to dispatch the event.
3674 (removeImpl): Ditto.
3676 2000-07-30 Anthony Green <green@redhat.com>
3678 * java/awt/Component.java: Add treeLock object.
3679 (getTreeLock): Implement.
3680 (isShowing): Implement.
3682 2000-07-30 Tom Tromey <tromey@cygnus.com>
3684 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3686 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3688 * java/awt/Window.java (addNotify): Wrote.
3689 (addWindowListener): Wrote.
3691 (getWarningString): Wrote.
3692 (processEvent): Wrote.
3693 (processWindowEvent): Wrote.
3694 (removeWindowListener): Wrote.
3695 (show): Call validate(), setVisible().
3699 * java/awt/Toolkit.java (createWindow): Declare.
3701 * java/awt/Frame.java (addNotify): Use getToolkit to find
3704 * java/awt/Component.java (invalidate): Wrote.
3706 (getToolkit): Wrote.
3708 * java/awt/Container.java (addContainerListener): Removed
3710 (removeContainerListener): Likewise.
3712 (add(Component)): Use it.
3713 (add(String,Component)): Likewise.
3714 (add(Component,int)): Likewise.
3715 (add(Component,Object)): Likewise.
3716 (add(Component,Object,int)): Likewise.
3718 (getAlignmentX): Wrote.
3719 (getAlignmentY): Wrote.
3720 (getComponentAt): Wrote.
3721 (getMaximumSize): Wrote.
3722 (invalidate): Wrote.
3723 (list(PrintStream,int)): Wrote.
3724 (list(PrintWriter,int)): Wrote.
3725 (getMinimumSize): Wrote.
3726 (getPreferredSize): Wrote.
3727 (printComponents): Wrote.
3728 (processContainerEvent): Look at containerListener, not
3730 (remove): Added event processing and peer destruction.
3731 (removeAll): Use remove.
3732 (removeNotify): Wrote.
3734 (validateTree): Wrote.
3736 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3737 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3738 * java/awt/Container.java (addNotify): Don't create Container
3740 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3742 2000-07-30 Tom Tromey <tromey@cygnus.com>
3744 * java/awt/Container.java (remove(int)): Wrote.
3745 (remove(Component)): Wrote.
3746 (add(Component)): Wrote.
3747 (add(Component,int)): Wrote.
3749 (addNotify): Set our own peer.
3750 * java/awt/Scrollbar.java (listeners): Changed type.
3751 (Scrollbar): Don't initialize listeners.
3753 (setValue): Call setValues.
3754 (setMinimum): Likewise.
3755 (setMaxPriority): Likewise.
3756 (setVisibleAmount): Likewise.
3758 (setUnitIncrement): Forward to peer.
3759 (setLineIncrement): Call setUnitIncrement.
3760 (setPageIncrement): Call setBlockIncrement.
3761 (setBlockIncrement): Forward to peer.
3762 (addAdjustmentListener): Rewrote.
3763 (removeAdjustmentListener): Rewrote.
3764 (processAdjustmentEvent): Rewrote.
3765 (paramString): Wrote.
3766 * Makefile.in: Rebuilt.
3767 * Makefile.am (awt_java_source_files): Added Button.java.
3768 * java/awt/Button.java: New file.
3769 * java/awt/Toolkit.java (createLabel): Declare.
3770 (createButton): Likewise.
3771 (createScrollbar): Likewise.
3772 (createContainer): Likewise.
3773 * java/awt/Label.java (addNotify): Wrote.
3774 (setAlignment): Call setAlignment in the peer.
3775 (setText): Call setText in the peer.
3777 2000-07-28 Warren Levy <warrenl@cygnus.com>
3779 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3780 NotSerializableException with just the class name.
3782 2000-07-26 Andrew Haley <aph@cygnus.com>
3784 * interpret.cc (continue1): Insert missing break into switch.
3786 2000-07-28 Warren Levy <warrenl@cygnus.com>
3788 * java/io/ObjectStreamException.java: Made constructors protected.
3790 2000-07-27 Tom Tromey <tromey@cygnus.com>
3792 * java/io/OutputStreamWriter.java (close): Only flush if not
3795 2000-07-27 Warren Levy <warrenl@cygnus.com>
3797 * mauve-libgcj: Activated serialization tests.
3798 * gcj/field.h (getModifiers): Mask off unknown flags.
3799 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3800 spurious bits don't cause discrepancies.
3801 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3802 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3803 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3804 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3805 * java/lang/Throwable.java (serialVersionUID): New field.
3806 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3807 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3809 * java/lang/reflect/natMethod.cc: Ditto.
3810 * java/security/Key.java (serialVersionUID): Removed field for now.
3811 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3812 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3814 2000-07-22 Tom Tromey <tromey@cygnus.com>
3816 * java/awt/geom/RectangularShape.java (getPathIterator):
3819 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3821 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3822 stub libjava/java/awt/ColorModel.java which was located in the
3824 * libjava/java/awt/image/ComponentColorModel.java: New file.
3825 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3826 * libjava/java/awt/image/DataBuffer.java: New file.
3827 * libjava/java/awt/image/DataBufferByte.java: New file.
3828 * libjava/java/awt/image/DataBufferInt.java: New file.
3829 * libjava/java/awt/image/DataBufferUShort.java: New file.
3830 * libjava/java/awt/image/DirectColorModel.java: New file.
3831 * libjava/java/awt/image/PackedColorModel.java: New file.
3832 * libjava/java/awt/image/Raster.java: New file.
3833 * libjava/java/awt/image/SampleModel.java: New file.
3834 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3836 * libjava/java/awt/image/IndexColorModel.java: New file.
3837 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3838 java.awt.ColorModel stub.
3840 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3841 * gnu/gcj/util/Buffers.java: New file, utility class.
3843 * libjava/Makefile.am: Updated to include new files.
3844 * libjava/Makefile.in: Rebuilt.
3846 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3848 * java/io/StreamTokenizer.java: Merged with classpath.
3850 2000-07-20 Tom Tromey <tromey@cygnus.com>
3852 * Makefile.in: Rebuilt.
3853 * Makefile.am (awt_java_source_files): Updated for new files.
3854 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3855 * java/awt/Label.java: New file.
3856 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3857 (createIntersection, createUnion, getBounds2D): New methods.
3858 * java/awt/Scrollbar.java: New file.
3859 * java/awt/Shape.java: Updated to 1.2.
3860 * java/awt/geom/AffineTransform.java: New file.
3861 * java/awt/geom/Ellipse2D.java: New file.
3862 * java/awt/geom/NoninvertibleTransformException.java: New file.
3863 * java/awt/geom/PathIterator.java: New file.
3864 * java/awt/geom/Rectangle2D.java: New file.
3865 * java/awt/geom/RectangularShape.java: New file.
3866 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3867 * java/awt/geom/IllegalPathStateException.java: New file.
3869 * scripts/showval.java: New file.
3871 * scripts/classes.pl (scan): Print inner classes properly.
3872 * gcj/javaprims.h: Updated class list.
3874 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3875 initialize String fields for interpreted classes. Fixes bug
3876 reported by Hans Boehm.
3878 * java/io/File.java (getParentFile): New method, from Classpath
3879 via Oskar Liljeblad.
3881 * java/util/Vector.java (remove(Object)): Implemented.
3883 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3885 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3886 zero return from backtrace().
3888 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3890 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3892 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3893 before calling notifyAll().
3895 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3897 Add missing files from last check-in:
3898 * java/awt/image/ImageConsumer.java: New file.
3899 * java/awt/image/ImageProducer.java: New file.
3900 * java/awt/image/ImageObserver.java: New file.
3902 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3904 Merged implementation of java.applet from classpath:
3905 * java/applet/Applet.java: New file.
3906 * java/applet/AppletContext.java: New file.
3907 * java/applet/AppletStub.java: New file.
3908 * java/applet/AudioClip.java: New file.
3910 * Makefile.am: Added new java.applet classes.
3911 * Makefile.in: Rebuilt.
3913 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3916 * java/util/ResourceBundle.java (getLocale): stub.
3917 * Makefile.am: Added new AWT classes.
3918 * Makefile.in: Rebuilt.
3919 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3920 constructors. Fix toString() and paramString().
3921 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3922 * java/awt/CheckboxGroup.java: New class.
3923 * java/awt/ColorModel.java: New class.
3924 * java/awt/Component.java: Added stubs for most methods. Implemented
3926 * java/awt/Container.java: ditto.
3927 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3928 * java/awt/Cursor.java: ditto.
3929 * java/awt/Event.java: Fix paramString().
3930 * java/awt/EventQueue.java: New class. Implemented.
3931 * java/awt/Font.java: Added additional stub methods. Implemented
3933 * java/awt/FontMetrics.java: New class. Stubbed.
3934 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3936 * java/awt/Insets.java: New class. Implemented.
3937 * java/awt/Menu.java: Add new methods. Partially implemented.
3938 * java/awt/MenuItem.java: Add new methods and fields. Partially
3940 * java/awt/MenuShortcut.java: New class. Implemented.
3941 * java/awt/Panel.java: New class. Placeholder.
3942 * java/awt/PopupMenu.java: New class. Stubbed.
3943 * java/awt/Rectangle.java: New class. Implemented.
3944 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3945 * java/awt/event/ActionEvent.java: Implement paramString().
3946 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3947 * java/awt/event/ComponentEvent.java: Implement paramString().
3948 * java/awt/event/ContainerEvent.java: Implement paramString().
3949 * java/awt/event/FocusEvent.java: Implement paramString().
3950 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3951 * java/awt/event/HierarchyBoundsListener.java: New class.
3952 * java/awt/event/HierarchyEvent.java: New class.
3953 * java/awt/event/HierarchyListener.java: New class.
3954 * java/awt/event/InputMethodEvent.java: Implement paramString().
3955 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3956 exception if !catchExceptions.
3957 * java/awt/event/ItemEvent.java: Implement paramString().
3958 * java/awt/event/KeyEvent.java: Implement paramString().
3959 * java/awt/event/MouseEvent.java: Implement paramString().
3960 * java/awt/event/PaintEvent.java: Implement paramString().
3961 * java/awt/event/TextEvent.java: Implement paramString().
3962 * java/awt/event/WindowEvent.java: Implement paramString().
3964 AWT Peer interfaces:
3965 * java/awt/peer/ButtonPeer.java: New file.
3966 * java/awt/peer/ListPeer.java: New file.
3967 * java/awt/peer/CanvasPeer.java: New file.
3968 * java/awt/peer/MenuBarPeer.java: New file.
3969 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3970 * java/awt/peer/MenuComponentPeer.java: New file.
3971 * java/awt/peer/CheckboxPeer.java: New file.
3972 * java/awt/peer/MenuItemPeer.java: New file.
3973 * java/awt/peer/ChoicePeer.java: New file.
3974 * java/awt/peer/MenuPeer.java: New file.
3975 * java/awt/peer/ComponentPeer.java: Implemented.
3976 * java/awt/peer/PanelPeer.java: New file.
3977 * java/awt/peer/ContainerPeer.java: Implemented.
3978 * java/awt/peer/PopupMenuPeer.java: New file.
3979 * java/awt/peer/DialogPeer.java: New file.
3980 * java/awt/peer/ScrollPanePeer.java: New file.
3981 * java/awt/peer/FileDialogPeer.java: New file.
3982 * java/awt/peer/ScrollbarPeer.java: New file.
3983 * java/awt/peer/FontPeer.java: New file.
3984 * java/awt/peer/TextAreaPeer.java: New file.
3985 * java/awt/peer/FramePeer.java: Implemented.
3986 * java/awt/peer/TextComponentPeer.java: New file.
3987 * java/awt/peer/LabelPeer.java: New file.
3988 * java/awt/peer/TextFieldPeer.java: New file.
3989 * java/awt/peer/LightweightPeer.java: New file.
3990 * java/awt/peer/WindowPeer.java: Implemented.
3992 2000-07-06 Tom Tromey <tromey@cygnus.com>
3994 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3995 Initialize static final String fields.
3997 2000-07-03 Tom Tromey <tromey@cygnus.com>
3999 * java/io/PrintWriter.java (print): Call write(String), not
4000 print(String). See PR libgcj/277.
4001 (print(String)): Use write, not out.write.
4003 2000-06-30 Tom Tromey <tromey@cygnus.com>
4005 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4007 2000-06-27 Andrew Haley <aph@cygnus.com>
4009 * java/io/File.java (createTempFile): Close the FileDescriptor
4010 used to create a temp file. Fixes some of PR 203.
4011 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4012 collection if we run out of file handles.
4014 2000-06-28 Warren Levy <warrenl@cygnus.com>
4016 * gnu/java/security/provider/Gnu.java: New file.
4017 * gnu/java/security/provider/SHA.java: New file.
4018 * gnu/java/security/provider/SHA1PRNG.java: New file.
4019 * Makefile.am: Added the above files.
4020 * Makefile.in: Rebuilt.
4022 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4024 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4026 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4027 (destroyed_flag): Removed.
4028 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4029 (activeCount): Added spec note.
4031 2000-06-27 Warren Levy <warrenl@cygnus.com>
4033 * java/security/Principal.java: New file.
4034 * Makefile.am: Added Principal.java.
4035 * Makefile.in: Rebuilt.
4037 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4039 * java/awt/event/MouseEvent.java: Fixed coordinate space
4042 2000-06-27 Tom Tromey <tromey@cygnus.com>
4044 * java/io/PushbackInputStream.java (read): If there are characters
4045 in the buffer, don't also call super.read().
4046 * java/io/PushbackReader.java (read): If there are characters in
4047 the buffer, don't also call super.read().
4049 * java/lang/Double.java (valueOf): Call parseDouble().
4051 2000-06-26 Warren Levy <warrenl@cygnus.com>
4053 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4054 (newVal): Renamed to newValue.
4055 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4056 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4057 (revokeNow): Renamed to invalidateRefs.
4058 * java/io/OptionalDataException.java: Updated FIXME.
4059 (eof): New placeholder field.
4061 * java/io/WriteAbortedException.java (message): Made transient.
4062 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4063 * java/lang/Throwable.java (stackTrace): Made transient.
4064 * java/net/InetAddress.java: Made Serializable.
4065 * java/security/KeyPair.java: Made Serializable.
4066 * java/security/Provider.java: Replaced with Classpath version that
4067 implements serialization and proper methods.
4068 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4069 (limits): Renamed to choiceLimits.
4071 2000-06-24 Tom Tromey <tromey@cygnus.com>
4073 * java/lang/natDouble.cc (parseDouble): Renamed from
4075 * java/lang/Double.java (parseDouble): Renamed from
4076 doubleValueOf. Now public.
4078 2000-06-23 Andrew Haley <aph@cygnus.com>
4080 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4081 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4083 2000-06-23 Tom Tromey <tromey@cygnus.com>
4085 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4086 * java/lang/natDouble.cc: Always include <alloca.h>.
4087 Fix for PR libgcj/267.
4089 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4091 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4092 comply with classpath VM spec.
4093 (add(Group)): Rename to addGroup().
4094 * java/lang/Thread.java (Thread): Use addThread().
4095 * java/lang/natThread.cc (finish_): Use removeThread().
4097 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4099 * java/lang/ThreadGroup.java: Merged with classpath.
4100 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4101 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4103 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4104 ThreadGroup.root if Thread.currentThread is null. Honour the
4105 ThreadGroup's max priority setting.
4107 2000-06-18 Tom Tromey <tromey@cygnus.com>
4109 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4110 returned class. For PR gcj/260.
4112 2000-06-16 Tom Tromey <tromey@cygnus.com>
4114 Fix for PR libgcj/261:
4115 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4117 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4118 argument. (This is a patch from long ago that somehow went
4121 2000-06-15 Tom Tromey <tromey@cygnus.com>
4123 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4127 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4129 Fix for PR java.lang/258:
4130 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4131 JV_STATE_DONE, to prevent accidental initialization.
4132 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4133 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4134 interface or an abstract class. Remove redundant initializeClass calls.
4135 Remove duplicate if_idt test.
4136 (_Jv_InterfaceAssignableFrom): New function.
4137 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4139 2000-05-31 Tom Tromey <tromey@cygnus.com>
4141 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4142 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4143 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4144 (NUM_OBJECT_METHODS): New define.
4145 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4146 `array_vtable' parameter. Added assertion.
4147 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4150 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4152 * gcj/cni.h: Include <string.h>.
4153 * defineclass.cc: Include <alloca.h>.
4154 * interpret.cc: Ditto.
4155 * gij.cc: Include <stdlib.h>.
4157 2000-05-30 Tom Tromey <tromey@cygnus.com>
4159 * include/name-finder.h: Include <sys/wait.h>.
4160 (_Jv_name_finder::pid): Now of type `pid_t'.
4161 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4162 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4165 2000-05-24 Warren Levy <warrenl@cygnus.com>
4167 * java/io/ObjectOutputStream.java (writeObject): Use component type
4168 when writing arrays.
4171 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4173 Fix for PR libgcj/226:
4174 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4175 since this is an installed header.
4177 Fix for PR libgcj/228:
4178 * java/util/zip/ZipFile (getInputStream): Create inflater with
4181 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4182 with DataFormatException.
4184 2000-05-20 Tom Tromey <tromey@cygnus.com>
4186 * Makefile.in: Rebuilt.
4187 * Makefile.am (hack1): Removed.
4188 (awto_files): Likewise.
4189 (libgcjawt_la_SOURCES): Likewise.
4190 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4191 (libgcjawt_la_DEPENDENCIES): Likewise.
4192 (libgcjawt_la_LIBADD): Likewise.
4193 (libgcjawt_la_LDFLAGS): Likewise.
4194 (libgcjawt_la_LINK): Likewise.
4195 ($(awt_java_source_files:.java=.class)): Likewise.
4196 (libgcj.zip): Don't depend on AWT files.
4197 (MOSTLYCLEANFILES): Don't include AWT files.
4198 ($(awto_files)): Removed.
4199 (nat_headers): Removed AWT files.
4200 (cond_awt_java_source_files): Removed.
4201 (ordinary_java_source_files): Added awt_java_source_files.
4202 * libgcj.spec.in (*lib): Removed -lgcjawt.
4203 * configure: Rebuilt.
4204 * configure.in: Removed --enable-java-awt option.
4206 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4208 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4209 (ZipEntry): Copy the `name' field.
4210 (clone): Implement JDK1.2 method.
4211 (setCompressedSize): ditto.
4214 2000-05-19 Tom Tromey <tromey@cygnus.com>
4216 * java/io/BufferedWriter.java: Merged with Classpath.
4217 * java/io/BufferedOutputStream.java: Merged with Classpath.
4219 2000-05-16 Andrew Haley <aph@cygnus.com>
4221 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4222 build_ia64_frame_state.
4223 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4226 2000-05-15 Warren Levy <warrenl@cygnus.com>
4228 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4229 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4230 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4231 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4232 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4233 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4234 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4235 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4236 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4237 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4238 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4239 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4240 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4241 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4242 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4243 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4244 * gnu/gcj/io/NullOutputStream.java: Removed.
4245 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4246 * gnu/gcj/lang/ArrayHelper.java: Removed.
4247 * gnu/gcj/lang/ClassHelper.java: Removed.
4248 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4250 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4251 * gnu/java/beans/EmptyBeanInfo.java: New file.
4252 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4253 * gnu/java/beans/IntrospectionIncubator.java: New file.
4254 * gnu/java/beans/editors/ColorEditor.java: New file.
4255 * gnu/java/beans/editors/FontEditor.java: New file.
4256 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4257 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4258 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4259 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4260 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4261 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4262 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4263 * gnu/java/beans/editors/StringEditor.java: New file.
4264 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4265 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4266 * gnu/java/io/NullOutputStream.java: New file.
4267 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4268 * gnu/java/lang/ArrayHelper.java: New file.
4269 * gnu/java/lang/ClassHelper.java: New file.
4270 * gnu/java/lang/reflect/TypeSignature.java: New file.
4272 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4273 namespace back to the original Classpath gnu/java namespace.
4274 * Makefile.in: Rebuilt.
4276 * java/beans/Beans.java: Namespace change.
4277 * java/beans/EventSetDescriptor.java: Namespace change.
4278 * java/beans/Introspector.java: Namespace change.
4279 * java/beans/PropertyEditorManager.java: Namespace change.
4280 * java/io/ObjectInputStream.java: Namespace change.
4281 * java/io/ObjectOutputStream.java: Namespace change.
4282 * java/io/ObjectStreamClass.java: Namespace change.
4283 * java/io/ObjectStreamField.java: Namespace change.
4285 2000-04-21 Warren Levy <warrenl@cygnus.com>
4287 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4288 now that compiler patch is available.
4289 Removed unneeded System.loadLibrary.
4290 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4291 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4293 2000-04-19 Andrew Haley <aph@cygnus.com>
4295 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4296 and target classes have been initialized.
4298 2000-04-19 Andrew Haley <aph@cygnus.com>
4300 * java/lang/String.java: implement Serializable, Comparable.
4301 (compareTo (Object)): New method.
4303 2000-04-19 Warren Levy <warrenl@cygnus.com>
4305 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4306 instead of getField to retrieve non-public field.
4307 (getSerialPersistantFields): Ditto.
4309 2000-04-18 Warren Levy <warrenl@cygnus.com>
4311 * mauve-libgcj: Turned off object serialization tests temporarily
4312 due to compiler error.
4314 2000-04-17 Warren Levy <warrenl@cygnus.com>
4316 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4317 to avoid build problem.
4319 * mauve-libgcj: Turned on object serialization tests.
4321 2000-04-17 Tom Tromey <tromey@cygnus.com>
4323 * libgcj.spec.in (*lib): Added -lgcjawt.
4325 2000-04-17 Andrew Haley <aph@cygnus.com>
4327 * Makefile.am: Add new files:
4328 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4330 * Makefile.in: Rebuilt.
4332 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4333 interface that has no implementations.
4334 Check for an attempt to assign an abstract class to an interface.
4336 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4337 if we fail to find MessageDigest.getInstance ("SHA").
4339 * gnu/gcj/io/SimpleSHSStream.java: New file.
4340 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4341 * gnu/gcj/io/shs.cc: New file.
4342 * gnu/gcj/io/shs.h: new file.
4344 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4347 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4348 punctuation from the classname of an array element.
4350 * gcj/javaprims.h: Add SimpleDigestStream.
4352 2000-04-17 Andrew Haley <aph@cygnus.com>
4354 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4355 to getPrivateField for superclasses.
4357 2000-04-14 Andrew Haley <aph@cygnus.com>
4359 * Makefile.am: Add new files:
4360 java/io/ObjectOutputStream$PutField.h,
4361 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4362 java/io/natObjectOutputStream.cc
4363 * Makefile.in: Rebuilt.
4364 * gcj/Makefile.in: Rebuilt.
4365 * include/Makefile.in: Rebuilt.
4366 * java/lang/Class.h (getPrivateField): New method.
4367 (getPrivateMethod): Ditto.
4368 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4369 and java::io::ObjectStreamClass our friends.
4370 * java/lang/natClass.cc (getPrivateField): New method.
4371 (getPrivateMethod): Ditto.
4372 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4373 * gcj/javaprims.h: Add serialization classes.
4374 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4375 (setByteField): Ditto.
4376 (setCharField): Ditto.
4377 (setDoubleField): Ditto.
4378 (setFloatField): Ditto.
4379 (setIntField): Ditto.
4380 (setLongField): Ditto.
4381 (setShortField): Ditto.
4382 (setObjectField): Ditto.
4383 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4385 (getByteField): Ditto.
4386 (getCharField): Ditto.
4387 (getDoubleField): Ditto.
4388 (getFloatField): Ditto.
4389 (getIntField): Ditto.
4390 (getLongField): Ditto.
4391 (getShortField): Ditto.
4392 (getObjectField): Ditto.
4393 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4395 (getSerialPersistantFields): Ditto.
4396 (getDefinedSUID): Ditto.
4397 * java/io/natObjectOutputStream.cc: New file.
4398 * java/io/natObjectInputStream.cc: New file.
4400 2000-04-13 Warren Levy <warrenl@cygnus.com>
4402 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4403 problems. Revert to previous version to reproduce and when fixed.
4405 2000-04-13 Warren Levy <warrenl@cygnus.com>
4407 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4408 * gnu/gcj/io/NullOutputStream.java: New file.
4409 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4410 * java/io/BlockDataException.java: New file.
4411 * java/io/Externalizable.java: New file.
4412 * java/io/InvalidClassException.java: New file.
4413 * java/io/InvalidObjectException.java: New file.
4414 * java/io/NotActiveException.java: New file.
4415 * java/io/NotSerializableException.java: New file.
4416 * java/io/ObjectInput.java: New file.
4417 * java/io/ObjectInputStream.java: New file.
4418 * java/io/ObjectInputValidation.java: New file.
4419 * java/io/ObjectOutput.java: New file.
4420 * java/io/ObjectOutputStream.java: New file.
4421 * java/io/ObjectStreamClass.java: New file.
4422 * java/io/ObjectStreamConstants.java: New file.
4423 * java/io/ObjectStreamField.java: New file.
4424 * java/io/Replaceable.java: New file.
4425 * java/io/Resolvable.java: New file.
4426 * java/io/SerializablePermission.java: New file.
4427 * java/io/WriteAbortedException.java: New file.
4428 * java/security/BasicPermission.java: New file.
4429 * java/security/DigestOutputStream.java: New file.
4430 * java/security/Guard.java: New file.
4431 * java/security/Permission.java: New file.
4432 * java/security/PermissionCollection.java: New file.
4433 * Makefile.am: Added above files.
4434 * Makefile.in: Rebuilt.
4436 * java/beans/Beans.java (instantiate): Activated serialization code.
4437 * java/lang/SecurityManager.java (checkPermission): New method.
4439 2000-04-12 Warren Levy <warrenl@cygnus.com>
4441 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4442 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4443 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4444 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4445 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4446 * gnu/gcj/beans/editors/FontEditor.java: New file.
4447 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4448 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4449 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4450 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4451 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4452 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4453 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4454 * gnu/gcj/beans/editors/StringEditor.java: New file.
4455 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4456 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4457 * gnu/gcj/lang/ArrayHelper.java: New file.
4458 * gnu/gcj/lang/ClassHelper.java: New file.
4459 * java/beans/BeanDescriptor.java: New file.
4460 * java/beans/BeanInfo.java: New file.
4461 * java/beans/Beans.java: New file.
4462 * java/beans/Customizer.java: New file.
4463 * java/beans/DesignMode.java: New file.
4464 * java/beans/EventSetDescriptor.java: New file.
4465 * java/beans/FeatureDescriptor.java: New file.
4466 * java/beans/IndexedPropertyDescriptor.java: New file.
4467 * java/beans/IntrospectionException.java: New file.
4468 * java/beans/Introspector.java: New file.
4469 * java/beans/MethodDescriptor.java: New file.
4470 * java/beans/ParameterDescriptor.java: New file.
4471 * java/beans/PropertyChangeEvent.java: New file.
4472 * java/beans/PropertyChangeListener.java: New file.
4473 * java/beans/PropertyChangeSupport.java: New file.
4474 * java/beans/PropertyDescriptor.java: New file.
4475 * java/beans/PropertyEditor.java: New file.
4476 * java/beans/PropertyEditorManager.java: New file.
4477 * java/beans/PropertyEditorSupport.java: New file.
4478 * java/beans/PropertyVetoException.java: New file.
4479 * java/beans/SimpleBeanInfo.java: New file.
4480 * java/beans/VetoableChangeListener.java: New file.
4481 * java/beans/VetoableChangeSupport.java: New file.
4482 * java/beans/Visibility.java: New file.
4483 * java/beans/beancontext/BeanContext.java: New file.
4484 * java/beans/beancontext/BeanContextChild.java: New file.
4485 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4486 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4487 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4488 * java/beans/beancontext/BeanContextEvent.java: New file.
4489 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4490 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4491 * java/beans/beancontext/BeanContextProxy.java: New file.
4492 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4494 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4495 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4497 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4498 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4500 * java/beans/beancontext/BeanContextServices.java: New file.
4501 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4502 * java/util/AbstractCollection.java: New file.
4503 * java/util/AbstractList.java: New file.
4504 * java/util/Arrays.java: New file.
4505 * Makefile.am: Added above files.
4506 * Makefile.in: Rebuilt.
4508 2000-04-11 Warren Levy <warrenl@cygnus.com>
4510 * java/awt/AWTError.java: New file.
4511 * java/awt/AWTEvent.java: New file.
4512 * java/awt/AWTException.java: New file.
4513 * java/awt/ActiveEvent.java: New file.
4514 * java/awt/Adjustable.java: New file.
4515 * java/awt/BorderLayout.java: New file.
4516 * java/awt/Color.java: New file.
4517 * java/awt/Component.java: New file.
4518 * java/awt/Container.java: New file.
4519 * java/awt/Dimension.java: New file.
4520 * java/awt/Event.java: New file.
4521 * java/awt/Font.java: New file.
4522 * java/awt/Frame.java: New file.
4523 * java/awt/Graphics.java: New file.
4524 * java/awt/IllegalComponentStateException.java: New file.
4525 * java/awt/Image.java: New file.
4526 * java/awt/ItemSelectable.java: New file.
4527 * java/awt/LayoutManager.java: New file.
4528 * java/awt/LayoutManager2.java: New file.
4529 * java/awt/Menu.java: New file.
4530 * java/awt/MenuBar.java: New file.
4531 * java/awt/MenuComponent.java: New file.
4532 * java/awt/MenuContainer.java: New file.
4533 * java/awt/MenuItem.java: New file.
4534 * java/awt/Paint.java: New file.
4535 * java/awt/PaintContext.java: New file.
4536 * java/awt/Point.java: New file.
4537 * java/awt/Rectangle.java: New file.
4538 * java/awt/Shape.java: New file.
4539 * java/awt/TextArea.java: New file.
4540 * java/awt/TextComponent.java: New file.
4541 * java/awt/Toolkit.java: New file.
4542 * java/awt/Transparency.java: New file.
4543 * java/awt/Window.java: New file.
4544 * java/awt/natToolkit.cc: New file.
4545 * java/awt/event/AWTEventListener.java: New file.
4546 * java/awt/event/ActionEvent.java: New file.
4547 * java/awt/event/ActionListener.java: New file.
4548 * java/awt/event/AdjustmentEvent.java: New file.
4549 * java/awt/event/AdjustmentListener.java: New file.
4550 * java/awt/event/ComponentAdapter.java: New file.
4551 * java/awt/event/ComponentEvent.java: New file.
4552 * java/awt/event/ComponentListener.java: New file.
4553 * java/awt/event/ContainerAdapter.java: New file.
4554 * java/awt/event/ContainerEvent.java: New file.
4555 * java/awt/event/ContainerListener.java: New file.
4556 * java/awt/event/FocusAdapter.java: New file.
4557 * java/awt/event/FocusEvent.java: New file.
4558 * java/awt/event/FocusListener.java: New file.
4559 * java/awt/event/InputEvent.java: New file.
4560 * java/awt/event/InputMethodEvent.java: New file.
4561 * java/awt/event/InputMethodListener.java: New file.
4562 * java/awt/event/InvocationEvent.java: New file.
4563 * java/awt/event/ItemEvent.java: New file.
4564 * java/awt/event/ItemListener.java: New file.
4565 * java/awt/event/KeyAdapter.java: New file.
4566 * java/awt/event/KeyEvent.java: New file.
4567 * java/awt/event/KeyListener.java: New file.
4568 * java/awt/event/MouseAdapter.java: New file.
4569 * java/awt/event/MouseEvent.java: New file.
4570 * java/awt/event/MouseListener.java: New file.
4571 * java/awt/event/MouseMotionAdapter.java: New file.
4572 * java/awt/event/MouseMotionListener.java: New file.
4573 * java/awt/event/PaintEvent.java: New file.
4574 * java/awt/event/TextEvent.java: New file.
4575 * java/awt/event/TextListener.java: New file.
4576 * java/awt/event/WindowAdapter.java: New file.
4577 * java/awt/event/WindowEvent.java: New file.
4578 * java/awt/event/WindowListener.java: New file.
4579 * java/awt/geom/Dimension2D.java: New file.
4580 * java/awt/geom/Point2D.java: New file.
4581 * java/awt/peer/ComponentPeer.java: New file.
4582 * java/awt/peer/ContainerPeer.java: New file.
4583 * java/awt/peer/FramePeer.java: New file.
4584 * java/awt/peer/WindowPeer.java: New file.
4585 * java/util/Collection.java: New file.
4586 * java/util/Comparator.java: New file.
4587 * java/util/Iterator.java: New file.
4588 * java/util/List.java: New file.
4589 * java/util/ListIterator.java: New file.
4590 * Makefile.am: Added above files.
4591 * Makefile.in: Rebuilt.
4593 2000-04-10 Warren Levy <warrenl@cygnus.com>
4595 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4596 * java/lang/FirstThread.java: Ditto.
4597 * java/lang/StringBuffer.java: Ditto.
4598 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4600 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4601 Special case handled in java.math.BigInteger.
4602 * java/math/BigInteger.java (divide): Handle the special case when
4603 dividing by 1 and the high bit of the dividend is set.
4604 (setShiftRight): Handle case when count == 0.
4606 2000-04-05 Andrew Haley <aph@cygnus.com>
4608 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4611 2000-04-05 Andrew Haley <aph@cygnus.com>
4613 * sysdep/ia64.c (rse_address_add): Delete.
4614 (IS_NaT_COLLECTION_ADDR): Delete.
4615 (ia64_backtrace_helper): check for null unwind_info.
4617 * sysdep/ia64-frame.h: add calc_caller_bsp.
4619 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4622 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4623 (_Jv_remI): Likewise.
4624 (_Jv_divJ): Likewise.
4625 (_Jv_remJ): Likewise.
4627 * interpret.cc (continue1): Use divide subroutines to guarantee
4628 correct Java standard behaviour.
4629 Floating-point division should not abort; make it so.
4631 2000-03-29 Tom Tromey <tromey@cygnus.com>
4633 * configure: Rebuilt.
4634 * configure.in: Test against `libgcj_sjlj', not
4635 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4636 to be set even when using sjlj.
4638 2000-03-24 Andrew Haley <aph@cygnus.com>
4640 * Makefile.am: Add file addr2name.awk.
4641 * Makefile.in: Rebuilt.
4642 * addr2name.awk: New file.
4643 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4645 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4648 2000-03-22 Andrew Haley <aph@cygnus.com>
4650 * configure.host: Add -funwind-tables for IA64.
4651 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4652 * Makefile.in: Rebuilt.
4653 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4654 * sysdep/ia64.c: New file.
4655 * sysdep/ia64-frame.h: New file.
4656 * configure.in: Add sysdep/ia64.c for ia64.
4657 * configure: Rebuilt.
4659 2000-03-17 Andrew Haley <aph@cygnus.com>
4661 * java/lang/natString.cc: Remove `register' keyword.
4662 interpret.cc: ditto.
4664 2000-03-16 Andrew Haley <aph@cygnus.com>
4666 * configure.host (ia64): Enable interpreter.
4668 2000-03-14 Hans Boehm <boehm@acm.org>
4670 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4672 2000-03-14 Andrew Haley <aph@cygnus.com>
4674 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4677 2000-03-10 Andrew Haley <aph@cygnus.com>
4679 * java/lang/ieeefp.h: Import latest version from fdlibm.
4681 2000-03-14 Andrew Haley <aph@cygnus.com>
4683 * prims.cc (_Jv_ThrowSignal): New function.
4684 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4686 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4687 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4688 * include/ppc-signal.h: New file.
4690 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4692 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4693 * java/lang/natThread.java (initialize_native): Cast `data' to
4695 * gnu/gcj/RawData.java: Clarify documentation.
4697 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4698 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4699 `jarFile', not `jarFileURL'.
4701 2000-05-15 Andrew Haley <aph@cygnus.com>
4703 * include/ppc-signal.h: New file.
4705 2000-05-11 Tom Tromey <tromey@cygnus.com>
4707 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4708 file headers, don't include `size' in the skip call.
4710 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4712 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4713 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4715 (replace): Reimplemented. Fix javadoc.
4716 (reverse): Call ensureCapacity_unsynchronized().
4717 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4719 (replace): Calculate length for arraycopy() correctly.
4721 2000-05-09 Tom Tromey <tromey@cygnus.com>
4723 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4725 (insert(int,char[],int,int): New method.
4726 (delete): New method from Classpath.
4727 (deleteCharAt): Likewise.
4728 (substring): Likewise.
4729 (shared): No longer private.
4730 Added JavaDoc comments from Classpath.
4731 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4734 2000-05-07 Tom Tromey <tromey@cygnus.com>
4736 * Makefile.in: Rebuilt.
4737 * Makefile.am (LIBLINK): New macro.
4738 (libgcj_la_LINK): Use it.
4739 (libgcjawt_la_LINK): Likewise.
4741 2000-05-06 Tom Tromey <tromey@cygnus.com>
4743 * Makefile.in: Rebuilt.
4744 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4746 2000-05-05 Tom Tromey <tromey@cygnus.com>
4748 Fix for PR libgcj/220:
4749 * Makefile.in: Rebuilt.
4750 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4751 (jv_convert_LDFLAGS): Likewise.
4752 (libgcj_la_LDFLAGS): Likewise.
4753 (GCJLINK): New macro.
4754 (jv_convert_LINK): Use it.
4755 (gij_LINK): Likewise.
4756 (libgcj_la_LINK): New macro.
4757 (libgcjawt_la_LINK): Likewise.
4759 2000-05-04 Tom Tromey <tromey@cygnus.com>
4761 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4763 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4767 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4769 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4770 (_Jv_IsAssignableFrom): Ditto.
4771 (_Jv_IsInstanceOf): Ditto.
4772 (_Jv_CheckCast): Ditto.
4773 (_Jv_CheckArrayStore): Ditto.
4774 * java/lang/Class.h (_Jv_InitClass): Ditto.
4775 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4780 (_Jv_MonitorExit): Ditto.
4781 * boehm.cc (_Jv_MarkObj): Ditto.
4782 (_Jv_MarkObj): Ditto.
4783 (_Jv_MarkArray): Ditto.
4784 * prims.cc (_Jv_AllocObject): Ditto.
4785 (_Jv_NewObjectArray): Ditto.
4786 (_Jv_NewPrimArray): Ditto.
4787 (_Jv_Malloc): Ditto.
4788 (_Jv_Realloc): Ditto.
4789 (_Jv_MallocUnchecked): Ditto.
4795 2000-05-04 Tom Tromey <tromey@cygnus.com>
4797 * java/util/Locale.java (Locale): Don't explicitly check for
4799 * java/util/Hashtable.java (containsKey): Don't explicitly check
4802 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4804 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4806 * java/text/StringCharacterIterator.java
4807 (StringCharacterIterator): Don't check for null.
4808 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4810 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4811 check for null pointer.
4812 (leaveGroup): Likewise.
4813 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4815 (setData): Likewise.
4816 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4819 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4821 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4822 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4823 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4824 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4825 -rpath for in-gcc builds.
4826 * Makefile.in: Rebuilt.
4828 2000-04-28 Tom Tromey <tromey@cygnus.com>
4830 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4833 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4835 * libjava/java/lang/String.java (toString): Remove `final' hack.
4837 2000-04-05 Tom Tromey <tromey@cygnus.com>
4839 Runtime support for PR gcj/2:
4840 * prims.cc (_Jv_ThrowNullPointerException): New function.
4841 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4843 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4845 * prims.cc (_Jv_NewObjectArray): Fix typo.
4847 2000-04-26 Tom Tromey <tromey@cygnus.com>
4849 * Makefile.in: Rebuilt.
4850 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4852 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4854 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4857 2000-04-22 Anthony Green <green@cygnus.com>
4859 * include/jvm.h (__builtin_expect): Define as unused for now.
4860 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4864 (_Jv_MonitorExit): Ditto.
4865 * boehm.cc (_Jv_MarkObj): Ditto.
4866 (_Jv_MarkObj): Ditto.
4867 (_Jv_MarkArray): Ditto.
4868 (_Jv_AllocBytes): Ditto.
4869 * prims.cc (_Jv_AllocObject): Ditto.
4870 (_Jv_NewObjectArray): Ditto.
4871 (_Jv_NewPrimArray): Ditto.
4872 (_Jv_Malloc): Ditto.
4873 (_Jv_Realloc): Ditto.
4874 (_Jv_MallocUnchecked): Ditto.
4880 * include/Makefile.in: Rebuilt.
4881 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4883 2000-04-21 Tom Tromey <tromey@cygnus.com>
4885 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4886 Yet another new version from Classpath.
4888 Fix for PR libgcj/15:
4889 * java/util/natGregorianCalendar.cc (_REENTRANT,
4890 _POSIX_PTHREAD_SEMANTICS): Don't define.
4891 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4892 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4894 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4896 * configure: Rebuilt.
4897 * configure.in: If using POSIX threads, define _REENTRANT if
4898 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4899 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4901 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4902 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4903 version from Classpath.
4905 Fix for PR libgcj/213:
4906 * Makefile.in: Rebuilt.
4907 * Makefile.am (gij_SOURCES): Added gij.cc.
4908 (EXTRA_gij_SOURCES): Removed.
4909 (gij_LDADD): Removed gij.lo.
4910 (gij_DEPENDENCIES): Likewise.
4911 ($(gij_OBJECTS)): Depend on nat_headers.
4913 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4914 `setURL', not `url.set'.
4916 2000-04-20 Tom Tromey <tromey@cygnus.com>
4918 Fix for PR java.io/204:
4919 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4920 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4923 Fix for PR libgcj/212:
4924 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4925 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4926 * java/lang/Class.h (_Jv_word): Declare.
4928 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4930 2000-04-19 Tom Tromey <tromey@cygnus.com>
4932 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4933 doesn't have a loader.
4935 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4937 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4938 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4940 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4942 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4944 (available): Initialize `where' to prevent bogus compiler warning.
4946 2000-04-12 Tom Tromey <tromey@cygnus.com>
4948 * java/lang/natString.cc (intern): Temporarily disable finalizer
4951 * java/lang/natString.cc (unintern): Added `obj' argument.
4952 (intern): Register finalizer for string.
4953 * java/lang/String.java (unintern): Now static; added obj
4956 2000-04-11 Tom Tromey <tromey@cygnus.com>
4958 * java/util/Vector.java (VectorEnumeration): Now `final'.
4959 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4960 (HashtableEnumeration): Likewise.
4961 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4962 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4964 2000-04-10 Warren Levy <warrenl@cygnus.com>
4966 * java/io/ObjectStreamException.java: New file.
4967 * java/io/OptionalDataException.java: New file.
4968 * java/io/StreamCorruptedException.java: New file.
4969 * java/math/BigDecimal.java: New file.
4970 * java/sql/CallableStatement.java: New file.
4971 * java/sql/Connection.java: New file.
4972 * java/sql/DataTruncation.java: New file.
4973 * java/sql/DatabaseMetaData.java: New file.
4974 * java/sql/Date.java: New file.
4975 * java/sql/Driver.java: New file.
4976 * java/sql/DriverManager.java: New file.
4977 * java/sql/DriverPropertyInfo.java: New file.
4978 * java/sql/PreparedStatement.java: New file.
4979 * java/sql/ResultSet.java: New file.
4980 * java/sql/ResultSetMetaData.java: New file.
4981 * java/sql/SQLException.java: New file.
4982 * java/sql/SQLWarning.java: New file.
4983 * java/sql/Statement.java: New file.
4984 * java/sql/Time.java: New file.
4985 * java/sql/Timestamp.java: New file.
4986 * java/sql/Types.java: New file.
4987 * Makefile.am: Added above new files.
4988 * Makefile.in: Rebuilt.
4990 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4991 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4992 DatagramSocket constructor instead of null.
4994 2000-04-08 Anthony Green <green@cygnus.com>
4996 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4999 2000-04-08 Anthony Green <green@cygnus.com>
5001 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5002 (_Jv_MutexUnlock): Ditto.
5003 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5004 (_Jv_MutexUnlock): Ditto.
5006 2000-04-08 Anthony Green <green@cygnus.com>
5008 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5009 (ensureCapacity_unsynchronized): New private method.
5010 (append): Use ensureCapacity_unsynchronized.
5012 2000-04-08 Tom Tromey <tromey@cygnus.com>
5014 * Makefile.in: Rebuilt.
5015 * Makefile.am (awt_java_source_files): Added new files.
5016 * java/awt/IllegalComponentStateException.java: New file.
5017 * java/awt/ItemSelectable.java: New file.
5018 * java/awt/event/WindowEvent.java: Finished.
5019 * java/awt/event/TextEvent.java: Finished.
5020 * java/awt/event/ContainerEvent.java: New file.
5021 * java/awt/Component.java (getX, getY): New methods.
5022 * java/awt/event/PaintEvent.java: New file.
5023 * java/awt/event/MouseEvent.java: New file.
5024 * java/awt/ActiveEvent.java: New file.
5025 * java/awt/event/KeyEvent.java: Finished.
5026 * java/awt/event/ItemEvent.java: New file.
5027 * java/awt/Adjustable.java: New file.
5028 * java/awt/event/InputMethodEvent.java: New file.
5029 * java/awt/event/InputEvent.java: Finished.
5030 * java/awt/event/FocusEvent.java: New file.
5031 * java/awt/event/MouseMotionAdapter.java: New file.
5032 * java/awt/event/MouseAdapter.java: New file.
5033 * java/awt/event/KeyAdapter.java: New file.
5034 * java/awt/event/FocusAdapter.java: New file.
5035 * java/awt/event/ContainerAdapter.java: New file.
5036 * java/awt/event/ComponentEvent.java: Finished.
5037 * java/awt/event/AdjustmentEvent.java: New file.
5038 * java/awt/event/ComponentAdapter.java: New file.
5039 * java/awt/event/ActionEvent.java: Finished.
5040 * java/awt/event/MouseMotionListener.java: New file.
5041 * java/awt/event/MouseListener.java: New file.
5042 * java/awt/event/ItemListener.java: New file.
5043 * java/awt/event/InputMethodListener.java: New file.
5044 * java/awt/event/ContainerListener.java: New file.
5045 * java/awt/event/FocusListener.java: New file.
5046 * java/awt/event/ComponentListener.java: New file.
5047 * java/awt/event/AWTEventListener.java: New file.
5048 * java/awt/event/AdjustmentListener.java: New file.
5050 2000-04-08 Anthony Green <green@cygnus.com>
5052 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5053 check when we have to.
5055 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5058 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5061 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5062 inline hasMoreElements.
5064 2000-04-05 Tom Tromey <tromey@cygnus.com>
5066 * configure: Rebuilt.
5067 * configure.in: Recognize --enable-java-awt.
5068 (AWT): New conditional.
5069 * Makefile.in: Rebuilt.
5070 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5072 (libgcjawt_la_SOURCES): New macro.
5073 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5074 (libgcjawt_la_DEPENDENCIES): Likewise.
5075 (libgcjawt_la_LIBADD): Likewise.
5076 (libgcjawt_la_LDFLAGS): Likewise.
5077 (libgcj.zip): Depend on cond_java_awt_source_files
5078 (cond_awt_java_source_files): New macro.
5079 (MOSTLYCLEANFILES): Added awto_files.
5080 (awto_files): New macro. Use where javao_files used.
5081 (nat_headers): Use cond_awt_java_source_files.
5083 2000-04-04 Tom Tromey <tromey@cygnus.com>
5085 * Makefile.in: Rebuilt.
5086 * Makefile.am (awt_java_source_files): Added AWTException.java.
5087 * java/awt/AWTException.java: New file.
5089 2000-04-03 Tom Tromey <tromey@cygnus.com>
5091 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5092 commentary from Alex.
5094 * Makefile.in: Rebuilt.
5095 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5098 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5100 * configure: Rebuilt.
5101 * configure.in: Add --disable-jvmpi.
5102 * include/config.h.in: Rebuilt.
5103 * acconfig.h: Add ENABLE_JVMPI.
5105 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5106 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5107 (_Jv_JVMPI_Notify_THREAD_END): New define.
5108 (_Jv_JVMPI_Notify_THREAD_END): New define.
5109 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5110 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5111 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5113 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5116 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5117 (finish_): Generate JVMPI thread end events.
5118 (run_): Generate JVMPI thread start events.
5119 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5120 preloaded JNI library.
5121 Include JVMPI headers if necessary.
5122 (run): Generate JVMPI thread start events.
5124 * boehm.cc: Define GC_disable and GC_enable.
5125 (_Jv_DisableGC): New function.
5126 (_Jv_EnableGC): New function.
5127 (disable_gc_mutex): Declare.
5128 * nogc.cc (_Jv_DisableGC): New function.
5129 (_Jv_EnableGC): New function.
5131 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5132 (_Jv_JVMPI_Interface): Define.
5133 (jvmpiEnableEvent): New function.
5134 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5136 * include/jvmpi.h: New file.
5138 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5140 * Makefile.in: New #defines and friends for Thread.h.
5141 * Makefile.am: Ditto.
5142 * posix-threads.cc: (struct starter): Remove `object'.
5143 (_Jv_CondWait): Use interruptable condition variables and new
5144 recursive mutexes. New return codes on interrupt or non-ownership
5146 (_Jv_CondNotify): Ditto.
5147 (_Jv_CondNotifyAll): Ditto.
5148 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5149 the target thread by signaling its wait condition.
5150 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5151 not the starter struct. Initialize wait_mutex and wait_cond.
5152 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5154 (_Jv_MutexUnlock): Ditto.
5155 (really_start): Set info->data->thread from pthread_self() to work
5156 around a race condition. Destroy wait_mutex and wait_cond when run()
5158 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5159 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5161 startable_flag: New private field.
5162 (Thread): Initialize `startable_flag'.
5163 (toString): Check for null thread group.
5164 * java/lang/natThread.cc: (struct natThread): New fields
5165 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5166 (class locker): Removed.
5167 (initialize_native): Initialize `join_cond' and `join_mutex'.
5168 (interrupt): Now just calls _Jv_ThreadInterrupt().
5169 (join): Simplified. Just wait on the target thread's join condition.
5170 (finish_): Remove join list code. Unset thread group. Signal
5171 potential joiners by notifying the dying threads join_cond.
5172 (start): Check for illegal restarts.
5173 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5175 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5176 #defines and #ifdefs.
5177 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5178 `wait_mutex', `next'.
5179 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5180 directly mapping to pthread_cond_t.
5181 (struct _Jv_Mutex_t): New recursive implementation.
5182 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5183 _Jv_HaveCondDestroy: Never define this for posix-threads.
5184 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5185 (_Jv_CondNotifyAll): Ditto.
5186 (_Jv_MutexLock): Ditto.
5187 (_Jv_MutexUnlock): Ditto.
5188 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5189 (_Jv_MutexDestroy): Ditto.
5190 (_Jv_CondDestroy): Removed.
5191 (_Jv_PthreadGetMutex): Removed.
5192 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5193 error. Add a FIXME about this.
5194 (_Jv_CondNotifyAll): Ditto.
5195 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5196 _JV_NOT_OWNER on other errors. Add FIXME.
5198 2000-03-26 Tom Tromey <tromey@cygnus.com>
5200 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5202 (call): Don't throw exception here.
5204 2000-03-26 Tom Tromey <tromey@cygnus.com>
5206 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5207 * interpret.cc: Use SIZEOF_VOID_P.
5208 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5209 (_Jv_loadLong): Likewise.
5210 (_Jv_storeDouble): Likewise.
5211 * configure: Rebuilt.
5212 * configure.in: Check size of void*.
5214 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5216 2000-03-26 Hans Boehm <boehm@acm.org>
5218 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5219 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5221 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5222 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5223 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5224 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5226 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5227 (FFI_RAW_SIZE): Likewise.
5228 (_Jv_InterpMethod::ncode): Use them.
5229 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5230 STORED): Define differently on a 64 bit machine.
5231 (continue1): Use ffi_java_raw_call when appropriate.
5233 2000-03-24 Warren Levy <warrenl@cygnus.com>
5235 * java/math/BigInteger.java(divide): Handle the special case when
5236 dividing by 1 and the high bit of the dividend is set.
5237 (setShiftRight): Handle case when count == 0.
5239 2000-03-24 Warren Levy <warrenl@cygnus.com>
5241 * java/awt/Font.java(isBold): Fix syntax error.
5243 * java/awt/Frame.java(postEvent): ditto.
5244 * java/awt/Menu.java(postEvent): ditto.
5245 * java/awt/MenuBar.java(postEvent): ditto.
5246 * java/awt/Toolkit.java(init): Included a stub.
5248 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5250 * java/awt/Event.java: Add all the event type constants.
5251 (Event): Implemented constructors.
5252 (controlDown): Implemented.
5253 (metaDown): Implemented.
5254 (paramString): Stubbed.
5255 (shiftDown): Implemented.
5256 (toString): Implemented.
5257 (translate): Implemented.
5259 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5261 * java/lang/natClass.cc (isInstance): Initialize `this'.
5262 (isAssignableFrom): Initialize `this' and `klass'.
5263 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5264 implemented by any loaded class, so return false.
5265 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5266 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5268 2000-03-19 Warren Levy <warrenl@cygnus.com>
5270 * java/awt/Color.java: Specified java.io for Serializable.
5271 * java/awt/Toolkit.java: Imported java.net.URL.
5273 2000-03-19 Warren Levy <warrenl@cygnus.com>
5275 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5277 2000-03-16 Warren Levy <warrenl@cygnus.com>
5279 * java/awt/Color.java: New file.
5280 * java/awt/Graphics.java: New file.
5281 * java/awt/Image.java: New file.
5282 * java/awt/Paint.java: New file.
5283 * java/awt/PaintContext.java: New file.
5284 * java/awt/Transparency.java: New file.
5285 * java/util/Collection.java: New file.
5286 * java/util/Comparator.java: New file.
5287 * java/util/Iterator.java: New file.
5288 * java/util/List.java: New file.
5289 * java/util/ListIterator.java: New file.
5290 * Makefile.am: Added above new files.
5291 * Makefile.in: Rebuilt.
5293 * java/awt/Font.java (PLAIN): New field.
5295 (ITALIC): New field.
5296 (ROMAN_BASELINE): New field.
5297 (CENTER_BASELINE): New field.
5298 (HANGING_BASELINE): New field.
5302 (pointSize): New field.
5303 (Font): Implemented constructor.
5304 (isPlain): Implemented method.
5305 (isBold): Implemented method.
5306 (isItalic): Implemented method.
5307 (getName): Implemented method.
5308 (getStyle): Implemented method.
5309 (getSize): Implemented method.
5310 (getSize2D): Implemented method.
5312 * java/awt/Frame.java (getFont): Stubbed.
5313 (postEvent): Stubbed.
5315 * java/awt/Menu.java (postEvent): Stubbed.
5316 * java/awt/MenuBar.java (getFont): Stubbed.
5317 (postEvent): Stubbed.
5318 * java/awt/Toolkit.java (getImage): Added abstract method.
5320 2000-03-15 Tom Tromey <tromey@cygnus.com>
5322 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5324 * prims.cc (win32_exception_handler): Reformatted.
5326 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5327 (_Jv_HaveMutexDestroy): Likewise.
5329 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5331 * java/io/natFileDescriptorWin32.cc: New file.
5332 * java/io/natFileWin32.cc: New file.
5333 * java/net/natInetAddress.cc: Added conditional inclusion of
5334 Windows / Winsock headers.
5335 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5336 inclusion of Windows / Winsock headers.
5337 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5338 Windows / Winsock headers.
5339 * include/win32-signal.h: New file.
5340 * include/win32-threads.h: New file.
5341 * win32-threads.cc: New file.
5342 * exception.cc (win32_get_restart_frame): New function.
5343 * prims.cc (win32_exception_handler): New function.
5344 (main_init) Performs Winsock initialisation.
5345 (main_init) Installs exeception handler.
5347 2000-03-14 Tom Tromey <tromey@cygnus.com>
5349 * jni.cc (mangled_name): Fixed assertion.
5350 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5351 turned assert into actual failure.
5353 2000-03-09 Warren Levy <warrenl@cygnus.com>
5355 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5356 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5357 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5359 2000-03-09 Warren Levy <warrenl@cygnus.com>
5361 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5362 * java/security/DigestException.java: New file.
5363 * java/security/GeneralSecurityException.java: New file.
5364 * java/security/InvalidAlgorithmParameterException.java: New file.
5365 * java/security/InvalidKeyException.java: New file.
5366 * java/security/InvalidParameterException.java: New file.
5367 * java/security/Key.java: New file.
5368 * java/security/KeyException.java: New file.
5369 * java/security/KeyPair.java: New file.
5370 * java/security/KeyPairGenerator.java: New file.
5371 * java/security/KeyPairGeneratorSpi.java: New file.
5372 * java/security/NoSuchProviderException.java: New file.
5373 * java/security/PrivateKey.java: New file.
5374 * java/security/Provider.java: New file.
5375 * java/security/PublicKey.java: New file.
5376 * java/security/SecureRandom.java: New file.
5377 * java/security/Security.java: New file.
5378 * java/security/Signature.java: New file.
5379 * java/security/SignatureException.java: New file.
5380 * java/security/interfaces/DSAKey.java: New file.
5381 * java/security/interfaces/DSAParams.java: New file.
5382 * java/security/interfaces/DSAPrivateKey.java: New file.
5383 * java/security/interfaces/DSAPublicKey.java: New file.
5384 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5385 * java/security/interfaces/RSAPrivateKey.java: New file.
5386 * java/security/interfaces/RSAPublicKey.java: New file.
5387 * java/security/spec/AlgorithmParameterSpec.java: New file.
5388 * java/security/spec/InvalidKeySpecException.java: New file.
5389 * java/security/spec/InvalidParameterSpecException.java: New file.
5390 * java/security/spec/KeySpec.java: New file.
5391 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5392 * java/security/spec/RSAPrivateKeySpec.java: New file.
5393 * java/security/spec/RSAPublicKeySpec.java: New file.
5394 * Makefile.am: Added above java.security files.
5395 * Makefile.in: Rebuilt.
5397 * java/security/MessageDigest.java: Rewritten.
5398 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5400 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5404 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5406 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5407 _Jv_PrepareConstantTimeTables.
5408 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5409 classes should have an IDT, so don't return if klass is an array
5412 2000-03-08 Tom Tromey <tromey@cygnus.com>
5414 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5415 of `void' to be created.
5417 2000-03-08 Warren Levy <warrenl@cygnus.com>
5419 * java/math/BigInteger.java(signum): Handle zero properly.
5421 2000-03-07 Tom Tromey <tromey@cygnus.com>
5423 * All files: Updated copyright information.
5424 * COPYING: New file.
5425 * COPYING.LIB: Removed.
5426 * LIBGCJ_LICENSE: We now use GPL + special exception.
5428 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5430 * resolve.cc (_Jv_SearchMethodInClass): New function.
5431 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5432 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5434 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5436 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5437 (struct _Jv_ifaces): New declaration.
5438 JV_CLASS: New macro definition.
5439 (getComponentType): Relocate below isArray() for inlining.
5440 (getModifiers): Declare `inline'.
5441 (getSuperclass): Ditto.
5443 (isPrimitive): Ditto.
5444 (_Jv_IsAssignableFrom): New prototype.
5445 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5447 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5448 Check for JV_STATE_DONE before invoking initializeClass().
5449 (_Jv_PrepareConstantTimeTables): New prototype.
5450 (_Jv_GetInterfaces): Ditto.
5451 (_Jv_GenerateITable): Ditto.
5452 (_Jv_GetMethodString): Ditto.
5453 (_Jv_AppendPartialITable): Ditto.
5454 (_Jv_FindIIndex): Ditto.
5455 depth, ancestors, idt: New class fields.
5457 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5458 inline function `_Jv_IsAssignableFrom'. Use that function.
5459 (isInstance): Declare `inline'.
5460 (initializeClass): Get lock on class before checking `state'. Unlock
5461 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5463 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5464 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5465 class->depth and ancestor table.
5466 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5467 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5468 _Jv_IsAssignableFrom.
5469 (_Jv_CheckArrayStore): Ditto.
5470 (_Jv_LookupInterfaceMethodIdx): New function.
5471 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5472 (_Jv_PrepareConstantTimeTables): New function.
5473 (_Jv_IndexOf): Ditto.
5474 (_Jv_GetInterfaces): Ditto.
5475 (_Jv_GenerateITable): Ditto.
5476 (_Jv_GetMethodString): Ditto.
5477 (_Jv_AppendPartialITable): Ditto.
5478 iindex_mutex, iindex_mutex_initialized: New static fields.
5479 (_Jv_FindIIndex): New function.
5481 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5483 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5484 (_Jv_CheckArrayStore): Ditto.
5485 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5486 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5487 Moved to gcj/array.h.
5488 (_Jv_Realloc): New function.
5490 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5492 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5493 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5494 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5495 JvNewDoubleArray): Implementations moved from prims.cc and
5498 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5500 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5502 2000-03-06 Tom Tromey <tromey@cygnus.com>
5504 * jni.cc (MARK_NONE): New define.
5505 (MARK_USER): Likewise.
5506 (MARK_SYSTEM): Likewise.
5507 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5509 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5510 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5511 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5512 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5514 (call): Use MARK_SYSTEM.
5515 (_Jv_GetJNIEnvNewFrame): New function.
5516 (_Jv_LookupJNIMethod): New function.
5517 (_Jv_JNI_PopSystemFrame): New function.
5518 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5520 2000-03-05 Tom Tromey <tromey@cygnus.com>
5522 Fix for PR libgcj/43:
5523 * include/Makefile.in: Rebuilt.
5524 * include/Makefile.am (include_HEADERS): New define.
5526 2000-03-05 Anthony Green <green@redhat.com>
5528 * gcj/javaprims.h ("Java"): Remove FirstThread.
5530 * configure.host: Fix __NO_MATH_INLNES botch.
5532 * Makefile.in: Rebuilt.
5533 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5534 (gnu/gcj/runtime/FirstThread.h): Moved.
5535 (ordinary_java_source_files): Move FirstThread.java.
5536 * prims.cc: Deal with FirstThread movement.
5538 (_Jv_RunMain): Ditto.
5540 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5541 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5543 2000-03-05 Warren Levy <warrenl@cygnus.com>
5545 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5546 Handle null addresses.
5548 2000-03-04 Anthony Green <green@redhat.com>
5550 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5553 2000-03-04 Anthony Green <green@redhat.com>
5555 * configure: Rebuilt.
5556 * configure.in (ZLIBTESTSPEC): New macro.
5557 (GCTESTSPEC): New macro.
5558 (LIBGCJTESTSPEC): New macro.
5559 * libgcj-test.spec.in: New file.
5561 2000-03-02 Tom Tromey <tromey@cygnus.com>
5563 * include/java-interp.h: Don't include MethodInvocation.h.
5564 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5565 * Makefile.in: Rebuilt.
5566 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5567 (ordinary_java_source_files): Don't mention
5568 MethodInvocation.java.
5569 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5570 * interpret.cc (MethodInvocation::continue1): Removed.
5571 (run): Handle exceptions here.
5572 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5574 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5576 (defineClass2): Removed.
5578 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5580 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5582 (hack_call): Removed.
5584 * java/lang/Class.h (Class): Removed hackRunInitializers,
5586 * java/lang/natClass.cc (hackRunInitializers): Removed.
5587 (initializeClass): Catch exceptions here.
5588 Include ExceptionInInitializerError.h.
5589 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5592 * java/lang/Object.h (Object): Don't mention hack12_6.
5593 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5595 * java/lang/Object.java (hack12_6): Removed.
5597 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5598 (start): Use run_, not run__.
5599 * java/lang/Thread.java (run_): Renamed from run__; old run_
5602 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5603 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5604 (_Jv_JNI_DefineClass): Likewise.
5605 (_Jv_JNI_ThrowNew): Likewise.
5606 (_Jv_JNI_AllocObject): Likewise.
5607 (_Jv_JNI_GetAnyMethodID): Likewise.
5608 (_Jv_JNI_CallAnyMethodV): Likewise.
5609 (_Jv_JNI_CallAnyMethodA): Likewise.
5610 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5611 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5612 (_Jv_JNI_GetAnyFieldID): Likewise.
5613 (_Jv_JNI_NewString): Likewise.
5614 (_Jv_JNI_NewStringUTF): Likewise.
5615 (_Jv_JNI_GetStringUTFChars): Likewise.
5616 (_Jv_JNI_NewObjectArray): Likewise.
5617 (_Jv_JNI_NewPrimitiveArray): Likewise.
5618 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5619 (_Jv_JNI_GetStringRegion): Likewise.
5620 (_Jv_JNI_GetStringUTFRegion): Likewise.
5621 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5622 (_Jv_JNI_MonitorEnter): Likewise.
5623 (_Jv_JNI_MonitorExit): Likewise.
5624 (_Jv_JNI_ToReflectedField): Likewise.
5625 (_Jv_JNI_ToReflectedMethod): Likewise.
5626 (_Jv_JNI_RegisterNatives): Likewise.
5627 (_Jv_JNI_AttachCurrentThread): Likewise.
5628 (_Jv_JNI_DestroyJavaVM): Likewise.
5630 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5632 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5633 error caused by the incorrect casting of a long to an int.
5635 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5637 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5638 SIGSEV caused by use of the wrong instance variable.
5640 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5642 * java/io/File.java (File(String, String)): For dirPath, treat an
5643 empty String the same as `null'.
5645 2000-02-26 Anthony Green <green@cygnus.com>
5647 * gnu/gcj/io/MimeTypes.java: Test for null.
5649 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5650 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5652 * java/net/URLConnection.java: Update copyright notice.
5654 2000-02-25 Tom Tromey <tromey@cygnus.com>
5656 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5659 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5661 * java/net/URLConnection.java (initializeDateFormats): New
5663 (getHeaderFieldDate): Call initializeDateFormats if required.
5664 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5666 Fix for PR libgcj/38.
5668 2000-02-24 Warren Levy <warrenl@cygnus.com>
5670 * java/math/BigInteger.java(ival): Made private.
5674 2000-02-20 Anthony Green <green@cygnus.com>
5676 * Makefile.in: Rebuilt.
5677 * Makefile.am (ordinary_java_source_files): Add
5678 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5680 * scripts/MakeDefaultMimeTypes.java: New file.
5681 * scripts/mime.types: New file.
5682 * scripts/classes.pl: Moved from top level.
5683 * classes.pl: Moved to scripts directory.
5685 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5687 * gnu/gcj/io/MimeTypes.java: New file.
5688 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5690 2000-02-20 Tom Tromey <tromey@cygnus.com>
5692 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5694 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5696 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5699 2000-02-18 Tom Tromey <tromey@cygnus.com>
5701 * include/jvm.h (_Jv_GetJavaVM): Declare.
5702 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5703 (_Jv_MethodBase::get_method): New method.
5704 (_Jv_JNIMethod::set_function): New method.
5705 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5706 (_Jv_JNI_RegisterNatives): New function.
5707 (_Jv_JNIFunctions): Updated for new functions.
5708 (_Jv_GetJavaVM): New function.
5709 (_Jv_JNI_GetJavaVM): Use it. Now static.
5710 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5711 is already a Java thread but does not have a JNIEnv yet.
5713 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5716 2000-02-17 Tom Tromey <tromey@cygnus.com>
5718 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5721 2000-02-16 Tom Tromey <tromey@cygnus.com>
5723 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5725 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5726 (_Jv_JNI_NewObject): Likewise.
5727 (_Jv_JNI_NewObjectA): Likewise.
5728 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5729 as "return" type to _Jv_CallAnyMethodA.
5730 (_Jv_JNI_CallAnyMethodA): Likewise.
5731 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5733 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5736 2000-02-15 Tom Tromey <tromey@cygnus.com>
5738 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5740 (init_cif): Added `rtype_p' argument.
5741 * include/java-interp.h (class _Jv_MethodBase): Added
5743 (class _Jv_InterpMethod): Removed args_raw_size.
5744 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5745 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5746 class pointer as well as the ordinary arguments.
5748 * jni.cc (mangled_name): Skip leading `(' in signature.
5750 * jni.cc (add_char): Added missing `else'.
5752 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5755 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5759 * java/lang/natRuntime.cc (_load): Include library path with
5762 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5765 * java/lang/natThread.cc (dumpStack): Removed.
5766 * java/lang/Thread.java (dumpStack): Implemented.
5768 2000-02-15 Tom Tromey <tromey@cygnus.com>
5770 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5771 with `lib' for loadLibrary. Fixes PR gcj/150.
5773 2000-02-14 Warren Levy <warrenl@cygnus.com>
5775 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5777 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5781 (modPow): Rewritten to not use the naive, slow, brute force approach.
5782 (isProbablePrime): Implemented.
5783 (testBit): Implemented.
5784 (flipBit): Implemented.
5785 (getLowestSetBit): Implemented.
5787 2000-02-16 Anthony Green <green@redhat.com>
5789 * configure.host: Use the same options for i386 and i486 as we do
5792 2000-02-12 Tom Tromey <tromey@cygnus.com>
5794 * java/io/File.java (createTempFile): Use low bits from counter,
5797 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5799 * THANKS: More thanks.
5801 2000-02-11 Tom Tromey <tromey@cygnus.com>
5803 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5804 astore instruction. From Hans Boehm.
5806 2000-02-11 Warren Levy <warrenl@cygnus.com>
5808 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5809 (BigInteger(String)): New constructor.
5810 (not): Rewritten using version from Kawa's BitOps class.
5811 (valueOf): New private methods from Kawa's BitOps class.
5818 (andNot): Implemented.
5819 (clearBit): Implemented.
5820 (setBit): Implemented.
5821 (bitCount): Implemented.
5822 (toByteArray): Implemented.
5824 2000-02-11 Tom Tromey <tromey@cygnus.com>
5826 * java/io/File.java (nextValue): Now synchronized.
5828 2000-02-10 Tom Tromey <tromey@cygnus.com>
5830 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5831 * java/io/FileDescriptor.java (EXCL): New static field.
5832 * java/io/File.java (tmpdir): New static field.
5833 (createTempFile): New method.
5834 (nextValue): New method.
5835 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5838 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5839 (jboolean): Declare as an attributed int, not a bool.
5840 (_Jv_func): Declare differently for C.
5842 * gnu/gcj/jni/natNativeThread.cc: New file.
5843 * gnu/gcj/jni/NativeThread.java: New file.
5844 * java/lang/Thread.java (data): Now a RawData.
5845 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5847 * Makefile.in: Rebuilt.
5848 * Makefile.am (java/lang/Thread.h): New target.
5849 (ordinary_java_source_files): Added NativeThread.java.
5850 (nat_source_files): Added natNativeThread.cc.
5851 * java/lang/natThread.cc: Include <jni.h>
5852 (struct natThread): Added `jni_env' field.
5853 (_Jv_GetCurrentJNIEnv): New function.
5854 (_Jv_SetCurrentJNIEnv): Likewise.
5855 (initialize_native): Initialize jni_env.
5857 * jni.cc (ThreadGroupClass): New define.
5858 (_Jv_JNI_InvokeFunctions): New structure.
5859 (JNI_GetCreatedJavaVMs): New function.
5860 (the_vm): New global.
5861 (JNI_GetDefaultJavaVMInitArgs): New function.
5862 Include NativeThread.h.
5863 (NativeThreadClass): New define.
5864 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5865 (_Jv_JNI_DestroyJavaVM): New function.
5866 (_Jv_JNI_AttachCurrentThread): New function.
5867 (_Jv_JNI_DetachCurrentThread): New function.
5868 (_Jv_JNI_GetEnv): New function.
5869 (JNI_CreateJavaVM): New function.
5870 (_Jv_JNI_GetJavaVM): New function.
5871 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5872 * include/jni.h (JavaVMAttachArgs): New structure.
5873 (JNI_EDETACHED): New define.
5874 (JNI_EVERSION): Likewise.
5875 (JavaVM): Define properly.
5876 (struct JNIInvokeInterface): New structure.
5877 (class _Jv_JavaVM): New class.
5878 (JNI_OnLoad, JNI_OnUnload): Declare.
5879 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5880 JNI_GetCreatedJavaVMs): Declare.
5881 (JavaVMInitArgs): New typedef.
5882 (JavaVMOption): Likewise.
5883 (JNI_ERR): New define.
5886 2000-02-10 Andrew Haley <aph@cygnus.com>
5888 * interpret.cc: Don't include fdlibm.h.
5889 Replace #if with #ifdef throughout.
5890 Declare extern __ieee754_fmod.
5891 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5893 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5894 Search class hierarchy for superclass vtable.
5896 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5897 off the end of a pointer list.
5899 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5903 2000-02-09 Tom Tromey <tromey@cygnus.com>
5905 * java/lang/natRuntime.cc (_load): Call add_library.
5906 (loadLibraryInternal): Likewise.
5908 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5909 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5910 (Output_iconv::finalize): Likewise.
5912 2000-02-08 Tom Tromey <tromey@cygnus.com>
5914 * java/util/Properties.java (setProperty): New method.
5915 (store): New method.
5917 2000-02-07 Tom Tromey <tromey@cygnus.com>
5919 * java/lang/Runtime.java (_load): Declare.
5920 (load, loadLibrary): Wrote in terms of _load.
5921 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5923 (loadLibrary): Likewise.
5925 (_load): New method.
5926 (loadLibrary, load): Removed.
5928 * jni.cc (ThrowableClass): New define.
5929 (_Jv_JNI_Throw): Check argument.
5930 (_Jv_JNI_ThrowNew): Likewise.
5931 (wrap_value): Don't wrap object if it is NULL.
5932 (_Jv_JNI_DefineClass): Use wrap_value.
5933 (_Jv_JNI_FindClass): Likewise.
5934 (_Jv_JNI_GetSuperclass): Likewise.
5935 (_Jv_JNI_ExceptionOccurred): Likewise.
5936 (_Jv_JNI_AllocObject): Likewise.
5937 (_Jv_JNI_GetObjectClass): Likewise.
5938 (_Jv_JNI_NewString): Likewise.
5939 (_Jv_JNI_NewStringUTF): Likewise.
5940 (_Jv_JNI_NewObjectArray): Likewise.
5941 (_Jv_JNI_GetObjectArrayElement): Likewise.
5942 (_Jv_JNI_NewPrimitiveArray): Likewise.
5943 (_Jv_JNI_ToReflectedField): Likewise.
5944 (_Jv_JNI_ToReflectedMethod): Likewise.
5945 (_Jv_JNI_AllocObject): Check argument.
5946 (_Jv_JNI_NewObjectV): Likewise.
5947 (_Jv_JNI_NewObject): Likewise.
5948 (_Jv_JNI_NewObjectA): Likewise.
5949 (_Jv_JNI_GetObjectClass): Likewise.
5950 (_Jv_JNI_GetField): Likewise.
5951 (_Jv_JNI_SetField): Likewise.
5953 * interpret.cc (PUSHL): Don't use expression statement.
5958 * jni.cc (add_char): Conditional on INTERPRETER.
5959 (mangled_name): Likewise.
5961 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5963 (class _Jv_JNIMethod): Likewise.
5965 2000-02-04 Warren Levy <warrenl@cygnus.com>
5967 * Makefile.am: Added MPN.java and BigInteger.java.
5968 * Makefile.in: Rebuilt.
5969 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5971 * java/math/BigInteger.java: New file. Based primarily on
5972 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5974 2000-02-04 Tom Tromey <tromey@cygnus.com>
5976 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5978 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5979 if the method is native.
5980 * resolve.cc (ncode): Don't handle native methods.
5981 (_Jv_JNIMethod::ncode): New method.
5982 (_Jv_PrepareClass): Handle native methods.
5983 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5984 Include AbstractMethodError.h.
5985 (add_char): New function.
5986 (mangled_name): Likewise.
5987 * include/java-interp.h (class _Jv_JNIMethod): New class.
5988 (class _Jv_MethodBase): New class.
5989 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5990 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5993 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5994 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5995 libraries): New globals.
5996 (add_library): New function.
5997 (_Jv_FindSymbolInExecutable): New function.
5999 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6002 2000-02-04 Andrew Haley <aph@cygnus.com>
6004 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6005 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6006 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6007 printStackTrace to printRawStackTrace.
6009 2000-02-03 Tom Tromey <tromey@cygnus.com>
6011 * java/util/Calendar.java (toString): New method.
6012 * java/util/SimpleTimeZone.java (clone): New method.
6013 (toString): New method.
6014 * java/util/TimeZone.java (clone): New method.
6015 * java/text/SimpleDateFormat.java (clone): New method.
6016 * java/text/NumberFormat.java (clone): New method.
6017 (equals): New method.
6018 * java/text/Format.java (clone): New method.
6019 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6021 (clone): New method.
6022 * java/text/DateFormat.java (clone): New method.
6023 * java/text/Collator.java (clone): New method.
6025 2000-02-03 Tom Tromey <tromey@cygnus.com>
6027 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6030 2000-02-01 Tom Tromey <tromey@cygnus.com>
6032 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6033 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6034 constructing the closure if the function is native.
6035 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6036 a template function, #if'd out, or static.
6037 Include <java-interp.h>.
6039 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6041 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6043 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6044 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6046 (wrap_value): New function.
6047 (_Jv_JNI_CallAnyMethodV): Use it.
6048 (_Jv_JNI_CallAnyMethodA): Likewise.
6049 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6050 (_Jv_JNI_GetStaticField): Likewise.
6052 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6053 (_Jv_JNI_GetStaticField): Likewise.
6055 2000-01-31 Tom Tromey <tromey@cygnus.com>
6057 * prims.cc (_Jv_MallocUnchecked): New function.
6058 (main_init): Call _Jv_JNI_Init.
6059 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6060 (_Jv_JNI_Init): Declare.
6061 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6063 (_Jv_JNI_NewGlobalRef): New function.
6064 (_Jv_JNI_DeleteGlobalRef): New function.
6065 (_Jv_JNI_DeleteLocalRef): New function.
6066 (_Jv_JNI_conversion_call): Initialize and clear local reference
6068 (_Jv_JNI_NewLocalRef): New function.
6069 (struct _Jv_JNI_LocalFrame): New structure.
6070 (_Jv_JNI_PushLocalFrame): New function.
6071 (_Jv_JNI_EnsureLocalCapacity): New function.
6072 (FRAME_SIZE): New define.
6073 (_Jv_JNI_GetStringChars): Mark string, not characters.
6074 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6075 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6076 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6078 (_Jv_JNI_DefineClass): Make return value a local ref.
6079 (_Jv_JNI_FindClass): Likewise.
6080 (_Jv_JNI_GetSuperclass): Likewise.
6081 (_Jv_JNI_ExceptionOccurred): Likewise.
6082 (_Jv_JNI_AllocObject): Likewise.
6083 (_Jv_JNI_GetObjectClass): Likewise.
6084 (_Jv_JNI_CallAnyMethodV): Likewise.
6085 (_Jv_JNI_NewString): Likewise.
6086 (_Jv_JNI_NewStringUTF): Likewise.
6087 (_Jv_JNI_NewObjectArray): Likewise.
6088 (_Jv_JNI_GetObjectArrayElement): Likewise.
6089 (_Jv_JNI_ToReflectedField): Likewise.
6090 (_Jv_JNI_ToReflectedMethod): Likewise.
6091 (_Jv_JNIFunctions): Updated table for new functions.
6092 (_Jv_JNI_Init): New function.
6093 (mark_for_gc): Wrote.
6094 (unmark_for_gc): Wrote.
6095 * include/jni.h (struct JNINativeInterface): Removed name from
6096 PopLocalFrame parameter.
6097 (class _Jv_JNIEnv): Added `locals' field.
6099 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6101 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6104 2000-01-30 Tom Tromey <tromey@cygnus.com>
6106 * include/config.h.in: Rebuilt.
6107 * acconfig.h (HAVE_ICONV): Define.
6108 * configure: Rebuilt.
6109 * configure.in: Check for `iconv' function.
6110 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6111 no specific encoder exists.
6112 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6113 no specific encoder exists.
6114 * Makefile.in: Rebuilt.
6115 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6117 (nat_source_files): Added natIconv.cc.
6118 * gnu/gcj/convert/natIconv.cc: New file.
6119 * gnu/gcj/convert/Input_iconv.java: New file.
6120 * gnu/gcj/convert/Output_iconv.java: New file.
6122 2000-01-28 Tom Tromey <tromey@cygnus.com>
6124 * Makefile.in: Rebuilt.
6125 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6127 2000-01-26 Tom Tromey <tromey@cygnus.com>
6129 * gcj/method.h (JvNumMethods): Moved from Class.h.
6130 (JvGetFirstMethod): Likewise.
6131 * java/lang/Class.h (Object): Updated decl of
6132 _Jv_JNI_ToReflectedField.
6133 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6134 * Makefile.in: Rebuilt.
6135 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6136 argument of _Jv_JNI_ToReflectedField.
6137 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6139 (java/lang/reflect/Method.h): Likewise.
6140 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6142 (jweak): New typedef.
6143 (struct JNINativeInterface): Correctly declare remaining entries.
6144 * jni.cc: Include Class.h, ClassLoader.h.
6145 (_Jv_JNI_FindClass): New function.
6146 (_Jv_JNI_DefineClass): New function.
6147 (_Jv_JNI_conversion_call): New function.
6148 (_Jv_JNI_FindClass): Use current class loader to find class.
6149 (_Jv_JNI_ExceptionCheck): New function.
6150 (_Jv_JNI_FromReflectedField): Now static.
6151 (MethodClass): New define.
6152 (_Jv_JNI_FromReflectedMethod): New function.
6153 (_Jv_JNI_ToReflectedMethod): Likewise.
6155 (_Jv_JNI_IsAssignableFrom): Renamed.
6156 (_Jv_JNI_GetStringRegion): New function.
6157 Include StringIndexOutOfBoundsException.h.
6158 (_Jv_JNI_GetStringUTFRegion): New function.
6159 (_Jv_JNIFunctions): Updated for new functions.
6160 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6161 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6162 (_Jv_JNI_GetStringCritical): New function.
6163 (_Jv_JNI_ReleaseStringCritical): Likewise.
6164 (get_throwable): Removed.
6165 (GCJ_JV_JNIENV_FRIEND): Removed.
6166 (__GCJ_JNI_IMPL__): Define.
6169 * resolve.cc (get_ffi_type_from_signature): Handle case where
6172 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6174 * interpret.cc (run): Don't call println.
6175 Don't include PrintStream.h.
6177 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6178 nameIndex. Use "jint" as type for boffset.
6179 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6181 (Class): Likewise. Also changed type of method_count,
6182 vtable_method_count, size_in_bytes, field_count,
6183 static_field_count, interface_count.
6184 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6187 2000-01-21 Tom Tromey <tromey@cygnus.com>
6189 * java/lang/reflect/natConstructor.cc (newInstance): Use
6191 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6192 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6193 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6196 (invoke): Use _Jv_CallAnyMethodA.
6198 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6199 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6201 (struct _Jv_Method): Added getNextMethod method.
6202 (JvNumMethods): New function.
6203 (JvGetFirstMethod): Likewise.
6204 * gcj/field.h (JvGetFirstStaticField): New function.
6205 (JvNumStaticFields): Likewise.
6206 (getNextField): Renamed from getNextInstanceField.
6207 (struct _Jv_Field): New method getClass.
6208 * jni.cc: Wrote many new functions.
6209 * include/jni.h (JNI_TRUE): Define.
6210 (JNI_FALSE): Likewise.
6211 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6212 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6213 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6214 (jfieldID, jmethodID): Likewise.
6215 (JNI_COMMIT, JNI_ABORT): New defines.
6216 (JNINativeMethod): New struct.
6217 (struct JNINativeInterface): Correctly declared more entries.
6218 (class _Jv_JNIEnv): Added `ex' member.
6219 (JNI_VERSION_1_1): New define.
6220 (JNI_VERSION_1_2): Likewise.
6222 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6223 getNextInstanceField.
6225 2000-01-20 Tom Tromey <tromey@cygnus.com>
6227 * resolve.cc (StringClass): Removed.
6228 * defineclass.cc (StringClass): Removed.
6230 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6234 2000-01-19 Tom Tromey <tromey@cygnus.com>
6236 * interpret.cc (PC_REGISTER_ASM): Removed.
6238 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6239 From Bryce McKinlay.
6241 * All files: Updated copyright to reflect Cygnus purchase.
6243 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6245 * configure: Rebuilt.
6246 * configure.in: Recognize --disable-interpreter.
6248 2000-01-18 Andrew Haley <aph@cygnus.com>
6250 * name-finder.cc (lookup): Check for dladdr function.
6251 acconfig.h (HAVE_DLADDR): Add.
6252 configure.in: Check for HAVE_DLADDR
6254 include/config.h.in: Rebuilt.
6256 2000-01-17 Andrew Haley <aph@cygnus.com>
6258 * prims.cc (_Jv_RunMain): Set the name of this executable.
6260 2000-01-17 Tom Tromey <tromey@cygnus.com>
6262 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6263 when backtrace can't be computed.
6265 * configure: Rebuilt.
6266 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6268 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6269 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6270 (_Jv_FindClassInCache): Likewise.
6271 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6272 (findSystemClass): Try to load class from compiled module.
6274 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6275 (loadLibrary): Likewise.
6276 (lt_preloaded_symbols): Define.
6277 (loadLibraryInternal): New method.
6278 * include/config.h.in: Rebuilt.
6279 * acconfig.h (USE_LTDL): Added.
6280 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6281 (INCLUDES): Added $(INCLTDL).
6282 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6283 (libgcj_la_LIBADD): Likewise.
6284 * aclocal.m4, configure: Rebuilt.
6285 * configure.in: Added libltdl support.
6287 2000-01-15 Tom Tromey <tromey@cygnus.com>
6289 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6291 2000-01-14 Andrew Haley <aph@cygnus.com>
6293 * java/lang/natThrowable.cc: New file.
6295 * java/lang/Throwable.java (fillInStackTrace): Make native.
6296 (printStackTrace): Call native method to do this.
6297 (Throwable): Call fillInStackTrace.
6298 (stackTrace): New variable.
6300 * include/jvm.h: Add _Jv_ThisExecutable functions.
6302 * prims.cc: (_Jv_execName): New variable.
6303 (catch_segv): Call fillInStackTrace.
6305 (_Jv_ThisExecutable): New functions.
6306 (JvRunMain): Set the name of this executable.
6308 * Makefile.am: Add java/lang/natThrowable.cc.
6310 * Makefile.in: Rebuilt.
6312 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6314 * configure.in: Force link with __frame_state_for in
6315 FORCELIBGCCSPEC. Add new checks for backtrace.
6316 * include/config.h.in: Rebuilt.
6318 * name-finder.cc: New file.
6319 * include/name-finder.h: New file.
6321 2000-01-16 Anthony Green <green@cygnus.com>
6323 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6326 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6328 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6330 2000-01-13 Tom Tromey <tromey@cygnus.com>
6332 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6333 not system loader, as initiating loader.
6335 2000-01-11 Tom Tromey <tromey@cygnus.com>
6337 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6338 HP/UX. From David Scott Urban.
6340 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6342 * java/lang/natMath.cc (pow): Cast args to `double', not
6345 (IEEEremainder): Likewise.
6346 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6347 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6349 2000-01-09 Anthony Green <green@cygnus.com>
6351 * java/lang/natString.cc (init): Test for overflow condition
6352 during out of bounds check.
6353 (getChars): Throw StringIndexOutOfBoundsException, not
6354 ArrayIndexOutOfBoundsException.
6356 (regionMatches): Obey case option during string comparison.
6358 * configure.host (ligcj_interpreter): New variable. Enable
6359 interpreter by default on IA-32.
6360 * configure.in: Examine libgcj_interpreter.
6361 * configure: Rebuilt.
6363 2000-01-07 Tom Tromey <tromey@cygnus.com>
6365 * mauve-libgcj: Don't disable ClassTest.
6367 * java/lang/natClass.cc (getClasses): Wrote.
6369 2000-01-06 Tom Tromey <tromey@cygnus.com>
6371 * java/lang/natClass.cc (_getConstructors): Correctly check
6372 whether method name is the init name.
6373 (getMethod): Look at accflags on method in `klass', not `this'.
6375 2000-01-05 Tom Tromey <tromey@cygnus.com>
6377 * java/lang/natClass.cc (getMethod): Compute offset relative to
6378 `klass's methods table, not `this's table.
6380 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6381 In unwrapping/widening case, check whether `k' is null, not
6382 whether it is primitive. Initialize `num' from `argelts', not
6383 `paramelts'. Correct create and pass arguments to ffi_call.
6384 Don't let presence of `this' argument affect index used to look in
6386 (COPY): Set appropriate element in `values' vector.
6388 * java/lang/natClass.cc: Include <gcj/method.h>.
6390 * java/lang/Class.h (_getMethods): Correctly declare as private,
6393 * java/lang/Class.h (_getMethods): Declare.
6394 * java/lang/Class.java (_getMethods): Declare.
6395 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6396 (getDeclaredClasses): Always return empty array.
6397 (_getMethods): New method.
6398 (getMethods): Wrote.
6399 (getDeclaredMethod): Return `rmethod'.
6400 (finit_name): New global.
6401 (getDeclaredMethods): Check for finit_name.
6402 (_getMethods): Likewise.
6403 (getMethod): Only return public methods.
6405 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6406 jboolean and select correct ffi type on that basis.
6407 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6408 Constructor call always has `void' return type.
6410 2000-01-04 Tom Tromey <tromey@cygnus.com>
6412 * java/lang/Class.h (getSignature): Updated.
6413 * java/lang/Class.java (getSignature): Updated.
6414 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6416 (getConstructor): Ensure constructor is public.
6417 (_getConstructors): Check for public-ness of constructor when
6418 `declared' is false, not when it is true.
6420 2000-01-04 Warren Levy <warrenl@cygnus.com>
6422 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6424 (receive): Set the sender's address in the DatagramPacket.
6426 2000-01-04 Tom Tromey <tromey@cygnus.com>
6428 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6429 declaring class as return_type argument to
6430 _Jv_CallNonvirtualMethodA.
6431 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6432 constructor case, create object and use it as `this' argument.
6433 * java/lang/Class.h (_getConstructors): Declare.
6434 (_getFields): Declare.
6435 * java/lang/Class.java (getConstructors): Wrote.
6436 (_getConstructors): New native method.
6437 (getDeclaredConstructors): Wrote.
6438 (_getFields): Declare new native method.
6439 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6441 (getMethod): Work correctly when class is primitive.
6442 (getDeclaredMethods): Likewise. Compute offset using `method',
6444 (getDeclaredMethod): Likewise.
6445 (getConstructor): Wrote.
6446 (ConstructorClass): New define.
6447 (getDeclaredConstructor): Wrote.
6448 (_getConstructors): New method.
6449 (_getFields): New method.
6452 * Makefile.in: Rebuilt.
6453 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6455 * prims.cc: Remove `#pragma implementation'.
6456 * gcj/array.h: Remove `#pragma interface'.
6458 * prims.cc (_Jv_equaln): New function.
6459 * java/lang/Class.java (getSignature): Declare.
6460 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6461 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6463 (getSignature): New method.
6464 (getDeclaredMethod): Wrote.
6466 Include StringBuffer.h.
6467 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6468 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6470 (getSignature): Declare.
6471 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6472 (_Jv_equaln): Declare.
6473 (_Jv_CallNonvirtualMethodA): Declare.
6474 * Makefile.in: Rebuilt.
6475 * Makefile.am (nat_source_files): Added natConstructor.cc.
6476 (java/lang/reflect/Constructor.h): New target.
6477 * java/lang/reflect/natConstructor.cc: New file.
6478 * java/lang/reflect/Constructor.java (newInstance): Now native.
6479 (declaringClass): Renamed from decl_class.
6480 (offset): Renamed from index.
6481 (getType): New native method.
6482 (getModifiers): Now native.
6483 (getParameterTypes): Call getType if required.
6484 (hashCode): Include hash code from declaring class.
6485 (modifiers): Removed.
6486 (toString): Call getType if required.
6487 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6488 * java/lang/reflect/natMethod.cc (hack_call): New method.
6489 Removed `#if 0' around FFI code.
6490 Include <gnu/gcj/RawData.h>.
6491 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6492 IllegalArgumentException when argument object and class disagree.
6493 (_Jv_GetTypesFromSignature): New function.
6495 (ObjectClass): New define.
6496 (_Jv_CallNonvirtualMethodA): New function.
6497 * java/lang/reflect/Method.java (hack_trampoline): New method.
6498 (hack_call): New native method.