1 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
3 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
4 * configure.host (EXCEPTIONSPEC): New.
5 * configure.in (EXCEPTIONSPEC): New.
8 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10 * doc/*.texi: Remove generated documentation.
12 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
14 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
15 (performDelete): Fix #endif placement.
17 2001-04-27 Zack Weinberg <zackw@stanford.edu>
19 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
20 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
21 (_Jv_ThreadDestroyData): Use _Jv_Free.
22 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
25 2001-04-27 Tom Tromey <tromey@redhat.com>
27 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
29 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
31 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
33 * include/jni.h (struct JNINativeInterface): Fixed types in
34 Get/Set*ArrayRegion declarations.
35 (class _Jv_JNIEnv): Likewise.
37 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
39 * configure.in: Obtain THREADS with `gcc -v'.
42 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
45 * java/io/ObjectStreamClass.java (setClass): Calculate
46 serialVersionUID for local class and compare it against the UID
47 from the Object Stream. Throw InvalidClassException upon mismatch.
48 (setUID): Renamed to...
49 (getClassUID): this. Return the calculated class UID rather than
50 setting uid field directly.
51 (getDefinedSUID): Removed.
52 * java/io/ObjectInputStream.java (resolveClass): Use the
53 three-argument Class.forName().
54 * java/io/InvalidClassException (toString): Don't include classname in
57 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
59 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
60 Wrap use of inet_pton in HAVE_INET6.
62 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
64 java.security merge and ClassLoader compliance fixes.
66 * java/lang/Class.h (Class): Include ProtectionDomain.h.
67 New protectionDomain field.
68 (forName): Add initialize parameter. Fixes declaration to comply with
70 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
71 variant. Honour "initialize" flag.
72 (getProtectionDomain0): New method.
73 * java/lang/Class.java: Fix forName() declaration.
74 (getPackage): New method based on Classpath implementation.
75 (getProtectionDomain0): New native method decl.
76 (getProtectionDomain): New method.
77 * java/lang/ClassLoader.java (getParent): Now final.
78 (definedPackages): New field.
80 (defineClass): New variant with protectionDomain argument.
83 (findSystemClass): Now final.
84 (getSystemResourceAsStream): Remove redundant "final" modifier.
85 (getSystemResource): Remove redundant "final" modifier.
86 (getResources): Now final.
87 (protectionDomainPermission): New static field.
88 (unknownProtectionDomain): Ditto.
89 (defaultProtectionDomain): Ditto.
90 (getSystemClassLoader): Now non-native.
91 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
92 arguments for Class.forName().
93 * java/lang/Package.java: New file.
94 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
95 (instance): Static initialize singleton.
96 (findClass): Override this, not findSystemClass.
97 * java/lang/natClassLoader.cc (defineClass0): Set class's
98 protectionDomain field as specified.
99 (getSystemClassLoader): Removed.
100 (findClass): Renamed from findSystemClass. Call the interpreter via
101 URLClassLoader.findClass if loading class via dlopen fails.
103 * java/security/*.java: java.security import/merge with Classpath.
104 * java/security/acl/*.java: Likewise.
105 * java/security/interfaces/*.java: Likewise.
106 * java/security/spec/*.java: Likewise.
107 * java/net/NetPermission.java: Likewise.
108 * java/net/SocketPermission.java: Likewise.
109 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
111 * Makefile.am: Add new classes.
112 * Makefile.in: Rebuilt.
113 * gcj/javaprims.h: CNI namespace rebuild.
115 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
117 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
118 for libtool tests. Pre-create gnu/classpath/Configuration.java.
119 * configure: Rebuilt.
121 2001-04-21 Tom Tromey <tromey@redhat.com>
123 * Makefile.in: Rebuilt.
124 * Makefile.am (awt_java_source_files): Added Line2D.java.
125 * java/awt/geom/Line2D.java: Wrote.
127 * java/awt/Menu.java (addNotify): Wrote.
129 * java/awt/PopupMenu.java (addNotify): Implemented.
132 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
133 * java/awt/List.java (addNotify): Call super.addNotify.
134 * java/awt/Label.java (addNotify): Call super.addNotify.
135 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
136 * java/awt/Dialog.java (addNotify): Call super.addNotify.
137 * java/awt/Choice.java (addNotify): Call super.addNotify.
138 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
139 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
141 * java/awt/List.java (replaceItem): Notify peer.
143 * java/awt/geom/Rectangle2D.java
144 (Float.setRect(float,float,float,float)): New method.
146 * java/awt/event/ContainerEvent.java (getContainer): Now returns
149 * java/awt/RenderingHints.java (Key): Class now public.
151 * java/awt/Rectangle.java (Rectangle): Now implements
153 (getPathIterator): Removed.
155 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
158 * java/awt/FileDialog.java: Wrote.
160 * java/awt/EventQueue.java (isDispatchThread): Now public.
161 (invokeLater): Likewise.
163 * java/awt/Component.java (setCursor): Update peer.
164 (getFontMetrics): Use peer.
166 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
169 2001-04-20 Tom Tromey <tromey@redhat.com>
171 * java/awt/List.java: Wrote.
172 * java/awt/Dialog.java: Wrote.
174 2001-04-20 Warren Levy <warrenl@redhat.com>
176 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
177 * java/text/SimpleDateFormat.java
178 (indexInArray): Removed private method.
179 (processYear): Removed private method.
180 (parseLenient): Removed private method.
181 (parseLeadingZeros): Removed private method.
182 (parseStrict): Removed private method.
183 (expect): Added new private method.
184 (parse): Reverted to pre-Classpath merge version with minor fixes.
185 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
188 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
190 * java/io/File.java (normalizePath): New private method.
191 (File (String)): Use normalizePath().
192 (File (String, String)): Likewise.
194 * Makefile.am (libffi_files): Removed.
195 (libgcj.la): Link libffi as a convenience library instead of
196 refering to its object files directly.
197 * Makefile.in: Rebuilt.
199 2001-04-08 Per Bothner <per@bothner.com>
201 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
202 Recalculate hash, since Utf8Const's hash is only 16 bits.
204 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
205 bits of hash to calculate step for chaining.
207 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
208 when 2/3 full, rather than 3/4 full.
210 2001-04-06 Tom Tromey <tromey@redhat.com>
212 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
213 (wrap_value<T*>): New specialization.
214 (_Jv_JNI_PopLocalFrame): Update env->locals.
216 2001-04-05 Tom Tromey <tromey@redhat.com>
218 * libtool-version: Updated current.
220 2001-04-04 Andreas Jaeger <aj@suse.de>
222 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
223 * gcj/Makefile.in: Rebuilt.
224 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
225 * Makefile.in: Rebuilt.
226 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
227 * testsuite/Makefile.in: Rebuild.
228 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
229 * include/Makefile.in: Rebuild.
231 2001-04-02 Zack Weinberg <zackw@stanford.edu>
233 * testsuite/lib/libjava.exp: Correct typo: 'output from source
234 compiled test', not 'execution from source compiled test'.
235 Use UNTESTED, not XFAIL, for tests which are not run because
236 they depend on a previous test which failed.
238 2001-04-02 Richard Henderson <rth@redhat.com>
240 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
241 the same tree as gcc.
242 * configure: Rebuilt.
244 * exception.cc (_Jv_Throw): Clarify commentary.
246 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
248 * jni.cc (wrap_value<jclass>): New specialization.
250 2001-04-02 Tom Tromey <tromey@redhat.com>
252 * java/io/PrintStream.java (out): Removed field. Fixes PR
254 (write): Call flush, not out.flush, per spec.
255 (close): Flush output stream, per spec. Handle
256 InterruptedIOException.
257 (checkError): Likewise.
258 (flush, print, write): Handle InterruptedIOException per spec.
259 (PrintStream): Don't create BufferedOutputStream.
260 (work_bytes): New field.
261 (writeChars): Use work_bytes. Don't assume `out' is a
262 BufferedOutputStream.
264 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
266 * java/text/MessageFormat.java (setLocale): Added missing `else'.
269 2001-03-30 Tom Tromey <tromey@redhat.com>
271 * jni.cc (add_char): Correctly encode non-ascii characters.
272 (add_char): Define even when INTERPRETER not defined.
273 (mangled_name): Likewise.
274 (_Jv_GetJNIEnvNewFrame): Likewise.
275 (_Jv_LookupJNIMethod): Likewise.
277 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
279 * configure.host: Enable interpreter for PPC.
281 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
283 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
284 to "file.separator", "path.separator", and "java.io.tmpdir" property
286 * java/io/File.java: Likewise.
287 * java/io/natFile.cc (init_native): Likewise.
288 * java/io/natFileWin32.cc (init_native): Likewise.
290 2001-04-01 Per Bothner <per@bothner.com>
292 * java/lang/natString.cc (intern): If string's data does not point to
293 this String, make a fresh String that does.
295 * java/lang/natString.cc (unintern): Replace by static function.
296 * java/lang/String.java (unintern): Remove method.
298 2001-04-01 Per Bothner <per@bothner.com>
300 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
301 (finish): def.deflate needs to be called in a loop.
302 (inbuf, inbufLength): New private fields.
303 (write(int)): Use inbuf.
304 (write(byte[],int,int): Check if pending output in inbuf.
305 * ZipOutputStream.java: Don't use Deflater if stored.
306 Use a Checksum object directly, not via a CheckedOutputStream.
307 (uncompressed_size): New field,
308 (closeEntry): Only write data_directory if needed.
309 (write): If STORED, write directly.
310 Always update crc, and uncompressed_size.
311 (write_entry): Fix lots of protocol erors.
313 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
315 1.3-Compliant Implementation of java.io.File.
316 * java/lang/natSystem.cc (init_properties): Get "file.separator",
317 "path.separator", and "java.io.tmpdir" from the File class, instead
318 of setting them explicitly.
319 * java/io/File.java: Do not canonicalize paths for security manager
320 checks. Call init_native() from static initializer. Do not pass path
321 argument to native methods. New native method declarations. Some
322 security manager checks moved to checkWrite().
323 (equals): Check file system case sensitivity and act appropriatly.
324 (hashCode): Likewise.
325 (isHidden): New method implemented.
326 (performList): Changed prototype. Now takes a class argument specifying
327 the class of the returned array: Strings or File objects. Also added
329 (listFiles): New variants with "File" return type implemented.
330 (createTempFile): Use createNewFile(). Use maxPathLen.
331 (setReadOnly): New method implemented.
332 (listRoots): Likewise.
333 (compareTo): Likewise.
334 (setLastModified): Likewise.
335 (checkWrite): New method.
337 * java/io/natFile.cc: Various functions no longer take canonical path
339 (stat): Handle ISHIDDEN query.
340 (isAbsolute): Remove WIN32 cruft.
341 (performList): New arguments. Handle returning either File[] or String[]
342 arrays. Check with FileFilter or FilenameFilter arguments as
343 appropriate. Use an ArrayList, not a Vector, for the temporary list.
344 (performSetReadOnly): New method implemented.
345 (performListRoots): Likewise.
346 (performSetLastModified): Likewise.
347 (performCreate): Likewise.
348 (init_native): New initialization function.
349 * java/io/natFileWin32.cc: Various functions no longer take canonical
351 (stat): Add FIXME about ISHIDDEN query.
352 (performList): New arguments. Handle returning either File[] or String[]
353 arrays. Check with FileFilter or FilenameFilter arguments as
354 appropriate. Use an ArrayList, not a Vector, for the temporary list.
355 (performSetReadOnly): New. Stubbed.
356 (performListRoots): Likewise.
357 (performSetLastModified): Likewise.
358 (performCreate): Likewise.
359 (init_native) New initialization function.
360 * configure.in: Check for utime() and chmod().
361 * configure: Rebuilt.
362 * include/config.h.in: Rebuilt.
364 Resolves PR libgcj/1759.
366 2001-03-28 Richard Henderson <rth@redhat.com>
368 IA-64 ABI Exception Handling:
369 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
370 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
371 Remove EXCEPTIONSPEC.
372 * configure.host (libgcj_sjlj): Remove.
373 * configure.in (EXCEPTIONSPEC): Remove.
374 (enable-sjlj-exceptions): Detect if not specified.
375 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
376 what header we're looking for.
377 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
378 * Makefile.in, configure: Regenerate.
379 * exception.cc: Don't declare libgcc2 stuff.
380 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
381 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
382 (win32_get_restart_frame): Remove.
383 (struct java_exception_header): New.
384 (__gcj_exception_class): New.
385 (get_exception_header_from_ue): New.
386 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
387 (size_of_encoded_value, read_encoded_value): New.
388 (read_uleb128, read_sleb128, parse_lsda_header): New.
389 (get_ttype_entry, __gcj_personality_sj0): New.
390 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
392 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
394 * javax/naming/InitialContext.java (init): Fix typo.
395 (composeName): Remove unnecessary semicolon.
396 (addToEnvironment): Remove unnecessary semicolon.
397 (addToEnvironment): Use put() instead of add().
399 * javax/naming/InitialContext.java (InitialContext):
401 (destroySubcontext): Method doesn't return a result.
402 * javax/naming/Context.java: Import java.util.Hashtable.
403 * javax/naming/Name.java: Import java.util.Enumeration.
405 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
407 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
408 objects in subdirectories.
409 * Makefile.in: Rebuilt.
411 2001-03-25 Richard Henderson <rth@redhat.com>
413 * exception.cc (java_eh_info): Make value type jthrowable.
414 (_Jv_type_matcher): Remove now unneeded cast.
415 (_Jv_Throw): Make argument type jthrowable. Munge name
416 for SJLJ_EXCEPTIONS here ...
417 * gcj/cni.h: ... not here.
419 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
421 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
422 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
423 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
424 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
425 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
426 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
427 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
428 java/lang/natClass.cc, java/lang/natClassLoader.cc,
429 java/lang/natDouble.cc, java/lang/natObject.cc,
430 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
431 java/lang/natString.cc, java/lang/natSystem.cc,
432 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
433 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
434 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
435 java/util/zip/natInflater.cc:
436 Use throw, not JvThrow or _Jv_Throw.
438 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
440 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
441 paramater, bump it to 1.
442 * java/util/Hashtable.java (Hashtable): Likewise.
444 2001-03-23 Per Bothner <per@bothner.com>
446 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
447 check for errors, since we don't want to throw exception on
448 overflow/underflow. Instead, trim whitespace, and then check that
449 _strtod_r uses up all the rest of the string.
451 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
452 ancestors array is invalid for interfaces, so do that *after*
453 check that the target type is not an interface.
455 2000-03-23 Jeff Sturm <jsturm@one-point.com>
457 * prims.cc (_Jv_FindClassFromSignature): Check return of
458 recursive call. Do not abort on invalid signature; return NULL
461 2001-03-22 Tom Tromey <tromey@redhat.com>
463 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
464 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
466 * include/jvm.h (_Jv_ResolveField): Declare.
467 * include/java-interp.h (_Jv_ResolveField): Don't declare.
468 * resolve.cc (_Jv_ResolveField): No longer conditional on
471 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
473 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
475 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
476 to a temporary file, then invoke libtool with the -objectlist
478 (libgcjx.la): Likewise.
479 * Makefile.in: Rebuilt.
481 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
483 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
485 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
487 * jni.cc (add_char): Handle `.' like `/'.
489 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
491 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
492 initialize if exception_types is null.
493 * java/lang/reflect/Constructor.java: Likewise.
494 * java/lang/reflect/natConstructor.cc (getType): Initialize
495 exception_types to an empty Object array.
497 2001-03-21 Tom Tromey <tromey@redhat.com>
499 * configure: Rebuilt.
500 * configure.in (GCJFLAGS): Subst.
501 * Makefile.in: Rebuilt.
502 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
503 (gij_LDFLAGS): Likewise.
504 (JC1FLAGS): Added GCJFLAGS and removed -g.
506 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
507 read/write case. Fixes PR libgcj/2338.
509 2001-03-20 Warren Levy <warrenl@redhat.com>
511 * java/util/TimeZone.java: Sync up with Classpath. Includes new
512 and corrected SimpleTimeZone's for the timezones hash table.
514 2001-03-19 Per Bothner <per@bothner.com>
516 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
517 "canonicalize" "../../xxx" to "/xxx".
519 2001-03-19 Mark Wielaard <mark@klomp.org>
521 * java/util/ArrayList.java: Remove RCS keywords from comments
522 * java/util/BasicMapEntry.java: idem
523 * java/util/Dictionary.java: idem
524 * java/util/HashSet.java: idem
526 * java/util/EventObject.java: reindent
527 * java/util/Properties.java: idem
528 * java/util/SortedMap.java: idem
530 * java/util/Enumeration.java: Merge with Classpath
531 * java/util/EventListener.java: idem
532 * java/util/Observable.java: idem
533 * java/util/Observer.java: idem
534 * java/util/Stack.java: idem
536 2001-03-17 Tom Tromey <tromey@redhat.com>
538 * java/lang/natString.cc (rehash): Don't bother with memset;
539 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
541 (UNMASK_PTR): New macro.
542 (intern): Unmask pointer before returning it. Register finalizer
544 (unintern): Handle case where
545 (MASK_PTR): New macro.
546 (PTR_MAKSED): Likewise.
547 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
549 2001-03-01 Andrew Haley <aph@redhat.com>
551 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
552 stackTrace buffer to a correctly aligned pointer array.
554 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
556 * java/lang/Runtime.java (_exit): Declare new package-private native.
557 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
558 without a security manager check.
559 (exit): Call _exit after security check.
560 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
562 * java/lang/System.java (setSecurityManager): If a security manager
563 is already in place, call checkPermission.
564 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
565 throws an exception, try to deal with it gracefully.
566 * java/lang/ExceptionInInitializerError.java (printStackTrace):
567 Only try to print the subordinate stack trace if "exception" is set.
568 Print our class name first.
570 2001-03-08 Tom Tromey <tromey@redhat.com>
572 * java/io/ObjectStreamClass.java (setUID): Don't write interface
573 info for array classes.
574 Fixes PR libgcj/1971.
576 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
578 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
581 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
583 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
584 instead of the new JDK1.2 API. This is simpler and makes
585 back-porting the classes to JDK1.1 trivial.
586 (readObject): likewise.
588 2001-03-01 Per Bothner <per@bothner.com>
590 Changes merged from Kawa's gnu.math.
591 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
592 (rshift(int[],int[],int,int): Removed - not needed.
593 (gcd): Use rshift0 rather than rshift.
594 * java/math/BigInteger.java (setShiftRight): Likewise.
595 (divide): Simplify by using rshift0.
596 (divide): Zero-extend results if high-order bit set.
598 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
600 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
603 2001-02-23 Per Bothner <per@bothner.com>
605 Change to sometimes include class name in ClassFormatError message.
606 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
607 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
608 boolean instead of throwing ClassFormatError on failure.
609 (throw_class_format_error): Change static function to method.
610 (_Jv_ClassReader): New inline methods verify_identifier,
611 two overloads of verify_classname, verify_field_signature, and
612 verify_method_signature
613 * include/java-interp.h: Update declarations to return bool.
614 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
615 ClassFormatError since _Jv_VerifyClassName now returns bool.
617 2001-02-23 Per Bothner <per@bothner.com>
619 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
620 c++filt to select java-style output.
622 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
624 Fix for PR java/2040:
625 * java/util/HashMap.java (HashMap): Don't throw exception for
626 loadFactor > 1. Add exception messages.
627 * java/util/Hashtable.java (Hashtable): Likewise.
629 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
631 Disable libgcjx by default.
632 * configure.in: Add support for --enable-java-awt configure option.
633 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
634 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
635 * Makefile.in: Rebuilt.
636 * configure: Rebuilt.
638 2001-02-20 Tom Tromey <tromey@redhat.com>
640 * java/io/PipedWriter.java (flush): Throw exception if stream
642 * java/io/OutputStreamWriter.java (write): Throw exception if
644 (writeChars): Don't throw exception if stream closed.
645 * java/io/CharArrayWriter.java (closed): New field.
647 (flush): Throw exception if stream closed.
648 (reset): Synchronize on correct lock. Allow stream to be
650 (toCharArray, toString, writeTo): Synchronize.
651 (write): Throwe exception if stream closed.
652 * java/io/BufferedWriter.java (close): Clear `buffer'.
653 (flush): Throw IOException if stream is closed.
656 2001-02-16 Tom Tromey <tromey@cygnus.com>
658 * java/lang/ThreadGroup.java (activeCount): Only include threads
660 (enumerate): Likewise.
662 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
664 * java/lang/Integer.java (getInteger): Return default argument if
665 property is not set. Don't call decode with null argument.
666 * java/lang/Long.java (getLong): Likewise.
668 * java/io/CharArrayReader.java (CharArrayReader): Throw
669 IllegalArgumentException if constructor arguments are illegal.
670 (ready): Return false if no more characters can be read.
671 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
673 2001-02-17 Mark Wielaard <mark@klomp.org>
675 * java/util/TimerTask.java: New version from Classpath.
677 2001-02-17 Mark Wielaard <mark@klomp.org>
679 Remerge with Classpath
680 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
681 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
682 (readByte): Use convertToByte().
683 (readChar): Use convertToChar().
684 (readInt): Use convertToInt().
685 (readLong): Use convertToLong().
686 (readShort): Use convertToShort().
687 (readUnsignedByte): Use convertToUnsignedByte().
688 (readUnsignedShort): Use convertToUnsignedShort().
689 (readUTF): Use convertToUTF().
691 (convertToBoolean): Resurrected.
692 (convertToByte): Ditto.
693 (convertToChar): Ditto.
694 (convertToInt): Ditto.
695 (convertToLong): Ditto.
696 (convertToShort): Ditto.
697 (convertToUnsignedByte): Ditto.
698 (convertToUnsignedShort): Ditto.
699 (convertToUTF): Ditto.
701 2001-02-17 Mark Wielaard <mark@klomp.org>
705 2001-02-17 Mark Wielaard <mark@klomp.org>
707 * java/io/DataInputStream.java: update copyright notice
708 * java/io/PrintWriter.java: idem
709 * java/io/Reader.java: idem
710 * java/io/StreamTokenizer.java: idem
711 * java/io/StringReader.java: idem
712 * java/lang/reflect/ReflectPermission.java: idem
714 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
716 * java/util/TreeSet.java (clone): Made subclass safe, use
717 super.clone(), not new.
718 * java/util/TreeMap.java (clone): Likewise.
720 * java/util/TreeMap.java (nil): Made non-final.
721 (clone): Create new nil node for copy.
723 * java/util/HashSet.java (clone): Made subclass safe, use
724 super.clone(), not new.
726 2001-02-14 Andrew Haley <aph@redhat.com>
728 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
731 2001-02-15 Anthony Green <green@redhat.com>
733 * defineclass.cc: Don't include alloca.h.
734 (prepare_pool_entry): Convert alloca to __builtin_alloca.
735 * interpret.cc (run_normal): Ditto.
737 * java/lang/natDouble.cc (parseDouble): Ditto.
739 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
741 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
743 * java/util/Collections.java (ReverseComparator): New static class.
744 (reverseOrder): Return static instance of ReverseComparator.
746 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
747 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
748 Rectangle.clone(), not Object.clone().
750 * java/util/HashSet.java (clone): Remove try/catch.
752 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
753 * java/util/Collection.java: Likewise.
754 * java/util/Comparator.java: Likewise.
755 * java/util/Dictionary.java: Likewise.
756 * java/util/Iterator.java: Likewise.
757 * java/util/ListIterator.java: Likewise.
758 * java/util/Map.java: Likewise.
759 * java/util/Set.java: Likewise.
761 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
763 * java/util/TreeMap.java: New file.
764 * java/util/TreeSet.java: New file.
765 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
766 * Makefile.in: Rebuilt.
767 * java/util/HashSet.java (clone): Use constructor instead of calling
769 * java/util/SortedSet.java: Sync with classpath.
770 * java/util/HashMap.java (hash): Use if statement instead of ternary,
773 * java/lang/natClass.cc (getSignature): Don't try to dereference
774 param_types if it is null. Instead, take this to mean "no parameters".
775 * java/lang/TreeMap.java (TreeIterator.next): Throw
776 NoSuchElementException in preference to ConcurrentModificationException.
777 (TreeIterator.remove): Throw IllegalStateException in preference to
778 ConcurrentModificationException.
779 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
780 throw a NoSuchElementException.
781 (SubMap.lastKey): Likewise.
783 2001-02-13 Tom Tromey <tromey@redhat.com>
785 * java/io/PipedReader.java (ready): Throw IOException if pipe
787 * java/io/FilterReader.java (close): Don't clear `in'.
788 * java/io/CharArrayReader.java (mark): Throw IOException if stream
790 (read, ready, reset, skip): Added exception message.
791 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
792 Perform checkStatus check inside synchronized block.
794 2001-02-13 Tom Tromey <tromey@redhat.com>
796 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
798 2001-02-13 Tom Tromey <tromey@redhat.com>
800 Fix for PR libgcj/1351:
801 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
803 Include Thread.h and InterruptedIOException.h.
805 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
807 * java/io/BlockDataException.java: Removed.
808 * java/io/ObjectInputStream.java (readObject): Throw
809 StreamCorruptedException, not BlockDataException.
810 * Makefile.am: Remove BlockDataException.
811 * Makefile.in: Rebuild.
813 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
814 Tom Tromey <tromey@redhat.com>
816 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
819 2001-02-09 Tom Tromey <tromey@redhat.com>
821 * java/util/Timer.java: New version from Classpath.
823 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
825 * java/lang/Double.java (doubleToRawLongBits): Now native.
826 * java/lang/Float.java (floatToRawIntBits): Likewise.
827 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
828 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
830 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
832 * java/io/File.java (java.net): Imported.
833 (getAbsoluteFile): Added.
834 (getCanonicalPath): Likewise.
837 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
839 * java/lang/Byte.java: Remove redundant instanceof and null checks.
840 * java/lang/Integer.java: Likewise.
841 * java/lang/Long.java: Likewise.
842 * java/lang/Short.java: Likewise.
843 * java/lang/Double.java: Likewise.
844 (doubleToRawLongBits): New method.
845 * java/lang/Float.java: As above.
846 (floatToRawIntBits): New method.
848 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
849 IOException if stream closed.
851 2001-02-08 Tom Tromey <tromey@redhat.com>
853 * java/lang/Float.java (parseFloat): New method.
855 2001-02-08 Tom Tromey <tromey@redhat.com>
857 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
858 * java/io/InputStreamReader.java (ready, read): Throw IOException
859 if stream has been closed.
861 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
863 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
864 Change sources.redhat.com and sourceware.cygnus.com references to
867 2001-02-07 Tom Tromey <tromey@redhat.com>
869 Fix for PR libgcj/1906:
870 * java/text/MessageFormat.java (setLocale): Use named class
873 (format(Object,StringBuffer,FieldPosition)): Special case if
874 argument is an Object[].
876 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
878 * java/util/Arrays.java: Removed "cmp" methods.
879 (qsort): Don't use "cmp".
882 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
884 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
885 sort. Fix for PR java/1895.
887 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
889 * configure.host: Use sjlj-exceptions for Alpha.
891 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
893 * libgcj.spec.in: Don't force static libgcc into the executable.
894 * configure.in (FORCELIBGCCSPEC): Removed.
895 * configure: Rebuilt.
897 2001-01-31 Tom Tromey <tromey@redhat.com>
899 * Makefile.in: Rebuilt.
900 * Makefile.am (LTCXXCOMPILE): New macro.
902 2001-01-26 Andrew Haley <aph@redhat.com>
904 (INIT_FPE): Use a direct system call to set the handler.
906 2001-01-27 Richard Henderson <rth@redhat.com>
908 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
910 2001-01-27 Tom Tromey <tromey@redhat.com>
912 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
913 native interface structure.
915 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
917 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
919 (read (byte[], int, int)): Only call readNextBlock() if the block
920 buffer would actually be overrun. Increment blockDataPosition.
921 (callReadMethod): Propagate exceptions from invocation target.
922 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
923 exceptions from invocation target.
925 2001-01-26 Tom Tromey <tromey@redhat.com>
927 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
928 to internal representation.
929 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
930 _Jv_FindClassFromSignature.
932 2001-01-26 Warren Levy <warrenl@redhat.com>
934 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
935 and timezone if they are available on the system.
937 2001-01-24 Tom Tromey <tromey@redhat.com>
939 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
941 2001-01-24 Tom Tromey <tromey@redhat.com>
943 * Makefile.in: Rebuilt.
944 * Makefile.am (c_source_files): Added sf_fabs.c.
945 * java/lang/sf_fabs.c: New file.
947 2001-01-19 Warren Levy <warrenl@redhat.com>
949 * java/text/SimpleDateFormat.java (format): Compute hour for cases
950 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
951 correctly. Adjust properly from 0-23 clock hour.
953 2001-01-17 Mark Wielaard <mark@klomp.org>
955 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
957 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
959 * java/lang/Class.h (isInterface): Move implementation from
960 natClass.cc. Declare inline.
961 (Class): Add default constructor.
962 * java/lang/Object.h: Update comments.
963 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
964 initialize superclass, saving a call if super is already initialized.
966 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
968 * prims.cc (init_prim_class): Deleted.
969 (DECLARE_PRIM_TYPE): Rewritten.
970 * java/lang/Class.h (stdio.h): Include removed.
971 (stddef.h): Included.
972 (java/lang/reflect/Modifier.h): Likewise.
973 (Class): Contructor now takes arguments, initializes fields.
974 (initializePrim): Prototype deleted.
975 * java/lang/natClass.cc (initializePrim): Deleted.
977 2001-01-16 Warren Levy <warrenl@redhat.com>
979 * java/math/BigInteger.java: Update Copyright year.
981 2001-01-16 Hans Boehm <hans_boehm@hp.com>
983 * java/math/BigInteger.java (setShiftRight): Only do negative shift
986 2001-01-14 Mark Wielaard <mark@klomp.org>
987 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
988 (decode): Merge comments with Classpath, don't throw Exception
990 2001-01-12 Tom Tromey <tromey@redhat.com>
992 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
996 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
997 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
998 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
999 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1000 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1002 * java/lang/natSystem.cc: Include locale.h if it exists.
1003 * configure: Rebuilt.
1004 * configure.in: Check for locale.h.
1006 2001-01-11 Tom Tromey <tromey@redhat.com>
1008 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1009 (Cursor(int), getPredefinedCursor): Throw exception if argument
1012 2001-01-03 Tom Tromey <tromey@redhat.com>
1014 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1015 (getLocationOnScreen): Wrote.
1017 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1019 * Makefile.am: Re-enable dependencies.
1020 * Makefile.in: Rebuilt.
1022 2001-01-10 Warren Levy <warrenl@redhat.com>
1024 * java/math/BigDecimal.java (divide): Fixed comment.
1026 2001-01-10 Warren Levy <warrenl@redhat.com>
1028 Fix for PR libgcj/1596:
1029 * java/math/BigDecimal.java (divide): Check newScale for validity.
1030 Ensure that BigInteger.pow() is called with a non-negative value.
1031 (setScale (int)): New public method.
1032 (setScale (int,int)): New public method.
1034 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1036 Fix for PR libgcj/1338:
1037 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1038 commentChar. Fixed typos in comments.
1040 2001-01-08 Warren Levy <warrenl@redhat.com>
1042 Fix for PR libgcj/1411:
1043 * Makefile.am: Removed java/util/natTimeZone.cc.
1044 * Makefile.in: Rebuilt.
1045 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1046 missing localized timezone names.
1047 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1048 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1049 (init_properties): Set user.timezone property.
1050 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1051 default timezone names; removed non-standard ones. Use standard
1053 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1055 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1057 (getDefaultTimeZoneId): Removed.
1059 * java/util/natTimeZone.cc: Removed.
1061 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1063 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1064 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1065 (_Jv_GetArrayClass): New inline function.
1066 (arrayclass): New field.
1067 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1068 _Jv_GetArrayElementFromElementType.
1069 (_Jv_NewPrimArray): Ditto.
1070 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1071 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1072 Set Modifier::ABSTRACT.
1073 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1074 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1075 Now synchronized. Array classes are now referenced from
1076 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1077 Set array classes' accessibility flags correctly. Optimize so that
1078 all array classes share the same IDT.
1079 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1080 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1081 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1082 in superclasses from overwriting classes own fields.
1083 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1084 Modifier::isAbstract().
1085 (null_idt): New static field.
1086 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1088 (_Jv_IndexOf): Made inline.
1089 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1091 2001-01-08 Tom Tromey <tromey@redhat.com>
1093 Fix for PR java/1586:
1094 * Makefile.in: Rebuilt.
1095 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1097 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1099 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1100 from the c++ compiler.
1101 * Makefile.in: Rebuilt.
1103 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1105 All files with updated copyright.
1106 * prims.cc (class _Jv_PrimClass): Removed.
1107 (init_prim_class): New function.
1108 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1109 `_Jv_PrimClass' in primitive type declarations. Assign to the
1110 value returned by `init_prim_class.'
1111 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1112 primitive type declarations.
1113 (JvPrimClass): Cast to `jclass' removed.
1114 * java/lang/Class.h (Class): New constructor.
1115 (Class): New copy constructor.
1116 (initializePrim): New prototype.
1117 (_Jv_PrimClass): Field removed.
1118 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1119 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1120 (class java::lang::Object): `finalize' moved up front.
1121 * java/lang/natClass.cc
1122 (isAssignableFrom): Turned outline.
1123 (isInstance): Likewise.
1124 (isInterface): Likewise, fixed indentation.
1125 (initializePrim): New function.
1127 2001-01-07 Anthony Green <green@redhat.com>
1129 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1131 * Makefile.in: Rebuilt.
1133 * scripts/TexinfoDoclet.java: New file.
1135 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1136 doc/java-awt-color.texi, doc/java-lang.texi,
1137 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1138 doc/java-awt-event.texi, doc/java-net.texi,
1139 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1140 doc/java-awt-image.texi, doc/java-security.texi,
1141 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1142 doc/java-text.texi, doc/java-beans-beancontext.texi,
1143 doc/java-util-jar.texi, doc/java-beans.texi,
1144 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1145 doc/java-lang-ref.texi: New files.
1147 2001-01-07 Anthony Green <green@redhat.com>
1149 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1150 be used for both input and output, so don't clear doInput.
1152 * java/lang/StringBuffer.java: Fix comments.
1154 2001-01-06 Anthony Green <green@redhat.com>
1156 * java/beans/PropertyDescriptor.java: Fix comment.
1157 * java/io/PushbackReader.java: Fix comment.
1158 * java/io/ObjectStreamClass.java: Fix comment.
1159 * java/io/DataInputStream.java: Fix comment.
1160 * java/io/PipedInputStream.java: Fix comments.
1161 * java/io/PipedReader.java: Fix comments.
1162 * java/sql/DatabaseMetaData.java: Fix comments.
1164 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1166 * java/io/PipedReader: Synchronize on "lock" instead of this.
1168 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1170 * java/lang/Thread.java: Update comment.
1172 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1173 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1174 * java/io/PipedReader: New implementation based on new
1176 * java/io/PipedWriter: Updated to match new PipedReader.
1178 2001-01-03 Tom Tromey <tromey@redhat.com>
1180 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1181 (getViewportSize): Insets include scrollbar size.
1182 (doLayout): Finished.
1183 (getScrollPosition): Wrote.
1184 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1186 2001-01-02 Tom Tromey <tromey@redhat.com>
1188 * java/awt/ScrollPane.java: Wrote.
1189 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1192 * java/awt/Panel.java (Panel()): Fixed.
1194 * java/awt/Component.java (isShowing): Return false if no peer
1195 exists, and true if component is visible and no parent exists.
1196 (getLocationOnScreen): Wrote.
1197 (getPreferredSize): Removed FIXME comment.
1198 (getMinimumSize): Likewise.
1199 (getAlignmentX, getAlignmentY): Wrote.
1201 (requestFocus): Wrote.
1202 (transferFocus): Wrote.
1203 (findNextFocusComponent): New method.
1204 (hasFocus()): Wrote.
1205 (checkImage): Wrote.
1206 (enableEvents): Call setEventMask on the peer.
1208 * java/awt/Container.java (list): Use super.list() to print self.
1209 (findNextFocusComponent): New method.
1210 (setLayout): Call invalidate.
1211 (findComponentAt): Wrote.
1213 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1215 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1216 the correct versions of various linuxthreads functions get linked.
1217 * Makefile.in: Rebuilt.
1218 * java/lang/natThread.cc (finalize_native): New static function. Call
1219 _Jv_ThreadDestroyData.
1220 (initialize_native): Register finalizer for "data".
1221 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1222 (_Jv_ThreadDestroyData): New prototype.
1223 * include/win32-threads.h: Ditto.
1224 * include/no-threads.h: Ditto.
1225 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1226 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1227 move mutex and condition variable destroy code from:
1228 (really_start): ...here.
1229 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1230 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1231 (_Jv_ThreadDestroyData): Implemented.
1232 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1233 (_Jv_AllocArray): Ditto.
1235 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1237 * java/sql/DriverManager.java (getConnection): Don't set user/password
1240 2000-12-27 Warren Levy <warrenl@redhat.com>
1242 Fix for PR libgcj/1358:
1243 * java/lang/System.java: Update Copyright date properly.
1244 * java/util/Calendar.java: Fix typo in comment.
1245 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1246 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1247 initialize times. Spec says to set H:M:S values to zero only if
1249 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1250 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1251 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1252 timezones and GMT offsets, being careful to account for units of
1253 milliseconds vs. seconds.
1255 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1257 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1258 not be assigned to Object.
1260 Fix for PR libgcj/1516:
1261 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1263 (can_widen): Declared inline. Remove redundant checks for void
1264 arguments and char->short conversion. Add special case for boolean
1266 (ffi_type): Declared inline.
1267 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1269 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1271 * java/sql/SQLWarning.java: Fixed typo in comment.
1273 2000-12-26 Tom Tromey <tromey@redhat.com>
1275 * java/awt/MenuItem.java (paramString): Now protected.
1277 * java/awt/MenuShortcut.java: Implements Serializable.
1279 * java/awt/MenuBar.java: Rewrote from scratch.
1281 * java/awt/MenuComponent.java (removeNotify): Wrote.
1282 Implements Serializable.
1284 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1287 * java/awt/CheckboxMenuItem.java: Wrote.
1289 2000-12-25 Tom Tromey <tromey@redhat.com>
1291 * java/awt/MenuContainer.java: Fixed typo.
1293 * Makefile.in: Rebuilt.
1294 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1295 * java/awt/SystemColor.java: New file.
1297 * java/awt/Color.java (rgba): Now package-private.
1299 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1301 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1304 * java/awt/MenuItem.java (addNotify): New method.
1305 (MenuItem(String,MenuShortcut)): New constructor.
1306 (setLabel): Notify peer of change.
1307 (setEnabled): Likewise.
1309 * java/awt/GridLayout.java (toString): New method.
1311 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1312 (FlowLayout): Check for LEADING and TRAILING.
1313 (setAlignment): Likewise.
1314 (layoutContainer): Handle component orientation.
1316 * java/awt/Component.java (orientatin): New field.
1317 (setComponentOrientation): Wrote.
1318 (getComponentOrientation): Wrote.
1320 * java/awt/Event.java (Event): Implements Serializable.
1321 (consumed): New field for serialization.
1322 * java/awt/Dimension.java (Dimension): Implements Serializable.
1323 * java/awt/Cursor.java (Cursor): Implements Serializable.
1324 * java/awt/Container.java (Container): No longer abstract.
1326 * java/awt/Choice.java: Wrote.
1327 * java/awt/Checkbox.java: Wrote.
1328 * java/awt/ItemSelectable.java: Documented.
1329 * java/awt/CheckboxGroup.java: Wrote.
1331 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1333 (getSize): Likewise.
1335 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1337 * java/io/FileDescriptor.java: Initialize fd to -1.
1338 Remove default constructor.
1340 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1342 * java/lang/mprec.h: Change C9X reference to refer to C99.
1344 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1346 * java/lang/Throwable.java (trace_enabled): New static field.
1347 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1348 trace_enabled not set.
1349 * prims.cc (main_init): Turn off trace_enabled while creating
1350 default exception objects.
1352 2000-12-21 Tom Tromey <tromey@redhat.com>
1354 * java/beans/PropertyChangeListener.java: Extends EventListener.
1355 * java/beans/VetoableChangeListener.java: Extends EventListener.
1357 * java/util/zip/Deflater.java (update, init): Now private.
1359 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1361 * java/util/BasicMapEntry.java: Re-added.
1362 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1363 (putAll): Test for BasicMapEntry.
1364 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1365 (putAll): Test for BasicMapEntry.
1366 Change references from `HashMap.Entry' to `Entry' in various places.
1367 * Makefile.am: Add BasicMapEntry.java.
1368 * Makefile.in: Rebuilt.
1370 2000-12-18 Warren Levy <warrenl@redhat.com>
1372 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1373 need to set timezone to a valid non-null value. Partial fix for
1376 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1378 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1380 * java/awt/Button.java (addNotify): Likewise.
1381 * java/awt/Label.java (addNotify): Likewise.
1382 * java/awt/Panel.java (addNotify): Likewise.
1383 * java/awt/Scrollbar.java (addNotify): Likewise.
1384 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1385 Remove redundant null checks.
1387 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1389 * COPYING: Update to current
1390 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1391 to 19yy as example year in copyright notice).
1393 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1395 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1396 end-of-stream if avail_in is 0.
1398 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1400 * java/util/ArrayList.java (data): Declare transient.
1401 (serialPersistantFields): Removed.
1402 (readObject): Use defaultReadObject(), not readFields().
1403 (writeObject): Use defaultWriteObject(), not writeFields().
1405 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1407 * java/util/Hashtable.java (put): Remove `last' variable.
1408 Link new entry to head of list.
1409 * java/util/HashMap.java (put): Ditto.
1411 2000-12-15 Tom Tromey <tromey@redhat.com>
1413 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1414 loader to Class.forName.
1416 2000-12-14 Tom Tromey <tromey@redhat.com>
1418 * java/util/ResourceBundle.java
1419 (getBundle(String,Locale,ClassLoader)): New method.
1420 (trySomeGetBundle): Added `loader' argument.
1421 (partialGetBundle): Likewise.
1423 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1424 maximumFractionDigits, maximumIntegerDigits,
1425 minimumFractionDigits, minimumIntegerDigits): Now
1428 * java/lang/Thread.java (checkAccess): Now final.
1430 * java/lang/RuntimePermission.java: Class now final.
1432 * java/io/StringWriter.java (StringWriter(int)): Now public.
1434 * java/io/SerializablePermission.java (legal_names): Now private.
1436 * java/lang/Character.java: Updated UnicodeBlock constants.
1437 * scripts/blocks.pl: Special case private use and surrogate
1440 2000-12-12 Tom Tromey <tromey@redhat.com>
1442 * Makefile.in: Rebuilt.
1443 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1445 (GCJCOMPILE): Use it.
1448 2000-12-11 Tom Tromey <tromey@redhat.com>
1450 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1451 New static final fields.
1453 * scripts/classes.pl (scan): Skip lines with leading `*'.
1454 Fix for PR libgcj/378.
1456 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1458 * configure.in: Remove check for -fuse-divide-subroutine.
1459 * configure: Rebuilt.
1461 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1463 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1465 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1467 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1468 Remove BasicMapEntry.java and Bucket.java.
1469 * Makefile.in: Rebuilt.
1470 * java/util/HashMap.java: Rewritten.
1471 * java/util/HashSet.java: Imported from classpath.
1472 * java/util/WeakHashMap.java: Imported from classpath.
1473 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1474 * java/util/Bucket.java: Deleted.
1475 * java/util/BasicMapEntry.java: Deleted.
1476 * java/util/Collections.java (search): Use a for-loop, not iterator
1478 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1479 of elements in source.
1480 (max): Use a for-loop.
1482 (reverse): Keep track of positions instead of using Iterator's
1483 nextIndex() and previousIndex().
1484 (shuffle(List)): Initialize defaultRandom if required using
1485 double-check thread safety idiom. Call two-argument shuffle method
1486 using defaultRandom.
1487 (defaultRandom): New field.
1488 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1489 using previousIndex() and nextIndex().
1490 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1491 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1492 * java/util/AbstractMap.java (toString): Use StringBuffer.
1493 * java/lang/ref/PhantomReference.java: Imported from classpath.
1494 * java/lang/ref/SoftReference.java: Ditto.
1495 * java/lang/ref/Reference.java: Ditto.
1496 * java/lang/ref/WeakReference.java: Ditto.
1497 * java/lang/ref/ReferenceQueue.java: Ditto.
1499 2000-12-10 Richard Henderson <rth@redhat.com>
1501 * configure.host: Recognize alpha*-*, not alphaev6-*.
1503 2000-12-09 Anthony Green <green@redhat.com>
1505 * configure.host: Enable interpreter for Alpha.
1507 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1509 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1510 (ZIP): Points at fastjar instead of zip.
1511 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1512 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1513 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1514 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1515 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1516 ($(x_java_source_files:.java=.class):): Likewise.
1517 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1519 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1520 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1521 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1522 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1523 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1524 gnu/gcj/runtime/VMClassLoader.h:,
1525 java/io/ObjectInputStream$$GetField.h:,
1526 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1527 (Makefile.in): Rebuilt.
1529 2000-12-08 Tom Tromey <tromey@redhat.com>
1532 * configure: Rebuilt.
1533 * configure.in: Use echo, not `:', to create .d files.
1535 2000-12-08 Warren Levy <warrenl@redhat.com>
1537 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1538 NullPointerException so proper check of offset can be done.
1540 2000-12-08 Warren Levy <warrenl@redhat.com>
1542 * java/io/FileInputStream.java (close): Check if the fd is valid.
1543 * java/io/RandomAccessFile.java (close): Ditto.
1544 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1545 * java/net/PlainSocketImpl.java (close): Ditto.
1547 2000-12-06 Tom Tromey <tromey@redhat.com>
1549 * java/awt/GridBagConstraints.java: Filled in values for static
1552 * java/util/BitSet.java: Updated copyright notice.
1554 * Makefile.in: Rebuilt.
1555 * Makefile.am (awt_java_source_files): Added new file.
1556 * java/awt/GridBagConstraints.java: New file.
1558 2000-12-05 Tom Tromey <tromey@redhat.com>
1560 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1561 Now package-private, not protected.
1562 * java/text/DateFormatSymbols.java (equals): Now private.
1563 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1564 * java/util/BitSet.java: Class no longer final.
1566 2000-12-04 Warren Levy <warrenl@redhat.com>
1568 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1569 out code dependent on compiler and library changes.
1571 2000-12-04 Warren Levy <warrenl@redhat.com>
1573 * java/io/FilePermission.java: Made class final per spec.
1574 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1575 method name to match spec (fixed typo).
1576 * java/util/LinkedList.java: Implements List.
1578 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1580 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1581 Edgar Villanueva <edgarvil@home.com>.
1583 2000-12-03 Tom Tromey <tromey@redhat.com>
1585 * java/awt/geom/Point2D.java: Added protected constructor.
1586 (equals): New method.
1587 (Float.setLocation(float,float)): New method.
1588 * java/awt/geom/Dimension2D.java: Added protected constructor.
1589 * java/awt/geom/AffineTransform.java: Made all constants public.
1590 (concatenate): Fixed typo in name.
1591 * java/awt/event/WindowAdapter.java: Class now abstract.
1592 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1593 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1596 * java/awt/AWTError.java: Extend Error, not
1597 IllegalStateException.
1599 * Makefile.in: Rebuilt.
1600 * Makefile.am (awt_java_source_files): Added new file.
1601 * java/awt/geom/RoundRectangle2D.java: New file.
1603 * Makefile.in: Rebuilt.
1604 * Makefile.am (awt_java_source_files): Added new file.
1605 * java/awt/FlowLayout.java: New file.
1607 * Makefile.in: Rebuilt.
1608 * Makefile.am (awt_java_source_files): Added new file.
1609 * java/awt/GridLayout.java: New file.
1611 2000-12-02 Tom Tromey <tromey@redhat.com>
1613 * Makefile.in: Rebuilt.
1614 * Makefile.am (awt_java_source_files): Added new files.
1615 * java/awt/CardLayout.java: New file.
1616 * java/awt/AWTPermission.java: New file.
1618 2000-12-01 Tom Tromey <tromey@redhat.com>
1620 * java/util/Vector.java (insertElementAt): Unconditionally
1621 increment elementCount.
1622 (removeRange): Clear unused slots in vector.
1624 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1626 * java/lang/natMath.cc: Declare fabsf() function.
1627 * java/lang/mprec.h: Don't include math.h.
1628 * java/lang/dtoa.c: Include string.h.
1629 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1632 From Adam Welc <welc@cs.purdue.edu>:
1633 * java/util/LinkedList.java (removeFirst): Update `first' field.
1634 Handle the last == first case.
1635 (removeLast): Update `last' field. Handle the last == first case.
1637 2000-12-01 Warren Levy <warrenl@cygnus.com>
1639 * Makefile.am: Added entries for new java.sql modules.
1640 * Makefile.in: Rebuilt.
1642 2000-12-01 Warren Levy <warrenl@cygnus.com>
1644 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1645 that aren't quite 1.2 compatible yet.
1647 2000-11-30 Warren Levy <warrenl@cygnus.com>
1649 * java/sql/Array.java: New file from classpath.
1650 * java/sql/BatchUpdateException.java: Ditto.
1651 * java/sql/Blob.java: Ditto.
1652 * java/sql/Clob.java: Ditto.
1653 * java/sql/Ref.java: Ditto.
1654 * java/sql/SQLData.java: Ditto.
1655 * java/sql/SQLInput.java: Ditto.
1656 * java/sql/SQLOutput.java: Ditto.
1657 * java/sql/Struct.java: Ditto.
1658 * java/sql/CallableStatement.java: Merged file from claspath.
1659 * java/sql/Connection.java: Ditto.
1660 * java/sql/DataTruncation.java: Ditto.
1661 * java/sql/DatabaseMetaData.java: Ditto.
1662 * java/sql/DriverManager.java: Ditto.
1663 * java/sql/PreparedStatement.java: Ditto.
1664 * java/sql/ResultSet.java: Ditto.
1665 * java/sql/ResultSetMetaData.java: Ditto.
1666 * java/sql/SQLException.java: Ditto.
1667 * java/sql/SQLWarning.java: Ditto.
1668 * java/sql/Statement.java: Ditto.
1669 * java/sql/Types.java: Ditto.
1671 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1673 * java/lang/natSystem.cc (init_properties): Set user.language and
1675 * configure.in: Check for setlocale.
1676 * configure: Rebuilt.
1677 * include/config.h.in: Rebuilt.
1679 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1680 the infate() call didn't deliver any output. Throw a ZipException if
1681 the needsDictionary() call returns true.
1682 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1683 * java/io/InputStreamReader: Use the default buffer size for the
1684 contained BufferedInputStream.
1686 2000-11-28 Warren Levy <warrenl@cygnus.com>
1688 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1689 more time zone entries.
1690 * java/text/SimpleDateFormat.java (format): Added case for
1693 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1695 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1696 directly rather than read() in all cases. Make primitive read
1697 implementations more efficient, as defined in JDK online docs.
1698 (skipBytes): Behave like the JDK's implementation.
1699 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1700 closed stream with checkStatus() whenever an IOException can be
1702 (checkStatus): New private method.
1704 2000-11-27 Warren Levy <warrenl@cygnus.com>
1706 * Makefile.am: Added natTimeZone.cc.
1707 * Makefile.in: Rebuilt.
1708 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1709 * java/text/DateFormatSymbols.java (ampms): Made package private.
1710 (eras): Made package private.
1711 (months): Made package private.
1712 (shortMonths): Made package private.
1713 (shortWeekdays): Made package private.
1714 (weekdays): Made package private.
1715 (formatPrefixes): New private field.
1716 (localPatternCharsDefault): Made private.
1717 (dateFormats): New package private field.
1718 (timeFormats): New package private field.
1719 (formatsForKey): New private method.
1720 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1721 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1722 * java/text/SimpleDateFormat.java: Merged with Classpath.
1723 * java/util/TimeZone.java: Merged with Classpath.
1724 * java/util/natTimeZone.cc: New file.
1726 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1728 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1729 (addElement): Don't increment elementCount twice. Doh.
1730 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1731 array needs to be expanded.
1733 * java/util/Collections.java (UnmodifiableCollection): Implement
1735 (UnmodifiableList): Throw UnsupportedOperationException from
1736 modification methods. Set `l' from the one-parameter constructor.
1737 (UnmodifiableMap): Implement toString().
1738 (SynchronizedCollection): Ditto.
1739 (SynchronizedList): Set `l' from the one-parameter constructor.
1740 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1741 (SynchronizedMap): Implement toString().
1743 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1745 * javax/naming/NameParser.java,
1746 javax/naming/directory/AttributeInUseException.java,
1747 javax/naming/directory/AttributeModificationException.java,
1748 javax/naming/directory/InvalidAttributeIdentifierException.java,
1749 javax/naming/directory/InvalidAttributesException.java,
1750 javax/naming/directory/InvalidAttributeValueException.java,
1751 javax/naming/directory/InvalidSearchControlsException.java,
1752 javax/naming/directory/InvalidSearchFilterException.java,
1753 javax/naming/directory/NoSuchAttributeException.java,
1754 javax/naming/directory/SchemaViolationException.java: New files.
1756 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1758 * javax/naming/InitialContext.java (rebind): Implement.
1759 (unbind): Implement.
1760 (rename): Implement.
1762 (listBindings): Implement.
1763 (destroySubcontext): Implement.
1764 (createSubcontext): Implement.
1765 (lookupLink): Implement.
1766 (getNameParser): Implement.
1767 (composeName): Implement.
1768 (addToEnvironment): Implement.
1770 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1772 * javax/naming/AuthenticationException.java,
1773 javax/naming/AuthenticationNotSupportedException.java,
1774 javax/naming/CannotProceedException.java,
1775 javax/naming/CommunicationException.java,
1776 javax/naming/ConfigurationException.java,
1777 javax/naming/ContextNotEmptyException.java,
1778 javax/naming/InsufficientResourcesException.java,
1779 javax/naming/InterruptedNamingException.java,
1780 javax/naming/InvalidNameException.java,
1781 javax/naming/LimitExceededException.java,
1782 javax/naming/LinkException.java,
1783 javax/naming/LinkLoopException.java,
1784 javax/naming/MalformedLinkException.java,
1785 javax/naming/NameAlreadyBoundException.java,
1786 javax/naming/NameNotFoundException.java,
1787 javax/naming/NamingSecurityException.java,
1788 javax/naming/NoPermissionException.java,
1789 javax/naming/NotContextException.java,
1790 javax/naming/PartialResultException.java,
1791 javax/naming/ReferralException.java,
1792 javax/naming/ServiceUnavailableException.java,
1793 javax/naming/SizeLimitExceededException.java,
1794 javax/naming/TimeLimitExceededException.java: New files.
1796 * javax/naming/Name.java (clone): New method.
1797 (compareTo): New method.
1798 (isEmpty): New method.
1799 (getAll): New method.
1800 (getPrefix): New method.
1801 (getSuffix): New method.
1802 (startsWith): New method.
1803 (endsWith): New method.
1804 (addAll): New method.
1805 (addAll): New method.
1808 (remove): New method.
1810 * javax/naming/Context.java (lookup): New method.
1811 (rebind): New method.
1812 (unbind): New method.
1813 (rename): New method.
1815 (listBindings): New method.
1816 (destroySubcontext): New method.
1817 (createSubcontext): New method.
1818 (lookupLink): New method.
1819 (getNameParser): New method.
1820 (composeName): New method.
1821 (addToEnvironment): New method.
1822 (removeFromEnvironment): New method.
1823 (getEnvironment): New method.
1824 (close): New method.
1825 (getNameInNamespace): New method.
1827 * javax/naming/InitialContext.java (lookup): New method.
1828 (rebind): New method.
1829 (unbind): New method.
1830 (rename): New method.
1832 (listBindings): New method.
1833 (destroySubcontext): New method.
1834 (createSubcontext): New method.
1835 (lookupLink): New method.
1836 (getNameParser): New method.
1837 (composeName): New method.
1838 (addToEnvironment): New method.
1839 (removeFromEnvironment): New method.
1840 (getEnvironment): New method.
1841 (close): New method.
1842 (getNameInNamespace): New method.
1844 2000-11-26 Tom Tromey <tromey@cygnus.com>
1846 * Makefile.in: Rebuilt.
1847 * Makefile.am (core_java_source_files): Added
1848 RuntimePermission.java.
1849 * java/lang/RuntimePermission.java: Imported from Classpath.
1850 * java/lang/Thread.java (getContextClassLoader): Now
1851 synchronized. Added security code.
1852 (setContextClassLoader): Likewise.
1854 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1855 length field of array.
1856 (_Jv_NewPrimArray): Likewise.
1857 * gcj/array.h (__JArray): `length' field now const. Added
1860 2000-11-26 Anthony Green <green@redhat.com>
1862 * javax/naming/spi/NamingManager.java,
1863 javax/naming/spi/ObjectFactory.java,
1864 javax/naming/spi/InitialContextFactory.java,
1865 javax/naming/spi/InitialContextFactoryBuilder.java,
1866 javax/naming/RefAddr.java, javax/naming/Reference.java,
1867 javax/naming/NamingException.java, javax/naming/Context.java,
1868 javax/naming/Referenceable.java,
1869 javax/naming/directory/InitialDirContext.java,
1870 javax/naming/directory/DirContext.java,
1871 javax/naming/directory/Attributes.java,
1872 javax/naming/directory/Attribute.java,
1873 javax/naming/StringRefAddr.java,
1874 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1875 javax/naming/InitialContext.java,
1876 javax/naming/NoInitialContextException.java: New files.
1878 2000-11-25 Anthony Green <green@redhat.com>
1880 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1881 (_Jv_NewPrimArray): Likewise.
1882 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1883 (class JArray): Removed constructor.
1885 * java/lang/Thread.java (context_class_loader): New private data.
1886 (getContextClassLoader): New method.
1887 (setContextClassLoader): New method.
1888 (Thread): Initialize context_class_loader.
1890 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1891 (getResource): Rename to findResource.
1892 (findResource): New method. Used to be getResource.
1893 (getResourceAsStream): Deleted.
1894 (jarFileize): Extracted logic from URLClassLoader constructor into
1895 this new private method.
1896 (addURL): New protected method.
1897 (URLClassLoader): Call jarFileize. Use addElement instead of
1899 (findResources): New method.
1901 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1902 (getResource): Implement correct logic.
1903 (findResource): New method.
1904 (getResources): New method.
1905 (findClass): Create a ClassNotFoundException with the name of the
1906 class rather than nothing at all.
1907 (defineClass) Only throw ClassFormatError.
1909 * java/lang/Class.java (forName): New method.
1910 * java/lang/Class.h (forName): New method.
1911 * java/lang/natClass.cc (forName): New method.
1913 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1915 * java/lang/System.java (setProperties): Only call init_properties()
1916 if properties is null.
1917 (getProperties): Ditto.
1918 (getProperty): Ditto.
1919 (setProperty): Call init_properties if properties are null.
1920 (prop_init): Remove field.
1921 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1922 method. Check for null properties after synchronizing instead of
1923 prop_init flag. Set the properties field last for thread safety.
1925 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1926 test for gcj.dumpobjects property and enable object stream dumping
1928 (dumpElement): No longer native.
1929 (dumpElementln): Ditto.
1930 (setDump): Do not define.
1931 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1932 (dumpElementln): Removed.
1935 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1937 * configure: Rebuilt.
1938 * Makefile.in: Rebuilt.
1939 * Makefile.am (built_java_source_files): Add Configuration.java.
1940 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1941 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1942 Create `gnu' directory in the build tree.
1943 * gnu/classpath/Configuration.java.in: New file.
1945 2000-11-24 Tom Tromey <tromey@cygnus.com>
1947 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1949 (_Jv_NewPrimArray): Likewise.
1951 * gcj/array.h (__JArray): `length' field now const. Added
1953 (class JArray): Added constructor.
1955 2000-11-23 Mark Wielaard <mark@klomp.org>
1957 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1960 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1962 * java/util/Vector.java: Improve exception messages.
1963 (Vector): Check initialCapacity for IllegalArgumentException.
1964 (tromToSize): Don't check for elementCount == elementData.length
1966 (toArray): Don't try to set null marker if target array is the same
1967 length as the vector.
1969 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1971 * Makefile.in: Rebuilt.
1972 * Makefile.am (core_java_source_files): Added Collections.java.
1973 * java/util/List.java: Merged from classpath.
1974 * java/util/Vector.java: Ditto.
1975 * java/util/Collections.java: From classpath.
1976 * java/util/ArrayList.java (addAll(Collection)): Call
1977 addAll(int,Collection) instead of duplicating code.
1978 (indexOf): Clean up int initialization.
1979 (clear): Set cleared array entries to null, to allow garbage
1981 * java/util/List.java: Minor formatting fixes.
1982 * java/util/SimpleTimeZone.java: ditto.
1984 2000-11-18 Tom Tromey <tromey@cygnus.com>
1986 * Makefile.in: Rebuilt.
1987 * Makefile.am (core_java_source_files): Added new files.
1988 * java/lang/reflect/ReflectPermission.java: New class.
1989 * java/io/FileFilter.java: From Classpath
1990 * java/io/FilePermission.java: From Classpath.
1992 2000-11-17 Tom Tromey <tromey@cygnus.com>
1994 * java/lang/reflect/AccessibleObject.java (isAccessible,
1995 setAccessible): Now public.
1997 * java/lang/natString.cc: Include Locale.h.
1998 (toUpperCase): Added `locale' argument. Handle locale
2000 (toLowerCase): Added `locale' argument. Handle locale
2002 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2003 CAPITAL_I): New defines.
2004 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2007 (toUpperCase, toLowerCase): New methods. Variants which accept
2010 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2013 * java/util/PropertyPermission.java: Re-merged from Classpath.
2015 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2017 * java/text/StringCharacterIterator.java: Reindented.
2018 (setText): New method.
2020 2000-11-17 Mark Wielaard <mark@klomp.org>
2022 Merge with Classpath (changes by Bryce McKinlay)
2023 * java/util/jar/*.java: Reformat all to unofficial standard coding
2024 style. No changes of substance.
2026 2000-11-17 Mark Wielaard <mark@klomp.org>
2028 * java/util/zip/*.java: Javadoc updates.
2030 2000-11-17 Tom Tromey <tromey@cygnus.com>
2032 * java/text/CollationKey.java: Implement Comparable.
2033 (compareTo(Object)): New method.
2034 * java/text/Collator.java (compare(Object,Object)): New method.
2035 Implement Comparator.
2037 * java/util/zip/InflaterInputStream.java (available): New method.
2038 (close): New method.
2039 (read, available, skip, fill): Throw exception if stream closed.
2040 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2041 getNextEntry): Throw exception if closed.
2043 2000-11-16 Tom Tromey <tromey@cygnus.com>
2045 * java/io/PushbackReader.java: Merged with Classpath.
2046 * java/util/Arrays.java: Updated from Classpath.
2048 * scripts/blocks.pl: New file.
2049 * java/lang/Character.java (Subset): New class.
2050 (UnicodeBlock): New class.
2052 * java/lang/Math.java (toDegrees, toRadians): New methods.
2054 * java/lang/Float.java: Implement Comparable.
2055 (compareTo): New methods.
2056 * java/lang/Double.java: Implement Comparable.
2057 (compareTo): New methods.
2059 2000-11-16 Warren Levy <warrenl@cygnus.com>
2061 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2063 (listeners): Made transient.
2064 (source): Renamed from 'bean'.
2065 (children): New field for serialization.
2066 (propertyChangeSupportSerializedDataVersion): Ditto.
2067 (serialVersionUID): Ditto.
2068 (writeObject): New serialization method.
2069 (readObject): New serialization method.
2070 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2072 (listeners): Made transient.
2073 (source): Renamed from 'bean'.
2074 (children): New field for serialization.
2075 (vetoableChangeSupportSerializedDataVersion): Ditto.
2076 (serialVersionUID): Ditto.
2077 (writeObject): New serialization method.
2078 (readObject): New serialization method.
2079 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2080 to allow constructor to have a return type (i.e. the class that the
2081 constructor constructs).
2083 2000-11-14 Tom Tromey <tromey@cygnus.com>
2085 * Makefile.in: Rebuilt.
2086 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2089 2000-11-02 Warren Levy <warrenl@cygnus.com>
2091 * java/io/ObjectInputStream.java (readObject): Added code to
2092 conditionally dump out the serialized data.
2093 Handle ENDBLOCKDATA case a bit more gracefully since the current
2094 behavior doesn't seem to work as expected.
2095 (readStreamHeader): Added code for serialized data dumper.
2096 (readNextBlock): Ditto.
2097 (readFields): Ditto.
2098 (dump): New private static field for turning on/off dumper.
2099 (setDump): New native method.
2100 (dumpElement): New native method.
2101 (dumpElementln): New native method.
2102 * java/io/natObjectInputStream.cc (setDump): New method.
2103 (dumpElement): New method.
2104 (dumpElementln): New method.
2106 2000-11-02 Warren Levy <warrenl@cygnus.com>
2108 * java/net/InetAddress.java (addr): Renamed from 'address'.
2109 (address): New field to match Serialized Form doc.
2110 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2111 (family): New serialization field.
2112 (serialVersionUID): New field.
2113 (readObject): New method.
2114 (writeObject): New method.
2115 (getFamily): New native method.
2116 (InetAddress): Set family.
2117 * java/net/natInetAddress.cc (getFamily): New method.
2118 (addr): Renamed from 'address'.
2119 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2120 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2121 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2123 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2125 * java/util/AbstractList.java (SubList): Make it a top-level private
2127 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2129 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2130 * Makefile.in: Rebuilt.
2132 2000-11-02 Tom Tromey <tromey@cygnus.com>
2134 * Makefile.in: Rebuilt.
2135 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2138 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2140 * java/util/AbstractList.java (remove): Comment out modCount increment
2141 to work around compiler bug.
2144 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2146 * java/util/AbstractList.java: Throw messages with
2147 IndexOutOfBoundsExceptions.
2148 (listIterator()): Call listIterator(0).
2149 (size): New field. Initialize to size().
2150 (hasNext): Test position against size, not size().
2151 (remove): Increment knownMod by one instead of resetting it from
2154 (SubList.upMod): Removed.
2155 (SubList.set): Don't call upMod() or update knownMod.
2156 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2157 (SubList.remove): Ditto.
2158 (SubList.addAll): Don't call backingList.size(). Increment size from
2160 (SubList.iterator): New method. Call listIterator(0).
2161 (SubList.listIterator): New method. Restore code to return an anonymous
2162 listIterator implementation (with some changes).
2163 * java/util/AbstractSequentialList.java: Throw messages with
2164 IndexOutOfBoundsExceptions.
2165 (addAll): Add a specnote.
2166 * java/util/ArrayList.java (removeRange): Get the math right.
2167 (addAll): Increment modCount _before_ creating iterator.
2168 * java/util/LinkedList.java: Rewritten, mostly.
2170 2000-11-01 Tom Tromey <tromey@cygnus.com>
2172 * scripts/encodings.pl: Added `ASCII' alias.
2173 * Makefile.in: Rebuilt.
2174 * Makefile.am (convert_source_files): Added new files.
2175 * gnu/gcj/convert/Input_ASCII.java: New file.
2176 * gnu/gcj/convert/Output_ASCII.java: New file.
2177 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2178 out-of-range characters.
2179 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2180 (read): Swap bytes if required. Treat `count' as character count,
2182 (write): Likewise. Also, handle case where iconv fails on a given
2184 (init): Put encoding into exception.
2185 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2186 (static): Call iconv_init. Rebuilt alias list.
2187 (iconv_init): New private method.
2189 2000-11-01 Tom Tromey <tromey@cygnus.com>
2191 * Makefile.in: Rebuilt.
2192 * Makefile.am (install-exec-hook): Only make a single symlink, and
2193 remove the destination before making the link.
2194 * configure: Rebuilt.
2195 * configure.in: Call AC_PROG_LN_S.
2197 2000-10-31 Warren Levy <warrenl@cygnus.com>
2199 * jni.cc: Added include of java/lang/ThreadGroup.h.
2200 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2201 per change of 2000-10-05.
2203 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2205 * java/util/BitSet.java: Updated @specnote.
2207 * java/io/Reader.java: Merge docs from classpath.
2208 (skip): Synchronize on `lock'.
2209 * java/io/FileReader.java: Import correct implementation from
2211 * java/io/StringReader.java: Merge docs from classpath.
2212 (ready): Throw IOException if stream is closed.
2214 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2216 * java/util/AbstractCollection.java (addAll): Use size() instead of
2217 hasNext() in iterator loop.
2219 (contains): Ditto. Simplify loop.
2220 (containsAll): Ditto.
2225 (toString): Ditto. Use string concatenation operators, not
2227 * java/util/AbstractList.java (addAll): Use size() instead of
2228 hasNext() in iterator loop.
2231 (indexOf): Ditto. Don't take null check outside of the loop.
2232 (iterator): Return an AbstractListItr instead of anonymous class.
2233 (lastIndexOf): Use a for loop bounded by size() instead of
2234 hasPrevious() in iterator loop.
2235 (listIterator): Return an AbstractListItr.
2236 (removeRange): Remove bounds checking code and docs.
2237 (AbstractListItr): New inner class. Code moved here from
2239 (SubList.iterator): Removed. Use default implementation from
2240 AbstractList instead.
2241 (SubList.listIterator): As above.
2242 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2243 instead of hasNext() in iterator loop.
2244 (containsValue): Ditto.
2250 (toString): Ditto. Use string concatenation operators, not
2252 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2253 bounded by size() instead of hasNext() in iterator loop.
2254 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2255 part of normal execution flow. Do an explicit null check instead.
2256 * java/util/ArrayList.java (_iSize): Rename to `size'.
2257 (_arData): Rename to `data'.
2258 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2261 (removeRange): Make protected. Don't check bounds.
2262 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2264 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2266 (addAll (int, Collection)): Check lower bounds. Simplify exception
2268 (clone): Clone the data array too.
2269 (indexOf): Inline doesEqual().
2270 (lastIndexOf): Ditto.
2271 (clear): Don't set array data to null.
2272 (set): Check lower bounds. Simplify exception string.
2273 (toArray): Correct comment.
2274 (trimToSize): Don't update modCount, this is not a structural change.
2277 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2279 (toString): Declare `bit' as long, not int.
2280 (data): Made package-private, not private.
2282 2000-10-27 Warren Levy <warrenl@cygnus.com>
2284 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2285 array elements to true.
2287 2000-10-27 Warren Levy <warrenl@cygnus.com>
2289 * Makefile.am: Added locale files from Classpath.
2290 * Makefile.in: Rebuilt.
2291 * gnu/java/locale/Calendar.java: New file.
2292 * gnu/java/locale/Calendar_de.java: New file.
2293 * gnu/java/locale/Calendar_en.java: New file.
2294 * gnu/java/locale/Calendar_nl.java: New file.
2295 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2296 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2297 serialization compatibility.
2298 (scale): Made private.
2299 (serialVersionUID): New field.
2300 * java/math/BigInteger.java (ival): Made transient.
2301 (words): Made transient.
2302 (bitCount): New serialization field.
2304 (firstNonzeroByteNum): Ditto.
2305 (lowestSetBit): Ditto.
2308 (serialVersionUID): New field.
2309 (readObject): New method.
2310 (writeObject): New method.
2311 * java/util/BitSet.java (serialVersionUID): New field.
2312 * java/util/Calendar.java: Replaced with Classpath file.
2313 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2314 of getDefault() for TimeZone or Locale instead of passing nulls.
2315 * java/util/Locale.java (serialVersionUID): New field.
2316 (writeObject): New method.
2317 (readObject): New method.
2318 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2320 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2322 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2323 (core_java_source_files): Put java.lang, java.io, and java.util here.
2324 (ordinary_java_source_files): Order so that core_java_source_files are
2326 (java_source_files): Reorder so that special_java_source_files are
2328 * configure.in: Don't pass -I flag to gcj.
2329 * Makefile.in: Rebuilt.
2330 * configure: Rebuilt.
2332 2000-10-25 Tom Tromey <tromey@cygnus.com>
2334 * Makefile.in: Rebuilt.
2335 * Makefile.am (install-exec-hook): New target.
2337 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2339 * java/util/EventObject.java: Merged from classpath.
2341 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2344 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2346 * java/util/AbstractSet.java (equals): Re-installed original code.
2348 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2350 * Makefile.am: Added rules for libgcjx library.
2351 * Makefile.in: Rebuilt.
2352 * configure.in: Added check for X.
2353 * configure: Rebuilt.
2354 * gnu/awt/LightweightRedirector.java: New file.
2355 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2356 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2357 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2358 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2359 * gnu/awt/j2d/MappedRaster.java: New file.
2360 * gnu/awt/xlib/XCanvasPeer.java: New file.
2361 * gnu/awt/xlib/XEventLoop.java: New file.
2362 * gnu/awt/xlib/XEventQueue.java: New file.
2363 * gnu/awt/xlib/XFontMetrics.java: New file.
2364 * gnu/awt/xlib/XFramePeer.java: New file.
2365 * gnu/awt/xlib/XGraphics.java: New file.
2366 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2367 * gnu/awt/xlib/XPanelPeer.java: New file.
2368 * gnu/awt/xlib/XToolkit.java: New file.
2369 * gnu/gcj/xlib/Clip.java: New file.
2370 * gnu/gcj/xlib/Colormap.java: New file.
2371 * gnu/gcj/xlib/Display.java: New file.
2372 * gnu/gcj/xlib/Drawable.java: New file.
2373 * gnu/gcj/xlib/Font.java: New file.
2374 * gnu/gcj/xlib/GC.java: New file.
2375 * gnu/gcj/xlib/Pixmap.java: New file.
2376 * gnu/gcj/xlib/Screen.java: New file.
2377 * gnu/gcj/xlib/Visual.java: New file.
2378 * gnu/gcj/xlib/WMSizeHints.java: New file.
2379 * gnu/gcj/xlib/Window.java: New file.
2380 * gnu/gcj/xlib/WindowAttributes.java: New file.
2381 * gnu/gcj/xlib/XAnyEvent.java: New file.
2382 * gnu/gcj/xlib/XButtonEvent.java: New file.
2383 * gnu/gcj/xlib/XColor.java: New file.
2384 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2385 * gnu/gcj/xlib/XConnectException.java: New file.
2386 * gnu/gcj/xlib/XEvent.java: New file.
2387 * gnu/gcj/xlib/XException.java: New file.
2388 * gnu/gcj/xlib/XExposeEvent.java: New file.
2389 * gnu/gcj/xlib/XID.java: New file.
2390 * gnu/gcj/xlib/XImage.java: New file.
2391 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2392 * gnu/gcj/xlib/natClip.cc: New file.
2393 * gnu/gcj/xlib/natColormap.cc: New file.
2394 * gnu/gcj/xlib/natDisplay.cc: New file.
2395 * gnu/gcj/xlib/natDrawable.cc: New file.
2396 * gnu/gcj/xlib/natFont.cc: New file.
2397 * gnu/gcj/xlib/natGC.cc: New file.
2398 * gnu/gcj/xlib/natPixmap.cc: New file.
2399 * gnu/gcj/xlib/natScreen.cc: New file.
2400 * gnu/gcj/xlib/natVisual.cc: New file.
2401 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2402 * gnu/gcj/xlib/natWindow.cc: New file.
2403 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2404 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2405 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2406 * gnu/gcj/xlib/natXColor.cc: New file.
2407 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2408 * gnu/gcj/xlib/natXException.cc: New file.
2409 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2410 * gnu/gcj/xlib/natXImage.cc: New file.
2411 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2412 * java/awt/EventDispatchThread.java: Start thead on creation.
2414 2000-10-20 Tom Tromey <tromey@cygnus.com>
2416 From Arno J. Klaassen:
2417 * interpret.cc: Include <stdlib.h> for alloca.
2418 * defineclass.cc: Include <stdlib.h> for alloca.
2420 * Makefile.in: Rebuilt.
2421 * Makefile.am: Include deps.mk.
2422 (GCJCOMPILE): Added -MD, -MT, and -MF.
2423 ($(javao_files)): Don't depend on libgcj.zip.
2424 (all-recursive): New target.
2425 (%.lo:%.cc): Do dependency tracking.
2426 ($(nat_headers)): Don't depend on libgcj.zip.
2427 * configure: Rebuilt.
2428 * configure.in: Make .d files and deps.mk.
2430 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2432 * exception.cc: Don't #include "exception".
2433 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2435 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2436 * Makefile.in: Updated.
2438 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2440 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2441 * java/awt/peer/ComponentPeer.java (disable): Removed.
2444 (minimumSize): Removed.
2445 (preferredSize): Removed.
2448 * java/awt/peer/ListPeer.java (addItem): Removed.
2450 (minimumSize): Removed.
2451 (preferredSize): Removed.
2452 (setMultipleSelections): Removed.
2453 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2454 (remove): Renamed from removeMenu.
2455 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2457 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2458 (remove): Renamed from removeItem.
2459 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2460 (getMinimumSize): Removed.
2461 (getPreferredSize): Removed.
2462 (minimumSize): Removed.
2463 (preferredSize): Removed.
2464 (replaceText): Removed.
2465 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2466 (preferredSize): Removed.
2467 (getMinimumSize): Removed.
2468 (getPreferredSize): Removed.
2469 (setEchoCharacter): Removed.
2471 2000-10-10 Warren Levy <warrenl@cygnus.com>
2473 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2474 * java/sql/Date.java (serialVersionUID): New field.
2475 * java/sql/Time.java (serialVersionUID): New field.
2476 * java/sql/Timestamp.java (serialVersionUID): New field.
2477 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2478 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2479 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2480 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2481 (readObject): New serialization method.
2482 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2483 (serialVersionOnStream): New field.
2484 (readObject): New serialization method.
2485 (getMonetaryDecimalSeparator): New method.
2486 (setMonetaryDecimalSeparator): New method.
2487 * java/text/NumberFormat.java (maxFractionDigits): New field.
2488 (maxIntegerDigits): New field.
2489 (minFractionDigits): New field.
2490 (minIntegerDigits): New field.
2491 (serialVersionOnStream): New field.
2492 (serialVersionUID): New field.
2493 (readObject): New serialization method.
2494 (writeObject): New serialization method.
2495 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2496 (serialVersionOnStream): New field.
2497 (serialVersionUID): New field.
2498 (readObject): New serialization method.
2500 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2502 * configure.in (GCJ): Avoid bogus error message when looking for
2503 (and not finding) gcj in the build tree.
2504 * configure: Rebuilt.
2506 2000-10-09 Tom Tromey <tromey@cygnus.com>
2508 * configure: Rebuilt.
2509 * configure.in: Include sys/types.h when checking for socklen_t.
2510 From Arno J. Klaassen.
2512 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2514 * include/jvm.h: Enable __builtin_expect().
2516 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2517 the main program. Fix for PR libgcj/341.
2519 2000-10-07 Tom Tromey <tromey@cygnus.com>
2521 * java/util/Properties.java: Merged with Classpath version.
2523 2000-10-05 Tom Tromey <tromey@cygnus.com>
2525 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2526 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2527 * java/lang/Class.h (Object): Added `class$' field.
2528 * java/lang/Object.h (Object): Added `class$' field.
2529 * defineclass.cc (ClassClass): Use `class$' form.
2530 (ClassObject): Likewise.
2531 * resolve.cc (ClassObject): Use `class$' form.
2532 (ObjectClass): Likewise.
2533 * interpret.cc (ClassError): Removed.
2534 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2536 (IntegerClass): Likewise.
2537 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2539 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2540 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2541 SerializableClass): Likewise.
2542 Include Serializable.h, Cloneable.h.
2543 * java/lang/natSystem.cc (SystemClass): Removed.
2544 (init_properties): Use `class$' form.
2545 * java/lang/natObject.cc (CloneableClass): Removed.
2546 (clone): Use `class$' form.
2547 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2548 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2549 ConstructorClass): Likewise.
2550 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2551 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2552 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2553 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2555 (ClassClass): Likewise.
2556 * include/jvm.h (StringClass): Use `class$' form.
2557 * prims.cc (ObjectClass): Removed.
2558 (_Jv_RunMain): Use `class$' form.
2559 (_Jv_AllocObject): Likewise.
2560 * jni.cc (ClassClass): Use `class$' form.
2561 (ThrowableClass): Likewise.
2562 (ObjectClass): Likewise.
2563 (MethodClass): Likewise.
2564 (ThreadGroupClass): Likewise.
2565 (NativeThreadClass): Likewise.
2566 * boehm.cc (ObjectClass): Removed.
2567 (ClassClass): Removed.
2568 (_Jv_MarkObj): Use `class$' form.
2569 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2572 2000-10-05 Warren Levy <warrenl@cygnus.com>
2574 * Makefile.am: Removed java/io/Replaceable.java and
2575 java/io/Resolvable.java.
2576 * Makefile.in: Rebuilt.
2577 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2579 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2581 (processResolution): Handle readResolve method via reflection with
2582 removal of Resolvable interface.
2583 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2584 method via reflection with removal of Replaceable interface.
2585 * java/io/Replaceable.java: Removed.
2586 * java/io/Resolvable.java: Removed.
2587 * java/security/Key.java (serialVersionUID): New field.
2588 * java/security/Provider.java (serialVersionUID): New field.
2589 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2591 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2593 * java/sql/DataTruncation.java (serialVersionUID): New field.
2594 * java/sql/SQLException.java (serialVersionUID): New field.
2595 * java/sql/SQLWarning.java (serialVersionUID): New field.
2596 * java/util/Date.java (serialVersionUID): New field.
2597 (millis): Made transient.
2598 (readObject): New method.
2599 (writeObject): New method.
2601 2000-10-05 Tom Tromey <tromey@cygnus.com>
2603 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2605 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2607 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2608 (JvRunMain): Set _Jv_argv and _Jv_argc.
2609 * java/awt/Component.java: Minor fixes.
2610 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2611 * java/awt/Toolkit.java (systemEventQueue): Removed.
2612 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2613 * java/awt/Window.java (getToolkit): Don't call super.
2614 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2615 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2616 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2617 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2618 * gnu/awt/gtk/GtkFramePeer.java: New file.
2619 * gnu/awt/gtk/GtkMainThread.java: New file.
2620 * gnu/awt/gtk/GtkToolkit.java: New file.
2621 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2622 * gnu/awt/gtk/gtkcommon.cc: New file.
2623 * gnu/awt/gtk/gtkcommon.h: New file.
2624 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2625 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2626 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2627 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2628 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2629 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2631 2000-09-30 Tom Tromey <tromey@cygnus.com>
2633 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2634 interrupted before modifying the cv's wait set.
2637 2000-09-30 Hans Boehm <boehm@acm.org>
2638 Bryce McKinlay <bryce@albatross.co.nz>
2640 Implement bitmap descriptor based marking for Boehm GC.
2642 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2643 * configure: Rebuilt.
2644 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2645 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2646 method get_finalizer().
2647 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2648 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2649 (_Jv_AllocObj): Add new jclass parameter.
2650 (_Jv_AllocArray): Ditto.
2651 (_Jv_BuildGCDescr): New prototype.
2652 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2653 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2654 get_finalizer() instead of direct finalizer vtable offset.
2655 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2656 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2657 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2658 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2659 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2660 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2661 (_Jv_DetermineVTableIndex): Ditto.
2662 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2663 calculations to account for new gc_descr field.
2664 * boehm.cc: #include gc_gcj.h.
2665 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2666 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2667 New commentary from HB. Mark the classes vtable.
2668 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2669 (GC_DEFAULT_DESCR): New #define.
2670 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2671 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2672 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2673 scan conservativly if size is less than min_heap_addr. Set vtable
2674 pointer of new object before returning.
2675 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2676 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2677 allocation for obj_kind_x.
2678 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2679 (_Jv_AllocObj): Set vtable on returned object.
2680 (_Jv_AllocArray): Ditto.
2681 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2682 (_Jv_NewPrimArray): Ditto.
2683 (_Jv_AllocObj): Declare as a friend.
2684 (_Jv_AllocArray): Ditto.
2685 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2686 from &ObjectClass into new array class. Remove offset-by-one
2687 adjustments from `method' size calculations to account for gc_descr
2690 2000-09-26 Tom Tromey <tromey@cygnus.com>
2692 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2693 `remove', not `add'.
2695 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2697 * java/lang/natSystem.cc (file_encoding): Added return statement.
2699 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2701 * Makefile.am: Re-work shell commands that exceeded command-line
2703 * Makefile.in: Rebuilt.
2705 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2707 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2708 * java/lang/natDouble.cc: Likewise.
2709 * java/lang/reflect/natMethod.cc: Likewise.
2710 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2712 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2714 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2716 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2717 * acinclude.m4: Arrange for automake to not bring in a new
2718 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2719 * Makefile.am: Leave it up to automake to subst GCJ.
2720 * aclocal.m4, configure, Makefile.in: Rebuilt.
2722 2000-09-13 Tom Tromey <tromey@cygnus.com>
2724 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2725 (get): Ensure Boolean class is initialized.
2726 * java/lang/reflect/natField.cc (BooleanClass): New define.
2727 (get): Ensure Boolean class is initialized.
2729 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2731 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2732 Initialize with anonymous class.
2733 (compareToIgnoreCase): New method.
2735 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2736 (uncaughtException): Set had_uncaught_exception.
2737 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2738 exit with error status if set.
2739 (_Jv_RunMain): Ditto.
2741 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2743 * configure: Rebuilt with new ../libtool.m4.
2745 2000-09-11 Tom Tromey <tromey@cygnus.com>
2747 * java/lang/reflect/Field.java (toString): Don't rely on
2750 2000-09-08 Tom Tromey <tromey@cygnus.com>
2752 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2753 default decoder use iconv.
2754 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2755 Let default encoder use iconv.
2756 * configure: Rebuilt.
2757 * configure.in: Check for nl_langinfo and <langinfo.h>.
2758 * java/lang/natSystem.cc (file_encoding): New function.
2759 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2761 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2763 * acinclude.m4: Simplify the tests for CC and CXX.
2764 * aclocal.m4, configure: Rebuilt.
2766 * acinclude.m4: Include libtool macros from the source tree.
2767 * aclocal.m4, configure: Rebuilt.
2769 2000-09-08 Warren Levy <warrenl@cygnus.com>
2771 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2772 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2773 * java/io/File.java (writeObject): Added.
2774 (readObject): Added.
2775 (serialVersionUID): Added.
2776 * java/io/ObjectOutputStream.java (writeObject): Initialized
2777 fieldsAlreadyWritten before recursion rather than after.
2778 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2779 * java/io/OptionalDataException.java (serialVersionUID): Added.
2780 (OptionalDataException): Made package private.
2781 * java/io/SyncFailedException.java (SyncFailedException): Removed
2782 default constructor to match spec.
2783 * java/lang/Boolean.java (serialVersionUID): Added.
2784 * java/lang/Byte.java (serialVersionUID): Added.
2785 * java/lang/Character.java (serialVersionUID): Added.
2786 * java/lang/Double.java (serialVersionUID): Added.
2787 * java/lang/Float.java (serialVersionUID): Added.
2788 * java/lang/Integer.java (serialVersionUID): Added.
2789 * java/lang/Long.java (serialVersionUID): Added.
2790 * java/lang/Number.java (serialVersionUID): Added.
2791 * java/lang/Short.java (serialVersionUID): Added.
2792 * java/lang/String.java (serialVersionUID): Added.
2793 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2795 * java/lang/reflect/InvocationTargetException.java
2796 (serialVersionUID): Added.
2797 * java/net/URL.java (handler): Made transient.
2798 (hashCode): Added field for serialization, per spec. and use
2799 cached value if available.
2800 (serialVersionUID): Added.
2801 (URL): Initialize hashCode.
2802 (set): Adjust hashCode.
2803 (readObject): New Method to initialize the protocol handler when
2805 (writeObject): New method.
2806 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2807 * java/text/Collator.java: Removed 'implements Serializable'.
2808 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2809 * java/util/Properties.java (serialVersionUID): Added.
2810 * java/util/Random.java (serialVersionUID): Added.
2811 (seed): Made private.
2812 (nextNextGaussian): Made private.
2813 (haveNextNextGaussian): Made private.
2814 * java/util/Stack.java (serialVersionUID): Added.
2815 * java/util/TimeZone.java (serialVersionUID): Added.
2816 * java/util/Vector.java (serialVersionUID): Added.
2818 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2820 * Makefile.am (Thread.h): Don't be friends with native threads
2822 * Makefile.in: Rebuilt.
2823 * java/lang/Thread.java (interrupt_flag): Make package-private.
2825 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2827 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2828 to avoid long long division.
2830 2000-09-06 Tom Tromey <tromey@cygnus.com>
2832 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2834 * java/lang/reflect/Method.java (toString): Use `getName' for
2837 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2838 `args' if method takes no parameters.
2840 Fix for PR java.lang/339:
2841 * java/lang/natPosixProcess.cc (fail): New function.
2842 (cleanup): New function.
2843 (startProcess): Use them. Create pipe so child can communicate
2844 exec failure back to parent.
2846 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2848 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2850 (send): Undo last patch. Remove the label only.
2852 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2854 * java/net/natInetAdress.cc: Ditto.
2856 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2858 2000-09-05 Tom Tromey <tromey@cygnus.com>
2860 * doc/cni.sgml: Updated from master copy.
2862 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2864 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2866 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2868 * java/lang/fdlibm.h: #undef __P if previously defined.
2869 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2870 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2874 2000-09-04 Tom Tromey <tromey@cygnus.com>
2876 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2879 2000-09-04 Anthony Green <green@redhat.com>
2881 Fix for PR java.io/203:
2882 * java/io/File.java (createTempFile): Obey directory argument.
2883 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2884 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2885 variable to set java.io.tmpdir on non-WIN32 systems.
2887 2000-09-04 Anthony Green <green@redhat.com>
2889 * java/io/File.java (deleteOnExit): New method.
2890 * gnu/gcj/runtime/FileDeleter.java: New class.
2891 * java/lang/natRuntime.cc (exit): Call
2892 FileDeleter.deleteOnExitNow()
2893 * Makefile.am: Add FileDeleter.java.
2894 * Makefile.in: Rebuilt.
2896 2000-09-02 Tom Tromey <tromey@cygnus.com>
2898 * Makefile.in: Rebuilt.
2899 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2900 environment variable.
2902 2000-09-01 Andrew Haley <aph@redhat.com>
2904 * java/io/StreamTokenizer.java: Don't throw a
2905 NumberFormatException if a field is numeric as far as the
2906 StreamTokenizer is concerned but not as far as Double.valueOf() is
2907 concerned: return a zero instead.
2909 2000-08-30 Tom Tromey <tromey@cygnus.com>
2911 * Makefile.in: Rebuilt.
2912 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2914 2000-08-28 Tom Tromey <tromey@cygnus.com>
2916 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2917 gnu/gcj/awt/ComponentDataBlitOp.java,
2918 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2919 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2920 java/awt/color/ICC_ColorSpace.java,
2921 java/awt/color/ICC_Profile.java,
2922 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2923 java/awt/image/ComponentColorModel.java,
2924 java/awt/image/ComponentSampleModel.java,
2925 java/awt/image/DataBuffer.java,
2926 java/awt/image/DataBufferByte.java,
2927 java/awt/image/DataBufferInt.java,
2928 java/awt/image/DataBufferUShort.java,
2929 java/awt/image/DirectColorModel.java,
2930 java/awt/image/IndexColorModel.java,
2931 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2932 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2933 java/awt/image/SinglePixelPackedSampleModel.java,
2934 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2935 Removed Latin-1 copyright symbols.
2936 * java/util/zip/ZipFile.java: Indentation fixes.
2938 2000-08-27 Mark Wielaard <mark@klomp.org>
2940 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2941 constructor, close can delete the file, finalize calls close.
2942 * java/util/jar/JarFile.java: Constructor that takes mode now
2945 2000-08-27 Anthony Green <green@redhat.com>
2947 * java/util/ArrayList.java, java/util/Timer.java,
2948 java/util/LinkedList.java, java/util/TimerTask.java,
2949 java/util/HashMap.java, java/util/AbstractMap.java,
2950 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2951 java/util/SortedSet.java: Imported from GNU Classpath.
2952 * Makefile.in: Rebuilt.
2953 * Makefile.am: Added new files.
2955 2000-08-26 Anthony Green <green@redhat.com>
2957 * Makefile.in: Rebuilt.
2958 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2961 * prims.cc: Include ClassLoader.h.
2962 (_Jv_RunMain): When executing jar files, classpath must be the jar
2963 file only. Lose our reference to the system ClassLoader in order
2964 to get a new one with the correct classpath.
2965 * java/lang/natSystem.cc (init_properties): When executing a jar
2966 file, only use the jar file for java.class.path.
2968 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2969 for bytecode archives.
2971 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2972 exists, but not Main-Class.
2974 2000-08-23 Mark Wielaard <mark@klomp.org>
2976 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2977 return -1 when fill() has no more data for the Inflater.
2979 2000-08-23 Mark Wielaard <mark@klomp.org>
2981 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2982 write(String) already does.
2984 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2986 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2987 to `alive_flag', call `init'.
2988 (init): New native method.
2989 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2992 2000-08-21 Mark Wielaard <mark@klomp.org>
2994 * Makefile.in: Rebuilt.
2995 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2997 (java/lang/reflect/Field.h): Likewise.
2998 (java/lang/reflect/Method.h): Likewise.
2999 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3002 2000-08-21 Tom Tromey <tromey@cygnus.com>
3004 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3007 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3009 * java/lang/natSystem.cc (init_properties): Change sourceware
3010 reference to sources.redhat.com.
3012 * include/java-props.h: Add _Jv_Jar_Class_Path.
3013 * prims.cc: Ditto. Set it from `gij -jar file' option.
3015 * java/lang/natSystem.cc (init_properties): Set java.class.path
3017 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3019 * java/util/PropertyPermission.java: Import from GNU Classpath.
3020 * Makefile.in: Rebuilt.
3021 * Makefile.am: Add java/util/PropertyPermission.java.
3022 * java/lang/System.java: Add setProperty method.
3024 * gij.cc (main): Add -jar option to execute jar files.
3025 (help): Describe -jar option.
3026 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3027 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3028 * gnu/gcj/runtime/FirstThread.java (main): New method.
3030 * java/util/jar/Attributes.java: Correct comment spelling.
3032 2000-08-20 Mark Wielaard <mark@klomp.org>
3034 * java/util/zip/Adler32.java: Make private variables really private
3035 * java/util/zip/CRC32.java: Make private variables really private
3036 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3038 * java/util/zip/InflaterInputStream.java: skip() could skip to
3040 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3041 * java/util/zip/ZipFile.java: size() new 1.2 method
3042 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3043 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3046 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3048 * java/util/jar/JarFile.java: Don't call
3049 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3052 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3054 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3055 Read the entire contents of the class file, not just what is
3058 * java/net/JarURLConnection.java: getEntry doesn't take any
3059 arguments. Return null if element is null.
3061 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3062 size from the archive, not the inflated size.
3064 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3065 java.util.zip.ZipFile.getEntry.
3067 * gij.cc (help): Change sourceware reference to
3070 2000-08-19 Tom Tromey <tromey@cygnus.com>
3072 * java/util/zip/ZipInputStream.java (createZipEntry):
3075 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3077 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3078 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3079 java/util/jar/JarInputStream.java,
3080 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3081 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3082 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3083 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3084 java/security/cert/Certificate.java,
3085 java/security/cert/CertificateEncodingException.java,
3086 java/security/cert/CertificateException.java,
3087 java/security/cert/CertificateExpiredException.java,
3088 java/security/cert/CertificateFactory.java,
3089 java/security/cert/CertificateFactorySpi.java,
3090 java/security/cert/CertificateNotYetValidException.java,
3091 java/security/cert/CertificateParsingException.java,
3092 java/security/cert/X509CRL.java,
3093 java/security/cert/X509CRLEntry.java,
3094 java/security/cert/X509Certificate.java,
3095 java/security/cert/X509Extension.java: Imported from Classpath.
3096 * java/util/Hashtable.java: Imported from Classpath.
3098 * java/util/zip/ZipInputStream.java: Create stub for
3101 * gcj/javaprims.h: Updated class list.
3103 * Makefile.in, gcj/Makefile.in: Rebuilt.
3104 * Makefile.am (ordinary_java_source_files): Add these new classes.
3106 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3108 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3109 * gnu/gcj/awt/GLightweightPeer.java: New file.
3110 * java/awt/BorderLayout.java: Implemented all methods.
3111 * java/awt/Button.java (actionListener, actionCommand): Renamed
3112 and modifier change.
3113 (addNotify): Call super.
3114 (dispatchEventImpl): New method.
3115 (getListeners): New method.
3116 (label): Made package-private, not private.
3117 * java/awt/Canvas.java: Implemented class body.
3118 * java/awt/Color.java (brighter): New method.
3119 (darker): New method.
3120 (hashCode): New method.
3121 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3122 (getGraphicsConfiguration): Delegate to
3123 getGraphicsConfigurationImpl().
3124 (getGraphicsConfigurationImpl): New method.
3125 (getToolkit): Only return value from peer if not null.
3126 (isDisplayable): Check with parent.
3127 (isShowing): No parent implies not showing.
3128 (getForeground): Check parent property if local is null.
3129 (getBackground): Likewise.
3130 (getFont): Likewise.
3131 (setForeground): Inform peer.
3132 (setBackground): Likewise
3133 (setLocale): Invalidate component.
3134 (getColorModel): Implemented.
3135 (setLocation): Invalidate, or ignore if no change.
3136 (setSize): Invalidate, or ignore if no change.
3137 (setBounds): Invalidate, or ignore if no change.
3138 (isOpaque): By default, heavyweight implies opaque.
3139 (isLightweight): Implemented.
3140 (getMaximumSize): Implemented.
3141 (doLayout): Implemented, NOP.
3142 (validate): Implemented, NOP.
3143 (invalidate): Only propagate to parent if parent was valid.
3144 (getGraphics): Implemented.
3145 (getFontMetrics): Implemented.
3146 (update): Implemented.
3147 (paintAll): Implemented.
3148 (repaint): Implemented all repaint methods.
3149 (print): Implemented.
3150 (printAll): Implemented.
3151 (createImage): Implemented.
3152 (dispatchEvent): Give the peer a chance to handle the event.
3153 (dispatchEventImpl): Dispatch paint events.
3154 (enableEvents): Lightweights enable events on parent component.
3155 (coalesceEvents): Coalesce paint events, and select event type
3157 (coalescePaintEvents): New method.
3158 (processEvent): Fix unfortunate ordering of statements, and call
3159 correct method for MOUSE_CLICKED.
3160 (processPaintEvent): New method.
3161 (addNotify): Allow container to notify children before event
3162 mask is set in peer.
3163 (addNotifyContainerChildren): New method.
3164 (removeNotify): Visibility should not change on removeNotify.
3165 (paramString): Implemented.
3166 (list): Implemented two of the list methods.
3167 * Container (myInsets): Removed, insets are managed by peer.
3168 (getInsets): Query peer.
3169 (addImpl): Fix reparenting, enable events for lightweights,
3170 initialize component array.
3171 (validate): Call doLayout in validateTree() instead.
3172 (validateTree): Do nothing if already valid. Call beginValidate(),
3173 endValidate() on peer. Call validateTree() instead of validate()
3174 for children that are containers. Mark valid after validation of
3176 (setFont): Partial implementation.
3177 (paint): Implemented.
3178 (visitChildren): New method.
3179 (visitChild): New method.
3180 (update): Implemented.
3181 (print): Implemented.
3182 (paintComponents): Implemented.
3183 (printComponents): Consider translation and clipping.
3184 (getComponentAt): Ignore invisible children. Return this if no
3186 (addNotify): Call super.
3187 (addNotifyContainerChildren): New method.
3188 (paramString): Implemented.
3189 (list): Implemented.
3190 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3192 (invokeLater): Likewise.
3193 (isDispatchThread): Likewise.
3194 * java/awt/FontMetrics (getLeading): Formula change.
3195 (getDescent): Consider leading also.
3196 (getMaxAscent): Default to getAscent().
3197 (getMaxDescent): Default to getDescent.
3198 (getMaxAdvance): Return value signifying unknown.
3199 (charWidth): Both methods implemented.
3200 (charsWidth): Implemented.
3201 (bytesWidth): Implemented.
3202 (getWidths): Implemented.
3203 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3205 (Frame): Rearragend constuctor chaining to disallow null being
3206 passed as a graphics configuration.
3207 (getTitle): Return empty string if null.
3209 (getIconImage): New method.
3210 (setIconImage): New method.
3211 (finalize): New method.
3212 (setMenuBar): Notify peer.
3213 (isResizable): New method.
3214 (setResizable): New method.
3215 (getState): New method.
3217 (remove): Implemented.
3218 (removeNotify): New method.
3219 (getFrames): New method.
3220 * java/awt/Graphics.java: Implemented body of class.
3221 * java/awt/Graphics2D.java: New file.
3222 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3223 * java/awt/Image.java: Implemented body of class.
3224 * java/awt/Panel.java (Panel): Call correct super constructor.
3225 (addNotify): Implemented.
3226 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3227 * java/awt/RenderingHints.java: New file.
3228 * java/awt/Toolkit.java (createComponent): Implemented.
3229 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3230 * java/awt/Window.java (Window): Two new constructors. Reordered
3231 constructor chaining.
3232 (getGraphicsConfigurationImpl): New method.
3233 (finalize): Call super.
3234 (addNotify): Call super.
3235 (pack): Do layout stuff.
3236 (show): Ensure that peer exists and that component is valid.
3237 (dispose): Dispose owned children.
3238 (getOwner): Simplify code, casting null pointers is valid.
3239 (getGraphicsConfiguration): Ask peer if local value is null.
3240 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3242 * java/awt/image/BufferedImage.java: New file.
3243 * java/awt/image/RasterOp.java: New file.
3244 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3245 More powerfull replacement for getColorModel().
3246 (getColorModel) Removed.
3247 (setEventMask) New method.
3248 * Makefile.am: Added new files.
3249 * Makefile.in: Rebuilt.
3251 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3253 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3254 (finit_leg_name): New global.
3255 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3256 `$finit$'. This is a backward compatibility hack.
3257 (java::lang::Class::_getMethods): Likewise.
3259 2000-08-15 Andrew Haley <aph@cygnus.com>
3261 * include/jvm.h (_Jv_HashCode): New hash code.
3263 2000-08-15 Tom Tromey <tromey@cygnus.com>
3265 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3267 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3269 * THANKS: More thanks.
3271 2000-08-10 Tom Tromey <tromey@cygnus.com>
3273 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3275 (connect): Likewise.
3277 (getOption): Likewise.
3278 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3279 case when errno not set.
3282 (receive): Likewise.
3283 (mcastGrp): Likewise.
3284 (setOption): Likewise.
3285 (getOption): Likewise.
3287 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3288 John Stracke <francis@ecal.com>
3290 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3291 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3293 (disconnect): Don't unset connected flag.
3294 (getHeaderField (String)): Call connect() if not connected.
3295 (getHeaderField (int)): Ditto.
3296 (getHeaderFieldKey): Ditto.
3297 (getHttpHeaders): Don't call connect().
3298 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3299 gotResponseVals): New fields.
3300 (getResponseCode): Call getResponseVals() conditionally.
3301 (getResponseMessage): Ditto.
3302 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3304 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3306 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3307 * Makefile.in: Rebuilt.
3308 * java/awt/Color.java (getTransparency): New method.
3309 * java/awt/Component.java: Various updates.
3310 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3311 after dealing with children.
3312 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3313 * java/awt/Window.java: Various new methods and updates.
3314 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3316 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3317 * java/awt/event/WindowEvent.java (paramString): Ditto.
3318 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3320 * java/awt/geom/Point2D.java (clone): Ditto.
3321 * java/awt/geom/RectangularShape.java (clone): Ditto.
3322 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3323 isAlphaPremultiplied): Make package-private, not private.
3325 2000-08-08 Tom Tromey <tromey@cygnus.com>
3327 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3328 surrogate characters.
3329 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3331 (write): Correct handling of surrogate characters.
3333 2000-08-07 Tom Tromey <tromey@cygnus.com>
3335 * java/lang/reflect/Method.java (hashCode): Use getName().
3336 (toString): Likewise.
3337 * java/lang/reflect/natMethod.cc (getType): Initialize
3340 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3342 * java/lang/reflect/Field.java (toString): Correct formatting.
3345 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3347 (receive): Streamlined.
3349 2000-08-05 Tom Tromey <tromey@cygnus.com>
3351 * java/io/PrintWriter.java: Merged comments from Classpath.
3352 (printlnUnsynchronized): Removed.
3353 (println()): Print the separator.
3354 (println): Call println(), not printlnUnsynchronized.
3355 (out): Now protected, to match spec.
3357 2000-08-04 Tom Tromey <tromey@cygnus.com>
3359 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3360 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3363 2000-08-03 Warren Levy <warrenl@cygnus.com>
3365 * java/io/ObjectInputStream.java (readFields): Turn off
3366 readDataFromBlock while reading via GetField.
3367 (GetField$1.get(String, Object)): Pass Class of default value to
3369 (getField): Allow for null default values.
3371 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3372 (PutField$1.put): Fixed calls of checkType in most of the put
3373 methods to pass the correct parameter.
3374 (PutField$1.put(String, Object)): Allow for null value arg.
3375 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3378 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3379 typo in spec'ed field name.
3380 (getSerialPersistentFields): Changed spelling of method to match
3381 the correct spelling of the spec'ed field name.
3383 2000-08-03 Tom Tromey <tromey@cygnus.com>
3385 * Makefile.in: Rebuilt.
3386 * Makefile.am (awt_java_source_files): Added new files.
3388 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3390 * Makefile.am: Add new AWT stubs.
3391 * java/awt/Canvas.java: New placeholder class.
3392 * java/awt/Checkbox.java: Ditto.
3393 * java/awt/CheckboxMenuItem.java: Ditto.
3394 * java/awt/Choice.java: Ditto.
3395 * java/awt/Dialog.java: Ditto.
3396 * java/awt/FileDialog.java: Ditto.
3397 * java/awt/List.java: Ditto.
3398 * java/awt/ScrollPane.java: Ditto.
3399 * java/awt/TextField.java: Ditto.
3400 * java/awt/datatransfer/Clipboard.java: Ditto.
3401 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3402 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3403 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3404 Some commented out. Partially implemented.
3405 * java/awt/natToolkit.cc: Removed file.
3407 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3409 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3410 Fixes "make -j" builds.
3411 * Makefile.in: Rebuild.
3413 2000-08-02 Tom Tromey <tromey@cygnus.com>
3415 * Makefile.in: Rebuilt.
3416 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3417 * java/net/natPlainSocketImpl.cc: Include posix.h.
3418 (accept): Use _Jv_select.
3419 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3420 (receive): Use _Jv_select.
3421 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3422 (available): Use _Jv_select.
3423 * java/lang/natSystem.cc: Include posix.h.
3424 (currentTimeMillis): Use _Jv_gettimeofday.
3425 * include/posix.h: New file.
3426 * posix.cc: New file.
3428 * scripts/encodings.pl: New file.
3429 * Makefile.in: Rebuilt.
3430 * Makefile.am (convert_source_files): Added IOConverter.java.
3431 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3433 (getDefaultDecodingClass): Canonicalize default encoding name.
3434 (getEncoder): Likewise.
3435 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3437 (getDefaultDecodingClass): Canonicalize default encoding name.
3438 (getDecoder): Likewise.
3439 * gnu/gcj/convert/IOConverter.java: New file.
3441 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3443 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3444 to match C declaration in ffi.h.
3445 * Makefile.am: Add java/awt/Button.java.
3446 * Makefile.in: Rebuilt.
3448 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3450 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3451 cast of the second argument to `ffi_raw_call' changed to match
3454 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3456 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3457 argument to `ffi_raw_call' changed to match prototype.
3459 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3461 * java/awt/Component.java (toString): Implemented.
3462 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3463 dispatchEvent() to dispatch the event.
3464 (removeImpl): Ditto.
3466 2000-07-30 Anthony Green <green@redhat.com>
3468 * java/awt/Component.java: Add treeLock object.
3469 (getTreeLock): Implement.
3470 (isShowing): Implement.
3472 2000-07-30 Tom Tromey <tromey@cygnus.com>
3474 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3476 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3478 * java/awt/Window.java (addNotify): Wrote.
3479 (addWindowListener): Wrote.
3481 (getWarningString): Wrote.
3482 (processEvent): Wrote.
3483 (processWindowEvent): Wrote.
3484 (removeWindowListener): Wrote.
3485 (show): Call validate(), setVisible().
3489 * java/awt/Toolkit.java (createWindow): Declare.
3491 * java/awt/Frame.java (addNotify): Use getToolkit to find
3494 * java/awt/Component.java (invalidate): Wrote.
3496 (getToolkit): Wrote.
3498 * java/awt/Container.java (addContainerListener): Removed
3500 (removeContainerListener): Likewise.
3502 (add(Component)): Use it.
3503 (add(String,Component)): Likewise.
3504 (add(Component,int)): Likewise.
3505 (add(Component,Object)): Likewise.
3506 (add(Component,Object,int)): Likewise.
3508 (getAlignmentX): Wrote.
3509 (getAlignmentY): Wrote.
3510 (getComponentAt): Wrote.
3511 (getMaximumSize): Wrote.
3512 (invalidate): Wrote.
3513 (list(PrintStream,int)): Wrote.
3514 (list(PrintWriter,int)): Wrote.
3515 (getMinimumSize): Wrote.
3516 (getPreferredSize): Wrote.
3517 (printComponents): Wrote.
3518 (processContainerEvent): Look at containerListener, not
3520 (remove): Added event processing and peer destruction.
3521 (removeAll): Use remove.
3522 (removeNotify): Wrote.
3524 (validateTree): Wrote.
3526 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3527 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3528 * java/awt/Container.java (addNotify): Don't create Container
3530 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3532 2000-07-30 Tom Tromey <tromey@cygnus.com>
3534 * java/awt/Container.java (remove(int)): Wrote.
3535 (remove(Component)): Wrote.
3536 (add(Component)): Wrote.
3537 (add(Component,int)): Wrote.
3539 (addNotify): Set our own peer.
3540 * java/awt/Scrollbar.java (listeners): Changed type.
3541 (Scrollbar): Don't initialize listeners.
3543 (setValue): Call setValues.
3544 (setMinimum): Likewise.
3545 (setMaxPriority): Likewise.
3546 (setVisibleAmount): Likewise.
3548 (setUnitIncrement): Forward to peer.
3549 (setLineIncrement): Call setUnitIncrement.
3550 (setPageIncrement): Call setBlockIncrement.
3551 (setBlockIncrement): Forward to peer.
3552 (addAdjustmentListener): Rewrote.
3553 (removeAdjustmentListener): Rewrote.
3554 (processAdjustmentEvent): Rewrote.
3555 (paramString): Wrote.
3556 * Makefile.in: Rebuilt.
3557 * Makefile.am (awt_java_source_files): Added Button.java.
3558 * java/awt/Button.java: New file.
3559 * java/awt/Toolkit.java (createLabel): Declare.
3560 (createButton): Likewise.
3561 (createScrollbar): Likewise.
3562 (createContainer): Likewise.
3563 * java/awt/Label.java (addNotify): Wrote.
3564 (setAlignment): Call setAlignment in the peer.
3565 (setText): Call setText in the peer.
3567 2000-07-28 Warren Levy <warrenl@cygnus.com>
3569 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3570 NotSerializableException with just the class name.
3572 2000-07-26 Andrew Haley <aph@cygnus.com>
3574 * interpret.cc (continue1): Insert missing break into switch.
3576 2000-07-28 Warren Levy <warrenl@cygnus.com>
3578 * java/io/ObjectStreamException.java: Made constructors protected.
3580 2000-07-27 Tom Tromey <tromey@cygnus.com>
3582 * java/io/OutputStreamWriter.java (close): Only flush if not
3585 2000-07-27 Warren Levy <warrenl@cygnus.com>
3587 * mauve-libgcj: Activated serialization tests.
3588 * gcj/field.h (getModifiers): Mask off unknown flags.
3589 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3590 spurious bits don't cause discrepancies.
3591 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3592 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3593 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3594 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3595 * java/lang/Throwable.java (serialVersionUID): New field.
3596 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3597 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3599 * java/lang/reflect/natMethod.cc: Ditto.
3600 * java/security/Key.java (serialVersionUID): Removed field for now.
3601 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3602 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3604 2000-07-22 Tom Tromey <tromey@cygnus.com>
3606 * java/awt/geom/RectangularShape.java (getPathIterator):
3609 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3611 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3612 stub libjava/java/awt/ColorModel.java which was located in the
3614 * libjava/java/awt/image/ComponentColorModel.java: New file.
3615 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3616 * libjava/java/awt/image/DataBuffer.java: New file.
3617 * libjava/java/awt/image/DataBufferByte.java: New file.
3618 * libjava/java/awt/image/DataBufferInt.java: New file.
3619 * libjava/java/awt/image/DataBufferUShort.java: New file.
3620 * libjava/java/awt/image/DirectColorModel.java: New file.
3621 * libjava/java/awt/image/PackedColorModel.java: New file.
3622 * libjava/java/awt/image/Raster.java: New file.
3623 * libjava/java/awt/image/SampleModel.java: New file.
3624 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3626 * libjava/java/awt/image/IndexColorModel.java: New file.
3627 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3628 java.awt.ColorModel stub.
3630 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3631 * gnu/gcj/util/Buffers.java: New file, utility class.
3633 * libjava/Makefile.am: Updated to include new files.
3634 * libjava/Makefile.in: Rebuilt.
3636 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3638 * java/io/StreamTokenizer.java: Merged with classpath.
3640 2000-07-20 Tom Tromey <tromey@cygnus.com>
3642 * Makefile.in: Rebuilt.
3643 * Makefile.am (awt_java_source_files): Updated for new files.
3644 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3645 * java/awt/Label.java: New file.
3646 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3647 (createIntersection, createUnion, getBounds2D): New methods.
3648 * java/awt/Scrollbar.java: New file.
3649 * java/awt/Shape.java: Updated to 1.2.
3650 * java/awt/geom/AffineTransform.java: New file.
3651 * java/awt/geom/Ellipse2D.java: New file.
3652 * java/awt/geom/NoninvertibleTransformException.java: New file.
3653 * java/awt/geom/PathIterator.java: New file.
3654 * java/awt/geom/Rectangle2D.java: New file.
3655 * java/awt/geom/RectangularShape.java: New file.
3656 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3657 * java/awt/geom/IllegalPathStateException.java: New file.
3659 * scripts/showval.java: New file.
3661 * scripts/classes.pl (scan): Print inner classes properly.
3662 * gcj/javaprims.h: Updated class list.
3664 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3665 initialize String fields for interpreted classes. Fixes bug
3666 reported by Hans Boehm.
3668 * java/io/File.java (getParentFile): New method, from Classpath
3669 via Oskar Liljeblad.
3671 * java/util/Vector.java (remove(Object)): Implemented.
3673 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3675 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3676 zero return from backtrace().
3678 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3680 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3682 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3683 before calling notifyAll().
3685 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3687 Add missing files from last check-in:
3688 * java/awt/image/ImageConsumer.java: New file.
3689 * java/awt/image/ImageProducer.java: New file.
3690 * java/awt/image/ImageObserver.java: New file.
3692 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3694 Merged implementation of java.applet from classpath:
3695 * java/applet/Applet.java: New file.
3696 * java/applet/AppletContext.java: New file.
3697 * java/applet/AppletStub.java: New file.
3698 * java/applet/AudioClip.java: New file.
3700 * Makefile.am: Added new java.applet classes.
3701 * Makefile.in: Rebuilt.
3703 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3706 * java/util/ResourceBundle.java (getLocale): stub.
3707 * Makefile.am: Added new AWT classes.
3708 * Makefile.in: Rebuilt.
3709 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3710 constructors. Fix toString() and paramString().
3711 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3712 * java/awt/CheckboxGroup.java: New class.
3713 * java/awt/ColorModel.java: New class.
3714 * java/awt/Component.java: Added stubs for most methods. Implemented
3716 * java/awt/Container.java: ditto.
3717 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3718 * java/awt/Cursor.java: ditto.
3719 * java/awt/Event.java: Fix paramString().
3720 * java/awt/EventQueue.java: New class. Implemented.
3721 * java/awt/Font.java: Added additional stub methods. Implemented
3723 * java/awt/FontMetrics.java: New class. Stubbed.
3724 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3726 * java/awt/Insets.java: New class. Implemented.
3727 * java/awt/Menu.java: Add new methods. Partially implemented.
3728 * java/awt/MenuItem.java: Add new methods and fields. Partially
3730 * java/awt/MenuShortcut.java: New class. Implemented.
3731 * java/awt/Panel.java: New class. Placeholder.
3732 * java/awt/PopupMenu.java: New class. Stubbed.
3733 * java/awt/Rectangle.java: New class. Implemented.
3734 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3735 * java/awt/event/ActionEvent.java: Implement paramString().
3736 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3737 * java/awt/event/ComponentEvent.java: Implement paramString().
3738 * java/awt/event/ContainerEvent.java: Implement paramString().
3739 * java/awt/event/FocusEvent.java: Implement paramString().
3740 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3741 * java/awt/event/HierarchyBoundsListener.java: New class.
3742 * java/awt/event/HierarchyEvent.java: New class.
3743 * java/awt/event/HierarchyListener.java: New class.
3744 * java/awt/event/InputMethodEvent.java: Implement paramString().
3745 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3746 exception if !catchExceptions.
3747 * java/awt/event/ItemEvent.java: Implement paramString().
3748 * java/awt/event/KeyEvent.java: Implement paramString().
3749 * java/awt/event/MouseEvent.java: Implement paramString().
3750 * java/awt/event/PaintEvent.java: Implement paramString().
3751 * java/awt/event/TextEvent.java: Implement paramString().
3752 * java/awt/event/WindowEvent.java: Implement paramString().
3754 AWT Peer interfaces:
3755 * java/awt/peer/ButtonPeer.java: New file.
3756 * java/awt/peer/ListPeer.java: New file.
3757 * java/awt/peer/CanvasPeer.java: New file.
3758 * java/awt/peer/MenuBarPeer.java: New file.
3759 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3760 * java/awt/peer/MenuComponentPeer.java: New file.
3761 * java/awt/peer/CheckboxPeer.java: New file.
3762 * java/awt/peer/MenuItemPeer.java: New file.
3763 * java/awt/peer/ChoicePeer.java: New file.
3764 * java/awt/peer/MenuPeer.java: New file.
3765 * java/awt/peer/ComponentPeer.java: Implemented.
3766 * java/awt/peer/PanelPeer.java: New file.
3767 * java/awt/peer/ContainerPeer.java: Implemented.
3768 * java/awt/peer/PopupMenuPeer.java: New file.
3769 * java/awt/peer/DialogPeer.java: New file.
3770 * java/awt/peer/ScrollPanePeer.java: New file.
3771 * java/awt/peer/FileDialogPeer.java: New file.
3772 * java/awt/peer/ScrollbarPeer.java: New file.
3773 * java/awt/peer/FontPeer.java: New file.
3774 * java/awt/peer/TextAreaPeer.java: New file.
3775 * java/awt/peer/FramePeer.java: Implemented.
3776 * java/awt/peer/TextComponentPeer.java: New file.
3777 * java/awt/peer/LabelPeer.java: New file.
3778 * java/awt/peer/TextFieldPeer.java: New file.
3779 * java/awt/peer/LightweightPeer.java: New file.
3780 * java/awt/peer/WindowPeer.java: Implemented.
3782 2000-07-06 Tom Tromey <tromey@cygnus.com>
3784 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3785 Initialize static final String fields.
3787 2000-07-03 Tom Tromey <tromey@cygnus.com>
3789 * java/io/PrintWriter.java (print): Call write(String), not
3790 print(String). See PR libgcj/277.
3791 (print(String)): Use write, not out.write.
3793 2000-06-30 Tom Tromey <tromey@cygnus.com>
3795 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3797 2000-06-27 Andrew Haley <aph@cygnus.com>
3799 * java/io/File.java (createTempFile): Close the FileDescriptor
3800 used to create a temp file. Fixes some of PR 203.
3801 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3802 collection if we run out of file handles.
3804 2000-06-28 Warren Levy <warrenl@cygnus.com>
3806 * gnu/java/security/provider/Gnu.java: New file.
3807 * gnu/java/security/provider/SHA.java: New file.
3808 * gnu/java/security/provider/SHA1PRNG.java: New file.
3809 * Makefile.am: Added the above files.
3810 * Makefile.in: Rebuilt.
3812 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3814 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3816 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3817 (destroyed_flag): Removed.
3818 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3819 (activeCount): Added spec note.
3821 2000-06-27 Warren Levy <warrenl@cygnus.com>
3823 * java/security/Principal.java: New file.
3824 * Makefile.am: Added Principal.java.
3825 * Makefile.in: Rebuilt.
3827 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3829 * java/awt/event/MouseEvent.java: Fixed coordinate space
3832 2000-06-27 Tom Tromey <tromey@cygnus.com>
3834 * java/io/PushbackInputStream.java (read): If there are characters
3835 in the buffer, don't also call super.read().
3836 * java/io/PushbackReader.java (read): If there are characters in
3837 the buffer, don't also call super.read().
3839 * java/lang/Double.java (valueOf): Call parseDouble().
3841 2000-06-26 Warren Levy <warrenl@cygnus.com>
3843 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3844 (newVal): Renamed to newValue.
3845 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3846 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3847 (revokeNow): Renamed to invalidateRefs.
3848 * java/io/OptionalDataException.java: Updated FIXME.
3849 (eof): New placeholder field.
3851 * java/io/WriteAbortedException.java (message): Made transient.
3852 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3853 * java/lang/Throwable.java (stackTrace): Made transient.
3854 * java/net/InetAddress.java: Made Serializable.
3855 * java/security/KeyPair.java: Made Serializable.
3856 * java/security/Provider.java: Replaced with Classpath version that
3857 implements serialization and proper methods.
3858 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3859 (limits): Renamed to choiceLimits.
3861 2000-06-24 Tom Tromey <tromey@cygnus.com>
3863 * java/lang/natDouble.cc (parseDouble): Renamed from
3865 * java/lang/Double.java (parseDouble): Renamed from
3866 doubleValueOf. Now public.
3868 2000-06-23 Andrew Haley <aph@cygnus.com>
3870 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3871 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3873 2000-06-23 Tom Tromey <tromey@cygnus.com>
3875 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3876 * java/lang/natDouble.cc: Always include <alloca.h>.
3877 Fix for PR libgcj/267.
3879 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3881 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3882 comply with classpath VM spec.
3883 (add(Group)): Rename to addGroup().
3884 * java/lang/Thread.java (Thread): Use addThread().
3885 * java/lang/natThread.cc (finish_): Use removeThread().
3887 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3889 * java/lang/ThreadGroup.java: Merged with classpath.
3890 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3891 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3893 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3894 ThreadGroup.root if Thread.currentThread is null. Honour the
3895 ThreadGroup's max priority setting.
3897 2000-06-18 Tom Tromey <tromey@cygnus.com>
3899 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3900 returned class. For PR gcj/260.
3902 2000-06-16 Tom Tromey <tromey@cygnus.com>
3904 Fix for PR libgcj/261:
3905 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3907 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3908 argument. (This is a patch from long ago that somehow went
3911 2000-06-15 Tom Tromey <tromey@cygnus.com>
3913 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3917 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3919 Fix for PR java.lang/258:
3920 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3921 JV_STATE_DONE, to prevent accidental initialization.
3922 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3923 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3924 interface or an abstract class. Remove redundant initializeClass calls.
3925 Remove duplicate if_idt test.
3926 (_Jv_InterfaceAssignableFrom): New function.
3927 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3929 2000-05-31 Tom Tromey <tromey@cygnus.com>
3931 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3932 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3933 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3934 (NUM_OBJECT_METHODS): New define.
3935 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3936 `array_vtable' parameter. Added assertion.
3937 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3940 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3942 * gcj/cni.h: Include <string.h>.
3943 * defineclass.cc: Include <alloca.h>.
3944 * interpret.cc: Ditto.
3945 * gij.cc: Include <stdlib.h>.
3947 2000-05-30 Tom Tromey <tromey@cygnus.com>
3949 * include/name-finder.h: Include <sys/wait.h>.
3950 (_Jv_name_finder::pid): Now of type `pid_t'.
3951 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3952 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3955 2000-05-24 Warren Levy <warrenl@cygnus.com>
3957 * java/io/ObjectOutputStream.java (writeObject): Use component type
3958 when writing arrays.
3961 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3963 Fix for PR libgcj/226:
3964 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3965 since this is an installed header.
3967 Fix for PR libgcj/228:
3968 * java/util/zip/ZipFile (getInputStream): Create inflater with
3971 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3972 with DataFormatException.
3974 2000-05-20 Tom Tromey <tromey@cygnus.com>
3976 * Makefile.in: Rebuilt.
3977 * Makefile.am (hack1): Removed.
3978 (awto_files): Likewise.
3979 (libgcjawt_la_SOURCES): Likewise.
3980 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3981 (libgcjawt_la_DEPENDENCIES): Likewise.
3982 (libgcjawt_la_LIBADD): Likewise.
3983 (libgcjawt_la_LDFLAGS): Likewise.
3984 (libgcjawt_la_LINK): Likewise.
3985 ($(awt_java_source_files:.java=.class)): Likewise.
3986 (libgcj.zip): Don't depend on AWT files.
3987 (MOSTLYCLEANFILES): Don't include AWT files.
3988 ($(awto_files)): Removed.
3989 (nat_headers): Removed AWT files.
3990 (cond_awt_java_source_files): Removed.
3991 (ordinary_java_source_files): Added awt_java_source_files.
3992 * libgcj.spec.in (*lib): Removed -lgcjawt.
3993 * configure: Rebuilt.
3994 * configure.in: Removed --enable-java-awt option.
3996 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3998 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3999 (ZipEntry): Copy the `name' field.
4000 (clone): Implement JDK1.2 method.
4001 (setCompressedSize): ditto.
4004 2000-05-19 Tom Tromey <tromey@cygnus.com>
4006 * java/io/BufferedWriter.java: Merged with Classpath.
4007 * java/io/BufferedOutputStream.java: Merged with Classpath.
4009 2000-05-16 Andrew Haley <aph@cygnus.com>
4011 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4012 build_ia64_frame_state.
4013 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4016 2000-05-15 Warren Levy <warrenl@cygnus.com>
4018 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4019 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4020 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4021 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4022 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4023 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4024 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4025 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4026 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4027 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4028 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4029 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4030 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4031 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4032 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4033 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4034 * gnu/gcj/io/NullOutputStream.java: Removed.
4035 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4036 * gnu/gcj/lang/ArrayHelper.java: Removed.
4037 * gnu/gcj/lang/ClassHelper.java: Removed.
4038 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4040 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4041 * gnu/java/beans/EmptyBeanInfo.java: New file.
4042 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4043 * gnu/java/beans/IntrospectionIncubator.java: New file.
4044 * gnu/java/beans/editors/ColorEditor.java: New file.
4045 * gnu/java/beans/editors/FontEditor.java: New file.
4046 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4047 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4048 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4049 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4050 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4051 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4052 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4053 * gnu/java/beans/editors/StringEditor.java: New file.
4054 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4055 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4056 * gnu/java/io/NullOutputStream.java: New file.
4057 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4058 * gnu/java/lang/ArrayHelper.java: New file.
4059 * gnu/java/lang/ClassHelper.java: New file.
4060 * gnu/java/lang/reflect/TypeSignature.java: New file.
4062 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4063 namespace back to the original Classpath gnu/java namespace.
4064 * Makefile.in: Rebuilt.
4066 * java/beans/Beans.java: Namespace change.
4067 * java/beans/EventSetDescriptor.java: Namespace change.
4068 * java/beans/Introspector.java: Namespace change.
4069 * java/beans/PropertyEditorManager.java: Namespace change.
4070 * java/io/ObjectInputStream.java: Namespace change.
4071 * java/io/ObjectOutputStream.java: Namespace change.
4072 * java/io/ObjectStreamClass.java: Namespace change.
4073 * java/io/ObjectStreamField.java: Namespace change.
4075 2000-04-21 Warren Levy <warrenl@cygnus.com>
4077 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4078 now that compiler patch is available.
4079 Removed unneeded System.loadLibrary.
4080 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4081 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4083 2000-04-19 Andrew Haley <aph@cygnus.com>
4085 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4086 and target classes have been initialized.
4088 2000-04-19 Andrew Haley <aph@cygnus.com>
4090 * java/lang/String.java: implement Serializable, Comparable.
4091 (compareTo (Object)): New method.
4093 2000-04-19 Warren Levy <warrenl@cygnus.com>
4095 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4096 instead of getField to retrieve non-public field.
4097 (getSerialPersistantFields): Ditto.
4099 2000-04-18 Warren Levy <warrenl@cygnus.com>
4101 * mauve-libgcj: Turned off object serialization tests temporarily
4102 due to compiler error.
4104 2000-04-17 Warren Levy <warrenl@cygnus.com>
4106 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4107 to avoid build problem.
4109 * mauve-libgcj: Turned on object serialization tests.
4111 2000-04-17 Tom Tromey <tromey@cygnus.com>
4113 * libgcj.spec.in (*lib): Added -lgcjawt.
4115 2000-04-17 Andrew Haley <aph@cygnus.com>
4117 * Makefile.am: Add new files:
4118 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4120 * Makefile.in: Rebuilt.
4122 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4123 interface that has no implementations.
4124 Check for an attempt to assign an abstract class to an interface.
4126 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4127 if we fail to find MessageDigest.getInstance ("SHA").
4129 * gnu/gcj/io/SimpleSHSStream.java: New file.
4130 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4131 * gnu/gcj/io/shs.cc: New file.
4132 * gnu/gcj/io/shs.h: new file.
4134 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4137 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4138 punctuation from the classname of an array element.
4140 * gcj/javaprims.h: Add SimpleDigestStream.
4142 2000-04-17 Andrew Haley <aph@cygnus.com>
4144 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4145 to getPrivateField for superclasses.
4147 2000-04-14 Andrew Haley <aph@cygnus.com>
4149 * Makefile.am: Add new files:
4150 java/io/ObjectOutputStream$PutField.h,
4151 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4152 java/io/natObjectOutputStream.cc
4153 * Makefile.in: Rebuilt.
4154 * gcj/Makefile.in: Rebuilt.
4155 * include/Makefile.in: Rebuilt.
4156 * java/lang/Class.h (getPrivateField): New method.
4157 (getPrivateMethod): Ditto.
4158 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4159 and java::io::ObjectStreamClass our friends.
4160 * java/lang/natClass.cc (getPrivateField): New method.
4161 (getPrivateMethod): Ditto.
4162 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4163 * gcj/javaprims.h: Add serialization classes.
4164 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4165 (setByteField): Ditto.
4166 (setCharField): Ditto.
4167 (setDoubleField): Ditto.
4168 (setFloatField): Ditto.
4169 (setIntField): Ditto.
4170 (setLongField): Ditto.
4171 (setShortField): Ditto.
4172 (setObjectField): Ditto.
4173 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4175 (getByteField): Ditto.
4176 (getCharField): Ditto.
4177 (getDoubleField): Ditto.
4178 (getFloatField): Ditto.
4179 (getIntField): Ditto.
4180 (getLongField): Ditto.
4181 (getShortField): Ditto.
4182 (getObjectField): Ditto.
4183 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4185 (getSerialPersistantFields): Ditto.
4186 (getDefinedSUID): Ditto.
4187 * java/io/natObjectOutputStream.cc: New file.
4188 * java/io/natObjectInputStream.cc: New file.
4190 2000-04-13 Warren Levy <warrenl@cygnus.com>
4192 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4193 problems. Revert to previous version to reproduce and when fixed.
4195 2000-04-13 Warren Levy <warrenl@cygnus.com>
4197 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4198 * gnu/gcj/io/NullOutputStream.java: New file.
4199 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4200 * java/io/BlockDataException.java: New file.
4201 * java/io/Externalizable.java: New file.
4202 * java/io/InvalidClassException.java: New file.
4203 * java/io/InvalidObjectException.java: New file.
4204 * java/io/NotActiveException.java: New file.
4205 * java/io/NotSerializableException.java: New file.
4206 * java/io/ObjectInput.java: New file.
4207 * java/io/ObjectInputStream.java: New file.
4208 * java/io/ObjectInputValidation.java: New file.
4209 * java/io/ObjectOutput.java: New file.
4210 * java/io/ObjectOutputStream.java: New file.
4211 * java/io/ObjectStreamClass.java: New file.
4212 * java/io/ObjectStreamConstants.java: New file.
4213 * java/io/ObjectStreamField.java: New file.
4214 * java/io/Replaceable.java: New file.
4215 * java/io/Resolvable.java: New file.
4216 * java/io/SerializablePermission.java: New file.
4217 * java/io/WriteAbortedException.java: New file.
4218 * java/security/BasicPermission.java: New file.
4219 * java/security/DigestOutputStream.java: New file.
4220 * java/security/Guard.java: New file.
4221 * java/security/Permission.java: New file.
4222 * java/security/PermissionCollection.java: New file.
4223 * Makefile.am: Added above files.
4224 * Makefile.in: Rebuilt.
4226 * java/beans/Beans.java (instantiate): Activated serialization code.
4227 * java/lang/SecurityManager.java (checkPermission): New method.
4229 2000-04-12 Warren Levy <warrenl@cygnus.com>
4231 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4232 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4233 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4234 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4235 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4236 * gnu/gcj/beans/editors/FontEditor.java: New file.
4237 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4238 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4239 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4240 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4241 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4242 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4243 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4244 * gnu/gcj/beans/editors/StringEditor.java: New file.
4245 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4246 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4247 * gnu/gcj/lang/ArrayHelper.java: New file.
4248 * gnu/gcj/lang/ClassHelper.java: New file.
4249 * java/beans/BeanDescriptor.java: New file.
4250 * java/beans/BeanInfo.java: New file.
4251 * java/beans/Beans.java: New file.
4252 * java/beans/Customizer.java: New file.
4253 * java/beans/DesignMode.java: New file.
4254 * java/beans/EventSetDescriptor.java: New file.
4255 * java/beans/FeatureDescriptor.java: New file.
4256 * java/beans/IndexedPropertyDescriptor.java: New file.
4257 * java/beans/IntrospectionException.java: New file.
4258 * java/beans/Introspector.java: New file.
4259 * java/beans/MethodDescriptor.java: New file.
4260 * java/beans/ParameterDescriptor.java: New file.
4261 * java/beans/PropertyChangeEvent.java: New file.
4262 * java/beans/PropertyChangeListener.java: New file.
4263 * java/beans/PropertyChangeSupport.java: New file.
4264 * java/beans/PropertyDescriptor.java: New file.
4265 * java/beans/PropertyEditor.java: New file.
4266 * java/beans/PropertyEditorManager.java: New file.
4267 * java/beans/PropertyEditorSupport.java: New file.
4268 * java/beans/PropertyVetoException.java: New file.
4269 * java/beans/SimpleBeanInfo.java: New file.
4270 * java/beans/VetoableChangeListener.java: New file.
4271 * java/beans/VetoableChangeSupport.java: New file.
4272 * java/beans/Visibility.java: New file.
4273 * java/beans/beancontext/BeanContext.java: New file.
4274 * java/beans/beancontext/BeanContextChild.java: New file.
4275 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4276 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4277 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4278 * java/beans/beancontext/BeanContextEvent.java: New file.
4279 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4280 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4281 * java/beans/beancontext/BeanContextProxy.java: New file.
4282 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4284 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4285 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4287 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4288 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4290 * java/beans/beancontext/BeanContextServices.java: New file.
4291 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4292 * java/util/AbstractCollection.java: New file.
4293 * java/util/AbstractList.java: New file.
4294 * java/util/Arrays.java: New file.
4295 * Makefile.am: Added above files.
4296 * Makefile.in: Rebuilt.
4298 2000-04-11 Warren Levy <warrenl@cygnus.com>
4300 * java/awt/AWTError.java: New file.
4301 * java/awt/AWTEvent.java: New file.
4302 * java/awt/AWTException.java: New file.
4303 * java/awt/ActiveEvent.java: New file.
4304 * java/awt/Adjustable.java: New file.
4305 * java/awt/BorderLayout.java: New file.
4306 * java/awt/Color.java: New file.
4307 * java/awt/Component.java: New file.
4308 * java/awt/Container.java: New file.
4309 * java/awt/Dimension.java: New file.
4310 * java/awt/Event.java: New file.
4311 * java/awt/Font.java: New file.
4312 * java/awt/Frame.java: New file.
4313 * java/awt/Graphics.java: New file.
4314 * java/awt/IllegalComponentStateException.java: New file.
4315 * java/awt/Image.java: New file.
4316 * java/awt/ItemSelectable.java: New file.
4317 * java/awt/LayoutManager.java: New file.
4318 * java/awt/LayoutManager2.java: New file.
4319 * java/awt/Menu.java: New file.
4320 * java/awt/MenuBar.java: New file.
4321 * java/awt/MenuComponent.java: New file.
4322 * java/awt/MenuContainer.java: New file.
4323 * java/awt/MenuItem.java: New file.
4324 * java/awt/Paint.java: New file.
4325 * java/awt/PaintContext.java: New file.
4326 * java/awt/Point.java: New file.
4327 * java/awt/Rectangle.java: New file.
4328 * java/awt/Shape.java: New file.
4329 * java/awt/TextArea.java: New file.
4330 * java/awt/TextComponent.java: New file.
4331 * java/awt/Toolkit.java: New file.
4332 * java/awt/Transparency.java: New file.
4333 * java/awt/Window.java: New file.
4334 * java/awt/natToolkit.cc: New file.
4335 * java/awt/event/AWTEventListener.java: New file.
4336 * java/awt/event/ActionEvent.java: New file.
4337 * java/awt/event/ActionListener.java: New file.
4338 * java/awt/event/AdjustmentEvent.java: New file.
4339 * java/awt/event/AdjustmentListener.java: New file.
4340 * java/awt/event/ComponentAdapter.java: New file.
4341 * java/awt/event/ComponentEvent.java: New file.
4342 * java/awt/event/ComponentListener.java: New file.
4343 * java/awt/event/ContainerAdapter.java: New file.
4344 * java/awt/event/ContainerEvent.java: New file.
4345 * java/awt/event/ContainerListener.java: New file.
4346 * java/awt/event/FocusAdapter.java: New file.
4347 * java/awt/event/FocusEvent.java: New file.
4348 * java/awt/event/FocusListener.java: New file.
4349 * java/awt/event/InputEvent.java: New file.
4350 * java/awt/event/InputMethodEvent.java: New file.
4351 * java/awt/event/InputMethodListener.java: New file.
4352 * java/awt/event/InvocationEvent.java: New file.
4353 * java/awt/event/ItemEvent.java: New file.
4354 * java/awt/event/ItemListener.java: New file.
4355 * java/awt/event/KeyAdapter.java: New file.
4356 * java/awt/event/KeyEvent.java: New file.
4357 * java/awt/event/KeyListener.java: New file.
4358 * java/awt/event/MouseAdapter.java: New file.
4359 * java/awt/event/MouseEvent.java: New file.
4360 * java/awt/event/MouseListener.java: New file.
4361 * java/awt/event/MouseMotionAdapter.java: New file.
4362 * java/awt/event/MouseMotionListener.java: New file.
4363 * java/awt/event/PaintEvent.java: New file.
4364 * java/awt/event/TextEvent.java: New file.
4365 * java/awt/event/TextListener.java: New file.
4366 * java/awt/event/WindowAdapter.java: New file.
4367 * java/awt/event/WindowEvent.java: New file.
4368 * java/awt/event/WindowListener.java: New file.
4369 * java/awt/geom/Dimension2D.java: New file.
4370 * java/awt/geom/Point2D.java: New file.
4371 * java/awt/peer/ComponentPeer.java: New file.
4372 * java/awt/peer/ContainerPeer.java: New file.
4373 * java/awt/peer/FramePeer.java: New file.
4374 * java/awt/peer/WindowPeer.java: New file.
4375 * java/util/Collection.java: New file.
4376 * java/util/Comparator.java: New file.
4377 * java/util/Iterator.java: New file.
4378 * java/util/List.java: New file.
4379 * java/util/ListIterator.java: New file.
4380 * Makefile.am: Added above files.
4381 * Makefile.in: Rebuilt.
4383 2000-04-10 Warren Levy <warrenl@cygnus.com>
4385 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4386 * java/lang/FirstThread.java: Ditto.
4387 * java/lang/StringBuffer.java: Ditto.
4388 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4390 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4391 Special case handled in java.math.BigInteger.
4392 * java/math/BigInteger.java (divide): Handle the special case when
4393 dividing by 1 and the high bit of the dividend is set.
4394 (setShiftRight): Handle case when count == 0.
4396 2000-04-05 Andrew Haley <aph@cygnus.com>
4398 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4401 2000-04-05 Andrew Haley <aph@cygnus.com>
4403 * sysdep/ia64.c (rse_address_add): Delete.
4404 (IS_NaT_COLLECTION_ADDR): Delete.
4405 (ia64_backtrace_helper): check for null unwind_info.
4407 * sysdep/ia64-frame.h: add calc_caller_bsp.
4409 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4412 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4413 (_Jv_remI): Likewise.
4414 (_Jv_divJ): Likewise.
4415 (_Jv_remJ): Likewise.
4417 * interpret.cc (continue1): Use divide subroutines to guarantee
4418 correct Java standard behaviour.
4419 Floating-point division should not abort; make it so.
4421 2000-03-29 Tom Tromey <tromey@cygnus.com>
4423 * configure: Rebuilt.
4424 * configure.in: Test against `libgcj_sjlj', not
4425 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4426 to be set even when using sjlj.
4428 2000-03-24 Andrew Haley <aph@cygnus.com>
4430 * Makefile.am: Add file addr2name.awk.
4431 * Makefile.in: Rebuilt.
4432 * addr2name.awk: New file.
4433 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4435 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4438 2000-03-22 Andrew Haley <aph@cygnus.com>
4440 * configure.host: Add -funwind-tables for IA64.
4441 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4442 * Makefile.in: Rebuilt.
4443 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4444 * sysdep/ia64.c: New file.
4445 * sysdep/ia64-frame.h: New file.
4446 * configure.in: Add sysdep/ia64.c for ia64.
4447 * configure: Rebuilt.
4449 2000-03-17 Andrew Haley <aph@cygnus.com>
4451 * java/lang/natString.cc: Remove `register' keyword.
4452 interpret.cc: ditto.
4454 2000-03-16 Andrew Haley <aph@cygnus.com>
4456 * configure.host (ia64): Enable interpreter.
4458 2000-03-14 Hans Boehm <boehm@acm.org>
4460 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4462 2000-03-14 Andrew Haley <aph@cygnus.com>
4464 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4467 2000-03-10 Andrew Haley <aph@cygnus.com>
4469 * java/lang/ieeefp.h: Import latest version from fdlibm.
4471 2000-03-14 Andrew Haley <aph@cygnus.com>
4473 * prims.cc (_Jv_ThrowSignal): New function.
4474 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4476 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4477 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4478 * include/ppc-signal.h: New file.
4480 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4482 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4483 * java/lang/natThread.java (initialize_native): Cast `data' to
4485 * gnu/gcj/RawData.java: Clarify documentation.
4487 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4488 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4489 `jarFile', not `jarFileURL'.
4491 2000-05-15 Andrew Haley <aph@cygnus.com>
4493 * include/ppc-signal.h: New file.
4495 2000-05-11 Tom Tromey <tromey@cygnus.com>
4497 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4498 file headers, don't include `size' in the skip call.
4500 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4502 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4503 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4505 (replace): Reimplemented. Fix javadoc.
4506 (reverse): Call ensureCapacity_unsynchronized().
4507 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4509 (replace): Calculate length for arraycopy() correctly.
4511 2000-05-09 Tom Tromey <tromey@cygnus.com>
4513 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4515 (insert(int,char[],int,int): New method.
4516 (delete): New method from Classpath.
4517 (deleteCharAt): Likewise.
4518 (substring): Likewise.
4519 (shared): No longer private.
4520 Added JavaDoc comments from Classpath.
4521 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4524 2000-05-07 Tom Tromey <tromey@cygnus.com>
4526 * Makefile.in: Rebuilt.
4527 * Makefile.am (LIBLINK): New macro.
4528 (libgcj_la_LINK): Use it.
4529 (libgcjawt_la_LINK): Likewise.
4531 2000-05-06 Tom Tromey <tromey@cygnus.com>
4533 * Makefile.in: Rebuilt.
4534 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4536 2000-05-05 Tom Tromey <tromey@cygnus.com>
4538 Fix for PR libgcj/220:
4539 * Makefile.in: Rebuilt.
4540 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4541 (jv_convert_LDFLAGS): Likewise.
4542 (libgcj_la_LDFLAGS): Likewise.
4543 (GCJLINK): New macro.
4544 (jv_convert_LINK): Use it.
4545 (gij_LINK): Likewise.
4546 (libgcj_la_LINK): New macro.
4547 (libgcjawt_la_LINK): Likewise.
4549 2000-05-04 Tom Tromey <tromey@cygnus.com>
4551 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4553 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4557 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4559 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4560 (_Jv_IsAssignableFrom): Ditto.
4561 (_Jv_IsInstanceOf): Ditto.
4562 (_Jv_CheckCast): Ditto.
4563 (_Jv_CheckArrayStore): Ditto.
4564 * java/lang/Class.h (_Jv_InitClass): Ditto.
4565 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4570 (_Jv_MonitorExit): Ditto.
4571 * boehm.cc (_Jv_MarkObj): Ditto.
4572 (_Jv_MarkObj): Ditto.
4573 (_Jv_MarkArray): Ditto.
4574 * prims.cc (_Jv_AllocObject): Ditto.
4575 (_Jv_NewObjectArray): Ditto.
4576 (_Jv_NewPrimArray): Ditto.
4577 (_Jv_Malloc): Ditto.
4578 (_Jv_Realloc): Ditto.
4579 (_Jv_MallocUnchecked): Ditto.
4585 2000-05-04 Tom Tromey <tromey@cygnus.com>
4587 * java/util/Locale.java (Locale): Don't explicitly check for
4589 * java/util/Hashtable.java (containsKey): Don't explicitly check
4592 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4594 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4596 * java/text/StringCharacterIterator.java
4597 (StringCharacterIterator): Don't check for null.
4598 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4600 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4601 check for null pointer.
4602 (leaveGroup): Likewise.
4603 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4605 (setData): Likewise.
4606 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4609 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4611 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4612 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4613 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4614 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4615 -rpath for in-gcc builds.
4616 * Makefile.in: Rebuilt.
4618 2000-04-28 Tom Tromey <tromey@cygnus.com>
4620 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4623 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4625 * libjava/java/lang/String.java (toString): Remove `final' hack.
4627 2000-04-05 Tom Tromey <tromey@cygnus.com>
4629 Runtime support for PR gcj/2:
4630 * prims.cc (_Jv_ThrowNullPointerException): New function.
4631 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4633 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4635 * prims.cc (_Jv_NewObjectArray): Fix typo.
4637 2000-04-26 Tom Tromey <tromey@cygnus.com>
4639 * Makefile.in: Rebuilt.
4640 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4642 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4644 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4647 2000-04-22 Anthony Green <green@cygnus.com>
4649 * include/jvm.h (__builtin_expect): Define as unused for now.
4650 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4654 (_Jv_MonitorExit): Ditto.
4655 * boehm.cc (_Jv_MarkObj): Ditto.
4656 (_Jv_MarkObj): Ditto.
4657 (_Jv_MarkArray): Ditto.
4658 (_Jv_AllocBytes): Ditto.
4659 * prims.cc (_Jv_AllocObject): Ditto.
4660 (_Jv_NewObjectArray): Ditto.
4661 (_Jv_NewPrimArray): Ditto.
4662 (_Jv_Malloc): Ditto.
4663 (_Jv_Realloc): Ditto.
4664 (_Jv_MallocUnchecked): Ditto.
4670 * include/Makefile.in: Rebuilt.
4671 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4673 2000-04-21 Tom Tromey <tromey@cygnus.com>
4675 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4676 Yet another new version from Classpath.
4678 Fix for PR libgcj/15:
4679 * java/util/natGregorianCalendar.cc (_REENTRANT,
4680 _POSIX_PTHREAD_SEMANTICS): Don't define.
4681 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4682 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4684 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4686 * configure: Rebuilt.
4687 * configure.in: If using POSIX threads, define _REENTRANT if
4688 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4689 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4691 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4692 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4693 version from Classpath.
4695 Fix for PR libgcj/213:
4696 * Makefile.in: Rebuilt.
4697 * Makefile.am (gij_SOURCES): Added gij.cc.
4698 (EXTRA_gij_SOURCES): Removed.
4699 (gij_LDADD): Removed gij.lo.
4700 (gij_DEPENDENCIES): Likewise.
4701 ($(gij_OBJECTS)): Depend on nat_headers.
4703 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4704 `setURL', not `url.set'.
4706 2000-04-20 Tom Tromey <tromey@cygnus.com>
4708 Fix for PR java.io/204:
4709 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4710 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4713 Fix for PR libgcj/212:
4714 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4715 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4716 * java/lang/Class.h (_Jv_word): Declare.
4718 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4720 2000-04-19 Tom Tromey <tromey@cygnus.com>
4722 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4723 doesn't have a loader.
4725 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4727 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4728 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4730 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4732 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4734 (available): Initialize `where' to prevent bogus compiler warning.
4736 2000-04-12 Tom Tromey <tromey@cygnus.com>
4738 * java/lang/natString.cc (intern): Temporarily disable finalizer
4741 * java/lang/natString.cc (unintern): Added `obj' argument.
4742 (intern): Register finalizer for string.
4743 * java/lang/String.java (unintern): Now static; added obj
4746 2000-04-11 Tom Tromey <tromey@cygnus.com>
4748 * java/util/Vector.java (VectorEnumeration): Now `final'.
4749 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4750 (HashtableEnumeration): Likewise.
4751 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4752 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4754 2000-04-10 Warren Levy <warrenl@cygnus.com>
4756 * java/io/ObjectStreamException.java: New file.
4757 * java/io/OptionalDataException.java: New file.
4758 * java/io/StreamCorruptedException.java: New file.
4759 * java/math/BigDecimal.java: New file.
4760 * java/sql/CallableStatement.java: New file.
4761 * java/sql/Connection.java: New file.
4762 * java/sql/DataTruncation.java: New file.
4763 * java/sql/DatabaseMetaData.java: New file.
4764 * java/sql/Date.java: New file.
4765 * java/sql/Driver.java: New file.
4766 * java/sql/DriverManager.java: New file.
4767 * java/sql/DriverPropertyInfo.java: New file.
4768 * java/sql/PreparedStatement.java: New file.
4769 * java/sql/ResultSet.java: New file.
4770 * java/sql/ResultSetMetaData.java: New file.
4771 * java/sql/SQLException.java: New file.
4772 * java/sql/SQLWarning.java: New file.
4773 * java/sql/Statement.java: New file.
4774 * java/sql/Time.java: New file.
4775 * java/sql/Timestamp.java: New file.
4776 * java/sql/Types.java: New file.
4777 * Makefile.am: Added above new files.
4778 * Makefile.in: Rebuilt.
4780 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4781 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4782 DatagramSocket constructor instead of null.
4784 2000-04-08 Anthony Green <green@cygnus.com>
4786 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4789 2000-04-08 Anthony Green <green@cygnus.com>
4791 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4792 (_Jv_MutexUnlock): Ditto.
4793 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4794 (_Jv_MutexUnlock): Ditto.
4796 2000-04-08 Anthony Green <green@cygnus.com>
4798 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4799 (ensureCapacity_unsynchronized): New private method.
4800 (append): Use ensureCapacity_unsynchronized.
4802 2000-04-08 Tom Tromey <tromey@cygnus.com>
4804 * Makefile.in: Rebuilt.
4805 * Makefile.am (awt_java_source_files): Added new files.
4806 * java/awt/IllegalComponentStateException.java: New file.
4807 * java/awt/ItemSelectable.java: New file.
4808 * java/awt/event/WindowEvent.java: Finished.
4809 * java/awt/event/TextEvent.java: Finished.
4810 * java/awt/event/ContainerEvent.java: New file.
4811 * java/awt/Component.java (getX, getY): New methods.
4812 * java/awt/event/PaintEvent.java: New file.
4813 * java/awt/event/MouseEvent.java: New file.
4814 * java/awt/ActiveEvent.java: New file.
4815 * java/awt/event/KeyEvent.java: Finished.
4816 * java/awt/event/ItemEvent.java: New file.
4817 * java/awt/Adjustable.java: New file.
4818 * java/awt/event/InputMethodEvent.java: New file.
4819 * java/awt/event/InputEvent.java: Finished.
4820 * java/awt/event/FocusEvent.java: New file.
4821 * java/awt/event/MouseMotionAdapter.java: New file.
4822 * java/awt/event/MouseAdapter.java: New file.
4823 * java/awt/event/KeyAdapter.java: New file.
4824 * java/awt/event/FocusAdapter.java: New file.
4825 * java/awt/event/ContainerAdapter.java: New file.
4826 * java/awt/event/ComponentEvent.java: Finished.
4827 * java/awt/event/AdjustmentEvent.java: New file.
4828 * java/awt/event/ComponentAdapter.java: New file.
4829 * java/awt/event/ActionEvent.java: Finished.
4830 * java/awt/event/MouseMotionListener.java: New file.
4831 * java/awt/event/MouseListener.java: New file.
4832 * java/awt/event/ItemListener.java: New file.
4833 * java/awt/event/InputMethodListener.java: New file.
4834 * java/awt/event/ContainerListener.java: New file.
4835 * java/awt/event/FocusListener.java: New file.
4836 * java/awt/event/ComponentListener.java: New file.
4837 * java/awt/event/AWTEventListener.java: New file.
4838 * java/awt/event/AdjustmentListener.java: New file.
4840 2000-04-08 Anthony Green <green@cygnus.com>
4842 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4843 check when we have to.
4845 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4848 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4851 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4852 inline hasMoreElements.
4854 2000-04-05 Tom Tromey <tromey@cygnus.com>
4856 * configure: Rebuilt.
4857 * configure.in: Recognize --enable-java-awt.
4858 (AWT): New conditional.
4859 * Makefile.in: Rebuilt.
4860 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4862 (libgcjawt_la_SOURCES): New macro.
4863 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4864 (libgcjawt_la_DEPENDENCIES): Likewise.
4865 (libgcjawt_la_LIBADD): Likewise.
4866 (libgcjawt_la_LDFLAGS): Likewise.
4867 (libgcj.zip): Depend on cond_java_awt_source_files
4868 (cond_awt_java_source_files): New macro.
4869 (MOSTLYCLEANFILES): Added awto_files.
4870 (awto_files): New macro. Use where javao_files used.
4871 (nat_headers): Use cond_awt_java_source_files.
4873 2000-04-04 Tom Tromey <tromey@cygnus.com>
4875 * Makefile.in: Rebuilt.
4876 * Makefile.am (awt_java_source_files): Added AWTException.java.
4877 * java/awt/AWTException.java: New file.
4879 2000-04-03 Tom Tromey <tromey@cygnus.com>
4881 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4882 commentary from Alex.
4884 * Makefile.in: Rebuilt.
4885 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4888 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4890 * configure: Rebuilt.
4891 * configure.in: Add --disable-jvmpi.
4892 * include/config.h.in: Rebuilt.
4893 * acconfig.h: Add ENABLE_JVMPI.
4895 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4896 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4897 (_Jv_JVMPI_Notify_THREAD_END): New define.
4898 (_Jv_JVMPI_Notify_THREAD_END): New define.
4899 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4900 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4901 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4903 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4906 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4907 (finish_): Generate JVMPI thread end events.
4908 (run_): Generate JVMPI thread start events.
4909 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4910 preloaded JNI library.
4911 Include JVMPI headers if necessary.
4912 (run): Generate JVMPI thread start events.
4914 * boehm.cc: Define GC_disable and GC_enable.
4915 (_Jv_DisableGC): New function.
4916 (_Jv_EnableGC): New function.
4917 (disable_gc_mutex): Declare.
4918 * nogc.cc (_Jv_DisableGC): New function.
4919 (_Jv_EnableGC): New function.
4921 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4922 (_Jv_JVMPI_Interface): Define.
4923 (jvmpiEnableEvent): New function.
4924 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4926 * include/jvmpi.h: New file.
4928 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4930 * Makefile.in: New #defines and friends for Thread.h.
4931 * Makefile.am: Ditto.
4932 * posix-threads.cc: (struct starter): Remove `object'.
4933 (_Jv_CondWait): Use interruptable condition variables and new
4934 recursive mutexes. New return codes on interrupt or non-ownership
4936 (_Jv_CondNotify): Ditto.
4937 (_Jv_CondNotifyAll): Ditto.
4938 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4939 the target thread by signaling its wait condition.
4940 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4941 not the starter struct. Initialize wait_mutex and wait_cond.
4942 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4944 (_Jv_MutexUnlock): Ditto.
4945 (really_start): Set info->data->thread from pthread_self() to work
4946 around a race condition. Destroy wait_mutex and wait_cond when run()
4948 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4949 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4951 startable_flag: New private field.
4952 (Thread): Initialize `startable_flag'.
4953 (toString): Check for null thread group.
4954 * java/lang/natThread.cc: (struct natThread): New fields
4955 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4956 (class locker): Removed.
4957 (initialize_native): Initialize `join_cond' and `join_mutex'.
4958 (interrupt): Now just calls _Jv_ThreadInterrupt().
4959 (join): Simplified. Just wait on the target thread's join condition.
4960 (finish_): Remove join list code. Unset thread group. Signal
4961 potential joiners by notifying the dying threads join_cond.
4962 (start): Check for illegal restarts.
4963 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4965 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4966 #defines and #ifdefs.
4967 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4968 `wait_mutex', `next'.
4969 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4970 directly mapping to pthread_cond_t.
4971 (struct _Jv_Mutex_t): New recursive implementation.
4972 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4973 _Jv_HaveCondDestroy: Never define this for posix-threads.
4974 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4975 (_Jv_CondNotifyAll): Ditto.
4976 (_Jv_MutexLock): Ditto.
4977 (_Jv_MutexUnlock): Ditto.
4978 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4979 (_Jv_MutexDestroy): Ditto.
4980 (_Jv_CondDestroy): Removed.
4981 (_Jv_PthreadGetMutex): Removed.
4982 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4983 error. Add a FIXME about this.
4984 (_Jv_CondNotifyAll): Ditto.
4985 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4986 _JV_NOT_OWNER on other errors. Add FIXME.
4988 2000-03-26 Tom Tromey <tromey@cygnus.com>
4990 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4992 (call): Don't throw exception here.
4994 2000-03-26 Tom Tromey <tromey@cygnus.com>
4996 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4997 * interpret.cc: Use SIZEOF_VOID_P.
4998 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4999 (_Jv_loadLong): Likewise.
5000 (_Jv_storeDouble): Likewise.
5001 * configure: Rebuilt.
5002 * configure.in: Check size of void*.
5004 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5006 2000-03-26 Hans Boehm <boehm@acm.org>
5008 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5009 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5011 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5012 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5013 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5014 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5016 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5017 (FFI_RAW_SIZE): Likewise.
5018 (_Jv_InterpMethod::ncode): Use them.
5019 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5020 STORED): Define differently on a 64 bit machine.
5021 (continue1): Use ffi_java_raw_call when appropriate.
5023 2000-03-24 Warren Levy <warrenl@cygnus.com>
5025 * java/math/BigInteger.java(divide): Handle the special case when
5026 dividing by 1 and the high bit of the dividend is set.
5027 (setShiftRight): Handle case when count == 0.
5029 2000-03-24 Warren Levy <warrenl@cygnus.com>
5031 * java/awt/Font.java(isBold): Fix syntax error.
5033 * java/awt/Frame.java(postEvent): ditto.
5034 * java/awt/Menu.java(postEvent): ditto.
5035 * java/awt/MenuBar.java(postEvent): ditto.
5036 * java/awt/Toolkit.java(init): Included a stub.
5038 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5040 * java/awt/Event.java: Add all the event type constants.
5041 (Event): Implemented constructors.
5042 (controlDown): Implemented.
5043 (metaDown): Implemented.
5044 (paramString): Stubbed.
5045 (shiftDown): Implemented.
5046 (toString): Implemented.
5047 (translate): Implemented.
5049 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5051 * java/lang/natClass.cc (isInstance): Initialize `this'.
5052 (isAssignableFrom): Initialize `this' and `klass'.
5053 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5054 implemented by any loaded class, so return false.
5055 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5056 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5058 2000-03-19 Warren Levy <warrenl@cygnus.com>
5060 * java/awt/Color.java: Specified java.io for Serializable.
5061 * java/awt/Toolkit.java: Imported java.net.URL.
5063 2000-03-19 Warren Levy <warrenl@cygnus.com>
5065 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5067 2000-03-16 Warren Levy <warrenl@cygnus.com>
5069 * java/awt/Color.java: New file.
5070 * java/awt/Graphics.java: New file.
5071 * java/awt/Image.java: New file.
5072 * java/awt/Paint.java: New file.
5073 * java/awt/PaintContext.java: New file.
5074 * java/awt/Transparency.java: New file.
5075 * java/util/Collection.java: New file.
5076 * java/util/Comparator.java: New file.
5077 * java/util/Iterator.java: New file.
5078 * java/util/List.java: New file.
5079 * java/util/ListIterator.java: New file.
5080 * Makefile.am: Added above new files.
5081 * Makefile.in: Rebuilt.
5083 * java/awt/Font.java (PLAIN): New field.
5085 (ITALIC): New field.
5086 (ROMAN_BASELINE): New field.
5087 (CENTER_BASELINE): New field.
5088 (HANGING_BASELINE): New field.
5092 (pointSize): New field.
5093 (Font): Implemented constructor.
5094 (isPlain): Implemented method.
5095 (isBold): Implemented method.
5096 (isItalic): Implemented method.
5097 (getName): Implemented method.
5098 (getStyle): Implemented method.
5099 (getSize): Implemented method.
5100 (getSize2D): Implemented method.
5102 * java/awt/Frame.java (getFont): Stubbed.
5103 (postEvent): Stubbed.
5105 * java/awt/Menu.java (postEvent): Stubbed.
5106 * java/awt/MenuBar.java (getFont): Stubbed.
5107 (postEvent): Stubbed.
5108 * java/awt/Toolkit.java (getImage): Added abstract method.
5110 2000-03-15 Tom Tromey <tromey@cygnus.com>
5112 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5114 * prims.cc (win32_exception_handler): Reformatted.
5116 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5117 (_Jv_HaveMutexDestroy): Likewise.
5119 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5121 * java/io/natFileDescriptorWin32.cc: New file.
5122 * java/io/natFileWin32.cc: New file.
5123 * java/net/natInetAddress.cc: Added conditional inclusion of
5124 Windows / Winsock headers.
5125 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5126 inclusion of Windows / Winsock headers.
5127 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5128 Windows / Winsock headers.
5129 * include/win32-signal.h: New file.
5130 * include/win32-threads.h: New file.
5131 * win32-threads.cc: New file.
5132 * exception.cc (win32_get_restart_frame): New function.
5133 * prims.cc (win32_exception_handler): New function.
5134 (main_init) Performs Winsock initialisation.
5135 (main_init) Installs exeception handler.
5137 2000-03-14 Tom Tromey <tromey@cygnus.com>
5139 * jni.cc (mangled_name): Fixed assertion.
5140 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5141 turned assert into actual failure.
5143 2000-03-09 Warren Levy <warrenl@cygnus.com>
5145 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5146 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5147 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5149 2000-03-09 Warren Levy <warrenl@cygnus.com>
5151 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5152 * java/security/DigestException.java: New file.
5153 * java/security/GeneralSecurityException.java: New file.
5154 * java/security/InvalidAlgorithmParameterException.java: New file.
5155 * java/security/InvalidKeyException.java: New file.
5156 * java/security/InvalidParameterException.java: New file.
5157 * java/security/Key.java: New file.
5158 * java/security/KeyException.java: New file.
5159 * java/security/KeyPair.java: New file.
5160 * java/security/KeyPairGenerator.java: New file.
5161 * java/security/KeyPairGeneratorSpi.java: New file.
5162 * java/security/NoSuchProviderException.java: New file.
5163 * java/security/PrivateKey.java: New file.
5164 * java/security/Provider.java: New file.
5165 * java/security/PublicKey.java: New file.
5166 * java/security/SecureRandom.java: New file.
5167 * java/security/Security.java: New file.
5168 * java/security/Signature.java: New file.
5169 * java/security/SignatureException.java: New file.
5170 * java/security/interfaces/DSAKey.java: New file.
5171 * java/security/interfaces/DSAParams.java: New file.
5172 * java/security/interfaces/DSAPrivateKey.java: New file.
5173 * java/security/interfaces/DSAPublicKey.java: New file.
5174 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5175 * java/security/interfaces/RSAPrivateKey.java: New file.
5176 * java/security/interfaces/RSAPublicKey.java: New file.
5177 * java/security/spec/AlgorithmParameterSpec.java: New file.
5178 * java/security/spec/InvalidKeySpecException.java: New file.
5179 * java/security/spec/InvalidParameterSpecException.java: New file.
5180 * java/security/spec/KeySpec.java: New file.
5181 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5182 * java/security/spec/RSAPrivateKeySpec.java: New file.
5183 * java/security/spec/RSAPublicKeySpec.java: New file.
5184 * Makefile.am: Added above java.security files.
5185 * Makefile.in: Rebuilt.
5187 * java/security/MessageDigest.java: Rewritten.
5188 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5190 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5194 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5196 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5197 _Jv_PrepareConstantTimeTables.
5198 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5199 classes should have an IDT, so don't return if klass is an array
5202 2000-03-08 Tom Tromey <tromey@cygnus.com>
5204 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5205 of `void' to be created.
5207 2000-03-08 Warren Levy <warrenl@cygnus.com>
5209 * java/math/BigInteger.java(signum): Handle zero properly.
5211 2000-03-07 Tom Tromey <tromey@cygnus.com>
5213 * All files: Updated copyright information.
5214 * COPYING: New file.
5215 * COPYING.LIB: Removed.
5216 * LIBGCJ_LICENSE: We now use GPL + special exception.
5218 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5220 * resolve.cc (_Jv_SearchMethodInClass): New function.
5221 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5222 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5224 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5226 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5227 (struct _Jv_ifaces): New declaration.
5228 JV_CLASS: New macro definition.
5229 (getComponentType): Relocate below isArray() for inlining.
5230 (getModifiers): Declare `inline'.
5231 (getSuperclass): Ditto.
5233 (isPrimitive): Ditto.
5234 (_Jv_IsAssignableFrom): New prototype.
5235 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5237 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5238 Check for JV_STATE_DONE before invoking initializeClass().
5239 (_Jv_PrepareConstantTimeTables): New prototype.
5240 (_Jv_GetInterfaces): Ditto.
5241 (_Jv_GenerateITable): Ditto.
5242 (_Jv_GetMethodString): Ditto.
5243 (_Jv_AppendPartialITable): Ditto.
5244 (_Jv_FindIIndex): Ditto.
5245 depth, ancestors, idt: New class fields.
5247 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5248 inline function `_Jv_IsAssignableFrom'. Use that function.
5249 (isInstance): Declare `inline'.
5250 (initializeClass): Get lock on class before checking `state'. Unlock
5251 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5253 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5254 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5255 class->depth and ancestor table.
5256 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5257 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5258 _Jv_IsAssignableFrom.
5259 (_Jv_CheckArrayStore): Ditto.
5260 (_Jv_LookupInterfaceMethodIdx): New function.
5261 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5262 (_Jv_PrepareConstantTimeTables): New function.
5263 (_Jv_IndexOf): Ditto.
5264 (_Jv_GetInterfaces): Ditto.
5265 (_Jv_GenerateITable): Ditto.
5266 (_Jv_GetMethodString): Ditto.
5267 (_Jv_AppendPartialITable): Ditto.
5268 iindex_mutex, iindex_mutex_initialized: New static fields.
5269 (_Jv_FindIIndex): New function.
5271 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5273 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5274 (_Jv_CheckArrayStore): Ditto.
5275 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5276 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5277 Moved to gcj/array.h.
5278 (_Jv_Realloc): New function.
5280 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5282 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5283 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5284 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5285 JvNewDoubleArray): Implementations moved from prims.cc and
5288 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5290 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5292 2000-03-06 Tom Tromey <tromey@cygnus.com>
5294 * jni.cc (MARK_NONE): New define.
5295 (MARK_USER): Likewise.
5296 (MARK_SYSTEM): Likewise.
5297 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5299 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5300 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5301 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5302 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5304 (call): Use MARK_SYSTEM.
5305 (_Jv_GetJNIEnvNewFrame): New function.
5306 (_Jv_LookupJNIMethod): New function.
5307 (_Jv_JNI_PopSystemFrame): New function.
5308 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5310 2000-03-05 Tom Tromey <tromey@cygnus.com>
5312 Fix for PR libgcj/43:
5313 * include/Makefile.in: Rebuilt.
5314 * include/Makefile.am (include_HEADERS): New define.
5316 2000-03-05 Anthony Green <green@redhat.com>
5318 * gcj/javaprims.h ("Java"): Remove FirstThread.
5320 * configure.host: Fix __NO_MATH_INLNES botch.
5322 * Makefile.in: Rebuilt.
5323 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5324 (gnu/gcj/runtime/FirstThread.h): Moved.
5325 (ordinary_java_source_files): Move FirstThread.java.
5326 * prims.cc: Deal with FirstThread movement.
5328 (_Jv_RunMain): Ditto.
5330 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5331 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5333 2000-03-05 Warren Levy <warrenl@cygnus.com>
5335 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5336 Handle null addresses.
5338 2000-03-04 Anthony Green <green@redhat.com>
5340 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5343 2000-03-04 Anthony Green <green@redhat.com>
5345 * configure: Rebuilt.
5346 * configure.in (ZLIBTESTSPEC): New macro.
5347 (GCTESTSPEC): New macro.
5348 (LIBGCJTESTSPEC): New macro.
5349 * libgcj-test.spec.in: New file.
5351 2000-03-02 Tom Tromey <tromey@cygnus.com>
5353 * include/java-interp.h: Don't include MethodInvocation.h.
5354 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5355 * Makefile.in: Rebuilt.
5356 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5357 (ordinary_java_source_files): Don't mention
5358 MethodInvocation.java.
5359 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5360 * interpret.cc (MethodInvocation::continue1): Removed.
5361 (run): Handle exceptions here.
5362 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5364 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5366 (defineClass2): Removed.
5368 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5370 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5372 (hack_call): Removed.
5374 * java/lang/Class.h (Class): Removed hackRunInitializers,
5376 * java/lang/natClass.cc (hackRunInitializers): Removed.
5377 (initializeClass): Catch exceptions here.
5378 Include ExceptionInInitializerError.h.
5379 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5382 * java/lang/Object.h (Object): Don't mention hack12_6.
5383 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5385 * java/lang/Object.java (hack12_6): Removed.
5387 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5388 (start): Use run_, not run__.
5389 * java/lang/Thread.java (run_): Renamed from run__; old run_
5392 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5393 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5394 (_Jv_JNI_DefineClass): Likewise.
5395 (_Jv_JNI_ThrowNew): Likewise.
5396 (_Jv_JNI_AllocObject): Likewise.
5397 (_Jv_JNI_GetAnyMethodID): Likewise.
5398 (_Jv_JNI_CallAnyMethodV): Likewise.
5399 (_Jv_JNI_CallAnyMethodA): Likewise.
5400 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5401 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5402 (_Jv_JNI_GetAnyFieldID): Likewise.
5403 (_Jv_JNI_NewString): Likewise.
5404 (_Jv_JNI_NewStringUTF): Likewise.
5405 (_Jv_JNI_GetStringUTFChars): Likewise.
5406 (_Jv_JNI_NewObjectArray): Likewise.
5407 (_Jv_JNI_NewPrimitiveArray): Likewise.
5408 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5409 (_Jv_JNI_GetStringRegion): Likewise.
5410 (_Jv_JNI_GetStringUTFRegion): Likewise.
5411 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5412 (_Jv_JNI_MonitorEnter): Likewise.
5413 (_Jv_JNI_MonitorExit): Likewise.
5414 (_Jv_JNI_ToReflectedField): Likewise.
5415 (_Jv_JNI_ToReflectedMethod): Likewise.
5416 (_Jv_JNI_RegisterNatives): Likewise.
5417 (_Jv_JNI_AttachCurrentThread): Likewise.
5418 (_Jv_JNI_DestroyJavaVM): Likewise.
5420 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5422 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5423 error caused by the incorrect casting of a long to an int.
5425 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5427 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5428 SIGSEV caused by use of the wrong instance variable.
5430 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5432 * java/io/File.java (File(String, String)): For dirPath, treat an
5433 empty String the same as `null'.
5435 2000-02-26 Anthony Green <green@cygnus.com>
5437 * gnu/gcj/io/MimeTypes.java: Test for null.
5439 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5440 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5442 * java/net/URLConnection.java: Update copyright notice.
5444 2000-02-25 Tom Tromey <tromey@cygnus.com>
5446 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5449 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5451 * java/net/URLConnection.java (initializeDateFormats): New
5453 (getHeaderFieldDate): Call initializeDateFormats if required.
5454 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5456 Fix for PR libgcj/38.
5458 2000-02-24 Warren Levy <warrenl@cygnus.com>
5460 * java/math/BigInteger.java(ival): Made private.
5464 2000-02-20 Anthony Green <green@cygnus.com>
5466 * Makefile.in: Rebuilt.
5467 * Makefile.am (ordinary_java_source_files): Add
5468 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5470 * scripts/MakeDefaultMimeTypes.java: New file.
5471 * scripts/mime.types: New file.
5472 * scripts/classes.pl: Moved from top level.
5473 * classes.pl: Moved to scripts directory.
5475 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5477 * gnu/gcj/io/MimeTypes.java: New file.
5478 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5480 2000-02-20 Tom Tromey <tromey@cygnus.com>
5482 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5484 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5486 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5489 2000-02-18 Tom Tromey <tromey@cygnus.com>
5491 * include/jvm.h (_Jv_GetJavaVM): Declare.
5492 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5493 (_Jv_MethodBase::get_method): New method.
5494 (_Jv_JNIMethod::set_function): New method.
5495 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5496 (_Jv_JNI_RegisterNatives): New function.
5497 (_Jv_JNIFunctions): Updated for new functions.
5498 (_Jv_GetJavaVM): New function.
5499 (_Jv_JNI_GetJavaVM): Use it. Now static.
5500 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5501 is already a Java thread but does not have a JNIEnv yet.
5503 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5506 2000-02-17 Tom Tromey <tromey@cygnus.com>
5508 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5511 2000-02-16 Tom Tromey <tromey@cygnus.com>
5513 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5515 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5516 (_Jv_JNI_NewObject): Likewise.
5517 (_Jv_JNI_NewObjectA): Likewise.
5518 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5519 as "return" type to _Jv_CallAnyMethodA.
5520 (_Jv_JNI_CallAnyMethodA): Likewise.
5521 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5523 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5526 2000-02-15 Tom Tromey <tromey@cygnus.com>
5528 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5530 (init_cif): Added `rtype_p' argument.
5531 * include/java-interp.h (class _Jv_MethodBase): Added
5533 (class _Jv_InterpMethod): Removed args_raw_size.
5534 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5535 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5536 class pointer as well as the ordinary arguments.
5538 * jni.cc (mangled_name): Skip leading `(' in signature.
5540 * jni.cc (add_char): Added missing `else'.
5542 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5545 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5549 * java/lang/natRuntime.cc (_load): Include library path with
5552 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5555 * java/lang/natThread.cc (dumpStack): Removed.
5556 * java/lang/Thread.java (dumpStack): Implemented.
5558 2000-02-15 Tom Tromey <tromey@cygnus.com>
5560 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5561 with `lib' for loadLibrary. Fixes PR gcj/150.
5563 2000-02-14 Warren Levy <warrenl@cygnus.com>
5565 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5567 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5571 (modPow): Rewritten to not use the naive, slow, brute force approach.
5572 (isProbablePrime): Implemented.
5573 (testBit): Implemented.
5574 (flipBit): Implemented.
5575 (getLowestSetBit): Implemented.
5577 2000-02-16 Anthony Green <green@redhat.com>
5579 * configure.host: Use the same options for i386 and i486 as we do
5582 2000-02-12 Tom Tromey <tromey@cygnus.com>
5584 * java/io/File.java (createTempFile): Use low bits from counter,
5587 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5589 * THANKS: More thanks.
5591 2000-02-11 Tom Tromey <tromey@cygnus.com>
5593 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5594 astore instruction. From Hans Boehm.
5596 2000-02-11 Warren Levy <warrenl@cygnus.com>
5598 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5599 (BigInteger(String)): New constructor.
5600 (not): Rewritten using version from Kawa's BitOps class.
5601 (valueOf): New private methods from Kawa's BitOps class.
5608 (andNot): Implemented.
5609 (clearBit): Implemented.
5610 (setBit): Implemented.
5611 (bitCount): Implemented.
5612 (toByteArray): Implemented.
5614 2000-02-11 Tom Tromey <tromey@cygnus.com>
5616 * java/io/File.java (nextValue): Now synchronized.
5618 2000-02-10 Tom Tromey <tromey@cygnus.com>
5620 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5621 * java/io/FileDescriptor.java (EXCL): New static field.
5622 * java/io/File.java (tmpdir): New static field.
5623 (createTempFile): New method.
5624 (nextValue): New method.
5625 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5628 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5629 (jboolean): Declare as an attributed int, not a bool.
5630 (_Jv_func): Declare differently for C.
5632 * gnu/gcj/jni/natNativeThread.cc: New file.
5633 * gnu/gcj/jni/NativeThread.java: New file.
5634 * java/lang/Thread.java (data): Now a RawData.
5635 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5637 * Makefile.in: Rebuilt.
5638 * Makefile.am (java/lang/Thread.h): New target.
5639 (ordinary_java_source_files): Added NativeThread.java.
5640 (nat_source_files): Added natNativeThread.cc.
5641 * java/lang/natThread.cc: Include <jni.h>
5642 (struct natThread): Added `jni_env' field.
5643 (_Jv_GetCurrentJNIEnv): New function.
5644 (_Jv_SetCurrentJNIEnv): Likewise.
5645 (initialize_native): Initialize jni_env.
5647 * jni.cc (ThreadGroupClass): New define.
5648 (_Jv_JNI_InvokeFunctions): New structure.
5649 (JNI_GetCreatedJavaVMs): New function.
5650 (the_vm): New global.
5651 (JNI_GetDefaultJavaVMInitArgs): New function.
5652 Include NativeThread.h.
5653 (NativeThreadClass): New define.
5654 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5655 (_Jv_JNI_DestroyJavaVM): New function.
5656 (_Jv_JNI_AttachCurrentThread): New function.
5657 (_Jv_JNI_DetachCurrentThread): New function.
5658 (_Jv_JNI_GetEnv): New function.
5659 (JNI_CreateJavaVM): New function.
5660 (_Jv_JNI_GetJavaVM): New function.
5661 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5662 * include/jni.h (JavaVMAttachArgs): New structure.
5663 (JNI_EDETACHED): New define.
5664 (JNI_EVERSION): Likewise.
5665 (JavaVM): Define properly.
5666 (struct JNIInvokeInterface): New structure.
5667 (class _Jv_JavaVM): New class.
5668 (JNI_OnLoad, JNI_OnUnload): Declare.
5669 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5670 JNI_GetCreatedJavaVMs): Declare.
5671 (JavaVMInitArgs): New typedef.
5672 (JavaVMOption): Likewise.
5673 (JNI_ERR): New define.
5676 2000-02-10 Andrew Haley <aph@cygnus.com>
5678 * interpret.cc: Don't include fdlibm.h.
5679 Replace #if with #ifdef throughout.
5680 Declare extern __ieee754_fmod.
5681 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5683 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5684 Search class hierarchy for superclass vtable.
5686 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5687 off the end of a pointer list.
5689 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5693 2000-02-09 Tom Tromey <tromey@cygnus.com>
5695 * java/lang/natRuntime.cc (_load): Call add_library.
5696 (loadLibraryInternal): Likewise.
5698 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5699 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5700 (Output_iconv::finalize): Likewise.
5702 2000-02-08 Tom Tromey <tromey@cygnus.com>
5704 * java/util/Properties.java (setProperty): New method.
5705 (store): New method.
5707 2000-02-07 Tom Tromey <tromey@cygnus.com>
5709 * java/lang/Runtime.java (_load): Declare.
5710 (load, loadLibrary): Wrote in terms of _load.
5711 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5713 (loadLibrary): Likewise.
5715 (_load): New method.
5716 (loadLibrary, load): Removed.
5718 * jni.cc (ThrowableClass): New define.
5719 (_Jv_JNI_Throw): Check argument.
5720 (_Jv_JNI_ThrowNew): Likewise.
5721 (wrap_value): Don't wrap object if it is NULL.
5722 (_Jv_JNI_DefineClass): Use wrap_value.
5723 (_Jv_JNI_FindClass): Likewise.
5724 (_Jv_JNI_GetSuperclass): Likewise.
5725 (_Jv_JNI_ExceptionOccurred): Likewise.
5726 (_Jv_JNI_AllocObject): Likewise.
5727 (_Jv_JNI_GetObjectClass): Likewise.
5728 (_Jv_JNI_NewString): Likewise.
5729 (_Jv_JNI_NewStringUTF): Likewise.
5730 (_Jv_JNI_NewObjectArray): Likewise.
5731 (_Jv_JNI_GetObjectArrayElement): Likewise.
5732 (_Jv_JNI_NewPrimitiveArray): Likewise.
5733 (_Jv_JNI_ToReflectedField): Likewise.
5734 (_Jv_JNI_ToReflectedMethod): Likewise.
5735 (_Jv_JNI_AllocObject): Check argument.
5736 (_Jv_JNI_NewObjectV): Likewise.
5737 (_Jv_JNI_NewObject): Likewise.
5738 (_Jv_JNI_NewObjectA): Likewise.
5739 (_Jv_JNI_GetObjectClass): Likewise.
5740 (_Jv_JNI_GetField): Likewise.
5741 (_Jv_JNI_SetField): Likewise.
5743 * interpret.cc (PUSHL): Don't use expression statement.
5748 * jni.cc (add_char): Conditional on INTERPRETER.
5749 (mangled_name): Likewise.
5751 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5753 (class _Jv_JNIMethod): Likewise.
5755 2000-02-04 Warren Levy <warrenl@cygnus.com>
5757 * Makefile.am: Added MPN.java and BigInteger.java.
5758 * Makefile.in: Rebuilt.
5759 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5761 * java/math/BigInteger.java: New file. Based primarily on
5762 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5764 2000-02-04 Tom Tromey <tromey@cygnus.com>
5766 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5768 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5769 if the method is native.
5770 * resolve.cc (ncode): Don't handle native methods.
5771 (_Jv_JNIMethod::ncode): New method.
5772 (_Jv_PrepareClass): Handle native methods.
5773 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5774 Include AbstractMethodError.h.
5775 (add_char): New function.
5776 (mangled_name): Likewise.
5777 * include/java-interp.h (class _Jv_JNIMethod): New class.
5778 (class _Jv_MethodBase): New class.
5779 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5780 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5783 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5784 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5785 libraries): New globals.
5786 (add_library): New function.
5787 (_Jv_FindSymbolInExecutable): New function.
5789 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5792 2000-02-04 Andrew Haley <aph@cygnus.com>
5794 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5795 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5796 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5797 printStackTrace to printRawStackTrace.
5799 2000-02-03 Tom Tromey <tromey@cygnus.com>
5801 * java/util/Calendar.java (toString): New method.
5802 * java/util/SimpleTimeZone.java (clone): New method.
5803 (toString): New method.
5804 * java/util/TimeZone.java (clone): New method.
5805 * java/text/SimpleDateFormat.java (clone): New method.
5806 * java/text/NumberFormat.java (clone): New method.
5807 (equals): New method.
5808 * java/text/Format.java (clone): New method.
5809 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5811 (clone): New method.
5812 * java/text/DateFormat.java (clone): New method.
5813 * java/text/Collator.java (clone): New method.
5815 2000-02-03 Tom Tromey <tromey@cygnus.com>
5817 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5820 2000-02-01 Tom Tromey <tromey@cygnus.com>
5822 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5823 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5824 constructing the closure if the function is native.
5825 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5826 a template function, #if'd out, or static.
5827 Include <java-interp.h>.
5829 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5831 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5833 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5834 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5836 (wrap_value): New function.
5837 (_Jv_JNI_CallAnyMethodV): Use it.
5838 (_Jv_JNI_CallAnyMethodA): Likewise.
5839 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5840 (_Jv_JNI_GetStaticField): Likewise.
5842 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5843 (_Jv_JNI_GetStaticField): Likewise.
5845 2000-01-31 Tom Tromey <tromey@cygnus.com>
5847 * prims.cc (_Jv_MallocUnchecked): New function.
5848 (main_init): Call _Jv_JNI_Init.
5849 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5850 (_Jv_JNI_Init): Declare.
5851 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5853 (_Jv_JNI_NewGlobalRef): New function.
5854 (_Jv_JNI_DeleteGlobalRef): New function.
5855 (_Jv_JNI_DeleteLocalRef): New function.
5856 (_Jv_JNI_conversion_call): Initialize and clear local reference
5858 (_Jv_JNI_NewLocalRef): New function.
5859 (struct _Jv_JNI_LocalFrame): New structure.
5860 (_Jv_JNI_PushLocalFrame): New function.
5861 (_Jv_JNI_EnsureLocalCapacity): New function.
5862 (FRAME_SIZE): New define.
5863 (_Jv_JNI_GetStringChars): Mark string, not characters.
5864 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5865 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5866 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5868 (_Jv_JNI_DefineClass): Make return value a local ref.
5869 (_Jv_JNI_FindClass): Likewise.
5870 (_Jv_JNI_GetSuperclass): Likewise.
5871 (_Jv_JNI_ExceptionOccurred): Likewise.
5872 (_Jv_JNI_AllocObject): Likewise.
5873 (_Jv_JNI_GetObjectClass): Likewise.
5874 (_Jv_JNI_CallAnyMethodV): Likewise.
5875 (_Jv_JNI_NewString): Likewise.
5876 (_Jv_JNI_NewStringUTF): Likewise.
5877 (_Jv_JNI_NewObjectArray): Likewise.
5878 (_Jv_JNI_GetObjectArrayElement): Likewise.
5879 (_Jv_JNI_ToReflectedField): Likewise.
5880 (_Jv_JNI_ToReflectedMethod): Likewise.
5881 (_Jv_JNIFunctions): Updated table for new functions.
5882 (_Jv_JNI_Init): New function.
5883 (mark_for_gc): Wrote.
5884 (unmark_for_gc): Wrote.
5885 * include/jni.h (struct JNINativeInterface): Removed name from
5886 PopLocalFrame parameter.
5887 (class _Jv_JNIEnv): Added `locals' field.
5889 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5891 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5894 2000-01-30 Tom Tromey <tromey@cygnus.com>
5896 * include/config.h.in: Rebuilt.
5897 * acconfig.h (HAVE_ICONV): Define.
5898 * configure: Rebuilt.
5899 * configure.in: Check for `iconv' function.
5900 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5901 no specific encoder exists.
5902 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5903 no specific encoder exists.
5904 * Makefile.in: Rebuilt.
5905 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5907 (nat_source_files): Added natIconv.cc.
5908 * gnu/gcj/convert/natIconv.cc: New file.
5909 * gnu/gcj/convert/Input_iconv.java: New file.
5910 * gnu/gcj/convert/Output_iconv.java: New file.
5912 2000-01-28 Tom Tromey <tromey@cygnus.com>
5914 * Makefile.in: Rebuilt.
5915 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5917 2000-01-26 Tom Tromey <tromey@cygnus.com>
5919 * gcj/method.h (JvNumMethods): Moved from Class.h.
5920 (JvGetFirstMethod): Likewise.
5921 * java/lang/Class.h (Object): Updated decl of
5922 _Jv_JNI_ToReflectedField.
5923 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5924 * Makefile.in: Rebuilt.
5925 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5926 argument of _Jv_JNI_ToReflectedField.
5927 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5929 (java/lang/reflect/Method.h): Likewise.
5930 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5932 (jweak): New typedef.
5933 (struct JNINativeInterface): Correctly declare remaining entries.
5934 * jni.cc: Include Class.h, ClassLoader.h.
5935 (_Jv_JNI_FindClass): New function.
5936 (_Jv_JNI_DefineClass): New function.
5937 (_Jv_JNI_conversion_call): New function.
5938 (_Jv_JNI_FindClass): Use current class loader to find class.
5939 (_Jv_JNI_ExceptionCheck): New function.
5940 (_Jv_JNI_FromReflectedField): Now static.
5941 (MethodClass): New define.
5942 (_Jv_JNI_FromReflectedMethod): New function.
5943 (_Jv_JNI_ToReflectedMethod): Likewise.
5945 (_Jv_JNI_IsAssignableFrom): Renamed.
5946 (_Jv_JNI_GetStringRegion): New function.
5947 Include StringIndexOutOfBoundsException.h.
5948 (_Jv_JNI_GetStringUTFRegion): New function.
5949 (_Jv_JNIFunctions): Updated for new functions.
5950 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5951 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5952 (_Jv_JNI_GetStringCritical): New function.
5953 (_Jv_JNI_ReleaseStringCritical): Likewise.
5954 (get_throwable): Removed.
5955 (GCJ_JV_JNIENV_FRIEND): Removed.
5956 (__GCJ_JNI_IMPL__): Define.
5959 * resolve.cc (get_ffi_type_from_signature): Handle case where
5962 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5964 * interpret.cc (run): Don't call println.
5965 Don't include PrintStream.h.
5967 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5968 nameIndex. Use "jint" as type for boffset.
5969 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5971 (Class): Likewise. Also changed type of method_count,
5972 vtable_method_count, size_in_bytes, field_count,
5973 static_field_count, interface_count.
5974 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5977 2000-01-21 Tom Tromey <tromey@cygnus.com>
5979 * java/lang/reflect/natConstructor.cc (newInstance): Use
5981 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5982 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5983 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5986 (invoke): Use _Jv_CallAnyMethodA.
5988 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5989 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5991 (struct _Jv_Method): Added getNextMethod method.
5992 (JvNumMethods): New function.
5993 (JvGetFirstMethod): Likewise.
5994 * gcj/field.h (JvGetFirstStaticField): New function.
5995 (JvNumStaticFields): Likewise.
5996 (getNextField): Renamed from getNextInstanceField.
5997 (struct _Jv_Field): New method getClass.
5998 * jni.cc: Wrote many new functions.
5999 * include/jni.h (JNI_TRUE): Define.
6000 (JNI_FALSE): Likewise.
6001 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6002 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6003 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6004 (jfieldID, jmethodID): Likewise.
6005 (JNI_COMMIT, JNI_ABORT): New defines.
6006 (JNINativeMethod): New struct.
6007 (struct JNINativeInterface): Correctly declared more entries.
6008 (class _Jv_JNIEnv): Added `ex' member.
6009 (JNI_VERSION_1_1): New define.
6010 (JNI_VERSION_1_2): Likewise.
6012 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6013 getNextInstanceField.
6015 2000-01-20 Tom Tromey <tromey@cygnus.com>
6017 * resolve.cc (StringClass): Removed.
6018 * defineclass.cc (StringClass): Removed.
6020 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6024 2000-01-19 Tom Tromey <tromey@cygnus.com>
6026 * interpret.cc (PC_REGISTER_ASM): Removed.
6028 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6029 From Bryce McKinlay.
6031 * All files: Updated copyright to reflect Cygnus purchase.
6033 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6035 * configure: Rebuilt.
6036 * configure.in: Recognize --disable-interpreter.
6038 2000-01-18 Andrew Haley <aph@cygnus.com>
6040 * name-finder.cc (lookup): Check for dladdr function.
6041 acconfig.h (HAVE_DLADDR): Add.
6042 configure.in: Check for HAVE_DLADDR
6044 include/config.h.in: Rebuilt.
6046 2000-01-17 Andrew Haley <aph@cygnus.com>
6048 * prims.cc (_Jv_RunMain): Set the name of this executable.
6050 2000-01-17 Tom Tromey <tromey@cygnus.com>
6052 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6053 when backtrace can't be computed.
6055 * configure: Rebuilt.
6056 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6058 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6059 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6060 (_Jv_FindClassInCache): Likewise.
6061 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6062 (findSystemClass): Try to load class from compiled module.
6064 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6065 (loadLibrary): Likewise.
6066 (lt_preloaded_symbols): Define.
6067 (loadLibraryInternal): New method.
6068 * include/config.h.in: Rebuilt.
6069 * acconfig.h (USE_LTDL): Added.
6070 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6071 (INCLUDES): Added $(INCLTDL).
6072 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6073 (libgcj_la_LIBADD): Likewise.
6074 * aclocal.m4, configure: Rebuilt.
6075 * configure.in: Added libltdl support.
6077 2000-01-15 Tom Tromey <tromey@cygnus.com>
6079 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6081 2000-01-14 Andrew Haley <aph@cygnus.com>
6083 * java/lang/natThrowable.cc: New file.
6085 * java/lang/Throwable.java (fillInStackTrace): Make native.
6086 (printStackTrace): Call native method to do this.
6087 (Throwable): Call fillInStackTrace.
6088 (stackTrace): New variable.
6090 * include/jvm.h: Add _Jv_ThisExecutable functions.
6092 * prims.cc: (_Jv_execName): New variable.
6093 (catch_segv): Call fillInStackTrace.
6095 (_Jv_ThisExecutable): New functions.
6096 (JvRunMain): Set the name of this executable.
6098 * Makefile.am: Add java/lang/natThrowable.cc.
6100 * Makefile.in: Rebuilt.
6102 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6104 * configure.in: Force link with __frame_state_for in
6105 FORCELIBGCCSPEC. Add new checks for backtrace.
6106 * include/config.h.in: Rebuilt.
6108 * name-finder.cc: New file.
6109 * include/name-finder.h: New file.
6111 2000-01-16 Anthony Green <green@cygnus.com>
6113 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6116 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6118 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6120 2000-01-13 Tom Tromey <tromey@cygnus.com>
6122 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6123 not system loader, as initiating loader.
6125 2000-01-11 Tom Tromey <tromey@cygnus.com>
6127 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6128 HP/UX. From David Scott Urban.
6130 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6132 * java/lang/natMath.cc (pow): Cast args to `double', not
6135 (IEEEremainder): Likewise.
6136 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6137 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6139 2000-01-09 Anthony Green <green@cygnus.com>
6141 * java/lang/natString.cc (init): Test for overflow condition
6142 during out of bounds check.
6143 (getChars): Throw StringIndexOutOfBoundsException, not
6144 ArrayIndexOutOfBoundsException.
6146 (regionMatches): Obey case option during string comparison.
6148 * configure.host (ligcj_interpreter): New variable. Enable
6149 interpreter by default on IA-32.
6150 * configure.in: Examine libgcj_interpreter.
6151 * configure: Rebuilt.
6153 2000-01-07 Tom Tromey <tromey@cygnus.com>
6155 * mauve-libgcj: Don't disable ClassTest.
6157 * java/lang/natClass.cc (getClasses): Wrote.
6159 2000-01-06 Tom Tromey <tromey@cygnus.com>
6161 * java/lang/natClass.cc (_getConstructors): Correctly check
6162 whether method name is the init name.
6163 (getMethod): Look at accflags on method in `klass', not `this'.
6165 2000-01-05 Tom Tromey <tromey@cygnus.com>
6167 * java/lang/natClass.cc (getMethod): Compute offset relative to
6168 `klass's methods table, not `this's table.
6170 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6171 In unwrapping/widening case, check whether `k' is null, not
6172 whether it is primitive. Initialize `num' from `argelts', not
6173 `paramelts'. Correct create and pass arguments to ffi_call.
6174 Don't let presence of `this' argument affect index used to look in
6176 (COPY): Set appropriate element in `values' vector.
6178 * java/lang/natClass.cc: Include <gcj/method.h>.
6180 * java/lang/Class.h (_getMethods): Correctly declare as private,
6183 * java/lang/Class.h (_getMethods): Declare.
6184 * java/lang/Class.java (_getMethods): Declare.
6185 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6186 (getDeclaredClasses): Always return empty array.
6187 (_getMethods): New method.
6188 (getMethods): Wrote.
6189 (getDeclaredMethod): Return `rmethod'.
6190 (finit_name): New global.
6191 (getDeclaredMethods): Check for finit_name.
6192 (_getMethods): Likewise.
6193 (getMethod): Only return public methods.
6195 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6196 jboolean and select correct ffi type on that basis.
6197 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6198 Constructor call always has `void' return type.
6200 2000-01-04 Tom Tromey <tromey@cygnus.com>
6202 * java/lang/Class.h (getSignature): Updated.
6203 * java/lang/Class.java (getSignature): Updated.
6204 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6206 (getConstructor): Ensure constructor is public.
6207 (_getConstructors): Check for public-ness of constructor when
6208 `declared' is false, not when it is true.
6210 2000-01-04 Warren Levy <warrenl@cygnus.com>
6212 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6214 (receive): Set the sender's address in the DatagramPacket.
6216 2000-01-04 Tom Tromey <tromey@cygnus.com>
6218 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6219 declaring class as return_type argument to
6220 _Jv_CallNonvirtualMethodA.
6221 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6222 constructor case, create object and use it as `this' argument.
6223 * java/lang/Class.h (_getConstructors): Declare.
6224 (_getFields): Declare.
6225 * java/lang/Class.java (getConstructors): Wrote.
6226 (_getConstructors): New native method.
6227 (getDeclaredConstructors): Wrote.
6228 (_getFields): Declare new native method.
6229 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6231 (getMethod): Work correctly when class is primitive.
6232 (getDeclaredMethods): Likewise. Compute offset using `method',
6234 (getDeclaredMethod): Likewise.
6235 (getConstructor): Wrote.
6236 (ConstructorClass): New define.
6237 (getDeclaredConstructor): Wrote.
6238 (_getConstructors): New method.
6239 (_getFields): New method.
6242 * Makefile.in: Rebuilt.
6243 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6245 * prims.cc: Remove `#pragma implementation'.
6246 * gcj/array.h: Remove `#pragma interface'.
6248 * prims.cc (_Jv_equaln): New function.
6249 * java/lang/Class.java (getSignature): Declare.
6250 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6251 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6253 (getSignature): New method.
6254 (getDeclaredMethod): Wrote.
6256 Include StringBuffer.h.
6257 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6258 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6260 (getSignature): Declare.
6261 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6262 (_Jv_equaln): Declare.
6263 (_Jv_CallNonvirtualMethodA): Declare.
6264 * Makefile.in: Rebuilt.
6265 * Makefile.am (nat_source_files): Added natConstructor.cc.
6266 (java/lang/reflect/Constructor.h): New target.
6267 * java/lang/reflect/natConstructor.cc: New file.
6268 * java/lang/reflect/Constructor.java (newInstance): Now native.
6269 (declaringClass): Renamed from decl_class.
6270 (offset): Renamed from index.
6271 (getType): New native method.
6272 (getModifiers): Now native.
6273 (getParameterTypes): Call getType if required.
6274 (hashCode): Include hash code from declaring class.
6275 (modifiers): Removed.
6276 (toString): Call getType if required.
6277 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6278 * java/lang/reflect/natMethod.cc (hack_call): New method.
6279 Removed `#if 0' around FFI code.
6280 Include <gnu/gcj/RawData.h>.
6281 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6282 IllegalArgumentException when argument object and class disagree.
6283 (_Jv_GetTypesFromSignature): New function.
6285 (ObjectClass): New define.
6286 (_Jv_CallNonvirtualMethodA): New function.
6287 * java/lang/reflect/Method.java (hack_trampoline): New method.
6288 (hack_call): New native method.