1 2001-05-18 Tom Tromey <tromey@redhat.com>
3 * Makefile.in: Rebuilt.
4 * Makefile.am (awt_java_source_files): Added Polygon.java.
6 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
9 * gcj/javaprims.h: ... here.
10 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
12 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
14 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
15 with length of ioffset table.
16 (_Jv_IsAssignableFrom): Likewise.
18 2001-05-17 Per Bothner <per@bothner.com>
20 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
22 2001-05-16 Tom Tromey <tromey@redhat.com>
24 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
27 2001-05-15 Tom Tromey <tromey@redhat.com>
29 * java/util/GregorianCalendar.java (computeTime): Only call
32 2001-05-14 Tom Tromey <tromey@redhat.com>
34 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
35 ZONE_OFFSET just before computing the time.
37 2001-05-12 Zack Weinberg <zackw@stanford.edu>
39 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
40 * Makefile.in: Regenerate (by hand).
41 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
42 * doc/cni.sgml: Document #pragma GCC java_exceptions.
44 2001-05-11 Richard Henderson <rth@redhat.com>
46 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
47 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
49 2001-05-11 Richard Henderson <rth@redhat.com>
51 * exception.cc: Include unwind-pe.h. Remove all pointer
54 2001-05-10 Tom Tromey <tromey@redhat.com>
56 * Makefile.in: Rebuilt.
57 * Makefile.am (awt_java_source_files): Added Polygon.java.
58 * java/awt/Polygon.java: New file.
60 * java/awt/geom/AffineTransform.java
61 (setToRotation(double,double,double)): New method.
62 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
63 (setToShear): Likewise.
65 2001-05-10 Tom Tromey <tromey@redhat.com>
67 * java/util/GregorianCalendar.java: Imported from Classpath.
68 * gnu/java/locale/LocaleInformation_nl.java: New file from
70 * gnu/java/locale/LocaleInformation_en.java: Likewise.
71 * gnu/java/locale/LocaleInformation_de.java: Likewise.
72 * gnu/java/locale/LocaleInformation.java: Likewise.
73 * natGregorianCalendar.cc: Removed.
74 * Makefile.in: Rebuilt.
75 * Makefile.am (nat_source_files): Removed
76 natGregorianCalendar.cc.
78 2001-05-10 Tom Tromey <tromey@redhat.com>
80 * java/text/SimpleDateFormat.java (computeCenturyStart): New
82 (defaultCenturyStart): Use it.
83 (readObject): Likewise.
84 (SimpleDateFormat): Clear the calendar. Set the grouping on the
86 (parse): Copy the calendar before modifying it. Correctly handle
89 * java/util/Calendar.java (clear): Set field value(s) to 0.
91 2001-05-10 Jeff Sturm <jsturm@one-point.com>
93 * Calendar.java (get): Clear areFieldsSet if requested field
95 (set): Unset fields that depend on new value.
97 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
99 * java/lang/Class.h (_Jv_Self): New union type.
100 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
101 Jeff Sturm and Fergus Henderson.
103 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
105 * java/lang/ClassLoader.java: Remove dead code fragment.
107 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
109 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
111 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
113 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
115 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
116 * configure.host (EXCEPTIONSPEC): New.
117 * configure.in (EXCEPTIONSPEC): New.
118 * configure: Rebuilt.
120 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
122 * doc/*.texi: Remove generated documentation.
124 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
126 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
127 (performDelete): Fix #endif placement.
129 2001-04-27 Zack Weinberg <zackw@stanford.edu>
131 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
132 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
133 (_Jv_ThreadDestroyData): Use _Jv_Free.
134 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
137 2001-04-27 Tom Tromey <tromey@redhat.com>
139 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
141 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
143 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
145 * include/jni.h (struct JNINativeInterface): Fixed types in
146 Get/Set*ArrayRegion declarations.
147 (class _Jv_JNIEnv): Likewise.
149 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
151 * configure.in: Obtain THREADS with `gcc -v'.
152 * configure: Rebuilt.
154 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
157 * java/io/ObjectStreamClass.java (setClass): Calculate
158 serialVersionUID for local class and compare it against the UID
159 from the Object Stream. Throw InvalidClassException upon mismatch.
160 (setUID): Renamed to...
161 (getClassUID): this. Return the calculated class UID rather than
162 setting uid field directly.
163 (getDefinedSUID): Removed.
164 * java/io/ObjectInputStream.java (resolveClass): Use the
165 three-argument Class.forName().
166 * java/io/InvalidClassException (toString): Don't include classname in
167 result if it is null.
169 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
171 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
172 Wrap use of inet_pton in HAVE_INET6.
174 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
176 java.security merge and ClassLoader compliance fixes.
178 * java/lang/Class.h (Class): Include ProtectionDomain.h.
179 New protectionDomain field.
180 (forName): Add initialize parameter. Fixes declaration to comply with
182 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
183 variant. Honour "initialize" flag.
184 (getProtectionDomain0): New method.
185 * java/lang/Class.java: Fix forName() declaration.
186 (getPackage): New method based on Classpath implementation.
187 (getProtectionDomain0): New native method decl.
188 (getProtectionDomain): New method.
189 * java/lang/ClassLoader.java (getParent): Now final.
190 (definedPackages): New field.
192 (defineClass): New variant with protectionDomain argument.
193 (definePackage): New.
195 (findSystemClass): Now final.
196 (getSystemResourceAsStream): Remove redundant "final" modifier.
197 (getSystemResource): Remove redundant "final" modifier.
198 (getResources): Now final.
199 (protectionDomainPermission): New static field.
200 (unknownProtectionDomain): Ditto.
201 (defaultProtectionDomain): Ditto.
202 (getSystemClassLoader): Now non-native.
203 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
204 arguments for Class.forName().
205 * java/lang/Package.java: New file.
206 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
207 (instance): Static initialize singleton.
208 (findClass): Override this, not findSystemClass.
209 * java/lang/natClassLoader.cc (defineClass0): Set class's
210 protectionDomain field as specified.
211 (getSystemClassLoader): Removed.
212 (findClass): Renamed from findSystemClass. Call the interpreter via
213 URLClassLoader.findClass if loading class via dlopen fails.
215 * java/security/*.java: java.security import/merge with Classpath.
216 * java/security/acl/*.java: Likewise.
217 * java/security/interfaces/*.java: Likewise.
218 * java/security/spec/*.java: Likewise.
219 * java/net/NetPermission.java: Likewise.
220 * java/net/SocketPermission.java: Likewise.
221 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
223 * Makefile.am: Add new classes.
224 * Makefile.in: Rebuilt.
225 * gcj/javaprims.h: CNI namespace rebuild.
227 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
229 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
230 for libtool tests. Pre-create gnu/classpath/Configuration.java.
231 * configure: Rebuilt.
233 2001-04-21 Tom Tromey <tromey@redhat.com>
235 * Makefile.in: Rebuilt.
236 * Makefile.am (awt_java_source_files): Added Line2D.java.
237 * java/awt/geom/Line2D.java: Wrote.
239 * java/awt/Menu.java (addNotify): Wrote.
241 * java/awt/PopupMenu.java (addNotify): Implemented.
244 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
245 * java/awt/List.java (addNotify): Call super.addNotify.
246 * java/awt/Label.java (addNotify): Call super.addNotify.
247 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
248 * java/awt/Dialog.java (addNotify): Call super.addNotify.
249 * java/awt/Choice.java (addNotify): Call super.addNotify.
250 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
251 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
253 * java/awt/List.java (replaceItem): Notify peer.
255 * java/awt/geom/Rectangle2D.java
256 (Float.setRect(float,float,float,float)): New method.
258 * java/awt/event/ContainerEvent.java (getContainer): Now returns
261 * java/awt/RenderingHints.java (Key): Class now public.
263 * java/awt/Rectangle.java (Rectangle): Now implements
265 (getPathIterator): Removed.
267 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
270 * java/awt/FileDialog.java: Wrote.
272 * java/awt/EventQueue.java (isDispatchThread): Now public.
273 (invokeLater): Likewise.
275 * java/awt/Component.java (setCursor): Update peer.
276 (getFontMetrics): Use peer.
278 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
281 2001-04-20 Tom Tromey <tromey@redhat.com>
283 * java/awt/List.java: Wrote.
284 * java/awt/Dialog.java: Wrote.
286 2001-04-20 Warren Levy <warrenl@redhat.com>
288 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
289 * java/text/SimpleDateFormat.java
290 (indexInArray): Removed private method.
291 (processYear): Removed private method.
292 (parseLenient): Removed private method.
293 (parseLeadingZeros): Removed private method.
294 (parseStrict): Removed private method.
295 (expect): Added new private method.
296 (parse): Reverted to pre-Classpath merge version with minor fixes.
297 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
300 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
302 * java/io/File.java (normalizePath): New private method.
303 (File (String)): Use normalizePath().
304 (File (String, String)): Likewise.
306 * Makefile.am (libffi_files): Removed.
307 (libgcj.la): Link libffi as a convenience library instead of
308 refering to its object files directly.
309 * Makefile.in: Rebuilt.
311 2001-04-08 Per Bothner <per@bothner.com>
313 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
314 Recalculate hash, since Utf8Const's hash is only 16 bits.
316 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
317 bits of hash to calculate step for chaining.
319 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
320 when 2/3 full, rather than 3/4 full.
322 2001-04-06 Tom Tromey <tromey@redhat.com>
324 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
325 (wrap_value<T*>): New specialization.
326 (_Jv_JNI_PopLocalFrame): Update env->locals.
328 2001-04-05 Tom Tromey <tromey@redhat.com>
330 * libtool-version: Updated current.
332 2001-04-04 Andreas Jaeger <aj@suse.de>
334 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
335 * gcj/Makefile.in: Rebuilt.
336 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
337 * Makefile.in: Rebuilt.
338 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
339 * testsuite/Makefile.in: Rebuild.
340 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
341 * include/Makefile.in: Rebuild.
343 2001-04-02 Zack Weinberg <zackw@stanford.edu>
345 * testsuite/lib/libjava.exp: Correct typo: 'output from source
346 compiled test', not 'execution from source compiled test'.
347 Use UNTESTED, not XFAIL, for tests which are not run because
348 they depend on a previous test which failed.
350 2001-04-02 Richard Henderson <rth@redhat.com>
352 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
353 the same tree as gcc.
354 * configure: Rebuilt.
356 * exception.cc (_Jv_Throw): Clarify commentary.
358 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
360 * jni.cc (wrap_value<jclass>): New specialization.
362 2001-04-02 Tom Tromey <tromey@redhat.com>
364 * java/io/PrintStream.java (out): Removed field. Fixes PR
366 (write): Call flush, not out.flush, per spec.
367 (close): Flush output stream, per spec. Handle
368 InterruptedIOException.
369 (checkError): Likewise.
370 (flush, print, write): Handle InterruptedIOException per spec.
371 (PrintStream): Don't create BufferedOutputStream.
372 (work_bytes): New field.
373 (writeChars): Use work_bytes. Don't assume `out' is a
374 BufferedOutputStream.
376 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
378 * java/text/MessageFormat.java (setLocale): Added missing `else'.
381 2001-03-30 Tom Tromey <tromey@redhat.com>
383 * jni.cc (add_char): Correctly encode non-ascii characters.
384 (add_char): Define even when INTERPRETER not defined.
385 (mangled_name): Likewise.
386 (_Jv_GetJNIEnvNewFrame): Likewise.
387 (_Jv_LookupJNIMethod): Likewise.
389 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
391 * configure.host: Enable interpreter for PPC.
393 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
395 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
396 to "file.separator", "path.separator", and "java.io.tmpdir" property
398 * java/io/File.java: Likewise.
399 * java/io/natFile.cc (init_native): Likewise.
400 * java/io/natFileWin32.cc (init_native): Likewise.
402 2001-04-01 Per Bothner <per@bothner.com>
404 * java/lang/natString.cc (intern): If string's data does not point to
405 this String, make a fresh String that does.
407 * java/lang/natString.cc (unintern): Replace by static function.
408 * java/lang/String.java (unintern): Remove method.
410 2001-04-01 Per Bothner <per@bothner.com>
412 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
413 (finish): def.deflate needs to be called in a loop.
414 (inbuf, inbufLength): New private fields.
415 (write(int)): Use inbuf.
416 (write(byte[],int,int): Check if pending output in inbuf.
417 * ZipOutputStream.java: Don't use Deflater if stored.
418 Use a Checksum object directly, not via a CheckedOutputStream.
419 (uncompressed_size): New field,
420 (closeEntry): Only write data_directory if needed.
421 (write): If STORED, write directly.
422 Always update crc, and uncompressed_size.
423 (write_entry): Fix lots of protocol erors.
425 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
427 1.3-Compliant Implementation of java.io.File.
428 * java/lang/natSystem.cc (init_properties): Get "file.separator",
429 "path.separator", and "java.io.tmpdir" from the File class, instead
430 of setting them explicitly.
431 * java/io/File.java: Do not canonicalize paths for security manager
432 checks. Call init_native() from static initializer. Do not pass path
433 argument to native methods. New native method declarations. Some
434 security manager checks moved to checkWrite().
435 (equals): Check file system case sensitivity and act appropriatly.
436 (hashCode): Likewise.
437 (isHidden): New method implemented.
438 (performList): Changed prototype. Now takes a class argument specifying
439 the class of the returned array: Strings or File objects. Also added
441 (listFiles): New variants with "File" return type implemented.
442 (createTempFile): Use createNewFile(). Use maxPathLen.
443 (setReadOnly): New method implemented.
444 (listRoots): Likewise.
445 (compareTo): Likewise.
446 (setLastModified): Likewise.
447 (checkWrite): New method.
449 * java/io/natFile.cc: Various functions no longer take canonical path
451 (stat): Handle ISHIDDEN query.
452 (isAbsolute): Remove WIN32 cruft.
453 (performList): New arguments. Handle returning either File[] or String[]
454 arrays. Check with FileFilter or FilenameFilter arguments as
455 appropriate. Use an ArrayList, not a Vector, for the temporary list.
456 (performSetReadOnly): New method implemented.
457 (performListRoots): Likewise.
458 (performSetLastModified): Likewise.
459 (performCreate): Likewise.
460 (init_native): New initialization function.
461 * java/io/natFileWin32.cc: Various functions no longer take canonical
463 (stat): Add FIXME about ISHIDDEN query.
464 (performList): New arguments. Handle returning either File[] or String[]
465 arrays. Check with FileFilter or FilenameFilter arguments as
466 appropriate. Use an ArrayList, not a Vector, for the temporary list.
467 (performSetReadOnly): New. Stubbed.
468 (performListRoots): Likewise.
469 (performSetLastModified): Likewise.
470 (performCreate): Likewise.
471 (init_native) New initialization function.
472 * configure.in: Check for utime() and chmod().
473 * configure: Rebuilt.
474 * include/config.h.in: Rebuilt.
476 Resolves PR libgcj/1759.
478 2001-03-28 Richard Henderson <rth@redhat.com>
480 IA-64 ABI Exception Handling:
481 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
482 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
483 Remove EXCEPTIONSPEC.
484 * configure.host (libgcj_sjlj): Remove.
485 * configure.in (EXCEPTIONSPEC): Remove.
486 (enable-sjlj-exceptions): Detect if not specified.
487 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
488 what header we're looking for.
489 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
490 * Makefile.in, configure: Regenerate.
491 * exception.cc: Don't declare libgcc2 stuff.
492 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
493 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
494 (win32_get_restart_frame): Remove.
495 (struct java_exception_header): New.
496 (__gcj_exception_class): New.
497 (get_exception_header_from_ue): New.
498 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
499 (size_of_encoded_value, read_encoded_value): New.
500 (read_uleb128, read_sleb128, parse_lsda_header): New.
501 (get_ttype_entry, __gcj_personality_sj0): New.
502 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
504 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
506 * javax/naming/InitialContext.java (init): Fix typo.
507 (composeName): Remove unnecessary semicolon.
508 (addToEnvironment): Remove unnecessary semicolon.
509 (addToEnvironment): Use put() instead of add().
511 * javax/naming/InitialContext.java (InitialContext):
513 (destroySubcontext): Method doesn't return a result.
514 * javax/naming/Context.java: Import java.util.Hashtable.
515 * javax/naming/Name.java: Import java.util.Enumeration.
517 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
519 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
520 objects in subdirectories.
521 * Makefile.in: Rebuilt.
523 2001-03-25 Richard Henderson <rth@redhat.com>
525 * exception.cc (java_eh_info): Make value type jthrowable.
526 (_Jv_type_matcher): Remove now unneeded cast.
527 (_Jv_Throw): Make argument type jthrowable. Munge name
528 for SJLJ_EXCEPTIONS here ...
529 * gcj/cni.h: ... not here.
531 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
533 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
534 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
535 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
536 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
537 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
538 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
539 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
540 java/lang/natClass.cc, java/lang/natClassLoader.cc,
541 java/lang/natDouble.cc, java/lang/natObject.cc,
542 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
543 java/lang/natString.cc, java/lang/natSystem.cc,
544 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
545 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
546 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
547 java/util/zip/natInflater.cc:
548 Use throw, not JvThrow or _Jv_Throw.
550 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
552 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
553 paramater, bump it to 1.
554 * java/util/Hashtable.java (Hashtable): Likewise.
556 2001-03-23 Per Bothner <per@bothner.com>
558 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
559 check for errors, since we don't want to throw exception on
560 overflow/underflow. Instead, trim whitespace, and then check that
561 _strtod_r uses up all the rest of the string.
563 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
564 ancestors array is invalid for interfaces, so do that *after*
565 check that the target type is not an interface.
567 2000-03-23 Jeff Sturm <jsturm@one-point.com>
569 * prims.cc (_Jv_FindClassFromSignature): Check return of
570 recursive call. Do not abort on invalid signature; return NULL
573 2001-03-22 Tom Tromey <tromey@redhat.com>
575 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
576 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
578 * include/jvm.h (_Jv_ResolveField): Declare.
579 * include/java-interp.h (_Jv_ResolveField): Don't declare.
580 * resolve.cc (_Jv_ResolveField): No longer conditional on
583 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
585 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
587 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
588 to a temporary file, then invoke libtool with the -objectlist
590 (libgcjx.la): Likewise.
591 * Makefile.in: Rebuilt.
593 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
595 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
597 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
599 * jni.cc (add_char): Handle `.' like `/'.
601 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
603 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
604 initialize if exception_types is null.
605 * java/lang/reflect/Constructor.java: Likewise.
606 * java/lang/reflect/natConstructor.cc (getType): Initialize
607 exception_types to an empty Object array.
609 2001-03-21 Tom Tromey <tromey@redhat.com>
611 * configure: Rebuilt.
612 * configure.in (GCJFLAGS): Subst.
613 * Makefile.in: Rebuilt.
614 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
615 (gij_LDFLAGS): Likewise.
616 (JC1FLAGS): Added GCJFLAGS and removed -g.
618 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
619 read/write case. Fixes PR libgcj/2338.
621 2001-03-20 Warren Levy <warrenl@redhat.com>
623 * java/util/TimeZone.java: Sync up with Classpath. Includes new
624 and corrected SimpleTimeZone's for the timezones hash table.
626 2001-03-19 Per Bothner <per@bothner.com>
628 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
629 "canonicalize" "../../xxx" to "/xxx".
631 2001-03-19 Mark Wielaard <mark@klomp.org>
633 * java/util/ArrayList.java: Remove RCS keywords from comments
634 * java/util/BasicMapEntry.java: idem
635 * java/util/Dictionary.java: idem
636 * java/util/HashSet.java: idem
638 * java/util/EventObject.java: reindent
639 * java/util/Properties.java: idem
640 * java/util/SortedMap.java: idem
642 * java/util/Enumeration.java: Merge with Classpath
643 * java/util/EventListener.java: idem
644 * java/util/Observable.java: idem
645 * java/util/Observer.java: idem
646 * java/util/Stack.java: idem
648 2001-03-17 Tom Tromey <tromey@redhat.com>
650 * java/lang/natString.cc (rehash): Don't bother with memset;
651 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
653 (UNMASK_PTR): New macro.
654 (intern): Unmask pointer before returning it. Register finalizer
656 (unintern): Handle case where
657 (MASK_PTR): New macro.
658 (PTR_MAKSED): Likewise.
659 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
661 2001-03-01 Andrew Haley <aph@redhat.com>
663 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
664 stackTrace buffer to a correctly aligned pointer array.
666 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
668 * java/lang/Runtime.java (_exit): Declare new package-private native.
669 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
670 without a security manager check.
671 (exit): Call _exit after security check.
672 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
674 * java/lang/System.java (setSecurityManager): If a security manager
675 is already in place, call checkPermission.
676 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
677 throws an exception, try to deal with it gracefully.
678 * java/lang/ExceptionInInitializerError.java (printStackTrace):
679 Only try to print the subordinate stack trace if "exception" is set.
680 Print our class name first.
682 2001-03-08 Tom Tromey <tromey@redhat.com>
684 * java/io/ObjectStreamClass.java (setUID): Don't write interface
685 info for array classes.
686 Fixes PR libgcj/1971.
688 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
690 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
693 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
695 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
696 instead of the new JDK1.2 API. This is simpler and makes
697 back-porting the classes to JDK1.1 trivial.
698 (readObject): likewise.
700 2001-03-01 Per Bothner <per@bothner.com>
702 Changes merged from Kawa's gnu.math.
703 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
704 (rshift(int[],int[],int,int): Removed - not needed.
705 (gcd): Use rshift0 rather than rshift.
706 * java/math/BigInteger.java (setShiftRight): Likewise.
707 (divide): Simplify by using rshift0.
708 (divide): Zero-extend results if high-order bit set.
710 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
712 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
715 2001-02-23 Per Bothner <per@bothner.com>
717 Change to sometimes include class name in ClassFormatError message.
718 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
719 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
720 boolean instead of throwing ClassFormatError on failure.
721 (throw_class_format_error): Change static function to method.
722 (_Jv_ClassReader): New inline methods verify_identifier,
723 two overloads of verify_classname, verify_field_signature, and
724 verify_method_signature
725 * include/java-interp.h: Update declarations to return bool.
726 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
727 ClassFormatError since _Jv_VerifyClassName now returns bool.
729 2001-02-23 Per Bothner <per@bothner.com>
731 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
732 c++filt to select java-style output.
734 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
736 Fix for PR java/2040:
737 * java/util/HashMap.java (HashMap): Don't throw exception for
738 loadFactor > 1. Add exception messages.
739 * java/util/Hashtable.java (Hashtable): Likewise.
741 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
743 Disable libgcjx by default.
744 * configure.in: Add support for --enable-java-awt configure option.
745 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
746 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
747 * Makefile.in: Rebuilt.
748 * configure: Rebuilt.
750 2001-02-20 Tom Tromey <tromey@redhat.com>
752 * java/io/PipedWriter.java (flush): Throw exception if stream
754 * java/io/OutputStreamWriter.java (write): Throw exception if
756 (writeChars): Don't throw exception if stream closed.
757 * java/io/CharArrayWriter.java (closed): New field.
759 (flush): Throw exception if stream closed.
760 (reset): Synchronize on correct lock. Allow stream to be
762 (toCharArray, toString, writeTo): Synchronize.
763 (write): Throwe exception if stream closed.
764 * java/io/BufferedWriter.java (close): Clear `buffer'.
765 (flush): Throw IOException if stream is closed.
768 2001-02-16 Tom Tromey <tromey@cygnus.com>
770 * java/lang/ThreadGroup.java (activeCount): Only include threads
772 (enumerate): Likewise.
774 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
776 * java/lang/Integer.java (getInteger): Return default argument if
777 property is not set. Don't call decode with null argument.
778 * java/lang/Long.java (getLong): Likewise.
780 * java/io/CharArrayReader.java (CharArrayReader): Throw
781 IllegalArgumentException if constructor arguments are illegal.
782 (ready): Return false if no more characters can be read.
783 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
785 2001-02-17 Mark Wielaard <mark@klomp.org>
787 * java/util/TimerTask.java: New version from Classpath.
789 2001-02-17 Mark Wielaard <mark@klomp.org>
791 Remerge with Classpath
792 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
793 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
794 (readByte): Use convertToByte().
795 (readChar): Use convertToChar().
796 (readInt): Use convertToInt().
797 (readLong): Use convertToLong().
798 (readShort): Use convertToShort().
799 (readUnsignedByte): Use convertToUnsignedByte().
800 (readUnsignedShort): Use convertToUnsignedShort().
801 (readUTF): Use convertToUTF().
803 (convertToBoolean): Resurrected.
804 (convertToByte): Ditto.
805 (convertToChar): Ditto.
806 (convertToInt): Ditto.
807 (convertToLong): Ditto.
808 (convertToShort): Ditto.
809 (convertToUnsignedByte): Ditto.
810 (convertToUnsignedShort): Ditto.
811 (convertToUTF): Ditto.
813 2001-02-17 Mark Wielaard <mark@klomp.org>
817 2001-02-17 Mark Wielaard <mark@klomp.org>
819 * java/io/DataInputStream.java: update copyright notice
820 * java/io/PrintWriter.java: idem
821 * java/io/Reader.java: idem
822 * java/io/StreamTokenizer.java: idem
823 * java/io/StringReader.java: idem
824 * java/lang/reflect/ReflectPermission.java: idem
826 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
828 * java/util/TreeSet.java (clone): Made subclass safe, use
829 super.clone(), not new.
830 * java/util/TreeMap.java (clone): Likewise.
832 * java/util/TreeMap.java (nil): Made non-final.
833 (clone): Create new nil node for copy.
835 * java/util/HashSet.java (clone): Made subclass safe, use
836 super.clone(), not new.
838 2001-02-14 Andrew Haley <aph@redhat.com>
840 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
843 2001-02-15 Anthony Green <green@redhat.com>
845 * defineclass.cc: Don't include alloca.h.
846 (prepare_pool_entry): Convert alloca to __builtin_alloca.
847 * interpret.cc (run_normal): Ditto.
849 * java/lang/natDouble.cc (parseDouble): Ditto.
851 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
853 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
855 * java/util/Collections.java (ReverseComparator): New static class.
856 (reverseOrder): Return static instance of ReverseComparator.
858 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
859 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
860 Rectangle.clone(), not Object.clone().
862 * java/util/HashSet.java (clone): Remove try/catch.
864 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
865 * java/util/Collection.java: Likewise.
866 * java/util/Comparator.java: Likewise.
867 * java/util/Dictionary.java: Likewise.
868 * java/util/Iterator.java: Likewise.
869 * java/util/ListIterator.java: Likewise.
870 * java/util/Map.java: Likewise.
871 * java/util/Set.java: Likewise.
873 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
875 * java/util/TreeMap.java: New file.
876 * java/util/TreeSet.java: New file.
877 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
878 * Makefile.in: Rebuilt.
879 * java/util/HashSet.java (clone): Use constructor instead of calling
881 * java/util/SortedSet.java: Sync with classpath.
882 * java/util/HashMap.java (hash): Use if statement instead of ternary,
885 * java/lang/natClass.cc (getSignature): Don't try to dereference
886 param_types if it is null. Instead, take this to mean "no parameters".
887 * java/lang/TreeMap.java (TreeIterator.next): Throw
888 NoSuchElementException in preference to ConcurrentModificationException.
889 (TreeIterator.remove): Throw IllegalStateException in preference to
890 ConcurrentModificationException.
891 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
892 throw a NoSuchElementException.
893 (SubMap.lastKey): Likewise.
895 2001-02-13 Tom Tromey <tromey@redhat.com>
897 * java/io/PipedReader.java (ready): Throw IOException if pipe
899 * java/io/FilterReader.java (close): Don't clear `in'.
900 * java/io/CharArrayReader.java (mark): Throw IOException if stream
902 (read, ready, reset, skip): Added exception message.
903 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
904 Perform checkStatus check inside synchronized block.
906 2001-02-13 Tom Tromey <tromey@redhat.com>
908 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
910 2001-02-13 Tom Tromey <tromey@redhat.com>
912 Fix for PR libgcj/1351:
913 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
915 Include Thread.h and InterruptedIOException.h.
917 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
919 * java/io/BlockDataException.java: Removed.
920 * java/io/ObjectInputStream.java (readObject): Throw
921 StreamCorruptedException, not BlockDataException.
922 * Makefile.am: Remove BlockDataException.
923 * Makefile.in: Rebuild.
925 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
926 Tom Tromey <tromey@redhat.com>
928 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
931 2001-02-09 Tom Tromey <tromey@redhat.com>
933 * java/util/Timer.java: New version from Classpath.
935 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
937 * java/lang/Double.java (doubleToRawLongBits): Now native.
938 * java/lang/Float.java (floatToRawIntBits): Likewise.
939 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
940 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
942 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
944 * java/io/File.java (java.net): Imported.
945 (getAbsoluteFile): Added.
946 (getCanonicalPath): Likewise.
949 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
951 * java/lang/Byte.java: Remove redundant instanceof and null checks.
952 * java/lang/Integer.java: Likewise.
953 * java/lang/Long.java: Likewise.
954 * java/lang/Short.java: Likewise.
955 * java/lang/Double.java: Likewise.
956 (doubleToRawLongBits): New method.
957 * java/lang/Float.java: As above.
958 (floatToRawIntBits): New method.
960 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
961 IOException if stream closed.
963 2001-02-08 Tom Tromey <tromey@redhat.com>
965 * java/lang/Float.java (parseFloat): New method.
967 2001-02-08 Tom Tromey <tromey@redhat.com>
969 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
970 * java/io/InputStreamReader.java (ready, read): Throw IOException
971 if stream has been closed.
973 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
975 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
976 Change sources.redhat.com and sourceware.cygnus.com references to
979 2001-02-07 Tom Tromey <tromey@redhat.com>
981 Fix for PR libgcj/1906:
982 * java/text/MessageFormat.java (setLocale): Use named class
985 (format(Object,StringBuffer,FieldPosition)): Special case if
986 argument is an Object[].
988 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
990 * java/util/Arrays.java: Removed "cmp" methods.
991 (qsort): Don't use "cmp".
994 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
996 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
997 sort. Fix for PR java/1895.
999 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1001 * configure.host: Use sjlj-exceptions for Alpha.
1003 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1005 * libgcj.spec.in: Don't force static libgcc into the executable.
1006 * configure.in (FORCELIBGCCSPEC): Removed.
1007 * configure: Rebuilt.
1009 2001-01-31 Tom Tromey <tromey@redhat.com>
1011 * Makefile.in: Rebuilt.
1012 * Makefile.am (LTCXXCOMPILE): New macro.
1014 2001-01-26 Andrew Haley <aph@redhat.com>
1016 (INIT_FPE): Use a direct system call to set the handler.
1018 2001-01-27 Richard Henderson <rth@redhat.com>
1020 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1022 2001-01-27 Tom Tromey <tromey@redhat.com>
1024 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1025 native interface structure.
1027 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1029 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1031 (read (byte[], int, int)): Only call readNextBlock() if the block
1032 buffer would actually be overrun. Increment blockDataPosition.
1033 (callReadMethod): Propagate exceptions from invocation target.
1034 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1035 exceptions from invocation target.
1037 2001-01-26 Tom Tromey <tromey@redhat.com>
1039 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1040 to internal representation.
1041 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1042 _Jv_FindClassFromSignature.
1044 2001-01-26 Warren Levy <warrenl@redhat.com>
1046 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1047 and timezone if they are available on the system.
1049 2001-01-24 Tom Tromey <tromey@redhat.com>
1051 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1053 2001-01-24 Tom Tromey <tromey@redhat.com>
1055 * Makefile.in: Rebuilt.
1056 * Makefile.am (c_source_files): Added sf_fabs.c.
1057 * java/lang/sf_fabs.c: New file.
1059 2001-01-19 Warren Levy <warrenl@redhat.com>
1061 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1062 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1063 correctly. Adjust properly from 0-23 clock hour.
1065 2001-01-17 Mark Wielaard <mark@klomp.org>
1067 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1069 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1071 * java/lang/Class.h (isInterface): Move implementation from
1072 natClass.cc. Declare inline.
1073 (Class): Add default constructor.
1074 * java/lang/Object.h: Update comments.
1075 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1076 initialize superclass, saving a call if super is already initialized.
1078 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1080 * prims.cc (init_prim_class): Deleted.
1081 (DECLARE_PRIM_TYPE): Rewritten.
1082 * java/lang/Class.h (stdio.h): Include removed.
1083 (stddef.h): Included.
1084 (java/lang/reflect/Modifier.h): Likewise.
1085 (Class): Contructor now takes arguments, initializes fields.
1086 (initializePrim): Prototype deleted.
1087 * java/lang/natClass.cc (initializePrim): Deleted.
1089 2001-01-16 Warren Levy <warrenl@redhat.com>
1091 * java/math/BigInteger.java: Update Copyright year.
1093 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1095 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1098 2001-01-14 Mark Wielaard <mark@klomp.org>
1099 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1100 (decode): Merge comments with Classpath, don't throw Exception
1102 2001-01-12 Tom Tromey <tromey@redhat.com>
1104 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1108 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1109 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1110 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1111 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1112 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1114 * java/lang/natSystem.cc: Include locale.h if it exists.
1115 * configure: Rebuilt.
1116 * configure.in: Check for locale.h.
1118 2001-01-11 Tom Tromey <tromey@redhat.com>
1120 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1121 (Cursor(int), getPredefinedCursor): Throw exception if argument
1124 2001-01-03 Tom Tromey <tromey@redhat.com>
1126 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1127 (getLocationOnScreen): Wrote.
1129 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1131 * Makefile.am: Re-enable dependencies.
1132 * Makefile.in: Rebuilt.
1134 2001-01-10 Warren Levy <warrenl@redhat.com>
1136 * java/math/BigDecimal.java (divide): Fixed comment.
1138 2001-01-10 Warren Levy <warrenl@redhat.com>
1140 Fix for PR libgcj/1596:
1141 * java/math/BigDecimal.java (divide): Check newScale for validity.
1142 Ensure that BigInteger.pow() is called with a non-negative value.
1143 (setScale (int)): New public method.
1144 (setScale (int,int)): New public method.
1146 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1148 Fix for PR libgcj/1338:
1149 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1150 commentChar. Fixed typos in comments.
1152 2001-01-08 Warren Levy <warrenl@redhat.com>
1154 Fix for PR libgcj/1411:
1155 * Makefile.am: Removed java/util/natTimeZone.cc.
1156 * Makefile.in: Rebuilt.
1157 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1158 missing localized timezone names.
1159 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1160 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1161 (init_properties): Set user.timezone property.
1162 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1163 default timezone names; removed non-standard ones. Use standard
1165 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1167 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1169 (getDefaultTimeZoneId): Removed.
1171 * java/util/natTimeZone.cc: Removed.
1173 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1175 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1176 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1177 (_Jv_GetArrayClass): New inline function.
1178 (arrayclass): New field.
1179 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1180 _Jv_GetArrayElementFromElementType.
1181 (_Jv_NewPrimArray): Ditto.
1182 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1183 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1184 Set Modifier::ABSTRACT.
1185 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1186 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1187 Now synchronized. Array classes are now referenced from
1188 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1189 Set array classes' accessibility flags correctly. Optimize so that
1190 all array classes share the same IDT.
1191 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1192 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1193 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1194 in superclasses from overwriting classes own fields.
1195 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1196 Modifier::isAbstract().
1197 (null_idt): New static field.
1198 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1200 (_Jv_IndexOf): Made inline.
1201 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1203 2001-01-08 Tom Tromey <tromey@redhat.com>
1205 Fix for PR java/1586:
1206 * Makefile.in: Rebuilt.
1207 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1209 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1211 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1212 from the c++ compiler.
1213 * Makefile.in: Rebuilt.
1215 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1217 All files with updated copyright.
1218 * prims.cc (class _Jv_PrimClass): Removed.
1219 (init_prim_class): New function.
1220 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1221 `_Jv_PrimClass' in primitive type declarations. Assign to the
1222 value returned by `init_prim_class.'
1223 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1224 primitive type declarations.
1225 (JvPrimClass): Cast to `jclass' removed.
1226 * java/lang/Class.h (Class): New constructor.
1227 (Class): New copy constructor.
1228 (initializePrim): New prototype.
1229 (_Jv_PrimClass): Field removed.
1230 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1231 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1232 (class java::lang::Object): `finalize' moved up front.
1233 * java/lang/natClass.cc
1234 (isAssignableFrom): Turned outline.
1235 (isInstance): Likewise.
1236 (isInterface): Likewise, fixed indentation.
1237 (initializePrim): New function.
1239 2001-01-07 Anthony Green <green@redhat.com>
1241 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1243 * Makefile.in: Rebuilt.
1245 * scripts/TexinfoDoclet.java: New file.
1247 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1248 doc/java-awt-color.texi, doc/java-lang.texi,
1249 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1250 doc/java-awt-event.texi, doc/java-net.texi,
1251 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1252 doc/java-awt-image.texi, doc/java-security.texi,
1253 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1254 doc/java-text.texi, doc/java-beans-beancontext.texi,
1255 doc/java-util-jar.texi, doc/java-beans.texi,
1256 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1257 doc/java-lang-ref.texi: New files.
1259 2001-01-07 Anthony Green <green@redhat.com>
1261 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1262 be used for both input and output, so don't clear doInput.
1264 * java/lang/StringBuffer.java: Fix comments.
1266 2001-01-06 Anthony Green <green@redhat.com>
1268 * java/beans/PropertyDescriptor.java: Fix comment.
1269 * java/io/PushbackReader.java: Fix comment.
1270 * java/io/ObjectStreamClass.java: Fix comment.
1271 * java/io/DataInputStream.java: Fix comment.
1272 * java/io/PipedInputStream.java: Fix comments.
1273 * java/io/PipedReader.java: Fix comments.
1274 * java/sql/DatabaseMetaData.java: Fix comments.
1276 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1278 * java/io/PipedReader: Synchronize on "lock" instead of this.
1280 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1282 * java/lang/Thread.java: Update comment.
1284 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1285 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1286 * java/io/PipedReader: New implementation based on new
1288 * java/io/PipedWriter: Updated to match new PipedReader.
1290 2001-01-03 Tom Tromey <tromey@redhat.com>
1292 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1293 (getViewportSize): Insets include scrollbar size.
1294 (doLayout): Finished.
1295 (getScrollPosition): Wrote.
1296 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1298 2001-01-02 Tom Tromey <tromey@redhat.com>
1300 * java/awt/ScrollPane.java: Wrote.
1301 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1304 * java/awt/Panel.java (Panel()): Fixed.
1306 * java/awt/Component.java (isShowing): Return false if no peer
1307 exists, and true if component is visible and no parent exists.
1308 (getLocationOnScreen): Wrote.
1309 (getPreferredSize): Removed FIXME comment.
1310 (getMinimumSize): Likewise.
1311 (getAlignmentX, getAlignmentY): Wrote.
1313 (requestFocus): Wrote.
1314 (transferFocus): Wrote.
1315 (findNextFocusComponent): New method.
1316 (hasFocus()): Wrote.
1317 (checkImage): Wrote.
1318 (enableEvents): Call setEventMask on the peer.
1320 * java/awt/Container.java (list): Use super.list() to print self.
1321 (findNextFocusComponent): New method.
1322 (setLayout): Call invalidate.
1323 (findComponentAt): Wrote.
1325 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1327 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1328 the correct versions of various linuxthreads functions get linked.
1329 * Makefile.in: Rebuilt.
1330 * java/lang/natThread.cc (finalize_native): New static function. Call
1331 _Jv_ThreadDestroyData.
1332 (initialize_native): Register finalizer for "data".
1333 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1334 (_Jv_ThreadDestroyData): New prototype.
1335 * include/win32-threads.h: Ditto.
1336 * include/no-threads.h: Ditto.
1337 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1338 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1339 move mutex and condition variable destroy code from:
1340 (really_start): ...here.
1341 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1342 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1343 (_Jv_ThreadDestroyData): Implemented.
1344 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1345 (_Jv_AllocArray): Ditto.
1347 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1349 * java/sql/DriverManager.java (getConnection): Don't set user/password
1352 2000-12-27 Warren Levy <warrenl@redhat.com>
1354 Fix for PR libgcj/1358:
1355 * java/lang/System.java: Update Copyright date properly.
1356 * java/util/Calendar.java: Fix typo in comment.
1357 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1358 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1359 initialize times. Spec says to set H:M:S values to zero only if
1361 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1362 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1363 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1364 timezones and GMT offsets, being careful to account for units of
1365 milliseconds vs. seconds.
1367 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1369 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1370 not be assigned to Object.
1372 Fix for PR libgcj/1516:
1373 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1375 (can_widen): Declared inline. Remove redundant checks for void
1376 arguments and char->short conversion. Add special case for boolean
1378 (ffi_type): Declared inline.
1379 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1381 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1383 * java/sql/SQLWarning.java: Fixed typo in comment.
1385 2000-12-26 Tom Tromey <tromey@redhat.com>
1387 * java/awt/MenuItem.java (paramString): Now protected.
1389 * java/awt/MenuShortcut.java: Implements Serializable.
1391 * java/awt/MenuBar.java: Rewrote from scratch.
1393 * java/awt/MenuComponent.java (removeNotify): Wrote.
1394 Implements Serializable.
1396 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1399 * java/awt/CheckboxMenuItem.java: Wrote.
1401 2000-12-25 Tom Tromey <tromey@redhat.com>
1403 * java/awt/MenuContainer.java: Fixed typo.
1405 * Makefile.in: Rebuilt.
1406 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1407 * java/awt/SystemColor.java: New file.
1409 * java/awt/Color.java (rgba): Now package-private.
1411 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1413 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1416 * java/awt/MenuItem.java (addNotify): New method.
1417 (MenuItem(String,MenuShortcut)): New constructor.
1418 (setLabel): Notify peer of change.
1419 (setEnabled): Likewise.
1421 * java/awt/GridLayout.java (toString): New method.
1423 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1424 (FlowLayout): Check for LEADING and TRAILING.
1425 (setAlignment): Likewise.
1426 (layoutContainer): Handle component orientation.
1428 * java/awt/Component.java (orientatin): New field.
1429 (setComponentOrientation): Wrote.
1430 (getComponentOrientation): Wrote.
1432 * java/awt/Event.java (Event): Implements Serializable.
1433 (consumed): New field for serialization.
1434 * java/awt/Dimension.java (Dimension): Implements Serializable.
1435 * java/awt/Cursor.java (Cursor): Implements Serializable.
1436 * java/awt/Container.java (Container): No longer abstract.
1438 * java/awt/Choice.java: Wrote.
1439 * java/awt/Checkbox.java: Wrote.
1440 * java/awt/ItemSelectable.java: Documented.
1441 * java/awt/CheckboxGroup.java: Wrote.
1443 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1445 (getSize): Likewise.
1447 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1449 * java/io/FileDescriptor.java: Initialize fd to -1.
1450 Remove default constructor.
1452 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1454 * java/lang/mprec.h: Change C9X reference to refer to C99.
1456 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1458 * java/lang/Throwable.java (trace_enabled): New static field.
1459 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1460 trace_enabled not set.
1461 * prims.cc (main_init): Turn off trace_enabled while creating
1462 default exception objects.
1464 2000-12-21 Tom Tromey <tromey@redhat.com>
1466 * java/beans/PropertyChangeListener.java: Extends EventListener.
1467 * java/beans/VetoableChangeListener.java: Extends EventListener.
1469 * java/util/zip/Deflater.java (update, init): Now private.
1471 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1473 * java/util/BasicMapEntry.java: Re-added.
1474 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1475 (putAll): Test for BasicMapEntry.
1476 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1477 (putAll): Test for BasicMapEntry.
1478 Change references from `HashMap.Entry' to `Entry' in various places.
1479 * Makefile.am: Add BasicMapEntry.java.
1480 * Makefile.in: Rebuilt.
1482 2000-12-18 Warren Levy <warrenl@redhat.com>
1484 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1485 need to set timezone to a valid non-null value. Partial fix for
1488 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1490 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1492 * java/awt/Button.java (addNotify): Likewise.
1493 * java/awt/Label.java (addNotify): Likewise.
1494 * java/awt/Panel.java (addNotify): Likewise.
1495 * java/awt/Scrollbar.java (addNotify): Likewise.
1496 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1497 Remove redundant null checks.
1499 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1501 * COPYING: Update to current
1502 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1503 to 19yy as example year in copyright notice).
1505 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1507 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1508 end-of-stream if avail_in is 0.
1510 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1512 * java/util/ArrayList.java (data): Declare transient.
1513 (serialPersistantFields): Removed.
1514 (readObject): Use defaultReadObject(), not readFields().
1515 (writeObject): Use defaultWriteObject(), not writeFields().
1517 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1519 * java/util/Hashtable.java (put): Remove `last' variable.
1520 Link new entry to head of list.
1521 * java/util/HashMap.java (put): Ditto.
1523 2000-12-15 Tom Tromey <tromey@redhat.com>
1525 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1526 loader to Class.forName.
1528 2000-12-14 Tom Tromey <tromey@redhat.com>
1530 * java/util/ResourceBundle.java
1531 (getBundle(String,Locale,ClassLoader)): New method.
1532 (trySomeGetBundle): Added `loader' argument.
1533 (partialGetBundle): Likewise.
1535 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1536 maximumFractionDigits, maximumIntegerDigits,
1537 minimumFractionDigits, minimumIntegerDigits): Now
1540 * java/lang/Thread.java (checkAccess): Now final.
1542 * java/lang/RuntimePermission.java: Class now final.
1544 * java/io/StringWriter.java (StringWriter(int)): Now public.
1546 * java/io/SerializablePermission.java (legal_names): Now private.
1548 * java/lang/Character.java: Updated UnicodeBlock constants.
1549 * scripts/blocks.pl: Special case private use and surrogate
1552 2000-12-12 Tom Tromey <tromey@redhat.com>
1554 * Makefile.in: Rebuilt.
1555 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1557 (GCJCOMPILE): Use it.
1560 2000-12-11 Tom Tromey <tromey@redhat.com>
1562 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1563 New static final fields.
1565 * scripts/classes.pl (scan): Skip lines with leading `*'.
1566 Fix for PR libgcj/378.
1568 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1570 * configure.in: Remove check for -fuse-divide-subroutine.
1571 * configure: Rebuilt.
1573 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1575 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1577 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1579 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1580 Remove BasicMapEntry.java and Bucket.java.
1581 * Makefile.in: Rebuilt.
1582 * java/util/HashMap.java: Rewritten.
1583 * java/util/HashSet.java: Imported from classpath.
1584 * java/util/WeakHashMap.java: Imported from classpath.
1585 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1586 * java/util/Bucket.java: Deleted.
1587 * java/util/BasicMapEntry.java: Deleted.
1588 * java/util/Collections.java (search): Use a for-loop, not iterator
1590 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1591 of elements in source.
1592 (max): Use a for-loop.
1594 (reverse): Keep track of positions instead of using Iterator's
1595 nextIndex() and previousIndex().
1596 (shuffle(List)): Initialize defaultRandom if required using
1597 double-check thread safety idiom. Call two-argument shuffle method
1598 using defaultRandom.
1599 (defaultRandom): New field.
1600 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1601 using previousIndex() and nextIndex().
1602 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1603 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1604 * java/util/AbstractMap.java (toString): Use StringBuffer.
1605 * java/lang/ref/PhantomReference.java: Imported from classpath.
1606 * java/lang/ref/SoftReference.java: Ditto.
1607 * java/lang/ref/Reference.java: Ditto.
1608 * java/lang/ref/WeakReference.java: Ditto.
1609 * java/lang/ref/ReferenceQueue.java: Ditto.
1611 2000-12-10 Richard Henderson <rth@redhat.com>
1613 * configure.host: Recognize alpha*-*, not alphaev6-*.
1615 2000-12-09 Anthony Green <green@redhat.com>
1617 * configure.host: Enable interpreter for Alpha.
1619 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1621 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1622 (ZIP): Points at fastjar instead of zip.
1623 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1624 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1625 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1626 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1627 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1628 ($(x_java_source_files:.java=.class):): Likewise.
1629 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1631 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1632 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1633 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1634 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1635 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1636 gnu/gcj/runtime/VMClassLoader.h:,
1637 java/io/ObjectInputStream$$GetField.h:,
1638 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1639 (Makefile.in): Rebuilt.
1641 2000-12-08 Tom Tromey <tromey@redhat.com>
1644 * configure: Rebuilt.
1645 * configure.in: Use echo, not `:', to create .d files.
1647 2000-12-08 Warren Levy <warrenl@redhat.com>
1649 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1650 NullPointerException so proper check of offset can be done.
1652 2000-12-08 Warren Levy <warrenl@redhat.com>
1654 * java/io/FileInputStream.java (close): Check if the fd is valid.
1655 * java/io/RandomAccessFile.java (close): Ditto.
1656 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1657 * java/net/PlainSocketImpl.java (close): Ditto.
1659 2000-12-06 Tom Tromey <tromey@redhat.com>
1661 * java/awt/GridBagConstraints.java: Filled in values for static
1664 * java/util/BitSet.java: Updated copyright notice.
1666 * Makefile.in: Rebuilt.
1667 * Makefile.am (awt_java_source_files): Added new file.
1668 * java/awt/GridBagConstraints.java: New file.
1670 2000-12-05 Tom Tromey <tromey@redhat.com>
1672 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1673 Now package-private, not protected.
1674 * java/text/DateFormatSymbols.java (equals): Now private.
1675 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1676 * java/util/BitSet.java: Class no longer final.
1678 2000-12-04 Warren Levy <warrenl@redhat.com>
1680 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1681 out code dependent on compiler and library changes.
1683 2000-12-04 Warren Levy <warrenl@redhat.com>
1685 * java/io/FilePermission.java: Made class final per spec.
1686 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1687 method name to match spec (fixed typo).
1688 * java/util/LinkedList.java: Implements List.
1690 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1692 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1693 Edgar Villanueva <edgarvil@home.com>.
1695 2000-12-03 Tom Tromey <tromey@redhat.com>
1697 * java/awt/geom/Point2D.java: Added protected constructor.
1698 (equals): New method.
1699 (Float.setLocation(float,float)): New method.
1700 * java/awt/geom/Dimension2D.java: Added protected constructor.
1701 * java/awt/geom/AffineTransform.java: Made all constants public.
1702 (concatenate): Fixed typo in name.
1703 * java/awt/event/WindowAdapter.java: Class now abstract.
1704 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1705 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1708 * java/awt/AWTError.java: Extend Error, not
1709 IllegalStateException.
1711 * Makefile.in: Rebuilt.
1712 * Makefile.am (awt_java_source_files): Added new file.
1713 * java/awt/geom/RoundRectangle2D.java: New file.
1715 * Makefile.in: Rebuilt.
1716 * Makefile.am (awt_java_source_files): Added new file.
1717 * java/awt/FlowLayout.java: New file.
1719 * Makefile.in: Rebuilt.
1720 * Makefile.am (awt_java_source_files): Added new file.
1721 * java/awt/GridLayout.java: New file.
1723 2000-12-02 Tom Tromey <tromey@redhat.com>
1725 * Makefile.in: Rebuilt.
1726 * Makefile.am (awt_java_source_files): Added new files.
1727 * java/awt/CardLayout.java: New file.
1728 * java/awt/AWTPermission.java: New file.
1730 2000-12-01 Tom Tromey <tromey@redhat.com>
1732 * java/util/Vector.java (insertElementAt): Unconditionally
1733 increment elementCount.
1734 (removeRange): Clear unused slots in vector.
1736 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1738 * java/lang/natMath.cc: Declare fabsf() function.
1739 * java/lang/mprec.h: Don't include math.h.
1740 * java/lang/dtoa.c: Include string.h.
1741 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1744 From Adam Welc <welc@cs.purdue.edu>:
1745 * java/util/LinkedList.java (removeFirst): Update `first' field.
1746 Handle the last == first case.
1747 (removeLast): Update `last' field. Handle the last == first case.
1749 2000-12-01 Warren Levy <warrenl@cygnus.com>
1751 * Makefile.am: Added entries for new java.sql modules.
1752 * Makefile.in: Rebuilt.
1754 2000-12-01 Warren Levy <warrenl@cygnus.com>
1756 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1757 that aren't quite 1.2 compatible yet.
1759 2000-11-30 Warren Levy <warrenl@cygnus.com>
1761 * java/sql/Array.java: New file from classpath.
1762 * java/sql/BatchUpdateException.java: Ditto.
1763 * java/sql/Blob.java: Ditto.
1764 * java/sql/Clob.java: Ditto.
1765 * java/sql/Ref.java: Ditto.
1766 * java/sql/SQLData.java: Ditto.
1767 * java/sql/SQLInput.java: Ditto.
1768 * java/sql/SQLOutput.java: Ditto.
1769 * java/sql/Struct.java: Ditto.
1770 * java/sql/CallableStatement.java: Merged file from claspath.
1771 * java/sql/Connection.java: Ditto.
1772 * java/sql/DataTruncation.java: Ditto.
1773 * java/sql/DatabaseMetaData.java: Ditto.
1774 * java/sql/DriverManager.java: Ditto.
1775 * java/sql/PreparedStatement.java: Ditto.
1776 * java/sql/ResultSet.java: Ditto.
1777 * java/sql/ResultSetMetaData.java: Ditto.
1778 * java/sql/SQLException.java: Ditto.
1779 * java/sql/SQLWarning.java: Ditto.
1780 * java/sql/Statement.java: Ditto.
1781 * java/sql/Types.java: Ditto.
1783 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1785 * java/lang/natSystem.cc (init_properties): Set user.language and
1787 * configure.in: Check for setlocale.
1788 * configure: Rebuilt.
1789 * include/config.h.in: Rebuilt.
1791 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1792 the infate() call didn't deliver any output. Throw a ZipException if
1793 the needsDictionary() call returns true.
1794 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1795 * java/io/InputStreamReader: Use the default buffer size for the
1796 contained BufferedInputStream.
1798 2000-11-28 Warren Levy <warrenl@cygnus.com>
1800 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1801 more time zone entries.
1802 * java/text/SimpleDateFormat.java (format): Added case for
1805 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1807 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1808 directly rather than read() in all cases. Make primitive read
1809 implementations more efficient, as defined in JDK online docs.
1810 (skipBytes): Behave like the JDK's implementation.
1811 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1812 closed stream with checkStatus() whenever an IOException can be
1814 (checkStatus): New private method.
1816 2000-11-27 Warren Levy <warrenl@cygnus.com>
1818 * Makefile.am: Added natTimeZone.cc.
1819 * Makefile.in: Rebuilt.
1820 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1821 * java/text/DateFormatSymbols.java (ampms): Made package private.
1822 (eras): Made package private.
1823 (months): Made package private.
1824 (shortMonths): Made package private.
1825 (shortWeekdays): Made package private.
1826 (weekdays): Made package private.
1827 (formatPrefixes): New private field.
1828 (localPatternCharsDefault): Made private.
1829 (dateFormats): New package private field.
1830 (timeFormats): New package private field.
1831 (formatsForKey): New private method.
1832 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1833 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1834 * java/text/SimpleDateFormat.java: Merged with Classpath.
1835 * java/util/TimeZone.java: Merged with Classpath.
1836 * java/util/natTimeZone.cc: New file.
1838 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1840 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1841 (addElement): Don't increment elementCount twice. Doh.
1842 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1843 array needs to be expanded.
1845 * java/util/Collections.java (UnmodifiableCollection): Implement
1847 (UnmodifiableList): Throw UnsupportedOperationException from
1848 modification methods. Set `l' from the one-parameter constructor.
1849 (UnmodifiableMap): Implement toString().
1850 (SynchronizedCollection): Ditto.
1851 (SynchronizedList): Set `l' from the one-parameter constructor.
1852 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1853 (SynchronizedMap): Implement toString().
1855 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1857 * javax/naming/NameParser.java,
1858 javax/naming/directory/AttributeInUseException.java,
1859 javax/naming/directory/AttributeModificationException.java,
1860 javax/naming/directory/InvalidAttributeIdentifierException.java,
1861 javax/naming/directory/InvalidAttributesException.java,
1862 javax/naming/directory/InvalidAttributeValueException.java,
1863 javax/naming/directory/InvalidSearchControlsException.java,
1864 javax/naming/directory/InvalidSearchFilterException.java,
1865 javax/naming/directory/NoSuchAttributeException.java,
1866 javax/naming/directory/SchemaViolationException.java: New files.
1868 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1870 * javax/naming/InitialContext.java (rebind): Implement.
1871 (unbind): Implement.
1872 (rename): Implement.
1874 (listBindings): Implement.
1875 (destroySubcontext): Implement.
1876 (createSubcontext): Implement.
1877 (lookupLink): Implement.
1878 (getNameParser): Implement.
1879 (composeName): Implement.
1880 (addToEnvironment): Implement.
1882 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1884 * javax/naming/AuthenticationException.java,
1885 javax/naming/AuthenticationNotSupportedException.java,
1886 javax/naming/CannotProceedException.java,
1887 javax/naming/CommunicationException.java,
1888 javax/naming/ConfigurationException.java,
1889 javax/naming/ContextNotEmptyException.java,
1890 javax/naming/InsufficientResourcesException.java,
1891 javax/naming/InterruptedNamingException.java,
1892 javax/naming/InvalidNameException.java,
1893 javax/naming/LimitExceededException.java,
1894 javax/naming/LinkException.java,
1895 javax/naming/LinkLoopException.java,
1896 javax/naming/MalformedLinkException.java,
1897 javax/naming/NameAlreadyBoundException.java,
1898 javax/naming/NameNotFoundException.java,
1899 javax/naming/NamingSecurityException.java,
1900 javax/naming/NoPermissionException.java,
1901 javax/naming/NotContextException.java,
1902 javax/naming/PartialResultException.java,
1903 javax/naming/ReferralException.java,
1904 javax/naming/ServiceUnavailableException.java,
1905 javax/naming/SizeLimitExceededException.java,
1906 javax/naming/TimeLimitExceededException.java: New files.
1908 * javax/naming/Name.java (clone): New method.
1909 (compareTo): New method.
1910 (isEmpty): New method.
1911 (getAll): New method.
1912 (getPrefix): New method.
1913 (getSuffix): New method.
1914 (startsWith): New method.
1915 (endsWith): New method.
1916 (addAll): New method.
1917 (addAll): New method.
1920 (remove): New method.
1922 * javax/naming/Context.java (lookup): New method.
1923 (rebind): New method.
1924 (unbind): New method.
1925 (rename): New method.
1927 (listBindings): New method.
1928 (destroySubcontext): New method.
1929 (createSubcontext): New method.
1930 (lookupLink): New method.
1931 (getNameParser): New method.
1932 (composeName): New method.
1933 (addToEnvironment): New method.
1934 (removeFromEnvironment): New method.
1935 (getEnvironment): New method.
1936 (close): New method.
1937 (getNameInNamespace): New method.
1939 * javax/naming/InitialContext.java (lookup): New method.
1940 (rebind): New method.
1941 (unbind): New method.
1942 (rename): New method.
1944 (listBindings): New method.
1945 (destroySubcontext): New method.
1946 (createSubcontext): New method.
1947 (lookupLink): New method.
1948 (getNameParser): New method.
1949 (composeName): New method.
1950 (addToEnvironment): New method.
1951 (removeFromEnvironment): New method.
1952 (getEnvironment): New method.
1953 (close): New method.
1954 (getNameInNamespace): New method.
1956 2000-11-26 Tom Tromey <tromey@cygnus.com>
1958 * Makefile.in: Rebuilt.
1959 * Makefile.am (core_java_source_files): Added
1960 RuntimePermission.java.
1961 * java/lang/RuntimePermission.java: Imported from Classpath.
1962 * java/lang/Thread.java (getContextClassLoader): Now
1963 synchronized. Added security code.
1964 (setContextClassLoader): Likewise.
1966 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1967 length field of array.
1968 (_Jv_NewPrimArray): Likewise.
1969 * gcj/array.h (__JArray): `length' field now const. Added
1972 2000-11-26 Anthony Green <green@redhat.com>
1974 * javax/naming/spi/NamingManager.java,
1975 javax/naming/spi/ObjectFactory.java,
1976 javax/naming/spi/InitialContextFactory.java,
1977 javax/naming/spi/InitialContextFactoryBuilder.java,
1978 javax/naming/RefAddr.java, javax/naming/Reference.java,
1979 javax/naming/NamingException.java, javax/naming/Context.java,
1980 javax/naming/Referenceable.java,
1981 javax/naming/directory/InitialDirContext.java,
1982 javax/naming/directory/DirContext.java,
1983 javax/naming/directory/Attributes.java,
1984 javax/naming/directory/Attribute.java,
1985 javax/naming/StringRefAddr.java,
1986 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1987 javax/naming/InitialContext.java,
1988 javax/naming/NoInitialContextException.java: New files.
1990 2000-11-25 Anthony Green <green@redhat.com>
1992 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1993 (_Jv_NewPrimArray): Likewise.
1994 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1995 (class JArray): Removed constructor.
1997 * java/lang/Thread.java (context_class_loader): New private data.
1998 (getContextClassLoader): New method.
1999 (setContextClassLoader): New method.
2000 (Thread): Initialize context_class_loader.
2002 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2003 (getResource): Rename to findResource.
2004 (findResource): New method. Used to be getResource.
2005 (getResourceAsStream): Deleted.
2006 (jarFileize): Extracted logic from URLClassLoader constructor into
2007 this new private method.
2008 (addURL): New protected method.
2009 (URLClassLoader): Call jarFileize. Use addElement instead of
2011 (findResources): New method.
2013 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2014 (getResource): Implement correct logic.
2015 (findResource): New method.
2016 (getResources): New method.
2017 (findClass): Create a ClassNotFoundException with the name of the
2018 class rather than nothing at all.
2019 (defineClass) Only throw ClassFormatError.
2021 * java/lang/Class.java (forName): New method.
2022 * java/lang/Class.h (forName): New method.
2023 * java/lang/natClass.cc (forName): New method.
2025 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2027 * java/lang/System.java (setProperties): Only call init_properties()
2028 if properties is null.
2029 (getProperties): Ditto.
2030 (getProperty): Ditto.
2031 (setProperty): Call init_properties if properties are null.
2032 (prop_init): Remove field.
2033 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2034 method. Check for null properties after synchronizing instead of
2035 prop_init flag. Set the properties field last for thread safety.
2037 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2038 test for gcj.dumpobjects property and enable object stream dumping
2040 (dumpElement): No longer native.
2041 (dumpElementln): Ditto.
2042 (setDump): Do not define.
2043 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2044 (dumpElementln): Removed.
2047 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2049 * configure: Rebuilt.
2050 * Makefile.in: Rebuilt.
2051 * Makefile.am (built_java_source_files): Add Configuration.java.
2052 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2053 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2054 Create `gnu' directory in the build tree.
2055 * gnu/classpath/Configuration.java.in: New file.
2057 2000-11-24 Tom Tromey <tromey@cygnus.com>
2059 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2061 (_Jv_NewPrimArray): Likewise.
2063 * gcj/array.h (__JArray): `length' field now const. Added
2065 (class JArray): Added constructor.
2067 2000-11-23 Mark Wielaard <mark@klomp.org>
2069 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2072 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2074 * java/util/Vector.java: Improve exception messages.
2075 (Vector): Check initialCapacity for IllegalArgumentException.
2076 (tromToSize): Don't check for elementCount == elementData.length
2078 (toArray): Don't try to set null marker if target array is the same
2079 length as the vector.
2081 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2083 * Makefile.in: Rebuilt.
2084 * Makefile.am (core_java_source_files): Added Collections.java.
2085 * java/util/List.java: Merged from classpath.
2086 * java/util/Vector.java: Ditto.
2087 * java/util/Collections.java: From classpath.
2088 * java/util/ArrayList.java (addAll(Collection)): Call
2089 addAll(int,Collection) instead of duplicating code.
2090 (indexOf): Clean up int initialization.
2091 (clear): Set cleared array entries to null, to allow garbage
2093 * java/util/List.java: Minor formatting fixes.
2094 * java/util/SimpleTimeZone.java: ditto.
2096 2000-11-18 Tom Tromey <tromey@cygnus.com>
2098 * Makefile.in: Rebuilt.
2099 * Makefile.am (core_java_source_files): Added new files.
2100 * java/lang/reflect/ReflectPermission.java: New class.
2101 * java/io/FileFilter.java: From Classpath
2102 * java/io/FilePermission.java: From Classpath.
2104 2000-11-17 Tom Tromey <tromey@cygnus.com>
2106 * java/lang/reflect/AccessibleObject.java (isAccessible,
2107 setAccessible): Now public.
2109 * java/lang/natString.cc: Include Locale.h.
2110 (toUpperCase): Added `locale' argument. Handle locale
2112 (toLowerCase): Added `locale' argument. Handle locale
2114 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2115 CAPITAL_I): New defines.
2116 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2119 (toUpperCase, toLowerCase): New methods. Variants which accept
2122 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2125 * java/util/PropertyPermission.java: Re-merged from Classpath.
2127 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2129 * java/text/StringCharacterIterator.java: Reindented.
2130 (setText): New method.
2132 2000-11-17 Mark Wielaard <mark@klomp.org>
2134 Merge with Classpath (changes by Bryce McKinlay)
2135 * java/util/jar/*.java: Reformat all to unofficial standard coding
2136 style. No changes of substance.
2138 2000-11-17 Mark Wielaard <mark@klomp.org>
2140 * java/util/zip/*.java: Javadoc updates.
2142 2000-11-17 Tom Tromey <tromey@cygnus.com>
2144 * java/text/CollationKey.java: Implement Comparable.
2145 (compareTo(Object)): New method.
2146 * java/text/Collator.java (compare(Object,Object)): New method.
2147 Implement Comparator.
2149 * java/util/zip/InflaterInputStream.java (available): New method.
2150 (close): New method.
2151 (read, available, skip, fill): Throw exception if stream closed.
2152 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2153 getNextEntry): Throw exception if closed.
2155 2000-11-16 Tom Tromey <tromey@cygnus.com>
2157 * java/io/PushbackReader.java: Merged with Classpath.
2158 * java/util/Arrays.java: Updated from Classpath.
2160 * scripts/blocks.pl: New file.
2161 * java/lang/Character.java (Subset): New class.
2162 (UnicodeBlock): New class.
2164 * java/lang/Math.java (toDegrees, toRadians): New methods.
2166 * java/lang/Float.java: Implement Comparable.
2167 (compareTo): New methods.
2168 * java/lang/Double.java: Implement Comparable.
2169 (compareTo): New methods.
2171 2000-11-16 Warren Levy <warrenl@cygnus.com>
2173 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2175 (listeners): Made transient.
2176 (source): Renamed from 'bean'.
2177 (children): New field for serialization.
2178 (propertyChangeSupportSerializedDataVersion): Ditto.
2179 (serialVersionUID): Ditto.
2180 (writeObject): New serialization method.
2181 (readObject): New serialization method.
2182 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2184 (listeners): Made transient.
2185 (source): Renamed from 'bean'.
2186 (children): New field for serialization.
2187 (vetoableChangeSupportSerializedDataVersion): Ditto.
2188 (serialVersionUID): Ditto.
2189 (writeObject): New serialization method.
2190 (readObject): New serialization method.
2191 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2192 to allow constructor to have a return type (i.e. the class that the
2193 constructor constructs).
2195 2000-11-14 Tom Tromey <tromey@cygnus.com>
2197 * Makefile.in: Rebuilt.
2198 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2201 2000-11-02 Warren Levy <warrenl@cygnus.com>
2203 * java/io/ObjectInputStream.java (readObject): Added code to
2204 conditionally dump out the serialized data.
2205 Handle ENDBLOCKDATA case a bit more gracefully since the current
2206 behavior doesn't seem to work as expected.
2207 (readStreamHeader): Added code for serialized data dumper.
2208 (readNextBlock): Ditto.
2209 (readFields): Ditto.
2210 (dump): New private static field for turning on/off dumper.
2211 (setDump): New native method.
2212 (dumpElement): New native method.
2213 (dumpElementln): New native method.
2214 * java/io/natObjectInputStream.cc (setDump): New method.
2215 (dumpElement): New method.
2216 (dumpElementln): New method.
2218 2000-11-02 Warren Levy <warrenl@cygnus.com>
2220 * java/net/InetAddress.java (addr): Renamed from 'address'.
2221 (address): New field to match Serialized Form doc.
2222 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2223 (family): New serialization field.
2224 (serialVersionUID): New field.
2225 (readObject): New method.
2226 (writeObject): New method.
2227 (getFamily): New native method.
2228 (InetAddress): Set family.
2229 * java/net/natInetAddress.cc (getFamily): New method.
2230 (addr): Renamed from 'address'.
2231 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2232 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2233 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2235 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2237 * java/util/AbstractList.java (SubList): Make it a top-level private
2239 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2241 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2242 * Makefile.in: Rebuilt.
2244 2000-11-02 Tom Tromey <tromey@cygnus.com>
2246 * Makefile.in: Rebuilt.
2247 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2250 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2252 * java/util/AbstractList.java (remove): Comment out modCount increment
2253 to work around compiler bug.
2256 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2258 * java/util/AbstractList.java: Throw messages with
2259 IndexOutOfBoundsExceptions.
2260 (listIterator()): Call listIterator(0).
2261 (size): New field. Initialize to size().
2262 (hasNext): Test position against size, not size().
2263 (remove): Increment knownMod by one instead of resetting it from
2266 (SubList.upMod): Removed.
2267 (SubList.set): Don't call upMod() or update knownMod.
2268 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2269 (SubList.remove): Ditto.
2270 (SubList.addAll): Don't call backingList.size(). Increment size from
2272 (SubList.iterator): New method. Call listIterator(0).
2273 (SubList.listIterator): New method. Restore code to return an anonymous
2274 listIterator implementation (with some changes).
2275 * java/util/AbstractSequentialList.java: Throw messages with
2276 IndexOutOfBoundsExceptions.
2277 (addAll): Add a specnote.
2278 * java/util/ArrayList.java (removeRange): Get the math right.
2279 (addAll): Increment modCount _before_ creating iterator.
2280 * java/util/LinkedList.java: Rewritten, mostly.
2282 2000-11-01 Tom Tromey <tromey@cygnus.com>
2284 * scripts/encodings.pl: Added `ASCII' alias.
2285 * Makefile.in: Rebuilt.
2286 * Makefile.am (convert_source_files): Added new files.
2287 * gnu/gcj/convert/Input_ASCII.java: New file.
2288 * gnu/gcj/convert/Output_ASCII.java: New file.
2289 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2290 out-of-range characters.
2291 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2292 (read): Swap bytes if required. Treat `count' as character count,
2294 (write): Likewise. Also, handle case where iconv fails on a given
2296 (init): Put encoding into exception.
2297 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2298 (static): Call iconv_init. Rebuilt alias list.
2299 (iconv_init): New private method.
2301 2000-11-01 Tom Tromey <tromey@cygnus.com>
2303 * Makefile.in: Rebuilt.
2304 * Makefile.am (install-exec-hook): Only make a single symlink, and
2305 remove the destination before making the link.
2306 * configure: Rebuilt.
2307 * configure.in: Call AC_PROG_LN_S.
2309 2000-10-31 Warren Levy <warrenl@cygnus.com>
2311 * jni.cc: Added include of java/lang/ThreadGroup.h.
2312 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2313 per change of 2000-10-05.
2315 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2317 * java/util/BitSet.java: Updated @specnote.
2319 * java/io/Reader.java: Merge docs from classpath.
2320 (skip): Synchronize on `lock'.
2321 * java/io/FileReader.java: Import correct implementation from
2323 * java/io/StringReader.java: Merge docs from classpath.
2324 (ready): Throw IOException if stream is closed.
2326 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2328 * java/util/AbstractCollection.java (addAll): Use size() instead of
2329 hasNext() in iterator loop.
2331 (contains): Ditto. Simplify loop.
2332 (containsAll): Ditto.
2337 (toString): Ditto. Use string concatenation operators, not
2339 * java/util/AbstractList.java (addAll): Use size() instead of
2340 hasNext() in iterator loop.
2343 (indexOf): Ditto. Don't take null check outside of the loop.
2344 (iterator): Return an AbstractListItr instead of anonymous class.
2345 (lastIndexOf): Use a for loop bounded by size() instead of
2346 hasPrevious() in iterator loop.
2347 (listIterator): Return an AbstractListItr.
2348 (removeRange): Remove bounds checking code and docs.
2349 (AbstractListItr): New inner class. Code moved here from
2351 (SubList.iterator): Removed. Use default implementation from
2352 AbstractList instead.
2353 (SubList.listIterator): As above.
2354 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2355 instead of hasNext() in iterator loop.
2356 (containsValue): Ditto.
2362 (toString): Ditto. Use string concatenation operators, not
2364 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2365 bounded by size() instead of hasNext() in iterator loop.
2366 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2367 part of normal execution flow. Do an explicit null check instead.
2368 * java/util/ArrayList.java (_iSize): Rename to `size'.
2369 (_arData): Rename to `data'.
2370 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2373 (removeRange): Make protected. Don't check bounds.
2374 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2376 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2378 (addAll (int, Collection)): Check lower bounds. Simplify exception
2380 (clone): Clone the data array too.
2381 (indexOf): Inline doesEqual().
2382 (lastIndexOf): Ditto.
2383 (clear): Don't set array data to null.
2384 (set): Check lower bounds. Simplify exception string.
2385 (toArray): Correct comment.
2386 (trimToSize): Don't update modCount, this is not a structural change.
2389 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2391 (toString): Declare `bit' as long, not int.
2392 (data): Made package-private, not private.
2394 2000-10-27 Warren Levy <warrenl@cygnus.com>
2396 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2397 array elements to true.
2399 2000-10-27 Warren Levy <warrenl@cygnus.com>
2401 * Makefile.am: Added locale files from Classpath.
2402 * Makefile.in: Rebuilt.
2403 * gnu/java/locale/Calendar.java: New file.
2404 * gnu/java/locale/Calendar_de.java: New file.
2405 * gnu/java/locale/Calendar_en.java: New file.
2406 * gnu/java/locale/Calendar_nl.java: New file.
2407 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2408 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2409 serialization compatibility.
2410 (scale): Made private.
2411 (serialVersionUID): New field.
2412 * java/math/BigInteger.java (ival): Made transient.
2413 (words): Made transient.
2414 (bitCount): New serialization field.
2416 (firstNonzeroByteNum): Ditto.
2417 (lowestSetBit): Ditto.
2420 (serialVersionUID): New field.
2421 (readObject): New method.
2422 (writeObject): New method.
2423 * java/util/BitSet.java (serialVersionUID): New field.
2424 * java/util/Calendar.java: Replaced with Classpath file.
2425 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2426 of getDefault() for TimeZone or Locale instead of passing nulls.
2427 * java/util/Locale.java (serialVersionUID): New field.
2428 (writeObject): New method.
2429 (readObject): New method.
2430 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2432 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2434 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2435 (core_java_source_files): Put java.lang, java.io, and java.util here.
2436 (ordinary_java_source_files): Order so that core_java_source_files are
2438 (java_source_files): Reorder so that special_java_source_files are
2440 * configure.in: Don't pass -I flag to gcj.
2441 * Makefile.in: Rebuilt.
2442 * configure: Rebuilt.
2444 2000-10-25 Tom Tromey <tromey@cygnus.com>
2446 * Makefile.in: Rebuilt.
2447 * Makefile.am (install-exec-hook): New target.
2449 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2451 * java/util/EventObject.java: Merged from classpath.
2453 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2456 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2458 * java/util/AbstractSet.java (equals): Re-installed original code.
2460 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2462 * Makefile.am: Added rules for libgcjx library.
2463 * Makefile.in: Rebuilt.
2464 * configure.in: Added check for X.
2465 * configure: Rebuilt.
2466 * gnu/awt/LightweightRedirector.java: New file.
2467 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2468 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2469 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2470 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2471 * gnu/awt/j2d/MappedRaster.java: New file.
2472 * gnu/awt/xlib/XCanvasPeer.java: New file.
2473 * gnu/awt/xlib/XEventLoop.java: New file.
2474 * gnu/awt/xlib/XEventQueue.java: New file.
2475 * gnu/awt/xlib/XFontMetrics.java: New file.
2476 * gnu/awt/xlib/XFramePeer.java: New file.
2477 * gnu/awt/xlib/XGraphics.java: New file.
2478 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2479 * gnu/awt/xlib/XPanelPeer.java: New file.
2480 * gnu/awt/xlib/XToolkit.java: New file.
2481 * gnu/gcj/xlib/Clip.java: New file.
2482 * gnu/gcj/xlib/Colormap.java: New file.
2483 * gnu/gcj/xlib/Display.java: New file.
2484 * gnu/gcj/xlib/Drawable.java: New file.
2485 * gnu/gcj/xlib/Font.java: New file.
2486 * gnu/gcj/xlib/GC.java: New file.
2487 * gnu/gcj/xlib/Pixmap.java: New file.
2488 * gnu/gcj/xlib/Screen.java: New file.
2489 * gnu/gcj/xlib/Visual.java: New file.
2490 * gnu/gcj/xlib/WMSizeHints.java: New file.
2491 * gnu/gcj/xlib/Window.java: New file.
2492 * gnu/gcj/xlib/WindowAttributes.java: New file.
2493 * gnu/gcj/xlib/XAnyEvent.java: New file.
2494 * gnu/gcj/xlib/XButtonEvent.java: New file.
2495 * gnu/gcj/xlib/XColor.java: New file.
2496 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2497 * gnu/gcj/xlib/XConnectException.java: New file.
2498 * gnu/gcj/xlib/XEvent.java: New file.
2499 * gnu/gcj/xlib/XException.java: New file.
2500 * gnu/gcj/xlib/XExposeEvent.java: New file.
2501 * gnu/gcj/xlib/XID.java: New file.
2502 * gnu/gcj/xlib/XImage.java: New file.
2503 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2504 * gnu/gcj/xlib/natClip.cc: New file.
2505 * gnu/gcj/xlib/natColormap.cc: New file.
2506 * gnu/gcj/xlib/natDisplay.cc: New file.
2507 * gnu/gcj/xlib/natDrawable.cc: New file.
2508 * gnu/gcj/xlib/natFont.cc: New file.
2509 * gnu/gcj/xlib/natGC.cc: New file.
2510 * gnu/gcj/xlib/natPixmap.cc: New file.
2511 * gnu/gcj/xlib/natScreen.cc: New file.
2512 * gnu/gcj/xlib/natVisual.cc: New file.
2513 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2514 * gnu/gcj/xlib/natWindow.cc: New file.
2515 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2516 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2517 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2518 * gnu/gcj/xlib/natXColor.cc: New file.
2519 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2520 * gnu/gcj/xlib/natXException.cc: New file.
2521 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2522 * gnu/gcj/xlib/natXImage.cc: New file.
2523 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2524 * java/awt/EventDispatchThread.java: Start thead on creation.
2526 2000-10-20 Tom Tromey <tromey@cygnus.com>
2528 From Arno J. Klaassen:
2529 * interpret.cc: Include <stdlib.h> for alloca.
2530 * defineclass.cc: Include <stdlib.h> for alloca.
2532 * Makefile.in: Rebuilt.
2533 * Makefile.am: Include deps.mk.
2534 (GCJCOMPILE): Added -MD, -MT, and -MF.
2535 ($(javao_files)): Don't depend on libgcj.zip.
2536 (all-recursive): New target.
2537 (%.lo:%.cc): Do dependency tracking.
2538 ($(nat_headers)): Don't depend on libgcj.zip.
2539 * configure: Rebuilt.
2540 * configure.in: Make .d files and deps.mk.
2542 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2544 * exception.cc: Don't #include "exception".
2545 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2547 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2548 * Makefile.in: Updated.
2550 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2552 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2553 * java/awt/peer/ComponentPeer.java (disable): Removed.
2556 (minimumSize): Removed.
2557 (preferredSize): Removed.
2560 * java/awt/peer/ListPeer.java (addItem): Removed.
2562 (minimumSize): Removed.
2563 (preferredSize): Removed.
2564 (setMultipleSelections): Removed.
2565 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2566 (remove): Renamed from removeMenu.
2567 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2569 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2570 (remove): Renamed from removeItem.
2571 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2572 (getMinimumSize): Removed.
2573 (getPreferredSize): Removed.
2574 (minimumSize): Removed.
2575 (preferredSize): Removed.
2576 (replaceText): Removed.
2577 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2578 (preferredSize): Removed.
2579 (getMinimumSize): Removed.
2580 (getPreferredSize): Removed.
2581 (setEchoCharacter): Removed.
2583 2000-10-10 Warren Levy <warrenl@cygnus.com>
2585 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2586 * java/sql/Date.java (serialVersionUID): New field.
2587 * java/sql/Time.java (serialVersionUID): New field.
2588 * java/sql/Timestamp.java (serialVersionUID): New field.
2589 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2590 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2591 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2592 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2593 (readObject): New serialization method.
2594 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2595 (serialVersionOnStream): New field.
2596 (readObject): New serialization method.
2597 (getMonetaryDecimalSeparator): New method.
2598 (setMonetaryDecimalSeparator): New method.
2599 * java/text/NumberFormat.java (maxFractionDigits): New field.
2600 (maxIntegerDigits): New field.
2601 (minFractionDigits): New field.
2602 (minIntegerDigits): New field.
2603 (serialVersionOnStream): New field.
2604 (serialVersionUID): New field.
2605 (readObject): New serialization method.
2606 (writeObject): New serialization method.
2607 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2608 (serialVersionOnStream): New field.
2609 (serialVersionUID): New field.
2610 (readObject): New serialization method.
2612 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2614 * configure.in (GCJ): Avoid bogus error message when looking for
2615 (and not finding) gcj in the build tree.
2616 * configure: Rebuilt.
2618 2000-10-09 Tom Tromey <tromey@cygnus.com>
2620 * configure: Rebuilt.
2621 * configure.in: Include sys/types.h when checking for socklen_t.
2622 From Arno J. Klaassen.
2624 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2626 * include/jvm.h: Enable __builtin_expect().
2628 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2629 the main program. Fix for PR libgcj/341.
2631 2000-10-07 Tom Tromey <tromey@cygnus.com>
2633 * java/util/Properties.java: Merged with Classpath version.
2635 2000-10-05 Tom Tromey <tromey@cygnus.com>
2637 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2638 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2639 * java/lang/Class.h (Object): Added `class$' field.
2640 * java/lang/Object.h (Object): Added `class$' field.
2641 * defineclass.cc (ClassClass): Use `class$' form.
2642 (ClassObject): Likewise.
2643 * resolve.cc (ClassObject): Use `class$' form.
2644 (ObjectClass): Likewise.
2645 * interpret.cc (ClassError): Removed.
2646 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2648 (IntegerClass): Likewise.
2649 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2651 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2652 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2653 SerializableClass): Likewise.
2654 Include Serializable.h, Cloneable.h.
2655 * java/lang/natSystem.cc (SystemClass): Removed.
2656 (init_properties): Use `class$' form.
2657 * java/lang/natObject.cc (CloneableClass): Removed.
2658 (clone): Use `class$' form.
2659 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2660 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2661 ConstructorClass): Likewise.
2662 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2663 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2664 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2665 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2667 (ClassClass): Likewise.
2668 * include/jvm.h (StringClass): Use `class$' form.
2669 * prims.cc (ObjectClass): Removed.
2670 (_Jv_RunMain): Use `class$' form.
2671 (_Jv_AllocObject): Likewise.
2672 * jni.cc (ClassClass): Use `class$' form.
2673 (ThrowableClass): Likewise.
2674 (ObjectClass): Likewise.
2675 (MethodClass): Likewise.
2676 (ThreadGroupClass): Likewise.
2677 (NativeThreadClass): Likewise.
2678 * boehm.cc (ObjectClass): Removed.
2679 (ClassClass): Removed.
2680 (_Jv_MarkObj): Use `class$' form.
2681 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2684 2000-10-05 Warren Levy <warrenl@cygnus.com>
2686 * Makefile.am: Removed java/io/Replaceable.java and
2687 java/io/Resolvable.java.
2688 * Makefile.in: Rebuilt.
2689 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2691 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2693 (processResolution): Handle readResolve method via reflection with
2694 removal of Resolvable interface.
2695 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2696 method via reflection with removal of Replaceable interface.
2697 * java/io/Replaceable.java: Removed.
2698 * java/io/Resolvable.java: Removed.
2699 * java/security/Key.java (serialVersionUID): New field.
2700 * java/security/Provider.java (serialVersionUID): New field.
2701 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2703 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2705 * java/sql/DataTruncation.java (serialVersionUID): New field.
2706 * java/sql/SQLException.java (serialVersionUID): New field.
2707 * java/sql/SQLWarning.java (serialVersionUID): New field.
2708 * java/util/Date.java (serialVersionUID): New field.
2709 (millis): Made transient.
2710 (readObject): New method.
2711 (writeObject): New method.
2713 2000-10-05 Tom Tromey <tromey@cygnus.com>
2715 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2717 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2719 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2720 (JvRunMain): Set _Jv_argv and _Jv_argc.
2721 * java/awt/Component.java: Minor fixes.
2722 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2723 * java/awt/Toolkit.java (systemEventQueue): Removed.
2724 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2725 * java/awt/Window.java (getToolkit): Don't call super.
2726 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2727 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2728 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2729 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2730 * gnu/awt/gtk/GtkFramePeer.java: New file.
2731 * gnu/awt/gtk/GtkMainThread.java: New file.
2732 * gnu/awt/gtk/GtkToolkit.java: New file.
2733 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2734 * gnu/awt/gtk/gtkcommon.cc: New file.
2735 * gnu/awt/gtk/gtkcommon.h: New file.
2736 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2737 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2738 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2739 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2740 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2741 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2743 2000-09-30 Tom Tromey <tromey@cygnus.com>
2745 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2746 interrupted before modifying the cv's wait set.
2749 2000-09-30 Hans Boehm <boehm@acm.org>
2750 Bryce McKinlay <bryce@albatross.co.nz>
2752 Implement bitmap descriptor based marking for Boehm GC.
2754 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2755 * configure: Rebuilt.
2756 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2757 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2758 method get_finalizer().
2759 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2760 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2761 (_Jv_AllocObj): Add new jclass parameter.
2762 (_Jv_AllocArray): Ditto.
2763 (_Jv_BuildGCDescr): New prototype.
2764 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2765 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2766 get_finalizer() instead of direct finalizer vtable offset.
2767 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2768 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2769 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2770 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2771 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2772 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2773 (_Jv_DetermineVTableIndex): Ditto.
2774 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2775 calculations to account for new gc_descr field.
2776 * boehm.cc: #include gc_gcj.h.
2777 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2778 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2779 New commentary from HB. Mark the classes vtable.
2780 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2781 (GC_DEFAULT_DESCR): New #define.
2782 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2783 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2784 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2785 scan conservativly if size is less than min_heap_addr. Set vtable
2786 pointer of new object before returning.
2787 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2788 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2789 allocation for obj_kind_x.
2790 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2791 (_Jv_AllocObj): Set vtable on returned object.
2792 (_Jv_AllocArray): Ditto.
2793 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2794 (_Jv_NewPrimArray): Ditto.
2795 (_Jv_AllocObj): Declare as a friend.
2796 (_Jv_AllocArray): Ditto.
2797 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2798 from &ObjectClass into new array class. Remove offset-by-one
2799 adjustments from `method' size calculations to account for gc_descr
2802 2000-09-26 Tom Tromey <tromey@cygnus.com>
2804 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2805 `remove', not `add'.
2807 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2809 * java/lang/natSystem.cc (file_encoding): Added return statement.
2811 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2813 * Makefile.am: Re-work shell commands that exceeded command-line
2815 * Makefile.in: Rebuilt.
2817 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2819 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2820 * java/lang/natDouble.cc: Likewise.
2821 * java/lang/reflect/natMethod.cc: Likewise.
2822 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2824 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2826 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2828 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2829 * acinclude.m4: Arrange for automake to not bring in a new
2830 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2831 * Makefile.am: Leave it up to automake to subst GCJ.
2832 * aclocal.m4, configure, Makefile.in: Rebuilt.
2834 2000-09-13 Tom Tromey <tromey@cygnus.com>
2836 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2837 (get): Ensure Boolean class is initialized.
2838 * java/lang/reflect/natField.cc (BooleanClass): New define.
2839 (get): Ensure Boolean class is initialized.
2841 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2843 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2844 Initialize with anonymous class.
2845 (compareToIgnoreCase): New method.
2847 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2848 (uncaughtException): Set had_uncaught_exception.
2849 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2850 exit with error status if set.
2851 (_Jv_RunMain): Ditto.
2853 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2855 * configure: Rebuilt with new ../libtool.m4.
2857 2000-09-11 Tom Tromey <tromey@cygnus.com>
2859 * java/lang/reflect/Field.java (toString): Don't rely on
2862 2000-09-08 Tom Tromey <tromey@cygnus.com>
2864 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2865 default decoder use iconv.
2866 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2867 Let default encoder use iconv.
2868 * configure: Rebuilt.
2869 * configure.in: Check for nl_langinfo and <langinfo.h>.
2870 * java/lang/natSystem.cc (file_encoding): New function.
2871 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2873 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2875 * acinclude.m4: Simplify the tests for CC and CXX.
2876 * aclocal.m4, configure: Rebuilt.
2878 * acinclude.m4: Include libtool macros from the source tree.
2879 * aclocal.m4, configure: Rebuilt.
2881 2000-09-08 Warren Levy <warrenl@cygnus.com>
2883 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2884 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2885 * java/io/File.java (writeObject): Added.
2886 (readObject): Added.
2887 (serialVersionUID): Added.
2888 * java/io/ObjectOutputStream.java (writeObject): Initialized
2889 fieldsAlreadyWritten before recursion rather than after.
2890 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2891 * java/io/OptionalDataException.java (serialVersionUID): Added.
2892 (OptionalDataException): Made package private.
2893 * java/io/SyncFailedException.java (SyncFailedException): Removed
2894 default constructor to match spec.
2895 * java/lang/Boolean.java (serialVersionUID): Added.
2896 * java/lang/Byte.java (serialVersionUID): Added.
2897 * java/lang/Character.java (serialVersionUID): Added.
2898 * java/lang/Double.java (serialVersionUID): Added.
2899 * java/lang/Float.java (serialVersionUID): Added.
2900 * java/lang/Integer.java (serialVersionUID): Added.
2901 * java/lang/Long.java (serialVersionUID): Added.
2902 * java/lang/Number.java (serialVersionUID): Added.
2903 * java/lang/Short.java (serialVersionUID): Added.
2904 * java/lang/String.java (serialVersionUID): Added.
2905 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2907 * java/lang/reflect/InvocationTargetException.java
2908 (serialVersionUID): Added.
2909 * java/net/URL.java (handler): Made transient.
2910 (hashCode): Added field for serialization, per spec. and use
2911 cached value if available.
2912 (serialVersionUID): Added.
2913 (URL): Initialize hashCode.
2914 (set): Adjust hashCode.
2915 (readObject): New Method to initialize the protocol handler when
2917 (writeObject): New method.
2918 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2919 * java/text/Collator.java: Removed 'implements Serializable'.
2920 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2921 * java/util/Properties.java (serialVersionUID): Added.
2922 * java/util/Random.java (serialVersionUID): Added.
2923 (seed): Made private.
2924 (nextNextGaussian): Made private.
2925 (haveNextNextGaussian): Made private.
2926 * java/util/Stack.java (serialVersionUID): Added.
2927 * java/util/TimeZone.java (serialVersionUID): Added.
2928 * java/util/Vector.java (serialVersionUID): Added.
2930 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2932 * Makefile.am (Thread.h): Don't be friends with native threads
2934 * Makefile.in: Rebuilt.
2935 * java/lang/Thread.java (interrupt_flag): Make package-private.
2937 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2939 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2940 to avoid long long division.
2942 2000-09-06 Tom Tromey <tromey@cygnus.com>
2944 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2946 * java/lang/reflect/Method.java (toString): Use `getName' for
2949 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2950 `args' if method takes no parameters.
2952 Fix for PR java.lang/339:
2953 * java/lang/natPosixProcess.cc (fail): New function.
2954 (cleanup): New function.
2955 (startProcess): Use them. Create pipe so child can communicate
2956 exec failure back to parent.
2958 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2960 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2962 (send): Undo last patch. Remove the label only.
2964 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2966 * java/net/natInetAdress.cc: Ditto.
2968 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2970 2000-09-05 Tom Tromey <tromey@cygnus.com>
2972 * doc/cni.sgml: Updated from master copy.
2974 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2976 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2978 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2980 * java/lang/fdlibm.h: #undef __P if previously defined.
2981 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2982 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2986 2000-09-04 Tom Tromey <tromey@cygnus.com>
2988 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2991 2000-09-04 Anthony Green <green@redhat.com>
2993 Fix for PR java.io/203:
2994 * java/io/File.java (createTempFile): Obey directory argument.
2995 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2996 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2997 variable to set java.io.tmpdir on non-WIN32 systems.
2999 2000-09-04 Anthony Green <green@redhat.com>
3001 * java/io/File.java (deleteOnExit): New method.
3002 * gnu/gcj/runtime/FileDeleter.java: New class.
3003 * java/lang/natRuntime.cc (exit): Call
3004 FileDeleter.deleteOnExitNow()
3005 * Makefile.am: Add FileDeleter.java.
3006 * Makefile.in: Rebuilt.
3008 2000-09-02 Tom Tromey <tromey@cygnus.com>
3010 * Makefile.in: Rebuilt.
3011 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3012 environment variable.
3014 2000-09-01 Andrew Haley <aph@redhat.com>
3016 * java/io/StreamTokenizer.java: Don't throw a
3017 NumberFormatException if a field is numeric as far as the
3018 StreamTokenizer is concerned but not as far as Double.valueOf() is
3019 concerned: return a zero instead.
3021 2000-08-30 Tom Tromey <tromey@cygnus.com>
3023 * Makefile.in: Rebuilt.
3024 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3026 2000-08-28 Tom Tromey <tromey@cygnus.com>
3028 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3029 gnu/gcj/awt/ComponentDataBlitOp.java,
3030 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3031 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3032 java/awt/color/ICC_ColorSpace.java,
3033 java/awt/color/ICC_Profile.java,
3034 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3035 java/awt/image/ComponentColorModel.java,
3036 java/awt/image/ComponentSampleModel.java,
3037 java/awt/image/DataBuffer.java,
3038 java/awt/image/DataBufferByte.java,
3039 java/awt/image/DataBufferInt.java,
3040 java/awt/image/DataBufferUShort.java,
3041 java/awt/image/DirectColorModel.java,
3042 java/awt/image/IndexColorModel.java,
3043 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3044 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3045 java/awt/image/SinglePixelPackedSampleModel.java,
3046 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3047 Removed Latin-1 copyright symbols.
3048 * java/util/zip/ZipFile.java: Indentation fixes.
3050 2000-08-27 Mark Wielaard <mark@klomp.org>
3052 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3053 constructor, close can delete the file, finalize calls close.
3054 * java/util/jar/JarFile.java: Constructor that takes mode now
3057 2000-08-27 Anthony Green <green@redhat.com>
3059 * java/util/ArrayList.java, java/util/Timer.java,
3060 java/util/LinkedList.java, java/util/TimerTask.java,
3061 java/util/HashMap.java, java/util/AbstractMap.java,
3062 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3063 java/util/SortedSet.java: Imported from GNU Classpath.
3064 * Makefile.in: Rebuilt.
3065 * Makefile.am: Added new files.
3067 2000-08-26 Anthony Green <green@redhat.com>
3069 * Makefile.in: Rebuilt.
3070 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3073 * prims.cc: Include ClassLoader.h.
3074 (_Jv_RunMain): When executing jar files, classpath must be the jar
3075 file only. Lose our reference to the system ClassLoader in order
3076 to get a new one with the correct classpath.
3077 * java/lang/natSystem.cc (init_properties): When executing a jar
3078 file, only use the jar file for java.class.path.
3080 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3081 for bytecode archives.
3083 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3084 exists, but not Main-Class.
3086 2000-08-23 Mark Wielaard <mark@klomp.org>
3088 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3089 return -1 when fill() has no more data for the Inflater.
3091 2000-08-23 Mark Wielaard <mark@klomp.org>
3093 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3094 write(String) already does.
3096 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3098 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3099 to `alive_flag', call `init'.
3100 (init): New native method.
3101 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3104 2000-08-21 Mark Wielaard <mark@klomp.org>
3106 * Makefile.in: Rebuilt.
3107 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3109 (java/lang/reflect/Field.h): Likewise.
3110 (java/lang/reflect/Method.h): Likewise.
3111 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3114 2000-08-21 Tom Tromey <tromey@cygnus.com>
3116 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3119 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3121 * java/lang/natSystem.cc (init_properties): Change sourceware
3122 reference to sources.redhat.com.
3124 * include/java-props.h: Add _Jv_Jar_Class_Path.
3125 * prims.cc: Ditto. Set it from `gij -jar file' option.
3127 * java/lang/natSystem.cc (init_properties): Set java.class.path
3129 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3131 * java/util/PropertyPermission.java: Import from GNU Classpath.
3132 * Makefile.in: Rebuilt.
3133 * Makefile.am: Add java/util/PropertyPermission.java.
3134 * java/lang/System.java: Add setProperty method.
3136 * gij.cc (main): Add -jar option to execute jar files.
3137 (help): Describe -jar option.
3138 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3139 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3140 * gnu/gcj/runtime/FirstThread.java (main): New method.
3142 * java/util/jar/Attributes.java: Correct comment spelling.
3144 2000-08-20 Mark Wielaard <mark@klomp.org>
3146 * java/util/zip/Adler32.java: Make private variables really private
3147 * java/util/zip/CRC32.java: Make private variables really private
3148 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3150 * java/util/zip/InflaterInputStream.java: skip() could skip to
3152 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3153 * java/util/zip/ZipFile.java: size() new 1.2 method
3154 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3155 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3158 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3160 * java/util/jar/JarFile.java: Don't call
3161 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3164 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3166 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3167 Read the entire contents of the class file, not just what is
3170 * java/net/JarURLConnection.java: getEntry doesn't take any
3171 arguments. Return null if element is null.
3173 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3174 size from the archive, not the inflated size.
3176 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3177 java.util.zip.ZipFile.getEntry.
3179 * gij.cc (help): Change sourceware reference to
3182 2000-08-19 Tom Tromey <tromey@cygnus.com>
3184 * java/util/zip/ZipInputStream.java (createZipEntry):
3187 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3189 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3190 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3191 java/util/jar/JarInputStream.java,
3192 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3193 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3194 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3195 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3196 java/security/cert/Certificate.java,
3197 java/security/cert/CertificateEncodingException.java,
3198 java/security/cert/CertificateException.java,
3199 java/security/cert/CertificateExpiredException.java,
3200 java/security/cert/CertificateFactory.java,
3201 java/security/cert/CertificateFactorySpi.java,
3202 java/security/cert/CertificateNotYetValidException.java,
3203 java/security/cert/CertificateParsingException.java,
3204 java/security/cert/X509CRL.java,
3205 java/security/cert/X509CRLEntry.java,
3206 java/security/cert/X509Certificate.java,
3207 java/security/cert/X509Extension.java: Imported from Classpath.
3208 * java/util/Hashtable.java: Imported from Classpath.
3210 * java/util/zip/ZipInputStream.java: Create stub for
3213 * gcj/javaprims.h: Updated class list.
3215 * Makefile.in, gcj/Makefile.in: Rebuilt.
3216 * Makefile.am (ordinary_java_source_files): Add these new classes.
3218 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3220 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3221 * gnu/gcj/awt/GLightweightPeer.java: New file.
3222 * java/awt/BorderLayout.java: Implemented all methods.
3223 * java/awt/Button.java (actionListener, actionCommand): Renamed
3224 and modifier change.
3225 (addNotify): Call super.
3226 (dispatchEventImpl): New method.
3227 (getListeners): New method.
3228 (label): Made package-private, not private.
3229 * java/awt/Canvas.java: Implemented class body.
3230 * java/awt/Color.java (brighter): New method.
3231 (darker): New method.
3232 (hashCode): New method.
3233 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3234 (getGraphicsConfiguration): Delegate to
3235 getGraphicsConfigurationImpl().
3236 (getGraphicsConfigurationImpl): New method.
3237 (getToolkit): Only return value from peer if not null.
3238 (isDisplayable): Check with parent.
3239 (isShowing): No parent implies not showing.
3240 (getForeground): Check parent property if local is null.
3241 (getBackground): Likewise.
3242 (getFont): Likewise.
3243 (setForeground): Inform peer.
3244 (setBackground): Likewise
3245 (setLocale): Invalidate component.
3246 (getColorModel): Implemented.
3247 (setLocation): Invalidate, or ignore if no change.
3248 (setSize): Invalidate, or ignore if no change.
3249 (setBounds): Invalidate, or ignore if no change.
3250 (isOpaque): By default, heavyweight implies opaque.
3251 (isLightweight): Implemented.
3252 (getMaximumSize): Implemented.
3253 (doLayout): Implemented, NOP.
3254 (validate): Implemented, NOP.
3255 (invalidate): Only propagate to parent if parent was valid.
3256 (getGraphics): Implemented.
3257 (getFontMetrics): Implemented.
3258 (update): Implemented.
3259 (paintAll): Implemented.
3260 (repaint): Implemented all repaint methods.
3261 (print): Implemented.
3262 (printAll): Implemented.
3263 (createImage): Implemented.
3264 (dispatchEvent): Give the peer a chance to handle the event.
3265 (dispatchEventImpl): Dispatch paint events.
3266 (enableEvents): Lightweights enable events on parent component.
3267 (coalesceEvents): Coalesce paint events, and select event type
3269 (coalescePaintEvents): New method.
3270 (processEvent): Fix unfortunate ordering of statements, and call
3271 correct method for MOUSE_CLICKED.
3272 (processPaintEvent): New method.
3273 (addNotify): Allow container to notify children before event
3274 mask is set in peer.
3275 (addNotifyContainerChildren): New method.
3276 (removeNotify): Visibility should not change on removeNotify.
3277 (paramString): Implemented.
3278 (list): Implemented two of the list methods.
3279 * Container (myInsets): Removed, insets are managed by peer.
3280 (getInsets): Query peer.
3281 (addImpl): Fix reparenting, enable events for lightweights,
3282 initialize component array.
3283 (validate): Call doLayout in validateTree() instead.
3284 (validateTree): Do nothing if already valid. Call beginValidate(),
3285 endValidate() on peer. Call validateTree() instead of validate()
3286 for children that are containers. Mark valid after validation of
3288 (setFont): Partial implementation.
3289 (paint): Implemented.
3290 (visitChildren): New method.
3291 (visitChild): New method.
3292 (update): Implemented.
3293 (print): Implemented.
3294 (paintComponents): Implemented.
3295 (printComponents): Consider translation and clipping.
3296 (getComponentAt): Ignore invisible children. Return this if no
3298 (addNotify): Call super.
3299 (addNotifyContainerChildren): New method.
3300 (paramString): Implemented.
3301 (list): Implemented.
3302 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3304 (invokeLater): Likewise.
3305 (isDispatchThread): Likewise.
3306 * java/awt/FontMetrics (getLeading): Formula change.
3307 (getDescent): Consider leading also.
3308 (getMaxAscent): Default to getAscent().
3309 (getMaxDescent): Default to getDescent.
3310 (getMaxAdvance): Return value signifying unknown.
3311 (charWidth): Both methods implemented.
3312 (charsWidth): Implemented.
3313 (bytesWidth): Implemented.
3314 (getWidths): Implemented.
3315 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3317 (Frame): Rearragend constuctor chaining to disallow null being
3318 passed as a graphics configuration.
3319 (getTitle): Return empty string if null.
3321 (getIconImage): New method.
3322 (setIconImage): New method.
3323 (finalize): New method.
3324 (setMenuBar): Notify peer.
3325 (isResizable): New method.
3326 (setResizable): New method.
3327 (getState): New method.
3329 (remove): Implemented.
3330 (removeNotify): New method.
3331 (getFrames): New method.
3332 * java/awt/Graphics.java: Implemented body of class.
3333 * java/awt/Graphics2D.java: New file.
3334 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3335 * java/awt/Image.java: Implemented body of class.
3336 * java/awt/Panel.java (Panel): Call correct super constructor.
3337 (addNotify): Implemented.
3338 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3339 * java/awt/RenderingHints.java: New file.
3340 * java/awt/Toolkit.java (createComponent): Implemented.
3341 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3342 * java/awt/Window.java (Window): Two new constructors. Reordered
3343 constructor chaining.
3344 (getGraphicsConfigurationImpl): New method.
3345 (finalize): Call super.
3346 (addNotify): Call super.
3347 (pack): Do layout stuff.
3348 (show): Ensure that peer exists and that component is valid.
3349 (dispose): Dispose owned children.
3350 (getOwner): Simplify code, casting null pointers is valid.
3351 (getGraphicsConfiguration): Ask peer if local value is null.
3352 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3354 * java/awt/image/BufferedImage.java: New file.
3355 * java/awt/image/RasterOp.java: New file.
3356 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3357 More powerfull replacement for getColorModel().
3358 (getColorModel) Removed.
3359 (setEventMask) New method.
3360 * Makefile.am: Added new files.
3361 * Makefile.in: Rebuilt.
3363 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3365 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3366 (finit_leg_name): New global.
3367 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3368 `$finit$'. This is a backward compatibility hack.
3369 (java::lang::Class::_getMethods): Likewise.
3371 2000-08-15 Andrew Haley <aph@cygnus.com>
3373 * include/jvm.h (_Jv_HashCode): New hash code.
3375 2000-08-15 Tom Tromey <tromey@cygnus.com>
3377 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3379 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3381 * THANKS: More thanks.
3383 2000-08-10 Tom Tromey <tromey@cygnus.com>
3385 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3387 (connect): Likewise.
3389 (getOption): Likewise.
3390 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3391 case when errno not set.
3394 (receive): Likewise.
3395 (mcastGrp): Likewise.
3396 (setOption): Likewise.
3397 (getOption): Likewise.
3399 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3400 John Stracke <francis@ecal.com>
3402 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3403 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3405 (disconnect): Don't unset connected flag.
3406 (getHeaderField (String)): Call connect() if not connected.
3407 (getHeaderField (int)): Ditto.
3408 (getHeaderFieldKey): Ditto.
3409 (getHttpHeaders): Don't call connect().
3410 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3411 gotResponseVals): New fields.
3412 (getResponseCode): Call getResponseVals() conditionally.
3413 (getResponseMessage): Ditto.
3414 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3416 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3418 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3419 * Makefile.in: Rebuilt.
3420 * java/awt/Color.java (getTransparency): New method.
3421 * java/awt/Component.java: Various updates.
3422 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3423 after dealing with children.
3424 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3425 * java/awt/Window.java: Various new methods and updates.
3426 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3428 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3429 * java/awt/event/WindowEvent.java (paramString): Ditto.
3430 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3432 * java/awt/geom/Point2D.java (clone): Ditto.
3433 * java/awt/geom/RectangularShape.java (clone): Ditto.
3434 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3435 isAlphaPremultiplied): Make package-private, not private.
3437 2000-08-08 Tom Tromey <tromey@cygnus.com>
3439 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3440 surrogate characters.
3441 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3443 (write): Correct handling of surrogate characters.
3445 2000-08-07 Tom Tromey <tromey@cygnus.com>
3447 * java/lang/reflect/Method.java (hashCode): Use getName().
3448 (toString): Likewise.
3449 * java/lang/reflect/natMethod.cc (getType): Initialize
3452 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3454 * java/lang/reflect/Field.java (toString): Correct formatting.
3457 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3459 (receive): Streamlined.
3461 2000-08-05 Tom Tromey <tromey@cygnus.com>
3463 * java/io/PrintWriter.java: Merged comments from Classpath.
3464 (printlnUnsynchronized): Removed.
3465 (println()): Print the separator.
3466 (println): Call println(), not printlnUnsynchronized.
3467 (out): Now protected, to match spec.
3469 2000-08-04 Tom Tromey <tromey@cygnus.com>
3471 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3472 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3475 2000-08-03 Warren Levy <warrenl@cygnus.com>
3477 * java/io/ObjectInputStream.java (readFields): Turn off
3478 readDataFromBlock while reading via GetField.
3479 (GetField$1.get(String, Object)): Pass Class of default value to
3481 (getField): Allow for null default values.
3483 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3484 (PutField$1.put): Fixed calls of checkType in most of the put
3485 methods to pass the correct parameter.
3486 (PutField$1.put(String, Object)): Allow for null value arg.
3487 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3490 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3491 typo in spec'ed field name.
3492 (getSerialPersistentFields): Changed spelling of method to match
3493 the correct spelling of the spec'ed field name.
3495 2000-08-03 Tom Tromey <tromey@cygnus.com>
3497 * Makefile.in: Rebuilt.
3498 * Makefile.am (awt_java_source_files): Added new files.
3500 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3502 * Makefile.am: Add new AWT stubs.
3503 * java/awt/Canvas.java: New placeholder class.
3504 * java/awt/Checkbox.java: Ditto.
3505 * java/awt/CheckboxMenuItem.java: Ditto.
3506 * java/awt/Choice.java: Ditto.
3507 * java/awt/Dialog.java: Ditto.
3508 * java/awt/FileDialog.java: Ditto.
3509 * java/awt/List.java: Ditto.
3510 * java/awt/ScrollPane.java: Ditto.
3511 * java/awt/TextField.java: Ditto.
3512 * java/awt/datatransfer/Clipboard.java: Ditto.
3513 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3514 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3515 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3516 Some commented out. Partially implemented.
3517 * java/awt/natToolkit.cc: Removed file.
3519 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3521 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3522 Fixes "make -j" builds.
3523 * Makefile.in: Rebuild.
3525 2000-08-02 Tom Tromey <tromey@cygnus.com>
3527 * Makefile.in: Rebuilt.
3528 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3529 * java/net/natPlainSocketImpl.cc: Include posix.h.
3530 (accept): Use _Jv_select.
3531 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3532 (receive): Use _Jv_select.
3533 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3534 (available): Use _Jv_select.
3535 * java/lang/natSystem.cc: Include posix.h.
3536 (currentTimeMillis): Use _Jv_gettimeofday.
3537 * include/posix.h: New file.
3538 * posix.cc: New file.
3540 * scripts/encodings.pl: New file.
3541 * Makefile.in: Rebuilt.
3542 * Makefile.am (convert_source_files): Added IOConverter.java.
3543 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3545 (getDefaultDecodingClass): Canonicalize default encoding name.
3546 (getEncoder): Likewise.
3547 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3549 (getDefaultDecodingClass): Canonicalize default encoding name.
3550 (getDecoder): Likewise.
3551 * gnu/gcj/convert/IOConverter.java: New file.
3553 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3555 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3556 to match C declaration in ffi.h.
3557 * Makefile.am: Add java/awt/Button.java.
3558 * Makefile.in: Rebuilt.
3560 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3562 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3563 cast of the second argument to `ffi_raw_call' changed to match
3566 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3568 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3569 argument to `ffi_raw_call' changed to match prototype.
3571 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3573 * java/awt/Component.java (toString): Implemented.
3574 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3575 dispatchEvent() to dispatch the event.
3576 (removeImpl): Ditto.
3578 2000-07-30 Anthony Green <green@redhat.com>
3580 * java/awt/Component.java: Add treeLock object.
3581 (getTreeLock): Implement.
3582 (isShowing): Implement.
3584 2000-07-30 Tom Tromey <tromey@cygnus.com>
3586 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3588 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3590 * java/awt/Window.java (addNotify): Wrote.
3591 (addWindowListener): Wrote.
3593 (getWarningString): Wrote.
3594 (processEvent): Wrote.
3595 (processWindowEvent): Wrote.
3596 (removeWindowListener): Wrote.
3597 (show): Call validate(), setVisible().
3601 * java/awt/Toolkit.java (createWindow): Declare.
3603 * java/awt/Frame.java (addNotify): Use getToolkit to find
3606 * java/awt/Component.java (invalidate): Wrote.
3608 (getToolkit): Wrote.
3610 * java/awt/Container.java (addContainerListener): Removed
3612 (removeContainerListener): Likewise.
3614 (add(Component)): Use it.
3615 (add(String,Component)): Likewise.
3616 (add(Component,int)): Likewise.
3617 (add(Component,Object)): Likewise.
3618 (add(Component,Object,int)): Likewise.
3620 (getAlignmentX): Wrote.
3621 (getAlignmentY): Wrote.
3622 (getComponentAt): Wrote.
3623 (getMaximumSize): Wrote.
3624 (invalidate): Wrote.
3625 (list(PrintStream,int)): Wrote.
3626 (list(PrintWriter,int)): Wrote.
3627 (getMinimumSize): Wrote.
3628 (getPreferredSize): Wrote.
3629 (printComponents): Wrote.
3630 (processContainerEvent): Look at containerListener, not
3632 (remove): Added event processing and peer destruction.
3633 (removeAll): Use remove.
3634 (removeNotify): Wrote.
3636 (validateTree): Wrote.
3638 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3639 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3640 * java/awt/Container.java (addNotify): Don't create Container
3642 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3644 2000-07-30 Tom Tromey <tromey@cygnus.com>
3646 * java/awt/Container.java (remove(int)): Wrote.
3647 (remove(Component)): Wrote.
3648 (add(Component)): Wrote.
3649 (add(Component,int)): Wrote.
3651 (addNotify): Set our own peer.
3652 * java/awt/Scrollbar.java (listeners): Changed type.
3653 (Scrollbar): Don't initialize listeners.
3655 (setValue): Call setValues.
3656 (setMinimum): Likewise.
3657 (setMaxPriority): Likewise.
3658 (setVisibleAmount): Likewise.
3660 (setUnitIncrement): Forward to peer.
3661 (setLineIncrement): Call setUnitIncrement.
3662 (setPageIncrement): Call setBlockIncrement.
3663 (setBlockIncrement): Forward to peer.
3664 (addAdjustmentListener): Rewrote.
3665 (removeAdjustmentListener): Rewrote.
3666 (processAdjustmentEvent): Rewrote.
3667 (paramString): Wrote.
3668 * Makefile.in: Rebuilt.
3669 * Makefile.am (awt_java_source_files): Added Button.java.
3670 * java/awt/Button.java: New file.
3671 * java/awt/Toolkit.java (createLabel): Declare.
3672 (createButton): Likewise.
3673 (createScrollbar): Likewise.
3674 (createContainer): Likewise.
3675 * java/awt/Label.java (addNotify): Wrote.
3676 (setAlignment): Call setAlignment in the peer.
3677 (setText): Call setText in the peer.
3679 2000-07-28 Warren Levy <warrenl@cygnus.com>
3681 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3682 NotSerializableException with just the class name.
3684 2000-07-26 Andrew Haley <aph@cygnus.com>
3686 * interpret.cc (continue1): Insert missing break into switch.
3688 2000-07-28 Warren Levy <warrenl@cygnus.com>
3690 * java/io/ObjectStreamException.java: Made constructors protected.
3692 2000-07-27 Tom Tromey <tromey@cygnus.com>
3694 * java/io/OutputStreamWriter.java (close): Only flush if not
3697 2000-07-27 Warren Levy <warrenl@cygnus.com>
3699 * mauve-libgcj: Activated serialization tests.
3700 * gcj/field.h (getModifiers): Mask off unknown flags.
3701 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3702 spurious bits don't cause discrepancies.
3703 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3704 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3705 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3706 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3707 * java/lang/Throwable.java (serialVersionUID): New field.
3708 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3709 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3711 * java/lang/reflect/natMethod.cc: Ditto.
3712 * java/security/Key.java (serialVersionUID): Removed field for now.
3713 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3714 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3716 2000-07-22 Tom Tromey <tromey@cygnus.com>
3718 * java/awt/geom/RectangularShape.java (getPathIterator):
3721 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3723 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3724 stub libjava/java/awt/ColorModel.java which was located in the
3726 * libjava/java/awt/image/ComponentColorModel.java: New file.
3727 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3728 * libjava/java/awt/image/DataBuffer.java: New file.
3729 * libjava/java/awt/image/DataBufferByte.java: New file.
3730 * libjava/java/awt/image/DataBufferInt.java: New file.
3731 * libjava/java/awt/image/DataBufferUShort.java: New file.
3732 * libjava/java/awt/image/DirectColorModel.java: New file.
3733 * libjava/java/awt/image/PackedColorModel.java: New file.
3734 * libjava/java/awt/image/Raster.java: New file.
3735 * libjava/java/awt/image/SampleModel.java: New file.
3736 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3738 * libjava/java/awt/image/IndexColorModel.java: New file.
3739 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3740 java.awt.ColorModel stub.
3742 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3743 * gnu/gcj/util/Buffers.java: New file, utility class.
3745 * libjava/Makefile.am: Updated to include new files.
3746 * libjava/Makefile.in: Rebuilt.
3748 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3750 * java/io/StreamTokenizer.java: Merged with classpath.
3752 2000-07-20 Tom Tromey <tromey@cygnus.com>
3754 * Makefile.in: Rebuilt.
3755 * Makefile.am (awt_java_source_files): Updated for new files.
3756 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3757 * java/awt/Label.java: New file.
3758 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3759 (createIntersection, createUnion, getBounds2D): New methods.
3760 * java/awt/Scrollbar.java: New file.
3761 * java/awt/Shape.java: Updated to 1.2.
3762 * java/awt/geom/AffineTransform.java: New file.
3763 * java/awt/geom/Ellipse2D.java: New file.
3764 * java/awt/geom/NoninvertibleTransformException.java: New file.
3765 * java/awt/geom/PathIterator.java: New file.
3766 * java/awt/geom/Rectangle2D.java: New file.
3767 * java/awt/geom/RectangularShape.java: New file.
3768 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3769 * java/awt/geom/IllegalPathStateException.java: New file.
3771 * scripts/showval.java: New file.
3773 * scripts/classes.pl (scan): Print inner classes properly.
3774 * gcj/javaprims.h: Updated class list.
3776 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3777 initialize String fields for interpreted classes. Fixes bug
3778 reported by Hans Boehm.
3780 * java/io/File.java (getParentFile): New method, from Classpath
3781 via Oskar Liljeblad.
3783 * java/util/Vector.java (remove(Object)): Implemented.
3785 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3787 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3788 zero return from backtrace().
3790 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3792 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3794 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3795 before calling notifyAll().
3797 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3799 Add missing files from last check-in:
3800 * java/awt/image/ImageConsumer.java: New file.
3801 * java/awt/image/ImageProducer.java: New file.
3802 * java/awt/image/ImageObserver.java: New file.
3804 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3806 Merged implementation of java.applet from classpath:
3807 * java/applet/Applet.java: New file.
3808 * java/applet/AppletContext.java: New file.
3809 * java/applet/AppletStub.java: New file.
3810 * java/applet/AudioClip.java: New file.
3812 * Makefile.am: Added new java.applet classes.
3813 * Makefile.in: Rebuilt.
3815 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3818 * java/util/ResourceBundle.java (getLocale): stub.
3819 * Makefile.am: Added new AWT classes.
3820 * Makefile.in: Rebuilt.
3821 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3822 constructors. Fix toString() and paramString().
3823 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3824 * java/awt/CheckboxGroup.java: New class.
3825 * java/awt/ColorModel.java: New class.
3826 * java/awt/Component.java: Added stubs for most methods. Implemented
3828 * java/awt/Container.java: ditto.
3829 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3830 * java/awt/Cursor.java: ditto.
3831 * java/awt/Event.java: Fix paramString().
3832 * java/awt/EventQueue.java: New class. Implemented.
3833 * java/awt/Font.java: Added additional stub methods. Implemented
3835 * java/awt/FontMetrics.java: New class. Stubbed.
3836 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3838 * java/awt/Insets.java: New class. Implemented.
3839 * java/awt/Menu.java: Add new methods. Partially implemented.
3840 * java/awt/MenuItem.java: Add new methods and fields. Partially
3842 * java/awt/MenuShortcut.java: New class. Implemented.
3843 * java/awt/Panel.java: New class. Placeholder.
3844 * java/awt/PopupMenu.java: New class. Stubbed.
3845 * java/awt/Rectangle.java: New class. Implemented.
3846 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3847 * java/awt/event/ActionEvent.java: Implement paramString().
3848 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3849 * java/awt/event/ComponentEvent.java: Implement paramString().
3850 * java/awt/event/ContainerEvent.java: Implement paramString().
3851 * java/awt/event/FocusEvent.java: Implement paramString().
3852 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3853 * java/awt/event/HierarchyBoundsListener.java: New class.
3854 * java/awt/event/HierarchyEvent.java: New class.
3855 * java/awt/event/HierarchyListener.java: New class.
3856 * java/awt/event/InputMethodEvent.java: Implement paramString().
3857 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3858 exception if !catchExceptions.
3859 * java/awt/event/ItemEvent.java: Implement paramString().
3860 * java/awt/event/KeyEvent.java: Implement paramString().
3861 * java/awt/event/MouseEvent.java: Implement paramString().
3862 * java/awt/event/PaintEvent.java: Implement paramString().
3863 * java/awt/event/TextEvent.java: Implement paramString().
3864 * java/awt/event/WindowEvent.java: Implement paramString().
3866 AWT Peer interfaces:
3867 * java/awt/peer/ButtonPeer.java: New file.
3868 * java/awt/peer/ListPeer.java: New file.
3869 * java/awt/peer/CanvasPeer.java: New file.
3870 * java/awt/peer/MenuBarPeer.java: New file.
3871 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3872 * java/awt/peer/MenuComponentPeer.java: New file.
3873 * java/awt/peer/CheckboxPeer.java: New file.
3874 * java/awt/peer/MenuItemPeer.java: New file.
3875 * java/awt/peer/ChoicePeer.java: New file.
3876 * java/awt/peer/MenuPeer.java: New file.
3877 * java/awt/peer/ComponentPeer.java: Implemented.
3878 * java/awt/peer/PanelPeer.java: New file.
3879 * java/awt/peer/ContainerPeer.java: Implemented.
3880 * java/awt/peer/PopupMenuPeer.java: New file.
3881 * java/awt/peer/DialogPeer.java: New file.
3882 * java/awt/peer/ScrollPanePeer.java: New file.
3883 * java/awt/peer/FileDialogPeer.java: New file.
3884 * java/awt/peer/ScrollbarPeer.java: New file.
3885 * java/awt/peer/FontPeer.java: New file.
3886 * java/awt/peer/TextAreaPeer.java: New file.
3887 * java/awt/peer/FramePeer.java: Implemented.
3888 * java/awt/peer/TextComponentPeer.java: New file.
3889 * java/awt/peer/LabelPeer.java: New file.
3890 * java/awt/peer/TextFieldPeer.java: New file.
3891 * java/awt/peer/LightweightPeer.java: New file.
3892 * java/awt/peer/WindowPeer.java: Implemented.
3894 2000-07-06 Tom Tromey <tromey@cygnus.com>
3896 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3897 Initialize static final String fields.
3899 2000-07-03 Tom Tromey <tromey@cygnus.com>
3901 * java/io/PrintWriter.java (print): Call write(String), not
3902 print(String). See PR libgcj/277.
3903 (print(String)): Use write, not out.write.
3905 2000-06-30 Tom Tromey <tromey@cygnus.com>
3907 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3909 2000-06-27 Andrew Haley <aph@cygnus.com>
3911 * java/io/File.java (createTempFile): Close the FileDescriptor
3912 used to create a temp file. Fixes some of PR 203.
3913 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3914 collection if we run out of file handles.
3916 2000-06-28 Warren Levy <warrenl@cygnus.com>
3918 * gnu/java/security/provider/Gnu.java: New file.
3919 * gnu/java/security/provider/SHA.java: New file.
3920 * gnu/java/security/provider/SHA1PRNG.java: New file.
3921 * Makefile.am: Added the above files.
3922 * Makefile.in: Rebuilt.
3924 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3926 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3928 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3929 (destroyed_flag): Removed.
3930 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3931 (activeCount): Added spec note.
3933 2000-06-27 Warren Levy <warrenl@cygnus.com>
3935 * java/security/Principal.java: New file.
3936 * Makefile.am: Added Principal.java.
3937 * Makefile.in: Rebuilt.
3939 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3941 * java/awt/event/MouseEvent.java: Fixed coordinate space
3944 2000-06-27 Tom Tromey <tromey@cygnus.com>
3946 * java/io/PushbackInputStream.java (read): If there are characters
3947 in the buffer, don't also call super.read().
3948 * java/io/PushbackReader.java (read): If there are characters in
3949 the buffer, don't also call super.read().
3951 * java/lang/Double.java (valueOf): Call parseDouble().
3953 2000-06-26 Warren Levy <warrenl@cygnus.com>
3955 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3956 (newVal): Renamed to newValue.
3957 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3958 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3959 (revokeNow): Renamed to invalidateRefs.
3960 * java/io/OptionalDataException.java: Updated FIXME.
3961 (eof): New placeholder field.
3963 * java/io/WriteAbortedException.java (message): Made transient.
3964 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3965 * java/lang/Throwable.java (stackTrace): Made transient.
3966 * java/net/InetAddress.java: Made Serializable.
3967 * java/security/KeyPair.java: Made Serializable.
3968 * java/security/Provider.java: Replaced with Classpath version that
3969 implements serialization and proper methods.
3970 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3971 (limits): Renamed to choiceLimits.
3973 2000-06-24 Tom Tromey <tromey@cygnus.com>
3975 * java/lang/natDouble.cc (parseDouble): Renamed from
3977 * java/lang/Double.java (parseDouble): Renamed from
3978 doubleValueOf. Now public.
3980 2000-06-23 Andrew Haley <aph@cygnus.com>
3982 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3983 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3985 2000-06-23 Tom Tromey <tromey@cygnus.com>
3987 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3988 * java/lang/natDouble.cc: Always include <alloca.h>.
3989 Fix for PR libgcj/267.
3991 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3993 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3994 comply with classpath VM spec.
3995 (add(Group)): Rename to addGroup().
3996 * java/lang/Thread.java (Thread): Use addThread().
3997 * java/lang/natThread.cc (finish_): Use removeThread().
3999 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4001 * java/lang/ThreadGroup.java: Merged with classpath.
4002 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4003 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4005 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4006 ThreadGroup.root if Thread.currentThread is null. Honour the
4007 ThreadGroup's max priority setting.
4009 2000-06-18 Tom Tromey <tromey@cygnus.com>
4011 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4012 returned class. For PR gcj/260.
4014 2000-06-16 Tom Tromey <tromey@cygnus.com>
4016 Fix for PR libgcj/261:
4017 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4019 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4020 argument. (This is a patch from long ago that somehow went
4023 2000-06-15 Tom Tromey <tromey@cygnus.com>
4025 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4029 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4031 Fix for PR java.lang/258:
4032 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4033 JV_STATE_DONE, to prevent accidental initialization.
4034 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4035 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4036 interface or an abstract class. Remove redundant initializeClass calls.
4037 Remove duplicate if_idt test.
4038 (_Jv_InterfaceAssignableFrom): New function.
4039 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4041 2000-05-31 Tom Tromey <tromey@cygnus.com>
4043 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4044 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4045 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4046 (NUM_OBJECT_METHODS): New define.
4047 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4048 `array_vtable' parameter. Added assertion.
4049 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4052 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4054 * gcj/cni.h: Include <string.h>.
4055 * defineclass.cc: Include <alloca.h>.
4056 * interpret.cc: Ditto.
4057 * gij.cc: Include <stdlib.h>.
4059 2000-05-30 Tom Tromey <tromey@cygnus.com>
4061 * include/name-finder.h: Include <sys/wait.h>.
4062 (_Jv_name_finder::pid): Now of type `pid_t'.
4063 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4064 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4067 2000-05-24 Warren Levy <warrenl@cygnus.com>
4069 * java/io/ObjectOutputStream.java (writeObject): Use component type
4070 when writing arrays.
4073 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4075 Fix for PR libgcj/226:
4076 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4077 since this is an installed header.
4079 Fix for PR libgcj/228:
4080 * java/util/zip/ZipFile (getInputStream): Create inflater with
4083 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4084 with DataFormatException.
4086 2000-05-20 Tom Tromey <tromey@cygnus.com>
4088 * Makefile.in: Rebuilt.
4089 * Makefile.am (hack1): Removed.
4090 (awto_files): Likewise.
4091 (libgcjawt_la_SOURCES): Likewise.
4092 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4093 (libgcjawt_la_DEPENDENCIES): Likewise.
4094 (libgcjawt_la_LIBADD): Likewise.
4095 (libgcjawt_la_LDFLAGS): Likewise.
4096 (libgcjawt_la_LINK): Likewise.
4097 ($(awt_java_source_files:.java=.class)): Likewise.
4098 (libgcj.zip): Don't depend on AWT files.
4099 (MOSTLYCLEANFILES): Don't include AWT files.
4100 ($(awto_files)): Removed.
4101 (nat_headers): Removed AWT files.
4102 (cond_awt_java_source_files): Removed.
4103 (ordinary_java_source_files): Added awt_java_source_files.
4104 * libgcj.spec.in (*lib): Removed -lgcjawt.
4105 * configure: Rebuilt.
4106 * configure.in: Removed --enable-java-awt option.
4108 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4110 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4111 (ZipEntry): Copy the `name' field.
4112 (clone): Implement JDK1.2 method.
4113 (setCompressedSize): ditto.
4116 2000-05-19 Tom Tromey <tromey@cygnus.com>
4118 * java/io/BufferedWriter.java: Merged with Classpath.
4119 * java/io/BufferedOutputStream.java: Merged with Classpath.
4121 2000-05-16 Andrew Haley <aph@cygnus.com>
4123 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4124 build_ia64_frame_state.
4125 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4128 2000-05-15 Warren Levy <warrenl@cygnus.com>
4130 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4131 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4132 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4133 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4134 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4135 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4136 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4137 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4138 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4139 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4140 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4141 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4142 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4143 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4144 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4145 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4146 * gnu/gcj/io/NullOutputStream.java: Removed.
4147 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4148 * gnu/gcj/lang/ArrayHelper.java: Removed.
4149 * gnu/gcj/lang/ClassHelper.java: Removed.
4150 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4152 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4153 * gnu/java/beans/EmptyBeanInfo.java: New file.
4154 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4155 * gnu/java/beans/IntrospectionIncubator.java: New file.
4156 * gnu/java/beans/editors/ColorEditor.java: New file.
4157 * gnu/java/beans/editors/FontEditor.java: New file.
4158 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4159 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4160 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4161 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4162 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4163 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4164 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4165 * gnu/java/beans/editors/StringEditor.java: New file.
4166 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4167 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4168 * gnu/java/io/NullOutputStream.java: New file.
4169 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4170 * gnu/java/lang/ArrayHelper.java: New file.
4171 * gnu/java/lang/ClassHelper.java: New file.
4172 * gnu/java/lang/reflect/TypeSignature.java: New file.
4174 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4175 namespace back to the original Classpath gnu/java namespace.
4176 * Makefile.in: Rebuilt.
4178 * java/beans/Beans.java: Namespace change.
4179 * java/beans/EventSetDescriptor.java: Namespace change.
4180 * java/beans/Introspector.java: Namespace change.
4181 * java/beans/PropertyEditorManager.java: Namespace change.
4182 * java/io/ObjectInputStream.java: Namespace change.
4183 * java/io/ObjectOutputStream.java: Namespace change.
4184 * java/io/ObjectStreamClass.java: Namespace change.
4185 * java/io/ObjectStreamField.java: Namespace change.
4187 2000-04-21 Warren Levy <warrenl@cygnus.com>
4189 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4190 now that compiler patch is available.
4191 Removed unneeded System.loadLibrary.
4192 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4193 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4195 2000-04-19 Andrew Haley <aph@cygnus.com>
4197 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4198 and target classes have been initialized.
4200 2000-04-19 Andrew Haley <aph@cygnus.com>
4202 * java/lang/String.java: implement Serializable, Comparable.
4203 (compareTo (Object)): New method.
4205 2000-04-19 Warren Levy <warrenl@cygnus.com>
4207 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4208 instead of getField to retrieve non-public field.
4209 (getSerialPersistantFields): Ditto.
4211 2000-04-18 Warren Levy <warrenl@cygnus.com>
4213 * mauve-libgcj: Turned off object serialization tests temporarily
4214 due to compiler error.
4216 2000-04-17 Warren Levy <warrenl@cygnus.com>
4218 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4219 to avoid build problem.
4221 * mauve-libgcj: Turned on object serialization tests.
4223 2000-04-17 Tom Tromey <tromey@cygnus.com>
4225 * libgcj.spec.in (*lib): Added -lgcjawt.
4227 2000-04-17 Andrew Haley <aph@cygnus.com>
4229 * Makefile.am: Add new files:
4230 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4232 * Makefile.in: Rebuilt.
4234 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4235 interface that has no implementations.
4236 Check for an attempt to assign an abstract class to an interface.
4238 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4239 if we fail to find MessageDigest.getInstance ("SHA").
4241 * gnu/gcj/io/SimpleSHSStream.java: New file.
4242 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4243 * gnu/gcj/io/shs.cc: New file.
4244 * gnu/gcj/io/shs.h: new file.
4246 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4249 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4250 punctuation from the classname of an array element.
4252 * gcj/javaprims.h: Add SimpleDigestStream.
4254 2000-04-17 Andrew Haley <aph@cygnus.com>
4256 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4257 to getPrivateField for superclasses.
4259 2000-04-14 Andrew Haley <aph@cygnus.com>
4261 * Makefile.am: Add new files:
4262 java/io/ObjectOutputStream$PutField.h,
4263 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4264 java/io/natObjectOutputStream.cc
4265 * Makefile.in: Rebuilt.
4266 * gcj/Makefile.in: Rebuilt.
4267 * include/Makefile.in: Rebuilt.
4268 * java/lang/Class.h (getPrivateField): New method.
4269 (getPrivateMethod): Ditto.
4270 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4271 and java::io::ObjectStreamClass our friends.
4272 * java/lang/natClass.cc (getPrivateField): New method.
4273 (getPrivateMethod): Ditto.
4274 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4275 * gcj/javaprims.h: Add serialization classes.
4276 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4277 (setByteField): Ditto.
4278 (setCharField): Ditto.
4279 (setDoubleField): Ditto.
4280 (setFloatField): Ditto.
4281 (setIntField): Ditto.
4282 (setLongField): Ditto.
4283 (setShortField): Ditto.
4284 (setObjectField): Ditto.
4285 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4287 (getByteField): Ditto.
4288 (getCharField): Ditto.
4289 (getDoubleField): Ditto.
4290 (getFloatField): Ditto.
4291 (getIntField): Ditto.
4292 (getLongField): Ditto.
4293 (getShortField): Ditto.
4294 (getObjectField): Ditto.
4295 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4297 (getSerialPersistantFields): Ditto.
4298 (getDefinedSUID): Ditto.
4299 * java/io/natObjectOutputStream.cc: New file.
4300 * java/io/natObjectInputStream.cc: New file.
4302 2000-04-13 Warren Levy <warrenl@cygnus.com>
4304 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4305 problems. Revert to previous version to reproduce and when fixed.
4307 2000-04-13 Warren Levy <warrenl@cygnus.com>
4309 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4310 * gnu/gcj/io/NullOutputStream.java: New file.
4311 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4312 * java/io/BlockDataException.java: New file.
4313 * java/io/Externalizable.java: New file.
4314 * java/io/InvalidClassException.java: New file.
4315 * java/io/InvalidObjectException.java: New file.
4316 * java/io/NotActiveException.java: New file.
4317 * java/io/NotSerializableException.java: New file.
4318 * java/io/ObjectInput.java: New file.
4319 * java/io/ObjectInputStream.java: New file.
4320 * java/io/ObjectInputValidation.java: New file.
4321 * java/io/ObjectOutput.java: New file.
4322 * java/io/ObjectOutputStream.java: New file.
4323 * java/io/ObjectStreamClass.java: New file.
4324 * java/io/ObjectStreamConstants.java: New file.
4325 * java/io/ObjectStreamField.java: New file.
4326 * java/io/Replaceable.java: New file.
4327 * java/io/Resolvable.java: New file.
4328 * java/io/SerializablePermission.java: New file.
4329 * java/io/WriteAbortedException.java: New file.
4330 * java/security/BasicPermission.java: New file.
4331 * java/security/DigestOutputStream.java: New file.
4332 * java/security/Guard.java: New file.
4333 * java/security/Permission.java: New file.
4334 * java/security/PermissionCollection.java: New file.
4335 * Makefile.am: Added above files.
4336 * Makefile.in: Rebuilt.
4338 * java/beans/Beans.java (instantiate): Activated serialization code.
4339 * java/lang/SecurityManager.java (checkPermission): New method.
4341 2000-04-12 Warren Levy <warrenl@cygnus.com>
4343 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4344 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4345 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4346 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4347 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4348 * gnu/gcj/beans/editors/FontEditor.java: New file.
4349 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4350 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4351 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4352 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4353 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4354 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4355 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4356 * gnu/gcj/beans/editors/StringEditor.java: New file.
4357 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4358 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4359 * gnu/gcj/lang/ArrayHelper.java: New file.
4360 * gnu/gcj/lang/ClassHelper.java: New file.
4361 * java/beans/BeanDescriptor.java: New file.
4362 * java/beans/BeanInfo.java: New file.
4363 * java/beans/Beans.java: New file.
4364 * java/beans/Customizer.java: New file.
4365 * java/beans/DesignMode.java: New file.
4366 * java/beans/EventSetDescriptor.java: New file.
4367 * java/beans/FeatureDescriptor.java: New file.
4368 * java/beans/IndexedPropertyDescriptor.java: New file.
4369 * java/beans/IntrospectionException.java: New file.
4370 * java/beans/Introspector.java: New file.
4371 * java/beans/MethodDescriptor.java: New file.
4372 * java/beans/ParameterDescriptor.java: New file.
4373 * java/beans/PropertyChangeEvent.java: New file.
4374 * java/beans/PropertyChangeListener.java: New file.
4375 * java/beans/PropertyChangeSupport.java: New file.
4376 * java/beans/PropertyDescriptor.java: New file.
4377 * java/beans/PropertyEditor.java: New file.
4378 * java/beans/PropertyEditorManager.java: New file.
4379 * java/beans/PropertyEditorSupport.java: New file.
4380 * java/beans/PropertyVetoException.java: New file.
4381 * java/beans/SimpleBeanInfo.java: New file.
4382 * java/beans/VetoableChangeListener.java: New file.
4383 * java/beans/VetoableChangeSupport.java: New file.
4384 * java/beans/Visibility.java: New file.
4385 * java/beans/beancontext/BeanContext.java: New file.
4386 * java/beans/beancontext/BeanContextChild.java: New file.
4387 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4388 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4389 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4390 * java/beans/beancontext/BeanContextEvent.java: New file.
4391 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4392 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4393 * java/beans/beancontext/BeanContextProxy.java: New file.
4394 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4396 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4397 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4399 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4400 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4402 * java/beans/beancontext/BeanContextServices.java: New file.
4403 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4404 * java/util/AbstractCollection.java: New file.
4405 * java/util/AbstractList.java: New file.
4406 * java/util/Arrays.java: New file.
4407 * Makefile.am: Added above files.
4408 * Makefile.in: Rebuilt.
4410 2000-04-11 Warren Levy <warrenl@cygnus.com>
4412 * java/awt/AWTError.java: New file.
4413 * java/awt/AWTEvent.java: New file.
4414 * java/awt/AWTException.java: New file.
4415 * java/awt/ActiveEvent.java: New file.
4416 * java/awt/Adjustable.java: New file.
4417 * java/awt/BorderLayout.java: New file.
4418 * java/awt/Color.java: New file.
4419 * java/awt/Component.java: New file.
4420 * java/awt/Container.java: New file.
4421 * java/awt/Dimension.java: New file.
4422 * java/awt/Event.java: New file.
4423 * java/awt/Font.java: New file.
4424 * java/awt/Frame.java: New file.
4425 * java/awt/Graphics.java: New file.
4426 * java/awt/IllegalComponentStateException.java: New file.
4427 * java/awt/Image.java: New file.
4428 * java/awt/ItemSelectable.java: New file.
4429 * java/awt/LayoutManager.java: New file.
4430 * java/awt/LayoutManager2.java: New file.
4431 * java/awt/Menu.java: New file.
4432 * java/awt/MenuBar.java: New file.
4433 * java/awt/MenuComponent.java: New file.
4434 * java/awt/MenuContainer.java: New file.
4435 * java/awt/MenuItem.java: New file.
4436 * java/awt/Paint.java: New file.
4437 * java/awt/PaintContext.java: New file.
4438 * java/awt/Point.java: New file.
4439 * java/awt/Rectangle.java: New file.
4440 * java/awt/Shape.java: New file.
4441 * java/awt/TextArea.java: New file.
4442 * java/awt/TextComponent.java: New file.
4443 * java/awt/Toolkit.java: New file.
4444 * java/awt/Transparency.java: New file.
4445 * java/awt/Window.java: New file.
4446 * java/awt/natToolkit.cc: New file.
4447 * java/awt/event/AWTEventListener.java: New file.
4448 * java/awt/event/ActionEvent.java: New file.
4449 * java/awt/event/ActionListener.java: New file.
4450 * java/awt/event/AdjustmentEvent.java: New file.
4451 * java/awt/event/AdjustmentListener.java: New file.
4452 * java/awt/event/ComponentAdapter.java: New file.
4453 * java/awt/event/ComponentEvent.java: New file.
4454 * java/awt/event/ComponentListener.java: New file.
4455 * java/awt/event/ContainerAdapter.java: New file.
4456 * java/awt/event/ContainerEvent.java: New file.
4457 * java/awt/event/ContainerListener.java: New file.
4458 * java/awt/event/FocusAdapter.java: New file.
4459 * java/awt/event/FocusEvent.java: New file.
4460 * java/awt/event/FocusListener.java: New file.
4461 * java/awt/event/InputEvent.java: New file.
4462 * java/awt/event/InputMethodEvent.java: New file.
4463 * java/awt/event/InputMethodListener.java: New file.
4464 * java/awt/event/InvocationEvent.java: New file.
4465 * java/awt/event/ItemEvent.java: New file.
4466 * java/awt/event/ItemListener.java: New file.
4467 * java/awt/event/KeyAdapter.java: New file.
4468 * java/awt/event/KeyEvent.java: New file.
4469 * java/awt/event/KeyListener.java: New file.
4470 * java/awt/event/MouseAdapter.java: New file.
4471 * java/awt/event/MouseEvent.java: New file.
4472 * java/awt/event/MouseListener.java: New file.
4473 * java/awt/event/MouseMotionAdapter.java: New file.
4474 * java/awt/event/MouseMotionListener.java: New file.
4475 * java/awt/event/PaintEvent.java: New file.
4476 * java/awt/event/TextEvent.java: New file.
4477 * java/awt/event/TextListener.java: New file.
4478 * java/awt/event/WindowAdapter.java: New file.
4479 * java/awt/event/WindowEvent.java: New file.
4480 * java/awt/event/WindowListener.java: New file.
4481 * java/awt/geom/Dimension2D.java: New file.
4482 * java/awt/geom/Point2D.java: New file.
4483 * java/awt/peer/ComponentPeer.java: New file.
4484 * java/awt/peer/ContainerPeer.java: New file.
4485 * java/awt/peer/FramePeer.java: New file.
4486 * java/awt/peer/WindowPeer.java: New file.
4487 * java/util/Collection.java: New file.
4488 * java/util/Comparator.java: New file.
4489 * java/util/Iterator.java: New file.
4490 * java/util/List.java: New file.
4491 * java/util/ListIterator.java: New file.
4492 * Makefile.am: Added above files.
4493 * Makefile.in: Rebuilt.
4495 2000-04-10 Warren Levy <warrenl@cygnus.com>
4497 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4498 * java/lang/FirstThread.java: Ditto.
4499 * java/lang/StringBuffer.java: Ditto.
4500 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4502 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4503 Special case handled in java.math.BigInteger.
4504 * java/math/BigInteger.java (divide): Handle the special case when
4505 dividing by 1 and the high bit of the dividend is set.
4506 (setShiftRight): Handle case when count == 0.
4508 2000-04-05 Andrew Haley <aph@cygnus.com>
4510 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4513 2000-04-05 Andrew Haley <aph@cygnus.com>
4515 * sysdep/ia64.c (rse_address_add): Delete.
4516 (IS_NaT_COLLECTION_ADDR): Delete.
4517 (ia64_backtrace_helper): check for null unwind_info.
4519 * sysdep/ia64-frame.h: add calc_caller_bsp.
4521 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4524 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4525 (_Jv_remI): Likewise.
4526 (_Jv_divJ): Likewise.
4527 (_Jv_remJ): Likewise.
4529 * interpret.cc (continue1): Use divide subroutines to guarantee
4530 correct Java standard behaviour.
4531 Floating-point division should not abort; make it so.
4533 2000-03-29 Tom Tromey <tromey@cygnus.com>
4535 * configure: Rebuilt.
4536 * configure.in: Test against `libgcj_sjlj', not
4537 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4538 to be set even when using sjlj.
4540 2000-03-24 Andrew Haley <aph@cygnus.com>
4542 * Makefile.am: Add file addr2name.awk.
4543 * Makefile.in: Rebuilt.
4544 * addr2name.awk: New file.
4545 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4547 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4550 2000-03-22 Andrew Haley <aph@cygnus.com>
4552 * configure.host: Add -funwind-tables for IA64.
4553 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4554 * Makefile.in: Rebuilt.
4555 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4556 * sysdep/ia64.c: New file.
4557 * sysdep/ia64-frame.h: New file.
4558 * configure.in: Add sysdep/ia64.c for ia64.
4559 * configure: Rebuilt.
4561 2000-03-17 Andrew Haley <aph@cygnus.com>
4563 * java/lang/natString.cc: Remove `register' keyword.
4564 interpret.cc: ditto.
4566 2000-03-16 Andrew Haley <aph@cygnus.com>
4568 * configure.host (ia64): Enable interpreter.
4570 2000-03-14 Hans Boehm <boehm@acm.org>
4572 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4574 2000-03-14 Andrew Haley <aph@cygnus.com>
4576 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4579 2000-03-10 Andrew Haley <aph@cygnus.com>
4581 * java/lang/ieeefp.h: Import latest version from fdlibm.
4583 2000-03-14 Andrew Haley <aph@cygnus.com>
4585 * prims.cc (_Jv_ThrowSignal): New function.
4586 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4588 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4589 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4590 * include/ppc-signal.h: New file.
4592 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4594 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4595 * java/lang/natThread.java (initialize_native): Cast `data' to
4597 * gnu/gcj/RawData.java: Clarify documentation.
4599 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4600 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4601 `jarFile', not `jarFileURL'.
4603 2000-05-15 Andrew Haley <aph@cygnus.com>
4605 * include/ppc-signal.h: New file.
4607 2000-05-11 Tom Tromey <tromey@cygnus.com>
4609 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4610 file headers, don't include `size' in the skip call.
4612 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4614 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4615 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4617 (replace): Reimplemented. Fix javadoc.
4618 (reverse): Call ensureCapacity_unsynchronized().
4619 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4621 (replace): Calculate length for arraycopy() correctly.
4623 2000-05-09 Tom Tromey <tromey@cygnus.com>
4625 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4627 (insert(int,char[],int,int): New method.
4628 (delete): New method from Classpath.
4629 (deleteCharAt): Likewise.
4630 (substring): Likewise.
4631 (shared): No longer private.
4632 Added JavaDoc comments from Classpath.
4633 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4636 2000-05-07 Tom Tromey <tromey@cygnus.com>
4638 * Makefile.in: Rebuilt.
4639 * Makefile.am (LIBLINK): New macro.
4640 (libgcj_la_LINK): Use it.
4641 (libgcjawt_la_LINK): Likewise.
4643 2000-05-06 Tom Tromey <tromey@cygnus.com>
4645 * Makefile.in: Rebuilt.
4646 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4648 2000-05-05 Tom Tromey <tromey@cygnus.com>
4650 Fix for PR libgcj/220:
4651 * Makefile.in: Rebuilt.
4652 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4653 (jv_convert_LDFLAGS): Likewise.
4654 (libgcj_la_LDFLAGS): Likewise.
4655 (GCJLINK): New macro.
4656 (jv_convert_LINK): Use it.
4657 (gij_LINK): Likewise.
4658 (libgcj_la_LINK): New macro.
4659 (libgcjawt_la_LINK): Likewise.
4661 2000-05-04 Tom Tromey <tromey@cygnus.com>
4663 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4665 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4669 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4671 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4672 (_Jv_IsAssignableFrom): Ditto.
4673 (_Jv_IsInstanceOf): Ditto.
4674 (_Jv_CheckCast): Ditto.
4675 (_Jv_CheckArrayStore): Ditto.
4676 * java/lang/Class.h (_Jv_InitClass): Ditto.
4677 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4682 (_Jv_MonitorExit): Ditto.
4683 * boehm.cc (_Jv_MarkObj): Ditto.
4684 (_Jv_MarkObj): Ditto.
4685 (_Jv_MarkArray): Ditto.
4686 * prims.cc (_Jv_AllocObject): Ditto.
4687 (_Jv_NewObjectArray): Ditto.
4688 (_Jv_NewPrimArray): Ditto.
4689 (_Jv_Malloc): Ditto.
4690 (_Jv_Realloc): Ditto.
4691 (_Jv_MallocUnchecked): Ditto.
4697 2000-05-04 Tom Tromey <tromey@cygnus.com>
4699 * java/util/Locale.java (Locale): Don't explicitly check for
4701 * java/util/Hashtable.java (containsKey): Don't explicitly check
4704 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4706 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4708 * java/text/StringCharacterIterator.java
4709 (StringCharacterIterator): Don't check for null.
4710 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4712 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4713 check for null pointer.
4714 (leaveGroup): Likewise.
4715 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4717 (setData): Likewise.
4718 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4721 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4723 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4724 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4725 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4726 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4727 -rpath for in-gcc builds.
4728 * Makefile.in: Rebuilt.
4730 2000-04-28 Tom Tromey <tromey@cygnus.com>
4732 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4735 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4737 * libjava/java/lang/String.java (toString): Remove `final' hack.
4739 2000-04-05 Tom Tromey <tromey@cygnus.com>
4741 Runtime support for PR gcj/2:
4742 * prims.cc (_Jv_ThrowNullPointerException): New function.
4743 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4745 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4747 * prims.cc (_Jv_NewObjectArray): Fix typo.
4749 2000-04-26 Tom Tromey <tromey@cygnus.com>
4751 * Makefile.in: Rebuilt.
4752 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4754 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4756 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4759 2000-04-22 Anthony Green <green@cygnus.com>
4761 * include/jvm.h (__builtin_expect): Define as unused for now.
4762 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4766 (_Jv_MonitorExit): Ditto.
4767 * boehm.cc (_Jv_MarkObj): Ditto.
4768 (_Jv_MarkObj): Ditto.
4769 (_Jv_MarkArray): Ditto.
4770 (_Jv_AllocBytes): Ditto.
4771 * prims.cc (_Jv_AllocObject): Ditto.
4772 (_Jv_NewObjectArray): Ditto.
4773 (_Jv_NewPrimArray): Ditto.
4774 (_Jv_Malloc): Ditto.
4775 (_Jv_Realloc): Ditto.
4776 (_Jv_MallocUnchecked): Ditto.
4782 * include/Makefile.in: Rebuilt.
4783 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4785 2000-04-21 Tom Tromey <tromey@cygnus.com>
4787 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4788 Yet another new version from Classpath.
4790 Fix for PR libgcj/15:
4791 * java/util/natGregorianCalendar.cc (_REENTRANT,
4792 _POSIX_PTHREAD_SEMANTICS): Don't define.
4793 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4794 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4796 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4798 * configure: Rebuilt.
4799 * configure.in: If using POSIX threads, define _REENTRANT if
4800 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4801 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4803 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4804 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4805 version from Classpath.
4807 Fix for PR libgcj/213:
4808 * Makefile.in: Rebuilt.
4809 * Makefile.am (gij_SOURCES): Added gij.cc.
4810 (EXTRA_gij_SOURCES): Removed.
4811 (gij_LDADD): Removed gij.lo.
4812 (gij_DEPENDENCIES): Likewise.
4813 ($(gij_OBJECTS)): Depend on nat_headers.
4815 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4816 `setURL', not `url.set'.
4818 2000-04-20 Tom Tromey <tromey@cygnus.com>
4820 Fix for PR java.io/204:
4821 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4822 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4825 Fix for PR libgcj/212:
4826 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4827 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4828 * java/lang/Class.h (_Jv_word): Declare.
4830 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4832 2000-04-19 Tom Tromey <tromey@cygnus.com>
4834 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4835 doesn't have a loader.
4837 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4839 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4840 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4842 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4844 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4846 (available): Initialize `where' to prevent bogus compiler warning.
4848 2000-04-12 Tom Tromey <tromey@cygnus.com>
4850 * java/lang/natString.cc (intern): Temporarily disable finalizer
4853 * java/lang/natString.cc (unintern): Added `obj' argument.
4854 (intern): Register finalizer for string.
4855 * java/lang/String.java (unintern): Now static; added obj
4858 2000-04-11 Tom Tromey <tromey@cygnus.com>
4860 * java/util/Vector.java (VectorEnumeration): Now `final'.
4861 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4862 (HashtableEnumeration): Likewise.
4863 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4864 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4866 2000-04-10 Warren Levy <warrenl@cygnus.com>
4868 * java/io/ObjectStreamException.java: New file.
4869 * java/io/OptionalDataException.java: New file.
4870 * java/io/StreamCorruptedException.java: New file.
4871 * java/math/BigDecimal.java: New file.
4872 * java/sql/CallableStatement.java: New file.
4873 * java/sql/Connection.java: New file.
4874 * java/sql/DataTruncation.java: New file.
4875 * java/sql/DatabaseMetaData.java: New file.
4876 * java/sql/Date.java: New file.
4877 * java/sql/Driver.java: New file.
4878 * java/sql/DriverManager.java: New file.
4879 * java/sql/DriverPropertyInfo.java: New file.
4880 * java/sql/PreparedStatement.java: New file.
4881 * java/sql/ResultSet.java: New file.
4882 * java/sql/ResultSetMetaData.java: New file.
4883 * java/sql/SQLException.java: New file.
4884 * java/sql/SQLWarning.java: New file.
4885 * java/sql/Statement.java: New file.
4886 * java/sql/Time.java: New file.
4887 * java/sql/Timestamp.java: New file.
4888 * java/sql/Types.java: New file.
4889 * Makefile.am: Added above new files.
4890 * Makefile.in: Rebuilt.
4892 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4893 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4894 DatagramSocket constructor instead of null.
4896 2000-04-08 Anthony Green <green@cygnus.com>
4898 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4901 2000-04-08 Anthony Green <green@cygnus.com>
4903 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4904 (_Jv_MutexUnlock): Ditto.
4905 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4906 (_Jv_MutexUnlock): Ditto.
4908 2000-04-08 Anthony Green <green@cygnus.com>
4910 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4911 (ensureCapacity_unsynchronized): New private method.
4912 (append): Use ensureCapacity_unsynchronized.
4914 2000-04-08 Tom Tromey <tromey@cygnus.com>
4916 * Makefile.in: Rebuilt.
4917 * Makefile.am (awt_java_source_files): Added new files.
4918 * java/awt/IllegalComponentStateException.java: New file.
4919 * java/awt/ItemSelectable.java: New file.
4920 * java/awt/event/WindowEvent.java: Finished.
4921 * java/awt/event/TextEvent.java: Finished.
4922 * java/awt/event/ContainerEvent.java: New file.
4923 * java/awt/Component.java (getX, getY): New methods.
4924 * java/awt/event/PaintEvent.java: New file.
4925 * java/awt/event/MouseEvent.java: New file.
4926 * java/awt/ActiveEvent.java: New file.
4927 * java/awt/event/KeyEvent.java: Finished.
4928 * java/awt/event/ItemEvent.java: New file.
4929 * java/awt/Adjustable.java: New file.
4930 * java/awt/event/InputMethodEvent.java: New file.
4931 * java/awt/event/InputEvent.java: Finished.
4932 * java/awt/event/FocusEvent.java: New file.
4933 * java/awt/event/MouseMotionAdapter.java: New file.
4934 * java/awt/event/MouseAdapter.java: New file.
4935 * java/awt/event/KeyAdapter.java: New file.
4936 * java/awt/event/FocusAdapter.java: New file.
4937 * java/awt/event/ContainerAdapter.java: New file.
4938 * java/awt/event/ComponentEvent.java: Finished.
4939 * java/awt/event/AdjustmentEvent.java: New file.
4940 * java/awt/event/ComponentAdapter.java: New file.
4941 * java/awt/event/ActionEvent.java: Finished.
4942 * java/awt/event/MouseMotionListener.java: New file.
4943 * java/awt/event/MouseListener.java: New file.
4944 * java/awt/event/ItemListener.java: New file.
4945 * java/awt/event/InputMethodListener.java: New file.
4946 * java/awt/event/ContainerListener.java: New file.
4947 * java/awt/event/FocusListener.java: New file.
4948 * java/awt/event/ComponentListener.java: New file.
4949 * java/awt/event/AWTEventListener.java: New file.
4950 * java/awt/event/AdjustmentListener.java: New file.
4952 2000-04-08 Anthony Green <green@cygnus.com>
4954 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4955 check when we have to.
4957 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4960 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4963 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4964 inline hasMoreElements.
4966 2000-04-05 Tom Tromey <tromey@cygnus.com>
4968 * configure: Rebuilt.
4969 * configure.in: Recognize --enable-java-awt.
4970 (AWT): New conditional.
4971 * Makefile.in: Rebuilt.
4972 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4974 (libgcjawt_la_SOURCES): New macro.
4975 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4976 (libgcjawt_la_DEPENDENCIES): Likewise.
4977 (libgcjawt_la_LIBADD): Likewise.
4978 (libgcjawt_la_LDFLAGS): Likewise.
4979 (libgcj.zip): Depend on cond_java_awt_source_files
4980 (cond_awt_java_source_files): New macro.
4981 (MOSTLYCLEANFILES): Added awto_files.
4982 (awto_files): New macro. Use where javao_files used.
4983 (nat_headers): Use cond_awt_java_source_files.
4985 2000-04-04 Tom Tromey <tromey@cygnus.com>
4987 * Makefile.in: Rebuilt.
4988 * Makefile.am (awt_java_source_files): Added AWTException.java.
4989 * java/awt/AWTException.java: New file.
4991 2000-04-03 Tom Tromey <tromey@cygnus.com>
4993 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4994 commentary from Alex.
4996 * Makefile.in: Rebuilt.
4997 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5000 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5002 * configure: Rebuilt.
5003 * configure.in: Add --disable-jvmpi.
5004 * include/config.h.in: Rebuilt.
5005 * acconfig.h: Add ENABLE_JVMPI.
5007 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5008 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5009 (_Jv_JVMPI_Notify_THREAD_END): New define.
5010 (_Jv_JVMPI_Notify_THREAD_END): New define.
5011 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5012 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5013 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5015 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5018 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5019 (finish_): Generate JVMPI thread end events.
5020 (run_): Generate JVMPI thread start events.
5021 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5022 preloaded JNI library.
5023 Include JVMPI headers if necessary.
5024 (run): Generate JVMPI thread start events.
5026 * boehm.cc: Define GC_disable and GC_enable.
5027 (_Jv_DisableGC): New function.
5028 (_Jv_EnableGC): New function.
5029 (disable_gc_mutex): Declare.
5030 * nogc.cc (_Jv_DisableGC): New function.
5031 (_Jv_EnableGC): New function.
5033 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5034 (_Jv_JVMPI_Interface): Define.
5035 (jvmpiEnableEvent): New function.
5036 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5038 * include/jvmpi.h: New file.
5040 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5042 * Makefile.in: New #defines and friends for Thread.h.
5043 * Makefile.am: Ditto.
5044 * posix-threads.cc: (struct starter): Remove `object'.
5045 (_Jv_CondWait): Use interruptable condition variables and new
5046 recursive mutexes. New return codes on interrupt or non-ownership
5048 (_Jv_CondNotify): Ditto.
5049 (_Jv_CondNotifyAll): Ditto.
5050 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5051 the target thread by signaling its wait condition.
5052 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5053 not the starter struct. Initialize wait_mutex and wait_cond.
5054 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5056 (_Jv_MutexUnlock): Ditto.
5057 (really_start): Set info->data->thread from pthread_self() to work
5058 around a race condition. Destroy wait_mutex and wait_cond when run()
5060 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5061 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5063 startable_flag: New private field.
5064 (Thread): Initialize `startable_flag'.
5065 (toString): Check for null thread group.
5066 * java/lang/natThread.cc: (struct natThread): New fields
5067 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5068 (class locker): Removed.
5069 (initialize_native): Initialize `join_cond' and `join_mutex'.
5070 (interrupt): Now just calls _Jv_ThreadInterrupt().
5071 (join): Simplified. Just wait on the target thread's join condition.
5072 (finish_): Remove join list code. Unset thread group. Signal
5073 potential joiners by notifying the dying threads join_cond.
5074 (start): Check for illegal restarts.
5075 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5077 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5078 #defines and #ifdefs.
5079 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5080 `wait_mutex', `next'.
5081 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5082 directly mapping to pthread_cond_t.
5083 (struct _Jv_Mutex_t): New recursive implementation.
5084 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5085 _Jv_HaveCondDestroy: Never define this for posix-threads.
5086 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5087 (_Jv_CondNotifyAll): Ditto.
5088 (_Jv_MutexLock): Ditto.
5089 (_Jv_MutexUnlock): Ditto.
5090 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5091 (_Jv_MutexDestroy): Ditto.
5092 (_Jv_CondDestroy): Removed.
5093 (_Jv_PthreadGetMutex): Removed.
5094 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5095 error. Add a FIXME about this.
5096 (_Jv_CondNotifyAll): Ditto.
5097 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5098 _JV_NOT_OWNER on other errors. Add FIXME.
5100 2000-03-26 Tom Tromey <tromey@cygnus.com>
5102 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5104 (call): Don't throw exception here.
5106 2000-03-26 Tom Tromey <tromey@cygnus.com>
5108 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5109 * interpret.cc: Use SIZEOF_VOID_P.
5110 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5111 (_Jv_loadLong): Likewise.
5112 (_Jv_storeDouble): Likewise.
5113 * configure: Rebuilt.
5114 * configure.in: Check size of void*.
5116 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5118 2000-03-26 Hans Boehm <boehm@acm.org>
5120 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5121 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5123 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5124 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5125 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5126 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5128 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5129 (FFI_RAW_SIZE): Likewise.
5130 (_Jv_InterpMethod::ncode): Use them.
5131 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5132 STORED): Define differently on a 64 bit machine.
5133 (continue1): Use ffi_java_raw_call when appropriate.
5135 2000-03-24 Warren Levy <warrenl@cygnus.com>
5137 * java/math/BigInteger.java(divide): Handle the special case when
5138 dividing by 1 and the high bit of the dividend is set.
5139 (setShiftRight): Handle case when count == 0.
5141 2000-03-24 Warren Levy <warrenl@cygnus.com>
5143 * java/awt/Font.java(isBold): Fix syntax error.
5145 * java/awt/Frame.java(postEvent): ditto.
5146 * java/awt/Menu.java(postEvent): ditto.
5147 * java/awt/MenuBar.java(postEvent): ditto.
5148 * java/awt/Toolkit.java(init): Included a stub.
5150 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5152 * java/awt/Event.java: Add all the event type constants.
5153 (Event): Implemented constructors.
5154 (controlDown): Implemented.
5155 (metaDown): Implemented.
5156 (paramString): Stubbed.
5157 (shiftDown): Implemented.
5158 (toString): Implemented.
5159 (translate): Implemented.
5161 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5163 * java/lang/natClass.cc (isInstance): Initialize `this'.
5164 (isAssignableFrom): Initialize `this' and `klass'.
5165 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5166 implemented by any loaded class, so return false.
5167 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5168 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5170 2000-03-19 Warren Levy <warrenl@cygnus.com>
5172 * java/awt/Color.java: Specified java.io for Serializable.
5173 * java/awt/Toolkit.java: Imported java.net.URL.
5175 2000-03-19 Warren Levy <warrenl@cygnus.com>
5177 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5179 2000-03-16 Warren Levy <warrenl@cygnus.com>
5181 * java/awt/Color.java: New file.
5182 * java/awt/Graphics.java: New file.
5183 * java/awt/Image.java: New file.
5184 * java/awt/Paint.java: New file.
5185 * java/awt/PaintContext.java: New file.
5186 * java/awt/Transparency.java: New file.
5187 * java/util/Collection.java: New file.
5188 * java/util/Comparator.java: New file.
5189 * java/util/Iterator.java: New file.
5190 * java/util/List.java: New file.
5191 * java/util/ListIterator.java: New file.
5192 * Makefile.am: Added above new files.
5193 * Makefile.in: Rebuilt.
5195 * java/awt/Font.java (PLAIN): New field.
5197 (ITALIC): New field.
5198 (ROMAN_BASELINE): New field.
5199 (CENTER_BASELINE): New field.
5200 (HANGING_BASELINE): New field.
5204 (pointSize): New field.
5205 (Font): Implemented constructor.
5206 (isPlain): Implemented method.
5207 (isBold): Implemented method.
5208 (isItalic): Implemented method.
5209 (getName): Implemented method.
5210 (getStyle): Implemented method.
5211 (getSize): Implemented method.
5212 (getSize2D): Implemented method.
5214 * java/awt/Frame.java (getFont): Stubbed.
5215 (postEvent): Stubbed.
5217 * java/awt/Menu.java (postEvent): Stubbed.
5218 * java/awt/MenuBar.java (getFont): Stubbed.
5219 (postEvent): Stubbed.
5220 * java/awt/Toolkit.java (getImage): Added abstract method.
5222 2000-03-15 Tom Tromey <tromey@cygnus.com>
5224 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5226 * prims.cc (win32_exception_handler): Reformatted.
5228 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5229 (_Jv_HaveMutexDestroy): Likewise.
5231 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5233 * java/io/natFileDescriptorWin32.cc: New file.
5234 * java/io/natFileWin32.cc: New file.
5235 * java/net/natInetAddress.cc: Added conditional inclusion of
5236 Windows / Winsock headers.
5237 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5238 inclusion of Windows / Winsock headers.
5239 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5240 Windows / Winsock headers.
5241 * include/win32-signal.h: New file.
5242 * include/win32-threads.h: New file.
5243 * win32-threads.cc: New file.
5244 * exception.cc (win32_get_restart_frame): New function.
5245 * prims.cc (win32_exception_handler): New function.
5246 (main_init) Performs Winsock initialisation.
5247 (main_init) Installs exeception handler.
5249 2000-03-14 Tom Tromey <tromey@cygnus.com>
5251 * jni.cc (mangled_name): Fixed assertion.
5252 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5253 turned assert into actual failure.
5255 2000-03-09 Warren Levy <warrenl@cygnus.com>
5257 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5258 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5259 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5261 2000-03-09 Warren Levy <warrenl@cygnus.com>
5263 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5264 * java/security/DigestException.java: New file.
5265 * java/security/GeneralSecurityException.java: New file.
5266 * java/security/InvalidAlgorithmParameterException.java: New file.
5267 * java/security/InvalidKeyException.java: New file.
5268 * java/security/InvalidParameterException.java: New file.
5269 * java/security/Key.java: New file.
5270 * java/security/KeyException.java: New file.
5271 * java/security/KeyPair.java: New file.
5272 * java/security/KeyPairGenerator.java: New file.
5273 * java/security/KeyPairGeneratorSpi.java: New file.
5274 * java/security/NoSuchProviderException.java: New file.
5275 * java/security/PrivateKey.java: New file.
5276 * java/security/Provider.java: New file.
5277 * java/security/PublicKey.java: New file.
5278 * java/security/SecureRandom.java: New file.
5279 * java/security/Security.java: New file.
5280 * java/security/Signature.java: New file.
5281 * java/security/SignatureException.java: New file.
5282 * java/security/interfaces/DSAKey.java: New file.
5283 * java/security/interfaces/DSAParams.java: New file.
5284 * java/security/interfaces/DSAPrivateKey.java: New file.
5285 * java/security/interfaces/DSAPublicKey.java: New file.
5286 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5287 * java/security/interfaces/RSAPrivateKey.java: New file.
5288 * java/security/interfaces/RSAPublicKey.java: New file.
5289 * java/security/spec/AlgorithmParameterSpec.java: New file.
5290 * java/security/spec/InvalidKeySpecException.java: New file.
5291 * java/security/spec/InvalidParameterSpecException.java: New file.
5292 * java/security/spec/KeySpec.java: New file.
5293 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5294 * java/security/spec/RSAPrivateKeySpec.java: New file.
5295 * java/security/spec/RSAPublicKeySpec.java: New file.
5296 * Makefile.am: Added above java.security files.
5297 * Makefile.in: Rebuilt.
5299 * java/security/MessageDigest.java: Rewritten.
5300 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5302 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5306 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5308 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5309 _Jv_PrepareConstantTimeTables.
5310 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5311 classes should have an IDT, so don't return if klass is an array
5314 2000-03-08 Tom Tromey <tromey@cygnus.com>
5316 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5317 of `void' to be created.
5319 2000-03-08 Warren Levy <warrenl@cygnus.com>
5321 * java/math/BigInteger.java(signum): Handle zero properly.
5323 2000-03-07 Tom Tromey <tromey@cygnus.com>
5325 * All files: Updated copyright information.
5326 * COPYING: New file.
5327 * COPYING.LIB: Removed.
5328 * LIBGCJ_LICENSE: We now use GPL + special exception.
5330 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5332 * resolve.cc (_Jv_SearchMethodInClass): New function.
5333 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5334 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5336 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5338 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5339 (struct _Jv_ifaces): New declaration.
5340 JV_CLASS: New macro definition.
5341 (getComponentType): Relocate below isArray() for inlining.
5342 (getModifiers): Declare `inline'.
5343 (getSuperclass): Ditto.
5345 (isPrimitive): Ditto.
5346 (_Jv_IsAssignableFrom): New prototype.
5347 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5349 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5350 Check for JV_STATE_DONE before invoking initializeClass().
5351 (_Jv_PrepareConstantTimeTables): New prototype.
5352 (_Jv_GetInterfaces): Ditto.
5353 (_Jv_GenerateITable): Ditto.
5354 (_Jv_GetMethodString): Ditto.
5355 (_Jv_AppendPartialITable): Ditto.
5356 (_Jv_FindIIndex): Ditto.
5357 depth, ancestors, idt: New class fields.
5359 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5360 inline function `_Jv_IsAssignableFrom'. Use that function.
5361 (isInstance): Declare `inline'.
5362 (initializeClass): Get lock on class before checking `state'. Unlock
5363 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5365 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5366 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5367 class->depth and ancestor table.
5368 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5369 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5370 _Jv_IsAssignableFrom.
5371 (_Jv_CheckArrayStore): Ditto.
5372 (_Jv_LookupInterfaceMethodIdx): New function.
5373 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5374 (_Jv_PrepareConstantTimeTables): New function.
5375 (_Jv_IndexOf): Ditto.
5376 (_Jv_GetInterfaces): Ditto.
5377 (_Jv_GenerateITable): Ditto.
5378 (_Jv_GetMethodString): Ditto.
5379 (_Jv_AppendPartialITable): Ditto.
5380 iindex_mutex, iindex_mutex_initialized: New static fields.
5381 (_Jv_FindIIndex): New function.
5383 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5385 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5386 (_Jv_CheckArrayStore): Ditto.
5387 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5388 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5389 Moved to gcj/array.h.
5390 (_Jv_Realloc): New function.
5392 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5394 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5395 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5396 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5397 JvNewDoubleArray): Implementations moved from prims.cc and
5400 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5402 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5404 2000-03-06 Tom Tromey <tromey@cygnus.com>
5406 * jni.cc (MARK_NONE): New define.
5407 (MARK_USER): Likewise.
5408 (MARK_SYSTEM): Likewise.
5409 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5411 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5412 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5413 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5414 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5416 (call): Use MARK_SYSTEM.
5417 (_Jv_GetJNIEnvNewFrame): New function.
5418 (_Jv_LookupJNIMethod): New function.
5419 (_Jv_JNI_PopSystemFrame): New function.
5420 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5422 2000-03-05 Tom Tromey <tromey@cygnus.com>
5424 Fix for PR libgcj/43:
5425 * include/Makefile.in: Rebuilt.
5426 * include/Makefile.am (include_HEADERS): New define.
5428 2000-03-05 Anthony Green <green@redhat.com>
5430 * gcj/javaprims.h ("Java"): Remove FirstThread.
5432 * configure.host: Fix __NO_MATH_INLNES botch.
5434 * Makefile.in: Rebuilt.
5435 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5436 (gnu/gcj/runtime/FirstThread.h): Moved.
5437 (ordinary_java_source_files): Move FirstThread.java.
5438 * prims.cc: Deal with FirstThread movement.
5440 (_Jv_RunMain): Ditto.
5442 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5443 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5445 2000-03-05 Warren Levy <warrenl@cygnus.com>
5447 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5448 Handle null addresses.
5450 2000-03-04 Anthony Green <green@redhat.com>
5452 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5455 2000-03-04 Anthony Green <green@redhat.com>
5457 * configure: Rebuilt.
5458 * configure.in (ZLIBTESTSPEC): New macro.
5459 (GCTESTSPEC): New macro.
5460 (LIBGCJTESTSPEC): New macro.
5461 * libgcj-test.spec.in: New file.
5463 2000-03-02 Tom Tromey <tromey@cygnus.com>
5465 * include/java-interp.h: Don't include MethodInvocation.h.
5466 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5467 * Makefile.in: Rebuilt.
5468 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5469 (ordinary_java_source_files): Don't mention
5470 MethodInvocation.java.
5471 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5472 * interpret.cc (MethodInvocation::continue1): Removed.
5473 (run): Handle exceptions here.
5474 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5476 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5478 (defineClass2): Removed.
5480 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5482 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5484 (hack_call): Removed.
5486 * java/lang/Class.h (Class): Removed hackRunInitializers,
5488 * java/lang/natClass.cc (hackRunInitializers): Removed.
5489 (initializeClass): Catch exceptions here.
5490 Include ExceptionInInitializerError.h.
5491 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5494 * java/lang/Object.h (Object): Don't mention hack12_6.
5495 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5497 * java/lang/Object.java (hack12_6): Removed.
5499 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5500 (start): Use run_, not run__.
5501 * java/lang/Thread.java (run_): Renamed from run__; old run_
5504 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5505 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5506 (_Jv_JNI_DefineClass): Likewise.
5507 (_Jv_JNI_ThrowNew): Likewise.
5508 (_Jv_JNI_AllocObject): Likewise.
5509 (_Jv_JNI_GetAnyMethodID): Likewise.
5510 (_Jv_JNI_CallAnyMethodV): Likewise.
5511 (_Jv_JNI_CallAnyMethodA): Likewise.
5512 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5513 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5514 (_Jv_JNI_GetAnyFieldID): Likewise.
5515 (_Jv_JNI_NewString): Likewise.
5516 (_Jv_JNI_NewStringUTF): Likewise.
5517 (_Jv_JNI_GetStringUTFChars): Likewise.
5518 (_Jv_JNI_NewObjectArray): Likewise.
5519 (_Jv_JNI_NewPrimitiveArray): Likewise.
5520 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5521 (_Jv_JNI_GetStringRegion): Likewise.
5522 (_Jv_JNI_GetStringUTFRegion): Likewise.
5523 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5524 (_Jv_JNI_MonitorEnter): Likewise.
5525 (_Jv_JNI_MonitorExit): Likewise.
5526 (_Jv_JNI_ToReflectedField): Likewise.
5527 (_Jv_JNI_ToReflectedMethod): Likewise.
5528 (_Jv_JNI_RegisterNatives): Likewise.
5529 (_Jv_JNI_AttachCurrentThread): Likewise.
5530 (_Jv_JNI_DestroyJavaVM): Likewise.
5532 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5534 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5535 error caused by the incorrect casting of a long to an int.
5537 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5539 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5540 SIGSEV caused by use of the wrong instance variable.
5542 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5544 * java/io/File.java (File(String, String)): For dirPath, treat an
5545 empty String the same as `null'.
5547 2000-02-26 Anthony Green <green@cygnus.com>
5549 * gnu/gcj/io/MimeTypes.java: Test for null.
5551 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5552 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5554 * java/net/URLConnection.java: Update copyright notice.
5556 2000-02-25 Tom Tromey <tromey@cygnus.com>
5558 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5561 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5563 * java/net/URLConnection.java (initializeDateFormats): New
5565 (getHeaderFieldDate): Call initializeDateFormats if required.
5566 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5568 Fix for PR libgcj/38.
5570 2000-02-24 Warren Levy <warrenl@cygnus.com>
5572 * java/math/BigInteger.java(ival): Made private.
5576 2000-02-20 Anthony Green <green@cygnus.com>
5578 * Makefile.in: Rebuilt.
5579 * Makefile.am (ordinary_java_source_files): Add
5580 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5582 * scripts/MakeDefaultMimeTypes.java: New file.
5583 * scripts/mime.types: New file.
5584 * scripts/classes.pl: Moved from top level.
5585 * classes.pl: Moved to scripts directory.
5587 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5589 * gnu/gcj/io/MimeTypes.java: New file.
5590 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5592 2000-02-20 Tom Tromey <tromey@cygnus.com>
5594 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5596 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5598 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5601 2000-02-18 Tom Tromey <tromey@cygnus.com>
5603 * include/jvm.h (_Jv_GetJavaVM): Declare.
5604 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5605 (_Jv_MethodBase::get_method): New method.
5606 (_Jv_JNIMethod::set_function): New method.
5607 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5608 (_Jv_JNI_RegisterNatives): New function.
5609 (_Jv_JNIFunctions): Updated for new functions.
5610 (_Jv_GetJavaVM): New function.
5611 (_Jv_JNI_GetJavaVM): Use it. Now static.
5612 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5613 is already a Java thread but does not have a JNIEnv yet.
5615 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5618 2000-02-17 Tom Tromey <tromey@cygnus.com>
5620 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5623 2000-02-16 Tom Tromey <tromey@cygnus.com>
5625 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5627 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5628 (_Jv_JNI_NewObject): Likewise.
5629 (_Jv_JNI_NewObjectA): Likewise.
5630 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5631 as "return" type to _Jv_CallAnyMethodA.
5632 (_Jv_JNI_CallAnyMethodA): Likewise.
5633 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5635 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5638 2000-02-15 Tom Tromey <tromey@cygnus.com>
5640 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5642 (init_cif): Added `rtype_p' argument.
5643 * include/java-interp.h (class _Jv_MethodBase): Added
5645 (class _Jv_InterpMethod): Removed args_raw_size.
5646 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5647 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5648 class pointer as well as the ordinary arguments.
5650 * jni.cc (mangled_name): Skip leading `(' in signature.
5652 * jni.cc (add_char): Added missing `else'.
5654 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5657 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5661 * java/lang/natRuntime.cc (_load): Include library path with
5664 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5667 * java/lang/natThread.cc (dumpStack): Removed.
5668 * java/lang/Thread.java (dumpStack): Implemented.
5670 2000-02-15 Tom Tromey <tromey@cygnus.com>
5672 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5673 with `lib' for loadLibrary. Fixes PR gcj/150.
5675 2000-02-14 Warren Levy <warrenl@cygnus.com>
5677 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5679 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5683 (modPow): Rewritten to not use the naive, slow, brute force approach.
5684 (isProbablePrime): Implemented.
5685 (testBit): Implemented.
5686 (flipBit): Implemented.
5687 (getLowestSetBit): Implemented.
5689 2000-02-16 Anthony Green <green@redhat.com>
5691 * configure.host: Use the same options for i386 and i486 as we do
5694 2000-02-12 Tom Tromey <tromey@cygnus.com>
5696 * java/io/File.java (createTempFile): Use low bits from counter,
5699 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5701 * THANKS: More thanks.
5703 2000-02-11 Tom Tromey <tromey@cygnus.com>
5705 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5706 astore instruction. From Hans Boehm.
5708 2000-02-11 Warren Levy <warrenl@cygnus.com>
5710 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5711 (BigInteger(String)): New constructor.
5712 (not): Rewritten using version from Kawa's BitOps class.
5713 (valueOf): New private methods from Kawa's BitOps class.
5720 (andNot): Implemented.
5721 (clearBit): Implemented.
5722 (setBit): Implemented.
5723 (bitCount): Implemented.
5724 (toByteArray): Implemented.
5726 2000-02-11 Tom Tromey <tromey@cygnus.com>
5728 * java/io/File.java (nextValue): Now synchronized.
5730 2000-02-10 Tom Tromey <tromey@cygnus.com>
5732 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5733 * java/io/FileDescriptor.java (EXCL): New static field.
5734 * java/io/File.java (tmpdir): New static field.
5735 (createTempFile): New method.
5736 (nextValue): New method.
5737 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5740 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5741 (jboolean): Declare as an attributed int, not a bool.
5742 (_Jv_func): Declare differently for C.
5744 * gnu/gcj/jni/natNativeThread.cc: New file.
5745 * gnu/gcj/jni/NativeThread.java: New file.
5746 * java/lang/Thread.java (data): Now a RawData.
5747 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5749 * Makefile.in: Rebuilt.
5750 * Makefile.am (java/lang/Thread.h): New target.
5751 (ordinary_java_source_files): Added NativeThread.java.
5752 (nat_source_files): Added natNativeThread.cc.
5753 * java/lang/natThread.cc: Include <jni.h>
5754 (struct natThread): Added `jni_env' field.
5755 (_Jv_GetCurrentJNIEnv): New function.
5756 (_Jv_SetCurrentJNIEnv): Likewise.
5757 (initialize_native): Initialize jni_env.
5759 * jni.cc (ThreadGroupClass): New define.
5760 (_Jv_JNI_InvokeFunctions): New structure.
5761 (JNI_GetCreatedJavaVMs): New function.
5762 (the_vm): New global.
5763 (JNI_GetDefaultJavaVMInitArgs): New function.
5764 Include NativeThread.h.
5765 (NativeThreadClass): New define.
5766 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5767 (_Jv_JNI_DestroyJavaVM): New function.
5768 (_Jv_JNI_AttachCurrentThread): New function.
5769 (_Jv_JNI_DetachCurrentThread): New function.
5770 (_Jv_JNI_GetEnv): New function.
5771 (JNI_CreateJavaVM): New function.
5772 (_Jv_JNI_GetJavaVM): New function.
5773 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5774 * include/jni.h (JavaVMAttachArgs): New structure.
5775 (JNI_EDETACHED): New define.
5776 (JNI_EVERSION): Likewise.
5777 (JavaVM): Define properly.
5778 (struct JNIInvokeInterface): New structure.
5779 (class _Jv_JavaVM): New class.
5780 (JNI_OnLoad, JNI_OnUnload): Declare.
5781 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5782 JNI_GetCreatedJavaVMs): Declare.
5783 (JavaVMInitArgs): New typedef.
5784 (JavaVMOption): Likewise.
5785 (JNI_ERR): New define.
5788 2000-02-10 Andrew Haley <aph@cygnus.com>
5790 * interpret.cc: Don't include fdlibm.h.
5791 Replace #if with #ifdef throughout.
5792 Declare extern __ieee754_fmod.
5793 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5795 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5796 Search class hierarchy for superclass vtable.
5798 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5799 off the end of a pointer list.
5801 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5805 2000-02-09 Tom Tromey <tromey@cygnus.com>
5807 * java/lang/natRuntime.cc (_load): Call add_library.
5808 (loadLibraryInternal): Likewise.
5810 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5811 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5812 (Output_iconv::finalize): Likewise.
5814 2000-02-08 Tom Tromey <tromey@cygnus.com>
5816 * java/util/Properties.java (setProperty): New method.
5817 (store): New method.
5819 2000-02-07 Tom Tromey <tromey@cygnus.com>
5821 * java/lang/Runtime.java (_load): Declare.
5822 (load, loadLibrary): Wrote in terms of _load.
5823 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5825 (loadLibrary): Likewise.
5827 (_load): New method.
5828 (loadLibrary, load): Removed.
5830 * jni.cc (ThrowableClass): New define.
5831 (_Jv_JNI_Throw): Check argument.
5832 (_Jv_JNI_ThrowNew): Likewise.
5833 (wrap_value): Don't wrap object if it is NULL.
5834 (_Jv_JNI_DefineClass): Use wrap_value.
5835 (_Jv_JNI_FindClass): Likewise.
5836 (_Jv_JNI_GetSuperclass): Likewise.
5837 (_Jv_JNI_ExceptionOccurred): Likewise.
5838 (_Jv_JNI_AllocObject): Likewise.
5839 (_Jv_JNI_GetObjectClass): Likewise.
5840 (_Jv_JNI_NewString): Likewise.
5841 (_Jv_JNI_NewStringUTF): Likewise.
5842 (_Jv_JNI_NewObjectArray): Likewise.
5843 (_Jv_JNI_GetObjectArrayElement): Likewise.
5844 (_Jv_JNI_NewPrimitiveArray): Likewise.
5845 (_Jv_JNI_ToReflectedField): Likewise.
5846 (_Jv_JNI_ToReflectedMethod): Likewise.
5847 (_Jv_JNI_AllocObject): Check argument.
5848 (_Jv_JNI_NewObjectV): Likewise.
5849 (_Jv_JNI_NewObject): Likewise.
5850 (_Jv_JNI_NewObjectA): Likewise.
5851 (_Jv_JNI_GetObjectClass): Likewise.
5852 (_Jv_JNI_GetField): Likewise.
5853 (_Jv_JNI_SetField): Likewise.
5855 * interpret.cc (PUSHL): Don't use expression statement.
5860 * jni.cc (add_char): Conditional on INTERPRETER.
5861 (mangled_name): Likewise.
5863 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5865 (class _Jv_JNIMethod): Likewise.
5867 2000-02-04 Warren Levy <warrenl@cygnus.com>
5869 * Makefile.am: Added MPN.java and BigInteger.java.
5870 * Makefile.in: Rebuilt.
5871 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5873 * java/math/BigInteger.java: New file. Based primarily on
5874 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5876 2000-02-04 Tom Tromey <tromey@cygnus.com>
5878 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5880 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5881 if the method is native.
5882 * resolve.cc (ncode): Don't handle native methods.
5883 (_Jv_JNIMethod::ncode): New method.
5884 (_Jv_PrepareClass): Handle native methods.
5885 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5886 Include AbstractMethodError.h.
5887 (add_char): New function.
5888 (mangled_name): Likewise.
5889 * include/java-interp.h (class _Jv_JNIMethod): New class.
5890 (class _Jv_MethodBase): New class.
5891 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5892 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5895 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5896 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5897 libraries): New globals.
5898 (add_library): New function.
5899 (_Jv_FindSymbolInExecutable): New function.
5901 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5904 2000-02-04 Andrew Haley <aph@cygnus.com>
5906 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5907 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5908 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5909 printStackTrace to printRawStackTrace.
5911 2000-02-03 Tom Tromey <tromey@cygnus.com>
5913 * java/util/Calendar.java (toString): New method.
5914 * java/util/SimpleTimeZone.java (clone): New method.
5915 (toString): New method.
5916 * java/util/TimeZone.java (clone): New method.
5917 * java/text/SimpleDateFormat.java (clone): New method.
5918 * java/text/NumberFormat.java (clone): New method.
5919 (equals): New method.
5920 * java/text/Format.java (clone): New method.
5921 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5923 (clone): New method.
5924 * java/text/DateFormat.java (clone): New method.
5925 * java/text/Collator.java (clone): New method.
5927 2000-02-03 Tom Tromey <tromey@cygnus.com>
5929 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5932 2000-02-01 Tom Tromey <tromey@cygnus.com>
5934 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5935 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5936 constructing the closure if the function is native.
5937 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5938 a template function, #if'd out, or static.
5939 Include <java-interp.h>.
5941 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5943 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5945 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5946 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5948 (wrap_value): New function.
5949 (_Jv_JNI_CallAnyMethodV): Use it.
5950 (_Jv_JNI_CallAnyMethodA): Likewise.
5951 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5952 (_Jv_JNI_GetStaticField): Likewise.
5954 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5955 (_Jv_JNI_GetStaticField): Likewise.
5957 2000-01-31 Tom Tromey <tromey@cygnus.com>
5959 * prims.cc (_Jv_MallocUnchecked): New function.
5960 (main_init): Call _Jv_JNI_Init.
5961 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5962 (_Jv_JNI_Init): Declare.
5963 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5965 (_Jv_JNI_NewGlobalRef): New function.
5966 (_Jv_JNI_DeleteGlobalRef): New function.
5967 (_Jv_JNI_DeleteLocalRef): New function.
5968 (_Jv_JNI_conversion_call): Initialize and clear local reference
5970 (_Jv_JNI_NewLocalRef): New function.
5971 (struct _Jv_JNI_LocalFrame): New structure.
5972 (_Jv_JNI_PushLocalFrame): New function.
5973 (_Jv_JNI_EnsureLocalCapacity): New function.
5974 (FRAME_SIZE): New define.
5975 (_Jv_JNI_GetStringChars): Mark string, not characters.
5976 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5977 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5978 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5980 (_Jv_JNI_DefineClass): Make return value a local ref.
5981 (_Jv_JNI_FindClass): Likewise.
5982 (_Jv_JNI_GetSuperclass): Likewise.
5983 (_Jv_JNI_ExceptionOccurred): Likewise.
5984 (_Jv_JNI_AllocObject): Likewise.
5985 (_Jv_JNI_GetObjectClass): Likewise.
5986 (_Jv_JNI_CallAnyMethodV): Likewise.
5987 (_Jv_JNI_NewString): Likewise.
5988 (_Jv_JNI_NewStringUTF): Likewise.
5989 (_Jv_JNI_NewObjectArray): Likewise.
5990 (_Jv_JNI_GetObjectArrayElement): Likewise.
5991 (_Jv_JNI_ToReflectedField): Likewise.
5992 (_Jv_JNI_ToReflectedMethod): Likewise.
5993 (_Jv_JNIFunctions): Updated table for new functions.
5994 (_Jv_JNI_Init): New function.
5995 (mark_for_gc): Wrote.
5996 (unmark_for_gc): Wrote.
5997 * include/jni.h (struct JNINativeInterface): Removed name from
5998 PopLocalFrame parameter.
5999 (class _Jv_JNIEnv): Added `locals' field.
6001 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6003 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6006 2000-01-30 Tom Tromey <tromey@cygnus.com>
6008 * include/config.h.in: Rebuilt.
6009 * acconfig.h (HAVE_ICONV): Define.
6010 * configure: Rebuilt.
6011 * configure.in: Check for `iconv' function.
6012 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6013 no specific encoder exists.
6014 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6015 no specific encoder exists.
6016 * Makefile.in: Rebuilt.
6017 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6019 (nat_source_files): Added natIconv.cc.
6020 * gnu/gcj/convert/natIconv.cc: New file.
6021 * gnu/gcj/convert/Input_iconv.java: New file.
6022 * gnu/gcj/convert/Output_iconv.java: New file.
6024 2000-01-28 Tom Tromey <tromey@cygnus.com>
6026 * Makefile.in: Rebuilt.
6027 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6029 2000-01-26 Tom Tromey <tromey@cygnus.com>
6031 * gcj/method.h (JvNumMethods): Moved from Class.h.
6032 (JvGetFirstMethod): Likewise.
6033 * java/lang/Class.h (Object): Updated decl of
6034 _Jv_JNI_ToReflectedField.
6035 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6036 * Makefile.in: Rebuilt.
6037 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6038 argument of _Jv_JNI_ToReflectedField.
6039 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6041 (java/lang/reflect/Method.h): Likewise.
6042 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6044 (jweak): New typedef.
6045 (struct JNINativeInterface): Correctly declare remaining entries.
6046 * jni.cc: Include Class.h, ClassLoader.h.
6047 (_Jv_JNI_FindClass): New function.
6048 (_Jv_JNI_DefineClass): New function.
6049 (_Jv_JNI_conversion_call): New function.
6050 (_Jv_JNI_FindClass): Use current class loader to find class.
6051 (_Jv_JNI_ExceptionCheck): New function.
6052 (_Jv_JNI_FromReflectedField): Now static.
6053 (MethodClass): New define.
6054 (_Jv_JNI_FromReflectedMethod): New function.
6055 (_Jv_JNI_ToReflectedMethod): Likewise.
6057 (_Jv_JNI_IsAssignableFrom): Renamed.
6058 (_Jv_JNI_GetStringRegion): New function.
6059 Include StringIndexOutOfBoundsException.h.
6060 (_Jv_JNI_GetStringUTFRegion): New function.
6061 (_Jv_JNIFunctions): Updated for new functions.
6062 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6063 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6064 (_Jv_JNI_GetStringCritical): New function.
6065 (_Jv_JNI_ReleaseStringCritical): Likewise.
6066 (get_throwable): Removed.
6067 (GCJ_JV_JNIENV_FRIEND): Removed.
6068 (__GCJ_JNI_IMPL__): Define.
6071 * resolve.cc (get_ffi_type_from_signature): Handle case where
6074 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6076 * interpret.cc (run): Don't call println.
6077 Don't include PrintStream.h.
6079 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6080 nameIndex. Use "jint" as type for boffset.
6081 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6083 (Class): Likewise. Also changed type of method_count,
6084 vtable_method_count, size_in_bytes, field_count,
6085 static_field_count, interface_count.
6086 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6089 2000-01-21 Tom Tromey <tromey@cygnus.com>
6091 * java/lang/reflect/natConstructor.cc (newInstance): Use
6093 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6094 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6095 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6098 (invoke): Use _Jv_CallAnyMethodA.
6100 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6101 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6103 (struct _Jv_Method): Added getNextMethod method.
6104 (JvNumMethods): New function.
6105 (JvGetFirstMethod): Likewise.
6106 * gcj/field.h (JvGetFirstStaticField): New function.
6107 (JvNumStaticFields): Likewise.
6108 (getNextField): Renamed from getNextInstanceField.
6109 (struct _Jv_Field): New method getClass.
6110 * jni.cc: Wrote many new functions.
6111 * include/jni.h (JNI_TRUE): Define.
6112 (JNI_FALSE): Likewise.
6113 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6114 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6115 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6116 (jfieldID, jmethodID): Likewise.
6117 (JNI_COMMIT, JNI_ABORT): New defines.
6118 (JNINativeMethod): New struct.
6119 (struct JNINativeInterface): Correctly declared more entries.
6120 (class _Jv_JNIEnv): Added `ex' member.
6121 (JNI_VERSION_1_1): New define.
6122 (JNI_VERSION_1_2): Likewise.
6124 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6125 getNextInstanceField.
6127 2000-01-20 Tom Tromey <tromey@cygnus.com>
6129 * resolve.cc (StringClass): Removed.
6130 * defineclass.cc (StringClass): Removed.
6132 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6136 2000-01-19 Tom Tromey <tromey@cygnus.com>
6138 * interpret.cc (PC_REGISTER_ASM): Removed.
6140 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6141 From Bryce McKinlay.
6143 * All files: Updated copyright to reflect Cygnus purchase.
6145 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6147 * configure: Rebuilt.
6148 * configure.in: Recognize --disable-interpreter.
6150 2000-01-18 Andrew Haley <aph@cygnus.com>
6152 * name-finder.cc (lookup): Check for dladdr function.
6153 acconfig.h (HAVE_DLADDR): Add.
6154 configure.in: Check for HAVE_DLADDR
6156 include/config.h.in: Rebuilt.
6158 2000-01-17 Andrew Haley <aph@cygnus.com>
6160 * prims.cc (_Jv_RunMain): Set the name of this executable.
6162 2000-01-17 Tom Tromey <tromey@cygnus.com>
6164 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6165 when backtrace can't be computed.
6167 * configure: Rebuilt.
6168 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6170 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6171 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6172 (_Jv_FindClassInCache): Likewise.
6173 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6174 (findSystemClass): Try to load class from compiled module.
6176 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6177 (loadLibrary): Likewise.
6178 (lt_preloaded_symbols): Define.
6179 (loadLibraryInternal): New method.
6180 * include/config.h.in: Rebuilt.
6181 * acconfig.h (USE_LTDL): Added.
6182 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6183 (INCLUDES): Added $(INCLTDL).
6184 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6185 (libgcj_la_LIBADD): Likewise.
6186 * aclocal.m4, configure: Rebuilt.
6187 * configure.in: Added libltdl support.
6189 2000-01-15 Tom Tromey <tromey@cygnus.com>
6191 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6193 2000-01-14 Andrew Haley <aph@cygnus.com>
6195 * java/lang/natThrowable.cc: New file.
6197 * java/lang/Throwable.java (fillInStackTrace): Make native.
6198 (printStackTrace): Call native method to do this.
6199 (Throwable): Call fillInStackTrace.
6200 (stackTrace): New variable.
6202 * include/jvm.h: Add _Jv_ThisExecutable functions.
6204 * prims.cc: (_Jv_execName): New variable.
6205 (catch_segv): Call fillInStackTrace.
6207 (_Jv_ThisExecutable): New functions.
6208 (JvRunMain): Set the name of this executable.
6210 * Makefile.am: Add java/lang/natThrowable.cc.
6212 * Makefile.in: Rebuilt.
6214 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6216 * configure.in: Force link with __frame_state_for in
6217 FORCELIBGCCSPEC. Add new checks for backtrace.
6218 * include/config.h.in: Rebuilt.
6220 * name-finder.cc: New file.
6221 * include/name-finder.h: New file.
6223 2000-01-16 Anthony Green <green@cygnus.com>
6225 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6228 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6230 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6232 2000-01-13 Tom Tromey <tromey@cygnus.com>
6234 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6235 not system loader, as initiating loader.
6237 2000-01-11 Tom Tromey <tromey@cygnus.com>
6239 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6240 HP/UX. From David Scott Urban.
6242 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6244 * java/lang/natMath.cc (pow): Cast args to `double', not
6247 (IEEEremainder): Likewise.
6248 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6249 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6251 2000-01-09 Anthony Green <green@cygnus.com>
6253 * java/lang/natString.cc (init): Test for overflow condition
6254 during out of bounds check.
6255 (getChars): Throw StringIndexOutOfBoundsException, not
6256 ArrayIndexOutOfBoundsException.
6258 (regionMatches): Obey case option during string comparison.
6260 * configure.host (ligcj_interpreter): New variable. Enable
6261 interpreter by default on IA-32.
6262 * configure.in: Examine libgcj_interpreter.
6263 * configure: Rebuilt.
6265 2000-01-07 Tom Tromey <tromey@cygnus.com>
6267 * mauve-libgcj: Don't disable ClassTest.
6269 * java/lang/natClass.cc (getClasses): Wrote.
6271 2000-01-06 Tom Tromey <tromey@cygnus.com>
6273 * java/lang/natClass.cc (_getConstructors): Correctly check
6274 whether method name is the init name.
6275 (getMethod): Look at accflags on method in `klass', not `this'.
6277 2000-01-05 Tom Tromey <tromey@cygnus.com>
6279 * java/lang/natClass.cc (getMethod): Compute offset relative to
6280 `klass's methods table, not `this's table.
6282 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6283 In unwrapping/widening case, check whether `k' is null, not
6284 whether it is primitive. Initialize `num' from `argelts', not
6285 `paramelts'. Correct create and pass arguments to ffi_call.
6286 Don't let presence of `this' argument affect index used to look in
6288 (COPY): Set appropriate element in `values' vector.
6290 * java/lang/natClass.cc: Include <gcj/method.h>.
6292 * java/lang/Class.h (_getMethods): Correctly declare as private,
6295 * java/lang/Class.h (_getMethods): Declare.
6296 * java/lang/Class.java (_getMethods): Declare.
6297 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6298 (getDeclaredClasses): Always return empty array.
6299 (_getMethods): New method.
6300 (getMethods): Wrote.
6301 (getDeclaredMethod): Return `rmethod'.
6302 (finit_name): New global.
6303 (getDeclaredMethods): Check for finit_name.
6304 (_getMethods): Likewise.
6305 (getMethod): Only return public methods.
6307 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6308 jboolean and select correct ffi type on that basis.
6309 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6310 Constructor call always has `void' return type.
6312 2000-01-04 Tom Tromey <tromey@cygnus.com>
6314 * java/lang/Class.h (getSignature): Updated.
6315 * java/lang/Class.java (getSignature): Updated.
6316 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6318 (getConstructor): Ensure constructor is public.
6319 (_getConstructors): Check for public-ness of constructor when
6320 `declared' is false, not when it is true.
6322 2000-01-04 Warren Levy <warrenl@cygnus.com>
6324 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6326 (receive): Set the sender's address in the DatagramPacket.
6328 2000-01-04 Tom Tromey <tromey@cygnus.com>
6330 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6331 declaring class as return_type argument to
6332 _Jv_CallNonvirtualMethodA.
6333 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6334 constructor case, create object and use it as `this' argument.
6335 * java/lang/Class.h (_getConstructors): Declare.
6336 (_getFields): Declare.
6337 * java/lang/Class.java (getConstructors): Wrote.
6338 (_getConstructors): New native method.
6339 (getDeclaredConstructors): Wrote.
6340 (_getFields): Declare new native method.
6341 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6343 (getMethod): Work correctly when class is primitive.
6344 (getDeclaredMethods): Likewise. Compute offset using `method',
6346 (getDeclaredMethod): Likewise.
6347 (getConstructor): Wrote.
6348 (ConstructorClass): New define.
6349 (getDeclaredConstructor): Wrote.
6350 (_getConstructors): New method.
6351 (_getFields): New method.
6354 * Makefile.in: Rebuilt.
6355 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6357 * prims.cc: Remove `#pragma implementation'.
6358 * gcj/array.h: Remove `#pragma interface'.
6360 * prims.cc (_Jv_equaln): New function.
6361 * java/lang/Class.java (getSignature): Declare.
6362 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6363 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6365 (getSignature): New method.
6366 (getDeclaredMethod): Wrote.
6368 Include StringBuffer.h.
6369 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6370 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6372 (getSignature): Declare.
6373 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6374 (_Jv_equaln): Declare.
6375 (_Jv_CallNonvirtualMethodA): Declare.
6376 * Makefile.in: Rebuilt.
6377 * Makefile.am (nat_source_files): Added natConstructor.cc.
6378 (java/lang/reflect/Constructor.h): New target.
6379 * java/lang/reflect/natConstructor.cc: New file.
6380 * java/lang/reflect/Constructor.java (newInstance): Now native.
6381 (declaringClass): Renamed from decl_class.
6382 (offset): Renamed from index.
6383 (getType): New native method.
6384 (getModifiers): Now native.
6385 (getParameterTypes): Call getType if required.
6386 (hashCode): Include hash code from declaring class.
6387 (modifiers): Removed.
6388 (toString): Call getType if required.
6389 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6390 * java/lang/reflect/natMethod.cc (hack_call): New method.
6391 Removed `#if 0' around FFI code.
6392 Include <gnu/gcj/RawData.h>.
6393 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6394 IllegalArgumentException when argument object and class disagree.
6395 (_Jv_GetTypesFromSignature): New function.
6397 (ObjectClass): New define.
6398 (_Jv_CallNonvirtualMethodA): New function.
6399 * java/lang/reflect/Method.java (hack_trampoline): New method.
6400 (hack_call): New native method.