1 2001-05-11 Richard Henderson <rth@redhat.com>
3 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
4 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
6 2001-05-11 Richard Henderson <rth@redhat.com>
8 * exception.cc: Include unwind-pe.h. Remove all pointer
11 2001-05-10 Tom Tromey <tromey@redhat.com>
13 * Makefile.in: Rebuilt.
14 * Makefile.am (awt_java_source_files): Added Polygon.java.
15 * java/awt/Polygon.java: New file.
17 * java/awt/geom/AffineTransform.java
18 (setToRotation(double,double,double)): New method.
19 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
20 (setToShear): Likewise.
22 2001-05-10 Tom Tromey <tromey@redhat.com>
24 * java/util/GregorianCalendar.java: Imported from Classpath.
25 * gnu/java/locale/LocaleInformation_nl.java: New file from
27 * gnu/java/locale/LocaleInformation_en.java: Likewise.
28 * gnu/java/locale/LocaleInformation_de.java: Likewise.
29 * gnu/java/locale/LocaleInformation.java: Likewise.
30 * natGregorianCalendar.cc: Removed.
31 * Makefile.in: Rebuilt.
32 * Makefile.am (nat_source_files): Removed
33 natGregorianCalendar.cc.
35 2001-05-10 Tom Tromey <tromey@redhat.com>
37 * java/text/SimpleDateFormat.java (computeCenturyStart): New
39 (defaultCenturyStart): Use it.
40 (readObject): Likewise.
41 (SimpleDateFormat): Clear the calendar. Set the grouping on the
43 (parse): Copy the calendar before modifying it. Correctly handle
46 * java/util/Calendar.java (clear): Set field value(s) to 0.
48 2001-05-10 Jeff Sturm <jsturm@one-point.com>
50 * Calendar.java (get): Clear areFieldsSet if requested field
52 (set): Unset fields that depend on new value.
54 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
56 * java/lang/Class.h (_Jv_Self): New union type.
57 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
58 Jeff Sturm and Fergus Henderson.
60 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
62 * java/lang/ClassLoader.java: Remove dead code fragment.
64 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
66 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
68 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
70 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
72 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
73 * configure.host (EXCEPTIONSPEC): New.
74 * configure.in (EXCEPTIONSPEC): New.
77 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
79 * doc/*.texi: Remove generated documentation.
81 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
83 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
84 (performDelete): Fix #endif placement.
86 2001-04-27 Zack Weinberg <zackw@stanford.edu>
88 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
89 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
90 (_Jv_ThreadDestroyData): Use _Jv_Free.
91 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
94 2001-04-27 Tom Tromey <tromey@redhat.com>
96 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
98 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
100 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
102 * include/jni.h (struct JNINativeInterface): Fixed types in
103 Get/Set*ArrayRegion declarations.
104 (class _Jv_JNIEnv): Likewise.
106 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
108 * configure.in: Obtain THREADS with `gcc -v'.
109 * configure: Rebuilt.
111 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
114 * java/io/ObjectStreamClass.java (setClass): Calculate
115 serialVersionUID for local class and compare it against the UID
116 from the Object Stream. Throw InvalidClassException upon mismatch.
117 (setUID): Renamed to...
118 (getClassUID): this. Return the calculated class UID rather than
119 setting uid field directly.
120 (getDefinedSUID): Removed.
121 * java/io/ObjectInputStream.java (resolveClass): Use the
122 three-argument Class.forName().
123 * java/io/InvalidClassException (toString): Don't include classname in
124 result if it is null.
126 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
128 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
129 Wrap use of inet_pton in HAVE_INET6.
131 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
133 java.security merge and ClassLoader compliance fixes.
135 * java/lang/Class.h (Class): Include ProtectionDomain.h.
136 New protectionDomain field.
137 (forName): Add initialize parameter. Fixes declaration to comply with
139 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
140 variant. Honour "initialize" flag.
141 (getProtectionDomain0): New method.
142 * java/lang/Class.java: Fix forName() declaration.
143 (getPackage): New method based on Classpath implementation.
144 (getProtectionDomain0): New native method decl.
145 (getProtectionDomain): New method.
146 * java/lang/ClassLoader.java (getParent): Now final.
147 (definedPackages): New field.
149 (defineClass): New variant with protectionDomain argument.
150 (definePackage): New.
152 (findSystemClass): Now final.
153 (getSystemResourceAsStream): Remove redundant "final" modifier.
154 (getSystemResource): Remove redundant "final" modifier.
155 (getResources): Now final.
156 (protectionDomainPermission): New static field.
157 (unknownProtectionDomain): Ditto.
158 (defaultProtectionDomain): Ditto.
159 (getSystemClassLoader): Now non-native.
160 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
161 arguments for Class.forName().
162 * java/lang/Package.java: New file.
163 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
164 (instance): Static initialize singleton.
165 (findClass): Override this, not findSystemClass.
166 * java/lang/natClassLoader.cc (defineClass0): Set class's
167 protectionDomain field as specified.
168 (getSystemClassLoader): Removed.
169 (findClass): Renamed from findSystemClass. Call the interpreter via
170 URLClassLoader.findClass if loading class via dlopen fails.
172 * java/security/*.java: java.security import/merge with Classpath.
173 * java/security/acl/*.java: Likewise.
174 * java/security/interfaces/*.java: Likewise.
175 * java/security/spec/*.java: Likewise.
176 * java/net/NetPermission.java: Likewise.
177 * java/net/SocketPermission.java: Likewise.
178 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
180 * Makefile.am: Add new classes.
181 * Makefile.in: Rebuilt.
182 * gcj/javaprims.h: CNI namespace rebuild.
184 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
186 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
187 for libtool tests. Pre-create gnu/classpath/Configuration.java.
188 * configure: Rebuilt.
190 2001-04-21 Tom Tromey <tromey@redhat.com>
192 * Makefile.in: Rebuilt.
193 * Makefile.am (awt_java_source_files): Added Line2D.java.
194 * java/awt/geom/Line2D.java: Wrote.
196 * java/awt/Menu.java (addNotify): Wrote.
198 * java/awt/PopupMenu.java (addNotify): Implemented.
201 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
202 * java/awt/List.java (addNotify): Call super.addNotify.
203 * java/awt/Label.java (addNotify): Call super.addNotify.
204 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
205 * java/awt/Dialog.java (addNotify): Call super.addNotify.
206 * java/awt/Choice.java (addNotify): Call super.addNotify.
207 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
208 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
210 * java/awt/List.java (replaceItem): Notify peer.
212 * java/awt/geom/Rectangle2D.java
213 (Float.setRect(float,float,float,float)): New method.
215 * java/awt/event/ContainerEvent.java (getContainer): Now returns
218 * java/awt/RenderingHints.java (Key): Class now public.
220 * java/awt/Rectangle.java (Rectangle): Now implements
222 (getPathIterator): Removed.
224 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
227 * java/awt/FileDialog.java: Wrote.
229 * java/awt/EventQueue.java (isDispatchThread): Now public.
230 (invokeLater): Likewise.
232 * java/awt/Component.java (setCursor): Update peer.
233 (getFontMetrics): Use peer.
235 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
238 2001-04-20 Tom Tromey <tromey@redhat.com>
240 * java/awt/List.java: Wrote.
241 * java/awt/Dialog.java: Wrote.
243 2001-04-20 Warren Levy <warrenl@redhat.com>
245 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
246 * java/text/SimpleDateFormat.java
247 (indexInArray): Removed private method.
248 (processYear): Removed private method.
249 (parseLenient): Removed private method.
250 (parseLeadingZeros): Removed private method.
251 (parseStrict): Removed private method.
252 (expect): Added new private method.
253 (parse): Reverted to pre-Classpath merge version with minor fixes.
254 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
257 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
259 * java/io/File.java (normalizePath): New private method.
260 (File (String)): Use normalizePath().
261 (File (String, String)): Likewise.
263 * Makefile.am (libffi_files): Removed.
264 (libgcj.la): Link libffi as a convenience library instead of
265 refering to its object files directly.
266 * Makefile.in: Rebuilt.
268 2001-04-08 Per Bothner <per@bothner.com>
270 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
271 Recalculate hash, since Utf8Const's hash is only 16 bits.
273 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
274 bits of hash to calculate step for chaining.
276 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
277 when 2/3 full, rather than 3/4 full.
279 2001-04-06 Tom Tromey <tromey@redhat.com>
281 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
282 (wrap_value<T*>): New specialization.
283 (_Jv_JNI_PopLocalFrame): Update env->locals.
285 2001-04-05 Tom Tromey <tromey@redhat.com>
287 * libtool-version: Updated current.
289 2001-04-04 Andreas Jaeger <aj@suse.de>
291 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
292 * gcj/Makefile.in: Rebuilt.
293 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
294 * Makefile.in: Rebuilt.
295 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
296 * testsuite/Makefile.in: Rebuild.
297 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
298 * include/Makefile.in: Rebuild.
300 2001-04-02 Zack Weinberg <zackw@stanford.edu>
302 * testsuite/lib/libjava.exp: Correct typo: 'output from source
303 compiled test', not 'execution from source compiled test'.
304 Use UNTESTED, not XFAIL, for tests which are not run because
305 they depend on a previous test which failed.
307 2001-04-02 Richard Henderson <rth@redhat.com>
309 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
310 the same tree as gcc.
311 * configure: Rebuilt.
313 * exception.cc (_Jv_Throw): Clarify commentary.
315 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
317 * jni.cc (wrap_value<jclass>): New specialization.
319 2001-04-02 Tom Tromey <tromey@redhat.com>
321 * java/io/PrintStream.java (out): Removed field. Fixes PR
323 (write): Call flush, not out.flush, per spec.
324 (close): Flush output stream, per spec. Handle
325 InterruptedIOException.
326 (checkError): Likewise.
327 (flush, print, write): Handle InterruptedIOException per spec.
328 (PrintStream): Don't create BufferedOutputStream.
329 (work_bytes): New field.
330 (writeChars): Use work_bytes. Don't assume `out' is a
331 BufferedOutputStream.
333 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
335 * java/text/MessageFormat.java (setLocale): Added missing `else'.
338 2001-03-30 Tom Tromey <tromey@redhat.com>
340 * jni.cc (add_char): Correctly encode non-ascii characters.
341 (add_char): Define even when INTERPRETER not defined.
342 (mangled_name): Likewise.
343 (_Jv_GetJNIEnvNewFrame): Likewise.
344 (_Jv_LookupJNIMethod): Likewise.
346 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
348 * configure.host: Enable interpreter for PPC.
350 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
352 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
353 to "file.separator", "path.separator", and "java.io.tmpdir" property
355 * java/io/File.java: Likewise.
356 * java/io/natFile.cc (init_native): Likewise.
357 * java/io/natFileWin32.cc (init_native): Likewise.
359 2001-04-01 Per Bothner <per@bothner.com>
361 * java/lang/natString.cc (intern): If string's data does not point to
362 this String, make a fresh String that does.
364 * java/lang/natString.cc (unintern): Replace by static function.
365 * java/lang/String.java (unintern): Remove method.
367 2001-04-01 Per Bothner <per@bothner.com>
369 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
370 (finish): def.deflate needs to be called in a loop.
371 (inbuf, inbufLength): New private fields.
372 (write(int)): Use inbuf.
373 (write(byte[],int,int): Check if pending output in inbuf.
374 * ZipOutputStream.java: Don't use Deflater if stored.
375 Use a Checksum object directly, not via a CheckedOutputStream.
376 (uncompressed_size): New field,
377 (closeEntry): Only write data_directory if needed.
378 (write): If STORED, write directly.
379 Always update crc, and uncompressed_size.
380 (write_entry): Fix lots of protocol erors.
382 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
384 1.3-Compliant Implementation of java.io.File.
385 * java/lang/natSystem.cc (init_properties): Get "file.separator",
386 "path.separator", and "java.io.tmpdir" from the File class, instead
387 of setting them explicitly.
388 * java/io/File.java: Do not canonicalize paths for security manager
389 checks. Call init_native() from static initializer. Do not pass path
390 argument to native methods. New native method declarations. Some
391 security manager checks moved to checkWrite().
392 (equals): Check file system case sensitivity and act appropriatly.
393 (hashCode): Likewise.
394 (isHidden): New method implemented.
395 (performList): Changed prototype. Now takes a class argument specifying
396 the class of the returned array: Strings or File objects. Also added
398 (listFiles): New variants with "File" return type implemented.
399 (createTempFile): Use createNewFile(). Use maxPathLen.
400 (setReadOnly): New method implemented.
401 (listRoots): Likewise.
402 (compareTo): Likewise.
403 (setLastModified): Likewise.
404 (checkWrite): New method.
406 * java/io/natFile.cc: Various functions no longer take canonical path
408 (stat): Handle ISHIDDEN query.
409 (isAbsolute): Remove WIN32 cruft.
410 (performList): New arguments. Handle returning either File[] or String[]
411 arrays. Check with FileFilter or FilenameFilter arguments as
412 appropriate. Use an ArrayList, not a Vector, for the temporary list.
413 (performSetReadOnly): New method implemented.
414 (performListRoots): Likewise.
415 (performSetLastModified): Likewise.
416 (performCreate): Likewise.
417 (init_native): New initialization function.
418 * java/io/natFileWin32.cc: Various functions no longer take canonical
420 (stat): Add FIXME about ISHIDDEN query.
421 (performList): New arguments. Handle returning either File[] or String[]
422 arrays. Check with FileFilter or FilenameFilter arguments as
423 appropriate. Use an ArrayList, not a Vector, for the temporary list.
424 (performSetReadOnly): New. Stubbed.
425 (performListRoots): Likewise.
426 (performSetLastModified): Likewise.
427 (performCreate): Likewise.
428 (init_native) New initialization function.
429 * configure.in: Check for utime() and chmod().
430 * configure: Rebuilt.
431 * include/config.h.in: Rebuilt.
433 Resolves PR libgcj/1759.
435 2001-03-28 Richard Henderson <rth@redhat.com>
437 IA-64 ABI Exception Handling:
438 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
439 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
440 Remove EXCEPTIONSPEC.
441 * configure.host (libgcj_sjlj): Remove.
442 * configure.in (EXCEPTIONSPEC): Remove.
443 (enable-sjlj-exceptions): Detect if not specified.
444 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
445 what header we're looking for.
446 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
447 * Makefile.in, configure: Regenerate.
448 * exception.cc: Don't declare libgcc2 stuff.
449 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
450 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
451 (win32_get_restart_frame): Remove.
452 (struct java_exception_header): New.
453 (__gcj_exception_class): New.
454 (get_exception_header_from_ue): New.
455 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
456 (size_of_encoded_value, read_encoded_value): New.
457 (read_uleb128, read_sleb128, parse_lsda_header): New.
458 (get_ttype_entry, __gcj_personality_sj0): New.
459 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
461 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
463 * javax/naming/InitialContext.java (init): Fix typo.
464 (composeName): Remove unnecessary semicolon.
465 (addToEnvironment): Remove unnecessary semicolon.
466 (addToEnvironment): Use put() instead of add().
468 * javax/naming/InitialContext.java (InitialContext):
470 (destroySubcontext): Method doesn't return a result.
471 * javax/naming/Context.java: Import java.util.Hashtable.
472 * javax/naming/Name.java: Import java.util.Enumeration.
474 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
476 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
477 objects in subdirectories.
478 * Makefile.in: Rebuilt.
480 2001-03-25 Richard Henderson <rth@redhat.com>
482 * exception.cc (java_eh_info): Make value type jthrowable.
483 (_Jv_type_matcher): Remove now unneeded cast.
484 (_Jv_Throw): Make argument type jthrowable. Munge name
485 for SJLJ_EXCEPTIONS here ...
486 * gcj/cni.h: ... not here.
488 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
490 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
491 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
492 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
493 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
494 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
495 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
496 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
497 java/lang/natClass.cc, java/lang/natClassLoader.cc,
498 java/lang/natDouble.cc, java/lang/natObject.cc,
499 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
500 java/lang/natString.cc, java/lang/natSystem.cc,
501 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
502 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
503 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
504 java/util/zip/natInflater.cc:
505 Use throw, not JvThrow or _Jv_Throw.
507 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
509 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
510 paramater, bump it to 1.
511 * java/util/Hashtable.java (Hashtable): Likewise.
513 2001-03-23 Per Bothner <per@bothner.com>
515 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
516 check for errors, since we don't want to throw exception on
517 overflow/underflow. Instead, trim whitespace, and then check that
518 _strtod_r uses up all the rest of the string.
520 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
521 ancestors array is invalid for interfaces, so do that *after*
522 check that the target type is not an interface.
524 2000-03-23 Jeff Sturm <jsturm@one-point.com>
526 * prims.cc (_Jv_FindClassFromSignature): Check return of
527 recursive call. Do not abort on invalid signature; return NULL
530 2001-03-22 Tom Tromey <tromey@redhat.com>
532 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
533 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
535 * include/jvm.h (_Jv_ResolveField): Declare.
536 * include/java-interp.h (_Jv_ResolveField): Don't declare.
537 * resolve.cc (_Jv_ResolveField): No longer conditional on
540 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
542 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
544 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
545 to a temporary file, then invoke libtool with the -objectlist
547 (libgcjx.la): Likewise.
548 * Makefile.in: Rebuilt.
550 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
552 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
554 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
556 * jni.cc (add_char): Handle `.' like `/'.
558 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
560 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
561 initialize if exception_types is null.
562 * java/lang/reflect/Constructor.java: Likewise.
563 * java/lang/reflect/natConstructor.cc (getType): Initialize
564 exception_types to an empty Object array.
566 2001-03-21 Tom Tromey <tromey@redhat.com>
568 * configure: Rebuilt.
569 * configure.in (GCJFLAGS): Subst.
570 * Makefile.in: Rebuilt.
571 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
572 (gij_LDFLAGS): Likewise.
573 (JC1FLAGS): Added GCJFLAGS and removed -g.
575 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
576 read/write case. Fixes PR libgcj/2338.
578 2001-03-20 Warren Levy <warrenl@redhat.com>
580 * java/util/TimeZone.java: Sync up with Classpath. Includes new
581 and corrected SimpleTimeZone's for the timezones hash table.
583 2001-03-19 Per Bothner <per@bothner.com>
585 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
586 "canonicalize" "../../xxx" to "/xxx".
588 2001-03-19 Mark Wielaard <mark@klomp.org>
590 * java/util/ArrayList.java: Remove RCS keywords from comments
591 * java/util/BasicMapEntry.java: idem
592 * java/util/Dictionary.java: idem
593 * java/util/HashSet.java: idem
595 * java/util/EventObject.java: reindent
596 * java/util/Properties.java: idem
597 * java/util/SortedMap.java: idem
599 * java/util/Enumeration.java: Merge with Classpath
600 * java/util/EventListener.java: idem
601 * java/util/Observable.java: idem
602 * java/util/Observer.java: idem
603 * java/util/Stack.java: idem
605 2001-03-17 Tom Tromey <tromey@redhat.com>
607 * java/lang/natString.cc (rehash): Don't bother with memset;
608 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
610 (UNMASK_PTR): New macro.
611 (intern): Unmask pointer before returning it. Register finalizer
613 (unintern): Handle case where
614 (MASK_PTR): New macro.
615 (PTR_MAKSED): Likewise.
616 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
618 2001-03-01 Andrew Haley <aph@redhat.com>
620 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
621 stackTrace buffer to a correctly aligned pointer array.
623 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
625 * java/lang/Runtime.java (_exit): Declare new package-private native.
626 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
627 without a security manager check.
628 (exit): Call _exit after security check.
629 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
631 * java/lang/System.java (setSecurityManager): If a security manager
632 is already in place, call checkPermission.
633 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
634 throws an exception, try to deal with it gracefully.
635 * java/lang/ExceptionInInitializerError.java (printStackTrace):
636 Only try to print the subordinate stack trace if "exception" is set.
637 Print our class name first.
639 2001-03-08 Tom Tromey <tromey@redhat.com>
641 * java/io/ObjectStreamClass.java (setUID): Don't write interface
642 info for array classes.
643 Fixes PR libgcj/1971.
645 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
647 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
650 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
652 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
653 instead of the new JDK1.2 API. This is simpler and makes
654 back-porting the classes to JDK1.1 trivial.
655 (readObject): likewise.
657 2001-03-01 Per Bothner <per@bothner.com>
659 Changes merged from Kawa's gnu.math.
660 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
661 (rshift(int[],int[],int,int): Removed - not needed.
662 (gcd): Use rshift0 rather than rshift.
663 * java/math/BigInteger.java (setShiftRight): Likewise.
664 (divide): Simplify by using rshift0.
665 (divide): Zero-extend results if high-order bit set.
667 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
669 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
672 2001-02-23 Per Bothner <per@bothner.com>
674 Change to sometimes include class name in ClassFormatError message.
675 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
676 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
677 boolean instead of throwing ClassFormatError on failure.
678 (throw_class_format_error): Change static function to method.
679 (_Jv_ClassReader): New inline methods verify_identifier,
680 two overloads of verify_classname, verify_field_signature, and
681 verify_method_signature
682 * include/java-interp.h: Update declarations to return bool.
683 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
684 ClassFormatError since _Jv_VerifyClassName now returns bool.
686 2001-02-23 Per Bothner <per@bothner.com>
688 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
689 c++filt to select java-style output.
691 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
693 Fix for PR java/2040:
694 * java/util/HashMap.java (HashMap): Don't throw exception for
695 loadFactor > 1. Add exception messages.
696 * java/util/Hashtable.java (Hashtable): Likewise.
698 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
700 Disable libgcjx by default.
701 * configure.in: Add support for --enable-java-awt configure option.
702 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
703 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
704 * Makefile.in: Rebuilt.
705 * configure: Rebuilt.
707 2001-02-20 Tom Tromey <tromey@redhat.com>
709 * java/io/PipedWriter.java (flush): Throw exception if stream
711 * java/io/OutputStreamWriter.java (write): Throw exception if
713 (writeChars): Don't throw exception if stream closed.
714 * java/io/CharArrayWriter.java (closed): New field.
716 (flush): Throw exception if stream closed.
717 (reset): Synchronize on correct lock. Allow stream to be
719 (toCharArray, toString, writeTo): Synchronize.
720 (write): Throwe exception if stream closed.
721 * java/io/BufferedWriter.java (close): Clear `buffer'.
722 (flush): Throw IOException if stream is closed.
725 2001-02-16 Tom Tromey <tromey@cygnus.com>
727 * java/lang/ThreadGroup.java (activeCount): Only include threads
729 (enumerate): Likewise.
731 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
733 * java/lang/Integer.java (getInteger): Return default argument if
734 property is not set. Don't call decode with null argument.
735 * java/lang/Long.java (getLong): Likewise.
737 * java/io/CharArrayReader.java (CharArrayReader): Throw
738 IllegalArgumentException if constructor arguments are illegal.
739 (ready): Return false if no more characters can be read.
740 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
742 2001-02-17 Mark Wielaard <mark@klomp.org>
744 * java/util/TimerTask.java: New version from Classpath.
746 2001-02-17 Mark Wielaard <mark@klomp.org>
748 Remerge with Classpath
749 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
750 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
751 (readByte): Use convertToByte().
752 (readChar): Use convertToChar().
753 (readInt): Use convertToInt().
754 (readLong): Use convertToLong().
755 (readShort): Use convertToShort().
756 (readUnsignedByte): Use convertToUnsignedByte().
757 (readUnsignedShort): Use convertToUnsignedShort().
758 (readUTF): Use convertToUTF().
760 (convertToBoolean): Resurrected.
761 (convertToByte): Ditto.
762 (convertToChar): Ditto.
763 (convertToInt): Ditto.
764 (convertToLong): Ditto.
765 (convertToShort): Ditto.
766 (convertToUnsignedByte): Ditto.
767 (convertToUnsignedShort): Ditto.
768 (convertToUTF): Ditto.
770 2001-02-17 Mark Wielaard <mark@klomp.org>
774 2001-02-17 Mark Wielaard <mark@klomp.org>
776 * java/io/DataInputStream.java: update copyright notice
777 * java/io/PrintWriter.java: idem
778 * java/io/Reader.java: idem
779 * java/io/StreamTokenizer.java: idem
780 * java/io/StringReader.java: idem
781 * java/lang/reflect/ReflectPermission.java: idem
783 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
785 * java/util/TreeSet.java (clone): Made subclass safe, use
786 super.clone(), not new.
787 * java/util/TreeMap.java (clone): Likewise.
789 * java/util/TreeMap.java (nil): Made non-final.
790 (clone): Create new nil node for copy.
792 * java/util/HashSet.java (clone): Made subclass safe, use
793 super.clone(), not new.
795 2001-02-14 Andrew Haley <aph@redhat.com>
797 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
800 2001-02-15 Anthony Green <green@redhat.com>
802 * defineclass.cc: Don't include alloca.h.
803 (prepare_pool_entry): Convert alloca to __builtin_alloca.
804 * interpret.cc (run_normal): Ditto.
806 * java/lang/natDouble.cc (parseDouble): Ditto.
808 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
810 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
812 * java/util/Collections.java (ReverseComparator): New static class.
813 (reverseOrder): Return static instance of ReverseComparator.
815 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
816 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
817 Rectangle.clone(), not Object.clone().
819 * java/util/HashSet.java (clone): Remove try/catch.
821 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
822 * java/util/Collection.java: Likewise.
823 * java/util/Comparator.java: Likewise.
824 * java/util/Dictionary.java: Likewise.
825 * java/util/Iterator.java: Likewise.
826 * java/util/ListIterator.java: Likewise.
827 * java/util/Map.java: Likewise.
828 * java/util/Set.java: Likewise.
830 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
832 * java/util/TreeMap.java: New file.
833 * java/util/TreeSet.java: New file.
834 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
835 * Makefile.in: Rebuilt.
836 * java/util/HashSet.java (clone): Use constructor instead of calling
838 * java/util/SortedSet.java: Sync with classpath.
839 * java/util/HashMap.java (hash): Use if statement instead of ternary,
842 * java/lang/natClass.cc (getSignature): Don't try to dereference
843 param_types if it is null. Instead, take this to mean "no parameters".
844 * java/lang/TreeMap.java (TreeIterator.next): Throw
845 NoSuchElementException in preference to ConcurrentModificationException.
846 (TreeIterator.remove): Throw IllegalStateException in preference to
847 ConcurrentModificationException.
848 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
849 throw a NoSuchElementException.
850 (SubMap.lastKey): Likewise.
852 2001-02-13 Tom Tromey <tromey@redhat.com>
854 * java/io/PipedReader.java (ready): Throw IOException if pipe
856 * java/io/FilterReader.java (close): Don't clear `in'.
857 * java/io/CharArrayReader.java (mark): Throw IOException if stream
859 (read, ready, reset, skip): Added exception message.
860 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
861 Perform checkStatus check inside synchronized block.
863 2001-02-13 Tom Tromey <tromey@redhat.com>
865 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
867 2001-02-13 Tom Tromey <tromey@redhat.com>
869 Fix for PR libgcj/1351:
870 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
872 Include Thread.h and InterruptedIOException.h.
874 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
876 * java/io/BlockDataException.java: Removed.
877 * java/io/ObjectInputStream.java (readObject): Throw
878 StreamCorruptedException, not BlockDataException.
879 * Makefile.am: Remove BlockDataException.
880 * Makefile.in: Rebuild.
882 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
883 Tom Tromey <tromey@redhat.com>
885 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
888 2001-02-09 Tom Tromey <tromey@redhat.com>
890 * java/util/Timer.java: New version from Classpath.
892 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
894 * java/lang/Double.java (doubleToRawLongBits): Now native.
895 * java/lang/Float.java (floatToRawIntBits): Likewise.
896 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
897 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
899 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
901 * java/io/File.java (java.net): Imported.
902 (getAbsoluteFile): Added.
903 (getCanonicalPath): Likewise.
906 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
908 * java/lang/Byte.java: Remove redundant instanceof and null checks.
909 * java/lang/Integer.java: Likewise.
910 * java/lang/Long.java: Likewise.
911 * java/lang/Short.java: Likewise.
912 * java/lang/Double.java: Likewise.
913 (doubleToRawLongBits): New method.
914 * java/lang/Float.java: As above.
915 (floatToRawIntBits): New method.
917 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
918 IOException if stream closed.
920 2001-02-08 Tom Tromey <tromey@redhat.com>
922 * java/lang/Float.java (parseFloat): New method.
924 2001-02-08 Tom Tromey <tromey@redhat.com>
926 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
927 * java/io/InputStreamReader.java (ready, read): Throw IOException
928 if stream has been closed.
930 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
932 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
933 Change sources.redhat.com and sourceware.cygnus.com references to
936 2001-02-07 Tom Tromey <tromey@redhat.com>
938 Fix for PR libgcj/1906:
939 * java/text/MessageFormat.java (setLocale): Use named class
942 (format(Object,StringBuffer,FieldPosition)): Special case if
943 argument is an Object[].
945 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
947 * java/util/Arrays.java: Removed "cmp" methods.
948 (qsort): Don't use "cmp".
951 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
953 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
954 sort. Fix for PR java/1895.
956 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
958 * configure.host: Use sjlj-exceptions for Alpha.
960 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
962 * libgcj.spec.in: Don't force static libgcc into the executable.
963 * configure.in (FORCELIBGCCSPEC): Removed.
964 * configure: Rebuilt.
966 2001-01-31 Tom Tromey <tromey@redhat.com>
968 * Makefile.in: Rebuilt.
969 * Makefile.am (LTCXXCOMPILE): New macro.
971 2001-01-26 Andrew Haley <aph@redhat.com>
973 (INIT_FPE): Use a direct system call to set the handler.
975 2001-01-27 Richard Henderson <rth@redhat.com>
977 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
979 2001-01-27 Tom Tromey <tromey@redhat.com>
981 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
982 native interface structure.
984 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
986 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
988 (read (byte[], int, int)): Only call readNextBlock() if the block
989 buffer would actually be overrun. Increment blockDataPosition.
990 (callReadMethod): Propagate exceptions from invocation target.
991 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
992 exceptions from invocation target.
994 2001-01-26 Tom Tromey <tromey@redhat.com>
996 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
997 to internal representation.
998 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
999 _Jv_FindClassFromSignature.
1001 2001-01-26 Warren Levy <warrenl@redhat.com>
1003 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1004 and timezone if they are available on the system.
1006 2001-01-24 Tom Tromey <tromey@redhat.com>
1008 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1010 2001-01-24 Tom Tromey <tromey@redhat.com>
1012 * Makefile.in: Rebuilt.
1013 * Makefile.am (c_source_files): Added sf_fabs.c.
1014 * java/lang/sf_fabs.c: New file.
1016 2001-01-19 Warren Levy <warrenl@redhat.com>
1018 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1019 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1020 correctly. Adjust properly from 0-23 clock hour.
1022 2001-01-17 Mark Wielaard <mark@klomp.org>
1024 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1026 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1028 * java/lang/Class.h (isInterface): Move implementation from
1029 natClass.cc. Declare inline.
1030 (Class): Add default constructor.
1031 * java/lang/Object.h: Update comments.
1032 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1033 initialize superclass, saving a call if super is already initialized.
1035 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1037 * prims.cc (init_prim_class): Deleted.
1038 (DECLARE_PRIM_TYPE): Rewritten.
1039 * java/lang/Class.h (stdio.h): Include removed.
1040 (stddef.h): Included.
1041 (java/lang/reflect/Modifier.h): Likewise.
1042 (Class): Contructor now takes arguments, initializes fields.
1043 (initializePrim): Prototype deleted.
1044 * java/lang/natClass.cc (initializePrim): Deleted.
1046 2001-01-16 Warren Levy <warrenl@redhat.com>
1048 * java/math/BigInteger.java: Update Copyright year.
1050 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1052 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1055 2001-01-14 Mark Wielaard <mark@klomp.org>
1056 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1057 (decode): Merge comments with Classpath, don't throw Exception
1059 2001-01-12 Tom Tromey <tromey@redhat.com>
1061 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1065 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1066 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1067 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1068 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1069 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1071 * java/lang/natSystem.cc: Include locale.h if it exists.
1072 * configure: Rebuilt.
1073 * configure.in: Check for locale.h.
1075 2001-01-11 Tom Tromey <tromey@redhat.com>
1077 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1078 (Cursor(int), getPredefinedCursor): Throw exception if argument
1081 2001-01-03 Tom Tromey <tromey@redhat.com>
1083 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1084 (getLocationOnScreen): Wrote.
1086 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1088 * Makefile.am: Re-enable dependencies.
1089 * Makefile.in: Rebuilt.
1091 2001-01-10 Warren Levy <warrenl@redhat.com>
1093 * java/math/BigDecimal.java (divide): Fixed comment.
1095 2001-01-10 Warren Levy <warrenl@redhat.com>
1097 Fix for PR libgcj/1596:
1098 * java/math/BigDecimal.java (divide): Check newScale for validity.
1099 Ensure that BigInteger.pow() is called with a non-negative value.
1100 (setScale (int)): New public method.
1101 (setScale (int,int)): New public method.
1103 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1105 Fix for PR libgcj/1338:
1106 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1107 commentChar. Fixed typos in comments.
1109 2001-01-08 Warren Levy <warrenl@redhat.com>
1111 Fix for PR libgcj/1411:
1112 * Makefile.am: Removed java/util/natTimeZone.cc.
1113 * Makefile.in: Rebuilt.
1114 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1115 missing localized timezone names.
1116 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1117 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1118 (init_properties): Set user.timezone property.
1119 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1120 default timezone names; removed non-standard ones. Use standard
1122 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1124 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1126 (getDefaultTimeZoneId): Removed.
1128 * java/util/natTimeZone.cc: Removed.
1130 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1132 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1133 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1134 (_Jv_GetArrayClass): New inline function.
1135 (arrayclass): New field.
1136 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1137 _Jv_GetArrayElementFromElementType.
1138 (_Jv_NewPrimArray): Ditto.
1139 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1140 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1141 Set Modifier::ABSTRACT.
1142 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1143 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1144 Now synchronized. Array classes are now referenced from
1145 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1146 Set array classes' accessibility flags correctly. Optimize so that
1147 all array classes share the same IDT.
1148 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1149 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1150 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1151 in superclasses from overwriting classes own fields.
1152 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1153 Modifier::isAbstract().
1154 (null_idt): New static field.
1155 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1157 (_Jv_IndexOf): Made inline.
1158 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1160 2001-01-08 Tom Tromey <tromey@redhat.com>
1162 Fix for PR java/1586:
1163 * Makefile.in: Rebuilt.
1164 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1166 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1168 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1169 from the c++ compiler.
1170 * Makefile.in: Rebuilt.
1172 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1174 All files with updated copyright.
1175 * prims.cc (class _Jv_PrimClass): Removed.
1176 (init_prim_class): New function.
1177 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1178 `_Jv_PrimClass' in primitive type declarations. Assign to the
1179 value returned by `init_prim_class.'
1180 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1181 primitive type declarations.
1182 (JvPrimClass): Cast to `jclass' removed.
1183 * java/lang/Class.h (Class): New constructor.
1184 (Class): New copy constructor.
1185 (initializePrim): New prototype.
1186 (_Jv_PrimClass): Field removed.
1187 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1188 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1189 (class java::lang::Object): `finalize' moved up front.
1190 * java/lang/natClass.cc
1191 (isAssignableFrom): Turned outline.
1192 (isInstance): Likewise.
1193 (isInterface): Likewise, fixed indentation.
1194 (initializePrim): New function.
1196 2001-01-07 Anthony Green <green@redhat.com>
1198 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1200 * Makefile.in: Rebuilt.
1202 * scripts/TexinfoDoclet.java: New file.
1204 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1205 doc/java-awt-color.texi, doc/java-lang.texi,
1206 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1207 doc/java-awt-event.texi, doc/java-net.texi,
1208 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1209 doc/java-awt-image.texi, doc/java-security.texi,
1210 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1211 doc/java-text.texi, doc/java-beans-beancontext.texi,
1212 doc/java-util-jar.texi, doc/java-beans.texi,
1213 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1214 doc/java-lang-ref.texi: New files.
1216 2001-01-07 Anthony Green <green@redhat.com>
1218 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1219 be used for both input and output, so don't clear doInput.
1221 * java/lang/StringBuffer.java: Fix comments.
1223 2001-01-06 Anthony Green <green@redhat.com>
1225 * java/beans/PropertyDescriptor.java: Fix comment.
1226 * java/io/PushbackReader.java: Fix comment.
1227 * java/io/ObjectStreamClass.java: Fix comment.
1228 * java/io/DataInputStream.java: Fix comment.
1229 * java/io/PipedInputStream.java: Fix comments.
1230 * java/io/PipedReader.java: Fix comments.
1231 * java/sql/DatabaseMetaData.java: Fix comments.
1233 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1235 * java/io/PipedReader: Synchronize on "lock" instead of this.
1237 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1239 * java/lang/Thread.java: Update comment.
1241 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1242 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1243 * java/io/PipedReader: New implementation based on new
1245 * java/io/PipedWriter: Updated to match new PipedReader.
1247 2001-01-03 Tom Tromey <tromey@redhat.com>
1249 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1250 (getViewportSize): Insets include scrollbar size.
1251 (doLayout): Finished.
1252 (getScrollPosition): Wrote.
1253 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1255 2001-01-02 Tom Tromey <tromey@redhat.com>
1257 * java/awt/ScrollPane.java: Wrote.
1258 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1261 * java/awt/Panel.java (Panel()): Fixed.
1263 * java/awt/Component.java (isShowing): Return false if no peer
1264 exists, and true if component is visible and no parent exists.
1265 (getLocationOnScreen): Wrote.
1266 (getPreferredSize): Removed FIXME comment.
1267 (getMinimumSize): Likewise.
1268 (getAlignmentX, getAlignmentY): Wrote.
1270 (requestFocus): Wrote.
1271 (transferFocus): Wrote.
1272 (findNextFocusComponent): New method.
1273 (hasFocus()): Wrote.
1274 (checkImage): Wrote.
1275 (enableEvents): Call setEventMask on the peer.
1277 * java/awt/Container.java (list): Use super.list() to print self.
1278 (findNextFocusComponent): New method.
1279 (setLayout): Call invalidate.
1280 (findComponentAt): Wrote.
1282 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1284 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1285 the correct versions of various linuxthreads functions get linked.
1286 * Makefile.in: Rebuilt.
1287 * java/lang/natThread.cc (finalize_native): New static function. Call
1288 _Jv_ThreadDestroyData.
1289 (initialize_native): Register finalizer for "data".
1290 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1291 (_Jv_ThreadDestroyData): New prototype.
1292 * include/win32-threads.h: Ditto.
1293 * include/no-threads.h: Ditto.
1294 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1295 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1296 move mutex and condition variable destroy code from:
1297 (really_start): ...here.
1298 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1299 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1300 (_Jv_ThreadDestroyData): Implemented.
1301 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1302 (_Jv_AllocArray): Ditto.
1304 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1306 * java/sql/DriverManager.java (getConnection): Don't set user/password
1309 2000-12-27 Warren Levy <warrenl@redhat.com>
1311 Fix for PR libgcj/1358:
1312 * java/lang/System.java: Update Copyright date properly.
1313 * java/util/Calendar.java: Fix typo in comment.
1314 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1315 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1316 initialize times. Spec says to set H:M:S values to zero only if
1318 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1319 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1320 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1321 timezones and GMT offsets, being careful to account for units of
1322 milliseconds vs. seconds.
1324 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1326 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1327 not be assigned to Object.
1329 Fix for PR libgcj/1516:
1330 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1332 (can_widen): Declared inline. Remove redundant checks for void
1333 arguments and char->short conversion. Add special case for boolean
1335 (ffi_type): Declared inline.
1336 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1338 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1340 * java/sql/SQLWarning.java: Fixed typo in comment.
1342 2000-12-26 Tom Tromey <tromey@redhat.com>
1344 * java/awt/MenuItem.java (paramString): Now protected.
1346 * java/awt/MenuShortcut.java: Implements Serializable.
1348 * java/awt/MenuBar.java: Rewrote from scratch.
1350 * java/awt/MenuComponent.java (removeNotify): Wrote.
1351 Implements Serializable.
1353 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1356 * java/awt/CheckboxMenuItem.java: Wrote.
1358 2000-12-25 Tom Tromey <tromey@redhat.com>
1360 * java/awt/MenuContainer.java: Fixed typo.
1362 * Makefile.in: Rebuilt.
1363 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1364 * java/awt/SystemColor.java: New file.
1366 * java/awt/Color.java (rgba): Now package-private.
1368 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1370 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1373 * java/awt/MenuItem.java (addNotify): New method.
1374 (MenuItem(String,MenuShortcut)): New constructor.
1375 (setLabel): Notify peer of change.
1376 (setEnabled): Likewise.
1378 * java/awt/GridLayout.java (toString): New method.
1380 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1381 (FlowLayout): Check for LEADING and TRAILING.
1382 (setAlignment): Likewise.
1383 (layoutContainer): Handle component orientation.
1385 * java/awt/Component.java (orientatin): New field.
1386 (setComponentOrientation): Wrote.
1387 (getComponentOrientation): Wrote.
1389 * java/awt/Event.java (Event): Implements Serializable.
1390 (consumed): New field for serialization.
1391 * java/awt/Dimension.java (Dimension): Implements Serializable.
1392 * java/awt/Cursor.java (Cursor): Implements Serializable.
1393 * java/awt/Container.java (Container): No longer abstract.
1395 * java/awt/Choice.java: Wrote.
1396 * java/awt/Checkbox.java: Wrote.
1397 * java/awt/ItemSelectable.java: Documented.
1398 * java/awt/CheckboxGroup.java: Wrote.
1400 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1402 (getSize): Likewise.
1404 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1406 * java/io/FileDescriptor.java: Initialize fd to -1.
1407 Remove default constructor.
1409 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1411 * java/lang/mprec.h: Change C9X reference to refer to C99.
1413 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1415 * java/lang/Throwable.java (trace_enabled): New static field.
1416 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1417 trace_enabled not set.
1418 * prims.cc (main_init): Turn off trace_enabled while creating
1419 default exception objects.
1421 2000-12-21 Tom Tromey <tromey@redhat.com>
1423 * java/beans/PropertyChangeListener.java: Extends EventListener.
1424 * java/beans/VetoableChangeListener.java: Extends EventListener.
1426 * java/util/zip/Deflater.java (update, init): Now private.
1428 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1430 * java/util/BasicMapEntry.java: Re-added.
1431 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1432 (putAll): Test for BasicMapEntry.
1433 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1434 (putAll): Test for BasicMapEntry.
1435 Change references from `HashMap.Entry' to `Entry' in various places.
1436 * Makefile.am: Add BasicMapEntry.java.
1437 * Makefile.in: Rebuilt.
1439 2000-12-18 Warren Levy <warrenl@redhat.com>
1441 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1442 need to set timezone to a valid non-null value. Partial fix for
1445 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1447 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1449 * java/awt/Button.java (addNotify): Likewise.
1450 * java/awt/Label.java (addNotify): Likewise.
1451 * java/awt/Panel.java (addNotify): Likewise.
1452 * java/awt/Scrollbar.java (addNotify): Likewise.
1453 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1454 Remove redundant null checks.
1456 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1458 * COPYING: Update to current
1459 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1460 to 19yy as example year in copyright notice).
1462 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1464 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1465 end-of-stream if avail_in is 0.
1467 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1469 * java/util/ArrayList.java (data): Declare transient.
1470 (serialPersistantFields): Removed.
1471 (readObject): Use defaultReadObject(), not readFields().
1472 (writeObject): Use defaultWriteObject(), not writeFields().
1474 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1476 * java/util/Hashtable.java (put): Remove `last' variable.
1477 Link new entry to head of list.
1478 * java/util/HashMap.java (put): Ditto.
1480 2000-12-15 Tom Tromey <tromey@redhat.com>
1482 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1483 loader to Class.forName.
1485 2000-12-14 Tom Tromey <tromey@redhat.com>
1487 * java/util/ResourceBundle.java
1488 (getBundle(String,Locale,ClassLoader)): New method.
1489 (trySomeGetBundle): Added `loader' argument.
1490 (partialGetBundle): Likewise.
1492 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1493 maximumFractionDigits, maximumIntegerDigits,
1494 minimumFractionDigits, minimumIntegerDigits): Now
1497 * java/lang/Thread.java (checkAccess): Now final.
1499 * java/lang/RuntimePermission.java: Class now final.
1501 * java/io/StringWriter.java (StringWriter(int)): Now public.
1503 * java/io/SerializablePermission.java (legal_names): Now private.
1505 * java/lang/Character.java: Updated UnicodeBlock constants.
1506 * scripts/blocks.pl: Special case private use and surrogate
1509 2000-12-12 Tom Tromey <tromey@redhat.com>
1511 * Makefile.in: Rebuilt.
1512 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1514 (GCJCOMPILE): Use it.
1517 2000-12-11 Tom Tromey <tromey@redhat.com>
1519 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1520 New static final fields.
1522 * scripts/classes.pl (scan): Skip lines with leading `*'.
1523 Fix for PR libgcj/378.
1525 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1527 * configure.in: Remove check for -fuse-divide-subroutine.
1528 * configure: Rebuilt.
1530 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1532 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1534 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1536 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1537 Remove BasicMapEntry.java and Bucket.java.
1538 * Makefile.in: Rebuilt.
1539 * java/util/HashMap.java: Rewritten.
1540 * java/util/HashSet.java: Imported from classpath.
1541 * java/util/WeakHashMap.java: Imported from classpath.
1542 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1543 * java/util/Bucket.java: Deleted.
1544 * java/util/BasicMapEntry.java: Deleted.
1545 * java/util/Collections.java (search): Use a for-loop, not iterator
1547 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1548 of elements in source.
1549 (max): Use a for-loop.
1551 (reverse): Keep track of positions instead of using Iterator's
1552 nextIndex() and previousIndex().
1553 (shuffle(List)): Initialize defaultRandom if required using
1554 double-check thread safety idiom. Call two-argument shuffle method
1555 using defaultRandom.
1556 (defaultRandom): New field.
1557 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1558 using previousIndex() and nextIndex().
1559 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1560 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1561 * java/util/AbstractMap.java (toString): Use StringBuffer.
1562 * java/lang/ref/PhantomReference.java: Imported from classpath.
1563 * java/lang/ref/SoftReference.java: Ditto.
1564 * java/lang/ref/Reference.java: Ditto.
1565 * java/lang/ref/WeakReference.java: Ditto.
1566 * java/lang/ref/ReferenceQueue.java: Ditto.
1568 2000-12-10 Richard Henderson <rth@redhat.com>
1570 * configure.host: Recognize alpha*-*, not alphaev6-*.
1572 2000-12-09 Anthony Green <green@redhat.com>
1574 * configure.host: Enable interpreter for Alpha.
1576 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1578 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1579 (ZIP): Points at fastjar instead of zip.
1580 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1581 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1582 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1583 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1584 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1585 ($(x_java_source_files:.java=.class):): Likewise.
1586 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1588 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1589 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1590 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1591 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1592 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1593 gnu/gcj/runtime/VMClassLoader.h:,
1594 java/io/ObjectInputStream$$GetField.h:,
1595 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1596 (Makefile.in): Rebuilt.
1598 2000-12-08 Tom Tromey <tromey@redhat.com>
1601 * configure: Rebuilt.
1602 * configure.in: Use echo, not `:', to create .d files.
1604 2000-12-08 Warren Levy <warrenl@redhat.com>
1606 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1607 NullPointerException so proper check of offset can be done.
1609 2000-12-08 Warren Levy <warrenl@redhat.com>
1611 * java/io/FileInputStream.java (close): Check if the fd is valid.
1612 * java/io/RandomAccessFile.java (close): Ditto.
1613 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1614 * java/net/PlainSocketImpl.java (close): Ditto.
1616 2000-12-06 Tom Tromey <tromey@redhat.com>
1618 * java/awt/GridBagConstraints.java: Filled in values for static
1621 * java/util/BitSet.java: Updated copyright notice.
1623 * Makefile.in: Rebuilt.
1624 * Makefile.am (awt_java_source_files): Added new file.
1625 * java/awt/GridBagConstraints.java: New file.
1627 2000-12-05 Tom Tromey <tromey@redhat.com>
1629 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1630 Now package-private, not protected.
1631 * java/text/DateFormatSymbols.java (equals): Now private.
1632 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1633 * java/util/BitSet.java: Class no longer final.
1635 2000-12-04 Warren Levy <warrenl@redhat.com>
1637 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1638 out code dependent on compiler and library changes.
1640 2000-12-04 Warren Levy <warrenl@redhat.com>
1642 * java/io/FilePermission.java: Made class final per spec.
1643 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1644 method name to match spec (fixed typo).
1645 * java/util/LinkedList.java: Implements List.
1647 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1649 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1650 Edgar Villanueva <edgarvil@home.com>.
1652 2000-12-03 Tom Tromey <tromey@redhat.com>
1654 * java/awt/geom/Point2D.java: Added protected constructor.
1655 (equals): New method.
1656 (Float.setLocation(float,float)): New method.
1657 * java/awt/geom/Dimension2D.java: Added protected constructor.
1658 * java/awt/geom/AffineTransform.java: Made all constants public.
1659 (concatenate): Fixed typo in name.
1660 * java/awt/event/WindowAdapter.java: Class now abstract.
1661 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1662 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1665 * java/awt/AWTError.java: Extend Error, not
1666 IllegalStateException.
1668 * Makefile.in: Rebuilt.
1669 * Makefile.am (awt_java_source_files): Added new file.
1670 * java/awt/geom/RoundRectangle2D.java: New file.
1672 * Makefile.in: Rebuilt.
1673 * Makefile.am (awt_java_source_files): Added new file.
1674 * java/awt/FlowLayout.java: New file.
1676 * Makefile.in: Rebuilt.
1677 * Makefile.am (awt_java_source_files): Added new file.
1678 * java/awt/GridLayout.java: New file.
1680 2000-12-02 Tom Tromey <tromey@redhat.com>
1682 * Makefile.in: Rebuilt.
1683 * Makefile.am (awt_java_source_files): Added new files.
1684 * java/awt/CardLayout.java: New file.
1685 * java/awt/AWTPermission.java: New file.
1687 2000-12-01 Tom Tromey <tromey@redhat.com>
1689 * java/util/Vector.java (insertElementAt): Unconditionally
1690 increment elementCount.
1691 (removeRange): Clear unused slots in vector.
1693 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1695 * java/lang/natMath.cc: Declare fabsf() function.
1696 * java/lang/mprec.h: Don't include math.h.
1697 * java/lang/dtoa.c: Include string.h.
1698 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1701 From Adam Welc <welc@cs.purdue.edu>:
1702 * java/util/LinkedList.java (removeFirst): Update `first' field.
1703 Handle the last == first case.
1704 (removeLast): Update `last' field. Handle the last == first case.
1706 2000-12-01 Warren Levy <warrenl@cygnus.com>
1708 * Makefile.am: Added entries for new java.sql modules.
1709 * Makefile.in: Rebuilt.
1711 2000-12-01 Warren Levy <warrenl@cygnus.com>
1713 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1714 that aren't quite 1.2 compatible yet.
1716 2000-11-30 Warren Levy <warrenl@cygnus.com>
1718 * java/sql/Array.java: New file from classpath.
1719 * java/sql/BatchUpdateException.java: Ditto.
1720 * java/sql/Blob.java: Ditto.
1721 * java/sql/Clob.java: Ditto.
1722 * java/sql/Ref.java: Ditto.
1723 * java/sql/SQLData.java: Ditto.
1724 * java/sql/SQLInput.java: Ditto.
1725 * java/sql/SQLOutput.java: Ditto.
1726 * java/sql/Struct.java: Ditto.
1727 * java/sql/CallableStatement.java: Merged file from claspath.
1728 * java/sql/Connection.java: Ditto.
1729 * java/sql/DataTruncation.java: Ditto.
1730 * java/sql/DatabaseMetaData.java: Ditto.
1731 * java/sql/DriverManager.java: Ditto.
1732 * java/sql/PreparedStatement.java: Ditto.
1733 * java/sql/ResultSet.java: Ditto.
1734 * java/sql/ResultSetMetaData.java: Ditto.
1735 * java/sql/SQLException.java: Ditto.
1736 * java/sql/SQLWarning.java: Ditto.
1737 * java/sql/Statement.java: Ditto.
1738 * java/sql/Types.java: Ditto.
1740 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1742 * java/lang/natSystem.cc (init_properties): Set user.language and
1744 * configure.in: Check for setlocale.
1745 * configure: Rebuilt.
1746 * include/config.h.in: Rebuilt.
1748 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1749 the infate() call didn't deliver any output. Throw a ZipException if
1750 the needsDictionary() call returns true.
1751 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1752 * java/io/InputStreamReader: Use the default buffer size for the
1753 contained BufferedInputStream.
1755 2000-11-28 Warren Levy <warrenl@cygnus.com>
1757 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1758 more time zone entries.
1759 * java/text/SimpleDateFormat.java (format): Added case for
1762 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1764 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1765 directly rather than read() in all cases. Make primitive read
1766 implementations more efficient, as defined in JDK online docs.
1767 (skipBytes): Behave like the JDK's implementation.
1768 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1769 closed stream with checkStatus() whenever an IOException can be
1771 (checkStatus): New private method.
1773 2000-11-27 Warren Levy <warrenl@cygnus.com>
1775 * Makefile.am: Added natTimeZone.cc.
1776 * Makefile.in: Rebuilt.
1777 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1778 * java/text/DateFormatSymbols.java (ampms): Made package private.
1779 (eras): Made package private.
1780 (months): Made package private.
1781 (shortMonths): Made package private.
1782 (shortWeekdays): Made package private.
1783 (weekdays): Made package private.
1784 (formatPrefixes): New private field.
1785 (localPatternCharsDefault): Made private.
1786 (dateFormats): New package private field.
1787 (timeFormats): New package private field.
1788 (formatsForKey): New private method.
1789 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1790 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1791 * java/text/SimpleDateFormat.java: Merged with Classpath.
1792 * java/util/TimeZone.java: Merged with Classpath.
1793 * java/util/natTimeZone.cc: New file.
1795 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1797 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1798 (addElement): Don't increment elementCount twice. Doh.
1799 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1800 array needs to be expanded.
1802 * java/util/Collections.java (UnmodifiableCollection): Implement
1804 (UnmodifiableList): Throw UnsupportedOperationException from
1805 modification methods. Set `l' from the one-parameter constructor.
1806 (UnmodifiableMap): Implement toString().
1807 (SynchronizedCollection): Ditto.
1808 (SynchronizedList): Set `l' from the one-parameter constructor.
1809 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1810 (SynchronizedMap): Implement toString().
1812 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1814 * javax/naming/NameParser.java,
1815 javax/naming/directory/AttributeInUseException.java,
1816 javax/naming/directory/AttributeModificationException.java,
1817 javax/naming/directory/InvalidAttributeIdentifierException.java,
1818 javax/naming/directory/InvalidAttributesException.java,
1819 javax/naming/directory/InvalidAttributeValueException.java,
1820 javax/naming/directory/InvalidSearchControlsException.java,
1821 javax/naming/directory/InvalidSearchFilterException.java,
1822 javax/naming/directory/NoSuchAttributeException.java,
1823 javax/naming/directory/SchemaViolationException.java: New files.
1825 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1827 * javax/naming/InitialContext.java (rebind): Implement.
1828 (unbind): Implement.
1829 (rename): Implement.
1831 (listBindings): Implement.
1832 (destroySubcontext): Implement.
1833 (createSubcontext): Implement.
1834 (lookupLink): Implement.
1835 (getNameParser): Implement.
1836 (composeName): Implement.
1837 (addToEnvironment): Implement.
1839 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1841 * javax/naming/AuthenticationException.java,
1842 javax/naming/AuthenticationNotSupportedException.java,
1843 javax/naming/CannotProceedException.java,
1844 javax/naming/CommunicationException.java,
1845 javax/naming/ConfigurationException.java,
1846 javax/naming/ContextNotEmptyException.java,
1847 javax/naming/InsufficientResourcesException.java,
1848 javax/naming/InterruptedNamingException.java,
1849 javax/naming/InvalidNameException.java,
1850 javax/naming/LimitExceededException.java,
1851 javax/naming/LinkException.java,
1852 javax/naming/LinkLoopException.java,
1853 javax/naming/MalformedLinkException.java,
1854 javax/naming/NameAlreadyBoundException.java,
1855 javax/naming/NameNotFoundException.java,
1856 javax/naming/NamingSecurityException.java,
1857 javax/naming/NoPermissionException.java,
1858 javax/naming/NotContextException.java,
1859 javax/naming/PartialResultException.java,
1860 javax/naming/ReferralException.java,
1861 javax/naming/ServiceUnavailableException.java,
1862 javax/naming/SizeLimitExceededException.java,
1863 javax/naming/TimeLimitExceededException.java: New files.
1865 * javax/naming/Name.java (clone): New method.
1866 (compareTo): New method.
1867 (isEmpty): New method.
1868 (getAll): New method.
1869 (getPrefix): New method.
1870 (getSuffix): New method.
1871 (startsWith): New method.
1872 (endsWith): New method.
1873 (addAll): New method.
1874 (addAll): New method.
1877 (remove): New method.
1879 * javax/naming/Context.java (lookup): New method.
1880 (rebind): New method.
1881 (unbind): New method.
1882 (rename): New method.
1884 (listBindings): New method.
1885 (destroySubcontext): New method.
1886 (createSubcontext): New method.
1887 (lookupLink): New method.
1888 (getNameParser): New method.
1889 (composeName): New method.
1890 (addToEnvironment): New method.
1891 (removeFromEnvironment): New method.
1892 (getEnvironment): New method.
1893 (close): New method.
1894 (getNameInNamespace): New method.
1896 * javax/naming/InitialContext.java (lookup): New method.
1897 (rebind): New method.
1898 (unbind): New method.
1899 (rename): New method.
1901 (listBindings): New method.
1902 (destroySubcontext): New method.
1903 (createSubcontext): New method.
1904 (lookupLink): New method.
1905 (getNameParser): New method.
1906 (composeName): New method.
1907 (addToEnvironment): New method.
1908 (removeFromEnvironment): New method.
1909 (getEnvironment): New method.
1910 (close): New method.
1911 (getNameInNamespace): New method.
1913 2000-11-26 Tom Tromey <tromey@cygnus.com>
1915 * Makefile.in: Rebuilt.
1916 * Makefile.am (core_java_source_files): Added
1917 RuntimePermission.java.
1918 * java/lang/RuntimePermission.java: Imported from Classpath.
1919 * java/lang/Thread.java (getContextClassLoader): Now
1920 synchronized. Added security code.
1921 (setContextClassLoader): Likewise.
1923 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1924 length field of array.
1925 (_Jv_NewPrimArray): Likewise.
1926 * gcj/array.h (__JArray): `length' field now const. Added
1929 2000-11-26 Anthony Green <green@redhat.com>
1931 * javax/naming/spi/NamingManager.java,
1932 javax/naming/spi/ObjectFactory.java,
1933 javax/naming/spi/InitialContextFactory.java,
1934 javax/naming/spi/InitialContextFactoryBuilder.java,
1935 javax/naming/RefAddr.java, javax/naming/Reference.java,
1936 javax/naming/NamingException.java, javax/naming/Context.java,
1937 javax/naming/Referenceable.java,
1938 javax/naming/directory/InitialDirContext.java,
1939 javax/naming/directory/DirContext.java,
1940 javax/naming/directory/Attributes.java,
1941 javax/naming/directory/Attribute.java,
1942 javax/naming/StringRefAddr.java,
1943 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1944 javax/naming/InitialContext.java,
1945 javax/naming/NoInitialContextException.java: New files.
1947 2000-11-25 Anthony Green <green@redhat.com>
1949 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1950 (_Jv_NewPrimArray): Likewise.
1951 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1952 (class JArray): Removed constructor.
1954 * java/lang/Thread.java (context_class_loader): New private data.
1955 (getContextClassLoader): New method.
1956 (setContextClassLoader): New method.
1957 (Thread): Initialize context_class_loader.
1959 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1960 (getResource): Rename to findResource.
1961 (findResource): New method. Used to be getResource.
1962 (getResourceAsStream): Deleted.
1963 (jarFileize): Extracted logic from URLClassLoader constructor into
1964 this new private method.
1965 (addURL): New protected method.
1966 (URLClassLoader): Call jarFileize. Use addElement instead of
1968 (findResources): New method.
1970 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1971 (getResource): Implement correct logic.
1972 (findResource): New method.
1973 (getResources): New method.
1974 (findClass): Create a ClassNotFoundException with the name of the
1975 class rather than nothing at all.
1976 (defineClass) Only throw ClassFormatError.
1978 * java/lang/Class.java (forName): New method.
1979 * java/lang/Class.h (forName): New method.
1980 * java/lang/natClass.cc (forName): New method.
1982 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1984 * java/lang/System.java (setProperties): Only call init_properties()
1985 if properties is null.
1986 (getProperties): Ditto.
1987 (getProperty): Ditto.
1988 (setProperty): Call init_properties if properties are null.
1989 (prop_init): Remove field.
1990 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1991 method. Check for null properties after synchronizing instead of
1992 prop_init flag. Set the properties field last for thread safety.
1994 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1995 test for gcj.dumpobjects property and enable object stream dumping
1997 (dumpElement): No longer native.
1998 (dumpElementln): Ditto.
1999 (setDump): Do not define.
2000 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2001 (dumpElementln): Removed.
2004 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2006 * configure: Rebuilt.
2007 * Makefile.in: Rebuilt.
2008 * Makefile.am (built_java_source_files): Add Configuration.java.
2009 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2010 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2011 Create `gnu' directory in the build tree.
2012 * gnu/classpath/Configuration.java.in: New file.
2014 2000-11-24 Tom Tromey <tromey@cygnus.com>
2016 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2018 (_Jv_NewPrimArray): Likewise.
2020 * gcj/array.h (__JArray): `length' field now const. Added
2022 (class JArray): Added constructor.
2024 2000-11-23 Mark Wielaard <mark@klomp.org>
2026 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2029 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2031 * java/util/Vector.java: Improve exception messages.
2032 (Vector): Check initialCapacity for IllegalArgumentException.
2033 (tromToSize): Don't check for elementCount == elementData.length
2035 (toArray): Don't try to set null marker if target array is the same
2036 length as the vector.
2038 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2040 * Makefile.in: Rebuilt.
2041 * Makefile.am (core_java_source_files): Added Collections.java.
2042 * java/util/List.java: Merged from classpath.
2043 * java/util/Vector.java: Ditto.
2044 * java/util/Collections.java: From classpath.
2045 * java/util/ArrayList.java (addAll(Collection)): Call
2046 addAll(int,Collection) instead of duplicating code.
2047 (indexOf): Clean up int initialization.
2048 (clear): Set cleared array entries to null, to allow garbage
2050 * java/util/List.java: Minor formatting fixes.
2051 * java/util/SimpleTimeZone.java: ditto.
2053 2000-11-18 Tom Tromey <tromey@cygnus.com>
2055 * Makefile.in: Rebuilt.
2056 * Makefile.am (core_java_source_files): Added new files.
2057 * java/lang/reflect/ReflectPermission.java: New class.
2058 * java/io/FileFilter.java: From Classpath
2059 * java/io/FilePermission.java: From Classpath.
2061 2000-11-17 Tom Tromey <tromey@cygnus.com>
2063 * java/lang/reflect/AccessibleObject.java (isAccessible,
2064 setAccessible): Now public.
2066 * java/lang/natString.cc: Include Locale.h.
2067 (toUpperCase): Added `locale' argument. Handle locale
2069 (toLowerCase): Added `locale' argument. Handle locale
2071 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2072 CAPITAL_I): New defines.
2073 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2076 (toUpperCase, toLowerCase): New methods. Variants which accept
2079 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2082 * java/util/PropertyPermission.java: Re-merged from Classpath.
2084 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2086 * java/text/StringCharacterIterator.java: Reindented.
2087 (setText): New method.
2089 2000-11-17 Mark Wielaard <mark@klomp.org>
2091 Merge with Classpath (changes by Bryce McKinlay)
2092 * java/util/jar/*.java: Reformat all to unofficial standard coding
2093 style. No changes of substance.
2095 2000-11-17 Mark Wielaard <mark@klomp.org>
2097 * java/util/zip/*.java: Javadoc updates.
2099 2000-11-17 Tom Tromey <tromey@cygnus.com>
2101 * java/text/CollationKey.java: Implement Comparable.
2102 (compareTo(Object)): New method.
2103 * java/text/Collator.java (compare(Object,Object)): New method.
2104 Implement Comparator.
2106 * java/util/zip/InflaterInputStream.java (available): New method.
2107 (close): New method.
2108 (read, available, skip, fill): Throw exception if stream closed.
2109 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2110 getNextEntry): Throw exception if closed.
2112 2000-11-16 Tom Tromey <tromey@cygnus.com>
2114 * java/io/PushbackReader.java: Merged with Classpath.
2115 * java/util/Arrays.java: Updated from Classpath.
2117 * scripts/blocks.pl: New file.
2118 * java/lang/Character.java (Subset): New class.
2119 (UnicodeBlock): New class.
2121 * java/lang/Math.java (toDegrees, toRadians): New methods.
2123 * java/lang/Float.java: Implement Comparable.
2124 (compareTo): New methods.
2125 * java/lang/Double.java: Implement Comparable.
2126 (compareTo): New methods.
2128 2000-11-16 Warren Levy <warrenl@cygnus.com>
2130 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2132 (listeners): Made transient.
2133 (source): Renamed from 'bean'.
2134 (children): New field for serialization.
2135 (propertyChangeSupportSerializedDataVersion): Ditto.
2136 (serialVersionUID): Ditto.
2137 (writeObject): New serialization method.
2138 (readObject): New serialization method.
2139 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2141 (listeners): Made transient.
2142 (source): Renamed from 'bean'.
2143 (children): New field for serialization.
2144 (vetoableChangeSupportSerializedDataVersion): Ditto.
2145 (serialVersionUID): Ditto.
2146 (writeObject): New serialization method.
2147 (readObject): New serialization method.
2148 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2149 to allow constructor to have a return type (i.e. the class that the
2150 constructor constructs).
2152 2000-11-14 Tom Tromey <tromey@cygnus.com>
2154 * Makefile.in: Rebuilt.
2155 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2158 2000-11-02 Warren Levy <warrenl@cygnus.com>
2160 * java/io/ObjectInputStream.java (readObject): Added code to
2161 conditionally dump out the serialized data.
2162 Handle ENDBLOCKDATA case a bit more gracefully since the current
2163 behavior doesn't seem to work as expected.
2164 (readStreamHeader): Added code for serialized data dumper.
2165 (readNextBlock): Ditto.
2166 (readFields): Ditto.
2167 (dump): New private static field for turning on/off dumper.
2168 (setDump): New native method.
2169 (dumpElement): New native method.
2170 (dumpElementln): New native method.
2171 * java/io/natObjectInputStream.cc (setDump): New method.
2172 (dumpElement): New method.
2173 (dumpElementln): New method.
2175 2000-11-02 Warren Levy <warrenl@cygnus.com>
2177 * java/net/InetAddress.java (addr): Renamed from 'address'.
2178 (address): New field to match Serialized Form doc.
2179 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2180 (family): New serialization field.
2181 (serialVersionUID): New field.
2182 (readObject): New method.
2183 (writeObject): New method.
2184 (getFamily): New native method.
2185 (InetAddress): Set family.
2186 * java/net/natInetAddress.cc (getFamily): New method.
2187 (addr): Renamed from 'address'.
2188 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2189 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2190 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2192 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2194 * java/util/AbstractList.java (SubList): Make it a top-level private
2196 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2198 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2199 * Makefile.in: Rebuilt.
2201 2000-11-02 Tom Tromey <tromey@cygnus.com>
2203 * Makefile.in: Rebuilt.
2204 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2207 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2209 * java/util/AbstractList.java (remove): Comment out modCount increment
2210 to work around compiler bug.
2213 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2215 * java/util/AbstractList.java: Throw messages with
2216 IndexOutOfBoundsExceptions.
2217 (listIterator()): Call listIterator(0).
2218 (size): New field. Initialize to size().
2219 (hasNext): Test position against size, not size().
2220 (remove): Increment knownMod by one instead of resetting it from
2223 (SubList.upMod): Removed.
2224 (SubList.set): Don't call upMod() or update knownMod.
2225 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2226 (SubList.remove): Ditto.
2227 (SubList.addAll): Don't call backingList.size(). Increment size from
2229 (SubList.iterator): New method. Call listIterator(0).
2230 (SubList.listIterator): New method. Restore code to return an anonymous
2231 listIterator implementation (with some changes).
2232 * java/util/AbstractSequentialList.java: Throw messages with
2233 IndexOutOfBoundsExceptions.
2234 (addAll): Add a specnote.
2235 * java/util/ArrayList.java (removeRange): Get the math right.
2236 (addAll): Increment modCount _before_ creating iterator.
2237 * java/util/LinkedList.java: Rewritten, mostly.
2239 2000-11-01 Tom Tromey <tromey@cygnus.com>
2241 * scripts/encodings.pl: Added `ASCII' alias.
2242 * Makefile.in: Rebuilt.
2243 * Makefile.am (convert_source_files): Added new files.
2244 * gnu/gcj/convert/Input_ASCII.java: New file.
2245 * gnu/gcj/convert/Output_ASCII.java: New file.
2246 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2247 out-of-range characters.
2248 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2249 (read): Swap bytes if required. Treat `count' as character count,
2251 (write): Likewise. Also, handle case where iconv fails on a given
2253 (init): Put encoding into exception.
2254 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2255 (static): Call iconv_init. Rebuilt alias list.
2256 (iconv_init): New private method.
2258 2000-11-01 Tom Tromey <tromey@cygnus.com>
2260 * Makefile.in: Rebuilt.
2261 * Makefile.am (install-exec-hook): Only make a single symlink, and
2262 remove the destination before making the link.
2263 * configure: Rebuilt.
2264 * configure.in: Call AC_PROG_LN_S.
2266 2000-10-31 Warren Levy <warrenl@cygnus.com>
2268 * jni.cc: Added include of java/lang/ThreadGroup.h.
2269 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2270 per change of 2000-10-05.
2272 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2274 * java/util/BitSet.java: Updated @specnote.
2276 * java/io/Reader.java: Merge docs from classpath.
2277 (skip): Synchronize on `lock'.
2278 * java/io/FileReader.java: Import correct implementation from
2280 * java/io/StringReader.java: Merge docs from classpath.
2281 (ready): Throw IOException if stream is closed.
2283 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2285 * java/util/AbstractCollection.java (addAll): Use size() instead of
2286 hasNext() in iterator loop.
2288 (contains): Ditto. Simplify loop.
2289 (containsAll): Ditto.
2294 (toString): Ditto. Use string concatenation operators, not
2296 * java/util/AbstractList.java (addAll): Use size() instead of
2297 hasNext() in iterator loop.
2300 (indexOf): Ditto. Don't take null check outside of the loop.
2301 (iterator): Return an AbstractListItr instead of anonymous class.
2302 (lastIndexOf): Use a for loop bounded by size() instead of
2303 hasPrevious() in iterator loop.
2304 (listIterator): Return an AbstractListItr.
2305 (removeRange): Remove bounds checking code and docs.
2306 (AbstractListItr): New inner class. Code moved here from
2308 (SubList.iterator): Removed. Use default implementation from
2309 AbstractList instead.
2310 (SubList.listIterator): As above.
2311 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2312 instead of hasNext() in iterator loop.
2313 (containsValue): Ditto.
2319 (toString): Ditto. Use string concatenation operators, not
2321 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2322 bounded by size() instead of hasNext() in iterator loop.
2323 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2324 part of normal execution flow. Do an explicit null check instead.
2325 * java/util/ArrayList.java (_iSize): Rename to `size'.
2326 (_arData): Rename to `data'.
2327 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2330 (removeRange): Make protected. Don't check bounds.
2331 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2333 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2335 (addAll (int, Collection)): Check lower bounds. Simplify exception
2337 (clone): Clone the data array too.
2338 (indexOf): Inline doesEqual().
2339 (lastIndexOf): Ditto.
2340 (clear): Don't set array data to null.
2341 (set): Check lower bounds. Simplify exception string.
2342 (toArray): Correct comment.
2343 (trimToSize): Don't update modCount, this is not a structural change.
2346 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2348 (toString): Declare `bit' as long, not int.
2349 (data): Made package-private, not private.
2351 2000-10-27 Warren Levy <warrenl@cygnus.com>
2353 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2354 array elements to true.
2356 2000-10-27 Warren Levy <warrenl@cygnus.com>
2358 * Makefile.am: Added locale files from Classpath.
2359 * Makefile.in: Rebuilt.
2360 * gnu/java/locale/Calendar.java: New file.
2361 * gnu/java/locale/Calendar_de.java: New file.
2362 * gnu/java/locale/Calendar_en.java: New file.
2363 * gnu/java/locale/Calendar_nl.java: New file.
2364 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2365 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2366 serialization compatibility.
2367 (scale): Made private.
2368 (serialVersionUID): New field.
2369 * java/math/BigInteger.java (ival): Made transient.
2370 (words): Made transient.
2371 (bitCount): New serialization field.
2373 (firstNonzeroByteNum): Ditto.
2374 (lowestSetBit): Ditto.
2377 (serialVersionUID): New field.
2378 (readObject): New method.
2379 (writeObject): New method.
2380 * java/util/BitSet.java (serialVersionUID): New field.
2381 * java/util/Calendar.java: Replaced with Classpath file.
2382 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2383 of getDefault() for TimeZone or Locale instead of passing nulls.
2384 * java/util/Locale.java (serialVersionUID): New field.
2385 (writeObject): New method.
2386 (readObject): New method.
2387 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2389 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2391 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2392 (core_java_source_files): Put java.lang, java.io, and java.util here.
2393 (ordinary_java_source_files): Order so that core_java_source_files are
2395 (java_source_files): Reorder so that special_java_source_files are
2397 * configure.in: Don't pass -I flag to gcj.
2398 * Makefile.in: Rebuilt.
2399 * configure: Rebuilt.
2401 2000-10-25 Tom Tromey <tromey@cygnus.com>
2403 * Makefile.in: Rebuilt.
2404 * Makefile.am (install-exec-hook): New target.
2406 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2408 * java/util/EventObject.java: Merged from classpath.
2410 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2413 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2415 * java/util/AbstractSet.java (equals): Re-installed original code.
2417 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2419 * Makefile.am: Added rules for libgcjx library.
2420 * Makefile.in: Rebuilt.
2421 * configure.in: Added check for X.
2422 * configure: Rebuilt.
2423 * gnu/awt/LightweightRedirector.java: New file.
2424 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2425 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2426 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2427 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2428 * gnu/awt/j2d/MappedRaster.java: New file.
2429 * gnu/awt/xlib/XCanvasPeer.java: New file.
2430 * gnu/awt/xlib/XEventLoop.java: New file.
2431 * gnu/awt/xlib/XEventQueue.java: New file.
2432 * gnu/awt/xlib/XFontMetrics.java: New file.
2433 * gnu/awt/xlib/XFramePeer.java: New file.
2434 * gnu/awt/xlib/XGraphics.java: New file.
2435 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2436 * gnu/awt/xlib/XPanelPeer.java: New file.
2437 * gnu/awt/xlib/XToolkit.java: New file.
2438 * gnu/gcj/xlib/Clip.java: New file.
2439 * gnu/gcj/xlib/Colormap.java: New file.
2440 * gnu/gcj/xlib/Display.java: New file.
2441 * gnu/gcj/xlib/Drawable.java: New file.
2442 * gnu/gcj/xlib/Font.java: New file.
2443 * gnu/gcj/xlib/GC.java: New file.
2444 * gnu/gcj/xlib/Pixmap.java: New file.
2445 * gnu/gcj/xlib/Screen.java: New file.
2446 * gnu/gcj/xlib/Visual.java: New file.
2447 * gnu/gcj/xlib/WMSizeHints.java: New file.
2448 * gnu/gcj/xlib/Window.java: New file.
2449 * gnu/gcj/xlib/WindowAttributes.java: New file.
2450 * gnu/gcj/xlib/XAnyEvent.java: New file.
2451 * gnu/gcj/xlib/XButtonEvent.java: New file.
2452 * gnu/gcj/xlib/XColor.java: New file.
2453 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2454 * gnu/gcj/xlib/XConnectException.java: New file.
2455 * gnu/gcj/xlib/XEvent.java: New file.
2456 * gnu/gcj/xlib/XException.java: New file.
2457 * gnu/gcj/xlib/XExposeEvent.java: New file.
2458 * gnu/gcj/xlib/XID.java: New file.
2459 * gnu/gcj/xlib/XImage.java: New file.
2460 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2461 * gnu/gcj/xlib/natClip.cc: New file.
2462 * gnu/gcj/xlib/natColormap.cc: New file.
2463 * gnu/gcj/xlib/natDisplay.cc: New file.
2464 * gnu/gcj/xlib/natDrawable.cc: New file.
2465 * gnu/gcj/xlib/natFont.cc: New file.
2466 * gnu/gcj/xlib/natGC.cc: New file.
2467 * gnu/gcj/xlib/natPixmap.cc: New file.
2468 * gnu/gcj/xlib/natScreen.cc: New file.
2469 * gnu/gcj/xlib/natVisual.cc: New file.
2470 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2471 * gnu/gcj/xlib/natWindow.cc: New file.
2472 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2473 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2474 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2475 * gnu/gcj/xlib/natXColor.cc: New file.
2476 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2477 * gnu/gcj/xlib/natXException.cc: New file.
2478 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2479 * gnu/gcj/xlib/natXImage.cc: New file.
2480 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2481 * java/awt/EventDispatchThread.java: Start thead on creation.
2483 2000-10-20 Tom Tromey <tromey@cygnus.com>
2485 From Arno J. Klaassen:
2486 * interpret.cc: Include <stdlib.h> for alloca.
2487 * defineclass.cc: Include <stdlib.h> for alloca.
2489 * Makefile.in: Rebuilt.
2490 * Makefile.am: Include deps.mk.
2491 (GCJCOMPILE): Added -MD, -MT, and -MF.
2492 ($(javao_files)): Don't depend on libgcj.zip.
2493 (all-recursive): New target.
2494 (%.lo:%.cc): Do dependency tracking.
2495 ($(nat_headers)): Don't depend on libgcj.zip.
2496 * configure: Rebuilt.
2497 * configure.in: Make .d files and deps.mk.
2499 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2501 * exception.cc: Don't #include "exception".
2502 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2504 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2505 * Makefile.in: Updated.
2507 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2509 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2510 * java/awt/peer/ComponentPeer.java (disable): Removed.
2513 (minimumSize): Removed.
2514 (preferredSize): Removed.
2517 * java/awt/peer/ListPeer.java (addItem): Removed.
2519 (minimumSize): Removed.
2520 (preferredSize): Removed.
2521 (setMultipleSelections): Removed.
2522 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2523 (remove): Renamed from removeMenu.
2524 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2526 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2527 (remove): Renamed from removeItem.
2528 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2529 (getMinimumSize): Removed.
2530 (getPreferredSize): Removed.
2531 (minimumSize): Removed.
2532 (preferredSize): Removed.
2533 (replaceText): Removed.
2534 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2535 (preferredSize): Removed.
2536 (getMinimumSize): Removed.
2537 (getPreferredSize): Removed.
2538 (setEchoCharacter): Removed.
2540 2000-10-10 Warren Levy <warrenl@cygnus.com>
2542 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2543 * java/sql/Date.java (serialVersionUID): New field.
2544 * java/sql/Time.java (serialVersionUID): New field.
2545 * java/sql/Timestamp.java (serialVersionUID): New field.
2546 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2547 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2548 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2549 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2550 (readObject): New serialization method.
2551 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2552 (serialVersionOnStream): New field.
2553 (readObject): New serialization method.
2554 (getMonetaryDecimalSeparator): New method.
2555 (setMonetaryDecimalSeparator): New method.
2556 * java/text/NumberFormat.java (maxFractionDigits): New field.
2557 (maxIntegerDigits): New field.
2558 (minFractionDigits): New field.
2559 (minIntegerDigits): New field.
2560 (serialVersionOnStream): New field.
2561 (serialVersionUID): New field.
2562 (readObject): New serialization method.
2563 (writeObject): New serialization method.
2564 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2565 (serialVersionOnStream): New field.
2566 (serialVersionUID): New field.
2567 (readObject): New serialization method.
2569 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2571 * configure.in (GCJ): Avoid bogus error message when looking for
2572 (and not finding) gcj in the build tree.
2573 * configure: Rebuilt.
2575 2000-10-09 Tom Tromey <tromey@cygnus.com>
2577 * configure: Rebuilt.
2578 * configure.in: Include sys/types.h when checking for socklen_t.
2579 From Arno J. Klaassen.
2581 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2583 * include/jvm.h: Enable __builtin_expect().
2585 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2586 the main program. Fix for PR libgcj/341.
2588 2000-10-07 Tom Tromey <tromey@cygnus.com>
2590 * java/util/Properties.java: Merged with Classpath version.
2592 2000-10-05 Tom Tromey <tromey@cygnus.com>
2594 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2595 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2596 * java/lang/Class.h (Object): Added `class$' field.
2597 * java/lang/Object.h (Object): Added `class$' field.
2598 * defineclass.cc (ClassClass): Use `class$' form.
2599 (ClassObject): Likewise.
2600 * resolve.cc (ClassObject): Use `class$' form.
2601 (ObjectClass): Likewise.
2602 * interpret.cc (ClassError): Removed.
2603 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2605 (IntegerClass): Likewise.
2606 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2608 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2609 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2610 SerializableClass): Likewise.
2611 Include Serializable.h, Cloneable.h.
2612 * java/lang/natSystem.cc (SystemClass): Removed.
2613 (init_properties): Use `class$' form.
2614 * java/lang/natObject.cc (CloneableClass): Removed.
2615 (clone): Use `class$' form.
2616 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2617 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2618 ConstructorClass): Likewise.
2619 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2620 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2621 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2622 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2624 (ClassClass): Likewise.
2625 * include/jvm.h (StringClass): Use `class$' form.
2626 * prims.cc (ObjectClass): Removed.
2627 (_Jv_RunMain): Use `class$' form.
2628 (_Jv_AllocObject): Likewise.
2629 * jni.cc (ClassClass): Use `class$' form.
2630 (ThrowableClass): Likewise.
2631 (ObjectClass): Likewise.
2632 (MethodClass): Likewise.
2633 (ThreadGroupClass): Likewise.
2634 (NativeThreadClass): Likewise.
2635 * boehm.cc (ObjectClass): Removed.
2636 (ClassClass): Removed.
2637 (_Jv_MarkObj): Use `class$' form.
2638 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2641 2000-10-05 Warren Levy <warrenl@cygnus.com>
2643 * Makefile.am: Removed java/io/Replaceable.java and
2644 java/io/Resolvable.java.
2645 * Makefile.in: Rebuilt.
2646 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2648 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2650 (processResolution): Handle readResolve method via reflection with
2651 removal of Resolvable interface.
2652 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2653 method via reflection with removal of Replaceable interface.
2654 * java/io/Replaceable.java: Removed.
2655 * java/io/Resolvable.java: Removed.
2656 * java/security/Key.java (serialVersionUID): New field.
2657 * java/security/Provider.java (serialVersionUID): New field.
2658 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2660 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2662 * java/sql/DataTruncation.java (serialVersionUID): New field.
2663 * java/sql/SQLException.java (serialVersionUID): New field.
2664 * java/sql/SQLWarning.java (serialVersionUID): New field.
2665 * java/util/Date.java (serialVersionUID): New field.
2666 (millis): Made transient.
2667 (readObject): New method.
2668 (writeObject): New method.
2670 2000-10-05 Tom Tromey <tromey@cygnus.com>
2672 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2674 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2676 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2677 (JvRunMain): Set _Jv_argv and _Jv_argc.
2678 * java/awt/Component.java: Minor fixes.
2679 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2680 * java/awt/Toolkit.java (systemEventQueue): Removed.
2681 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2682 * java/awt/Window.java (getToolkit): Don't call super.
2683 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2684 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2685 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2686 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2687 * gnu/awt/gtk/GtkFramePeer.java: New file.
2688 * gnu/awt/gtk/GtkMainThread.java: New file.
2689 * gnu/awt/gtk/GtkToolkit.java: New file.
2690 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2691 * gnu/awt/gtk/gtkcommon.cc: New file.
2692 * gnu/awt/gtk/gtkcommon.h: New file.
2693 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2694 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2695 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2696 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2697 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2698 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2700 2000-09-30 Tom Tromey <tromey@cygnus.com>
2702 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2703 interrupted before modifying the cv's wait set.
2706 2000-09-30 Hans Boehm <boehm@acm.org>
2707 Bryce McKinlay <bryce@albatross.co.nz>
2709 Implement bitmap descriptor based marking for Boehm GC.
2711 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2712 * configure: Rebuilt.
2713 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2714 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2715 method get_finalizer().
2716 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2717 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2718 (_Jv_AllocObj): Add new jclass parameter.
2719 (_Jv_AllocArray): Ditto.
2720 (_Jv_BuildGCDescr): New prototype.
2721 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2722 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2723 get_finalizer() instead of direct finalizer vtable offset.
2724 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2725 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2726 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2727 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2728 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2729 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2730 (_Jv_DetermineVTableIndex): Ditto.
2731 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2732 calculations to account for new gc_descr field.
2733 * boehm.cc: #include gc_gcj.h.
2734 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2735 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2736 New commentary from HB. Mark the classes vtable.
2737 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2738 (GC_DEFAULT_DESCR): New #define.
2739 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2740 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2741 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2742 scan conservativly if size is less than min_heap_addr. Set vtable
2743 pointer of new object before returning.
2744 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2745 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2746 allocation for obj_kind_x.
2747 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2748 (_Jv_AllocObj): Set vtable on returned object.
2749 (_Jv_AllocArray): Ditto.
2750 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2751 (_Jv_NewPrimArray): Ditto.
2752 (_Jv_AllocObj): Declare as a friend.
2753 (_Jv_AllocArray): Ditto.
2754 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2755 from &ObjectClass into new array class. Remove offset-by-one
2756 adjustments from `method' size calculations to account for gc_descr
2759 2000-09-26 Tom Tromey <tromey@cygnus.com>
2761 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2762 `remove', not `add'.
2764 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2766 * java/lang/natSystem.cc (file_encoding): Added return statement.
2768 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2770 * Makefile.am: Re-work shell commands that exceeded command-line
2772 * Makefile.in: Rebuilt.
2774 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2776 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2777 * java/lang/natDouble.cc: Likewise.
2778 * java/lang/reflect/natMethod.cc: Likewise.
2779 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2781 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2783 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2785 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2786 * acinclude.m4: Arrange for automake to not bring in a new
2787 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2788 * Makefile.am: Leave it up to automake to subst GCJ.
2789 * aclocal.m4, configure, Makefile.in: Rebuilt.
2791 2000-09-13 Tom Tromey <tromey@cygnus.com>
2793 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2794 (get): Ensure Boolean class is initialized.
2795 * java/lang/reflect/natField.cc (BooleanClass): New define.
2796 (get): Ensure Boolean class is initialized.
2798 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2800 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2801 Initialize with anonymous class.
2802 (compareToIgnoreCase): New method.
2804 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2805 (uncaughtException): Set had_uncaught_exception.
2806 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2807 exit with error status if set.
2808 (_Jv_RunMain): Ditto.
2810 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2812 * configure: Rebuilt with new ../libtool.m4.
2814 2000-09-11 Tom Tromey <tromey@cygnus.com>
2816 * java/lang/reflect/Field.java (toString): Don't rely on
2819 2000-09-08 Tom Tromey <tromey@cygnus.com>
2821 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2822 default decoder use iconv.
2823 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2824 Let default encoder use iconv.
2825 * configure: Rebuilt.
2826 * configure.in: Check for nl_langinfo and <langinfo.h>.
2827 * java/lang/natSystem.cc (file_encoding): New function.
2828 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2830 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2832 * acinclude.m4: Simplify the tests for CC and CXX.
2833 * aclocal.m4, configure: Rebuilt.
2835 * acinclude.m4: Include libtool macros from the source tree.
2836 * aclocal.m4, configure: Rebuilt.
2838 2000-09-08 Warren Levy <warrenl@cygnus.com>
2840 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2841 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2842 * java/io/File.java (writeObject): Added.
2843 (readObject): Added.
2844 (serialVersionUID): Added.
2845 * java/io/ObjectOutputStream.java (writeObject): Initialized
2846 fieldsAlreadyWritten before recursion rather than after.
2847 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2848 * java/io/OptionalDataException.java (serialVersionUID): Added.
2849 (OptionalDataException): Made package private.
2850 * java/io/SyncFailedException.java (SyncFailedException): Removed
2851 default constructor to match spec.
2852 * java/lang/Boolean.java (serialVersionUID): Added.
2853 * java/lang/Byte.java (serialVersionUID): Added.
2854 * java/lang/Character.java (serialVersionUID): Added.
2855 * java/lang/Double.java (serialVersionUID): Added.
2856 * java/lang/Float.java (serialVersionUID): Added.
2857 * java/lang/Integer.java (serialVersionUID): Added.
2858 * java/lang/Long.java (serialVersionUID): Added.
2859 * java/lang/Number.java (serialVersionUID): Added.
2860 * java/lang/Short.java (serialVersionUID): Added.
2861 * java/lang/String.java (serialVersionUID): Added.
2862 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2864 * java/lang/reflect/InvocationTargetException.java
2865 (serialVersionUID): Added.
2866 * java/net/URL.java (handler): Made transient.
2867 (hashCode): Added field for serialization, per spec. and use
2868 cached value if available.
2869 (serialVersionUID): Added.
2870 (URL): Initialize hashCode.
2871 (set): Adjust hashCode.
2872 (readObject): New Method to initialize the protocol handler when
2874 (writeObject): New method.
2875 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2876 * java/text/Collator.java: Removed 'implements Serializable'.
2877 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2878 * java/util/Properties.java (serialVersionUID): Added.
2879 * java/util/Random.java (serialVersionUID): Added.
2880 (seed): Made private.
2881 (nextNextGaussian): Made private.
2882 (haveNextNextGaussian): Made private.
2883 * java/util/Stack.java (serialVersionUID): Added.
2884 * java/util/TimeZone.java (serialVersionUID): Added.
2885 * java/util/Vector.java (serialVersionUID): Added.
2887 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2889 * Makefile.am (Thread.h): Don't be friends with native threads
2891 * Makefile.in: Rebuilt.
2892 * java/lang/Thread.java (interrupt_flag): Make package-private.
2894 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2896 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2897 to avoid long long division.
2899 2000-09-06 Tom Tromey <tromey@cygnus.com>
2901 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2903 * java/lang/reflect/Method.java (toString): Use `getName' for
2906 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2907 `args' if method takes no parameters.
2909 Fix for PR java.lang/339:
2910 * java/lang/natPosixProcess.cc (fail): New function.
2911 (cleanup): New function.
2912 (startProcess): Use them. Create pipe so child can communicate
2913 exec failure back to parent.
2915 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2917 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2919 (send): Undo last patch. Remove the label only.
2921 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2923 * java/net/natInetAdress.cc: Ditto.
2925 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2927 2000-09-05 Tom Tromey <tromey@cygnus.com>
2929 * doc/cni.sgml: Updated from master copy.
2931 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2933 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2935 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2937 * java/lang/fdlibm.h: #undef __P if previously defined.
2938 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2939 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2943 2000-09-04 Tom Tromey <tromey@cygnus.com>
2945 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2948 2000-09-04 Anthony Green <green@redhat.com>
2950 Fix for PR java.io/203:
2951 * java/io/File.java (createTempFile): Obey directory argument.
2952 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2953 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2954 variable to set java.io.tmpdir on non-WIN32 systems.
2956 2000-09-04 Anthony Green <green@redhat.com>
2958 * java/io/File.java (deleteOnExit): New method.
2959 * gnu/gcj/runtime/FileDeleter.java: New class.
2960 * java/lang/natRuntime.cc (exit): Call
2961 FileDeleter.deleteOnExitNow()
2962 * Makefile.am: Add FileDeleter.java.
2963 * Makefile.in: Rebuilt.
2965 2000-09-02 Tom Tromey <tromey@cygnus.com>
2967 * Makefile.in: Rebuilt.
2968 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2969 environment variable.
2971 2000-09-01 Andrew Haley <aph@redhat.com>
2973 * java/io/StreamTokenizer.java: Don't throw a
2974 NumberFormatException if a field is numeric as far as the
2975 StreamTokenizer is concerned but not as far as Double.valueOf() is
2976 concerned: return a zero instead.
2978 2000-08-30 Tom Tromey <tromey@cygnus.com>
2980 * Makefile.in: Rebuilt.
2981 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2983 2000-08-28 Tom Tromey <tromey@cygnus.com>
2985 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2986 gnu/gcj/awt/ComponentDataBlitOp.java,
2987 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2988 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2989 java/awt/color/ICC_ColorSpace.java,
2990 java/awt/color/ICC_Profile.java,
2991 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2992 java/awt/image/ComponentColorModel.java,
2993 java/awt/image/ComponentSampleModel.java,
2994 java/awt/image/DataBuffer.java,
2995 java/awt/image/DataBufferByte.java,
2996 java/awt/image/DataBufferInt.java,
2997 java/awt/image/DataBufferUShort.java,
2998 java/awt/image/DirectColorModel.java,
2999 java/awt/image/IndexColorModel.java,
3000 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3001 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3002 java/awt/image/SinglePixelPackedSampleModel.java,
3003 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3004 Removed Latin-1 copyright symbols.
3005 * java/util/zip/ZipFile.java: Indentation fixes.
3007 2000-08-27 Mark Wielaard <mark@klomp.org>
3009 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3010 constructor, close can delete the file, finalize calls close.
3011 * java/util/jar/JarFile.java: Constructor that takes mode now
3014 2000-08-27 Anthony Green <green@redhat.com>
3016 * java/util/ArrayList.java, java/util/Timer.java,
3017 java/util/LinkedList.java, java/util/TimerTask.java,
3018 java/util/HashMap.java, java/util/AbstractMap.java,
3019 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3020 java/util/SortedSet.java: Imported from GNU Classpath.
3021 * Makefile.in: Rebuilt.
3022 * Makefile.am: Added new files.
3024 2000-08-26 Anthony Green <green@redhat.com>
3026 * Makefile.in: Rebuilt.
3027 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3030 * prims.cc: Include ClassLoader.h.
3031 (_Jv_RunMain): When executing jar files, classpath must be the jar
3032 file only. Lose our reference to the system ClassLoader in order
3033 to get a new one with the correct classpath.
3034 * java/lang/natSystem.cc (init_properties): When executing a jar
3035 file, only use the jar file for java.class.path.
3037 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3038 for bytecode archives.
3040 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3041 exists, but not Main-Class.
3043 2000-08-23 Mark Wielaard <mark@klomp.org>
3045 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3046 return -1 when fill() has no more data for the Inflater.
3048 2000-08-23 Mark Wielaard <mark@klomp.org>
3050 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3051 write(String) already does.
3053 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3055 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3056 to `alive_flag', call `init'.
3057 (init): New native method.
3058 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3061 2000-08-21 Mark Wielaard <mark@klomp.org>
3063 * Makefile.in: Rebuilt.
3064 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3066 (java/lang/reflect/Field.h): Likewise.
3067 (java/lang/reflect/Method.h): Likewise.
3068 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3071 2000-08-21 Tom Tromey <tromey@cygnus.com>
3073 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3076 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3078 * java/lang/natSystem.cc (init_properties): Change sourceware
3079 reference to sources.redhat.com.
3081 * include/java-props.h: Add _Jv_Jar_Class_Path.
3082 * prims.cc: Ditto. Set it from `gij -jar file' option.
3084 * java/lang/natSystem.cc (init_properties): Set java.class.path
3086 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3088 * java/util/PropertyPermission.java: Import from GNU Classpath.
3089 * Makefile.in: Rebuilt.
3090 * Makefile.am: Add java/util/PropertyPermission.java.
3091 * java/lang/System.java: Add setProperty method.
3093 * gij.cc (main): Add -jar option to execute jar files.
3094 (help): Describe -jar option.
3095 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3096 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3097 * gnu/gcj/runtime/FirstThread.java (main): New method.
3099 * java/util/jar/Attributes.java: Correct comment spelling.
3101 2000-08-20 Mark Wielaard <mark@klomp.org>
3103 * java/util/zip/Adler32.java: Make private variables really private
3104 * java/util/zip/CRC32.java: Make private variables really private
3105 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3107 * java/util/zip/InflaterInputStream.java: skip() could skip to
3109 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3110 * java/util/zip/ZipFile.java: size() new 1.2 method
3111 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3112 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3115 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3117 * java/util/jar/JarFile.java: Don't call
3118 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3121 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3123 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3124 Read the entire contents of the class file, not just what is
3127 * java/net/JarURLConnection.java: getEntry doesn't take any
3128 arguments. Return null if element is null.
3130 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3131 size from the archive, not the inflated size.
3133 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3134 java.util.zip.ZipFile.getEntry.
3136 * gij.cc (help): Change sourceware reference to
3139 2000-08-19 Tom Tromey <tromey@cygnus.com>
3141 * java/util/zip/ZipInputStream.java (createZipEntry):
3144 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3146 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3147 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3148 java/util/jar/JarInputStream.java,
3149 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3150 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3151 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3152 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3153 java/security/cert/Certificate.java,
3154 java/security/cert/CertificateEncodingException.java,
3155 java/security/cert/CertificateException.java,
3156 java/security/cert/CertificateExpiredException.java,
3157 java/security/cert/CertificateFactory.java,
3158 java/security/cert/CertificateFactorySpi.java,
3159 java/security/cert/CertificateNotYetValidException.java,
3160 java/security/cert/CertificateParsingException.java,
3161 java/security/cert/X509CRL.java,
3162 java/security/cert/X509CRLEntry.java,
3163 java/security/cert/X509Certificate.java,
3164 java/security/cert/X509Extension.java: Imported from Classpath.
3165 * java/util/Hashtable.java: Imported from Classpath.
3167 * java/util/zip/ZipInputStream.java: Create stub for
3170 * gcj/javaprims.h: Updated class list.
3172 * Makefile.in, gcj/Makefile.in: Rebuilt.
3173 * Makefile.am (ordinary_java_source_files): Add these new classes.
3175 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3177 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3178 * gnu/gcj/awt/GLightweightPeer.java: New file.
3179 * java/awt/BorderLayout.java: Implemented all methods.
3180 * java/awt/Button.java (actionListener, actionCommand): Renamed
3181 and modifier change.
3182 (addNotify): Call super.
3183 (dispatchEventImpl): New method.
3184 (getListeners): New method.
3185 (label): Made package-private, not private.
3186 * java/awt/Canvas.java: Implemented class body.
3187 * java/awt/Color.java (brighter): New method.
3188 (darker): New method.
3189 (hashCode): New method.
3190 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3191 (getGraphicsConfiguration): Delegate to
3192 getGraphicsConfigurationImpl().
3193 (getGraphicsConfigurationImpl): New method.
3194 (getToolkit): Only return value from peer if not null.
3195 (isDisplayable): Check with parent.
3196 (isShowing): No parent implies not showing.
3197 (getForeground): Check parent property if local is null.
3198 (getBackground): Likewise.
3199 (getFont): Likewise.
3200 (setForeground): Inform peer.
3201 (setBackground): Likewise
3202 (setLocale): Invalidate component.
3203 (getColorModel): Implemented.
3204 (setLocation): Invalidate, or ignore if no change.
3205 (setSize): Invalidate, or ignore if no change.
3206 (setBounds): Invalidate, or ignore if no change.
3207 (isOpaque): By default, heavyweight implies opaque.
3208 (isLightweight): Implemented.
3209 (getMaximumSize): Implemented.
3210 (doLayout): Implemented, NOP.
3211 (validate): Implemented, NOP.
3212 (invalidate): Only propagate to parent if parent was valid.
3213 (getGraphics): Implemented.
3214 (getFontMetrics): Implemented.
3215 (update): Implemented.
3216 (paintAll): Implemented.
3217 (repaint): Implemented all repaint methods.
3218 (print): Implemented.
3219 (printAll): Implemented.
3220 (createImage): Implemented.
3221 (dispatchEvent): Give the peer a chance to handle the event.
3222 (dispatchEventImpl): Dispatch paint events.
3223 (enableEvents): Lightweights enable events on parent component.
3224 (coalesceEvents): Coalesce paint events, and select event type
3226 (coalescePaintEvents): New method.
3227 (processEvent): Fix unfortunate ordering of statements, and call
3228 correct method for MOUSE_CLICKED.
3229 (processPaintEvent): New method.
3230 (addNotify): Allow container to notify children before event
3231 mask is set in peer.
3232 (addNotifyContainerChildren): New method.
3233 (removeNotify): Visibility should not change on removeNotify.
3234 (paramString): Implemented.
3235 (list): Implemented two of the list methods.
3236 * Container (myInsets): Removed, insets are managed by peer.
3237 (getInsets): Query peer.
3238 (addImpl): Fix reparenting, enable events for lightweights,
3239 initialize component array.
3240 (validate): Call doLayout in validateTree() instead.
3241 (validateTree): Do nothing if already valid. Call beginValidate(),
3242 endValidate() on peer. Call validateTree() instead of validate()
3243 for children that are containers. Mark valid after validation of
3245 (setFont): Partial implementation.
3246 (paint): Implemented.
3247 (visitChildren): New method.
3248 (visitChild): New method.
3249 (update): Implemented.
3250 (print): Implemented.
3251 (paintComponents): Implemented.
3252 (printComponents): Consider translation and clipping.
3253 (getComponentAt): Ignore invisible children. Return this if no
3255 (addNotify): Call super.
3256 (addNotifyContainerChildren): New method.
3257 (paramString): Implemented.
3258 (list): Implemented.
3259 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3261 (invokeLater): Likewise.
3262 (isDispatchThread): Likewise.
3263 * java/awt/FontMetrics (getLeading): Formula change.
3264 (getDescent): Consider leading also.
3265 (getMaxAscent): Default to getAscent().
3266 (getMaxDescent): Default to getDescent.
3267 (getMaxAdvance): Return value signifying unknown.
3268 (charWidth): Both methods implemented.
3269 (charsWidth): Implemented.
3270 (bytesWidth): Implemented.
3271 (getWidths): Implemented.
3272 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3274 (Frame): Rearragend constuctor chaining to disallow null being
3275 passed as a graphics configuration.
3276 (getTitle): Return empty string if null.
3278 (getIconImage): New method.
3279 (setIconImage): New method.
3280 (finalize): New method.
3281 (setMenuBar): Notify peer.
3282 (isResizable): New method.
3283 (setResizable): New method.
3284 (getState): New method.
3286 (remove): Implemented.
3287 (removeNotify): New method.
3288 (getFrames): New method.
3289 * java/awt/Graphics.java: Implemented body of class.
3290 * java/awt/Graphics2D.java: New file.
3291 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3292 * java/awt/Image.java: Implemented body of class.
3293 * java/awt/Panel.java (Panel): Call correct super constructor.
3294 (addNotify): Implemented.
3295 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3296 * java/awt/RenderingHints.java: New file.
3297 * java/awt/Toolkit.java (createComponent): Implemented.
3298 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3299 * java/awt/Window.java (Window): Two new constructors. Reordered
3300 constructor chaining.
3301 (getGraphicsConfigurationImpl): New method.
3302 (finalize): Call super.
3303 (addNotify): Call super.
3304 (pack): Do layout stuff.
3305 (show): Ensure that peer exists and that component is valid.
3306 (dispose): Dispose owned children.
3307 (getOwner): Simplify code, casting null pointers is valid.
3308 (getGraphicsConfiguration): Ask peer if local value is null.
3309 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3311 * java/awt/image/BufferedImage.java: New file.
3312 * java/awt/image/RasterOp.java: New file.
3313 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3314 More powerfull replacement for getColorModel().
3315 (getColorModel) Removed.
3316 (setEventMask) New method.
3317 * Makefile.am: Added new files.
3318 * Makefile.in: Rebuilt.
3320 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3322 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3323 (finit_leg_name): New global.
3324 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3325 `$finit$'. This is a backward compatibility hack.
3326 (java::lang::Class::_getMethods): Likewise.
3328 2000-08-15 Andrew Haley <aph@cygnus.com>
3330 * include/jvm.h (_Jv_HashCode): New hash code.
3332 2000-08-15 Tom Tromey <tromey@cygnus.com>
3334 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3336 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3338 * THANKS: More thanks.
3340 2000-08-10 Tom Tromey <tromey@cygnus.com>
3342 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3344 (connect): Likewise.
3346 (getOption): Likewise.
3347 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3348 case when errno not set.
3351 (receive): Likewise.
3352 (mcastGrp): Likewise.
3353 (setOption): Likewise.
3354 (getOption): Likewise.
3356 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3357 John Stracke <francis@ecal.com>
3359 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3360 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3362 (disconnect): Don't unset connected flag.
3363 (getHeaderField (String)): Call connect() if not connected.
3364 (getHeaderField (int)): Ditto.
3365 (getHeaderFieldKey): Ditto.
3366 (getHttpHeaders): Don't call connect().
3367 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3368 gotResponseVals): New fields.
3369 (getResponseCode): Call getResponseVals() conditionally.
3370 (getResponseMessage): Ditto.
3371 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3373 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3375 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3376 * Makefile.in: Rebuilt.
3377 * java/awt/Color.java (getTransparency): New method.
3378 * java/awt/Component.java: Various updates.
3379 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3380 after dealing with children.
3381 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3382 * java/awt/Window.java: Various new methods and updates.
3383 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3385 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3386 * java/awt/event/WindowEvent.java (paramString): Ditto.
3387 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3389 * java/awt/geom/Point2D.java (clone): Ditto.
3390 * java/awt/geom/RectangularShape.java (clone): Ditto.
3391 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3392 isAlphaPremultiplied): Make package-private, not private.
3394 2000-08-08 Tom Tromey <tromey@cygnus.com>
3396 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3397 surrogate characters.
3398 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3400 (write): Correct handling of surrogate characters.
3402 2000-08-07 Tom Tromey <tromey@cygnus.com>
3404 * java/lang/reflect/Method.java (hashCode): Use getName().
3405 (toString): Likewise.
3406 * java/lang/reflect/natMethod.cc (getType): Initialize
3409 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3411 * java/lang/reflect/Field.java (toString): Correct formatting.
3414 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3416 (receive): Streamlined.
3418 2000-08-05 Tom Tromey <tromey@cygnus.com>
3420 * java/io/PrintWriter.java: Merged comments from Classpath.
3421 (printlnUnsynchronized): Removed.
3422 (println()): Print the separator.
3423 (println): Call println(), not printlnUnsynchronized.
3424 (out): Now protected, to match spec.
3426 2000-08-04 Tom Tromey <tromey@cygnus.com>
3428 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3429 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3432 2000-08-03 Warren Levy <warrenl@cygnus.com>
3434 * java/io/ObjectInputStream.java (readFields): Turn off
3435 readDataFromBlock while reading via GetField.
3436 (GetField$1.get(String, Object)): Pass Class of default value to
3438 (getField): Allow for null default values.
3440 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3441 (PutField$1.put): Fixed calls of checkType in most of the put
3442 methods to pass the correct parameter.
3443 (PutField$1.put(String, Object)): Allow for null value arg.
3444 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3447 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3448 typo in spec'ed field name.
3449 (getSerialPersistentFields): Changed spelling of method to match
3450 the correct spelling of the spec'ed field name.
3452 2000-08-03 Tom Tromey <tromey@cygnus.com>
3454 * Makefile.in: Rebuilt.
3455 * Makefile.am (awt_java_source_files): Added new files.
3457 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3459 * Makefile.am: Add new AWT stubs.
3460 * java/awt/Canvas.java: New placeholder class.
3461 * java/awt/Checkbox.java: Ditto.
3462 * java/awt/CheckboxMenuItem.java: Ditto.
3463 * java/awt/Choice.java: Ditto.
3464 * java/awt/Dialog.java: Ditto.
3465 * java/awt/FileDialog.java: Ditto.
3466 * java/awt/List.java: Ditto.
3467 * java/awt/ScrollPane.java: Ditto.
3468 * java/awt/TextField.java: Ditto.
3469 * java/awt/datatransfer/Clipboard.java: Ditto.
3470 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3471 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3472 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3473 Some commented out. Partially implemented.
3474 * java/awt/natToolkit.cc: Removed file.
3476 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3478 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3479 Fixes "make -j" builds.
3480 * Makefile.in: Rebuild.
3482 2000-08-02 Tom Tromey <tromey@cygnus.com>
3484 * Makefile.in: Rebuilt.
3485 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3486 * java/net/natPlainSocketImpl.cc: Include posix.h.
3487 (accept): Use _Jv_select.
3488 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3489 (receive): Use _Jv_select.
3490 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3491 (available): Use _Jv_select.
3492 * java/lang/natSystem.cc: Include posix.h.
3493 (currentTimeMillis): Use _Jv_gettimeofday.
3494 * include/posix.h: New file.
3495 * posix.cc: New file.
3497 * scripts/encodings.pl: New file.
3498 * Makefile.in: Rebuilt.
3499 * Makefile.am (convert_source_files): Added IOConverter.java.
3500 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3502 (getDefaultDecodingClass): Canonicalize default encoding name.
3503 (getEncoder): Likewise.
3504 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3506 (getDefaultDecodingClass): Canonicalize default encoding name.
3507 (getDecoder): Likewise.
3508 * gnu/gcj/convert/IOConverter.java: New file.
3510 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3512 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3513 to match C declaration in ffi.h.
3514 * Makefile.am: Add java/awt/Button.java.
3515 * Makefile.in: Rebuilt.
3517 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3519 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3520 cast of the second argument to `ffi_raw_call' changed to match
3523 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3525 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3526 argument to `ffi_raw_call' changed to match prototype.
3528 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3530 * java/awt/Component.java (toString): Implemented.
3531 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3532 dispatchEvent() to dispatch the event.
3533 (removeImpl): Ditto.
3535 2000-07-30 Anthony Green <green@redhat.com>
3537 * java/awt/Component.java: Add treeLock object.
3538 (getTreeLock): Implement.
3539 (isShowing): Implement.
3541 2000-07-30 Tom Tromey <tromey@cygnus.com>
3543 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3545 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3547 * java/awt/Window.java (addNotify): Wrote.
3548 (addWindowListener): Wrote.
3550 (getWarningString): Wrote.
3551 (processEvent): Wrote.
3552 (processWindowEvent): Wrote.
3553 (removeWindowListener): Wrote.
3554 (show): Call validate(), setVisible().
3558 * java/awt/Toolkit.java (createWindow): Declare.
3560 * java/awt/Frame.java (addNotify): Use getToolkit to find
3563 * java/awt/Component.java (invalidate): Wrote.
3565 (getToolkit): Wrote.
3567 * java/awt/Container.java (addContainerListener): Removed
3569 (removeContainerListener): Likewise.
3571 (add(Component)): Use it.
3572 (add(String,Component)): Likewise.
3573 (add(Component,int)): Likewise.
3574 (add(Component,Object)): Likewise.
3575 (add(Component,Object,int)): Likewise.
3577 (getAlignmentX): Wrote.
3578 (getAlignmentY): Wrote.
3579 (getComponentAt): Wrote.
3580 (getMaximumSize): Wrote.
3581 (invalidate): Wrote.
3582 (list(PrintStream,int)): Wrote.
3583 (list(PrintWriter,int)): Wrote.
3584 (getMinimumSize): Wrote.
3585 (getPreferredSize): Wrote.
3586 (printComponents): Wrote.
3587 (processContainerEvent): Look at containerListener, not
3589 (remove): Added event processing and peer destruction.
3590 (removeAll): Use remove.
3591 (removeNotify): Wrote.
3593 (validateTree): Wrote.
3595 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3596 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3597 * java/awt/Container.java (addNotify): Don't create Container
3599 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3601 2000-07-30 Tom Tromey <tromey@cygnus.com>
3603 * java/awt/Container.java (remove(int)): Wrote.
3604 (remove(Component)): Wrote.
3605 (add(Component)): Wrote.
3606 (add(Component,int)): Wrote.
3608 (addNotify): Set our own peer.
3609 * java/awt/Scrollbar.java (listeners): Changed type.
3610 (Scrollbar): Don't initialize listeners.
3612 (setValue): Call setValues.
3613 (setMinimum): Likewise.
3614 (setMaxPriority): Likewise.
3615 (setVisibleAmount): Likewise.
3617 (setUnitIncrement): Forward to peer.
3618 (setLineIncrement): Call setUnitIncrement.
3619 (setPageIncrement): Call setBlockIncrement.
3620 (setBlockIncrement): Forward to peer.
3621 (addAdjustmentListener): Rewrote.
3622 (removeAdjustmentListener): Rewrote.
3623 (processAdjustmentEvent): Rewrote.
3624 (paramString): Wrote.
3625 * Makefile.in: Rebuilt.
3626 * Makefile.am (awt_java_source_files): Added Button.java.
3627 * java/awt/Button.java: New file.
3628 * java/awt/Toolkit.java (createLabel): Declare.
3629 (createButton): Likewise.
3630 (createScrollbar): Likewise.
3631 (createContainer): Likewise.
3632 * java/awt/Label.java (addNotify): Wrote.
3633 (setAlignment): Call setAlignment in the peer.
3634 (setText): Call setText in the peer.
3636 2000-07-28 Warren Levy <warrenl@cygnus.com>
3638 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3639 NotSerializableException with just the class name.
3641 2000-07-26 Andrew Haley <aph@cygnus.com>
3643 * interpret.cc (continue1): Insert missing break into switch.
3645 2000-07-28 Warren Levy <warrenl@cygnus.com>
3647 * java/io/ObjectStreamException.java: Made constructors protected.
3649 2000-07-27 Tom Tromey <tromey@cygnus.com>
3651 * java/io/OutputStreamWriter.java (close): Only flush if not
3654 2000-07-27 Warren Levy <warrenl@cygnus.com>
3656 * mauve-libgcj: Activated serialization tests.
3657 * gcj/field.h (getModifiers): Mask off unknown flags.
3658 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3659 spurious bits don't cause discrepancies.
3660 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3661 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3662 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3663 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3664 * java/lang/Throwable.java (serialVersionUID): New field.
3665 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3666 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3668 * java/lang/reflect/natMethod.cc: Ditto.
3669 * java/security/Key.java (serialVersionUID): Removed field for now.
3670 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3671 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3673 2000-07-22 Tom Tromey <tromey@cygnus.com>
3675 * java/awt/geom/RectangularShape.java (getPathIterator):
3678 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3680 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3681 stub libjava/java/awt/ColorModel.java which was located in the
3683 * libjava/java/awt/image/ComponentColorModel.java: New file.
3684 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3685 * libjava/java/awt/image/DataBuffer.java: New file.
3686 * libjava/java/awt/image/DataBufferByte.java: New file.
3687 * libjava/java/awt/image/DataBufferInt.java: New file.
3688 * libjava/java/awt/image/DataBufferUShort.java: New file.
3689 * libjava/java/awt/image/DirectColorModel.java: New file.
3690 * libjava/java/awt/image/PackedColorModel.java: New file.
3691 * libjava/java/awt/image/Raster.java: New file.
3692 * libjava/java/awt/image/SampleModel.java: New file.
3693 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3695 * libjava/java/awt/image/IndexColorModel.java: New file.
3696 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3697 java.awt.ColorModel stub.
3699 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3700 * gnu/gcj/util/Buffers.java: New file, utility class.
3702 * libjava/Makefile.am: Updated to include new files.
3703 * libjava/Makefile.in: Rebuilt.
3705 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3707 * java/io/StreamTokenizer.java: Merged with classpath.
3709 2000-07-20 Tom Tromey <tromey@cygnus.com>
3711 * Makefile.in: Rebuilt.
3712 * Makefile.am (awt_java_source_files): Updated for new files.
3713 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3714 * java/awt/Label.java: New file.
3715 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3716 (createIntersection, createUnion, getBounds2D): New methods.
3717 * java/awt/Scrollbar.java: New file.
3718 * java/awt/Shape.java: Updated to 1.2.
3719 * java/awt/geom/AffineTransform.java: New file.
3720 * java/awt/geom/Ellipse2D.java: New file.
3721 * java/awt/geom/NoninvertibleTransformException.java: New file.
3722 * java/awt/geom/PathIterator.java: New file.
3723 * java/awt/geom/Rectangle2D.java: New file.
3724 * java/awt/geom/RectangularShape.java: New file.
3725 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3726 * java/awt/geom/IllegalPathStateException.java: New file.
3728 * scripts/showval.java: New file.
3730 * scripts/classes.pl (scan): Print inner classes properly.
3731 * gcj/javaprims.h: Updated class list.
3733 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3734 initialize String fields for interpreted classes. Fixes bug
3735 reported by Hans Boehm.
3737 * java/io/File.java (getParentFile): New method, from Classpath
3738 via Oskar Liljeblad.
3740 * java/util/Vector.java (remove(Object)): Implemented.
3742 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3744 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3745 zero return from backtrace().
3747 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3749 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3751 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3752 before calling notifyAll().
3754 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3756 Add missing files from last check-in:
3757 * java/awt/image/ImageConsumer.java: New file.
3758 * java/awt/image/ImageProducer.java: New file.
3759 * java/awt/image/ImageObserver.java: New file.
3761 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3763 Merged implementation of java.applet from classpath:
3764 * java/applet/Applet.java: New file.
3765 * java/applet/AppletContext.java: New file.
3766 * java/applet/AppletStub.java: New file.
3767 * java/applet/AudioClip.java: New file.
3769 * Makefile.am: Added new java.applet classes.
3770 * Makefile.in: Rebuilt.
3772 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3775 * java/util/ResourceBundle.java (getLocale): stub.
3776 * Makefile.am: Added new AWT classes.
3777 * Makefile.in: Rebuilt.
3778 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3779 constructors. Fix toString() and paramString().
3780 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3781 * java/awt/CheckboxGroup.java: New class.
3782 * java/awt/ColorModel.java: New class.
3783 * java/awt/Component.java: Added stubs for most methods. Implemented
3785 * java/awt/Container.java: ditto.
3786 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3787 * java/awt/Cursor.java: ditto.
3788 * java/awt/Event.java: Fix paramString().
3789 * java/awt/EventQueue.java: New class. Implemented.
3790 * java/awt/Font.java: Added additional stub methods. Implemented
3792 * java/awt/FontMetrics.java: New class. Stubbed.
3793 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3795 * java/awt/Insets.java: New class. Implemented.
3796 * java/awt/Menu.java: Add new methods. Partially implemented.
3797 * java/awt/MenuItem.java: Add new methods and fields. Partially
3799 * java/awt/MenuShortcut.java: New class. Implemented.
3800 * java/awt/Panel.java: New class. Placeholder.
3801 * java/awt/PopupMenu.java: New class. Stubbed.
3802 * java/awt/Rectangle.java: New class. Implemented.
3803 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3804 * java/awt/event/ActionEvent.java: Implement paramString().
3805 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3806 * java/awt/event/ComponentEvent.java: Implement paramString().
3807 * java/awt/event/ContainerEvent.java: Implement paramString().
3808 * java/awt/event/FocusEvent.java: Implement paramString().
3809 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3810 * java/awt/event/HierarchyBoundsListener.java: New class.
3811 * java/awt/event/HierarchyEvent.java: New class.
3812 * java/awt/event/HierarchyListener.java: New class.
3813 * java/awt/event/InputMethodEvent.java: Implement paramString().
3814 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3815 exception if !catchExceptions.
3816 * java/awt/event/ItemEvent.java: Implement paramString().
3817 * java/awt/event/KeyEvent.java: Implement paramString().
3818 * java/awt/event/MouseEvent.java: Implement paramString().
3819 * java/awt/event/PaintEvent.java: Implement paramString().
3820 * java/awt/event/TextEvent.java: Implement paramString().
3821 * java/awt/event/WindowEvent.java: Implement paramString().
3823 AWT Peer interfaces:
3824 * java/awt/peer/ButtonPeer.java: New file.
3825 * java/awt/peer/ListPeer.java: New file.
3826 * java/awt/peer/CanvasPeer.java: New file.
3827 * java/awt/peer/MenuBarPeer.java: New file.
3828 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3829 * java/awt/peer/MenuComponentPeer.java: New file.
3830 * java/awt/peer/CheckboxPeer.java: New file.
3831 * java/awt/peer/MenuItemPeer.java: New file.
3832 * java/awt/peer/ChoicePeer.java: New file.
3833 * java/awt/peer/MenuPeer.java: New file.
3834 * java/awt/peer/ComponentPeer.java: Implemented.
3835 * java/awt/peer/PanelPeer.java: New file.
3836 * java/awt/peer/ContainerPeer.java: Implemented.
3837 * java/awt/peer/PopupMenuPeer.java: New file.
3838 * java/awt/peer/DialogPeer.java: New file.
3839 * java/awt/peer/ScrollPanePeer.java: New file.
3840 * java/awt/peer/FileDialogPeer.java: New file.
3841 * java/awt/peer/ScrollbarPeer.java: New file.
3842 * java/awt/peer/FontPeer.java: New file.
3843 * java/awt/peer/TextAreaPeer.java: New file.
3844 * java/awt/peer/FramePeer.java: Implemented.
3845 * java/awt/peer/TextComponentPeer.java: New file.
3846 * java/awt/peer/LabelPeer.java: New file.
3847 * java/awt/peer/TextFieldPeer.java: New file.
3848 * java/awt/peer/LightweightPeer.java: New file.
3849 * java/awt/peer/WindowPeer.java: Implemented.
3851 2000-07-06 Tom Tromey <tromey@cygnus.com>
3853 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3854 Initialize static final String fields.
3856 2000-07-03 Tom Tromey <tromey@cygnus.com>
3858 * java/io/PrintWriter.java (print): Call write(String), not
3859 print(String). See PR libgcj/277.
3860 (print(String)): Use write, not out.write.
3862 2000-06-30 Tom Tromey <tromey@cygnus.com>
3864 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3866 2000-06-27 Andrew Haley <aph@cygnus.com>
3868 * java/io/File.java (createTempFile): Close the FileDescriptor
3869 used to create a temp file. Fixes some of PR 203.
3870 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3871 collection if we run out of file handles.
3873 2000-06-28 Warren Levy <warrenl@cygnus.com>
3875 * gnu/java/security/provider/Gnu.java: New file.
3876 * gnu/java/security/provider/SHA.java: New file.
3877 * gnu/java/security/provider/SHA1PRNG.java: New file.
3878 * Makefile.am: Added the above files.
3879 * Makefile.in: Rebuilt.
3881 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3883 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3885 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3886 (destroyed_flag): Removed.
3887 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3888 (activeCount): Added spec note.
3890 2000-06-27 Warren Levy <warrenl@cygnus.com>
3892 * java/security/Principal.java: New file.
3893 * Makefile.am: Added Principal.java.
3894 * Makefile.in: Rebuilt.
3896 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3898 * java/awt/event/MouseEvent.java: Fixed coordinate space
3901 2000-06-27 Tom Tromey <tromey@cygnus.com>
3903 * java/io/PushbackInputStream.java (read): If there are characters
3904 in the buffer, don't also call super.read().
3905 * java/io/PushbackReader.java (read): If there are characters in
3906 the buffer, don't also call super.read().
3908 * java/lang/Double.java (valueOf): Call parseDouble().
3910 2000-06-26 Warren Levy <warrenl@cygnus.com>
3912 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3913 (newVal): Renamed to newValue.
3914 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3915 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3916 (revokeNow): Renamed to invalidateRefs.
3917 * java/io/OptionalDataException.java: Updated FIXME.
3918 (eof): New placeholder field.
3920 * java/io/WriteAbortedException.java (message): Made transient.
3921 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3922 * java/lang/Throwable.java (stackTrace): Made transient.
3923 * java/net/InetAddress.java: Made Serializable.
3924 * java/security/KeyPair.java: Made Serializable.
3925 * java/security/Provider.java: Replaced with Classpath version that
3926 implements serialization and proper methods.
3927 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3928 (limits): Renamed to choiceLimits.
3930 2000-06-24 Tom Tromey <tromey@cygnus.com>
3932 * java/lang/natDouble.cc (parseDouble): Renamed from
3934 * java/lang/Double.java (parseDouble): Renamed from
3935 doubleValueOf. Now public.
3937 2000-06-23 Andrew Haley <aph@cygnus.com>
3939 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3940 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3942 2000-06-23 Tom Tromey <tromey@cygnus.com>
3944 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3945 * java/lang/natDouble.cc: Always include <alloca.h>.
3946 Fix for PR libgcj/267.
3948 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3950 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3951 comply with classpath VM spec.
3952 (add(Group)): Rename to addGroup().
3953 * java/lang/Thread.java (Thread): Use addThread().
3954 * java/lang/natThread.cc (finish_): Use removeThread().
3956 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3958 * java/lang/ThreadGroup.java: Merged with classpath.
3959 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3960 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3962 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3963 ThreadGroup.root if Thread.currentThread is null. Honour the
3964 ThreadGroup's max priority setting.
3966 2000-06-18 Tom Tromey <tromey@cygnus.com>
3968 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3969 returned class. For PR gcj/260.
3971 2000-06-16 Tom Tromey <tromey@cygnus.com>
3973 Fix for PR libgcj/261:
3974 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3976 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3977 argument. (This is a patch from long ago that somehow went
3980 2000-06-15 Tom Tromey <tromey@cygnus.com>
3982 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3986 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3988 Fix for PR java.lang/258:
3989 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3990 JV_STATE_DONE, to prevent accidental initialization.
3991 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3992 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3993 interface or an abstract class. Remove redundant initializeClass calls.
3994 Remove duplicate if_idt test.
3995 (_Jv_InterfaceAssignableFrom): New function.
3996 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3998 2000-05-31 Tom Tromey <tromey@cygnus.com>
4000 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4001 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4002 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4003 (NUM_OBJECT_METHODS): New define.
4004 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4005 `array_vtable' parameter. Added assertion.
4006 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4009 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4011 * gcj/cni.h: Include <string.h>.
4012 * defineclass.cc: Include <alloca.h>.
4013 * interpret.cc: Ditto.
4014 * gij.cc: Include <stdlib.h>.
4016 2000-05-30 Tom Tromey <tromey@cygnus.com>
4018 * include/name-finder.h: Include <sys/wait.h>.
4019 (_Jv_name_finder::pid): Now of type `pid_t'.
4020 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4021 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4024 2000-05-24 Warren Levy <warrenl@cygnus.com>
4026 * java/io/ObjectOutputStream.java (writeObject): Use component type
4027 when writing arrays.
4030 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4032 Fix for PR libgcj/226:
4033 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4034 since this is an installed header.
4036 Fix for PR libgcj/228:
4037 * java/util/zip/ZipFile (getInputStream): Create inflater with
4040 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4041 with DataFormatException.
4043 2000-05-20 Tom Tromey <tromey@cygnus.com>
4045 * Makefile.in: Rebuilt.
4046 * Makefile.am (hack1): Removed.
4047 (awto_files): Likewise.
4048 (libgcjawt_la_SOURCES): Likewise.
4049 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4050 (libgcjawt_la_DEPENDENCIES): Likewise.
4051 (libgcjawt_la_LIBADD): Likewise.
4052 (libgcjawt_la_LDFLAGS): Likewise.
4053 (libgcjawt_la_LINK): Likewise.
4054 ($(awt_java_source_files:.java=.class)): Likewise.
4055 (libgcj.zip): Don't depend on AWT files.
4056 (MOSTLYCLEANFILES): Don't include AWT files.
4057 ($(awto_files)): Removed.
4058 (nat_headers): Removed AWT files.
4059 (cond_awt_java_source_files): Removed.
4060 (ordinary_java_source_files): Added awt_java_source_files.
4061 * libgcj.spec.in (*lib): Removed -lgcjawt.
4062 * configure: Rebuilt.
4063 * configure.in: Removed --enable-java-awt option.
4065 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4067 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4068 (ZipEntry): Copy the `name' field.
4069 (clone): Implement JDK1.2 method.
4070 (setCompressedSize): ditto.
4073 2000-05-19 Tom Tromey <tromey@cygnus.com>
4075 * java/io/BufferedWriter.java: Merged with Classpath.
4076 * java/io/BufferedOutputStream.java: Merged with Classpath.
4078 2000-05-16 Andrew Haley <aph@cygnus.com>
4080 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4081 build_ia64_frame_state.
4082 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4085 2000-05-15 Warren Levy <warrenl@cygnus.com>
4087 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4088 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4089 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4090 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4091 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4092 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4093 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4094 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4095 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4096 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4097 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4098 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4099 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4100 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4101 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4102 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4103 * gnu/gcj/io/NullOutputStream.java: Removed.
4104 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4105 * gnu/gcj/lang/ArrayHelper.java: Removed.
4106 * gnu/gcj/lang/ClassHelper.java: Removed.
4107 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4109 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4110 * gnu/java/beans/EmptyBeanInfo.java: New file.
4111 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4112 * gnu/java/beans/IntrospectionIncubator.java: New file.
4113 * gnu/java/beans/editors/ColorEditor.java: New file.
4114 * gnu/java/beans/editors/FontEditor.java: New file.
4115 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4116 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4117 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4118 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4119 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4120 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4121 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4122 * gnu/java/beans/editors/StringEditor.java: New file.
4123 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4124 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4125 * gnu/java/io/NullOutputStream.java: New file.
4126 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4127 * gnu/java/lang/ArrayHelper.java: New file.
4128 * gnu/java/lang/ClassHelper.java: New file.
4129 * gnu/java/lang/reflect/TypeSignature.java: New file.
4131 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4132 namespace back to the original Classpath gnu/java namespace.
4133 * Makefile.in: Rebuilt.
4135 * java/beans/Beans.java: Namespace change.
4136 * java/beans/EventSetDescriptor.java: Namespace change.
4137 * java/beans/Introspector.java: Namespace change.
4138 * java/beans/PropertyEditorManager.java: Namespace change.
4139 * java/io/ObjectInputStream.java: Namespace change.
4140 * java/io/ObjectOutputStream.java: Namespace change.
4141 * java/io/ObjectStreamClass.java: Namespace change.
4142 * java/io/ObjectStreamField.java: Namespace change.
4144 2000-04-21 Warren Levy <warrenl@cygnus.com>
4146 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4147 now that compiler patch is available.
4148 Removed unneeded System.loadLibrary.
4149 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4150 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4152 2000-04-19 Andrew Haley <aph@cygnus.com>
4154 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4155 and target classes have been initialized.
4157 2000-04-19 Andrew Haley <aph@cygnus.com>
4159 * java/lang/String.java: implement Serializable, Comparable.
4160 (compareTo (Object)): New method.
4162 2000-04-19 Warren Levy <warrenl@cygnus.com>
4164 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4165 instead of getField to retrieve non-public field.
4166 (getSerialPersistantFields): Ditto.
4168 2000-04-18 Warren Levy <warrenl@cygnus.com>
4170 * mauve-libgcj: Turned off object serialization tests temporarily
4171 due to compiler error.
4173 2000-04-17 Warren Levy <warrenl@cygnus.com>
4175 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4176 to avoid build problem.
4178 * mauve-libgcj: Turned on object serialization tests.
4180 2000-04-17 Tom Tromey <tromey@cygnus.com>
4182 * libgcj.spec.in (*lib): Added -lgcjawt.
4184 2000-04-17 Andrew Haley <aph@cygnus.com>
4186 * Makefile.am: Add new files:
4187 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4189 * Makefile.in: Rebuilt.
4191 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4192 interface that has no implementations.
4193 Check for an attempt to assign an abstract class to an interface.
4195 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4196 if we fail to find MessageDigest.getInstance ("SHA").
4198 * gnu/gcj/io/SimpleSHSStream.java: New file.
4199 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4200 * gnu/gcj/io/shs.cc: New file.
4201 * gnu/gcj/io/shs.h: new file.
4203 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4206 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4207 punctuation from the classname of an array element.
4209 * gcj/javaprims.h: Add SimpleDigestStream.
4211 2000-04-17 Andrew Haley <aph@cygnus.com>
4213 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4214 to getPrivateField for superclasses.
4216 2000-04-14 Andrew Haley <aph@cygnus.com>
4218 * Makefile.am: Add new files:
4219 java/io/ObjectOutputStream$PutField.h,
4220 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4221 java/io/natObjectOutputStream.cc
4222 * Makefile.in: Rebuilt.
4223 * gcj/Makefile.in: Rebuilt.
4224 * include/Makefile.in: Rebuilt.
4225 * java/lang/Class.h (getPrivateField): New method.
4226 (getPrivateMethod): Ditto.
4227 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4228 and java::io::ObjectStreamClass our friends.
4229 * java/lang/natClass.cc (getPrivateField): New method.
4230 (getPrivateMethod): Ditto.
4231 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4232 * gcj/javaprims.h: Add serialization classes.
4233 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4234 (setByteField): Ditto.
4235 (setCharField): Ditto.
4236 (setDoubleField): Ditto.
4237 (setFloatField): Ditto.
4238 (setIntField): Ditto.
4239 (setLongField): Ditto.
4240 (setShortField): Ditto.
4241 (setObjectField): Ditto.
4242 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4244 (getByteField): Ditto.
4245 (getCharField): Ditto.
4246 (getDoubleField): Ditto.
4247 (getFloatField): Ditto.
4248 (getIntField): Ditto.
4249 (getLongField): Ditto.
4250 (getShortField): Ditto.
4251 (getObjectField): Ditto.
4252 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4254 (getSerialPersistantFields): Ditto.
4255 (getDefinedSUID): Ditto.
4256 * java/io/natObjectOutputStream.cc: New file.
4257 * java/io/natObjectInputStream.cc: New file.
4259 2000-04-13 Warren Levy <warrenl@cygnus.com>
4261 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4262 problems. Revert to previous version to reproduce and when fixed.
4264 2000-04-13 Warren Levy <warrenl@cygnus.com>
4266 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4267 * gnu/gcj/io/NullOutputStream.java: New file.
4268 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4269 * java/io/BlockDataException.java: New file.
4270 * java/io/Externalizable.java: New file.
4271 * java/io/InvalidClassException.java: New file.
4272 * java/io/InvalidObjectException.java: New file.
4273 * java/io/NotActiveException.java: New file.
4274 * java/io/NotSerializableException.java: New file.
4275 * java/io/ObjectInput.java: New file.
4276 * java/io/ObjectInputStream.java: New file.
4277 * java/io/ObjectInputValidation.java: New file.
4278 * java/io/ObjectOutput.java: New file.
4279 * java/io/ObjectOutputStream.java: New file.
4280 * java/io/ObjectStreamClass.java: New file.
4281 * java/io/ObjectStreamConstants.java: New file.
4282 * java/io/ObjectStreamField.java: New file.
4283 * java/io/Replaceable.java: New file.
4284 * java/io/Resolvable.java: New file.
4285 * java/io/SerializablePermission.java: New file.
4286 * java/io/WriteAbortedException.java: New file.
4287 * java/security/BasicPermission.java: New file.
4288 * java/security/DigestOutputStream.java: New file.
4289 * java/security/Guard.java: New file.
4290 * java/security/Permission.java: New file.
4291 * java/security/PermissionCollection.java: New file.
4292 * Makefile.am: Added above files.
4293 * Makefile.in: Rebuilt.
4295 * java/beans/Beans.java (instantiate): Activated serialization code.
4296 * java/lang/SecurityManager.java (checkPermission): New method.
4298 2000-04-12 Warren Levy <warrenl@cygnus.com>
4300 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4301 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4302 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4303 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4304 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4305 * gnu/gcj/beans/editors/FontEditor.java: New file.
4306 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4307 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4308 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4309 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4310 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4311 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4312 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4313 * gnu/gcj/beans/editors/StringEditor.java: New file.
4314 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4315 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4316 * gnu/gcj/lang/ArrayHelper.java: New file.
4317 * gnu/gcj/lang/ClassHelper.java: New file.
4318 * java/beans/BeanDescriptor.java: New file.
4319 * java/beans/BeanInfo.java: New file.
4320 * java/beans/Beans.java: New file.
4321 * java/beans/Customizer.java: New file.
4322 * java/beans/DesignMode.java: New file.
4323 * java/beans/EventSetDescriptor.java: New file.
4324 * java/beans/FeatureDescriptor.java: New file.
4325 * java/beans/IndexedPropertyDescriptor.java: New file.
4326 * java/beans/IntrospectionException.java: New file.
4327 * java/beans/Introspector.java: New file.
4328 * java/beans/MethodDescriptor.java: New file.
4329 * java/beans/ParameterDescriptor.java: New file.
4330 * java/beans/PropertyChangeEvent.java: New file.
4331 * java/beans/PropertyChangeListener.java: New file.
4332 * java/beans/PropertyChangeSupport.java: New file.
4333 * java/beans/PropertyDescriptor.java: New file.
4334 * java/beans/PropertyEditor.java: New file.
4335 * java/beans/PropertyEditorManager.java: New file.
4336 * java/beans/PropertyEditorSupport.java: New file.
4337 * java/beans/PropertyVetoException.java: New file.
4338 * java/beans/SimpleBeanInfo.java: New file.
4339 * java/beans/VetoableChangeListener.java: New file.
4340 * java/beans/VetoableChangeSupport.java: New file.
4341 * java/beans/Visibility.java: New file.
4342 * java/beans/beancontext/BeanContext.java: New file.
4343 * java/beans/beancontext/BeanContextChild.java: New file.
4344 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4345 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4346 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4347 * java/beans/beancontext/BeanContextEvent.java: New file.
4348 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4349 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4350 * java/beans/beancontext/BeanContextProxy.java: New file.
4351 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4353 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4354 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4356 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4357 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4359 * java/beans/beancontext/BeanContextServices.java: New file.
4360 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4361 * java/util/AbstractCollection.java: New file.
4362 * java/util/AbstractList.java: New file.
4363 * java/util/Arrays.java: New file.
4364 * Makefile.am: Added above files.
4365 * Makefile.in: Rebuilt.
4367 2000-04-11 Warren Levy <warrenl@cygnus.com>
4369 * java/awt/AWTError.java: New file.
4370 * java/awt/AWTEvent.java: New file.
4371 * java/awt/AWTException.java: New file.
4372 * java/awt/ActiveEvent.java: New file.
4373 * java/awt/Adjustable.java: New file.
4374 * java/awt/BorderLayout.java: New file.
4375 * java/awt/Color.java: New file.
4376 * java/awt/Component.java: New file.
4377 * java/awt/Container.java: New file.
4378 * java/awt/Dimension.java: New file.
4379 * java/awt/Event.java: New file.
4380 * java/awt/Font.java: New file.
4381 * java/awt/Frame.java: New file.
4382 * java/awt/Graphics.java: New file.
4383 * java/awt/IllegalComponentStateException.java: New file.
4384 * java/awt/Image.java: New file.
4385 * java/awt/ItemSelectable.java: New file.
4386 * java/awt/LayoutManager.java: New file.
4387 * java/awt/LayoutManager2.java: New file.
4388 * java/awt/Menu.java: New file.
4389 * java/awt/MenuBar.java: New file.
4390 * java/awt/MenuComponent.java: New file.
4391 * java/awt/MenuContainer.java: New file.
4392 * java/awt/MenuItem.java: New file.
4393 * java/awt/Paint.java: New file.
4394 * java/awt/PaintContext.java: New file.
4395 * java/awt/Point.java: New file.
4396 * java/awt/Rectangle.java: New file.
4397 * java/awt/Shape.java: New file.
4398 * java/awt/TextArea.java: New file.
4399 * java/awt/TextComponent.java: New file.
4400 * java/awt/Toolkit.java: New file.
4401 * java/awt/Transparency.java: New file.
4402 * java/awt/Window.java: New file.
4403 * java/awt/natToolkit.cc: New file.
4404 * java/awt/event/AWTEventListener.java: New file.
4405 * java/awt/event/ActionEvent.java: New file.
4406 * java/awt/event/ActionListener.java: New file.
4407 * java/awt/event/AdjustmentEvent.java: New file.
4408 * java/awt/event/AdjustmentListener.java: New file.
4409 * java/awt/event/ComponentAdapter.java: New file.
4410 * java/awt/event/ComponentEvent.java: New file.
4411 * java/awt/event/ComponentListener.java: New file.
4412 * java/awt/event/ContainerAdapter.java: New file.
4413 * java/awt/event/ContainerEvent.java: New file.
4414 * java/awt/event/ContainerListener.java: New file.
4415 * java/awt/event/FocusAdapter.java: New file.
4416 * java/awt/event/FocusEvent.java: New file.
4417 * java/awt/event/FocusListener.java: New file.
4418 * java/awt/event/InputEvent.java: New file.
4419 * java/awt/event/InputMethodEvent.java: New file.
4420 * java/awt/event/InputMethodListener.java: New file.
4421 * java/awt/event/InvocationEvent.java: New file.
4422 * java/awt/event/ItemEvent.java: New file.
4423 * java/awt/event/ItemListener.java: New file.
4424 * java/awt/event/KeyAdapter.java: New file.
4425 * java/awt/event/KeyEvent.java: New file.
4426 * java/awt/event/KeyListener.java: New file.
4427 * java/awt/event/MouseAdapter.java: New file.
4428 * java/awt/event/MouseEvent.java: New file.
4429 * java/awt/event/MouseListener.java: New file.
4430 * java/awt/event/MouseMotionAdapter.java: New file.
4431 * java/awt/event/MouseMotionListener.java: New file.
4432 * java/awt/event/PaintEvent.java: New file.
4433 * java/awt/event/TextEvent.java: New file.
4434 * java/awt/event/TextListener.java: New file.
4435 * java/awt/event/WindowAdapter.java: New file.
4436 * java/awt/event/WindowEvent.java: New file.
4437 * java/awt/event/WindowListener.java: New file.
4438 * java/awt/geom/Dimension2D.java: New file.
4439 * java/awt/geom/Point2D.java: New file.
4440 * java/awt/peer/ComponentPeer.java: New file.
4441 * java/awt/peer/ContainerPeer.java: New file.
4442 * java/awt/peer/FramePeer.java: New file.
4443 * java/awt/peer/WindowPeer.java: New file.
4444 * java/util/Collection.java: New file.
4445 * java/util/Comparator.java: New file.
4446 * java/util/Iterator.java: New file.
4447 * java/util/List.java: New file.
4448 * java/util/ListIterator.java: New file.
4449 * Makefile.am: Added above files.
4450 * Makefile.in: Rebuilt.
4452 2000-04-10 Warren Levy <warrenl@cygnus.com>
4454 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4455 * java/lang/FirstThread.java: Ditto.
4456 * java/lang/StringBuffer.java: Ditto.
4457 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4459 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4460 Special case handled in java.math.BigInteger.
4461 * java/math/BigInteger.java (divide): Handle the special case when
4462 dividing by 1 and the high bit of the dividend is set.
4463 (setShiftRight): Handle case when count == 0.
4465 2000-04-05 Andrew Haley <aph@cygnus.com>
4467 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4470 2000-04-05 Andrew Haley <aph@cygnus.com>
4472 * sysdep/ia64.c (rse_address_add): Delete.
4473 (IS_NaT_COLLECTION_ADDR): Delete.
4474 (ia64_backtrace_helper): check for null unwind_info.
4476 * sysdep/ia64-frame.h: add calc_caller_bsp.
4478 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4481 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4482 (_Jv_remI): Likewise.
4483 (_Jv_divJ): Likewise.
4484 (_Jv_remJ): Likewise.
4486 * interpret.cc (continue1): Use divide subroutines to guarantee
4487 correct Java standard behaviour.
4488 Floating-point division should not abort; make it so.
4490 2000-03-29 Tom Tromey <tromey@cygnus.com>
4492 * configure: Rebuilt.
4493 * configure.in: Test against `libgcj_sjlj', not
4494 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4495 to be set even when using sjlj.
4497 2000-03-24 Andrew Haley <aph@cygnus.com>
4499 * Makefile.am: Add file addr2name.awk.
4500 * Makefile.in: Rebuilt.
4501 * addr2name.awk: New file.
4502 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4504 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4507 2000-03-22 Andrew Haley <aph@cygnus.com>
4509 * configure.host: Add -funwind-tables for IA64.
4510 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4511 * Makefile.in: Rebuilt.
4512 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4513 * sysdep/ia64.c: New file.
4514 * sysdep/ia64-frame.h: New file.
4515 * configure.in: Add sysdep/ia64.c for ia64.
4516 * configure: Rebuilt.
4518 2000-03-17 Andrew Haley <aph@cygnus.com>
4520 * java/lang/natString.cc: Remove `register' keyword.
4521 interpret.cc: ditto.
4523 2000-03-16 Andrew Haley <aph@cygnus.com>
4525 * configure.host (ia64): Enable interpreter.
4527 2000-03-14 Hans Boehm <boehm@acm.org>
4529 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4531 2000-03-14 Andrew Haley <aph@cygnus.com>
4533 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4536 2000-03-10 Andrew Haley <aph@cygnus.com>
4538 * java/lang/ieeefp.h: Import latest version from fdlibm.
4540 2000-03-14 Andrew Haley <aph@cygnus.com>
4542 * prims.cc (_Jv_ThrowSignal): New function.
4543 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4545 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4546 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4547 * include/ppc-signal.h: New file.
4549 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4551 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4552 * java/lang/natThread.java (initialize_native): Cast `data' to
4554 * gnu/gcj/RawData.java: Clarify documentation.
4556 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4557 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4558 `jarFile', not `jarFileURL'.
4560 2000-05-15 Andrew Haley <aph@cygnus.com>
4562 * include/ppc-signal.h: New file.
4564 2000-05-11 Tom Tromey <tromey@cygnus.com>
4566 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4567 file headers, don't include `size' in the skip call.
4569 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4571 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4572 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4574 (replace): Reimplemented. Fix javadoc.
4575 (reverse): Call ensureCapacity_unsynchronized().
4576 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4578 (replace): Calculate length for arraycopy() correctly.
4580 2000-05-09 Tom Tromey <tromey@cygnus.com>
4582 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4584 (insert(int,char[],int,int): New method.
4585 (delete): New method from Classpath.
4586 (deleteCharAt): Likewise.
4587 (substring): Likewise.
4588 (shared): No longer private.
4589 Added JavaDoc comments from Classpath.
4590 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4593 2000-05-07 Tom Tromey <tromey@cygnus.com>
4595 * Makefile.in: Rebuilt.
4596 * Makefile.am (LIBLINK): New macro.
4597 (libgcj_la_LINK): Use it.
4598 (libgcjawt_la_LINK): Likewise.
4600 2000-05-06 Tom Tromey <tromey@cygnus.com>
4602 * Makefile.in: Rebuilt.
4603 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4605 2000-05-05 Tom Tromey <tromey@cygnus.com>
4607 Fix for PR libgcj/220:
4608 * Makefile.in: Rebuilt.
4609 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4610 (jv_convert_LDFLAGS): Likewise.
4611 (libgcj_la_LDFLAGS): Likewise.
4612 (GCJLINK): New macro.
4613 (jv_convert_LINK): Use it.
4614 (gij_LINK): Likewise.
4615 (libgcj_la_LINK): New macro.
4616 (libgcjawt_la_LINK): Likewise.
4618 2000-05-04 Tom Tromey <tromey@cygnus.com>
4620 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4622 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4626 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4628 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4629 (_Jv_IsAssignableFrom): Ditto.
4630 (_Jv_IsInstanceOf): Ditto.
4631 (_Jv_CheckCast): Ditto.
4632 (_Jv_CheckArrayStore): Ditto.
4633 * java/lang/Class.h (_Jv_InitClass): Ditto.
4634 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4639 (_Jv_MonitorExit): Ditto.
4640 * boehm.cc (_Jv_MarkObj): Ditto.
4641 (_Jv_MarkObj): Ditto.
4642 (_Jv_MarkArray): Ditto.
4643 * prims.cc (_Jv_AllocObject): Ditto.
4644 (_Jv_NewObjectArray): Ditto.
4645 (_Jv_NewPrimArray): Ditto.
4646 (_Jv_Malloc): Ditto.
4647 (_Jv_Realloc): Ditto.
4648 (_Jv_MallocUnchecked): Ditto.
4654 2000-05-04 Tom Tromey <tromey@cygnus.com>
4656 * java/util/Locale.java (Locale): Don't explicitly check for
4658 * java/util/Hashtable.java (containsKey): Don't explicitly check
4661 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4663 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4665 * java/text/StringCharacterIterator.java
4666 (StringCharacterIterator): Don't check for null.
4667 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4669 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4670 check for null pointer.
4671 (leaveGroup): Likewise.
4672 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4674 (setData): Likewise.
4675 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4678 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4680 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4681 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4682 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4683 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4684 -rpath for in-gcc builds.
4685 * Makefile.in: Rebuilt.
4687 2000-04-28 Tom Tromey <tromey@cygnus.com>
4689 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4692 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4694 * libjava/java/lang/String.java (toString): Remove `final' hack.
4696 2000-04-05 Tom Tromey <tromey@cygnus.com>
4698 Runtime support for PR gcj/2:
4699 * prims.cc (_Jv_ThrowNullPointerException): New function.
4700 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4702 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4704 * prims.cc (_Jv_NewObjectArray): Fix typo.
4706 2000-04-26 Tom Tromey <tromey@cygnus.com>
4708 * Makefile.in: Rebuilt.
4709 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4711 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4713 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4716 2000-04-22 Anthony Green <green@cygnus.com>
4718 * include/jvm.h (__builtin_expect): Define as unused for now.
4719 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4723 (_Jv_MonitorExit): Ditto.
4724 * boehm.cc (_Jv_MarkObj): Ditto.
4725 (_Jv_MarkObj): Ditto.
4726 (_Jv_MarkArray): Ditto.
4727 (_Jv_AllocBytes): Ditto.
4728 * prims.cc (_Jv_AllocObject): Ditto.
4729 (_Jv_NewObjectArray): Ditto.
4730 (_Jv_NewPrimArray): Ditto.
4731 (_Jv_Malloc): Ditto.
4732 (_Jv_Realloc): Ditto.
4733 (_Jv_MallocUnchecked): Ditto.
4739 * include/Makefile.in: Rebuilt.
4740 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4742 2000-04-21 Tom Tromey <tromey@cygnus.com>
4744 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4745 Yet another new version from Classpath.
4747 Fix for PR libgcj/15:
4748 * java/util/natGregorianCalendar.cc (_REENTRANT,
4749 _POSIX_PTHREAD_SEMANTICS): Don't define.
4750 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4751 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4753 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4755 * configure: Rebuilt.
4756 * configure.in: If using POSIX threads, define _REENTRANT if
4757 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4758 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4760 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4761 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4762 version from Classpath.
4764 Fix for PR libgcj/213:
4765 * Makefile.in: Rebuilt.
4766 * Makefile.am (gij_SOURCES): Added gij.cc.
4767 (EXTRA_gij_SOURCES): Removed.
4768 (gij_LDADD): Removed gij.lo.
4769 (gij_DEPENDENCIES): Likewise.
4770 ($(gij_OBJECTS)): Depend on nat_headers.
4772 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4773 `setURL', not `url.set'.
4775 2000-04-20 Tom Tromey <tromey@cygnus.com>
4777 Fix for PR java.io/204:
4778 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4779 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4782 Fix for PR libgcj/212:
4783 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4784 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4785 * java/lang/Class.h (_Jv_word): Declare.
4787 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4789 2000-04-19 Tom Tromey <tromey@cygnus.com>
4791 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4792 doesn't have a loader.
4794 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4796 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4797 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4799 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4801 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4803 (available): Initialize `where' to prevent bogus compiler warning.
4805 2000-04-12 Tom Tromey <tromey@cygnus.com>
4807 * java/lang/natString.cc (intern): Temporarily disable finalizer
4810 * java/lang/natString.cc (unintern): Added `obj' argument.
4811 (intern): Register finalizer for string.
4812 * java/lang/String.java (unintern): Now static; added obj
4815 2000-04-11 Tom Tromey <tromey@cygnus.com>
4817 * java/util/Vector.java (VectorEnumeration): Now `final'.
4818 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4819 (HashtableEnumeration): Likewise.
4820 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4821 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4823 2000-04-10 Warren Levy <warrenl@cygnus.com>
4825 * java/io/ObjectStreamException.java: New file.
4826 * java/io/OptionalDataException.java: New file.
4827 * java/io/StreamCorruptedException.java: New file.
4828 * java/math/BigDecimal.java: New file.
4829 * java/sql/CallableStatement.java: New file.
4830 * java/sql/Connection.java: New file.
4831 * java/sql/DataTruncation.java: New file.
4832 * java/sql/DatabaseMetaData.java: New file.
4833 * java/sql/Date.java: New file.
4834 * java/sql/Driver.java: New file.
4835 * java/sql/DriverManager.java: New file.
4836 * java/sql/DriverPropertyInfo.java: New file.
4837 * java/sql/PreparedStatement.java: New file.
4838 * java/sql/ResultSet.java: New file.
4839 * java/sql/ResultSetMetaData.java: New file.
4840 * java/sql/SQLException.java: New file.
4841 * java/sql/SQLWarning.java: New file.
4842 * java/sql/Statement.java: New file.
4843 * java/sql/Time.java: New file.
4844 * java/sql/Timestamp.java: New file.
4845 * java/sql/Types.java: New file.
4846 * Makefile.am: Added above new files.
4847 * Makefile.in: Rebuilt.
4849 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4850 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4851 DatagramSocket constructor instead of null.
4853 2000-04-08 Anthony Green <green@cygnus.com>
4855 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4858 2000-04-08 Anthony Green <green@cygnus.com>
4860 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4861 (_Jv_MutexUnlock): Ditto.
4862 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4863 (_Jv_MutexUnlock): Ditto.
4865 2000-04-08 Anthony Green <green@cygnus.com>
4867 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4868 (ensureCapacity_unsynchronized): New private method.
4869 (append): Use ensureCapacity_unsynchronized.
4871 2000-04-08 Tom Tromey <tromey@cygnus.com>
4873 * Makefile.in: Rebuilt.
4874 * Makefile.am (awt_java_source_files): Added new files.
4875 * java/awt/IllegalComponentStateException.java: New file.
4876 * java/awt/ItemSelectable.java: New file.
4877 * java/awt/event/WindowEvent.java: Finished.
4878 * java/awt/event/TextEvent.java: Finished.
4879 * java/awt/event/ContainerEvent.java: New file.
4880 * java/awt/Component.java (getX, getY): New methods.
4881 * java/awt/event/PaintEvent.java: New file.
4882 * java/awt/event/MouseEvent.java: New file.
4883 * java/awt/ActiveEvent.java: New file.
4884 * java/awt/event/KeyEvent.java: Finished.
4885 * java/awt/event/ItemEvent.java: New file.
4886 * java/awt/Adjustable.java: New file.
4887 * java/awt/event/InputMethodEvent.java: New file.
4888 * java/awt/event/InputEvent.java: Finished.
4889 * java/awt/event/FocusEvent.java: New file.
4890 * java/awt/event/MouseMotionAdapter.java: New file.
4891 * java/awt/event/MouseAdapter.java: New file.
4892 * java/awt/event/KeyAdapter.java: New file.
4893 * java/awt/event/FocusAdapter.java: New file.
4894 * java/awt/event/ContainerAdapter.java: New file.
4895 * java/awt/event/ComponentEvent.java: Finished.
4896 * java/awt/event/AdjustmentEvent.java: New file.
4897 * java/awt/event/ComponentAdapter.java: New file.
4898 * java/awt/event/ActionEvent.java: Finished.
4899 * java/awt/event/MouseMotionListener.java: New file.
4900 * java/awt/event/MouseListener.java: New file.
4901 * java/awt/event/ItemListener.java: New file.
4902 * java/awt/event/InputMethodListener.java: New file.
4903 * java/awt/event/ContainerListener.java: New file.
4904 * java/awt/event/FocusListener.java: New file.
4905 * java/awt/event/ComponentListener.java: New file.
4906 * java/awt/event/AWTEventListener.java: New file.
4907 * java/awt/event/AdjustmentListener.java: New file.
4909 2000-04-08 Anthony Green <green@cygnus.com>
4911 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4912 check when we have to.
4914 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4917 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4920 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4921 inline hasMoreElements.
4923 2000-04-05 Tom Tromey <tromey@cygnus.com>
4925 * configure: Rebuilt.
4926 * configure.in: Recognize --enable-java-awt.
4927 (AWT): New conditional.
4928 * Makefile.in: Rebuilt.
4929 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4931 (libgcjawt_la_SOURCES): New macro.
4932 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4933 (libgcjawt_la_DEPENDENCIES): Likewise.
4934 (libgcjawt_la_LIBADD): Likewise.
4935 (libgcjawt_la_LDFLAGS): Likewise.
4936 (libgcj.zip): Depend on cond_java_awt_source_files
4937 (cond_awt_java_source_files): New macro.
4938 (MOSTLYCLEANFILES): Added awto_files.
4939 (awto_files): New macro. Use where javao_files used.
4940 (nat_headers): Use cond_awt_java_source_files.
4942 2000-04-04 Tom Tromey <tromey@cygnus.com>
4944 * Makefile.in: Rebuilt.
4945 * Makefile.am (awt_java_source_files): Added AWTException.java.
4946 * java/awt/AWTException.java: New file.
4948 2000-04-03 Tom Tromey <tromey@cygnus.com>
4950 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4951 commentary from Alex.
4953 * Makefile.in: Rebuilt.
4954 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4957 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4959 * configure: Rebuilt.
4960 * configure.in: Add --disable-jvmpi.
4961 * include/config.h.in: Rebuilt.
4962 * acconfig.h: Add ENABLE_JVMPI.
4964 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4965 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4966 (_Jv_JVMPI_Notify_THREAD_END): New define.
4967 (_Jv_JVMPI_Notify_THREAD_END): New define.
4968 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4969 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4970 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4972 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4975 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4976 (finish_): Generate JVMPI thread end events.
4977 (run_): Generate JVMPI thread start events.
4978 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4979 preloaded JNI library.
4980 Include JVMPI headers if necessary.
4981 (run): Generate JVMPI thread start events.
4983 * boehm.cc: Define GC_disable and GC_enable.
4984 (_Jv_DisableGC): New function.
4985 (_Jv_EnableGC): New function.
4986 (disable_gc_mutex): Declare.
4987 * nogc.cc (_Jv_DisableGC): New function.
4988 (_Jv_EnableGC): New function.
4990 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4991 (_Jv_JVMPI_Interface): Define.
4992 (jvmpiEnableEvent): New function.
4993 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4995 * include/jvmpi.h: New file.
4997 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4999 * Makefile.in: New #defines and friends for Thread.h.
5000 * Makefile.am: Ditto.
5001 * posix-threads.cc: (struct starter): Remove `object'.
5002 (_Jv_CondWait): Use interruptable condition variables and new
5003 recursive mutexes. New return codes on interrupt or non-ownership
5005 (_Jv_CondNotify): Ditto.
5006 (_Jv_CondNotifyAll): Ditto.
5007 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5008 the target thread by signaling its wait condition.
5009 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5010 not the starter struct. Initialize wait_mutex and wait_cond.
5011 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5013 (_Jv_MutexUnlock): Ditto.
5014 (really_start): Set info->data->thread from pthread_self() to work
5015 around a race condition. Destroy wait_mutex and wait_cond when run()
5017 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5018 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5020 startable_flag: New private field.
5021 (Thread): Initialize `startable_flag'.
5022 (toString): Check for null thread group.
5023 * java/lang/natThread.cc: (struct natThread): New fields
5024 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5025 (class locker): Removed.
5026 (initialize_native): Initialize `join_cond' and `join_mutex'.
5027 (interrupt): Now just calls _Jv_ThreadInterrupt().
5028 (join): Simplified. Just wait on the target thread's join condition.
5029 (finish_): Remove join list code. Unset thread group. Signal
5030 potential joiners by notifying the dying threads join_cond.
5031 (start): Check for illegal restarts.
5032 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5034 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5035 #defines and #ifdefs.
5036 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5037 `wait_mutex', `next'.
5038 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5039 directly mapping to pthread_cond_t.
5040 (struct _Jv_Mutex_t): New recursive implementation.
5041 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5042 _Jv_HaveCondDestroy: Never define this for posix-threads.
5043 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5044 (_Jv_CondNotifyAll): Ditto.
5045 (_Jv_MutexLock): Ditto.
5046 (_Jv_MutexUnlock): Ditto.
5047 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5048 (_Jv_MutexDestroy): Ditto.
5049 (_Jv_CondDestroy): Removed.
5050 (_Jv_PthreadGetMutex): Removed.
5051 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5052 error. Add a FIXME about this.
5053 (_Jv_CondNotifyAll): Ditto.
5054 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5055 _JV_NOT_OWNER on other errors. Add FIXME.
5057 2000-03-26 Tom Tromey <tromey@cygnus.com>
5059 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5061 (call): Don't throw exception here.
5063 2000-03-26 Tom Tromey <tromey@cygnus.com>
5065 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5066 * interpret.cc: Use SIZEOF_VOID_P.
5067 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5068 (_Jv_loadLong): Likewise.
5069 (_Jv_storeDouble): Likewise.
5070 * configure: Rebuilt.
5071 * configure.in: Check size of void*.
5073 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5075 2000-03-26 Hans Boehm <boehm@acm.org>
5077 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5078 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5080 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5081 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5082 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5083 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5085 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5086 (FFI_RAW_SIZE): Likewise.
5087 (_Jv_InterpMethod::ncode): Use them.
5088 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5089 STORED): Define differently on a 64 bit machine.
5090 (continue1): Use ffi_java_raw_call when appropriate.
5092 2000-03-24 Warren Levy <warrenl@cygnus.com>
5094 * java/math/BigInteger.java(divide): Handle the special case when
5095 dividing by 1 and the high bit of the dividend is set.
5096 (setShiftRight): Handle case when count == 0.
5098 2000-03-24 Warren Levy <warrenl@cygnus.com>
5100 * java/awt/Font.java(isBold): Fix syntax error.
5102 * java/awt/Frame.java(postEvent): ditto.
5103 * java/awt/Menu.java(postEvent): ditto.
5104 * java/awt/MenuBar.java(postEvent): ditto.
5105 * java/awt/Toolkit.java(init): Included a stub.
5107 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5109 * java/awt/Event.java: Add all the event type constants.
5110 (Event): Implemented constructors.
5111 (controlDown): Implemented.
5112 (metaDown): Implemented.
5113 (paramString): Stubbed.
5114 (shiftDown): Implemented.
5115 (toString): Implemented.
5116 (translate): Implemented.
5118 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5120 * java/lang/natClass.cc (isInstance): Initialize `this'.
5121 (isAssignableFrom): Initialize `this' and `klass'.
5122 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5123 implemented by any loaded class, so return false.
5124 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5125 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5127 2000-03-19 Warren Levy <warrenl@cygnus.com>
5129 * java/awt/Color.java: Specified java.io for Serializable.
5130 * java/awt/Toolkit.java: Imported java.net.URL.
5132 2000-03-19 Warren Levy <warrenl@cygnus.com>
5134 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5136 2000-03-16 Warren Levy <warrenl@cygnus.com>
5138 * java/awt/Color.java: New file.
5139 * java/awt/Graphics.java: New file.
5140 * java/awt/Image.java: New file.
5141 * java/awt/Paint.java: New file.
5142 * java/awt/PaintContext.java: New file.
5143 * java/awt/Transparency.java: New file.
5144 * java/util/Collection.java: New file.
5145 * java/util/Comparator.java: New file.
5146 * java/util/Iterator.java: New file.
5147 * java/util/List.java: New file.
5148 * java/util/ListIterator.java: New file.
5149 * Makefile.am: Added above new files.
5150 * Makefile.in: Rebuilt.
5152 * java/awt/Font.java (PLAIN): New field.
5154 (ITALIC): New field.
5155 (ROMAN_BASELINE): New field.
5156 (CENTER_BASELINE): New field.
5157 (HANGING_BASELINE): New field.
5161 (pointSize): New field.
5162 (Font): Implemented constructor.
5163 (isPlain): Implemented method.
5164 (isBold): Implemented method.
5165 (isItalic): Implemented method.
5166 (getName): Implemented method.
5167 (getStyle): Implemented method.
5168 (getSize): Implemented method.
5169 (getSize2D): Implemented method.
5171 * java/awt/Frame.java (getFont): Stubbed.
5172 (postEvent): Stubbed.
5174 * java/awt/Menu.java (postEvent): Stubbed.
5175 * java/awt/MenuBar.java (getFont): Stubbed.
5176 (postEvent): Stubbed.
5177 * java/awt/Toolkit.java (getImage): Added abstract method.
5179 2000-03-15 Tom Tromey <tromey@cygnus.com>
5181 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5183 * prims.cc (win32_exception_handler): Reformatted.
5185 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5186 (_Jv_HaveMutexDestroy): Likewise.
5188 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5190 * java/io/natFileDescriptorWin32.cc: New file.
5191 * java/io/natFileWin32.cc: New file.
5192 * java/net/natInetAddress.cc: Added conditional inclusion of
5193 Windows / Winsock headers.
5194 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5195 inclusion of Windows / Winsock headers.
5196 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5197 Windows / Winsock headers.
5198 * include/win32-signal.h: New file.
5199 * include/win32-threads.h: New file.
5200 * win32-threads.cc: New file.
5201 * exception.cc (win32_get_restart_frame): New function.
5202 * prims.cc (win32_exception_handler): New function.
5203 (main_init) Performs Winsock initialisation.
5204 (main_init) Installs exeception handler.
5206 2000-03-14 Tom Tromey <tromey@cygnus.com>
5208 * jni.cc (mangled_name): Fixed assertion.
5209 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5210 turned assert into actual failure.
5212 2000-03-09 Warren Levy <warrenl@cygnus.com>
5214 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5215 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5216 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5218 2000-03-09 Warren Levy <warrenl@cygnus.com>
5220 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5221 * java/security/DigestException.java: New file.
5222 * java/security/GeneralSecurityException.java: New file.
5223 * java/security/InvalidAlgorithmParameterException.java: New file.
5224 * java/security/InvalidKeyException.java: New file.
5225 * java/security/InvalidParameterException.java: New file.
5226 * java/security/Key.java: New file.
5227 * java/security/KeyException.java: New file.
5228 * java/security/KeyPair.java: New file.
5229 * java/security/KeyPairGenerator.java: New file.
5230 * java/security/KeyPairGeneratorSpi.java: New file.
5231 * java/security/NoSuchProviderException.java: New file.
5232 * java/security/PrivateKey.java: New file.
5233 * java/security/Provider.java: New file.
5234 * java/security/PublicKey.java: New file.
5235 * java/security/SecureRandom.java: New file.
5236 * java/security/Security.java: New file.
5237 * java/security/Signature.java: New file.
5238 * java/security/SignatureException.java: New file.
5239 * java/security/interfaces/DSAKey.java: New file.
5240 * java/security/interfaces/DSAParams.java: New file.
5241 * java/security/interfaces/DSAPrivateKey.java: New file.
5242 * java/security/interfaces/DSAPublicKey.java: New file.
5243 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5244 * java/security/interfaces/RSAPrivateKey.java: New file.
5245 * java/security/interfaces/RSAPublicKey.java: New file.
5246 * java/security/spec/AlgorithmParameterSpec.java: New file.
5247 * java/security/spec/InvalidKeySpecException.java: New file.
5248 * java/security/spec/InvalidParameterSpecException.java: New file.
5249 * java/security/spec/KeySpec.java: New file.
5250 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5251 * java/security/spec/RSAPrivateKeySpec.java: New file.
5252 * java/security/spec/RSAPublicKeySpec.java: New file.
5253 * Makefile.am: Added above java.security files.
5254 * Makefile.in: Rebuilt.
5256 * java/security/MessageDigest.java: Rewritten.
5257 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5259 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5263 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5265 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5266 _Jv_PrepareConstantTimeTables.
5267 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5268 classes should have an IDT, so don't return if klass is an array
5271 2000-03-08 Tom Tromey <tromey@cygnus.com>
5273 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5274 of `void' to be created.
5276 2000-03-08 Warren Levy <warrenl@cygnus.com>
5278 * java/math/BigInteger.java(signum): Handle zero properly.
5280 2000-03-07 Tom Tromey <tromey@cygnus.com>
5282 * All files: Updated copyright information.
5283 * COPYING: New file.
5284 * COPYING.LIB: Removed.
5285 * LIBGCJ_LICENSE: We now use GPL + special exception.
5287 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5289 * resolve.cc (_Jv_SearchMethodInClass): New function.
5290 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5291 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5293 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5295 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5296 (struct _Jv_ifaces): New declaration.
5297 JV_CLASS: New macro definition.
5298 (getComponentType): Relocate below isArray() for inlining.
5299 (getModifiers): Declare `inline'.
5300 (getSuperclass): Ditto.
5302 (isPrimitive): Ditto.
5303 (_Jv_IsAssignableFrom): New prototype.
5304 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5306 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5307 Check for JV_STATE_DONE before invoking initializeClass().
5308 (_Jv_PrepareConstantTimeTables): New prototype.
5309 (_Jv_GetInterfaces): Ditto.
5310 (_Jv_GenerateITable): Ditto.
5311 (_Jv_GetMethodString): Ditto.
5312 (_Jv_AppendPartialITable): Ditto.
5313 (_Jv_FindIIndex): Ditto.
5314 depth, ancestors, idt: New class fields.
5316 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5317 inline function `_Jv_IsAssignableFrom'. Use that function.
5318 (isInstance): Declare `inline'.
5319 (initializeClass): Get lock on class before checking `state'. Unlock
5320 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5322 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5323 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5324 class->depth and ancestor table.
5325 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5326 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5327 _Jv_IsAssignableFrom.
5328 (_Jv_CheckArrayStore): Ditto.
5329 (_Jv_LookupInterfaceMethodIdx): New function.
5330 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5331 (_Jv_PrepareConstantTimeTables): New function.
5332 (_Jv_IndexOf): Ditto.
5333 (_Jv_GetInterfaces): Ditto.
5334 (_Jv_GenerateITable): Ditto.
5335 (_Jv_GetMethodString): Ditto.
5336 (_Jv_AppendPartialITable): Ditto.
5337 iindex_mutex, iindex_mutex_initialized: New static fields.
5338 (_Jv_FindIIndex): New function.
5340 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5342 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5343 (_Jv_CheckArrayStore): Ditto.
5344 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5345 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5346 Moved to gcj/array.h.
5347 (_Jv_Realloc): New function.
5349 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5351 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5352 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5353 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5354 JvNewDoubleArray): Implementations moved from prims.cc and
5357 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5359 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5361 2000-03-06 Tom Tromey <tromey@cygnus.com>
5363 * jni.cc (MARK_NONE): New define.
5364 (MARK_USER): Likewise.
5365 (MARK_SYSTEM): Likewise.
5366 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5368 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5369 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5370 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5371 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5373 (call): Use MARK_SYSTEM.
5374 (_Jv_GetJNIEnvNewFrame): New function.
5375 (_Jv_LookupJNIMethod): New function.
5376 (_Jv_JNI_PopSystemFrame): New function.
5377 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5379 2000-03-05 Tom Tromey <tromey@cygnus.com>
5381 Fix for PR libgcj/43:
5382 * include/Makefile.in: Rebuilt.
5383 * include/Makefile.am (include_HEADERS): New define.
5385 2000-03-05 Anthony Green <green@redhat.com>
5387 * gcj/javaprims.h ("Java"): Remove FirstThread.
5389 * configure.host: Fix __NO_MATH_INLNES botch.
5391 * Makefile.in: Rebuilt.
5392 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5393 (gnu/gcj/runtime/FirstThread.h): Moved.
5394 (ordinary_java_source_files): Move FirstThread.java.
5395 * prims.cc: Deal with FirstThread movement.
5397 (_Jv_RunMain): Ditto.
5399 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5400 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5402 2000-03-05 Warren Levy <warrenl@cygnus.com>
5404 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5405 Handle null addresses.
5407 2000-03-04 Anthony Green <green@redhat.com>
5409 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5412 2000-03-04 Anthony Green <green@redhat.com>
5414 * configure: Rebuilt.
5415 * configure.in (ZLIBTESTSPEC): New macro.
5416 (GCTESTSPEC): New macro.
5417 (LIBGCJTESTSPEC): New macro.
5418 * libgcj-test.spec.in: New file.
5420 2000-03-02 Tom Tromey <tromey@cygnus.com>
5422 * include/java-interp.h: Don't include MethodInvocation.h.
5423 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5424 * Makefile.in: Rebuilt.
5425 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5426 (ordinary_java_source_files): Don't mention
5427 MethodInvocation.java.
5428 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5429 * interpret.cc (MethodInvocation::continue1): Removed.
5430 (run): Handle exceptions here.
5431 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5433 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5435 (defineClass2): Removed.
5437 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5439 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5441 (hack_call): Removed.
5443 * java/lang/Class.h (Class): Removed hackRunInitializers,
5445 * java/lang/natClass.cc (hackRunInitializers): Removed.
5446 (initializeClass): Catch exceptions here.
5447 Include ExceptionInInitializerError.h.
5448 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5451 * java/lang/Object.h (Object): Don't mention hack12_6.
5452 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5454 * java/lang/Object.java (hack12_6): Removed.
5456 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5457 (start): Use run_, not run__.
5458 * java/lang/Thread.java (run_): Renamed from run__; old run_
5461 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5462 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5463 (_Jv_JNI_DefineClass): Likewise.
5464 (_Jv_JNI_ThrowNew): Likewise.
5465 (_Jv_JNI_AllocObject): Likewise.
5466 (_Jv_JNI_GetAnyMethodID): Likewise.
5467 (_Jv_JNI_CallAnyMethodV): Likewise.
5468 (_Jv_JNI_CallAnyMethodA): Likewise.
5469 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5470 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5471 (_Jv_JNI_GetAnyFieldID): Likewise.
5472 (_Jv_JNI_NewString): Likewise.
5473 (_Jv_JNI_NewStringUTF): Likewise.
5474 (_Jv_JNI_GetStringUTFChars): Likewise.
5475 (_Jv_JNI_NewObjectArray): Likewise.
5476 (_Jv_JNI_NewPrimitiveArray): Likewise.
5477 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5478 (_Jv_JNI_GetStringRegion): Likewise.
5479 (_Jv_JNI_GetStringUTFRegion): Likewise.
5480 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5481 (_Jv_JNI_MonitorEnter): Likewise.
5482 (_Jv_JNI_MonitorExit): Likewise.
5483 (_Jv_JNI_ToReflectedField): Likewise.
5484 (_Jv_JNI_ToReflectedMethod): Likewise.
5485 (_Jv_JNI_RegisterNatives): Likewise.
5486 (_Jv_JNI_AttachCurrentThread): Likewise.
5487 (_Jv_JNI_DestroyJavaVM): Likewise.
5489 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5491 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5492 error caused by the incorrect casting of a long to an int.
5494 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5496 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5497 SIGSEV caused by use of the wrong instance variable.
5499 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5501 * java/io/File.java (File(String, String)): For dirPath, treat an
5502 empty String the same as `null'.
5504 2000-02-26 Anthony Green <green@cygnus.com>
5506 * gnu/gcj/io/MimeTypes.java: Test for null.
5508 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5509 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5511 * java/net/URLConnection.java: Update copyright notice.
5513 2000-02-25 Tom Tromey <tromey@cygnus.com>
5515 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5518 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5520 * java/net/URLConnection.java (initializeDateFormats): New
5522 (getHeaderFieldDate): Call initializeDateFormats if required.
5523 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5525 Fix for PR libgcj/38.
5527 2000-02-24 Warren Levy <warrenl@cygnus.com>
5529 * java/math/BigInteger.java(ival): Made private.
5533 2000-02-20 Anthony Green <green@cygnus.com>
5535 * Makefile.in: Rebuilt.
5536 * Makefile.am (ordinary_java_source_files): Add
5537 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5539 * scripts/MakeDefaultMimeTypes.java: New file.
5540 * scripts/mime.types: New file.
5541 * scripts/classes.pl: Moved from top level.
5542 * classes.pl: Moved to scripts directory.
5544 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5546 * gnu/gcj/io/MimeTypes.java: New file.
5547 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5549 2000-02-20 Tom Tromey <tromey@cygnus.com>
5551 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5553 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5555 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5558 2000-02-18 Tom Tromey <tromey@cygnus.com>
5560 * include/jvm.h (_Jv_GetJavaVM): Declare.
5561 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5562 (_Jv_MethodBase::get_method): New method.
5563 (_Jv_JNIMethod::set_function): New method.
5564 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5565 (_Jv_JNI_RegisterNatives): New function.
5566 (_Jv_JNIFunctions): Updated for new functions.
5567 (_Jv_GetJavaVM): New function.
5568 (_Jv_JNI_GetJavaVM): Use it. Now static.
5569 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5570 is already a Java thread but does not have a JNIEnv yet.
5572 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5575 2000-02-17 Tom Tromey <tromey@cygnus.com>
5577 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5580 2000-02-16 Tom Tromey <tromey@cygnus.com>
5582 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5584 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5585 (_Jv_JNI_NewObject): Likewise.
5586 (_Jv_JNI_NewObjectA): Likewise.
5587 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5588 as "return" type to _Jv_CallAnyMethodA.
5589 (_Jv_JNI_CallAnyMethodA): Likewise.
5590 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5592 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5595 2000-02-15 Tom Tromey <tromey@cygnus.com>
5597 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5599 (init_cif): Added `rtype_p' argument.
5600 * include/java-interp.h (class _Jv_MethodBase): Added
5602 (class _Jv_InterpMethod): Removed args_raw_size.
5603 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5604 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5605 class pointer as well as the ordinary arguments.
5607 * jni.cc (mangled_name): Skip leading `(' in signature.
5609 * jni.cc (add_char): Added missing `else'.
5611 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5614 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5618 * java/lang/natRuntime.cc (_load): Include library path with
5621 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5624 * java/lang/natThread.cc (dumpStack): Removed.
5625 * java/lang/Thread.java (dumpStack): Implemented.
5627 2000-02-15 Tom Tromey <tromey@cygnus.com>
5629 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5630 with `lib' for loadLibrary. Fixes PR gcj/150.
5632 2000-02-14 Warren Levy <warrenl@cygnus.com>
5634 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5636 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5640 (modPow): Rewritten to not use the naive, slow, brute force approach.
5641 (isProbablePrime): Implemented.
5642 (testBit): Implemented.
5643 (flipBit): Implemented.
5644 (getLowestSetBit): Implemented.
5646 2000-02-16 Anthony Green <green@redhat.com>
5648 * configure.host: Use the same options for i386 and i486 as we do
5651 2000-02-12 Tom Tromey <tromey@cygnus.com>
5653 * java/io/File.java (createTempFile): Use low bits from counter,
5656 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5658 * THANKS: More thanks.
5660 2000-02-11 Tom Tromey <tromey@cygnus.com>
5662 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5663 astore instruction. From Hans Boehm.
5665 2000-02-11 Warren Levy <warrenl@cygnus.com>
5667 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5668 (BigInteger(String)): New constructor.
5669 (not): Rewritten using version from Kawa's BitOps class.
5670 (valueOf): New private methods from Kawa's BitOps class.
5677 (andNot): Implemented.
5678 (clearBit): Implemented.
5679 (setBit): Implemented.
5680 (bitCount): Implemented.
5681 (toByteArray): Implemented.
5683 2000-02-11 Tom Tromey <tromey@cygnus.com>
5685 * java/io/File.java (nextValue): Now synchronized.
5687 2000-02-10 Tom Tromey <tromey@cygnus.com>
5689 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5690 * java/io/FileDescriptor.java (EXCL): New static field.
5691 * java/io/File.java (tmpdir): New static field.
5692 (createTempFile): New method.
5693 (nextValue): New method.
5694 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5697 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5698 (jboolean): Declare as an attributed int, not a bool.
5699 (_Jv_func): Declare differently for C.
5701 * gnu/gcj/jni/natNativeThread.cc: New file.
5702 * gnu/gcj/jni/NativeThread.java: New file.
5703 * java/lang/Thread.java (data): Now a RawData.
5704 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5706 * Makefile.in: Rebuilt.
5707 * Makefile.am (java/lang/Thread.h): New target.
5708 (ordinary_java_source_files): Added NativeThread.java.
5709 (nat_source_files): Added natNativeThread.cc.
5710 * java/lang/natThread.cc: Include <jni.h>
5711 (struct natThread): Added `jni_env' field.
5712 (_Jv_GetCurrentJNIEnv): New function.
5713 (_Jv_SetCurrentJNIEnv): Likewise.
5714 (initialize_native): Initialize jni_env.
5716 * jni.cc (ThreadGroupClass): New define.
5717 (_Jv_JNI_InvokeFunctions): New structure.
5718 (JNI_GetCreatedJavaVMs): New function.
5719 (the_vm): New global.
5720 (JNI_GetDefaultJavaVMInitArgs): New function.
5721 Include NativeThread.h.
5722 (NativeThreadClass): New define.
5723 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5724 (_Jv_JNI_DestroyJavaVM): New function.
5725 (_Jv_JNI_AttachCurrentThread): New function.
5726 (_Jv_JNI_DetachCurrentThread): New function.
5727 (_Jv_JNI_GetEnv): New function.
5728 (JNI_CreateJavaVM): New function.
5729 (_Jv_JNI_GetJavaVM): New function.
5730 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5731 * include/jni.h (JavaVMAttachArgs): New structure.
5732 (JNI_EDETACHED): New define.
5733 (JNI_EVERSION): Likewise.
5734 (JavaVM): Define properly.
5735 (struct JNIInvokeInterface): New structure.
5736 (class _Jv_JavaVM): New class.
5737 (JNI_OnLoad, JNI_OnUnload): Declare.
5738 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5739 JNI_GetCreatedJavaVMs): Declare.
5740 (JavaVMInitArgs): New typedef.
5741 (JavaVMOption): Likewise.
5742 (JNI_ERR): New define.
5745 2000-02-10 Andrew Haley <aph@cygnus.com>
5747 * interpret.cc: Don't include fdlibm.h.
5748 Replace #if with #ifdef throughout.
5749 Declare extern __ieee754_fmod.
5750 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5752 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5753 Search class hierarchy for superclass vtable.
5755 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5756 off the end of a pointer list.
5758 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5762 2000-02-09 Tom Tromey <tromey@cygnus.com>
5764 * java/lang/natRuntime.cc (_load): Call add_library.
5765 (loadLibraryInternal): Likewise.
5767 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5768 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5769 (Output_iconv::finalize): Likewise.
5771 2000-02-08 Tom Tromey <tromey@cygnus.com>
5773 * java/util/Properties.java (setProperty): New method.
5774 (store): New method.
5776 2000-02-07 Tom Tromey <tromey@cygnus.com>
5778 * java/lang/Runtime.java (_load): Declare.
5779 (load, loadLibrary): Wrote in terms of _load.
5780 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5782 (loadLibrary): Likewise.
5784 (_load): New method.
5785 (loadLibrary, load): Removed.
5787 * jni.cc (ThrowableClass): New define.
5788 (_Jv_JNI_Throw): Check argument.
5789 (_Jv_JNI_ThrowNew): Likewise.
5790 (wrap_value): Don't wrap object if it is NULL.
5791 (_Jv_JNI_DefineClass): Use wrap_value.
5792 (_Jv_JNI_FindClass): Likewise.
5793 (_Jv_JNI_GetSuperclass): Likewise.
5794 (_Jv_JNI_ExceptionOccurred): Likewise.
5795 (_Jv_JNI_AllocObject): Likewise.
5796 (_Jv_JNI_GetObjectClass): Likewise.
5797 (_Jv_JNI_NewString): Likewise.
5798 (_Jv_JNI_NewStringUTF): Likewise.
5799 (_Jv_JNI_NewObjectArray): Likewise.
5800 (_Jv_JNI_GetObjectArrayElement): Likewise.
5801 (_Jv_JNI_NewPrimitiveArray): Likewise.
5802 (_Jv_JNI_ToReflectedField): Likewise.
5803 (_Jv_JNI_ToReflectedMethod): Likewise.
5804 (_Jv_JNI_AllocObject): Check argument.
5805 (_Jv_JNI_NewObjectV): Likewise.
5806 (_Jv_JNI_NewObject): Likewise.
5807 (_Jv_JNI_NewObjectA): Likewise.
5808 (_Jv_JNI_GetObjectClass): Likewise.
5809 (_Jv_JNI_GetField): Likewise.
5810 (_Jv_JNI_SetField): Likewise.
5812 * interpret.cc (PUSHL): Don't use expression statement.
5817 * jni.cc (add_char): Conditional on INTERPRETER.
5818 (mangled_name): Likewise.
5820 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5822 (class _Jv_JNIMethod): Likewise.
5824 2000-02-04 Warren Levy <warrenl@cygnus.com>
5826 * Makefile.am: Added MPN.java and BigInteger.java.
5827 * Makefile.in: Rebuilt.
5828 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5830 * java/math/BigInteger.java: New file. Based primarily on
5831 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5833 2000-02-04 Tom Tromey <tromey@cygnus.com>
5835 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5837 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5838 if the method is native.
5839 * resolve.cc (ncode): Don't handle native methods.
5840 (_Jv_JNIMethod::ncode): New method.
5841 (_Jv_PrepareClass): Handle native methods.
5842 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5843 Include AbstractMethodError.h.
5844 (add_char): New function.
5845 (mangled_name): Likewise.
5846 * include/java-interp.h (class _Jv_JNIMethod): New class.
5847 (class _Jv_MethodBase): New class.
5848 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5849 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5852 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5853 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5854 libraries): New globals.
5855 (add_library): New function.
5856 (_Jv_FindSymbolInExecutable): New function.
5858 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5861 2000-02-04 Andrew Haley <aph@cygnus.com>
5863 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5864 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5865 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5866 printStackTrace to printRawStackTrace.
5868 2000-02-03 Tom Tromey <tromey@cygnus.com>
5870 * java/util/Calendar.java (toString): New method.
5871 * java/util/SimpleTimeZone.java (clone): New method.
5872 (toString): New method.
5873 * java/util/TimeZone.java (clone): New method.
5874 * java/text/SimpleDateFormat.java (clone): New method.
5875 * java/text/NumberFormat.java (clone): New method.
5876 (equals): New method.
5877 * java/text/Format.java (clone): New method.
5878 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5880 (clone): New method.
5881 * java/text/DateFormat.java (clone): New method.
5882 * java/text/Collator.java (clone): New method.
5884 2000-02-03 Tom Tromey <tromey@cygnus.com>
5886 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5889 2000-02-01 Tom Tromey <tromey@cygnus.com>
5891 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5892 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5893 constructing the closure if the function is native.
5894 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5895 a template function, #if'd out, or static.
5896 Include <java-interp.h>.
5898 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5900 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5902 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5903 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5905 (wrap_value): New function.
5906 (_Jv_JNI_CallAnyMethodV): Use it.
5907 (_Jv_JNI_CallAnyMethodA): Likewise.
5908 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5909 (_Jv_JNI_GetStaticField): Likewise.
5911 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5912 (_Jv_JNI_GetStaticField): Likewise.
5914 2000-01-31 Tom Tromey <tromey@cygnus.com>
5916 * prims.cc (_Jv_MallocUnchecked): New function.
5917 (main_init): Call _Jv_JNI_Init.
5918 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5919 (_Jv_JNI_Init): Declare.
5920 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5922 (_Jv_JNI_NewGlobalRef): New function.
5923 (_Jv_JNI_DeleteGlobalRef): New function.
5924 (_Jv_JNI_DeleteLocalRef): New function.
5925 (_Jv_JNI_conversion_call): Initialize and clear local reference
5927 (_Jv_JNI_NewLocalRef): New function.
5928 (struct _Jv_JNI_LocalFrame): New structure.
5929 (_Jv_JNI_PushLocalFrame): New function.
5930 (_Jv_JNI_EnsureLocalCapacity): New function.
5931 (FRAME_SIZE): New define.
5932 (_Jv_JNI_GetStringChars): Mark string, not characters.
5933 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5934 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5935 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5937 (_Jv_JNI_DefineClass): Make return value a local ref.
5938 (_Jv_JNI_FindClass): Likewise.
5939 (_Jv_JNI_GetSuperclass): Likewise.
5940 (_Jv_JNI_ExceptionOccurred): Likewise.
5941 (_Jv_JNI_AllocObject): Likewise.
5942 (_Jv_JNI_GetObjectClass): Likewise.
5943 (_Jv_JNI_CallAnyMethodV): Likewise.
5944 (_Jv_JNI_NewString): Likewise.
5945 (_Jv_JNI_NewStringUTF): Likewise.
5946 (_Jv_JNI_NewObjectArray): Likewise.
5947 (_Jv_JNI_GetObjectArrayElement): Likewise.
5948 (_Jv_JNI_ToReflectedField): Likewise.
5949 (_Jv_JNI_ToReflectedMethod): Likewise.
5950 (_Jv_JNIFunctions): Updated table for new functions.
5951 (_Jv_JNI_Init): New function.
5952 (mark_for_gc): Wrote.
5953 (unmark_for_gc): Wrote.
5954 * include/jni.h (struct JNINativeInterface): Removed name from
5955 PopLocalFrame parameter.
5956 (class _Jv_JNIEnv): Added `locals' field.
5958 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5960 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5963 2000-01-30 Tom Tromey <tromey@cygnus.com>
5965 * include/config.h.in: Rebuilt.
5966 * acconfig.h (HAVE_ICONV): Define.
5967 * configure: Rebuilt.
5968 * configure.in: Check for `iconv' function.
5969 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5970 no specific encoder exists.
5971 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5972 no specific encoder exists.
5973 * Makefile.in: Rebuilt.
5974 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5976 (nat_source_files): Added natIconv.cc.
5977 * gnu/gcj/convert/natIconv.cc: New file.
5978 * gnu/gcj/convert/Input_iconv.java: New file.
5979 * gnu/gcj/convert/Output_iconv.java: New file.
5981 2000-01-28 Tom Tromey <tromey@cygnus.com>
5983 * Makefile.in: Rebuilt.
5984 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5986 2000-01-26 Tom Tromey <tromey@cygnus.com>
5988 * gcj/method.h (JvNumMethods): Moved from Class.h.
5989 (JvGetFirstMethod): Likewise.
5990 * java/lang/Class.h (Object): Updated decl of
5991 _Jv_JNI_ToReflectedField.
5992 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5993 * Makefile.in: Rebuilt.
5994 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5995 argument of _Jv_JNI_ToReflectedField.
5996 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5998 (java/lang/reflect/Method.h): Likewise.
5999 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6001 (jweak): New typedef.
6002 (struct JNINativeInterface): Correctly declare remaining entries.
6003 * jni.cc: Include Class.h, ClassLoader.h.
6004 (_Jv_JNI_FindClass): New function.
6005 (_Jv_JNI_DefineClass): New function.
6006 (_Jv_JNI_conversion_call): New function.
6007 (_Jv_JNI_FindClass): Use current class loader to find class.
6008 (_Jv_JNI_ExceptionCheck): New function.
6009 (_Jv_JNI_FromReflectedField): Now static.
6010 (MethodClass): New define.
6011 (_Jv_JNI_FromReflectedMethod): New function.
6012 (_Jv_JNI_ToReflectedMethod): Likewise.
6014 (_Jv_JNI_IsAssignableFrom): Renamed.
6015 (_Jv_JNI_GetStringRegion): New function.
6016 Include StringIndexOutOfBoundsException.h.
6017 (_Jv_JNI_GetStringUTFRegion): New function.
6018 (_Jv_JNIFunctions): Updated for new functions.
6019 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6020 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6021 (_Jv_JNI_GetStringCritical): New function.
6022 (_Jv_JNI_ReleaseStringCritical): Likewise.
6023 (get_throwable): Removed.
6024 (GCJ_JV_JNIENV_FRIEND): Removed.
6025 (__GCJ_JNI_IMPL__): Define.
6028 * resolve.cc (get_ffi_type_from_signature): Handle case where
6031 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6033 * interpret.cc (run): Don't call println.
6034 Don't include PrintStream.h.
6036 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6037 nameIndex. Use "jint" as type for boffset.
6038 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6040 (Class): Likewise. Also changed type of method_count,
6041 vtable_method_count, size_in_bytes, field_count,
6042 static_field_count, interface_count.
6043 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6046 2000-01-21 Tom Tromey <tromey@cygnus.com>
6048 * java/lang/reflect/natConstructor.cc (newInstance): Use
6050 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6051 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6052 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6055 (invoke): Use _Jv_CallAnyMethodA.
6057 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6058 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6060 (struct _Jv_Method): Added getNextMethod method.
6061 (JvNumMethods): New function.
6062 (JvGetFirstMethod): Likewise.
6063 * gcj/field.h (JvGetFirstStaticField): New function.
6064 (JvNumStaticFields): Likewise.
6065 (getNextField): Renamed from getNextInstanceField.
6066 (struct _Jv_Field): New method getClass.
6067 * jni.cc: Wrote many new functions.
6068 * include/jni.h (JNI_TRUE): Define.
6069 (JNI_FALSE): Likewise.
6070 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6071 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6072 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6073 (jfieldID, jmethodID): Likewise.
6074 (JNI_COMMIT, JNI_ABORT): New defines.
6075 (JNINativeMethod): New struct.
6076 (struct JNINativeInterface): Correctly declared more entries.
6077 (class _Jv_JNIEnv): Added `ex' member.
6078 (JNI_VERSION_1_1): New define.
6079 (JNI_VERSION_1_2): Likewise.
6081 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6082 getNextInstanceField.
6084 2000-01-20 Tom Tromey <tromey@cygnus.com>
6086 * resolve.cc (StringClass): Removed.
6087 * defineclass.cc (StringClass): Removed.
6089 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6093 2000-01-19 Tom Tromey <tromey@cygnus.com>
6095 * interpret.cc (PC_REGISTER_ASM): Removed.
6097 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6098 From Bryce McKinlay.
6100 * All files: Updated copyright to reflect Cygnus purchase.
6102 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6104 * configure: Rebuilt.
6105 * configure.in: Recognize --disable-interpreter.
6107 2000-01-18 Andrew Haley <aph@cygnus.com>
6109 * name-finder.cc (lookup): Check for dladdr function.
6110 acconfig.h (HAVE_DLADDR): Add.
6111 configure.in: Check for HAVE_DLADDR
6113 include/config.h.in: Rebuilt.
6115 2000-01-17 Andrew Haley <aph@cygnus.com>
6117 * prims.cc (_Jv_RunMain): Set the name of this executable.
6119 2000-01-17 Tom Tromey <tromey@cygnus.com>
6121 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6122 when backtrace can't be computed.
6124 * configure: Rebuilt.
6125 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6127 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6128 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6129 (_Jv_FindClassInCache): Likewise.
6130 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6131 (findSystemClass): Try to load class from compiled module.
6133 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6134 (loadLibrary): Likewise.
6135 (lt_preloaded_symbols): Define.
6136 (loadLibraryInternal): New method.
6137 * include/config.h.in: Rebuilt.
6138 * acconfig.h (USE_LTDL): Added.
6139 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6140 (INCLUDES): Added $(INCLTDL).
6141 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6142 (libgcj_la_LIBADD): Likewise.
6143 * aclocal.m4, configure: Rebuilt.
6144 * configure.in: Added libltdl support.
6146 2000-01-15 Tom Tromey <tromey@cygnus.com>
6148 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6150 2000-01-14 Andrew Haley <aph@cygnus.com>
6152 * java/lang/natThrowable.cc: New file.
6154 * java/lang/Throwable.java (fillInStackTrace): Make native.
6155 (printStackTrace): Call native method to do this.
6156 (Throwable): Call fillInStackTrace.
6157 (stackTrace): New variable.
6159 * include/jvm.h: Add _Jv_ThisExecutable functions.
6161 * prims.cc: (_Jv_execName): New variable.
6162 (catch_segv): Call fillInStackTrace.
6164 (_Jv_ThisExecutable): New functions.
6165 (JvRunMain): Set the name of this executable.
6167 * Makefile.am: Add java/lang/natThrowable.cc.
6169 * Makefile.in: Rebuilt.
6171 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6173 * configure.in: Force link with __frame_state_for in
6174 FORCELIBGCCSPEC. Add new checks for backtrace.
6175 * include/config.h.in: Rebuilt.
6177 * name-finder.cc: New file.
6178 * include/name-finder.h: New file.
6180 2000-01-16 Anthony Green <green@cygnus.com>
6182 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6185 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6187 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6189 2000-01-13 Tom Tromey <tromey@cygnus.com>
6191 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6192 not system loader, as initiating loader.
6194 2000-01-11 Tom Tromey <tromey@cygnus.com>
6196 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6197 HP/UX. From David Scott Urban.
6199 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6201 * java/lang/natMath.cc (pow): Cast args to `double', not
6204 (IEEEremainder): Likewise.
6205 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6206 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6208 2000-01-09 Anthony Green <green@cygnus.com>
6210 * java/lang/natString.cc (init): Test for overflow condition
6211 during out of bounds check.
6212 (getChars): Throw StringIndexOutOfBoundsException, not
6213 ArrayIndexOutOfBoundsException.
6215 (regionMatches): Obey case option during string comparison.
6217 * configure.host (ligcj_interpreter): New variable. Enable
6218 interpreter by default on IA-32.
6219 * configure.in: Examine libgcj_interpreter.
6220 * configure: Rebuilt.
6222 2000-01-07 Tom Tromey <tromey@cygnus.com>
6224 * mauve-libgcj: Don't disable ClassTest.
6226 * java/lang/natClass.cc (getClasses): Wrote.
6228 2000-01-06 Tom Tromey <tromey@cygnus.com>
6230 * java/lang/natClass.cc (_getConstructors): Correctly check
6231 whether method name is the init name.
6232 (getMethod): Look at accflags on method in `klass', not `this'.
6234 2000-01-05 Tom Tromey <tromey@cygnus.com>
6236 * java/lang/natClass.cc (getMethod): Compute offset relative to
6237 `klass's methods table, not `this's table.
6239 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6240 In unwrapping/widening case, check whether `k' is null, not
6241 whether it is primitive. Initialize `num' from `argelts', not
6242 `paramelts'. Correct create and pass arguments to ffi_call.
6243 Don't let presence of `this' argument affect index used to look in
6245 (COPY): Set appropriate element in `values' vector.
6247 * java/lang/natClass.cc: Include <gcj/method.h>.
6249 * java/lang/Class.h (_getMethods): Correctly declare as private,
6252 * java/lang/Class.h (_getMethods): Declare.
6253 * java/lang/Class.java (_getMethods): Declare.
6254 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6255 (getDeclaredClasses): Always return empty array.
6256 (_getMethods): New method.
6257 (getMethods): Wrote.
6258 (getDeclaredMethod): Return `rmethod'.
6259 (finit_name): New global.
6260 (getDeclaredMethods): Check for finit_name.
6261 (_getMethods): Likewise.
6262 (getMethod): Only return public methods.
6264 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6265 jboolean and select correct ffi type on that basis.
6266 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6267 Constructor call always has `void' return type.
6269 2000-01-04 Tom Tromey <tromey@cygnus.com>
6271 * java/lang/Class.h (getSignature): Updated.
6272 * java/lang/Class.java (getSignature): Updated.
6273 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6275 (getConstructor): Ensure constructor is public.
6276 (_getConstructors): Check for public-ness of constructor when
6277 `declared' is false, not when it is true.
6279 2000-01-04 Warren Levy <warrenl@cygnus.com>
6281 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6283 (receive): Set the sender's address in the DatagramPacket.
6285 2000-01-04 Tom Tromey <tromey@cygnus.com>
6287 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6288 declaring class as return_type argument to
6289 _Jv_CallNonvirtualMethodA.
6290 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6291 constructor case, create object and use it as `this' argument.
6292 * java/lang/Class.h (_getConstructors): Declare.
6293 (_getFields): Declare.
6294 * java/lang/Class.java (getConstructors): Wrote.
6295 (_getConstructors): New native method.
6296 (getDeclaredConstructors): Wrote.
6297 (_getFields): Declare new native method.
6298 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6300 (getMethod): Work correctly when class is primitive.
6301 (getDeclaredMethods): Likewise. Compute offset using `method',
6303 (getDeclaredMethod): Likewise.
6304 (getConstructor): Wrote.
6305 (ConstructorClass): New define.
6306 (getDeclaredConstructor): Wrote.
6307 (_getConstructors): New method.
6308 (_getFields): New method.
6311 * Makefile.in: Rebuilt.
6312 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6314 * prims.cc: Remove `#pragma implementation'.
6315 * gcj/array.h: Remove `#pragma interface'.
6317 * prims.cc (_Jv_equaln): New function.
6318 * java/lang/Class.java (getSignature): Declare.
6319 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6320 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6322 (getSignature): New method.
6323 (getDeclaredMethod): Wrote.
6325 Include StringBuffer.h.
6326 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6327 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6329 (getSignature): Declare.
6330 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6331 (_Jv_equaln): Declare.
6332 (_Jv_CallNonvirtualMethodA): Declare.
6333 * Makefile.in: Rebuilt.
6334 * Makefile.am (nat_source_files): Added natConstructor.cc.
6335 (java/lang/reflect/Constructor.h): New target.
6336 * java/lang/reflect/natConstructor.cc: New file.
6337 * java/lang/reflect/Constructor.java (newInstance): Now native.
6338 (declaringClass): Renamed from decl_class.
6339 (offset): Renamed from index.
6340 (getType): New native method.
6341 (getModifiers): Now native.
6342 (getParameterTypes): Call getType if required.
6343 (hashCode): Include hash code from declaring class.
6344 (modifiers): Removed.
6345 (toString): Call getType if required.
6346 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6347 * java/lang/reflect/natMethod.cc (hack_call): New method.
6348 Removed `#if 0' around FFI code.
6349 Include <gnu/gcj/RawData.h>.
6350 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6351 IllegalArgumentException when argument object and class disagree.
6352 (_Jv_GetTypesFromSignature): New function.
6354 (ObjectClass): New define.
6355 (_Jv_CallNonvirtualMethodA): New function.
6356 * java/lang/reflect/Method.java (hack_trampoline): New method.
6357 (hack_call): New native method.