1 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
3 * include/jni.h (struct JNINativeInterface): Fixed types in
4 Get/Set*ArrayRegion declarations.
5 (class _Jv_JNIEnv): Likewise.
7 2001-04-25 Bryce McKinlay <bryce@albatross.co.nz>
9 * configure.in: Obtain THREADS with `gcc -v'.
12 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15 * java/io/ObjectStreamClass.java (setClass): Calculate
16 serialVersionUID for local class and compare it against the UID
17 from the Object Stream. Throw InvalidClassException upon mismatch.
18 (setUID): Renamed to...
19 (getClassUID): this. Return the calculated class UID rather than
20 setting uid field directly.
21 (getDefinedSUID): Removed.
22 * java/io/ObjectInputStream.java (resolveClass): Use the
23 three-argument Class.forName().
24 * java/io/InvalidClassException (toString): Don't include classname in
27 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
30 Wrap use of inet_pton in HAVE_INET6.
32 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
34 java.security merge and ClassLoader compliance fixes.
36 * java/lang/Class.h (Class): Include ProtectionDomain.h.
37 New protectionDomain field.
38 (forName): Add initialize parameter. Fixes declaration to comply with
40 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
41 variant. Honour "initialize" flag.
42 (getProtectionDomain0): New method.
43 * java/lang/Class.java: Fix forName() declaration.
44 (getPackage): New method based on Classpath implementation.
45 (getProtectionDomain0): New native method decl.
46 (getProtectionDomain): New method.
47 * java/lang/ClassLoader.java (getParent): Now final.
48 (definedPackages): New field.
50 (defineClass): New variant with protectionDomain argument.
53 (findSystemClass): Now final.
54 (getSystemResourceAsStream): Remove redundant "final" modifier.
55 (getSystemResource): Remove redundant "final" modifier.
56 (getResources): Now final.
57 (protectionDomainPermission): New static field.
58 (unknownProtectionDomain): Ditto.
59 (defaultProtectionDomain): Ditto.
60 (getSystemClassLoader): Now non-native.
61 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
62 arguments for Class.forName().
63 * java/lang/Package.java: New file.
64 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
65 (instance): Static initialize singleton.
66 (findClass): Override this, not findSystemClass.
67 * java/lang/natClassLoader.cc (defineClass0): Set class's
68 protectionDomain field as specified.
69 (getSystemClassLoader): Removed.
70 (findClass): Renamed from findSystemClass. Call the interpreter via
71 URLClassLoader.findClass if loading class via dlopen fails.
73 * java/security/*.java: java.security import/merge with Classpath.
74 * java/security/acl/*.java: Likewise.
75 * java/security/interfaces/*.java: Likewise.
76 * java/security/spec/*.java: Likewise.
77 * java/net/NetPermission.java: Likewise.
78 * java/net/SocketPermission.java: Likewise.
79 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
81 * Makefile.am: Add new classes.
82 * Makefile.in: Rebuilt.
83 * gcj/javaprims.h: CNI namespace rebuild.
85 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
87 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
88 for libtool tests. Pre-create gnu/classpath/Configuration.java.
91 2001-04-21 Tom Tromey <tromey@redhat.com>
93 * Makefile.in: Rebuilt.
94 * Makefile.am (awt_java_source_files): Added Line2D.java.
95 * java/awt/geom/Line2D.java: Wrote.
97 * java/awt/Menu.java (addNotify): Wrote.
99 * java/awt/PopupMenu.java (addNotify): Implemented.
102 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
103 * java/awt/List.java (addNotify): Call super.addNotify.
104 * java/awt/Label.java (addNotify): Call super.addNotify.
105 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
106 * java/awt/Dialog.java (addNotify): Call super.addNotify.
107 * java/awt/Choice.java (addNotify): Call super.addNotify.
108 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
109 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
111 * java/awt/List.java (replaceItem): Notify peer.
113 * java/awt/geom/Rectangle2D.java
114 (Float.setRect(float,float,float,float)): New method.
116 * java/awt/event/ContainerEvent.java (getContainer): Now returns
119 * java/awt/RenderingHints.java (Key): Class now public.
121 * java/awt/Rectangle.java (Rectangle): Now implements
123 (getPathIterator): Removed.
125 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
128 * java/awt/FileDialog.java: Wrote.
130 * java/awt/EventQueue.java (isDispatchThread): Now public.
131 (invokeLater): Likewise.
133 * java/awt/Component.java (setCursor): Update peer.
134 (getFontMetrics): Use peer.
136 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
139 2001-04-20 Tom Tromey <tromey@redhat.com>
141 * java/awt/List.java: Wrote.
142 * java/awt/Dialog.java: Wrote.
144 2001-04-20 Warren Levy <warrenl@redhat.com>
146 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
147 * java/text/SimpleDateFormat.java
148 (indexInArray): Removed private method.
149 (processYear): Removed private method.
150 (parseLenient): Removed private method.
151 (parseLeadingZeros): Removed private method.
152 (parseStrict): Removed private method.
153 (expect): Added new private method.
154 (parse): Reverted to pre-Classpath merge version with minor fixes.
155 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
158 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
160 * java/io/File.java (normalizePath): New private method.
161 (File (String)): Use normalizePath().
162 (File (String, String)): Likewise.
164 * Makefile.am (libffi_files): Removed.
165 (libgcj.la): Link libffi as a convenience library instead of
166 refering to its object files directly.
167 * Makefile.in: Rebuilt.
169 2001-04-08 Per Bothner <per@bothner.com>
171 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
172 Recalculate hash, since Utf8Const's hash is only 16 bits.
174 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
175 bits of hash to calculate step for chaining.
177 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
178 when 2/3 full, rather than 3/4 full.
180 2001-04-06 Tom Tromey <tromey@redhat.com>
182 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
183 (wrap_value<T*>): New specialization.
184 (_Jv_JNI_PopLocalFrame): Update env->locals.
186 2001-04-05 Tom Tromey <tromey@redhat.com>
188 * libtool-version: Updated current.
190 2001-04-04 Andreas Jaeger <aj@suse.de>
192 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
193 * gcj/Makefile.in: Rebuilt.
194 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
195 * Makefile.in: Rebuilt.
196 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
197 * testsuite/Makefile.in: Rebuild.
198 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
199 * include/Makefile.in: Rebuild.
201 2001-04-02 Zack Weinberg <zackw@stanford.edu>
203 * testsuite/lib/libjava.exp: Correct typo: 'output from source
204 compiled test', not 'execution from source compiled test'.
205 Use UNTESTED, not XFAIL, for tests which are not run because
206 they depend on a previous test which failed.
208 2001-04-02 Richard Henderson <rth@redhat.com>
210 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
211 the same tree as gcc.
212 * configure: Rebuilt.
214 * exception.cc (_Jv_Throw): Clarify commentary.
216 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
218 * jni.cc (wrap_value<jclass>): New specialization.
220 2001-04-02 Tom Tromey <tromey@redhat.com>
222 * java/io/PrintStream.java (out): Removed field. Fixes PR
224 (write): Call flush, not out.flush, per spec.
225 (close): Flush output stream, per spec. Handle
226 InterruptedIOException.
227 (checkError): Likewise.
228 (flush, print, write): Handle InterruptedIOException per spec.
229 (PrintStream): Don't create BufferedOutputStream.
230 (work_bytes): New field.
231 (writeChars): Use work_bytes. Don't assume `out' is a
232 BufferedOutputStream.
234 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
236 * java/text/MessageFormat.java (setLocale): Added missing `else'.
239 2001-03-30 Tom Tromey <tromey@redhat.com>
241 * jni.cc (add_char): Correctly encode non-ascii characters.
242 (add_char): Define even when INTERPRETER not defined.
243 (mangled_name): Likewise.
244 (_Jv_GetJNIEnvNewFrame): Likewise.
245 (_Jv_LookupJNIMethod): Likewise.
247 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
249 * configure.host: Enable interpreter for PPC.
251 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
253 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
254 to "file.separator", "path.separator", and "java.io.tmpdir" property
256 * java/io/File.java: Likewise.
257 * java/io/natFile.cc (init_native): Likewise.
258 * java/io/natFileWin32.cc (init_native): Likewise.
260 2001-04-01 Per Bothner <per@bothner.com>
262 * java/lang/natString.cc (intern): If string's data does not point to
263 this String, make a fresh String that does.
265 * java/lang/natString.cc (unintern): Replace by static function.
266 * java/lang/String.java (unintern): Remove method.
268 2001-04-01 Per Bothner <per@bothner.com>
270 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
271 (finish): def.deflate needs to be called in a loop.
272 (inbuf, inbufLength): New private fields.
273 (write(int)): Use inbuf.
274 (write(byte[],int,int): Check if pending output in inbuf.
275 * ZipOutputStream.java: Don't use Deflater if stored.
276 Use a Checksum object directly, not via a CheckedOutputStream.
277 (uncompressed_size): New field,
278 (closeEntry): Only write data_directory if needed.
279 (write): If STORED, write directly.
280 Always update crc, and uncompressed_size.
281 (write_entry): Fix lots of protocol erors.
283 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
285 1.3-Compliant Implementation of java.io.File.
286 * java/lang/natSystem.cc (init_properties): Get "file.separator",
287 "path.separator", and "java.io.tmpdir" from the File class, instead
288 of setting them explicitly.
289 * java/io/File.java: Do not canonicalize paths for security manager
290 checks. Call init_native() from static initializer. Do not pass path
291 argument to native methods. New native method declarations. Some
292 security manager checks moved to checkWrite().
293 (equals): Check file system case sensitivity and act appropriatly.
294 (hashCode): Likewise.
295 (isHidden): New method implemented.
296 (performList): Changed prototype. Now takes a class argument specifying
297 the class of the returned array: Strings or File objects. Also added
299 (listFiles): New variants with "File" return type implemented.
300 (createTempFile): Use createNewFile(). Use maxPathLen.
301 (setReadOnly): New method implemented.
302 (listRoots): Likewise.
303 (compareTo): Likewise.
304 (setLastModified): Likewise.
305 (checkWrite): New method.
307 * java/io/natFile.cc: Various functions no longer take canonical path
309 (stat): Handle ISHIDDEN query.
310 (isAbsolute): Remove WIN32 cruft.
311 (performList): New arguments. Handle returning either File[] or String[]
312 arrays. Check with FileFilter or FilenameFilter arguments as
313 appropriate. Use an ArrayList, not a Vector, for the temporary list.
314 (performSetReadOnly): New method implemented.
315 (performListRoots): Likewise.
316 (performSetLastModified): Likewise.
317 (performCreate): Likewise.
318 (init_native): New initialization function.
319 * java/io/natFileWin32.cc: Various functions no longer take canonical
321 (stat): Add FIXME about ISHIDDEN query.
322 (performList): New arguments. Handle returning either File[] or String[]
323 arrays. Check with FileFilter or FilenameFilter arguments as
324 appropriate. Use an ArrayList, not a Vector, for the temporary list.
325 (performSetReadOnly): New. Stubbed.
326 (performListRoots): Likewise.
327 (performSetLastModified): Likewise.
328 (performCreate): Likewise.
329 (init_native) New initialization function.
330 * configure.in: Check for utime() and chmod().
331 * configure: Rebuilt.
332 * include/config.h.in: Rebuilt.
334 Resolves PR libgcj/1759.
336 2001-03-28 Richard Henderson <rth@redhat.com>
338 IA-64 ABI Exception Handling:
339 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
340 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
341 Remove EXCEPTIONSPEC.
342 * configure.host (libgcj_sjlj): Remove.
343 * configure.in (EXCEPTIONSPEC): Remove.
344 (enable-sjlj-exceptions): Detect if not specified.
345 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
346 what header we're looking for.
347 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
348 * Makefile.in, configure: Regenerate.
349 * exception.cc: Don't declare libgcc2 stuff.
350 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
351 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
352 (win32_get_restart_frame): Remove.
353 (struct java_exception_header): New.
354 (__gcj_exception_class): New.
355 (get_exception_header_from_ue): New.
356 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
357 (size_of_encoded_value, read_encoded_value): New.
358 (read_uleb128, read_sleb128, parse_lsda_header): New.
359 (get_ttype_entry, __gcj_personality_sj0): New.
360 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
362 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
364 * javax/naming/InitialContext.java (init): Fix typo.
365 (composeName): Remove unnecessary semicolon.
366 (addToEnvironment): Remove unnecessary semicolon.
367 (addToEnvironment): Use put() instead of add().
369 * javax/naming/InitialContext.java (InitialContext):
371 (destroySubcontext): Method doesn't return a result.
372 * javax/naming/Context.java: Import java.util.Hashtable.
373 * javax/naming/Name.java: Import java.util.Enumeration.
375 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
377 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
378 objects in subdirectories.
379 * Makefile.in: Rebuilt.
381 2001-03-25 Richard Henderson <rth@redhat.com>
383 * exception.cc (java_eh_info): Make value type jthrowable.
384 (_Jv_type_matcher): Remove now unneeded cast.
385 (_Jv_Throw): Make argument type jthrowable. Munge name
386 for SJLJ_EXCEPTIONS here ...
387 * gcj/cni.h: ... not here.
389 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
391 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
392 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
393 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
394 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
395 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
396 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
397 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
398 java/lang/natClass.cc, java/lang/natClassLoader.cc,
399 java/lang/natDouble.cc, java/lang/natObject.cc,
400 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
401 java/lang/natString.cc, java/lang/natSystem.cc,
402 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
403 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
404 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
405 java/util/zip/natInflater.cc:
406 Use throw, not JvThrow or _Jv_Throw.
408 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
410 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
411 paramater, bump it to 1.
412 * java/util/Hashtable.java (Hashtable): Likewise.
414 2001-03-23 Per Bothner <per@bothner.com>
416 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
417 check for errors, since we don't want to throw exception on
418 overflow/underflow. Instead, trim whitespace, and then check that
419 _strtod_r uses up all the rest of the string.
421 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
422 ancestors array is invalid for interfaces, so do that *after*
423 check that the target type is not an interface.
425 2000-03-23 Jeff Sturm <jsturm@one-point.com>
427 * prims.cc (_Jv_FindClassFromSignature): Check return of
428 recursive call. Do not abort on invalid signature; return NULL
431 2001-03-22 Tom Tromey <tromey@redhat.com>
433 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
434 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
436 * include/jvm.h (_Jv_ResolveField): Declare.
437 * include/java-interp.h (_Jv_ResolveField): Don't declare.
438 * resolve.cc (_Jv_ResolveField): No longer conditional on
441 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
443 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
445 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
446 to a temporary file, then invoke libtool with the -objectlist
448 (libgcjx.la): Likewise.
449 * Makefile.in: Rebuilt.
451 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
453 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
455 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
457 * jni.cc (add_char): Handle `.' like `/'.
459 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
461 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
462 initialize if exception_types is null.
463 * java/lang/reflect/Constructor.java: Likewise.
464 * java/lang/reflect/natConstructor.cc (getType): Initialize
465 exception_types to an empty Object array.
467 2001-03-21 Tom Tromey <tromey@redhat.com>
469 * configure: Rebuilt.
470 * configure.in (GCJFLAGS): Subst.
471 * Makefile.in: Rebuilt.
472 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
473 (gij_LDFLAGS): Likewise.
474 (JC1FLAGS): Added GCJFLAGS and removed -g.
476 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
477 read/write case. Fixes PR libgcj/2338.
479 2001-03-20 Warren Levy <warrenl@redhat.com>
481 * java/util/TimeZone.java: Sync up with Classpath. Includes new
482 and corrected SimpleTimeZone's for the timezones hash table.
484 2001-03-19 Per Bothner <per@bothner.com>
486 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
487 "canonicalize" "../../xxx" to "/xxx".
489 2001-03-19 Mark Wielaard <mark@klomp.org>
491 * java/util/ArrayList.java: Remove RCS keywords from comments
492 * java/util/BasicMapEntry.java: idem
493 * java/util/Dictionary.java: idem
494 * java/util/HashSet.java: idem
496 * java/util/EventObject.java: reindent
497 * java/util/Properties.java: idem
498 * java/util/SortedMap.java: idem
500 * java/util/Enumeration.java: Merge with Classpath
501 * java/util/EventListener.java: idem
502 * java/util/Observable.java: idem
503 * java/util/Observer.java: idem
504 * java/util/Stack.java: idem
506 2001-03-17 Tom Tromey <tromey@redhat.com>
508 * java/lang/natString.cc (rehash): Don't bother with memset;
509 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
511 (UNMASK_PTR): New macro.
512 (intern): Unmask pointer before returning it. Register finalizer
514 (unintern): Handle case where
515 (MASK_PTR): New macro.
516 (PTR_MAKSED): Likewise.
517 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
519 2001-03-01 Andrew Haley <aph@redhat.com>
521 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
522 stackTrace buffer to a correctly aligned pointer array.
524 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
526 * java/lang/Runtime.java (_exit): Declare new package-private native.
527 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
528 without a security manager check.
529 (exit): Call _exit after security check.
530 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
532 * java/lang/System.java (setSecurityManager): If a security manager
533 is already in place, call checkPermission.
534 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
535 throws an exception, try to deal with it gracefully.
536 * java/lang/ExceptionInInitializerError.java (printStackTrace):
537 Only try to print the subordinate stack trace if "exception" is set.
538 Print our class name first.
540 2001-03-08 Tom Tromey <tromey@redhat.com>
542 * java/io/ObjectStreamClass.java (setUID): Don't write interface
543 info for array classes.
544 Fixes PR libgcj/1971.
546 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
548 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
551 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
553 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
554 instead of the new JDK1.2 API. This is simpler and makes
555 back-porting the classes to JDK1.1 trivial.
556 (readObject): likewise.
558 2001-03-01 Per Bothner <per@bothner.com>
560 Changes merged from Kawa's gnu.math.
561 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
562 (rshift(int[],int[],int,int): Removed - not needed.
563 (gcd): Use rshift0 rather than rshift.
564 * java/math/BigInteger.java (setShiftRight): Likewise.
565 (divide): Simplify by using rshift0.
566 (divide): Zero-extend results if high-order bit set.
568 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
570 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
573 2001-02-23 Per Bothner <per@bothner.com>
575 Change to sometimes include class name in ClassFormatError message.
576 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
577 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
578 boolean instead of throwing ClassFormatError on failure.
579 (throw_class_format_error): Change static function to method.
580 (_Jv_ClassReader): New inline methods verify_identifier,
581 two overloads of verify_classname, verify_field_signature, and
582 verify_method_signature
583 * include/java-interp.h: Update declarations to return bool.
584 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
585 ClassFormatError since _Jv_VerifyClassName now returns bool.
587 2001-02-23 Per Bothner <per@bothner.com>
589 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
590 c++filt to select java-style output.
592 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
594 Fix for PR java/2040:
595 * java/util/HashMap.java (HashMap): Don't throw exception for
596 loadFactor > 1. Add exception messages.
597 * java/util/Hashtable.java (Hashtable): Likewise.
599 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
601 Disable libgcjx by default.
602 * configure.in: Add support for --enable-java-awt configure option.
603 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
604 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
605 * Makefile.in: Rebuilt.
606 * configure: Rebuilt.
608 2001-02-20 Tom Tromey <tromey@redhat.com>
610 * java/io/PipedWriter.java (flush): Throw exception if stream
612 * java/io/OutputStreamWriter.java (write): Throw exception if
614 (writeChars): Don't throw exception if stream closed.
615 * java/io/CharArrayWriter.java (closed): New field.
617 (flush): Throw exception if stream closed.
618 (reset): Synchronize on correct lock. Allow stream to be
620 (toCharArray, toString, writeTo): Synchronize.
621 (write): Throwe exception if stream closed.
622 * java/io/BufferedWriter.java (close): Clear `buffer'.
623 (flush): Throw IOException if stream is closed.
626 2001-02-16 Tom Tromey <tromey@cygnus.com>
628 * java/lang/ThreadGroup.java (activeCount): Only include threads
630 (enumerate): Likewise.
632 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
634 * java/lang/Integer.java (getInteger): Return default argument if
635 property is not set. Don't call decode with null argument.
636 * java/lang/Long.java (getLong): Likewise.
638 * java/io/CharArrayReader.java (CharArrayReader): Throw
639 IllegalArgumentException if constructor arguments are illegal.
640 (ready): Return false if no more characters can be read.
641 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
643 2001-02-17 Mark Wielaard <mark@klomp.org>
645 * java/util/TimerTask.java: New version from Classpath.
647 2001-02-17 Mark Wielaard <mark@klomp.org>
649 Remerge with Classpath
650 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
651 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
652 (readByte): Use convertToByte().
653 (readChar): Use convertToChar().
654 (readInt): Use convertToInt().
655 (readLong): Use convertToLong().
656 (readShort): Use convertToShort().
657 (readUnsignedByte): Use convertToUnsignedByte().
658 (readUnsignedShort): Use convertToUnsignedShort().
659 (readUTF): Use convertToUTF().
661 (convertToBoolean): Resurrected.
662 (convertToByte): Ditto.
663 (convertToChar): Ditto.
664 (convertToInt): Ditto.
665 (convertToLong): Ditto.
666 (convertToShort): Ditto.
667 (convertToUnsignedByte): Ditto.
668 (convertToUnsignedShort): Ditto.
669 (convertToUTF): Ditto.
671 2001-02-17 Mark Wielaard <mark@klomp.org>
675 2001-02-17 Mark Wielaard <mark@klomp.org>
677 * java/io/DataInputStream.java: update copyright notice
678 * java/io/PrintWriter.java: idem
679 * java/io/Reader.java: idem
680 * java/io/StreamTokenizer.java: idem
681 * java/io/StringReader.java: idem
682 * java/lang/reflect/ReflectPermission.java: idem
684 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
686 * java/util/TreeSet.java (clone): Made subclass safe, use
687 super.clone(), not new.
688 * java/util/TreeMap.java (clone): Likewise.
690 * java/util/TreeMap.java (nil): Made non-final.
691 (clone): Create new nil node for copy.
693 * java/util/HashSet.java (clone): Made subclass safe, use
694 super.clone(), not new.
696 2001-02-14 Andrew Haley <aph@redhat.com>
698 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
701 2001-02-15 Anthony Green <green@redhat.com>
703 * defineclass.cc: Don't include alloca.h.
704 (prepare_pool_entry): Convert alloca to __builtin_alloca.
705 * interpret.cc (run_normal): Ditto.
707 * java/lang/natDouble.cc (parseDouble): Ditto.
709 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
711 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
713 * java/util/Collections.java (ReverseComparator): New static class.
714 (reverseOrder): Return static instance of ReverseComparator.
716 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
717 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
718 Rectangle.clone(), not Object.clone().
720 * java/util/HashSet.java (clone): Remove try/catch.
722 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
723 * java/util/Collection.java: Likewise.
724 * java/util/Comparator.java: Likewise.
725 * java/util/Dictionary.java: Likewise.
726 * java/util/Iterator.java: Likewise.
727 * java/util/ListIterator.java: Likewise.
728 * java/util/Map.java: Likewise.
729 * java/util/Set.java: Likewise.
731 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
733 * java/util/TreeMap.java: New file.
734 * java/util/TreeSet.java: New file.
735 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
736 * Makefile.in: Rebuilt.
737 * java/util/HashSet.java (clone): Use constructor instead of calling
739 * java/util/SortedSet.java: Sync with classpath.
740 * java/util/HashMap.java (hash): Use if statement instead of ternary,
743 * java/lang/natClass.cc (getSignature): Don't try to dereference
744 param_types if it is null. Instead, take this to mean "no parameters".
745 * java/lang/TreeMap.java (TreeIterator.next): Throw
746 NoSuchElementException in preference to ConcurrentModificationException.
747 (TreeIterator.remove): Throw IllegalStateException in preference to
748 ConcurrentModificationException.
749 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
750 throw a NoSuchElementException.
751 (SubMap.lastKey): Likewise.
753 2001-02-13 Tom Tromey <tromey@redhat.com>
755 * java/io/PipedReader.java (ready): Throw IOException if pipe
757 * java/io/FilterReader.java (close): Don't clear `in'.
758 * java/io/CharArrayReader.java (mark): Throw IOException if stream
760 (read, ready, reset, skip): Added exception message.
761 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
762 Perform checkStatus check inside synchronized block.
764 2001-02-13 Tom Tromey <tromey@redhat.com>
766 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
768 2001-02-13 Tom Tromey <tromey@redhat.com>
770 Fix for PR libgcj/1351:
771 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
773 Include Thread.h and InterruptedIOException.h.
775 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
777 * java/io/BlockDataException.java: Removed.
778 * java/io/ObjectInputStream.java (readObject): Throw
779 StreamCorruptedException, not BlockDataException.
780 * Makefile.am: Remove BlockDataException.
781 * Makefile.in: Rebuild.
783 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
784 Tom Tromey <tromey@redhat.com>
786 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
789 2001-02-09 Tom Tromey <tromey@redhat.com>
791 * java/util/Timer.java: New version from Classpath.
793 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
795 * java/lang/Double.java (doubleToRawLongBits): Now native.
796 * java/lang/Float.java (floatToRawIntBits): Likewise.
797 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
798 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
800 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
802 * java/io/File.java (java.net): Imported.
803 (getAbsoluteFile): Added.
804 (getCanonicalPath): Likewise.
807 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
809 * java/lang/Byte.java: Remove redundant instanceof and null checks.
810 * java/lang/Integer.java: Likewise.
811 * java/lang/Long.java: Likewise.
812 * java/lang/Short.java: Likewise.
813 * java/lang/Double.java: Likewise.
814 (doubleToRawLongBits): New method.
815 * java/lang/Float.java: As above.
816 (floatToRawIntBits): New method.
818 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
819 IOException if stream closed.
821 2001-02-08 Tom Tromey <tromey@redhat.com>
823 * java/lang/Float.java (parseFloat): New method.
825 2001-02-08 Tom Tromey <tromey@redhat.com>
827 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
828 * java/io/InputStreamReader.java (ready, read): Throw IOException
829 if stream has been closed.
831 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
833 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
834 Change sources.redhat.com and sourceware.cygnus.com references to
837 2001-02-07 Tom Tromey <tromey@redhat.com>
839 Fix for PR libgcj/1906:
840 * java/text/MessageFormat.java (setLocale): Use named class
843 (format(Object,StringBuffer,FieldPosition)): Special case if
844 argument is an Object[].
846 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
848 * java/util/Arrays.java: Removed "cmp" methods.
849 (qsort): Don't use "cmp".
852 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
854 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
855 sort. Fix for PR java/1895.
857 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
859 * configure.host: Use sjlj-exceptions for Alpha.
861 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
863 * libgcj.spec.in: Don't force static libgcc into the executable.
864 * configure.in (FORCELIBGCCSPEC): Removed.
865 * configure: Rebuilt.
867 2001-01-31 Tom Tromey <tromey@redhat.com>
869 * Makefile.in: Rebuilt.
870 * Makefile.am (LTCXXCOMPILE): New macro.
872 2001-01-26 Andrew Haley <aph@redhat.com>
874 (INIT_FPE): Use a direct system call to set the handler.
876 2001-01-27 Richard Henderson <rth@redhat.com>
878 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
880 2001-01-27 Tom Tromey <tromey@redhat.com>
882 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
883 native interface structure.
885 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
887 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
889 (read (byte[], int, int)): Only call readNextBlock() if the block
890 buffer would actually be overrun. Increment blockDataPosition.
891 (callReadMethod): Propagate exceptions from invocation target.
892 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
893 exceptions from invocation target.
895 2001-01-26 Tom Tromey <tromey@redhat.com>
897 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
898 to internal representation.
899 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
900 _Jv_FindClassFromSignature.
902 2001-01-26 Warren Levy <warrenl@redhat.com>
904 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
905 and timezone if they are available on the system.
907 2001-01-24 Tom Tromey <tromey@redhat.com>
909 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
911 2001-01-24 Tom Tromey <tromey@redhat.com>
913 * Makefile.in: Rebuilt.
914 * Makefile.am (c_source_files): Added sf_fabs.c.
915 * java/lang/sf_fabs.c: New file.
917 2001-01-19 Warren Levy <warrenl@redhat.com>
919 * java/text/SimpleDateFormat.java (format): Compute hour for cases
920 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
921 correctly. Adjust properly from 0-23 clock hour.
923 2001-01-17 Mark Wielaard <mark@klomp.org>
925 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
927 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
929 * java/lang/Class.h (isInterface): Move implementation from
930 natClass.cc. Declare inline.
931 (Class): Add default constructor.
932 * java/lang/Object.h: Update comments.
933 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
934 initialize superclass, saving a call if super is already initialized.
936 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
938 * prims.cc (init_prim_class): Deleted.
939 (DECLARE_PRIM_TYPE): Rewritten.
940 * java/lang/Class.h (stdio.h): Include removed.
941 (stddef.h): Included.
942 (java/lang/reflect/Modifier.h): Likewise.
943 (Class): Contructor now takes arguments, initializes fields.
944 (initializePrim): Prototype deleted.
945 * java/lang/natClass.cc (initializePrim): Deleted.
947 2001-01-16 Warren Levy <warrenl@redhat.com>
949 * java/math/BigInteger.java: Update Copyright year.
951 2001-01-16 Hans Boehm <hans_boehm@hp.com>
953 * java/math/BigInteger.java (setShiftRight): Only do negative shift
956 2001-01-14 Mark Wielaard <mark@klomp.org>
957 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
958 (decode): Merge comments with Classpath, don't throw Exception
960 2001-01-12 Tom Tromey <tromey@redhat.com>
962 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
966 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
967 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
968 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
969 * gnu/awt/gtk/GtkLabelPeer.java: New file.
970 * gnu/awt/gtk/GtkButtonPeer.java: New file.
972 * java/lang/natSystem.cc: Include locale.h if it exists.
973 * configure: Rebuilt.
974 * configure.in: Check for locale.h.
976 2001-01-11 Tom Tromey <tromey@redhat.com>
978 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
979 (Cursor(int), getPredefinedCursor): Throw exception if argument
982 2001-01-03 Tom Tromey <tromey@redhat.com>
984 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
985 (getLocationOnScreen): Wrote.
987 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
989 * Makefile.am: Re-enable dependencies.
990 * Makefile.in: Rebuilt.
992 2001-01-10 Warren Levy <warrenl@redhat.com>
994 * java/math/BigDecimal.java (divide): Fixed comment.
996 2001-01-10 Warren Levy <warrenl@redhat.com>
998 Fix for PR libgcj/1596:
999 * java/math/BigDecimal.java (divide): Check newScale for validity.
1000 Ensure that BigInteger.pow() is called with a non-negative value.
1001 (setScale (int)): New public method.
1002 (setScale (int,int)): New public method.
1004 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1006 Fix for PR libgcj/1338:
1007 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1008 commentChar. Fixed typos in comments.
1010 2001-01-08 Warren Levy <warrenl@redhat.com>
1012 Fix for PR libgcj/1411:
1013 * Makefile.am: Removed java/util/natTimeZone.cc.
1014 * Makefile.in: Rebuilt.
1015 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1016 missing localized timezone names.
1017 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1018 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1019 (init_properties): Set user.timezone property.
1020 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1021 default timezone names; removed non-standard ones. Use standard
1023 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1025 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1027 (getDefaultTimeZoneId): Removed.
1029 * java/util/natTimeZone.cc: Removed.
1031 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1033 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1034 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1035 (_Jv_GetArrayClass): New inline function.
1036 (arrayclass): New field.
1037 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1038 _Jv_GetArrayElementFromElementType.
1039 (_Jv_NewPrimArray): Ditto.
1040 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1041 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1042 Set Modifier::ABSTRACT.
1043 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1044 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1045 Now synchronized. Array classes are now referenced from
1046 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1047 Set array classes' accessibility flags correctly. Optimize so that
1048 all array classes share the same IDT.
1049 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1050 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1051 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1052 in superclasses from overwriting classes own fields.
1053 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1054 Modifier::isAbstract().
1055 (null_idt): New static field.
1056 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1058 (_Jv_IndexOf): Made inline.
1059 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1061 2001-01-08 Tom Tromey <tromey@redhat.com>
1063 Fix for PR java/1586:
1064 * Makefile.in: Rebuilt.
1065 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1067 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1069 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1070 from the c++ compiler.
1071 * Makefile.in: Rebuilt.
1073 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1075 All files with updated copyright.
1076 * prims.cc (class _Jv_PrimClass): Removed.
1077 (init_prim_class): New function.
1078 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1079 `_Jv_PrimClass' in primitive type declarations. Assign to the
1080 value returned by `init_prim_class.'
1081 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1082 primitive type declarations.
1083 (JvPrimClass): Cast to `jclass' removed.
1084 * java/lang/Class.h (Class): New constructor.
1085 (Class): New copy constructor.
1086 (initializePrim): New prototype.
1087 (_Jv_PrimClass): Field removed.
1088 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1089 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1090 (class java::lang::Object): `finalize' moved up front.
1091 * java/lang/natClass.cc
1092 (isAssignableFrom): Turned outline.
1093 (isInstance): Likewise.
1094 (isInterface): Likewise, fixed indentation.
1095 (initializePrim): New function.
1097 2001-01-07 Anthony Green <green@redhat.com>
1099 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1101 * Makefile.in: Rebuilt.
1103 * scripts/TexinfoDoclet.java: New file.
1105 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1106 doc/java-awt-color.texi, doc/java-lang.texi,
1107 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1108 doc/java-awt-event.texi, doc/java-net.texi,
1109 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1110 doc/java-awt-image.texi, doc/java-security.texi,
1111 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1112 doc/java-text.texi, doc/java-beans-beancontext.texi,
1113 doc/java-util-jar.texi, doc/java-beans.texi,
1114 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1115 doc/java-lang-ref.texi: New files.
1117 2001-01-07 Anthony Green <green@redhat.com>
1119 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1120 be used for both input and output, so don't clear doInput.
1122 * java/lang/StringBuffer.java: Fix comments.
1124 2001-01-06 Anthony Green <green@redhat.com>
1126 * java/beans/PropertyDescriptor.java: Fix comment.
1127 * java/io/PushbackReader.java: Fix comment.
1128 * java/io/ObjectStreamClass.java: Fix comment.
1129 * java/io/DataInputStream.java: Fix comment.
1130 * java/io/PipedInputStream.java: Fix comments.
1131 * java/io/PipedReader.java: Fix comments.
1132 * java/sql/DatabaseMetaData.java: Fix comments.
1134 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1136 * java/io/PipedReader: Synchronize on "lock" instead of this.
1138 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1140 * java/lang/Thread.java: Update comment.
1142 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1143 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1144 * java/io/PipedReader: New implementation based on new
1146 * java/io/PipedWriter: Updated to match new PipedReader.
1148 2001-01-03 Tom Tromey <tromey@redhat.com>
1150 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1151 (getViewportSize): Insets include scrollbar size.
1152 (doLayout): Finished.
1153 (getScrollPosition): Wrote.
1154 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1156 2001-01-02 Tom Tromey <tromey@redhat.com>
1158 * java/awt/ScrollPane.java: Wrote.
1159 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1162 * java/awt/Panel.java (Panel()): Fixed.
1164 * java/awt/Component.java (isShowing): Return false if no peer
1165 exists, and true if component is visible and no parent exists.
1166 (getLocationOnScreen): Wrote.
1167 (getPreferredSize): Removed FIXME comment.
1168 (getMinimumSize): Likewise.
1169 (getAlignmentX, getAlignmentY): Wrote.
1171 (requestFocus): Wrote.
1172 (transferFocus): Wrote.
1173 (findNextFocusComponent): New method.
1174 (hasFocus()): Wrote.
1175 (checkImage): Wrote.
1176 (enableEvents): Call setEventMask on the peer.
1178 * java/awt/Container.java (list): Use super.list() to print self.
1179 (findNextFocusComponent): New method.
1180 (setLayout): Call invalidate.
1181 (findComponentAt): Wrote.
1183 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1185 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1186 the correct versions of various linuxthreads functions get linked.
1187 * Makefile.in: Rebuilt.
1188 * java/lang/natThread.cc (finalize_native): New static function. Call
1189 _Jv_ThreadDestroyData.
1190 (initialize_native): Register finalizer for "data".
1191 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1192 (_Jv_ThreadDestroyData): New prototype.
1193 * include/win32-threads.h: Ditto.
1194 * include/no-threads.h: Ditto.
1195 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1196 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1197 move mutex and condition variable destroy code from:
1198 (really_start): ...here.
1199 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1200 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1201 (_Jv_ThreadDestroyData): Implemented.
1202 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1203 (_Jv_AllocArray): Ditto.
1205 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1207 * java/sql/DriverManager.java (getConnection): Don't set user/password
1210 2000-12-27 Warren Levy <warrenl@redhat.com>
1212 Fix for PR libgcj/1358:
1213 * java/lang/System.java: Update Copyright date properly.
1214 * java/util/Calendar.java: Fix typo in comment.
1215 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1216 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1217 initialize times. Spec says to set H:M:S values to zero only if
1219 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1220 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1221 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1222 timezones and GMT offsets, being careful to account for units of
1223 milliseconds vs. seconds.
1225 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1227 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1228 not be assigned to Object.
1230 Fix for PR libgcj/1516:
1231 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1233 (can_widen): Declared inline. Remove redundant checks for void
1234 arguments and char->short conversion. Add special case for boolean
1236 (ffi_type): Declared inline.
1237 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1239 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1241 * java/sql/SQLWarning.java: Fixed typo in comment.
1243 2000-12-26 Tom Tromey <tromey@redhat.com>
1245 * java/awt/MenuItem.java (paramString): Now protected.
1247 * java/awt/MenuShortcut.java: Implements Serializable.
1249 * java/awt/MenuBar.java: Rewrote from scratch.
1251 * java/awt/MenuComponent.java (removeNotify): Wrote.
1252 Implements Serializable.
1254 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1257 * java/awt/CheckboxMenuItem.java: Wrote.
1259 2000-12-25 Tom Tromey <tromey@redhat.com>
1261 * java/awt/MenuContainer.java: Fixed typo.
1263 * Makefile.in: Rebuilt.
1264 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1265 * java/awt/SystemColor.java: New file.
1267 * java/awt/Color.java (rgba): Now package-private.
1269 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1271 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1274 * java/awt/MenuItem.java (addNotify): New method.
1275 (MenuItem(String,MenuShortcut)): New constructor.
1276 (setLabel): Notify peer of change.
1277 (setEnabled): Likewise.
1279 * java/awt/GridLayout.java (toString): New method.
1281 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1282 (FlowLayout): Check for LEADING and TRAILING.
1283 (setAlignment): Likewise.
1284 (layoutContainer): Handle component orientation.
1286 * java/awt/Component.java (orientatin): New field.
1287 (setComponentOrientation): Wrote.
1288 (getComponentOrientation): Wrote.
1290 * java/awt/Event.java (Event): Implements Serializable.
1291 (consumed): New field for serialization.
1292 * java/awt/Dimension.java (Dimension): Implements Serializable.
1293 * java/awt/Cursor.java (Cursor): Implements Serializable.
1294 * java/awt/Container.java (Container): No longer abstract.
1296 * java/awt/Choice.java: Wrote.
1297 * java/awt/Checkbox.java: Wrote.
1298 * java/awt/ItemSelectable.java: Documented.
1299 * java/awt/CheckboxGroup.java: Wrote.
1301 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1303 (getSize): Likewise.
1305 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1307 * java/io/FileDescriptor.java: Initialize fd to -1.
1308 Remove default constructor.
1310 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1312 * java/lang/mprec.h: Change C9X reference to refer to C99.
1314 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1316 * java/lang/Throwable.java (trace_enabled): New static field.
1317 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1318 trace_enabled not set.
1319 * prims.cc (main_init): Turn off trace_enabled while creating
1320 default exception objects.
1322 2000-12-21 Tom Tromey <tromey@redhat.com>
1324 * java/beans/PropertyChangeListener.java: Extends EventListener.
1325 * java/beans/VetoableChangeListener.java: Extends EventListener.
1327 * java/util/zip/Deflater.java (update, init): Now private.
1329 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1331 * java/util/BasicMapEntry.java: Re-added.
1332 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1333 (putAll): Test for BasicMapEntry.
1334 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1335 (putAll): Test for BasicMapEntry.
1336 Change references from `HashMap.Entry' to `Entry' in various places.
1337 * Makefile.am: Add BasicMapEntry.java.
1338 * Makefile.in: Rebuilt.
1340 2000-12-18 Warren Levy <warrenl@redhat.com>
1342 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1343 need to set timezone to a valid non-null value. Partial fix for
1346 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1348 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1350 * java/awt/Button.java (addNotify): Likewise.
1351 * java/awt/Label.java (addNotify): Likewise.
1352 * java/awt/Panel.java (addNotify): Likewise.
1353 * java/awt/Scrollbar.java (addNotify): Likewise.
1354 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1355 Remove redundant null checks.
1357 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1359 * COPYING: Update to current
1360 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1361 to 19yy as example year in copyright notice).
1363 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1365 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1366 end-of-stream if avail_in is 0.
1368 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1370 * java/util/ArrayList.java (data): Declare transient.
1371 (serialPersistantFields): Removed.
1372 (readObject): Use defaultReadObject(), not readFields().
1373 (writeObject): Use defaultWriteObject(), not writeFields().
1375 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1377 * java/util/Hashtable.java (put): Remove `last' variable.
1378 Link new entry to head of list.
1379 * java/util/HashMap.java (put): Ditto.
1381 2000-12-15 Tom Tromey <tromey@redhat.com>
1383 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1384 loader to Class.forName.
1386 2000-12-14 Tom Tromey <tromey@redhat.com>
1388 * java/util/ResourceBundle.java
1389 (getBundle(String,Locale,ClassLoader)): New method.
1390 (trySomeGetBundle): Added `loader' argument.
1391 (partialGetBundle): Likewise.
1393 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1394 maximumFractionDigits, maximumIntegerDigits,
1395 minimumFractionDigits, minimumIntegerDigits): Now
1398 * java/lang/Thread.java (checkAccess): Now final.
1400 * java/lang/RuntimePermission.java: Class now final.
1402 * java/io/StringWriter.java (StringWriter(int)): Now public.
1404 * java/io/SerializablePermission.java (legal_names): Now private.
1406 * java/lang/Character.java: Updated UnicodeBlock constants.
1407 * scripts/blocks.pl: Special case private use and surrogate
1410 2000-12-12 Tom Tromey <tromey@redhat.com>
1412 * Makefile.in: Rebuilt.
1413 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1415 (GCJCOMPILE): Use it.
1418 2000-12-11 Tom Tromey <tromey@redhat.com>
1420 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1421 New static final fields.
1423 * scripts/classes.pl (scan): Skip lines with leading `*'.
1424 Fix for PR libgcj/378.
1426 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1428 * configure.in: Remove check for -fuse-divide-subroutine.
1429 * configure: Rebuilt.
1431 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1433 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1435 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1437 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1438 Remove BasicMapEntry.java and Bucket.java.
1439 * Makefile.in: Rebuilt.
1440 * java/util/HashMap.java: Rewritten.
1441 * java/util/HashSet.java: Imported from classpath.
1442 * java/util/WeakHashMap.java: Imported from classpath.
1443 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1444 * java/util/Bucket.java: Deleted.
1445 * java/util/BasicMapEntry.java: Deleted.
1446 * java/util/Collections.java (search): Use a for-loop, not iterator
1448 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1449 of elements in source.
1450 (max): Use a for-loop.
1452 (reverse): Keep track of positions instead of using Iterator's
1453 nextIndex() and previousIndex().
1454 (shuffle(List)): Initialize defaultRandom if required using
1455 double-check thread safety idiom. Call two-argument shuffle method
1456 using defaultRandom.
1457 (defaultRandom): New field.
1458 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1459 using previousIndex() and nextIndex().
1460 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1461 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1462 * java/util/AbstractMap.java (toString): Use StringBuffer.
1463 * java/lang/ref/PhantomReference.java: Imported from classpath.
1464 * java/lang/ref/SoftReference.java: Ditto.
1465 * java/lang/ref/Reference.java: Ditto.
1466 * java/lang/ref/WeakReference.java: Ditto.
1467 * java/lang/ref/ReferenceQueue.java: Ditto.
1469 2000-12-10 Richard Henderson <rth@redhat.com>
1471 * configure.host: Recognize alpha*-*, not alphaev6-*.
1473 2000-12-09 Anthony Green <green@redhat.com>
1475 * configure.host: Enable interpreter for Alpha.
1477 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1479 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1480 (ZIP): Points at fastjar instead of zip.
1481 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1482 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1483 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1484 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1485 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1486 ($(x_java_source_files:.java=.class):): Likewise.
1487 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1489 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1490 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1491 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1492 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1493 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1494 gnu/gcj/runtime/VMClassLoader.h:,
1495 java/io/ObjectInputStream$$GetField.h:,
1496 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1497 (Makefile.in): Rebuilt.
1499 2000-12-08 Tom Tromey <tromey@redhat.com>
1502 * configure: Rebuilt.
1503 * configure.in: Use echo, not `:', to create .d files.
1505 2000-12-08 Warren Levy <warrenl@redhat.com>
1507 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1508 NullPointerException so proper check of offset can be done.
1510 2000-12-08 Warren Levy <warrenl@redhat.com>
1512 * java/io/FileInputStream.java (close): Check if the fd is valid.
1513 * java/io/RandomAccessFile.java (close): Ditto.
1514 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1515 * java/net/PlainSocketImpl.java (close): Ditto.
1517 2000-12-06 Tom Tromey <tromey@redhat.com>
1519 * java/awt/GridBagConstraints.java: Filled in values for static
1522 * java/util/BitSet.java: Updated copyright notice.
1524 * Makefile.in: Rebuilt.
1525 * Makefile.am (awt_java_source_files): Added new file.
1526 * java/awt/GridBagConstraints.java: New file.
1528 2000-12-05 Tom Tromey <tromey@redhat.com>
1530 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1531 Now package-private, not protected.
1532 * java/text/DateFormatSymbols.java (equals): Now private.
1533 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1534 * java/util/BitSet.java: Class no longer final.
1536 2000-12-04 Warren Levy <warrenl@redhat.com>
1538 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1539 out code dependent on compiler and library changes.
1541 2000-12-04 Warren Levy <warrenl@redhat.com>
1543 * java/io/FilePermission.java: Made class final per spec.
1544 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1545 method name to match spec (fixed typo).
1546 * java/util/LinkedList.java: Implements List.
1548 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1550 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1551 Edgar Villanueva <edgarvil@home.com>.
1553 2000-12-03 Tom Tromey <tromey@redhat.com>
1555 * java/awt/geom/Point2D.java: Added protected constructor.
1556 (equals): New method.
1557 (Float.setLocation(float,float)): New method.
1558 * java/awt/geom/Dimension2D.java: Added protected constructor.
1559 * java/awt/geom/AffineTransform.java: Made all constants public.
1560 (concatenate): Fixed typo in name.
1561 * java/awt/event/WindowAdapter.java: Class now abstract.
1562 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1563 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1566 * java/awt/AWTError.java: Extend Error, not
1567 IllegalStateException.
1569 * Makefile.in: Rebuilt.
1570 * Makefile.am (awt_java_source_files): Added new file.
1571 * java/awt/geom/RoundRectangle2D.java: New file.
1573 * Makefile.in: Rebuilt.
1574 * Makefile.am (awt_java_source_files): Added new file.
1575 * java/awt/FlowLayout.java: New file.
1577 * Makefile.in: Rebuilt.
1578 * Makefile.am (awt_java_source_files): Added new file.
1579 * java/awt/GridLayout.java: New file.
1581 2000-12-02 Tom Tromey <tromey@redhat.com>
1583 * Makefile.in: Rebuilt.
1584 * Makefile.am (awt_java_source_files): Added new files.
1585 * java/awt/CardLayout.java: New file.
1586 * java/awt/AWTPermission.java: New file.
1588 2000-12-01 Tom Tromey <tromey@redhat.com>
1590 * java/util/Vector.java (insertElementAt): Unconditionally
1591 increment elementCount.
1592 (removeRange): Clear unused slots in vector.
1594 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1596 * java/lang/natMath.cc: Declare fabsf() function.
1597 * java/lang/mprec.h: Don't include math.h.
1598 * java/lang/dtoa.c: Include string.h.
1599 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1602 From Adam Welc <welc@cs.purdue.edu>:
1603 * java/util/LinkedList.java (removeFirst): Update `first' field.
1604 Handle the last == first case.
1605 (removeLast): Update `last' field. Handle the last == first case.
1607 2000-12-01 Warren Levy <warrenl@cygnus.com>
1609 * Makefile.am: Added entries for new java.sql modules.
1610 * Makefile.in: Rebuilt.
1612 2000-12-01 Warren Levy <warrenl@cygnus.com>
1614 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1615 that aren't quite 1.2 compatible yet.
1617 2000-11-30 Warren Levy <warrenl@cygnus.com>
1619 * java/sql/Array.java: New file from classpath.
1620 * java/sql/BatchUpdateException.java: Ditto.
1621 * java/sql/Blob.java: Ditto.
1622 * java/sql/Clob.java: Ditto.
1623 * java/sql/Ref.java: Ditto.
1624 * java/sql/SQLData.java: Ditto.
1625 * java/sql/SQLInput.java: Ditto.
1626 * java/sql/SQLOutput.java: Ditto.
1627 * java/sql/Struct.java: Ditto.
1628 * java/sql/CallableStatement.java: Merged file from claspath.
1629 * java/sql/Connection.java: Ditto.
1630 * java/sql/DataTruncation.java: Ditto.
1631 * java/sql/DatabaseMetaData.java: Ditto.
1632 * java/sql/DriverManager.java: Ditto.
1633 * java/sql/PreparedStatement.java: Ditto.
1634 * java/sql/ResultSet.java: Ditto.
1635 * java/sql/ResultSetMetaData.java: Ditto.
1636 * java/sql/SQLException.java: Ditto.
1637 * java/sql/SQLWarning.java: Ditto.
1638 * java/sql/Statement.java: Ditto.
1639 * java/sql/Types.java: Ditto.
1641 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1643 * java/lang/natSystem.cc (init_properties): Set user.language and
1645 * configure.in: Check for setlocale.
1646 * configure: Rebuilt.
1647 * include/config.h.in: Rebuilt.
1649 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1650 the infate() call didn't deliver any output. Throw a ZipException if
1651 the needsDictionary() call returns true.
1652 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1653 * java/io/InputStreamReader: Use the default buffer size for the
1654 contained BufferedInputStream.
1656 2000-11-28 Warren Levy <warrenl@cygnus.com>
1658 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1659 more time zone entries.
1660 * java/text/SimpleDateFormat.java (format): Added case for
1663 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1665 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1666 directly rather than read() in all cases. Make primitive read
1667 implementations more efficient, as defined in JDK online docs.
1668 (skipBytes): Behave like the JDK's implementation.
1669 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1670 closed stream with checkStatus() whenever an IOException can be
1672 (checkStatus): New private method.
1674 2000-11-27 Warren Levy <warrenl@cygnus.com>
1676 * Makefile.am: Added natTimeZone.cc.
1677 * Makefile.in: Rebuilt.
1678 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1679 * java/text/DateFormatSymbols.java (ampms): Made package private.
1680 (eras): Made package private.
1681 (months): Made package private.
1682 (shortMonths): Made package private.
1683 (shortWeekdays): Made package private.
1684 (weekdays): Made package private.
1685 (formatPrefixes): New private field.
1686 (localPatternCharsDefault): Made private.
1687 (dateFormats): New package private field.
1688 (timeFormats): New package private field.
1689 (formatsForKey): New private method.
1690 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1691 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1692 * java/text/SimpleDateFormat.java: Merged with Classpath.
1693 * java/util/TimeZone.java: Merged with Classpath.
1694 * java/util/natTimeZone.cc: New file.
1696 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1698 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1699 (addElement): Don't increment elementCount twice. Doh.
1700 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1701 array needs to be expanded.
1703 * java/util/Collections.java (UnmodifiableCollection): Implement
1705 (UnmodifiableList): Throw UnsupportedOperationException from
1706 modification methods. Set `l' from the one-parameter constructor.
1707 (UnmodifiableMap): Implement toString().
1708 (SynchronizedCollection): Ditto.
1709 (SynchronizedList): Set `l' from the one-parameter constructor.
1710 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1711 (SynchronizedMap): Implement toString().
1713 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1715 * javax/naming/NameParser.java,
1716 javax/naming/directory/AttributeInUseException.java,
1717 javax/naming/directory/AttributeModificationException.java,
1718 javax/naming/directory/InvalidAttributeIdentifierException.java,
1719 javax/naming/directory/InvalidAttributesException.java,
1720 javax/naming/directory/InvalidAttributeValueException.java,
1721 javax/naming/directory/InvalidSearchControlsException.java,
1722 javax/naming/directory/InvalidSearchFilterException.java,
1723 javax/naming/directory/NoSuchAttributeException.java,
1724 javax/naming/directory/SchemaViolationException.java: New files.
1726 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1728 * javax/naming/InitialContext.java (rebind): Implement.
1729 (unbind): Implement.
1730 (rename): Implement.
1732 (listBindings): Implement.
1733 (destroySubcontext): Implement.
1734 (createSubcontext): Implement.
1735 (lookupLink): Implement.
1736 (getNameParser): Implement.
1737 (composeName): Implement.
1738 (addToEnvironment): Implement.
1740 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1742 * javax/naming/AuthenticationException.java,
1743 javax/naming/AuthenticationNotSupportedException.java,
1744 javax/naming/CannotProceedException.java,
1745 javax/naming/CommunicationException.java,
1746 javax/naming/ConfigurationException.java,
1747 javax/naming/ContextNotEmptyException.java,
1748 javax/naming/InsufficientResourcesException.java,
1749 javax/naming/InterruptedNamingException.java,
1750 javax/naming/InvalidNameException.java,
1751 javax/naming/LimitExceededException.java,
1752 javax/naming/LinkException.java,
1753 javax/naming/LinkLoopException.java,
1754 javax/naming/MalformedLinkException.java,
1755 javax/naming/NameAlreadyBoundException.java,
1756 javax/naming/NameNotFoundException.java,
1757 javax/naming/NamingSecurityException.java,
1758 javax/naming/NoPermissionException.java,
1759 javax/naming/NotContextException.java,
1760 javax/naming/PartialResultException.java,
1761 javax/naming/ReferralException.java,
1762 javax/naming/ServiceUnavailableException.java,
1763 javax/naming/SizeLimitExceededException.java,
1764 javax/naming/TimeLimitExceededException.java: New files.
1766 * javax/naming/Name.java (clone): New method.
1767 (compareTo): New method.
1768 (isEmpty): New method.
1769 (getAll): New method.
1770 (getPrefix): New method.
1771 (getSuffix): New method.
1772 (startsWith): New method.
1773 (endsWith): New method.
1774 (addAll): New method.
1775 (addAll): New method.
1778 (remove): New method.
1780 * javax/naming/Context.java (lookup): New method.
1781 (rebind): New method.
1782 (unbind): New method.
1783 (rename): New method.
1785 (listBindings): New method.
1786 (destroySubcontext): New method.
1787 (createSubcontext): New method.
1788 (lookupLink): New method.
1789 (getNameParser): New method.
1790 (composeName): New method.
1791 (addToEnvironment): New method.
1792 (removeFromEnvironment): New method.
1793 (getEnvironment): New method.
1794 (close): New method.
1795 (getNameInNamespace): New method.
1797 * javax/naming/InitialContext.java (lookup): New method.
1798 (rebind): New method.
1799 (unbind): New method.
1800 (rename): New method.
1802 (listBindings): New method.
1803 (destroySubcontext): New method.
1804 (createSubcontext): New method.
1805 (lookupLink): New method.
1806 (getNameParser): New method.
1807 (composeName): New method.
1808 (addToEnvironment): New method.
1809 (removeFromEnvironment): New method.
1810 (getEnvironment): New method.
1811 (close): New method.
1812 (getNameInNamespace): New method.
1814 2000-11-26 Tom Tromey <tromey@cygnus.com>
1816 * Makefile.in: Rebuilt.
1817 * Makefile.am (core_java_source_files): Added
1818 RuntimePermission.java.
1819 * java/lang/RuntimePermission.java: Imported from Classpath.
1820 * java/lang/Thread.java (getContextClassLoader): Now
1821 synchronized. Added security code.
1822 (setContextClassLoader): Likewise.
1824 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1825 length field of array.
1826 (_Jv_NewPrimArray): Likewise.
1827 * gcj/array.h (__JArray): `length' field now const. Added
1830 2000-11-26 Anthony Green <green@redhat.com>
1832 * javax/naming/spi/NamingManager.java,
1833 javax/naming/spi/ObjectFactory.java,
1834 javax/naming/spi/InitialContextFactory.java,
1835 javax/naming/spi/InitialContextFactoryBuilder.java,
1836 javax/naming/RefAddr.java, javax/naming/Reference.java,
1837 javax/naming/NamingException.java, javax/naming/Context.java,
1838 javax/naming/Referenceable.java,
1839 javax/naming/directory/InitialDirContext.java,
1840 javax/naming/directory/DirContext.java,
1841 javax/naming/directory/Attributes.java,
1842 javax/naming/directory/Attribute.java,
1843 javax/naming/StringRefAddr.java,
1844 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1845 javax/naming/InitialContext.java,
1846 javax/naming/NoInitialContextException.java: New files.
1848 2000-11-25 Anthony Green <green@redhat.com>
1850 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1851 (_Jv_NewPrimArray): Likewise.
1852 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1853 (class JArray): Removed constructor.
1855 * java/lang/Thread.java (context_class_loader): New private data.
1856 (getContextClassLoader): New method.
1857 (setContextClassLoader): New method.
1858 (Thread): Initialize context_class_loader.
1860 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1861 (getResource): Rename to findResource.
1862 (findResource): New method. Used to be getResource.
1863 (getResourceAsStream): Deleted.
1864 (jarFileize): Extracted logic from URLClassLoader constructor into
1865 this new private method.
1866 (addURL): New protected method.
1867 (URLClassLoader): Call jarFileize. Use addElement instead of
1869 (findResources): New method.
1871 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1872 (getResource): Implement correct logic.
1873 (findResource): New method.
1874 (getResources): New method.
1875 (findClass): Create a ClassNotFoundException with the name of the
1876 class rather than nothing at all.
1877 (defineClass) Only throw ClassFormatError.
1879 * java/lang/Class.java (forName): New method.
1880 * java/lang/Class.h (forName): New method.
1881 * java/lang/natClass.cc (forName): New method.
1883 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1885 * java/lang/System.java (setProperties): Only call init_properties()
1886 if properties is null.
1887 (getProperties): Ditto.
1888 (getProperty): Ditto.
1889 (setProperty): Call init_properties if properties are null.
1890 (prop_init): Remove field.
1891 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1892 method. Check for null properties after synchronizing instead of
1893 prop_init flag. Set the properties field last for thread safety.
1895 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1896 test for gcj.dumpobjects property and enable object stream dumping
1898 (dumpElement): No longer native.
1899 (dumpElementln): Ditto.
1900 (setDump): Do not define.
1901 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1902 (dumpElementln): Removed.
1905 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1907 * configure: Rebuilt.
1908 * Makefile.in: Rebuilt.
1909 * Makefile.am (built_java_source_files): Add Configuration.java.
1910 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1911 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1912 Create `gnu' directory in the build tree.
1913 * gnu/classpath/Configuration.java.in: New file.
1915 2000-11-24 Tom Tromey <tromey@cygnus.com>
1917 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1919 (_Jv_NewPrimArray): Likewise.
1921 * gcj/array.h (__JArray): `length' field now const. Added
1923 (class JArray): Added constructor.
1925 2000-11-23 Mark Wielaard <mark@klomp.org>
1927 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1930 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1932 * java/util/Vector.java: Improve exception messages.
1933 (Vector): Check initialCapacity for IllegalArgumentException.
1934 (tromToSize): Don't check for elementCount == elementData.length
1936 (toArray): Don't try to set null marker if target array is the same
1937 length as the vector.
1939 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1941 * Makefile.in: Rebuilt.
1942 * Makefile.am (core_java_source_files): Added Collections.java.
1943 * java/util/List.java: Merged from classpath.
1944 * java/util/Vector.java: Ditto.
1945 * java/util/Collections.java: From classpath.
1946 * java/util/ArrayList.java (addAll(Collection)): Call
1947 addAll(int,Collection) instead of duplicating code.
1948 (indexOf): Clean up int initialization.
1949 (clear): Set cleared array entries to null, to allow garbage
1951 * java/util/List.java: Minor formatting fixes.
1952 * java/util/SimpleTimeZone.java: ditto.
1954 2000-11-18 Tom Tromey <tromey@cygnus.com>
1956 * Makefile.in: Rebuilt.
1957 * Makefile.am (core_java_source_files): Added new files.
1958 * java/lang/reflect/ReflectPermission.java: New class.
1959 * java/io/FileFilter.java: From Classpath
1960 * java/io/FilePermission.java: From Classpath.
1962 2000-11-17 Tom Tromey <tromey@cygnus.com>
1964 * java/lang/reflect/AccessibleObject.java (isAccessible,
1965 setAccessible): Now public.
1967 * java/lang/natString.cc: Include Locale.h.
1968 (toUpperCase): Added `locale' argument. Handle locale
1970 (toLowerCase): Added `locale' argument. Handle locale
1972 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1973 CAPITAL_I): New defines.
1974 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1977 (toUpperCase, toLowerCase): New methods. Variants which accept
1980 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1983 * java/util/PropertyPermission.java: Re-merged from Classpath.
1985 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1987 * java/text/StringCharacterIterator.java: Reindented.
1988 (setText): New method.
1990 2000-11-17 Mark Wielaard <mark@klomp.org>
1992 Merge with Classpath (changes by Bryce McKinlay)
1993 * java/util/jar/*.java: Reformat all to unofficial standard coding
1994 style. No changes of substance.
1996 2000-11-17 Mark Wielaard <mark@klomp.org>
1998 * java/util/zip/*.java: Javadoc updates.
2000 2000-11-17 Tom Tromey <tromey@cygnus.com>
2002 * java/text/CollationKey.java: Implement Comparable.
2003 (compareTo(Object)): New method.
2004 * java/text/Collator.java (compare(Object,Object)): New method.
2005 Implement Comparator.
2007 * java/util/zip/InflaterInputStream.java (available): New method.
2008 (close): New method.
2009 (read, available, skip, fill): Throw exception if stream closed.
2010 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2011 getNextEntry): Throw exception if closed.
2013 2000-11-16 Tom Tromey <tromey@cygnus.com>
2015 * java/io/PushbackReader.java: Merged with Classpath.
2016 * java/util/Arrays.java: Updated from Classpath.
2018 * scripts/blocks.pl: New file.
2019 * java/lang/Character.java (Subset): New class.
2020 (UnicodeBlock): New class.
2022 * java/lang/Math.java (toDegrees, toRadians): New methods.
2024 * java/lang/Float.java: Implement Comparable.
2025 (compareTo): New methods.
2026 * java/lang/Double.java: Implement Comparable.
2027 (compareTo): New methods.
2029 2000-11-16 Warren Levy <warrenl@cygnus.com>
2031 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2033 (listeners): Made transient.
2034 (source): Renamed from 'bean'.
2035 (children): New field for serialization.
2036 (propertyChangeSupportSerializedDataVersion): Ditto.
2037 (serialVersionUID): Ditto.
2038 (writeObject): New serialization method.
2039 (readObject): New serialization method.
2040 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2042 (listeners): Made transient.
2043 (source): Renamed from 'bean'.
2044 (children): New field for serialization.
2045 (vetoableChangeSupportSerializedDataVersion): Ditto.
2046 (serialVersionUID): Ditto.
2047 (writeObject): New serialization method.
2048 (readObject): New serialization method.
2049 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2050 to allow constructor to have a return type (i.e. the class that the
2051 constructor constructs).
2053 2000-11-14 Tom Tromey <tromey@cygnus.com>
2055 * Makefile.in: Rebuilt.
2056 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2059 2000-11-02 Warren Levy <warrenl@cygnus.com>
2061 * java/io/ObjectInputStream.java (readObject): Added code to
2062 conditionally dump out the serialized data.
2063 Handle ENDBLOCKDATA case a bit more gracefully since the current
2064 behavior doesn't seem to work as expected.
2065 (readStreamHeader): Added code for serialized data dumper.
2066 (readNextBlock): Ditto.
2067 (readFields): Ditto.
2068 (dump): New private static field for turning on/off dumper.
2069 (setDump): New native method.
2070 (dumpElement): New native method.
2071 (dumpElementln): New native method.
2072 * java/io/natObjectInputStream.cc (setDump): New method.
2073 (dumpElement): New method.
2074 (dumpElementln): New method.
2076 2000-11-02 Warren Levy <warrenl@cygnus.com>
2078 * java/net/InetAddress.java (addr): Renamed from 'address'.
2079 (address): New field to match Serialized Form doc.
2080 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2081 (family): New serialization field.
2082 (serialVersionUID): New field.
2083 (readObject): New method.
2084 (writeObject): New method.
2085 (getFamily): New native method.
2086 (InetAddress): Set family.
2087 * java/net/natInetAddress.cc (getFamily): New method.
2088 (addr): Renamed from 'address'.
2089 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2090 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2091 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2093 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2095 * java/util/AbstractList.java (SubList): Make it a top-level private
2097 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2099 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2100 * Makefile.in: Rebuilt.
2102 2000-11-02 Tom Tromey <tromey@cygnus.com>
2104 * Makefile.in: Rebuilt.
2105 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2108 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2110 * java/util/AbstractList.java (remove): Comment out modCount increment
2111 to work around compiler bug.
2114 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2116 * java/util/AbstractList.java: Throw messages with
2117 IndexOutOfBoundsExceptions.
2118 (listIterator()): Call listIterator(0).
2119 (size): New field. Initialize to size().
2120 (hasNext): Test position against size, not size().
2121 (remove): Increment knownMod by one instead of resetting it from
2124 (SubList.upMod): Removed.
2125 (SubList.set): Don't call upMod() or update knownMod.
2126 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2127 (SubList.remove): Ditto.
2128 (SubList.addAll): Don't call backingList.size(). Increment size from
2130 (SubList.iterator): New method. Call listIterator(0).
2131 (SubList.listIterator): New method. Restore code to return an anonymous
2132 listIterator implementation (with some changes).
2133 * java/util/AbstractSequentialList.java: Throw messages with
2134 IndexOutOfBoundsExceptions.
2135 (addAll): Add a specnote.
2136 * java/util/ArrayList.java (removeRange): Get the math right.
2137 (addAll): Increment modCount _before_ creating iterator.
2138 * java/util/LinkedList.java: Rewritten, mostly.
2140 2000-11-01 Tom Tromey <tromey@cygnus.com>
2142 * scripts/encodings.pl: Added `ASCII' alias.
2143 * Makefile.in: Rebuilt.
2144 * Makefile.am (convert_source_files): Added new files.
2145 * gnu/gcj/convert/Input_ASCII.java: New file.
2146 * gnu/gcj/convert/Output_ASCII.java: New file.
2147 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2148 out-of-range characters.
2149 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2150 (read): Swap bytes if required. Treat `count' as character count,
2152 (write): Likewise. Also, handle case where iconv fails on a given
2154 (init): Put encoding into exception.
2155 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2156 (static): Call iconv_init. Rebuilt alias list.
2157 (iconv_init): New private method.
2159 2000-11-01 Tom Tromey <tromey@cygnus.com>
2161 * Makefile.in: Rebuilt.
2162 * Makefile.am (install-exec-hook): Only make a single symlink, and
2163 remove the destination before making the link.
2164 * configure: Rebuilt.
2165 * configure.in: Call AC_PROG_LN_S.
2167 2000-10-31 Warren Levy <warrenl@cygnus.com>
2169 * jni.cc: Added include of java/lang/ThreadGroup.h.
2170 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2171 per change of 2000-10-05.
2173 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2175 * java/util/BitSet.java: Updated @specnote.
2177 * java/io/Reader.java: Merge docs from classpath.
2178 (skip): Synchronize on `lock'.
2179 * java/io/FileReader.java: Import correct implementation from
2181 * java/io/StringReader.java: Merge docs from classpath.
2182 (ready): Throw IOException if stream is closed.
2184 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2186 * java/util/AbstractCollection.java (addAll): Use size() instead of
2187 hasNext() in iterator loop.
2189 (contains): Ditto. Simplify loop.
2190 (containsAll): Ditto.
2195 (toString): Ditto. Use string concatenation operators, not
2197 * java/util/AbstractList.java (addAll): Use size() instead of
2198 hasNext() in iterator loop.
2201 (indexOf): Ditto. Don't take null check outside of the loop.
2202 (iterator): Return an AbstractListItr instead of anonymous class.
2203 (lastIndexOf): Use a for loop bounded by size() instead of
2204 hasPrevious() in iterator loop.
2205 (listIterator): Return an AbstractListItr.
2206 (removeRange): Remove bounds checking code and docs.
2207 (AbstractListItr): New inner class. Code moved here from
2209 (SubList.iterator): Removed. Use default implementation from
2210 AbstractList instead.
2211 (SubList.listIterator): As above.
2212 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2213 instead of hasNext() in iterator loop.
2214 (containsValue): Ditto.
2220 (toString): Ditto. Use string concatenation operators, not
2222 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2223 bounded by size() instead of hasNext() in iterator loop.
2224 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2225 part of normal execution flow. Do an explicit null check instead.
2226 * java/util/ArrayList.java (_iSize): Rename to `size'.
2227 (_arData): Rename to `data'.
2228 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2231 (removeRange): Make protected. Don't check bounds.
2232 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2234 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2236 (addAll (int, Collection)): Check lower bounds. Simplify exception
2238 (clone): Clone the data array too.
2239 (indexOf): Inline doesEqual().
2240 (lastIndexOf): Ditto.
2241 (clear): Don't set array data to null.
2242 (set): Check lower bounds. Simplify exception string.
2243 (toArray): Correct comment.
2244 (trimToSize): Don't update modCount, this is not a structural change.
2247 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2249 (toString): Declare `bit' as long, not int.
2250 (data): Made package-private, not private.
2252 2000-10-27 Warren Levy <warrenl@cygnus.com>
2254 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2255 array elements to true.
2257 2000-10-27 Warren Levy <warrenl@cygnus.com>
2259 * Makefile.am: Added locale files from Classpath.
2260 * Makefile.in: Rebuilt.
2261 * gnu/java/locale/Calendar.java: New file.
2262 * gnu/java/locale/Calendar_de.java: New file.
2263 * gnu/java/locale/Calendar_en.java: New file.
2264 * gnu/java/locale/Calendar_nl.java: New file.
2265 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2266 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2267 serialization compatibility.
2268 (scale): Made private.
2269 (serialVersionUID): New field.
2270 * java/math/BigInteger.java (ival): Made transient.
2271 (words): Made transient.
2272 (bitCount): New serialization field.
2274 (firstNonzeroByteNum): Ditto.
2275 (lowestSetBit): Ditto.
2278 (serialVersionUID): New field.
2279 (readObject): New method.
2280 (writeObject): New method.
2281 * java/util/BitSet.java (serialVersionUID): New field.
2282 * java/util/Calendar.java: Replaced with Classpath file.
2283 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2284 of getDefault() for TimeZone or Locale instead of passing nulls.
2285 * java/util/Locale.java (serialVersionUID): New field.
2286 (writeObject): New method.
2287 (readObject): New method.
2288 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2290 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2292 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2293 (core_java_source_files): Put java.lang, java.io, and java.util here.
2294 (ordinary_java_source_files): Order so that core_java_source_files are
2296 (java_source_files): Reorder so that special_java_source_files are
2298 * configure.in: Don't pass -I flag to gcj.
2299 * Makefile.in: Rebuilt.
2300 * configure: Rebuilt.
2302 2000-10-25 Tom Tromey <tromey@cygnus.com>
2304 * Makefile.in: Rebuilt.
2305 * Makefile.am (install-exec-hook): New target.
2307 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2309 * java/util/EventObject.java: Merged from classpath.
2311 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2314 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2316 * java/util/AbstractSet.java (equals): Re-installed original code.
2318 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2320 * Makefile.am: Added rules for libgcjx library.
2321 * Makefile.in: Rebuilt.
2322 * configure.in: Added check for X.
2323 * configure: Rebuilt.
2324 * gnu/awt/LightweightRedirector.java: New file.
2325 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2326 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2327 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2328 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2329 * gnu/awt/j2d/MappedRaster.java: New file.
2330 * gnu/awt/xlib/XCanvasPeer.java: New file.
2331 * gnu/awt/xlib/XEventLoop.java: New file.
2332 * gnu/awt/xlib/XEventQueue.java: New file.
2333 * gnu/awt/xlib/XFontMetrics.java: New file.
2334 * gnu/awt/xlib/XFramePeer.java: New file.
2335 * gnu/awt/xlib/XGraphics.java: New file.
2336 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2337 * gnu/awt/xlib/XPanelPeer.java: New file.
2338 * gnu/awt/xlib/XToolkit.java: New file.
2339 * gnu/gcj/xlib/Clip.java: New file.
2340 * gnu/gcj/xlib/Colormap.java: New file.
2341 * gnu/gcj/xlib/Display.java: New file.
2342 * gnu/gcj/xlib/Drawable.java: New file.
2343 * gnu/gcj/xlib/Font.java: New file.
2344 * gnu/gcj/xlib/GC.java: New file.
2345 * gnu/gcj/xlib/Pixmap.java: New file.
2346 * gnu/gcj/xlib/Screen.java: New file.
2347 * gnu/gcj/xlib/Visual.java: New file.
2348 * gnu/gcj/xlib/WMSizeHints.java: New file.
2349 * gnu/gcj/xlib/Window.java: New file.
2350 * gnu/gcj/xlib/WindowAttributes.java: New file.
2351 * gnu/gcj/xlib/XAnyEvent.java: New file.
2352 * gnu/gcj/xlib/XButtonEvent.java: New file.
2353 * gnu/gcj/xlib/XColor.java: New file.
2354 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2355 * gnu/gcj/xlib/XConnectException.java: New file.
2356 * gnu/gcj/xlib/XEvent.java: New file.
2357 * gnu/gcj/xlib/XException.java: New file.
2358 * gnu/gcj/xlib/XExposeEvent.java: New file.
2359 * gnu/gcj/xlib/XID.java: New file.
2360 * gnu/gcj/xlib/XImage.java: New file.
2361 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2362 * gnu/gcj/xlib/natClip.cc: New file.
2363 * gnu/gcj/xlib/natColormap.cc: New file.
2364 * gnu/gcj/xlib/natDisplay.cc: New file.
2365 * gnu/gcj/xlib/natDrawable.cc: New file.
2366 * gnu/gcj/xlib/natFont.cc: New file.
2367 * gnu/gcj/xlib/natGC.cc: New file.
2368 * gnu/gcj/xlib/natPixmap.cc: New file.
2369 * gnu/gcj/xlib/natScreen.cc: New file.
2370 * gnu/gcj/xlib/natVisual.cc: New file.
2371 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2372 * gnu/gcj/xlib/natWindow.cc: New file.
2373 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2374 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2375 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2376 * gnu/gcj/xlib/natXColor.cc: New file.
2377 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2378 * gnu/gcj/xlib/natXException.cc: New file.
2379 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2380 * gnu/gcj/xlib/natXImage.cc: New file.
2381 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2382 * java/awt/EventDispatchThread.java: Start thead on creation.
2384 2000-10-20 Tom Tromey <tromey@cygnus.com>
2386 From Arno J. Klaassen:
2387 * interpret.cc: Include <stdlib.h> for alloca.
2388 * defineclass.cc: Include <stdlib.h> for alloca.
2390 * Makefile.in: Rebuilt.
2391 * Makefile.am: Include deps.mk.
2392 (GCJCOMPILE): Added -MD, -MT, and -MF.
2393 ($(javao_files)): Don't depend on libgcj.zip.
2394 (all-recursive): New target.
2395 (%.lo:%.cc): Do dependency tracking.
2396 ($(nat_headers)): Don't depend on libgcj.zip.
2397 * configure: Rebuilt.
2398 * configure.in: Make .d files and deps.mk.
2400 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2402 * exception.cc: Don't #include "exception".
2403 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2405 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2406 * Makefile.in: Updated.
2408 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2410 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2411 * java/awt/peer/ComponentPeer.java (disable): Removed.
2414 (minimumSize): Removed.
2415 (preferredSize): Removed.
2418 * java/awt/peer/ListPeer.java (addItem): Removed.
2420 (minimumSize): Removed.
2421 (preferredSize): Removed.
2422 (setMultipleSelections): Removed.
2423 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2424 (remove): Renamed from removeMenu.
2425 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2427 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2428 (remove): Renamed from removeItem.
2429 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2430 (getMinimumSize): Removed.
2431 (getPreferredSize): Removed.
2432 (minimumSize): Removed.
2433 (preferredSize): Removed.
2434 (replaceText): Removed.
2435 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2436 (preferredSize): Removed.
2437 (getMinimumSize): Removed.
2438 (getPreferredSize): Removed.
2439 (setEchoCharacter): Removed.
2441 2000-10-10 Warren Levy <warrenl@cygnus.com>
2443 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2444 * java/sql/Date.java (serialVersionUID): New field.
2445 * java/sql/Time.java (serialVersionUID): New field.
2446 * java/sql/Timestamp.java (serialVersionUID): New field.
2447 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2448 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2449 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2450 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2451 (readObject): New serialization method.
2452 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2453 (serialVersionOnStream): New field.
2454 (readObject): New serialization method.
2455 (getMonetaryDecimalSeparator): New method.
2456 (setMonetaryDecimalSeparator): New method.
2457 * java/text/NumberFormat.java (maxFractionDigits): New field.
2458 (maxIntegerDigits): New field.
2459 (minFractionDigits): New field.
2460 (minIntegerDigits): New field.
2461 (serialVersionOnStream): New field.
2462 (serialVersionUID): New field.
2463 (readObject): New serialization method.
2464 (writeObject): New serialization method.
2465 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2466 (serialVersionOnStream): New field.
2467 (serialVersionUID): New field.
2468 (readObject): New serialization method.
2470 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2472 * configure.in (GCJ): Avoid bogus error message when looking for
2473 (and not finding) gcj in the build tree.
2474 * configure: Rebuilt.
2476 2000-10-09 Tom Tromey <tromey@cygnus.com>
2478 * configure: Rebuilt.
2479 * configure.in: Include sys/types.h when checking for socklen_t.
2480 From Arno J. Klaassen.
2482 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2484 * include/jvm.h: Enable __builtin_expect().
2486 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2487 the main program. Fix for PR libgcj/341.
2489 2000-10-07 Tom Tromey <tromey@cygnus.com>
2491 * java/util/Properties.java: Merged with Classpath version.
2493 2000-10-05 Tom Tromey <tromey@cygnus.com>
2495 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2496 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2497 * java/lang/Class.h (Object): Added `class$' field.
2498 * java/lang/Object.h (Object): Added `class$' field.
2499 * defineclass.cc (ClassClass): Use `class$' form.
2500 (ClassObject): Likewise.
2501 * resolve.cc (ClassObject): Use `class$' form.
2502 (ObjectClass): Likewise.
2503 * interpret.cc (ClassError): Removed.
2504 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2506 (IntegerClass): Likewise.
2507 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2509 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2510 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2511 SerializableClass): Likewise.
2512 Include Serializable.h, Cloneable.h.
2513 * java/lang/natSystem.cc (SystemClass): Removed.
2514 (init_properties): Use `class$' form.
2515 * java/lang/natObject.cc (CloneableClass): Removed.
2516 (clone): Use `class$' form.
2517 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2518 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2519 ConstructorClass): Likewise.
2520 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2521 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2522 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2523 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2525 (ClassClass): Likewise.
2526 * include/jvm.h (StringClass): Use `class$' form.
2527 * prims.cc (ObjectClass): Removed.
2528 (_Jv_RunMain): Use `class$' form.
2529 (_Jv_AllocObject): Likewise.
2530 * jni.cc (ClassClass): Use `class$' form.
2531 (ThrowableClass): Likewise.
2532 (ObjectClass): Likewise.
2533 (MethodClass): Likewise.
2534 (ThreadGroupClass): Likewise.
2535 (NativeThreadClass): Likewise.
2536 * boehm.cc (ObjectClass): Removed.
2537 (ClassClass): Removed.
2538 (_Jv_MarkObj): Use `class$' form.
2539 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2542 2000-10-05 Warren Levy <warrenl@cygnus.com>
2544 * Makefile.am: Removed java/io/Replaceable.java and
2545 java/io/Resolvable.java.
2546 * Makefile.in: Rebuilt.
2547 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2549 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2551 (processResolution): Handle readResolve method via reflection with
2552 removal of Resolvable interface.
2553 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2554 method via reflection with removal of Replaceable interface.
2555 * java/io/Replaceable.java: Removed.
2556 * java/io/Resolvable.java: Removed.
2557 * java/security/Key.java (serialVersionUID): New field.
2558 * java/security/Provider.java (serialVersionUID): New field.
2559 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2561 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2563 * java/sql/DataTruncation.java (serialVersionUID): New field.
2564 * java/sql/SQLException.java (serialVersionUID): New field.
2565 * java/sql/SQLWarning.java (serialVersionUID): New field.
2566 * java/util/Date.java (serialVersionUID): New field.
2567 (millis): Made transient.
2568 (readObject): New method.
2569 (writeObject): New method.
2571 2000-10-05 Tom Tromey <tromey@cygnus.com>
2573 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2575 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2577 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2578 (JvRunMain): Set _Jv_argv and _Jv_argc.
2579 * java/awt/Component.java: Minor fixes.
2580 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2581 * java/awt/Toolkit.java (systemEventQueue): Removed.
2582 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2583 * java/awt/Window.java (getToolkit): Don't call super.
2584 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2585 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2586 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2587 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2588 * gnu/awt/gtk/GtkFramePeer.java: New file.
2589 * gnu/awt/gtk/GtkMainThread.java: New file.
2590 * gnu/awt/gtk/GtkToolkit.java: New file.
2591 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2592 * gnu/awt/gtk/gtkcommon.cc: New file.
2593 * gnu/awt/gtk/gtkcommon.h: New file.
2594 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2595 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2596 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2597 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2598 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2599 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2601 2000-09-30 Tom Tromey <tromey@cygnus.com>
2603 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2604 interrupted before modifying the cv's wait set.
2607 2000-09-30 Hans Boehm <boehm@acm.org>
2608 Bryce McKinlay <bryce@albatross.co.nz>
2610 Implement bitmap descriptor based marking for Boehm GC.
2612 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2613 * configure: Rebuilt.
2614 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2615 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2616 method get_finalizer().
2617 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2618 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2619 (_Jv_AllocObj): Add new jclass parameter.
2620 (_Jv_AllocArray): Ditto.
2621 (_Jv_BuildGCDescr): New prototype.
2622 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2623 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2624 get_finalizer() instead of direct finalizer vtable offset.
2625 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2626 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2627 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2628 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2629 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2630 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2631 (_Jv_DetermineVTableIndex): Ditto.
2632 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2633 calculations to account for new gc_descr field.
2634 * boehm.cc: #include gc_gcj.h.
2635 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2636 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2637 New commentary from HB. Mark the classes vtable.
2638 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2639 (GC_DEFAULT_DESCR): New #define.
2640 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2641 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2642 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2643 scan conservativly if size is less than min_heap_addr. Set vtable
2644 pointer of new object before returning.
2645 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2646 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2647 allocation for obj_kind_x.
2648 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2649 (_Jv_AllocObj): Set vtable on returned object.
2650 (_Jv_AllocArray): Ditto.
2651 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2652 (_Jv_NewPrimArray): Ditto.
2653 (_Jv_AllocObj): Declare as a friend.
2654 (_Jv_AllocArray): Ditto.
2655 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2656 from &ObjectClass into new array class. Remove offset-by-one
2657 adjustments from `method' size calculations to account for gc_descr
2660 2000-09-26 Tom Tromey <tromey@cygnus.com>
2662 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2663 `remove', not `add'.
2665 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2667 * java/lang/natSystem.cc (file_encoding): Added return statement.
2669 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2671 * Makefile.am: Re-work shell commands that exceeded command-line
2673 * Makefile.in: Rebuilt.
2675 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2677 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2678 * java/lang/natDouble.cc: Likewise.
2679 * java/lang/reflect/natMethod.cc: Likewise.
2680 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2682 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2684 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2686 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2687 * acinclude.m4: Arrange for automake to not bring in a new
2688 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2689 * Makefile.am: Leave it up to automake to subst GCJ.
2690 * aclocal.m4, configure, Makefile.in: Rebuilt.
2692 2000-09-13 Tom Tromey <tromey@cygnus.com>
2694 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2695 (get): Ensure Boolean class is initialized.
2696 * java/lang/reflect/natField.cc (BooleanClass): New define.
2697 (get): Ensure Boolean class is initialized.
2699 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2701 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2702 Initialize with anonymous class.
2703 (compareToIgnoreCase): New method.
2705 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2706 (uncaughtException): Set had_uncaught_exception.
2707 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2708 exit with error status if set.
2709 (_Jv_RunMain): Ditto.
2711 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2713 * configure: Rebuilt with new ../libtool.m4.
2715 2000-09-11 Tom Tromey <tromey@cygnus.com>
2717 * java/lang/reflect/Field.java (toString): Don't rely on
2720 2000-09-08 Tom Tromey <tromey@cygnus.com>
2722 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2723 default decoder use iconv.
2724 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2725 Let default encoder use iconv.
2726 * configure: Rebuilt.
2727 * configure.in: Check for nl_langinfo and <langinfo.h>.
2728 * java/lang/natSystem.cc (file_encoding): New function.
2729 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2731 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2733 * acinclude.m4: Simplify the tests for CC and CXX.
2734 * aclocal.m4, configure: Rebuilt.
2736 * acinclude.m4: Include libtool macros from the source tree.
2737 * aclocal.m4, configure: Rebuilt.
2739 2000-09-08 Warren Levy <warrenl@cygnus.com>
2741 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2742 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2743 * java/io/File.java (writeObject): Added.
2744 (readObject): Added.
2745 (serialVersionUID): Added.
2746 * java/io/ObjectOutputStream.java (writeObject): Initialized
2747 fieldsAlreadyWritten before recursion rather than after.
2748 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2749 * java/io/OptionalDataException.java (serialVersionUID): Added.
2750 (OptionalDataException): Made package private.
2751 * java/io/SyncFailedException.java (SyncFailedException): Removed
2752 default constructor to match spec.
2753 * java/lang/Boolean.java (serialVersionUID): Added.
2754 * java/lang/Byte.java (serialVersionUID): Added.
2755 * java/lang/Character.java (serialVersionUID): Added.
2756 * java/lang/Double.java (serialVersionUID): Added.
2757 * java/lang/Float.java (serialVersionUID): Added.
2758 * java/lang/Integer.java (serialVersionUID): Added.
2759 * java/lang/Long.java (serialVersionUID): Added.
2760 * java/lang/Number.java (serialVersionUID): Added.
2761 * java/lang/Short.java (serialVersionUID): Added.
2762 * java/lang/String.java (serialVersionUID): Added.
2763 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2765 * java/lang/reflect/InvocationTargetException.java
2766 (serialVersionUID): Added.
2767 * java/net/URL.java (handler): Made transient.
2768 (hashCode): Added field for serialization, per spec. and use
2769 cached value if available.
2770 (serialVersionUID): Added.
2771 (URL): Initialize hashCode.
2772 (set): Adjust hashCode.
2773 (readObject): New Method to initialize the protocol handler when
2775 (writeObject): New method.
2776 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2777 * java/text/Collator.java: Removed 'implements Serializable'.
2778 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2779 * java/util/Properties.java (serialVersionUID): Added.
2780 * java/util/Random.java (serialVersionUID): Added.
2781 (seed): Made private.
2782 (nextNextGaussian): Made private.
2783 (haveNextNextGaussian): Made private.
2784 * java/util/Stack.java (serialVersionUID): Added.
2785 * java/util/TimeZone.java (serialVersionUID): Added.
2786 * java/util/Vector.java (serialVersionUID): Added.
2788 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2790 * Makefile.am (Thread.h): Don't be friends with native threads
2792 * Makefile.in: Rebuilt.
2793 * java/lang/Thread.java (interrupt_flag): Make package-private.
2795 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2797 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2798 to avoid long long division.
2800 2000-09-06 Tom Tromey <tromey@cygnus.com>
2802 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2804 * java/lang/reflect/Method.java (toString): Use `getName' for
2807 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2808 `args' if method takes no parameters.
2810 Fix for PR java.lang/339:
2811 * java/lang/natPosixProcess.cc (fail): New function.
2812 (cleanup): New function.
2813 (startProcess): Use them. Create pipe so child can communicate
2814 exec failure back to parent.
2816 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2818 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2820 (send): Undo last patch. Remove the label only.
2822 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2824 * java/net/natInetAdress.cc: Ditto.
2826 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2828 2000-09-05 Tom Tromey <tromey@cygnus.com>
2830 * doc/cni.sgml: Updated from master copy.
2832 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2834 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2836 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2838 * java/lang/fdlibm.h: #undef __P if previously defined.
2839 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2840 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2844 2000-09-04 Tom Tromey <tromey@cygnus.com>
2846 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2849 2000-09-04 Anthony Green <green@redhat.com>
2851 Fix for PR java.io/203:
2852 * java/io/File.java (createTempFile): Obey directory argument.
2853 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2854 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2855 variable to set java.io.tmpdir on non-WIN32 systems.
2857 2000-09-04 Anthony Green <green@redhat.com>
2859 * java/io/File.java (deleteOnExit): New method.
2860 * gnu/gcj/runtime/FileDeleter.java: New class.
2861 * java/lang/natRuntime.cc (exit): Call
2862 FileDeleter.deleteOnExitNow()
2863 * Makefile.am: Add FileDeleter.java.
2864 * Makefile.in: Rebuilt.
2866 2000-09-02 Tom Tromey <tromey@cygnus.com>
2868 * Makefile.in: Rebuilt.
2869 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2870 environment variable.
2872 2000-09-01 Andrew Haley <aph@redhat.com>
2874 * java/io/StreamTokenizer.java: Don't throw a
2875 NumberFormatException if a field is numeric as far as the
2876 StreamTokenizer is concerned but not as far as Double.valueOf() is
2877 concerned: return a zero instead.
2879 2000-08-30 Tom Tromey <tromey@cygnus.com>
2881 * Makefile.in: Rebuilt.
2882 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2884 2000-08-28 Tom Tromey <tromey@cygnus.com>
2886 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2887 gnu/gcj/awt/ComponentDataBlitOp.java,
2888 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2889 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2890 java/awt/color/ICC_ColorSpace.java,
2891 java/awt/color/ICC_Profile.java,
2892 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2893 java/awt/image/ComponentColorModel.java,
2894 java/awt/image/ComponentSampleModel.java,
2895 java/awt/image/DataBuffer.java,
2896 java/awt/image/DataBufferByte.java,
2897 java/awt/image/DataBufferInt.java,
2898 java/awt/image/DataBufferUShort.java,
2899 java/awt/image/DirectColorModel.java,
2900 java/awt/image/IndexColorModel.java,
2901 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2902 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2903 java/awt/image/SinglePixelPackedSampleModel.java,
2904 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2905 Removed Latin-1 copyright symbols.
2906 * java/util/zip/ZipFile.java: Indentation fixes.
2908 2000-08-27 Mark Wielaard <mark@klomp.org>
2910 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2911 constructor, close can delete the file, finalize calls close.
2912 * java/util/jar/JarFile.java: Constructor that takes mode now
2915 2000-08-27 Anthony Green <green@redhat.com>
2917 * java/util/ArrayList.java, java/util/Timer.java,
2918 java/util/LinkedList.java, java/util/TimerTask.java,
2919 java/util/HashMap.java, java/util/AbstractMap.java,
2920 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2921 java/util/SortedSet.java: Imported from GNU Classpath.
2922 * Makefile.in: Rebuilt.
2923 * Makefile.am: Added new files.
2925 2000-08-26 Anthony Green <green@redhat.com>
2927 * Makefile.in: Rebuilt.
2928 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2931 * prims.cc: Include ClassLoader.h.
2932 (_Jv_RunMain): When executing jar files, classpath must be the jar
2933 file only. Lose our reference to the system ClassLoader in order
2934 to get a new one with the correct classpath.
2935 * java/lang/natSystem.cc (init_properties): When executing a jar
2936 file, only use the jar file for java.class.path.
2938 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2939 for bytecode archives.
2941 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2942 exists, but not Main-Class.
2944 2000-08-23 Mark Wielaard <mark@klomp.org>
2946 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2947 return -1 when fill() has no more data for the Inflater.
2949 2000-08-23 Mark Wielaard <mark@klomp.org>
2951 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2952 write(String) already does.
2954 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2956 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2957 to `alive_flag', call `init'.
2958 (init): New native method.
2959 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2962 2000-08-21 Mark Wielaard <mark@klomp.org>
2964 * Makefile.in: Rebuilt.
2965 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2967 (java/lang/reflect/Field.h): Likewise.
2968 (java/lang/reflect/Method.h): Likewise.
2969 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2972 2000-08-21 Tom Tromey <tromey@cygnus.com>
2974 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2977 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2979 * java/lang/natSystem.cc (init_properties): Change sourceware
2980 reference to sources.redhat.com.
2982 * include/java-props.h: Add _Jv_Jar_Class_Path.
2983 * prims.cc: Ditto. Set it from `gij -jar file' option.
2985 * java/lang/natSystem.cc (init_properties): Set java.class.path
2987 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2989 * java/util/PropertyPermission.java: Import from GNU Classpath.
2990 * Makefile.in: Rebuilt.
2991 * Makefile.am: Add java/util/PropertyPermission.java.
2992 * java/lang/System.java: Add setProperty method.
2994 * gij.cc (main): Add -jar option to execute jar files.
2995 (help): Describe -jar option.
2996 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2997 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2998 * gnu/gcj/runtime/FirstThread.java (main): New method.
3000 * java/util/jar/Attributes.java: Correct comment spelling.
3002 2000-08-20 Mark Wielaard <mark@klomp.org>
3004 * java/util/zip/Adler32.java: Make private variables really private
3005 * java/util/zip/CRC32.java: Make private variables really private
3006 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3008 * java/util/zip/InflaterInputStream.java: skip() could skip to
3010 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3011 * java/util/zip/ZipFile.java: size() new 1.2 method
3012 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3013 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3016 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3018 * java/util/jar/JarFile.java: Don't call
3019 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3022 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3024 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3025 Read the entire contents of the class file, not just what is
3028 * java/net/JarURLConnection.java: getEntry doesn't take any
3029 arguments. Return null if element is null.
3031 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3032 size from the archive, not the inflated size.
3034 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3035 java.util.zip.ZipFile.getEntry.
3037 * gij.cc (help): Change sourceware reference to
3040 2000-08-19 Tom Tromey <tromey@cygnus.com>
3042 * java/util/zip/ZipInputStream.java (createZipEntry):
3045 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3047 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3048 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3049 java/util/jar/JarInputStream.java,
3050 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3051 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3052 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3053 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3054 java/security/cert/Certificate.java,
3055 java/security/cert/CertificateEncodingException.java,
3056 java/security/cert/CertificateException.java,
3057 java/security/cert/CertificateExpiredException.java,
3058 java/security/cert/CertificateFactory.java,
3059 java/security/cert/CertificateFactorySpi.java,
3060 java/security/cert/CertificateNotYetValidException.java,
3061 java/security/cert/CertificateParsingException.java,
3062 java/security/cert/X509CRL.java,
3063 java/security/cert/X509CRLEntry.java,
3064 java/security/cert/X509Certificate.java,
3065 java/security/cert/X509Extension.java: Imported from Classpath.
3066 * java/util/Hashtable.java: Imported from Classpath.
3068 * java/util/zip/ZipInputStream.java: Create stub for
3071 * gcj/javaprims.h: Updated class list.
3073 * Makefile.in, gcj/Makefile.in: Rebuilt.
3074 * Makefile.am (ordinary_java_source_files): Add these new classes.
3076 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3078 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3079 * gnu/gcj/awt/GLightweightPeer.java: New file.
3080 * java/awt/BorderLayout.java: Implemented all methods.
3081 * java/awt/Button.java (actionListener, actionCommand): Renamed
3082 and modifier change.
3083 (addNotify): Call super.
3084 (dispatchEventImpl): New method.
3085 (getListeners): New method.
3086 (label): Made package-private, not private.
3087 * java/awt/Canvas.java: Implemented class body.
3088 * java/awt/Color.java (brighter): New method.
3089 (darker): New method.
3090 (hashCode): New method.
3091 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3092 (getGraphicsConfiguration): Delegate to
3093 getGraphicsConfigurationImpl().
3094 (getGraphicsConfigurationImpl): New method.
3095 (getToolkit): Only return value from peer if not null.
3096 (isDisplayable): Check with parent.
3097 (isShowing): No parent implies not showing.
3098 (getForeground): Check parent property if local is null.
3099 (getBackground): Likewise.
3100 (getFont): Likewise.
3101 (setForeground): Inform peer.
3102 (setBackground): Likewise
3103 (setLocale): Invalidate component.
3104 (getColorModel): Implemented.
3105 (setLocation): Invalidate, or ignore if no change.
3106 (setSize): Invalidate, or ignore if no change.
3107 (setBounds): Invalidate, or ignore if no change.
3108 (isOpaque): By default, heavyweight implies opaque.
3109 (isLightweight): Implemented.
3110 (getMaximumSize): Implemented.
3111 (doLayout): Implemented, NOP.
3112 (validate): Implemented, NOP.
3113 (invalidate): Only propagate to parent if parent was valid.
3114 (getGraphics): Implemented.
3115 (getFontMetrics): Implemented.
3116 (update): Implemented.
3117 (paintAll): Implemented.
3118 (repaint): Implemented all repaint methods.
3119 (print): Implemented.
3120 (printAll): Implemented.
3121 (createImage): Implemented.
3122 (dispatchEvent): Give the peer a chance to handle the event.
3123 (dispatchEventImpl): Dispatch paint events.
3124 (enableEvents): Lightweights enable events on parent component.
3125 (coalesceEvents): Coalesce paint events, and select event type
3127 (coalescePaintEvents): New method.
3128 (processEvent): Fix unfortunate ordering of statements, and call
3129 correct method for MOUSE_CLICKED.
3130 (processPaintEvent): New method.
3131 (addNotify): Allow container to notify children before event
3132 mask is set in peer.
3133 (addNotifyContainerChildren): New method.
3134 (removeNotify): Visibility should not change on removeNotify.
3135 (paramString): Implemented.
3136 (list): Implemented two of the list methods.
3137 * Container (myInsets): Removed, insets are managed by peer.
3138 (getInsets): Query peer.
3139 (addImpl): Fix reparenting, enable events for lightweights,
3140 initialize component array.
3141 (validate): Call doLayout in validateTree() instead.
3142 (validateTree): Do nothing if already valid. Call beginValidate(),
3143 endValidate() on peer. Call validateTree() instead of validate()
3144 for children that are containers. Mark valid after validation of
3146 (setFont): Partial implementation.
3147 (paint): Implemented.
3148 (visitChildren): New method.
3149 (visitChild): New method.
3150 (update): Implemented.
3151 (print): Implemented.
3152 (paintComponents): Implemented.
3153 (printComponents): Consider translation and clipping.
3154 (getComponentAt): Ignore invisible children. Return this if no
3156 (addNotify): Call super.
3157 (addNotifyContainerChildren): New method.
3158 (paramString): Implemented.
3159 (list): Implemented.
3160 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3162 (invokeLater): Likewise.
3163 (isDispatchThread): Likewise.
3164 * java/awt/FontMetrics (getLeading): Formula change.
3165 (getDescent): Consider leading also.
3166 (getMaxAscent): Default to getAscent().
3167 (getMaxDescent): Default to getDescent.
3168 (getMaxAdvance): Return value signifying unknown.
3169 (charWidth): Both methods implemented.
3170 (charsWidth): Implemented.
3171 (bytesWidth): Implemented.
3172 (getWidths): Implemented.
3173 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3175 (Frame): Rearragend constuctor chaining to disallow null being
3176 passed as a graphics configuration.
3177 (getTitle): Return empty string if null.
3179 (getIconImage): New method.
3180 (setIconImage): New method.
3181 (finalize): New method.
3182 (setMenuBar): Notify peer.
3183 (isResizable): New method.
3184 (setResizable): New method.
3185 (getState): New method.
3187 (remove): Implemented.
3188 (removeNotify): New method.
3189 (getFrames): New method.
3190 * java/awt/Graphics.java: Implemented body of class.
3191 * java/awt/Graphics2D.java: New file.
3192 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3193 * java/awt/Image.java: Implemented body of class.
3194 * java/awt/Panel.java (Panel): Call correct super constructor.
3195 (addNotify): Implemented.
3196 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3197 * java/awt/RenderingHints.java: New file.
3198 * java/awt/Toolkit.java (createComponent): Implemented.
3199 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3200 * java/awt/Window.java (Window): Two new constructors. Reordered
3201 constructor chaining.
3202 (getGraphicsConfigurationImpl): New method.
3203 (finalize): Call super.
3204 (addNotify): Call super.
3205 (pack): Do layout stuff.
3206 (show): Ensure that peer exists and that component is valid.
3207 (dispose): Dispose owned children.
3208 (getOwner): Simplify code, casting null pointers is valid.
3209 (getGraphicsConfiguration): Ask peer if local value is null.
3210 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3212 * java/awt/image/BufferedImage.java: New file.
3213 * java/awt/image/RasterOp.java: New file.
3214 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3215 More powerfull replacement for getColorModel().
3216 (getColorModel) Removed.
3217 (setEventMask) New method.
3218 * Makefile.am: Added new files.
3219 * Makefile.in: Rebuilt.
3221 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3223 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3224 (finit_leg_name): New global.
3225 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3226 `$finit$'. This is a backward compatibility hack.
3227 (java::lang::Class::_getMethods): Likewise.
3229 2000-08-15 Andrew Haley <aph@cygnus.com>
3231 * include/jvm.h (_Jv_HashCode): New hash code.
3233 2000-08-15 Tom Tromey <tromey@cygnus.com>
3235 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3237 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3239 * THANKS: More thanks.
3241 2000-08-10 Tom Tromey <tromey@cygnus.com>
3243 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3245 (connect): Likewise.
3247 (getOption): Likewise.
3248 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3249 case when errno not set.
3252 (receive): Likewise.
3253 (mcastGrp): Likewise.
3254 (setOption): Likewise.
3255 (getOption): Likewise.
3257 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3258 John Stracke <francis@ecal.com>
3260 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3261 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3263 (disconnect): Don't unset connected flag.
3264 (getHeaderField (String)): Call connect() if not connected.
3265 (getHeaderField (int)): Ditto.
3266 (getHeaderFieldKey): Ditto.
3267 (getHttpHeaders): Don't call connect().
3268 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3269 gotResponseVals): New fields.
3270 (getResponseCode): Call getResponseVals() conditionally.
3271 (getResponseMessage): Ditto.
3272 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3274 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3276 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3277 * Makefile.in: Rebuilt.
3278 * java/awt/Color.java (getTransparency): New method.
3279 * java/awt/Component.java: Various updates.
3280 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3281 after dealing with children.
3282 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3283 * java/awt/Window.java: Various new methods and updates.
3284 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3286 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3287 * java/awt/event/WindowEvent.java (paramString): Ditto.
3288 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3290 * java/awt/geom/Point2D.java (clone): Ditto.
3291 * java/awt/geom/RectangularShape.java (clone): Ditto.
3292 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3293 isAlphaPremultiplied): Make package-private, not private.
3295 2000-08-08 Tom Tromey <tromey@cygnus.com>
3297 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3298 surrogate characters.
3299 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3301 (write): Correct handling of surrogate characters.
3303 2000-08-07 Tom Tromey <tromey@cygnus.com>
3305 * java/lang/reflect/Method.java (hashCode): Use getName().
3306 (toString): Likewise.
3307 * java/lang/reflect/natMethod.cc (getType): Initialize
3310 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3312 * java/lang/reflect/Field.java (toString): Correct formatting.
3315 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3317 (receive): Streamlined.
3319 2000-08-05 Tom Tromey <tromey@cygnus.com>
3321 * java/io/PrintWriter.java: Merged comments from Classpath.
3322 (printlnUnsynchronized): Removed.
3323 (println()): Print the separator.
3324 (println): Call println(), not printlnUnsynchronized.
3325 (out): Now protected, to match spec.
3327 2000-08-04 Tom Tromey <tromey@cygnus.com>
3329 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3330 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3333 2000-08-03 Warren Levy <warrenl@cygnus.com>
3335 * java/io/ObjectInputStream.java (readFields): Turn off
3336 readDataFromBlock while reading via GetField.
3337 (GetField$1.get(String, Object)): Pass Class of default value to
3339 (getField): Allow for null default values.
3341 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3342 (PutField$1.put): Fixed calls of checkType in most of the put
3343 methods to pass the correct parameter.
3344 (PutField$1.put(String, Object)): Allow for null value arg.
3345 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3348 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3349 typo in spec'ed field name.
3350 (getSerialPersistentFields): Changed spelling of method to match
3351 the correct spelling of the spec'ed field name.
3353 2000-08-03 Tom Tromey <tromey@cygnus.com>
3355 * Makefile.in: Rebuilt.
3356 * Makefile.am (awt_java_source_files): Added new files.
3358 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3360 * Makefile.am: Add new AWT stubs.
3361 * java/awt/Canvas.java: New placeholder class.
3362 * java/awt/Checkbox.java: Ditto.
3363 * java/awt/CheckboxMenuItem.java: Ditto.
3364 * java/awt/Choice.java: Ditto.
3365 * java/awt/Dialog.java: Ditto.
3366 * java/awt/FileDialog.java: Ditto.
3367 * java/awt/List.java: Ditto.
3368 * java/awt/ScrollPane.java: Ditto.
3369 * java/awt/TextField.java: Ditto.
3370 * java/awt/datatransfer/Clipboard.java: Ditto.
3371 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3372 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3373 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3374 Some commented out. Partially implemented.
3375 * java/awt/natToolkit.cc: Removed file.
3377 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3379 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3380 Fixes "make -j" builds.
3381 * Makefile.in: Rebuild.
3383 2000-08-02 Tom Tromey <tromey@cygnus.com>
3385 * Makefile.in: Rebuilt.
3386 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3387 * java/net/natPlainSocketImpl.cc: Include posix.h.
3388 (accept): Use _Jv_select.
3389 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3390 (receive): Use _Jv_select.
3391 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3392 (available): Use _Jv_select.
3393 * java/lang/natSystem.cc: Include posix.h.
3394 (currentTimeMillis): Use _Jv_gettimeofday.
3395 * include/posix.h: New file.
3396 * posix.cc: New file.
3398 * scripts/encodings.pl: New file.
3399 * Makefile.in: Rebuilt.
3400 * Makefile.am (convert_source_files): Added IOConverter.java.
3401 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3403 (getDefaultDecodingClass): Canonicalize default encoding name.
3404 (getEncoder): Likewise.
3405 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3407 (getDefaultDecodingClass): Canonicalize default encoding name.
3408 (getDecoder): Likewise.
3409 * gnu/gcj/convert/IOConverter.java: New file.
3411 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3413 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3414 to match C declaration in ffi.h.
3415 * Makefile.am: Add java/awt/Button.java.
3416 * Makefile.in: Rebuilt.
3418 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3420 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3421 cast of the second argument to `ffi_raw_call' changed to match
3424 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3426 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3427 argument to `ffi_raw_call' changed to match prototype.
3429 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3431 * java/awt/Component.java (toString): Implemented.
3432 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3433 dispatchEvent() to dispatch the event.
3434 (removeImpl): Ditto.
3436 2000-07-30 Anthony Green <green@redhat.com>
3438 * java/awt/Component.java: Add treeLock object.
3439 (getTreeLock): Implement.
3440 (isShowing): Implement.
3442 2000-07-30 Tom Tromey <tromey@cygnus.com>
3444 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3446 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3448 * java/awt/Window.java (addNotify): Wrote.
3449 (addWindowListener): Wrote.
3451 (getWarningString): Wrote.
3452 (processEvent): Wrote.
3453 (processWindowEvent): Wrote.
3454 (removeWindowListener): Wrote.
3455 (show): Call validate(), setVisible().
3459 * java/awt/Toolkit.java (createWindow): Declare.
3461 * java/awt/Frame.java (addNotify): Use getToolkit to find
3464 * java/awt/Component.java (invalidate): Wrote.
3466 (getToolkit): Wrote.
3468 * java/awt/Container.java (addContainerListener): Removed
3470 (removeContainerListener): Likewise.
3472 (add(Component)): Use it.
3473 (add(String,Component)): Likewise.
3474 (add(Component,int)): Likewise.
3475 (add(Component,Object)): Likewise.
3476 (add(Component,Object,int)): Likewise.
3478 (getAlignmentX): Wrote.
3479 (getAlignmentY): Wrote.
3480 (getComponentAt): Wrote.
3481 (getMaximumSize): Wrote.
3482 (invalidate): Wrote.
3483 (list(PrintStream,int)): Wrote.
3484 (list(PrintWriter,int)): Wrote.
3485 (getMinimumSize): Wrote.
3486 (getPreferredSize): Wrote.
3487 (printComponents): Wrote.
3488 (processContainerEvent): Look at containerListener, not
3490 (remove): Added event processing and peer destruction.
3491 (removeAll): Use remove.
3492 (removeNotify): Wrote.
3494 (validateTree): Wrote.
3496 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3497 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3498 * java/awt/Container.java (addNotify): Don't create Container
3500 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3502 2000-07-30 Tom Tromey <tromey@cygnus.com>
3504 * java/awt/Container.java (remove(int)): Wrote.
3505 (remove(Component)): Wrote.
3506 (add(Component)): Wrote.
3507 (add(Component,int)): Wrote.
3509 (addNotify): Set our own peer.
3510 * java/awt/Scrollbar.java (listeners): Changed type.
3511 (Scrollbar): Don't initialize listeners.
3513 (setValue): Call setValues.
3514 (setMinimum): Likewise.
3515 (setMaxPriority): Likewise.
3516 (setVisibleAmount): Likewise.
3518 (setUnitIncrement): Forward to peer.
3519 (setLineIncrement): Call setUnitIncrement.
3520 (setPageIncrement): Call setBlockIncrement.
3521 (setBlockIncrement): Forward to peer.
3522 (addAdjustmentListener): Rewrote.
3523 (removeAdjustmentListener): Rewrote.
3524 (processAdjustmentEvent): Rewrote.
3525 (paramString): Wrote.
3526 * Makefile.in: Rebuilt.
3527 * Makefile.am (awt_java_source_files): Added Button.java.
3528 * java/awt/Button.java: New file.
3529 * java/awt/Toolkit.java (createLabel): Declare.
3530 (createButton): Likewise.
3531 (createScrollbar): Likewise.
3532 (createContainer): Likewise.
3533 * java/awt/Label.java (addNotify): Wrote.
3534 (setAlignment): Call setAlignment in the peer.
3535 (setText): Call setText in the peer.
3537 2000-07-28 Warren Levy <warrenl@cygnus.com>
3539 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3540 NotSerializableException with just the class name.
3542 2000-07-26 Andrew Haley <aph@cygnus.com>
3544 * interpret.cc (continue1): Insert missing break into switch.
3546 2000-07-28 Warren Levy <warrenl@cygnus.com>
3548 * java/io/ObjectStreamException.java: Made constructors protected.
3550 2000-07-27 Tom Tromey <tromey@cygnus.com>
3552 * java/io/OutputStreamWriter.java (close): Only flush if not
3555 2000-07-27 Warren Levy <warrenl@cygnus.com>
3557 * mauve-libgcj: Activated serialization tests.
3558 * gcj/field.h (getModifiers): Mask off unknown flags.
3559 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3560 spurious bits don't cause discrepancies.
3561 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3562 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3563 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3564 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3565 * java/lang/Throwable.java (serialVersionUID): New field.
3566 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3567 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3569 * java/lang/reflect/natMethod.cc: Ditto.
3570 * java/security/Key.java (serialVersionUID): Removed field for now.
3571 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3572 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3574 2000-07-22 Tom Tromey <tromey@cygnus.com>
3576 * java/awt/geom/RectangularShape.java (getPathIterator):
3579 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3581 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3582 stub libjava/java/awt/ColorModel.java which was located in the
3584 * libjava/java/awt/image/ComponentColorModel.java: New file.
3585 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3586 * libjava/java/awt/image/DataBuffer.java: New file.
3587 * libjava/java/awt/image/DataBufferByte.java: New file.
3588 * libjava/java/awt/image/DataBufferInt.java: New file.
3589 * libjava/java/awt/image/DataBufferUShort.java: New file.
3590 * libjava/java/awt/image/DirectColorModel.java: New file.
3591 * libjava/java/awt/image/PackedColorModel.java: New file.
3592 * libjava/java/awt/image/Raster.java: New file.
3593 * libjava/java/awt/image/SampleModel.java: New file.
3594 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3596 * libjava/java/awt/image/IndexColorModel.java: New file.
3597 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3598 java.awt.ColorModel stub.
3600 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3601 * gnu/gcj/util/Buffers.java: New file, utility class.
3603 * libjava/Makefile.am: Updated to include new files.
3604 * libjava/Makefile.in: Rebuilt.
3606 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3608 * java/io/StreamTokenizer.java: Merged with classpath.
3610 2000-07-20 Tom Tromey <tromey@cygnus.com>
3612 * Makefile.in: Rebuilt.
3613 * Makefile.am (awt_java_source_files): Updated for new files.
3614 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3615 * java/awt/Label.java: New file.
3616 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3617 (createIntersection, createUnion, getBounds2D): New methods.
3618 * java/awt/Scrollbar.java: New file.
3619 * java/awt/Shape.java: Updated to 1.2.
3620 * java/awt/geom/AffineTransform.java: New file.
3621 * java/awt/geom/Ellipse2D.java: New file.
3622 * java/awt/geom/NoninvertibleTransformException.java: New file.
3623 * java/awt/geom/PathIterator.java: New file.
3624 * java/awt/geom/Rectangle2D.java: New file.
3625 * java/awt/geom/RectangularShape.java: New file.
3626 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3627 * java/awt/geom/IllegalPathStateException.java: New file.
3629 * scripts/showval.java: New file.
3631 * scripts/classes.pl (scan): Print inner classes properly.
3632 * gcj/javaprims.h: Updated class list.
3634 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3635 initialize String fields for interpreted classes. Fixes bug
3636 reported by Hans Boehm.
3638 * java/io/File.java (getParentFile): New method, from Classpath
3639 via Oskar Liljeblad.
3641 * java/util/Vector.java (remove(Object)): Implemented.
3643 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3645 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3646 zero return from backtrace().
3648 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3650 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3652 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3653 before calling notifyAll().
3655 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3657 Add missing files from last check-in:
3658 * java/awt/image/ImageConsumer.java: New file.
3659 * java/awt/image/ImageProducer.java: New file.
3660 * java/awt/image/ImageObserver.java: New file.
3662 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3664 Merged implementation of java.applet from classpath:
3665 * java/applet/Applet.java: New file.
3666 * java/applet/AppletContext.java: New file.
3667 * java/applet/AppletStub.java: New file.
3668 * java/applet/AudioClip.java: New file.
3670 * Makefile.am: Added new java.applet classes.
3671 * Makefile.in: Rebuilt.
3673 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3676 * java/util/ResourceBundle.java (getLocale): stub.
3677 * Makefile.am: Added new AWT classes.
3678 * Makefile.in: Rebuilt.
3679 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3680 constructors. Fix toString() and paramString().
3681 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3682 * java/awt/CheckboxGroup.java: New class.
3683 * java/awt/ColorModel.java: New class.
3684 * java/awt/Component.java: Added stubs for most methods. Implemented
3686 * java/awt/Container.java: ditto.
3687 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3688 * java/awt/Cursor.java: ditto.
3689 * java/awt/Event.java: Fix paramString().
3690 * java/awt/EventQueue.java: New class. Implemented.
3691 * java/awt/Font.java: Added additional stub methods. Implemented
3693 * java/awt/FontMetrics.java: New class. Stubbed.
3694 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3696 * java/awt/Insets.java: New class. Implemented.
3697 * java/awt/Menu.java: Add new methods. Partially implemented.
3698 * java/awt/MenuItem.java: Add new methods and fields. Partially
3700 * java/awt/MenuShortcut.java: New class. Implemented.
3701 * java/awt/Panel.java: New class. Placeholder.
3702 * java/awt/PopupMenu.java: New class. Stubbed.
3703 * java/awt/Rectangle.java: New class. Implemented.
3704 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3705 * java/awt/event/ActionEvent.java: Implement paramString().
3706 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3707 * java/awt/event/ComponentEvent.java: Implement paramString().
3708 * java/awt/event/ContainerEvent.java: Implement paramString().
3709 * java/awt/event/FocusEvent.java: Implement paramString().
3710 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3711 * java/awt/event/HierarchyBoundsListener.java: New class.
3712 * java/awt/event/HierarchyEvent.java: New class.
3713 * java/awt/event/HierarchyListener.java: New class.
3714 * java/awt/event/InputMethodEvent.java: Implement paramString().
3715 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3716 exception if !catchExceptions.
3717 * java/awt/event/ItemEvent.java: Implement paramString().
3718 * java/awt/event/KeyEvent.java: Implement paramString().
3719 * java/awt/event/MouseEvent.java: Implement paramString().
3720 * java/awt/event/PaintEvent.java: Implement paramString().
3721 * java/awt/event/TextEvent.java: Implement paramString().
3722 * java/awt/event/WindowEvent.java: Implement paramString().
3724 AWT Peer interfaces:
3725 * java/awt/peer/ButtonPeer.java: New file.
3726 * java/awt/peer/ListPeer.java: New file.
3727 * java/awt/peer/CanvasPeer.java: New file.
3728 * java/awt/peer/MenuBarPeer.java: New file.
3729 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3730 * java/awt/peer/MenuComponentPeer.java: New file.
3731 * java/awt/peer/CheckboxPeer.java: New file.
3732 * java/awt/peer/MenuItemPeer.java: New file.
3733 * java/awt/peer/ChoicePeer.java: New file.
3734 * java/awt/peer/MenuPeer.java: New file.
3735 * java/awt/peer/ComponentPeer.java: Implemented.
3736 * java/awt/peer/PanelPeer.java: New file.
3737 * java/awt/peer/ContainerPeer.java: Implemented.
3738 * java/awt/peer/PopupMenuPeer.java: New file.
3739 * java/awt/peer/DialogPeer.java: New file.
3740 * java/awt/peer/ScrollPanePeer.java: New file.
3741 * java/awt/peer/FileDialogPeer.java: New file.
3742 * java/awt/peer/ScrollbarPeer.java: New file.
3743 * java/awt/peer/FontPeer.java: New file.
3744 * java/awt/peer/TextAreaPeer.java: New file.
3745 * java/awt/peer/FramePeer.java: Implemented.
3746 * java/awt/peer/TextComponentPeer.java: New file.
3747 * java/awt/peer/LabelPeer.java: New file.
3748 * java/awt/peer/TextFieldPeer.java: New file.
3749 * java/awt/peer/LightweightPeer.java: New file.
3750 * java/awt/peer/WindowPeer.java: Implemented.
3752 2000-07-06 Tom Tromey <tromey@cygnus.com>
3754 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3755 Initialize static final String fields.
3757 2000-07-03 Tom Tromey <tromey@cygnus.com>
3759 * java/io/PrintWriter.java (print): Call write(String), not
3760 print(String). See PR libgcj/277.
3761 (print(String)): Use write, not out.write.
3763 2000-06-30 Tom Tromey <tromey@cygnus.com>
3765 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3767 2000-06-27 Andrew Haley <aph@cygnus.com>
3769 * java/io/File.java (createTempFile): Close the FileDescriptor
3770 used to create a temp file. Fixes some of PR 203.
3771 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3772 collection if we run out of file handles.
3774 2000-06-28 Warren Levy <warrenl@cygnus.com>
3776 * gnu/java/security/provider/Gnu.java: New file.
3777 * gnu/java/security/provider/SHA.java: New file.
3778 * gnu/java/security/provider/SHA1PRNG.java: New file.
3779 * Makefile.am: Added the above files.
3780 * Makefile.in: Rebuilt.
3782 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3784 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3786 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3787 (destroyed_flag): Removed.
3788 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3789 (activeCount): Added spec note.
3791 2000-06-27 Warren Levy <warrenl@cygnus.com>
3793 * java/security/Principal.java: New file.
3794 * Makefile.am: Added Principal.java.
3795 * Makefile.in: Rebuilt.
3797 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3799 * java/awt/event/MouseEvent.java: Fixed coordinate space
3802 2000-06-27 Tom Tromey <tromey@cygnus.com>
3804 * java/io/PushbackInputStream.java (read): If there are characters
3805 in the buffer, don't also call super.read().
3806 * java/io/PushbackReader.java (read): If there are characters in
3807 the buffer, don't also call super.read().
3809 * java/lang/Double.java (valueOf): Call parseDouble().
3811 2000-06-26 Warren Levy <warrenl@cygnus.com>
3813 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3814 (newVal): Renamed to newValue.
3815 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3816 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3817 (revokeNow): Renamed to invalidateRefs.
3818 * java/io/OptionalDataException.java: Updated FIXME.
3819 (eof): New placeholder field.
3821 * java/io/WriteAbortedException.java (message): Made transient.
3822 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3823 * java/lang/Throwable.java (stackTrace): Made transient.
3824 * java/net/InetAddress.java: Made Serializable.
3825 * java/security/KeyPair.java: Made Serializable.
3826 * java/security/Provider.java: Replaced with Classpath version that
3827 implements serialization and proper methods.
3828 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3829 (limits): Renamed to choiceLimits.
3831 2000-06-24 Tom Tromey <tromey@cygnus.com>
3833 * java/lang/natDouble.cc (parseDouble): Renamed from
3835 * java/lang/Double.java (parseDouble): Renamed from
3836 doubleValueOf. Now public.
3838 2000-06-23 Andrew Haley <aph@cygnus.com>
3840 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3841 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3843 2000-06-23 Tom Tromey <tromey@cygnus.com>
3845 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3846 * java/lang/natDouble.cc: Always include <alloca.h>.
3847 Fix for PR libgcj/267.
3849 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3851 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3852 comply with classpath VM spec.
3853 (add(Group)): Rename to addGroup().
3854 * java/lang/Thread.java (Thread): Use addThread().
3855 * java/lang/natThread.cc (finish_): Use removeThread().
3857 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3859 * java/lang/ThreadGroup.java: Merged with classpath.
3860 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3861 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3863 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3864 ThreadGroup.root if Thread.currentThread is null. Honour the
3865 ThreadGroup's max priority setting.
3867 2000-06-18 Tom Tromey <tromey@cygnus.com>
3869 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3870 returned class. For PR gcj/260.
3872 2000-06-16 Tom Tromey <tromey@cygnus.com>
3874 Fix for PR libgcj/261:
3875 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3877 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3878 argument. (This is a patch from long ago that somehow went
3881 2000-06-15 Tom Tromey <tromey@cygnus.com>
3883 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3887 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3889 Fix for PR java.lang/258:
3890 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3891 JV_STATE_DONE, to prevent accidental initialization.
3892 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3893 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3894 interface or an abstract class. Remove redundant initializeClass calls.
3895 Remove duplicate if_idt test.
3896 (_Jv_InterfaceAssignableFrom): New function.
3897 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3899 2000-05-31 Tom Tromey <tromey@cygnus.com>
3901 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3902 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3903 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3904 (NUM_OBJECT_METHODS): New define.
3905 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3906 `array_vtable' parameter. Added assertion.
3907 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3910 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3912 * gcj/cni.h: Include <string.h>.
3913 * defineclass.cc: Include <alloca.h>.
3914 * interpret.cc: Ditto.
3915 * gij.cc: Include <stdlib.h>.
3917 2000-05-30 Tom Tromey <tromey@cygnus.com>
3919 * include/name-finder.h: Include <sys/wait.h>.
3920 (_Jv_name_finder::pid): Now of type `pid_t'.
3921 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3922 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3925 2000-05-24 Warren Levy <warrenl@cygnus.com>
3927 * java/io/ObjectOutputStream.java (writeObject): Use component type
3928 when writing arrays.
3931 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3933 Fix for PR libgcj/226:
3934 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3935 since this is an installed header.
3937 Fix for PR libgcj/228:
3938 * java/util/zip/ZipFile (getInputStream): Create inflater with
3941 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3942 with DataFormatException.
3944 2000-05-20 Tom Tromey <tromey@cygnus.com>
3946 * Makefile.in: Rebuilt.
3947 * Makefile.am (hack1): Removed.
3948 (awto_files): Likewise.
3949 (libgcjawt_la_SOURCES): Likewise.
3950 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3951 (libgcjawt_la_DEPENDENCIES): Likewise.
3952 (libgcjawt_la_LIBADD): Likewise.
3953 (libgcjawt_la_LDFLAGS): Likewise.
3954 (libgcjawt_la_LINK): Likewise.
3955 ($(awt_java_source_files:.java=.class)): Likewise.
3956 (libgcj.zip): Don't depend on AWT files.
3957 (MOSTLYCLEANFILES): Don't include AWT files.
3958 ($(awto_files)): Removed.
3959 (nat_headers): Removed AWT files.
3960 (cond_awt_java_source_files): Removed.
3961 (ordinary_java_source_files): Added awt_java_source_files.
3962 * libgcj.spec.in (*lib): Removed -lgcjawt.
3963 * configure: Rebuilt.
3964 * configure.in: Removed --enable-java-awt option.
3966 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3968 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3969 (ZipEntry): Copy the `name' field.
3970 (clone): Implement JDK1.2 method.
3971 (setCompressedSize): ditto.
3974 2000-05-19 Tom Tromey <tromey@cygnus.com>
3976 * java/io/BufferedWriter.java: Merged with Classpath.
3977 * java/io/BufferedOutputStream.java: Merged with Classpath.
3979 2000-05-16 Andrew Haley <aph@cygnus.com>
3981 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3982 build_ia64_frame_state.
3983 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3986 2000-05-15 Warren Levy <warrenl@cygnus.com>
3988 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3989 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3990 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3991 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3992 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3993 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3994 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3995 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3996 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3997 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3998 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3999 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4000 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4001 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4002 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4003 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4004 * gnu/gcj/io/NullOutputStream.java: Removed.
4005 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4006 * gnu/gcj/lang/ArrayHelper.java: Removed.
4007 * gnu/gcj/lang/ClassHelper.java: Removed.
4008 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4010 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4011 * gnu/java/beans/EmptyBeanInfo.java: New file.
4012 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4013 * gnu/java/beans/IntrospectionIncubator.java: New file.
4014 * gnu/java/beans/editors/ColorEditor.java: New file.
4015 * gnu/java/beans/editors/FontEditor.java: New file.
4016 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4017 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4018 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4019 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4020 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4021 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4022 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4023 * gnu/java/beans/editors/StringEditor.java: New file.
4024 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4025 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4026 * gnu/java/io/NullOutputStream.java: New file.
4027 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4028 * gnu/java/lang/ArrayHelper.java: New file.
4029 * gnu/java/lang/ClassHelper.java: New file.
4030 * gnu/java/lang/reflect/TypeSignature.java: New file.
4032 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4033 namespace back to the original Classpath gnu/java namespace.
4034 * Makefile.in: Rebuilt.
4036 * java/beans/Beans.java: Namespace change.
4037 * java/beans/EventSetDescriptor.java: Namespace change.
4038 * java/beans/Introspector.java: Namespace change.
4039 * java/beans/PropertyEditorManager.java: Namespace change.
4040 * java/io/ObjectInputStream.java: Namespace change.
4041 * java/io/ObjectOutputStream.java: Namespace change.
4042 * java/io/ObjectStreamClass.java: Namespace change.
4043 * java/io/ObjectStreamField.java: Namespace change.
4045 2000-04-21 Warren Levy <warrenl@cygnus.com>
4047 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4048 now that compiler patch is available.
4049 Removed unneeded System.loadLibrary.
4050 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4051 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4053 2000-04-19 Andrew Haley <aph@cygnus.com>
4055 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4056 and target classes have been initialized.
4058 2000-04-19 Andrew Haley <aph@cygnus.com>
4060 * java/lang/String.java: implement Serializable, Comparable.
4061 (compareTo (Object)): New method.
4063 2000-04-19 Warren Levy <warrenl@cygnus.com>
4065 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4066 instead of getField to retrieve non-public field.
4067 (getSerialPersistantFields): Ditto.
4069 2000-04-18 Warren Levy <warrenl@cygnus.com>
4071 * mauve-libgcj: Turned off object serialization tests temporarily
4072 due to compiler error.
4074 2000-04-17 Warren Levy <warrenl@cygnus.com>
4076 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4077 to avoid build problem.
4079 * mauve-libgcj: Turned on object serialization tests.
4081 2000-04-17 Tom Tromey <tromey@cygnus.com>
4083 * libgcj.spec.in (*lib): Added -lgcjawt.
4085 2000-04-17 Andrew Haley <aph@cygnus.com>
4087 * Makefile.am: Add new files:
4088 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4090 * Makefile.in: Rebuilt.
4092 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4093 interface that has no implementations.
4094 Check for an attempt to assign an abstract class to an interface.
4096 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4097 if we fail to find MessageDigest.getInstance ("SHA").
4099 * gnu/gcj/io/SimpleSHSStream.java: New file.
4100 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4101 * gnu/gcj/io/shs.cc: New file.
4102 * gnu/gcj/io/shs.h: new file.
4104 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4107 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4108 punctuation from the classname of an array element.
4110 * gcj/javaprims.h: Add SimpleDigestStream.
4112 2000-04-17 Andrew Haley <aph@cygnus.com>
4114 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4115 to getPrivateField for superclasses.
4117 2000-04-14 Andrew Haley <aph@cygnus.com>
4119 * Makefile.am: Add new files:
4120 java/io/ObjectOutputStream$PutField.h,
4121 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4122 java/io/natObjectOutputStream.cc
4123 * Makefile.in: Rebuilt.
4124 * gcj/Makefile.in: Rebuilt.
4125 * include/Makefile.in: Rebuilt.
4126 * java/lang/Class.h (getPrivateField): New method.
4127 (getPrivateMethod): Ditto.
4128 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4129 and java::io::ObjectStreamClass our friends.
4130 * java/lang/natClass.cc (getPrivateField): New method.
4131 (getPrivateMethod): Ditto.
4132 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4133 * gcj/javaprims.h: Add serialization classes.
4134 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4135 (setByteField): Ditto.
4136 (setCharField): Ditto.
4137 (setDoubleField): Ditto.
4138 (setFloatField): Ditto.
4139 (setIntField): Ditto.
4140 (setLongField): Ditto.
4141 (setShortField): Ditto.
4142 (setObjectField): Ditto.
4143 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4145 (getByteField): Ditto.
4146 (getCharField): Ditto.
4147 (getDoubleField): Ditto.
4148 (getFloatField): Ditto.
4149 (getIntField): Ditto.
4150 (getLongField): Ditto.
4151 (getShortField): Ditto.
4152 (getObjectField): Ditto.
4153 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4155 (getSerialPersistantFields): Ditto.
4156 (getDefinedSUID): Ditto.
4157 * java/io/natObjectOutputStream.cc: New file.
4158 * java/io/natObjectInputStream.cc: New file.
4160 2000-04-13 Warren Levy <warrenl@cygnus.com>
4162 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4163 problems. Revert to previous version to reproduce and when fixed.
4165 2000-04-13 Warren Levy <warrenl@cygnus.com>
4167 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4168 * gnu/gcj/io/NullOutputStream.java: New file.
4169 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4170 * java/io/BlockDataException.java: New file.
4171 * java/io/Externalizable.java: New file.
4172 * java/io/InvalidClassException.java: New file.
4173 * java/io/InvalidObjectException.java: New file.
4174 * java/io/NotActiveException.java: New file.
4175 * java/io/NotSerializableException.java: New file.
4176 * java/io/ObjectInput.java: New file.
4177 * java/io/ObjectInputStream.java: New file.
4178 * java/io/ObjectInputValidation.java: New file.
4179 * java/io/ObjectOutput.java: New file.
4180 * java/io/ObjectOutputStream.java: New file.
4181 * java/io/ObjectStreamClass.java: New file.
4182 * java/io/ObjectStreamConstants.java: New file.
4183 * java/io/ObjectStreamField.java: New file.
4184 * java/io/Replaceable.java: New file.
4185 * java/io/Resolvable.java: New file.
4186 * java/io/SerializablePermission.java: New file.
4187 * java/io/WriteAbortedException.java: New file.
4188 * java/security/BasicPermission.java: New file.
4189 * java/security/DigestOutputStream.java: New file.
4190 * java/security/Guard.java: New file.
4191 * java/security/Permission.java: New file.
4192 * java/security/PermissionCollection.java: New file.
4193 * Makefile.am: Added above files.
4194 * Makefile.in: Rebuilt.
4196 * java/beans/Beans.java (instantiate): Activated serialization code.
4197 * java/lang/SecurityManager.java (checkPermission): New method.
4199 2000-04-12 Warren Levy <warrenl@cygnus.com>
4201 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4202 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4203 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4204 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4205 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4206 * gnu/gcj/beans/editors/FontEditor.java: New file.
4207 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4208 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4209 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4210 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4211 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4212 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4213 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4214 * gnu/gcj/beans/editors/StringEditor.java: New file.
4215 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4216 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4217 * gnu/gcj/lang/ArrayHelper.java: New file.
4218 * gnu/gcj/lang/ClassHelper.java: New file.
4219 * java/beans/BeanDescriptor.java: New file.
4220 * java/beans/BeanInfo.java: New file.
4221 * java/beans/Beans.java: New file.
4222 * java/beans/Customizer.java: New file.
4223 * java/beans/DesignMode.java: New file.
4224 * java/beans/EventSetDescriptor.java: New file.
4225 * java/beans/FeatureDescriptor.java: New file.
4226 * java/beans/IndexedPropertyDescriptor.java: New file.
4227 * java/beans/IntrospectionException.java: New file.
4228 * java/beans/Introspector.java: New file.
4229 * java/beans/MethodDescriptor.java: New file.
4230 * java/beans/ParameterDescriptor.java: New file.
4231 * java/beans/PropertyChangeEvent.java: New file.
4232 * java/beans/PropertyChangeListener.java: New file.
4233 * java/beans/PropertyChangeSupport.java: New file.
4234 * java/beans/PropertyDescriptor.java: New file.
4235 * java/beans/PropertyEditor.java: New file.
4236 * java/beans/PropertyEditorManager.java: New file.
4237 * java/beans/PropertyEditorSupport.java: New file.
4238 * java/beans/PropertyVetoException.java: New file.
4239 * java/beans/SimpleBeanInfo.java: New file.
4240 * java/beans/VetoableChangeListener.java: New file.
4241 * java/beans/VetoableChangeSupport.java: New file.
4242 * java/beans/Visibility.java: New file.
4243 * java/beans/beancontext/BeanContext.java: New file.
4244 * java/beans/beancontext/BeanContextChild.java: New file.
4245 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4246 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4247 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4248 * java/beans/beancontext/BeanContextEvent.java: New file.
4249 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4250 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4251 * java/beans/beancontext/BeanContextProxy.java: New file.
4252 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4254 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4255 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4257 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4258 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4260 * java/beans/beancontext/BeanContextServices.java: New file.
4261 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4262 * java/util/AbstractCollection.java: New file.
4263 * java/util/AbstractList.java: New file.
4264 * java/util/Arrays.java: New file.
4265 * Makefile.am: Added above files.
4266 * Makefile.in: Rebuilt.
4268 2000-04-11 Warren Levy <warrenl@cygnus.com>
4270 * java/awt/AWTError.java: New file.
4271 * java/awt/AWTEvent.java: New file.
4272 * java/awt/AWTException.java: New file.
4273 * java/awt/ActiveEvent.java: New file.
4274 * java/awt/Adjustable.java: New file.
4275 * java/awt/BorderLayout.java: New file.
4276 * java/awt/Color.java: New file.
4277 * java/awt/Component.java: New file.
4278 * java/awt/Container.java: New file.
4279 * java/awt/Dimension.java: New file.
4280 * java/awt/Event.java: New file.
4281 * java/awt/Font.java: New file.
4282 * java/awt/Frame.java: New file.
4283 * java/awt/Graphics.java: New file.
4284 * java/awt/IllegalComponentStateException.java: New file.
4285 * java/awt/Image.java: New file.
4286 * java/awt/ItemSelectable.java: New file.
4287 * java/awt/LayoutManager.java: New file.
4288 * java/awt/LayoutManager2.java: New file.
4289 * java/awt/Menu.java: New file.
4290 * java/awt/MenuBar.java: New file.
4291 * java/awt/MenuComponent.java: New file.
4292 * java/awt/MenuContainer.java: New file.
4293 * java/awt/MenuItem.java: New file.
4294 * java/awt/Paint.java: New file.
4295 * java/awt/PaintContext.java: New file.
4296 * java/awt/Point.java: New file.
4297 * java/awt/Rectangle.java: New file.
4298 * java/awt/Shape.java: New file.
4299 * java/awt/TextArea.java: New file.
4300 * java/awt/TextComponent.java: New file.
4301 * java/awt/Toolkit.java: New file.
4302 * java/awt/Transparency.java: New file.
4303 * java/awt/Window.java: New file.
4304 * java/awt/natToolkit.cc: New file.
4305 * java/awt/event/AWTEventListener.java: New file.
4306 * java/awt/event/ActionEvent.java: New file.
4307 * java/awt/event/ActionListener.java: New file.
4308 * java/awt/event/AdjustmentEvent.java: New file.
4309 * java/awt/event/AdjustmentListener.java: New file.
4310 * java/awt/event/ComponentAdapter.java: New file.
4311 * java/awt/event/ComponentEvent.java: New file.
4312 * java/awt/event/ComponentListener.java: New file.
4313 * java/awt/event/ContainerAdapter.java: New file.
4314 * java/awt/event/ContainerEvent.java: New file.
4315 * java/awt/event/ContainerListener.java: New file.
4316 * java/awt/event/FocusAdapter.java: New file.
4317 * java/awt/event/FocusEvent.java: New file.
4318 * java/awt/event/FocusListener.java: New file.
4319 * java/awt/event/InputEvent.java: New file.
4320 * java/awt/event/InputMethodEvent.java: New file.
4321 * java/awt/event/InputMethodListener.java: New file.
4322 * java/awt/event/InvocationEvent.java: New file.
4323 * java/awt/event/ItemEvent.java: New file.
4324 * java/awt/event/ItemListener.java: New file.
4325 * java/awt/event/KeyAdapter.java: New file.
4326 * java/awt/event/KeyEvent.java: New file.
4327 * java/awt/event/KeyListener.java: New file.
4328 * java/awt/event/MouseAdapter.java: New file.
4329 * java/awt/event/MouseEvent.java: New file.
4330 * java/awt/event/MouseListener.java: New file.
4331 * java/awt/event/MouseMotionAdapter.java: New file.
4332 * java/awt/event/MouseMotionListener.java: New file.
4333 * java/awt/event/PaintEvent.java: New file.
4334 * java/awt/event/TextEvent.java: New file.
4335 * java/awt/event/TextListener.java: New file.
4336 * java/awt/event/WindowAdapter.java: New file.
4337 * java/awt/event/WindowEvent.java: New file.
4338 * java/awt/event/WindowListener.java: New file.
4339 * java/awt/geom/Dimension2D.java: New file.
4340 * java/awt/geom/Point2D.java: New file.
4341 * java/awt/peer/ComponentPeer.java: New file.
4342 * java/awt/peer/ContainerPeer.java: New file.
4343 * java/awt/peer/FramePeer.java: New file.
4344 * java/awt/peer/WindowPeer.java: New file.
4345 * java/util/Collection.java: New file.
4346 * java/util/Comparator.java: New file.
4347 * java/util/Iterator.java: New file.
4348 * java/util/List.java: New file.
4349 * java/util/ListIterator.java: New file.
4350 * Makefile.am: Added above files.
4351 * Makefile.in: Rebuilt.
4353 2000-04-10 Warren Levy <warrenl@cygnus.com>
4355 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4356 * java/lang/FirstThread.java: Ditto.
4357 * java/lang/StringBuffer.java: Ditto.
4358 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4360 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4361 Special case handled in java.math.BigInteger.
4362 * java/math/BigInteger.java (divide): Handle the special case when
4363 dividing by 1 and the high bit of the dividend is set.
4364 (setShiftRight): Handle case when count == 0.
4366 2000-04-05 Andrew Haley <aph@cygnus.com>
4368 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4371 2000-04-05 Andrew Haley <aph@cygnus.com>
4373 * sysdep/ia64.c (rse_address_add): Delete.
4374 (IS_NaT_COLLECTION_ADDR): Delete.
4375 (ia64_backtrace_helper): check for null unwind_info.
4377 * sysdep/ia64-frame.h: add calc_caller_bsp.
4379 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4382 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4383 (_Jv_remI): Likewise.
4384 (_Jv_divJ): Likewise.
4385 (_Jv_remJ): Likewise.
4387 * interpret.cc (continue1): Use divide subroutines to guarantee
4388 correct Java standard behaviour.
4389 Floating-point division should not abort; make it so.
4391 2000-03-29 Tom Tromey <tromey@cygnus.com>
4393 * configure: Rebuilt.
4394 * configure.in: Test against `libgcj_sjlj', not
4395 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4396 to be set even when using sjlj.
4398 2000-03-24 Andrew Haley <aph@cygnus.com>
4400 * Makefile.am: Add file addr2name.awk.
4401 * Makefile.in: Rebuilt.
4402 * addr2name.awk: New file.
4403 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4405 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4408 2000-03-22 Andrew Haley <aph@cygnus.com>
4410 * configure.host: Add -funwind-tables for IA64.
4411 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4412 * Makefile.in: Rebuilt.
4413 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4414 * sysdep/ia64.c: New file.
4415 * sysdep/ia64-frame.h: New file.
4416 * configure.in: Add sysdep/ia64.c for ia64.
4417 * configure: Rebuilt.
4419 2000-03-17 Andrew Haley <aph@cygnus.com>
4421 * java/lang/natString.cc: Remove `register' keyword.
4422 interpret.cc: ditto.
4424 2000-03-16 Andrew Haley <aph@cygnus.com>
4426 * configure.host (ia64): Enable interpreter.
4428 2000-03-14 Hans Boehm <boehm@acm.org>
4430 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4432 2000-03-14 Andrew Haley <aph@cygnus.com>
4434 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4437 2000-03-10 Andrew Haley <aph@cygnus.com>
4439 * java/lang/ieeefp.h: Import latest version from fdlibm.
4441 2000-03-14 Andrew Haley <aph@cygnus.com>
4443 * prims.cc (_Jv_ThrowSignal): New function.
4444 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4446 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4447 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4448 * include/ppc-signal.h: New file.
4450 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4452 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4453 * java/lang/natThread.java (initialize_native): Cast `data' to
4455 * gnu/gcj/RawData.java: Clarify documentation.
4457 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4458 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4459 `jarFile', not `jarFileURL'.
4461 2000-05-15 Andrew Haley <aph@cygnus.com>
4463 * include/ppc-signal.h: New file.
4465 2000-05-11 Tom Tromey <tromey@cygnus.com>
4467 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4468 file headers, don't include `size' in the skip call.
4470 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4472 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4473 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4475 (replace): Reimplemented. Fix javadoc.
4476 (reverse): Call ensureCapacity_unsynchronized().
4477 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4479 (replace): Calculate length for arraycopy() correctly.
4481 2000-05-09 Tom Tromey <tromey@cygnus.com>
4483 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4485 (insert(int,char[],int,int): New method.
4486 (delete): New method from Classpath.
4487 (deleteCharAt): Likewise.
4488 (substring): Likewise.
4489 (shared): No longer private.
4490 Added JavaDoc comments from Classpath.
4491 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4494 2000-05-07 Tom Tromey <tromey@cygnus.com>
4496 * Makefile.in: Rebuilt.
4497 * Makefile.am (LIBLINK): New macro.
4498 (libgcj_la_LINK): Use it.
4499 (libgcjawt_la_LINK): Likewise.
4501 2000-05-06 Tom Tromey <tromey@cygnus.com>
4503 * Makefile.in: Rebuilt.
4504 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4506 2000-05-05 Tom Tromey <tromey@cygnus.com>
4508 Fix for PR libgcj/220:
4509 * Makefile.in: Rebuilt.
4510 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4511 (jv_convert_LDFLAGS): Likewise.
4512 (libgcj_la_LDFLAGS): Likewise.
4513 (GCJLINK): New macro.
4514 (jv_convert_LINK): Use it.
4515 (gij_LINK): Likewise.
4516 (libgcj_la_LINK): New macro.
4517 (libgcjawt_la_LINK): Likewise.
4519 2000-05-04 Tom Tromey <tromey@cygnus.com>
4521 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4523 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4527 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4529 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4530 (_Jv_IsAssignableFrom): Ditto.
4531 (_Jv_IsInstanceOf): Ditto.
4532 (_Jv_CheckCast): Ditto.
4533 (_Jv_CheckArrayStore): Ditto.
4534 * java/lang/Class.h (_Jv_InitClass): Ditto.
4535 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4540 (_Jv_MonitorExit): Ditto.
4541 * boehm.cc (_Jv_MarkObj): Ditto.
4542 (_Jv_MarkObj): Ditto.
4543 (_Jv_MarkArray): Ditto.
4544 * prims.cc (_Jv_AllocObject): Ditto.
4545 (_Jv_NewObjectArray): Ditto.
4546 (_Jv_NewPrimArray): Ditto.
4547 (_Jv_Malloc): Ditto.
4548 (_Jv_Realloc): Ditto.
4549 (_Jv_MallocUnchecked): Ditto.
4555 2000-05-04 Tom Tromey <tromey@cygnus.com>
4557 * java/util/Locale.java (Locale): Don't explicitly check for
4559 * java/util/Hashtable.java (containsKey): Don't explicitly check
4562 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4564 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4566 * java/text/StringCharacterIterator.java
4567 (StringCharacterIterator): Don't check for null.
4568 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4570 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4571 check for null pointer.
4572 (leaveGroup): Likewise.
4573 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4575 (setData): Likewise.
4576 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4579 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4581 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4582 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4583 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4584 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4585 -rpath for in-gcc builds.
4586 * Makefile.in: Rebuilt.
4588 2000-04-28 Tom Tromey <tromey@cygnus.com>
4590 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4593 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4595 * libjava/java/lang/String.java (toString): Remove `final' hack.
4597 2000-04-05 Tom Tromey <tromey@cygnus.com>
4599 Runtime support for PR gcj/2:
4600 * prims.cc (_Jv_ThrowNullPointerException): New function.
4601 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4603 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4605 * prims.cc (_Jv_NewObjectArray): Fix typo.
4607 2000-04-26 Tom Tromey <tromey@cygnus.com>
4609 * Makefile.in: Rebuilt.
4610 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4612 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4614 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4617 2000-04-22 Anthony Green <green@cygnus.com>
4619 * include/jvm.h (__builtin_expect): Define as unused for now.
4620 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4624 (_Jv_MonitorExit): Ditto.
4625 * boehm.cc (_Jv_MarkObj): Ditto.
4626 (_Jv_MarkObj): Ditto.
4627 (_Jv_MarkArray): Ditto.
4628 (_Jv_AllocBytes): Ditto.
4629 * prims.cc (_Jv_AllocObject): Ditto.
4630 (_Jv_NewObjectArray): Ditto.
4631 (_Jv_NewPrimArray): Ditto.
4632 (_Jv_Malloc): Ditto.
4633 (_Jv_Realloc): Ditto.
4634 (_Jv_MallocUnchecked): Ditto.
4640 * include/Makefile.in: Rebuilt.
4641 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4643 2000-04-21 Tom Tromey <tromey@cygnus.com>
4645 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4646 Yet another new version from Classpath.
4648 Fix for PR libgcj/15:
4649 * java/util/natGregorianCalendar.cc (_REENTRANT,
4650 _POSIX_PTHREAD_SEMANTICS): Don't define.
4651 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4652 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4654 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4656 * configure: Rebuilt.
4657 * configure.in: If using POSIX threads, define _REENTRANT if
4658 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4659 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4661 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4662 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4663 version from Classpath.
4665 Fix for PR libgcj/213:
4666 * Makefile.in: Rebuilt.
4667 * Makefile.am (gij_SOURCES): Added gij.cc.
4668 (EXTRA_gij_SOURCES): Removed.
4669 (gij_LDADD): Removed gij.lo.
4670 (gij_DEPENDENCIES): Likewise.
4671 ($(gij_OBJECTS)): Depend on nat_headers.
4673 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4674 `setURL', not `url.set'.
4676 2000-04-20 Tom Tromey <tromey@cygnus.com>
4678 Fix for PR java.io/204:
4679 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4680 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4683 Fix for PR libgcj/212:
4684 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4685 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4686 * java/lang/Class.h (_Jv_word): Declare.
4688 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4690 2000-04-19 Tom Tromey <tromey@cygnus.com>
4692 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4693 doesn't have a loader.
4695 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4697 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4698 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4700 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4702 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4704 (available): Initialize `where' to prevent bogus compiler warning.
4706 2000-04-12 Tom Tromey <tromey@cygnus.com>
4708 * java/lang/natString.cc (intern): Temporarily disable finalizer
4711 * java/lang/natString.cc (unintern): Added `obj' argument.
4712 (intern): Register finalizer for string.
4713 * java/lang/String.java (unintern): Now static; added obj
4716 2000-04-11 Tom Tromey <tromey@cygnus.com>
4718 * java/util/Vector.java (VectorEnumeration): Now `final'.
4719 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4720 (HashtableEnumeration): Likewise.
4721 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4722 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4724 2000-04-10 Warren Levy <warrenl@cygnus.com>
4726 * java/io/ObjectStreamException.java: New file.
4727 * java/io/OptionalDataException.java: New file.
4728 * java/io/StreamCorruptedException.java: New file.
4729 * java/math/BigDecimal.java: New file.
4730 * java/sql/CallableStatement.java: New file.
4731 * java/sql/Connection.java: New file.
4732 * java/sql/DataTruncation.java: New file.
4733 * java/sql/DatabaseMetaData.java: New file.
4734 * java/sql/Date.java: New file.
4735 * java/sql/Driver.java: New file.
4736 * java/sql/DriverManager.java: New file.
4737 * java/sql/DriverPropertyInfo.java: New file.
4738 * java/sql/PreparedStatement.java: New file.
4739 * java/sql/ResultSet.java: New file.
4740 * java/sql/ResultSetMetaData.java: New file.
4741 * java/sql/SQLException.java: New file.
4742 * java/sql/SQLWarning.java: New file.
4743 * java/sql/Statement.java: New file.
4744 * java/sql/Time.java: New file.
4745 * java/sql/Timestamp.java: New file.
4746 * java/sql/Types.java: New file.
4747 * Makefile.am: Added above new files.
4748 * Makefile.in: Rebuilt.
4750 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4751 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4752 DatagramSocket constructor instead of null.
4754 2000-04-08 Anthony Green <green@cygnus.com>
4756 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4759 2000-04-08 Anthony Green <green@cygnus.com>
4761 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4762 (_Jv_MutexUnlock): Ditto.
4763 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4764 (_Jv_MutexUnlock): Ditto.
4766 2000-04-08 Anthony Green <green@cygnus.com>
4768 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4769 (ensureCapacity_unsynchronized): New private method.
4770 (append): Use ensureCapacity_unsynchronized.
4772 2000-04-08 Tom Tromey <tromey@cygnus.com>
4774 * Makefile.in: Rebuilt.
4775 * Makefile.am (awt_java_source_files): Added new files.
4776 * java/awt/IllegalComponentStateException.java: New file.
4777 * java/awt/ItemSelectable.java: New file.
4778 * java/awt/event/WindowEvent.java: Finished.
4779 * java/awt/event/TextEvent.java: Finished.
4780 * java/awt/event/ContainerEvent.java: New file.
4781 * java/awt/Component.java (getX, getY): New methods.
4782 * java/awt/event/PaintEvent.java: New file.
4783 * java/awt/event/MouseEvent.java: New file.
4784 * java/awt/ActiveEvent.java: New file.
4785 * java/awt/event/KeyEvent.java: Finished.
4786 * java/awt/event/ItemEvent.java: New file.
4787 * java/awt/Adjustable.java: New file.
4788 * java/awt/event/InputMethodEvent.java: New file.
4789 * java/awt/event/InputEvent.java: Finished.
4790 * java/awt/event/FocusEvent.java: New file.
4791 * java/awt/event/MouseMotionAdapter.java: New file.
4792 * java/awt/event/MouseAdapter.java: New file.
4793 * java/awt/event/KeyAdapter.java: New file.
4794 * java/awt/event/FocusAdapter.java: New file.
4795 * java/awt/event/ContainerAdapter.java: New file.
4796 * java/awt/event/ComponentEvent.java: Finished.
4797 * java/awt/event/AdjustmentEvent.java: New file.
4798 * java/awt/event/ComponentAdapter.java: New file.
4799 * java/awt/event/ActionEvent.java: Finished.
4800 * java/awt/event/MouseMotionListener.java: New file.
4801 * java/awt/event/MouseListener.java: New file.
4802 * java/awt/event/ItemListener.java: New file.
4803 * java/awt/event/InputMethodListener.java: New file.
4804 * java/awt/event/ContainerListener.java: New file.
4805 * java/awt/event/FocusListener.java: New file.
4806 * java/awt/event/ComponentListener.java: New file.
4807 * java/awt/event/AWTEventListener.java: New file.
4808 * java/awt/event/AdjustmentListener.java: New file.
4810 2000-04-08 Anthony Green <green@cygnus.com>
4812 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4813 check when we have to.
4815 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4818 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4821 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4822 inline hasMoreElements.
4824 2000-04-05 Tom Tromey <tromey@cygnus.com>
4826 * configure: Rebuilt.
4827 * configure.in: Recognize --enable-java-awt.
4828 (AWT): New conditional.
4829 * Makefile.in: Rebuilt.
4830 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4832 (libgcjawt_la_SOURCES): New macro.
4833 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4834 (libgcjawt_la_DEPENDENCIES): Likewise.
4835 (libgcjawt_la_LIBADD): Likewise.
4836 (libgcjawt_la_LDFLAGS): Likewise.
4837 (libgcj.zip): Depend on cond_java_awt_source_files
4838 (cond_awt_java_source_files): New macro.
4839 (MOSTLYCLEANFILES): Added awto_files.
4840 (awto_files): New macro. Use where javao_files used.
4841 (nat_headers): Use cond_awt_java_source_files.
4843 2000-04-04 Tom Tromey <tromey@cygnus.com>
4845 * Makefile.in: Rebuilt.
4846 * Makefile.am (awt_java_source_files): Added AWTException.java.
4847 * java/awt/AWTException.java: New file.
4849 2000-04-03 Tom Tromey <tromey@cygnus.com>
4851 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4852 commentary from Alex.
4854 * Makefile.in: Rebuilt.
4855 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4858 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4860 * configure: Rebuilt.
4861 * configure.in: Add --disable-jvmpi.
4862 * include/config.h.in: Rebuilt.
4863 * acconfig.h: Add ENABLE_JVMPI.
4865 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4866 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4867 (_Jv_JVMPI_Notify_THREAD_END): New define.
4868 (_Jv_JVMPI_Notify_THREAD_END): New define.
4869 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4870 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4871 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4873 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4876 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4877 (finish_): Generate JVMPI thread end events.
4878 (run_): Generate JVMPI thread start events.
4879 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4880 preloaded JNI library.
4881 Include JVMPI headers if necessary.
4882 (run): Generate JVMPI thread start events.
4884 * boehm.cc: Define GC_disable and GC_enable.
4885 (_Jv_DisableGC): New function.
4886 (_Jv_EnableGC): New function.
4887 (disable_gc_mutex): Declare.
4888 * nogc.cc (_Jv_DisableGC): New function.
4889 (_Jv_EnableGC): New function.
4891 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4892 (_Jv_JVMPI_Interface): Define.
4893 (jvmpiEnableEvent): New function.
4894 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4896 * include/jvmpi.h: New file.
4898 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4900 * Makefile.in: New #defines and friends for Thread.h.
4901 * Makefile.am: Ditto.
4902 * posix-threads.cc: (struct starter): Remove `object'.
4903 (_Jv_CondWait): Use interruptable condition variables and new
4904 recursive mutexes. New return codes on interrupt or non-ownership
4906 (_Jv_CondNotify): Ditto.
4907 (_Jv_CondNotifyAll): Ditto.
4908 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4909 the target thread by signaling its wait condition.
4910 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4911 not the starter struct. Initialize wait_mutex and wait_cond.
4912 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4914 (_Jv_MutexUnlock): Ditto.
4915 (really_start): Set info->data->thread from pthread_self() to work
4916 around a race condition. Destroy wait_mutex and wait_cond when run()
4918 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4919 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4921 startable_flag: New private field.
4922 (Thread): Initialize `startable_flag'.
4923 (toString): Check for null thread group.
4924 * java/lang/natThread.cc: (struct natThread): New fields
4925 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4926 (class locker): Removed.
4927 (initialize_native): Initialize `join_cond' and `join_mutex'.
4928 (interrupt): Now just calls _Jv_ThreadInterrupt().
4929 (join): Simplified. Just wait on the target thread's join condition.
4930 (finish_): Remove join list code. Unset thread group. Signal
4931 potential joiners by notifying the dying threads join_cond.
4932 (start): Check for illegal restarts.
4933 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4935 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4936 #defines and #ifdefs.
4937 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4938 `wait_mutex', `next'.
4939 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4940 directly mapping to pthread_cond_t.
4941 (struct _Jv_Mutex_t): New recursive implementation.
4942 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4943 _Jv_HaveCondDestroy: Never define this for posix-threads.
4944 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4945 (_Jv_CondNotifyAll): Ditto.
4946 (_Jv_MutexLock): Ditto.
4947 (_Jv_MutexUnlock): Ditto.
4948 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4949 (_Jv_MutexDestroy): Ditto.
4950 (_Jv_CondDestroy): Removed.
4951 (_Jv_PthreadGetMutex): Removed.
4952 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4953 error. Add a FIXME about this.
4954 (_Jv_CondNotifyAll): Ditto.
4955 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4956 _JV_NOT_OWNER on other errors. Add FIXME.
4958 2000-03-26 Tom Tromey <tromey@cygnus.com>
4960 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4962 (call): Don't throw exception here.
4964 2000-03-26 Tom Tromey <tromey@cygnus.com>
4966 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4967 * interpret.cc: Use SIZEOF_VOID_P.
4968 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4969 (_Jv_loadLong): Likewise.
4970 (_Jv_storeDouble): Likewise.
4971 * configure: Rebuilt.
4972 * configure.in: Check size of void*.
4974 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4976 2000-03-26 Hans Boehm <boehm@acm.org>
4978 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4979 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4981 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4982 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4983 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4984 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4986 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4987 (FFI_RAW_SIZE): Likewise.
4988 (_Jv_InterpMethod::ncode): Use them.
4989 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4990 STORED): Define differently on a 64 bit machine.
4991 (continue1): Use ffi_java_raw_call when appropriate.
4993 2000-03-24 Warren Levy <warrenl@cygnus.com>
4995 * java/math/BigInteger.java(divide): Handle the special case when
4996 dividing by 1 and the high bit of the dividend is set.
4997 (setShiftRight): Handle case when count == 0.
4999 2000-03-24 Warren Levy <warrenl@cygnus.com>
5001 * java/awt/Font.java(isBold): Fix syntax error.
5003 * java/awt/Frame.java(postEvent): ditto.
5004 * java/awt/Menu.java(postEvent): ditto.
5005 * java/awt/MenuBar.java(postEvent): ditto.
5006 * java/awt/Toolkit.java(init): Included a stub.
5008 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5010 * java/awt/Event.java: Add all the event type constants.
5011 (Event): Implemented constructors.
5012 (controlDown): Implemented.
5013 (metaDown): Implemented.
5014 (paramString): Stubbed.
5015 (shiftDown): Implemented.
5016 (toString): Implemented.
5017 (translate): Implemented.
5019 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5021 * java/lang/natClass.cc (isInstance): Initialize `this'.
5022 (isAssignableFrom): Initialize `this' and `klass'.
5023 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5024 implemented by any loaded class, so return false.
5025 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5026 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5028 2000-03-19 Warren Levy <warrenl@cygnus.com>
5030 * java/awt/Color.java: Specified java.io for Serializable.
5031 * java/awt/Toolkit.java: Imported java.net.URL.
5033 2000-03-19 Warren Levy <warrenl@cygnus.com>
5035 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5037 2000-03-16 Warren Levy <warrenl@cygnus.com>
5039 * java/awt/Color.java: New file.
5040 * java/awt/Graphics.java: New file.
5041 * java/awt/Image.java: New file.
5042 * java/awt/Paint.java: New file.
5043 * java/awt/PaintContext.java: New file.
5044 * java/awt/Transparency.java: New file.
5045 * java/util/Collection.java: New file.
5046 * java/util/Comparator.java: New file.
5047 * java/util/Iterator.java: New file.
5048 * java/util/List.java: New file.
5049 * java/util/ListIterator.java: New file.
5050 * Makefile.am: Added above new files.
5051 * Makefile.in: Rebuilt.
5053 * java/awt/Font.java (PLAIN): New field.
5055 (ITALIC): New field.
5056 (ROMAN_BASELINE): New field.
5057 (CENTER_BASELINE): New field.
5058 (HANGING_BASELINE): New field.
5062 (pointSize): New field.
5063 (Font): Implemented constructor.
5064 (isPlain): Implemented method.
5065 (isBold): Implemented method.
5066 (isItalic): Implemented method.
5067 (getName): Implemented method.
5068 (getStyle): Implemented method.
5069 (getSize): Implemented method.
5070 (getSize2D): Implemented method.
5072 * java/awt/Frame.java (getFont): Stubbed.
5073 (postEvent): Stubbed.
5075 * java/awt/Menu.java (postEvent): Stubbed.
5076 * java/awt/MenuBar.java (getFont): Stubbed.
5077 (postEvent): Stubbed.
5078 * java/awt/Toolkit.java (getImage): Added abstract method.
5080 2000-03-15 Tom Tromey <tromey@cygnus.com>
5082 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5084 * prims.cc (win32_exception_handler): Reformatted.
5086 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5087 (_Jv_HaveMutexDestroy): Likewise.
5089 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5091 * java/io/natFileDescriptorWin32.cc: New file.
5092 * java/io/natFileWin32.cc: New file.
5093 * java/net/natInetAddress.cc: Added conditional inclusion of
5094 Windows / Winsock headers.
5095 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5096 inclusion of Windows / Winsock headers.
5097 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5098 Windows / Winsock headers.
5099 * include/win32-signal.h: New file.
5100 * include/win32-threads.h: New file.
5101 * win32-threads.cc: New file.
5102 * exception.cc (win32_get_restart_frame): New function.
5103 * prims.cc (win32_exception_handler): New function.
5104 (main_init) Performs Winsock initialisation.
5105 (main_init) Installs exeception handler.
5107 2000-03-14 Tom Tromey <tromey@cygnus.com>
5109 * jni.cc (mangled_name): Fixed assertion.
5110 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5111 turned assert into actual failure.
5113 2000-03-09 Warren Levy <warrenl@cygnus.com>
5115 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5116 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5117 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5119 2000-03-09 Warren Levy <warrenl@cygnus.com>
5121 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5122 * java/security/DigestException.java: New file.
5123 * java/security/GeneralSecurityException.java: New file.
5124 * java/security/InvalidAlgorithmParameterException.java: New file.
5125 * java/security/InvalidKeyException.java: New file.
5126 * java/security/InvalidParameterException.java: New file.
5127 * java/security/Key.java: New file.
5128 * java/security/KeyException.java: New file.
5129 * java/security/KeyPair.java: New file.
5130 * java/security/KeyPairGenerator.java: New file.
5131 * java/security/KeyPairGeneratorSpi.java: New file.
5132 * java/security/NoSuchProviderException.java: New file.
5133 * java/security/PrivateKey.java: New file.
5134 * java/security/Provider.java: New file.
5135 * java/security/PublicKey.java: New file.
5136 * java/security/SecureRandom.java: New file.
5137 * java/security/Security.java: New file.
5138 * java/security/Signature.java: New file.
5139 * java/security/SignatureException.java: New file.
5140 * java/security/interfaces/DSAKey.java: New file.
5141 * java/security/interfaces/DSAParams.java: New file.
5142 * java/security/interfaces/DSAPrivateKey.java: New file.
5143 * java/security/interfaces/DSAPublicKey.java: New file.
5144 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5145 * java/security/interfaces/RSAPrivateKey.java: New file.
5146 * java/security/interfaces/RSAPublicKey.java: New file.
5147 * java/security/spec/AlgorithmParameterSpec.java: New file.
5148 * java/security/spec/InvalidKeySpecException.java: New file.
5149 * java/security/spec/InvalidParameterSpecException.java: New file.
5150 * java/security/spec/KeySpec.java: New file.
5151 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5152 * java/security/spec/RSAPrivateKeySpec.java: New file.
5153 * java/security/spec/RSAPublicKeySpec.java: New file.
5154 * Makefile.am: Added above java.security files.
5155 * Makefile.in: Rebuilt.
5157 * java/security/MessageDigest.java: Rewritten.
5158 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5160 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5164 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5166 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5167 _Jv_PrepareConstantTimeTables.
5168 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5169 classes should have an IDT, so don't return if klass is an array
5172 2000-03-08 Tom Tromey <tromey@cygnus.com>
5174 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5175 of `void' to be created.
5177 2000-03-08 Warren Levy <warrenl@cygnus.com>
5179 * java/math/BigInteger.java(signum): Handle zero properly.
5181 2000-03-07 Tom Tromey <tromey@cygnus.com>
5183 * All files: Updated copyright information.
5184 * COPYING: New file.
5185 * COPYING.LIB: Removed.
5186 * LIBGCJ_LICENSE: We now use GPL + special exception.
5188 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5190 * resolve.cc (_Jv_SearchMethodInClass): New function.
5191 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5192 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5194 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5196 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5197 (struct _Jv_ifaces): New declaration.
5198 JV_CLASS: New macro definition.
5199 (getComponentType): Relocate below isArray() for inlining.
5200 (getModifiers): Declare `inline'.
5201 (getSuperclass): Ditto.
5203 (isPrimitive): Ditto.
5204 (_Jv_IsAssignableFrom): New prototype.
5205 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5207 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5208 Check for JV_STATE_DONE before invoking initializeClass().
5209 (_Jv_PrepareConstantTimeTables): New prototype.
5210 (_Jv_GetInterfaces): Ditto.
5211 (_Jv_GenerateITable): Ditto.
5212 (_Jv_GetMethodString): Ditto.
5213 (_Jv_AppendPartialITable): Ditto.
5214 (_Jv_FindIIndex): Ditto.
5215 depth, ancestors, idt: New class fields.
5217 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5218 inline function `_Jv_IsAssignableFrom'. Use that function.
5219 (isInstance): Declare `inline'.
5220 (initializeClass): Get lock on class before checking `state'. Unlock
5221 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5223 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5224 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5225 class->depth and ancestor table.
5226 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5227 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5228 _Jv_IsAssignableFrom.
5229 (_Jv_CheckArrayStore): Ditto.
5230 (_Jv_LookupInterfaceMethodIdx): New function.
5231 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5232 (_Jv_PrepareConstantTimeTables): New function.
5233 (_Jv_IndexOf): Ditto.
5234 (_Jv_GetInterfaces): Ditto.
5235 (_Jv_GenerateITable): Ditto.
5236 (_Jv_GetMethodString): Ditto.
5237 (_Jv_AppendPartialITable): Ditto.
5238 iindex_mutex, iindex_mutex_initialized: New static fields.
5239 (_Jv_FindIIndex): New function.
5241 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5243 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5244 (_Jv_CheckArrayStore): Ditto.
5245 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5246 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5247 Moved to gcj/array.h.
5248 (_Jv_Realloc): New function.
5250 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5252 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5253 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5254 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5255 JvNewDoubleArray): Implementations moved from prims.cc and
5258 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5260 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5262 2000-03-06 Tom Tromey <tromey@cygnus.com>
5264 * jni.cc (MARK_NONE): New define.
5265 (MARK_USER): Likewise.
5266 (MARK_SYSTEM): Likewise.
5267 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5269 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5270 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5271 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5272 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5274 (call): Use MARK_SYSTEM.
5275 (_Jv_GetJNIEnvNewFrame): New function.
5276 (_Jv_LookupJNIMethod): New function.
5277 (_Jv_JNI_PopSystemFrame): New function.
5278 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5280 2000-03-05 Tom Tromey <tromey@cygnus.com>
5282 Fix for PR libgcj/43:
5283 * include/Makefile.in: Rebuilt.
5284 * include/Makefile.am (include_HEADERS): New define.
5286 2000-03-05 Anthony Green <green@redhat.com>
5288 * gcj/javaprims.h ("Java"): Remove FirstThread.
5290 * configure.host: Fix __NO_MATH_INLNES botch.
5292 * Makefile.in: Rebuilt.
5293 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5294 (gnu/gcj/runtime/FirstThread.h): Moved.
5295 (ordinary_java_source_files): Move FirstThread.java.
5296 * prims.cc: Deal with FirstThread movement.
5298 (_Jv_RunMain): Ditto.
5300 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5301 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5303 2000-03-05 Warren Levy <warrenl@cygnus.com>
5305 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5306 Handle null addresses.
5308 2000-03-04 Anthony Green <green@redhat.com>
5310 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5313 2000-03-04 Anthony Green <green@redhat.com>
5315 * configure: Rebuilt.
5316 * configure.in (ZLIBTESTSPEC): New macro.
5317 (GCTESTSPEC): New macro.
5318 (LIBGCJTESTSPEC): New macro.
5319 * libgcj-test.spec.in: New file.
5321 2000-03-02 Tom Tromey <tromey@cygnus.com>
5323 * include/java-interp.h: Don't include MethodInvocation.h.
5324 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5325 * Makefile.in: Rebuilt.
5326 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5327 (ordinary_java_source_files): Don't mention
5328 MethodInvocation.java.
5329 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5330 * interpret.cc (MethodInvocation::continue1): Removed.
5331 (run): Handle exceptions here.
5332 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5334 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5336 (defineClass2): Removed.
5338 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5340 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5342 (hack_call): Removed.
5344 * java/lang/Class.h (Class): Removed hackRunInitializers,
5346 * java/lang/natClass.cc (hackRunInitializers): Removed.
5347 (initializeClass): Catch exceptions here.
5348 Include ExceptionInInitializerError.h.
5349 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5352 * java/lang/Object.h (Object): Don't mention hack12_6.
5353 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5355 * java/lang/Object.java (hack12_6): Removed.
5357 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5358 (start): Use run_, not run__.
5359 * java/lang/Thread.java (run_): Renamed from run__; old run_
5362 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5363 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5364 (_Jv_JNI_DefineClass): Likewise.
5365 (_Jv_JNI_ThrowNew): Likewise.
5366 (_Jv_JNI_AllocObject): Likewise.
5367 (_Jv_JNI_GetAnyMethodID): Likewise.
5368 (_Jv_JNI_CallAnyMethodV): Likewise.
5369 (_Jv_JNI_CallAnyMethodA): Likewise.
5370 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5371 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5372 (_Jv_JNI_GetAnyFieldID): Likewise.
5373 (_Jv_JNI_NewString): Likewise.
5374 (_Jv_JNI_NewStringUTF): Likewise.
5375 (_Jv_JNI_GetStringUTFChars): Likewise.
5376 (_Jv_JNI_NewObjectArray): Likewise.
5377 (_Jv_JNI_NewPrimitiveArray): Likewise.
5378 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5379 (_Jv_JNI_GetStringRegion): Likewise.
5380 (_Jv_JNI_GetStringUTFRegion): Likewise.
5381 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5382 (_Jv_JNI_MonitorEnter): Likewise.
5383 (_Jv_JNI_MonitorExit): Likewise.
5384 (_Jv_JNI_ToReflectedField): Likewise.
5385 (_Jv_JNI_ToReflectedMethod): Likewise.
5386 (_Jv_JNI_RegisterNatives): Likewise.
5387 (_Jv_JNI_AttachCurrentThread): Likewise.
5388 (_Jv_JNI_DestroyJavaVM): Likewise.
5390 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5392 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5393 error caused by the incorrect casting of a long to an int.
5395 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5397 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5398 SIGSEV caused by use of the wrong instance variable.
5400 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5402 * java/io/File.java (File(String, String)): For dirPath, treat an
5403 empty String the same as `null'.
5405 2000-02-26 Anthony Green <green@cygnus.com>
5407 * gnu/gcj/io/MimeTypes.java: Test for null.
5409 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5410 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5412 * java/net/URLConnection.java: Update copyright notice.
5414 2000-02-25 Tom Tromey <tromey@cygnus.com>
5416 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5419 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5421 * java/net/URLConnection.java (initializeDateFormats): New
5423 (getHeaderFieldDate): Call initializeDateFormats if required.
5424 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5426 Fix for PR libgcj/38.
5428 2000-02-24 Warren Levy <warrenl@cygnus.com>
5430 * java/math/BigInteger.java(ival): Made private.
5434 2000-02-20 Anthony Green <green@cygnus.com>
5436 * Makefile.in: Rebuilt.
5437 * Makefile.am (ordinary_java_source_files): Add
5438 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5440 * scripts/MakeDefaultMimeTypes.java: New file.
5441 * scripts/mime.types: New file.
5442 * scripts/classes.pl: Moved from top level.
5443 * classes.pl: Moved to scripts directory.
5445 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5447 * gnu/gcj/io/MimeTypes.java: New file.
5448 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5450 2000-02-20 Tom Tromey <tromey@cygnus.com>
5452 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5454 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5456 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5459 2000-02-18 Tom Tromey <tromey@cygnus.com>
5461 * include/jvm.h (_Jv_GetJavaVM): Declare.
5462 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5463 (_Jv_MethodBase::get_method): New method.
5464 (_Jv_JNIMethod::set_function): New method.
5465 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5466 (_Jv_JNI_RegisterNatives): New function.
5467 (_Jv_JNIFunctions): Updated for new functions.
5468 (_Jv_GetJavaVM): New function.
5469 (_Jv_JNI_GetJavaVM): Use it. Now static.
5470 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5471 is already a Java thread but does not have a JNIEnv yet.
5473 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5476 2000-02-17 Tom Tromey <tromey@cygnus.com>
5478 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5481 2000-02-16 Tom Tromey <tromey@cygnus.com>
5483 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5485 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5486 (_Jv_JNI_NewObject): Likewise.
5487 (_Jv_JNI_NewObjectA): Likewise.
5488 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5489 as "return" type to _Jv_CallAnyMethodA.
5490 (_Jv_JNI_CallAnyMethodA): Likewise.
5491 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5493 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5496 2000-02-15 Tom Tromey <tromey@cygnus.com>
5498 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5500 (init_cif): Added `rtype_p' argument.
5501 * include/java-interp.h (class _Jv_MethodBase): Added
5503 (class _Jv_InterpMethod): Removed args_raw_size.
5504 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5505 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5506 class pointer as well as the ordinary arguments.
5508 * jni.cc (mangled_name): Skip leading `(' in signature.
5510 * jni.cc (add_char): Added missing `else'.
5512 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5515 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5519 * java/lang/natRuntime.cc (_load): Include library path with
5522 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5525 * java/lang/natThread.cc (dumpStack): Removed.
5526 * java/lang/Thread.java (dumpStack): Implemented.
5528 2000-02-15 Tom Tromey <tromey@cygnus.com>
5530 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5531 with `lib' for loadLibrary. Fixes PR gcj/150.
5533 2000-02-14 Warren Levy <warrenl@cygnus.com>
5535 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5537 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5541 (modPow): Rewritten to not use the naive, slow, brute force approach.
5542 (isProbablePrime): Implemented.
5543 (testBit): Implemented.
5544 (flipBit): Implemented.
5545 (getLowestSetBit): Implemented.
5547 2000-02-16 Anthony Green <green@redhat.com>
5549 * configure.host: Use the same options for i386 and i486 as we do
5552 2000-02-12 Tom Tromey <tromey@cygnus.com>
5554 * java/io/File.java (createTempFile): Use low bits from counter,
5557 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5559 * THANKS: More thanks.
5561 2000-02-11 Tom Tromey <tromey@cygnus.com>
5563 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5564 astore instruction. From Hans Boehm.
5566 2000-02-11 Warren Levy <warrenl@cygnus.com>
5568 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5569 (BigInteger(String)): New constructor.
5570 (not): Rewritten using version from Kawa's BitOps class.
5571 (valueOf): New private methods from Kawa's BitOps class.
5578 (andNot): Implemented.
5579 (clearBit): Implemented.
5580 (setBit): Implemented.
5581 (bitCount): Implemented.
5582 (toByteArray): Implemented.
5584 2000-02-11 Tom Tromey <tromey@cygnus.com>
5586 * java/io/File.java (nextValue): Now synchronized.
5588 2000-02-10 Tom Tromey <tromey@cygnus.com>
5590 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5591 * java/io/FileDescriptor.java (EXCL): New static field.
5592 * java/io/File.java (tmpdir): New static field.
5593 (createTempFile): New method.
5594 (nextValue): New method.
5595 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5598 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5599 (jboolean): Declare as an attributed int, not a bool.
5600 (_Jv_func): Declare differently for C.
5602 * gnu/gcj/jni/natNativeThread.cc: New file.
5603 * gnu/gcj/jni/NativeThread.java: New file.
5604 * java/lang/Thread.java (data): Now a RawData.
5605 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5607 * Makefile.in: Rebuilt.
5608 * Makefile.am (java/lang/Thread.h): New target.
5609 (ordinary_java_source_files): Added NativeThread.java.
5610 (nat_source_files): Added natNativeThread.cc.
5611 * java/lang/natThread.cc: Include <jni.h>
5612 (struct natThread): Added `jni_env' field.
5613 (_Jv_GetCurrentJNIEnv): New function.
5614 (_Jv_SetCurrentJNIEnv): Likewise.
5615 (initialize_native): Initialize jni_env.
5617 * jni.cc (ThreadGroupClass): New define.
5618 (_Jv_JNI_InvokeFunctions): New structure.
5619 (JNI_GetCreatedJavaVMs): New function.
5620 (the_vm): New global.
5621 (JNI_GetDefaultJavaVMInitArgs): New function.
5622 Include NativeThread.h.
5623 (NativeThreadClass): New define.
5624 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5625 (_Jv_JNI_DestroyJavaVM): New function.
5626 (_Jv_JNI_AttachCurrentThread): New function.
5627 (_Jv_JNI_DetachCurrentThread): New function.
5628 (_Jv_JNI_GetEnv): New function.
5629 (JNI_CreateJavaVM): New function.
5630 (_Jv_JNI_GetJavaVM): New function.
5631 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5632 * include/jni.h (JavaVMAttachArgs): New structure.
5633 (JNI_EDETACHED): New define.
5634 (JNI_EVERSION): Likewise.
5635 (JavaVM): Define properly.
5636 (struct JNIInvokeInterface): New structure.
5637 (class _Jv_JavaVM): New class.
5638 (JNI_OnLoad, JNI_OnUnload): Declare.
5639 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5640 JNI_GetCreatedJavaVMs): Declare.
5641 (JavaVMInitArgs): New typedef.
5642 (JavaVMOption): Likewise.
5643 (JNI_ERR): New define.
5646 2000-02-10 Andrew Haley <aph@cygnus.com>
5648 * interpret.cc: Don't include fdlibm.h.
5649 Replace #if with #ifdef throughout.
5650 Declare extern __ieee754_fmod.
5651 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5653 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5654 Search class hierarchy for superclass vtable.
5656 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5657 off the end of a pointer list.
5659 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5663 2000-02-09 Tom Tromey <tromey@cygnus.com>
5665 * java/lang/natRuntime.cc (_load): Call add_library.
5666 (loadLibraryInternal): Likewise.
5668 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5669 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5670 (Output_iconv::finalize): Likewise.
5672 2000-02-08 Tom Tromey <tromey@cygnus.com>
5674 * java/util/Properties.java (setProperty): New method.
5675 (store): New method.
5677 2000-02-07 Tom Tromey <tromey@cygnus.com>
5679 * java/lang/Runtime.java (_load): Declare.
5680 (load, loadLibrary): Wrote in terms of _load.
5681 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5683 (loadLibrary): Likewise.
5685 (_load): New method.
5686 (loadLibrary, load): Removed.
5688 * jni.cc (ThrowableClass): New define.
5689 (_Jv_JNI_Throw): Check argument.
5690 (_Jv_JNI_ThrowNew): Likewise.
5691 (wrap_value): Don't wrap object if it is NULL.
5692 (_Jv_JNI_DefineClass): Use wrap_value.
5693 (_Jv_JNI_FindClass): Likewise.
5694 (_Jv_JNI_GetSuperclass): Likewise.
5695 (_Jv_JNI_ExceptionOccurred): Likewise.
5696 (_Jv_JNI_AllocObject): Likewise.
5697 (_Jv_JNI_GetObjectClass): Likewise.
5698 (_Jv_JNI_NewString): Likewise.
5699 (_Jv_JNI_NewStringUTF): Likewise.
5700 (_Jv_JNI_NewObjectArray): Likewise.
5701 (_Jv_JNI_GetObjectArrayElement): Likewise.
5702 (_Jv_JNI_NewPrimitiveArray): Likewise.
5703 (_Jv_JNI_ToReflectedField): Likewise.
5704 (_Jv_JNI_ToReflectedMethod): Likewise.
5705 (_Jv_JNI_AllocObject): Check argument.
5706 (_Jv_JNI_NewObjectV): Likewise.
5707 (_Jv_JNI_NewObject): Likewise.
5708 (_Jv_JNI_NewObjectA): Likewise.
5709 (_Jv_JNI_GetObjectClass): Likewise.
5710 (_Jv_JNI_GetField): Likewise.
5711 (_Jv_JNI_SetField): Likewise.
5713 * interpret.cc (PUSHL): Don't use expression statement.
5718 * jni.cc (add_char): Conditional on INTERPRETER.
5719 (mangled_name): Likewise.
5721 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5723 (class _Jv_JNIMethod): Likewise.
5725 2000-02-04 Warren Levy <warrenl@cygnus.com>
5727 * Makefile.am: Added MPN.java and BigInteger.java.
5728 * Makefile.in: Rebuilt.
5729 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5731 * java/math/BigInteger.java: New file. Based primarily on
5732 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5734 2000-02-04 Tom Tromey <tromey@cygnus.com>
5736 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5738 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5739 if the method is native.
5740 * resolve.cc (ncode): Don't handle native methods.
5741 (_Jv_JNIMethod::ncode): New method.
5742 (_Jv_PrepareClass): Handle native methods.
5743 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5744 Include AbstractMethodError.h.
5745 (add_char): New function.
5746 (mangled_name): Likewise.
5747 * include/java-interp.h (class _Jv_JNIMethod): New class.
5748 (class _Jv_MethodBase): New class.
5749 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5750 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5753 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5754 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5755 libraries): New globals.
5756 (add_library): New function.
5757 (_Jv_FindSymbolInExecutable): New function.
5759 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5762 2000-02-04 Andrew Haley <aph@cygnus.com>
5764 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5765 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5766 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5767 printStackTrace to printRawStackTrace.
5769 2000-02-03 Tom Tromey <tromey@cygnus.com>
5771 * java/util/Calendar.java (toString): New method.
5772 * java/util/SimpleTimeZone.java (clone): New method.
5773 (toString): New method.
5774 * java/util/TimeZone.java (clone): New method.
5775 * java/text/SimpleDateFormat.java (clone): New method.
5776 * java/text/NumberFormat.java (clone): New method.
5777 (equals): New method.
5778 * java/text/Format.java (clone): New method.
5779 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5781 (clone): New method.
5782 * java/text/DateFormat.java (clone): New method.
5783 * java/text/Collator.java (clone): New method.
5785 2000-02-03 Tom Tromey <tromey@cygnus.com>
5787 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5790 2000-02-01 Tom Tromey <tromey@cygnus.com>
5792 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5793 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5794 constructing the closure if the function is native.
5795 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5796 a template function, #if'd out, or static.
5797 Include <java-interp.h>.
5799 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5801 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5803 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5804 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5806 (wrap_value): New function.
5807 (_Jv_JNI_CallAnyMethodV): Use it.
5808 (_Jv_JNI_CallAnyMethodA): Likewise.
5809 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5810 (_Jv_JNI_GetStaticField): Likewise.
5812 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5813 (_Jv_JNI_GetStaticField): Likewise.
5815 2000-01-31 Tom Tromey <tromey@cygnus.com>
5817 * prims.cc (_Jv_MallocUnchecked): New function.
5818 (main_init): Call _Jv_JNI_Init.
5819 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5820 (_Jv_JNI_Init): Declare.
5821 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5823 (_Jv_JNI_NewGlobalRef): New function.
5824 (_Jv_JNI_DeleteGlobalRef): New function.
5825 (_Jv_JNI_DeleteLocalRef): New function.
5826 (_Jv_JNI_conversion_call): Initialize and clear local reference
5828 (_Jv_JNI_NewLocalRef): New function.
5829 (struct _Jv_JNI_LocalFrame): New structure.
5830 (_Jv_JNI_PushLocalFrame): New function.
5831 (_Jv_JNI_EnsureLocalCapacity): New function.
5832 (FRAME_SIZE): New define.
5833 (_Jv_JNI_GetStringChars): Mark string, not characters.
5834 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5835 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5836 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5838 (_Jv_JNI_DefineClass): Make return value a local ref.
5839 (_Jv_JNI_FindClass): Likewise.
5840 (_Jv_JNI_GetSuperclass): Likewise.
5841 (_Jv_JNI_ExceptionOccurred): Likewise.
5842 (_Jv_JNI_AllocObject): Likewise.
5843 (_Jv_JNI_GetObjectClass): Likewise.
5844 (_Jv_JNI_CallAnyMethodV): Likewise.
5845 (_Jv_JNI_NewString): Likewise.
5846 (_Jv_JNI_NewStringUTF): Likewise.
5847 (_Jv_JNI_NewObjectArray): Likewise.
5848 (_Jv_JNI_GetObjectArrayElement): Likewise.
5849 (_Jv_JNI_ToReflectedField): Likewise.
5850 (_Jv_JNI_ToReflectedMethod): Likewise.
5851 (_Jv_JNIFunctions): Updated table for new functions.
5852 (_Jv_JNI_Init): New function.
5853 (mark_for_gc): Wrote.
5854 (unmark_for_gc): Wrote.
5855 * include/jni.h (struct JNINativeInterface): Removed name from
5856 PopLocalFrame parameter.
5857 (class _Jv_JNIEnv): Added `locals' field.
5859 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5861 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5864 2000-01-30 Tom Tromey <tromey@cygnus.com>
5866 * include/config.h.in: Rebuilt.
5867 * acconfig.h (HAVE_ICONV): Define.
5868 * configure: Rebuilt.
5869 * configure.in: Check for `iconv' function.
5870 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5871 no specific encoder exists.
5872 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5873 no specific encoder exists.
5874 * Makefile.in: Rebuilt.
5875 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5877 (nat_source_files): Added natIconv.cc.
5878 * gnu/gcj/convert/natIconv.cc: New file.
5879 * gnu/gcj/convert/Input_iconv.java: New file.
5880 * gnu/gcj/convert/Output_iconv.java: New file.
5882 2000-01-28 Tom Tromey <tromey@cygnus.com>
5884 * Makefile.in: Rebuilt.
5885 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5887 2000-01-26 Tom Tromey <tromey@cygnus.com>
5889 * gcj/method.h (JvNumMethods): Moved from Class.h.
5890 (JvGetFirstMethod): Likewise.
5891 * java/lang/Class.h (Object): Updated decl of
5892 _Jv_JNI_ToReflectedField.
5893 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5894 * Makefile.in: Rebuilt.
5895 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5896 argument of _Jv_JNI_ToReflectedField.
5897 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5899 (java/lang/reflect/Method.h): Likewise.
5900 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5902 (jweak): New typedef.
5903 (struct JNINativeInterface): Correctly declare remaining entries.
5904 * jni.cc: Include Class.h, ClassLoader.h.
5905 (_Jv_JNI_FindClass): New function.
5906 (_Jv_JNI_DefineClass): New function.
5907 (_Jv_JNI_conversion_call): New function.
5908 (_Jv_JNI_FindClass): Use current class loader to find class.
5909 (_Jv_JNI_ExceptionCheck): New function.
5910 (_Jv_JNI_FromReflectedField): Now static.
5911 (MethodClass): New define.
5912 (_Jv_JNI_FromReflectedMethod): New function.
5913 (_Jv_JNI_ToReflectedMethod): Likewise.
5915 (_Jv_JNI_IsAssignableFrom): Renamed.
5916 (_Jv_JNI_GetStringRegion): New function.
5917 Include StringIndexOutOfBoundsException.h.
5918 (_Jv_JNI_GetStringUTFRegion): New function.
5919 (_Jv_JNIFunctions): Updated for new functions.
5920 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5921 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5922 (_Jv_JNI_GetStringCritical): New function.
5923 (_Jv_JNI_ReleaseStringCritical): Likewise.
5924 (get_throwable): Removed.
5925 (GCJ_JV_JNIENV_FRIEND): Removed.
5926 (__GCJ_JNI_IMPL__): Define.
5929 * resolve.cc (get_ffi_type_from_signature): Handle case where
5932 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5934 * interpret.cc (run): Don't call println.
5935 Don't include PrintStream.h.
5937 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5938 nameIndex. Use "jint" as type for boffset.
5939 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5941 (Class): Likewise. Also changed type of method_count,
5942 vtable_method_count, size_in_bytes, field_count,
5943 static_field_count, interface_count.
5944 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5947 2000-01-21 Tom Tromey <tromey@cygnus.com>
5949 * java/lang/reflect/natConstructor.cc (newInstance): Use
5951 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5952 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5953 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5956 (invoke): Use _Jv_CallAnyMethodA.
5958 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5959 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5961 (struct _Jv_Method): Added getNextMethod method.
5962 (JvNumMethods): New function.
5963 (JvGetFirstMethod): Likewise.
5964 * gcj/field.h (JvGetFirstStaticField): New function.
5965 (JvNumStaticFields): Likewise.
5966 (getNextField): Renamed from getNextInstanceField.
5967 (struct _Jv_Field): New method getClass.
5968 * jni.cc: Wrote many new functions.
5969 * include/jni.h (JNI_TRUE): Define.
5970 (JNI_FALSE): Likewise.
5971 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5972 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5973 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5974 (jfieldID, jmethodID): Likewise.
5975 (JNI_COMMIT, JNI_ABORT): New defines.
5976 (JNINativeMethod): New struct.
5977 (struct JNINativeInterface): Correctly declared more entries.
5978 (class _Jv_JNIEnv): Added `ex' member.
5979 (JNI_VERSION_1_1): New define.
5980 (JNI_VERSION_1_2): Likewise.
5982 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5983 getNextInstanceField.
5985 2000-01-20 Tom Tromey <tromey@cygnus.com>
5987 * resolve.cc (StringClass): Removed.
5988 * defineclass.cc (StringClass): Removed.
5990 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5994 2000-01-19 Tom Tromey <tromey@cygnus.com>
5996 * interpret.cc (PC_REGISTER_ASM): Removed.
5998 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5999 From Bryce McKinlay.
6001 * All files: Updated copyright to reflect Cygnus purchase.
6003 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6005 * configure: Rebuilt.
6006 * configure.in: Recognize --disable-interpreter.
6008 2000-01-18 Andrew Haley <aph@cygnus.com>
6010 * name-finder.cc (lookup): Check for dladdr function.
6011 acconfig.h (HAVE_DLADDR): Add.
6012 configure.in: Check for HAVE_DLADDR
6014 include/config.h.in: Rebuilt.
6016 2000-01-17 Andrew Haley <aph@cygnus.com>
6018 * prims.cc (_Jv_RunMain): Set the name of this executable.
6020 2000-01-17 Tom Tromey <tromey@cygnus.com>
6022 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6023 when backtrace can't be computed.
6025 * configure: Rebuilt.
6026 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6028 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6029 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6030 (_Jv_FindClassInCache): Likewise.
6031 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6032 (findSystemClass): Try to load class from compiled module.
6034 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6035 (loadLibrary): Likewise.
6036 (lt_preloaded_symbols): Define.
6037 (loadLibraryInternal): New method.
6038 * include/config.h.in: Rebuilt.
6039 * acconfig.h (USE_LTDL): Added.
6040 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6041 (INCLUDES): Added $(INCLTDL).
6042 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6043 (libgcj_la_LIBADD): Likewise.
6044 * aclocal.m4, configure: Rebuilt.
6045 * configure.in: Added libltdl support.
6047 2000-01-15 Tom Tromey <tromey@cygnus.com>
6049 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6051 2000-01-14 Andrew Haley <aph@cygnus.com>
6053 * java/lang/natThrowable.cc: New file.
6055 * java/lang/Throwable.java (fillInStackTrace): Make native.
6056 (printStackTrace): Call native method to do this.
6057 (Throwable): Call fillInStackTrace.
6058 (stackTrace): New variable.
6060 * include/jvm.h: Add _Jv_ThisExecutable functions.
6062 * prims.cc: (_Jv_execName): New variable.
6063 (catch_segv): Call fillInStackTrace.
6065 (_Jv_ThisExecutable): New functions.
6066 (JvRunMain): Set the name of this executable.
6068 * Makefile.am: Add java/lang/natThrowable.cc.
6070 * Makefile.in: Rebuilt.
6072 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6074 * configure.in: Force link with __frame_state_for in
6075 FORCELIBGCCSPEC. Add new checks for backtrace.
6076 * include/config.h.in: Rebuilt.
6078 * name-finder.cc: New file.
6079 * include/name-finder.h: New file.
6081 2000-01-16 Anthony Green <green@cygnus.com>
6083 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6086 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6088 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6090 2000-01-13 Tom Tromey <tromey@cygnus.com>
6092 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6093 not system loader, as initiating loader.
6095 2000-01-11 Tom Tromey <tromey@cygnus.com>
6097 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6098 HP/UX. From David Scott Urban.
6100 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6102 * java/lang/natMath.cc (pow): Cast args to `double', not
6105 (IEEEremainder): Likewise.
6106 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6107 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6109 2000-01-09 Anthony Green <green@cygnus.com>
6111 * java/lang/natString.cc (init): Test for overflow condition
6112 during out of bounds check.
6113 (getChars): Throw StringIndexOutOfBoundsException, not
6114 ArrayIndexOutOfBoundsException.
6116 (regionMatches): Obey case option during string comparison.
6118 * configure.host (ligcj_interpreter): New variable. Enable
6119 interpreter by default on IA-32.
6120 * configure.in: Examine libgcj_interpreter.
6121 * configure: Rebuilt.
6123 2000-01-07 Tom Tromey <tromey@cygnus.com>
6125 * mauve-libgcj: Don't disable ClassTest.
6127 * java/lang/natClass.cc (getClasses): Wrote.
6129 2000-01-06 Tom Tromey <tromey@cygnus.com>
6131 * java/lang/natClass.cc (_getConstructors): Correctly check
6132 whether method name is the init name.
6133 (getMethod): Look at accflags on method in `klass', not `this'.
6135 2000-01-05 Tom Tromey <tromey@cygnus.com>
6137 * java/lang/natClass.cc (getMethod): Compute offset relative to
6138 `klass's methods table, not `this's table.
6140 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6141 In unwrapping/widening case, check whether `k' is null, not
6142 whether it is primitive. Initialize `num' from `argelts', not
6143 `paramelts'. Correct create and pass arguments to ffi_call.
6144 Don't let presence of `this' argument affect index used to look in
6146 (COPY): Set appropriate element in `values' vector.
6148 * java/lang/natClass.cc: Include <gcj/method.h>.
6150 * java/lang/Class.h (_getMethods): Correctly declare as private,
6153 * java/lang/Class.h (_getMethods): Declare.
6154 * java/lang/Class.java (_getMethods): Declare.
6155 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6156 (getDeclaredClasses): Always return empty array.
6157 (_getMethods): New method.
6158 (getMethods): Wrote.
6159 (getDeclaredMethod): Return `rmethod'.
6160 (finit_name): New global.
6161 (getDeclaredMethods): Check for finit_name.
6162 (_getMethods): Likewise.
6163 (getMethod): Only return public methods.
6165 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6166 jboolean and select correct ffi type on that basis.
6167 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6168 Constructor call always has `void' return type.
6170 2000-01-04 Tom Tromey <tromey@cygnus.com>
6172 * java/lang/Class.h (getSignature): Updated.
6173 * java/lang/Class.java (getSignature): Updated.
6174 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6176 (getConstructor): Ensure constructor is public.
6177 (_getConstructors): Check for public-ness of constructor when
6178 `declared' is false, not when it is true.
6180 2000-01-04 Warren Levy <warrenl@cygnus.com>
6182 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6184 (receive): Set the sender's address in the DatagramPacket.
6186 2000-01-04 Tom Tromey <tromey@cygnus.com>
6188 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6189 declaring class as return_type argument to
6190 _Jv_CallNonvirtualMethodA.
6191 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6192 constructor case, create object and use it as `this' argument.
6193 * java/lang/Class.h (_getConstructors): Declare.
6194 (_getFields): Declare.
6195 * java/lang/Class.java (getConstructors): Wrote.
6196 (_getConstructors): New native method.
6197 (getDeclaredConstructors): Wrote.
6198 (_getFields): Declare new native method.
6199 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6201 (getMethod): Work correctly when class is primitive.
6202 (getDeclaredMethods): Likewise. Compute offset using `method',
6204 (getDeclaredMethod): Likewise.
6205 (getConstructor): Wrote.
6206 (ConstructorClass): New define.
6207 (getDeclaredConstructor): Wrote.
6208 (_getConstructors): New method.
6209 (_getFields): New method.
6212 * Makefile.in: Rebuilt.
6213 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6215 * prims.cc: Remove `#pragma implementation'.
6216 * gcj/array.h: Remove `#pragma interface'.
6218 * prims.cc (_Jv_equaln): New function.
6219 * java/lang/Class.java (getSignature): Declare.
6220 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6221 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6223 (getSignature): New method.
6224 (getDeclaredMethod): Wrote.
6226 Include StringBuffer.h.
6227 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6228 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6230 (getSignature): Declare.
6231 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6232 (_Jv_equaln): Declare.
6233 (_Jv_CallNonvirtualMethodA): Declare.
6234 * Makefile.in: Rebuilt.
6235 * Makefile.am (nat_source_files): Added natConstructor.cc.
6236 (java/lang/reflect/Constructor.h): New target.
6237 * java/lang/reflect/natConstructor.cc: New file.
6238 * java/lang/reflect/Constructor.java (newInstance): Now native.
6239 (declaringClass): Renamed from decl_class.
6240 (offset): Renamed from index.
6241 (getType): New native method.
6242 (getModifiers): Now native.
6243 (getParameterTypes): Call getType if required.
6244 (hashCode): Include hash code from declaring class.
6245 (modifiers): Removed.
6246 (toString): Call getType if required.
6247 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6248 * java/lang/reflect/natMethod.cc (hack_call): New method.
6249 Removed `#if 0' around FFI code.
6250 Include <gnu/gcj/RawData.h>.
6251 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6252 IllegalArgumentException when argument object and class disagree.
6253 (_Jv_GetTypesFromSignature): New function.
6255 (ObjectClass): New define.
6256 (_Jv_CallNonvirtualMethodA): New function.
6257 * java/lang/reflect/Method.java (hack_trampoline): New method.
6258 (hack_call): New native method.