1 2001-10-17 Tom Tromey <tromey@redhat.com>
3 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
5 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
6 if secureRandomSpi is not initialized.
8 * Makefile.in: Rebuilt.
9 * Makefile.am (secdir): New macro.
10 (install-data-local): Install new data files.
11 * java/security/classpath.security: New file.
12 * java/security/libgcj.security: New file.
14 * java/security/Security.java (loadProviders): Added `vendor'
16 Load both `classpath' and `java.vm.name' providers.
18 2001-10-17 Anthony Green <green@redhat.com>
20 * java/security/Security.java (loadProviders): Fix bug in how
23 2001-10-16 Tom Tromey <tromey@redhat.com>
25 * gcj/javaprims.h: Updated class list.
26 * java/util/Hashtable.java: Re-merged with Classpath.
28 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
30 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
32 Eliminate use of C++ static constructors.
33 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
35 * resolve.cc: Likewise.
36 * defineclass.cc: Likewise.
37 (_Jv_ClassReader::handleClassBegin): Synchronize call to
39 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
40 Declare in namespace gcj.
41 * java/lang/Class.h (Class): Remove initialization for primitive
43 (friend void _Jv_InitPrimClass): This is in prims.cc.
44 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
46 (void_signature, clinit_name, init_name, finit_name): Define in
48 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
49 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
50 Initialize primitive types.
51 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
52 initialization routines. Don't synchronize.
53 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
56 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
58 * java/util/HashMap.java (HashEntry.clone): Removed.
59 (HashMap(Map)): Use putAllInternal.
61 (putAllInternal): New method. Efficient counterpart to putAll which
63 * java/util/LinkedHashMap.java (rethread): Removed.
64 (putAllInternal): New method. Clear "head" and "tail".
65 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
66 if callRemove == false.
68 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
69 * Makefile.in: Rebuilt.
71 2001-10-15 Eric Blake <ebb9@email.byu.edu>
73 * java/util/Collection.java: Updated javadoc.
74 * java/util/Comparator.java: Updated javadoc.
75 * java/util/Enumeration.java: Updated javadoc.
76 * java/util/Iterator.java: Updated javadoc.
77 * java/util/List.java: Updated javadoc.
78 * java/util/ListIterator.java: Updated javadoc.
79 * java/util/Map.java: Updated javadoc.
80 * java/util/RandomAccess.java: New file.
81 * java/util/Set.java: Updated javadoc.
82 * java/util/SortedMap.java: Updated javadoc.
83 * java/util/SortedSet.java: Updated javadoc.
85 2001-10-15 Tom Tromey <tromey@redhat.com>
87 * java/lang/reflect/AccessibleObject.java (checkPermission):
89 Updated copyright information.
91 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
93 * java/lang/natObject.cc (heavy_lock): Moved fields
94 old_client_data, old_finalization_proc near beginning.
95 (heavy_lock_finalization_proc): Now inline; changed type of
97 (JV_SYNC_TABLE_SZ): Now 2048.
99 (spin): `mp' now global.
100 (heavy_lock_obj_finalization_proc): Updated to correctly handle
101 heavy lock finalization.
102 (remove_all_heavy): New function.
103 (maybe_remove_all_heavy): Likewise.
104 (_Jv_MonitorEnter): Throw exception if object is NULL.
105 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
107 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
108 * nogc.cc (_Jv_AllocTraceTwo): New function.
109 * boehm.cc (trace_two_vtable): New global.
110 (_Jv_AllocTraceTwo): New function.
112 2001-10-15 Tom Tromey <tromey@redhat.com>
114 * Makefile.in: Rebuilt.
115 * Makefile.am (awt_java_source_files): Added new file.
116 * java/beans/AppletInitializer.java: New file.
118 * java/net/SocketPermission.java (hostport, actions): Now
121 2001-10-14 Mark Wielaard <mark@klomp.org>
123 * java/lang/Double.java: Partial merge with Classpath
124 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
126 (static): new static block to load native libary (not used in libgcj)
127 (Double (String)): call parseDouble()
128 (byteValue): removed, already defined in superclass Number
129 (shortValue): likewise
130 (valueOf (String)): call new Double(String) directly
131 (compare (double,double)): new 1.4 method
132 (compareTo (Double)): call new compare(double,double) method
133 (initIDs): new private method (not used in libgcj)
134 * java/lang/Float.java: Partial merge with Classpath
135 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
137 (static): new static block to load native libary (not used in libgcj)
138 (Float (String)): call parseFloat()
139 (byteValue): removed, already defined in superclass Number
140 (shortValue): likewise
141 (valueOf (String)): call new Float(String) directly
142 (compare (float,float)): new 1.4 method
143 (compareTo (Float)): call new compare(double,double) method
145 2001-10-13 Tom Tromey <tromey@redhat.com>
147 * java/lang/SecurityManager.java (SecurityManager): Now public.
149 * java/security/AccessController.java (checkPermission): Now
150 throws AccessControlException.
151 * java/security/AllPermission.java: Class now final.
152 * java/security/Permission.java (getName): Now final.
154 (equals): New abstract method.
155 * java/security/PermissionCollection.java (linesep): Now private.
156 * java/security/Permissions.java: Class now final.
157 * java/security/Security.java (Security): New private
159 * java/security/UnresolvedPermission.java: Import
160 java.security.cert.Certificate. Class now final.
161 * java/security/acl/Group.java: Now extends Principal.
162 (isMember): Added Principal argument.
163 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
165 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
168 2001-10-12 Tom Tromey <tromey@redhat.com>
170 * Makefile.in: Rebuilt.
171 * Makefile.am (rmi_java_source_files): Added new files.
172 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
174 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
175 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
176 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
177 * gnu/java/rmi/rmic/Compiler.java: New file.
179 2001-10-11 Tom Tromey <tromey@redhat.com>
181 * configure: Rebuilt.
182 * configure.in: Recognize --disable-java-awt.
184 2001-10-10 Tom Tromey <tromey@redhat.com>
186 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
187 * java/lang/natRuntime.cc: Include FinalizerThread.h.
188 (runFinalization): Call finalizerReady.
189 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
190 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
191 (_Jv_CreateJavaVM): Start the finalizer thread.
192 * no-threads.cc: Include InternalError.h.
193 (_Jv_ThreadStart): Throw InternalError.
194 (_Jv_ThreadInitData): Don't throw error if this is not the first
196 * Makefile.in: Rebuilt.
197 * Makefile.am (ordinary_java_source_files): Added
198 FinalizerThread.java.
199 (nat_source_files): Added natFinalizerThread.cc.
200 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
201 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
202 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
203 * gnu/gcj/runtime/FinalizerThread.java: New file.
205 2001-10-09 Per Bothner <per@bothner.com>
207 * strtod.c (_strtod_r): Logic to check for missing digits
208 after exponent had 'else' attached to wrong 'if'.
210 2001-10-09 Mark Wielaard <mark@klomp.org>
212 * java/net/SocketImpl.java: Merge with Classpath
214 2001-10-08 Mark Wielaard <mark@klomp.org>
216 * java/net/DatagramSocketImpl.java: Merge with Classpath
218 2001-10-07 Mark Wielaard <mark@klomp.org>
220 * java/net/URLDecoder.java: Remerge with Classpath
221 * java/net/URLEncoder.java: Merge with Classpath
223 2001-10-08 Tom Tromey <tromey@redhat.com>
225 Fix for PR libgcj/4481:
226 * java/io/File.java (getParent): Handle case where path is "/".
227 (normalizePath): Use correct string for UNC leader.
229 2001-10-06 Mark Wielaard <mark@klomp.org>
231 * java/io/BufferedInputStream.java: Merge with Classpath
233 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
235 * defineclass.cc, java/awt/image/ColorModel.java,
236 java/awt/image/SampleModel.java, java/lang/Package.java,
237 java/security/cert/X509Extension.java: Fix spelling errors of
238 "separate" as "seperate", and corresponding spelling errors of
241 2001-10-05 Tom Tromey <tromey@redhat.com>
243 * java/text/DecimalFormat.java (format): Use localized minus sign
244 when generating exponent; never use `+'. Use floor to compute
247 2001-10-05 Mark Wielaard <mark@klomp.org>
249 * java/util/zip/Adler32.java: Merge with Classpath
250 * java/util/zip/CRC32.java: Ditto
251 * java/util/zip/Checksum.java: Ditto
252 * java/util/zip/DataFormatException.java: Ditto
253 * java/util/zip/ZipException.java: Ditto
255 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
257 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
259 2001-10-04 Mark Wielaard <mark@klomp.org>
261 * java/lang/reflect/Modifier.java: Merge with Classpath
263 2001-10-03 Mark Wielaard <mark@klomp.org>
265 * java/io/SequenceInputStream.java: Merge with Classpath
266 * java/io/StringBufferInputStream.java: Ditto
267 * java/util/Collections.java: Remerge with Classpath
269 2001-10-03 Tom Tromey <tromey@redhat.com>
271 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
274 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
276 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
277 * gij.cc (version): Use GCJVERSION.
279 2001-10-02 Mark Wielaard <mark@klomp.org>
281 * Makefile.am (core_java_source_files): add InheritableThreadLocal
282 * Makefile.in: regenerate
283 * gcj/javaprims.h: ditto
284 * java/lang/InheritableThreadLocal.java: new class from Classpath
285 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
286 call InheritableThreadLocal.newChildThread()
288 2001-10-01 Mark Wielaard <mark@klomp.org>
290 * Makefile.am: Add new classes
291 (core_java_source_files): CharSequence
292 (ordinary_java_source_files): Authenticator, PasswordAuthentication
293 * Makefile.in: regenerate
294 * gcj/javaprims.h: ditto
295 * java/lang/CharSequence: new class from Classpath
296 * java/lang/String.java: implements CharSequence
297 (subSequence (int,int)): new method
298 * java/lang/SubString.java: implements CharSequence
299 (subSequence (int,int)): new method
300 remerge comments with Classpath
301 * java/net/Authenticator.java: new class from Classpath
302 * java/net/PasswordAuthentication.java: ditto
304 2001-10-01 Tom Tromey <tromey@redhat.com>
306 * gcj/javaprims.h: Rebuilt class list.
307 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
308 (_Jv_GCCanReclaimSoftReference): New function.
309 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
310 (_Jv_GCCanReclaimSoftReference): Declare.
311 * java/lang/ref/Reference.java (referent): Now a RawData.
312 (create): Renamed from `created'. Added object argument.
313 (Reference): Don't initialize `referent' here.
314 * Makefile.in: Rebuilt.
315 * Makefile.am (nat_source_files): Added new file.
316 * java/lang/ref/natReference.cc: New file.
318 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
319 (_Jv_NewMultiArray): Use it. Check each array dimension.
320 (_Jv_NewMultiArray): Likewise.
321 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
323 * java/lang/reflect/natArray.cc (newInstance): Throw
324 IllegalArgumentException if there are no dimensions.
326 2001-10-01 Mark Wielaard <mark@klomp.org>
328 * java/io/FileWriter.java: Merge with Classpath.
329 * java/io/FilterInputStream.java: Ditto.
330 (mark): no longer synchronized
332 * java/io/FilterOutputStream.java: Merge with Classpath.
333 * java/io/FilterReader.java: Ditto.
334 (mark): no longer synchronized
336 * java/io/FilterWriter.java: Merge with Classpath.
337 * java/io/Writer.java: Ditto.
338 * java/lang/Compiler.java: Ditto.
339 * java/lang/Process.java: Ditto.
340 * java/lang/Void.java: Ditto.
341 * java/net/ContentHandler.java: Ditto.
342 * java/net/DatagramPacket.java: Ditto.
343 * java/net/MulticastSocket.java: Merge comments with Classpath.
345 2001-09-30 Mark Wielaard <mark@klomp.org>
347 * java/io/DataInput.java: Merge with Classpath.
348 * java/io/DataOutput.java: Idem.
349 * java/io/FilenameFilter.java: Idem.
350 * java/io/Serializable.java: Idem.
351 * java/lang/Cloneable.java: Idem.
352 * java/lang/Comparable.java: Idem.
353 * java/lang/Runnable.java: Idem.
354 * java/lang/reflect/Member.java: Idem.
355 * java/net/ContentHandlerFactory.java: Idem.
356 * java/net/FileNameMap.java: Idem.
357 * java/net/SocketImplFactory.java: Idem.
358 * java/net/SocketOptions.java: Idem.
359 * java/net/URLStreamHandlerFactory.java: Idem.
361 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
363 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
364 an uninitialized target class.
366 * gnu/gcj/protocol/file/Connection.java (connect): Throw
367 FileNotFoundException if appropriate.
368 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
369 IOException if we got a file: url with a hostname. Comment out protocol
370 switch to ftp for now.
371 * java/net/URL.java (URL): Include protocol name in exception message
372 when handler can't be found.
374 2001-09-28 Per Bothner <per@bothner.com>
376 * gnu/gcj/runtime/SharedLibLoader.java: New class.
377 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
378 * Makefile.am: Update accordingly.
379 * configure.in: Add AC_CHECK_LIB for dlopen.
380 * include/config.h.in: Add HAVE_DLOPEN.
382 2001-09-29 Jeff Sturm <jsturm@one-point.com>
384 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
385 * Makefile.in: Rebuilt.
387 2001-09-27 Tom Tromey <tromey@redhat.com>
389 * java/util/IdentityHashMap.java (containsKey): Use getHash.
393 (getHash): New method.
394 (tombstone, emptyslot): Now static final.
395 (put): Correctly determine when to rehash, and correctly rehash.
396 (containsKey, remove): Test against table length with `>='.
398 2001-09-26 Tom Tromey <tromey@redhat.com>
400 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
402 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
403 Re-merged with Classpath.
405 * java/io/DataInputStream.java (readChar): Use readFully.
407 (readLong): Likewise.
408 (readShort): Likewise.
409 (readUnsignedShort): Likewise.
411 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
413 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
414 IllegalThreadStateException if process hasn't exited yet.
415 * java/lang/natPosixProcess.cc (exitValue): Removed.
416 (waitFor): Only check thread interrupted status if waitpid() returned
417 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
420 * java/security/cert/X509Extension.java: Merge from classpath.
422 2001-09-22 Anthony Green <green@redhat.com>
424 * java/security/DummyKeyPairGenerator.java (initialize): New
425 method (with AlgorithmParameterSpec argument).
427 2001-09-22 Anthony Green <green@redhat.com>
429 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
431 * gnu/java/security/provider/SHA1PRNG.java: Extend from
433 (engineNextBytes): Fix order of memory copies.
435 2001-09-21 Richard Henderson <rth@redhat.com>
437 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
438 add get_method, set_method, vtable_elt_size, new_vtable.
439 (_Jv_ArrayVTable): Derive from _Jv_VTable.
440 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
441 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
442 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
444 2001-09-21 Richard Henderson <rth@redhat.com>
446 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
447 * java/lang/mprec.c (lo0bits): Fix paren typo.
449 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
451 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
452 blocking IO via pthread_kill().
453 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
454 interrupted status flag only if ::write returned an error.
455 (write (jbyteArray, jint, jint): Likewise.
456 (read (jint)): Likewise.
457 (read (jbyteArray, jint, jint): Likewise.
459 2001-09-19 Anthony Green <green@redhat.com>
461 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
464 2001-09-17 Andreas Jaeger <aj@suse.de>
466 * jni.cc (array_from_valist): Use promoted types for va_arg.
468 2001-09-16 Anthony Green <green@redhat.com>
470 * gnu/java/locale/LocaleInformation.java: Extend
471 LocaleInformation_en_US, not LocaleInformation_en.
473 2001-09-16 Anthony Green <green@redhat.com>
475 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
477 2001-09-14 Tom Tromey <tromey@redhat.com>
479 * java/util/TimeZone.java: Updated list of timezones from
482 * java/lang/CloneNotSupportedException.java: Re-merged with
485 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
487 * java/io/File.java (normalizePath): Use equals() not '==' for string
490 * java/util/Hashtable.java (Enumerator): Ensure that if
491 hasMoreElements() returns true, nextElement() will always return
492 something even if the table has been modified.
494 2001-09-12 Tom Tromey <tromey@redhat.com>
496 * Makefile.in: Rebuilt.
497 * Makefile.am (class-check): New target.
499 2001-09-11 Tom Tromey <tromey@redhat.com>
501 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
503 2001-09-10 Tom Tromey <tromey@redhat.com>
505 * java/util/Properties.java (load): Correctly read \u sequences.
506 Report from Anthony Green.
508 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
510 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
511 and $(MULTIBUILDTOP).
512 * configure: Re-generate.
514 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
516 * include/jvm.h (_Jv_AllocRawObj): New prototype.
517 * boehm.cc (_Jv_AllocRawObj): Implement.
518 * nogc.cc (_Jv_AllocRawObj): Likewise.
519 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
521 2001-09-06 Anthony Green <green@redhat.com>
523 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
524 redundant method calls.
525 (emptyLocale): New private member.
526 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
529 2001-09-06 Tom Tromey <tromey@redhat.com>
531 * java/text/RuleBasedCollator.java (clone): Rewrote.
532 (RuleBasedCollator(RuleBasedCollator)): Removed.
533 * java/text/MessageFormat.java: Re-merged from Classpath.
534 * java/text/DecimalFormat.java: Re-merged from Classpath.
536 2001-09-06 Anthony Green <green@redhat.com>
538 * include/jvm.h: Declare _Jv_RegisterResource.
539 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
540 gnu/gcj/protocol/core/Connection.java,
541 gnu/gcj/protocol/core/Handler.java,
542 gnu/gcj/protocol/core/CoreInputStream.java,
543 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
544 * java/net/URL.java (setURLStreamHandler): Use
545 gnu.gcj.protocol.core.Handler for the core protocol.
546 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
547 end of java.class.path.
548 * Makefile.am (ordinary_java_source_files): Add new java files.
549 (nat_source_files): Add new native code files.
550 * Makefile.in: Rebuilt.
552 2001-09-05 Tom Tromey <tromey@redhat.com>
554 * java/util/Properties.java: Re-merged from Classpath.
556 From Eric Blake, via Classpath:
557 * java/lang/String.java (CaseInsensitiveComparator): New class.
558 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
560 * java/util/Date.java: Re-merged with Classpath.
562 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
564 2001-09-05 Corey Minyard <minyard@acm.org>
565 Tom Tromey <tromey@redhat.com>
567 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
568 (_Jv_RegisterClassHookDefault): Throw error if a class is
571 2001-09-05 Tom Tromey <tromey@redhat.com>
573 * java/lang/natSystem.cc (init_properties): Default locale is
576 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
578 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
579 here, DecimalFormat.applyPattern() does not throw it.
581 2001-09-04 Tom Tromey <tromey@redhat.com>
583 * java/util/AbstractMap.java: Re-merged with Classpath.
584 * java/util/IdentityHashMap.java: Re-merged with Classpath.
586 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
587 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
588 gnu/gcj/text/LocaleData_en_US.java: Removed.
589 * java/text/DateFormatSymbols.java (clone): Use Classpath
591 (equals): Simplified.
592 (DateFormatSymbols): Look in gnu.java.locale for information.
593 (DateFormatSymbols(DateFormatSymbols)): Removed.
594 (safeGetResource): Removed.
595 (DateFormatSymbols): Throws MissingResourceException.
596 (ampmsDefault, erasDefault, localPatternCharsDefault,
597 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
598 weekdaysDefault, zoneStringsDefault): Removed.
599 * java/text/Collator.java (getAvailableLocales): Use modified
600 Classpath implementation.
601 (getInstance): Look in gnu.java.locale for information.
603 * java/text/MessageFormat.java: Reindented.
605 * java/text/FieldPosition.java: Merged with Classpath.
606 * java/text/ParsePosition.java: Merged with Classpath.
607 * java/text/Format.java: Merged with Classpath.
608 * java/text/StringCharacterIterator.java
609 (StringCharacterIterator(StringCharacterIterator,int,int)): New
610 constructor from Classpath.
611 * java/text/Annotation.java,
612 java/text/AttributedCharacterIterator.java,
613 java/text/AttributedString.java,
614 java/text/AttributedStringIterator.java: New from Classpath.
615 * java/text/CharacterIterator.java: Copied from Classpath.
616 * java/text/ChoiceFormat.java: Reindented.
618 * gnu/java/text/BaseBreakIterator.java,
619 gnu/java/text/CharacterBreakIterator.java,
620 gnu/java/text/LineBreakIterator.java,
621 gnu/java/text/LocaleData_en.java,
622 gnu/java/text/LocaleData_en_US.java,
623 gnu/java/text/SentenceBreakIterator.java,
624 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
625 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
627 * java/text/BreakIterator.java (getAvailableLocales): Use
628 Classpath implementation.
629 (getInstance): Look in gnu.java.locale for information.
630 (getCharacterInstance, getLineInstance, getSentenceInstance,
631 getWordInstance): Look in gnu.java.text for implementations.
632 * java/text/DecimalFormatSymbols.java: Reindented
633 (clone): Use Classpath implementation.
634 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
635 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
637 * java/text/DateFormat.java: Merged with Classpath.
638 (getAvailableLocales): Use Classpath implementation.
639 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
640 (computeInstance): Look in gnu.java.locale for information.
641 * java/text/NumberFormat.java: Reindented.
642 (computeInstance): Look in gnu.java.locale for information.
643 (getAvailableLocales): Use implementation from Classpath.
644 (setMaximumIntegerDigits): Likewise.
645 (setMinimumIntegerDigits): Likewise.
646 (setMaximumFractionDigits): Likewise.
648 * java/text/DecimalFormat.java: Reindented.
649 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
650 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
651 * Makefile.in: Rebuilt.
652 * Makefile.am (ordinary_java_source_files): Added all new files.
653 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
654 * java/security/spec/AlgorithmParameterSpec.java,
655 java/security/spec/KeySpec.java: Re-merged with Classpath.
657 Fix for PR libgcj/4213:
658 * Makefile.am (ordinary_java_source_files): Added new file.
659 * gnu/gcj/text/LocaleData.java: New file.
661 2001-09-03 Tom Tromey <tromey@redhat.com>
663 * java/lang/reflect/natField.cc (set): Allow for case when the
664 value is null. Fixes PR libgcj/4208.
666 * gcj/javaprims.h: Regenerated class list.
667 * java/lang/IllegalThreadStateException.java,
668 java/lang/InstantiationException.java: Minor comment tweaks to
669 satisfy libgcj `classes.pl' script.
671 2001-09-01 Tom Tromey <tromey@redhat.com>
673 * Makefile.in: Rebuilt.
674 * Makefile.am (core_java_source_files): Added
675 UnsupportedClassVersionError.
676 * java/lang/UnsupportedClassVersionError.java: New file from
679 * java/io/CharConversionException.java, java/io/EOFException.java,
680 java/io/FileNotFoundException.java, java/io/IOException.java,
681 java/io/InterruptedIOException.java,
682 java/io/ObjectStreamException.java,
683 java/io/OptionalDataException.java,
684 java/io/StreamCorruptedException.java,
685 java/io/SyncFailedException.java,
686 java/io/UTFDataFormatException.java,
687 java/io/UnsupportedEncodingException.java,
688 java/lang/AbstractMethodError.java,
689 java/lang/ArithmeticException.java,
690 java/lang/ArrayIndexOutOfBoundsException.java,
691 java/lang/ArrayStoreException.java,
692 java/lang/ClassCastException.java,
693 java/lang/ClassCircularityError.java,
694 java/lang/ClassFormatError.java,
695 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
696 java/lang/Exception.java,
697 java/lang/ExceptionInInitializerError.java,
698 java/lang/IllegalAccessError.java,
699 java/lang/IllegalAccessException.java,
700 java/lang/IllegalArgumentException.java,
701 java/lang/IllegalMonitorStateException.java,
702 java/lang/IllegalStateException.java,
703 java/lang/IllegalThreadStateException.java,
704 java/lang/IncompatibleClassChangeError.java,
705 java/lang/IndexOutOfBoundsException.java,
706 java/lang/InstantiationError.java,
707 java/lang/InstantiationException.java,
708 java/lang/InternalError.java, java/lang/InterruptedException.java,
709 java/lang/LinkageError.java,
710 java/lang/NegativeArraySizeException.java,
711 java/lang/NoClassDefFoundError.java,
712 java/lang/NoSuchFieldError.java,
713 java/lang/NoSuchFieldException.java,
714 java/lang/NoSuchMethodError.java,
715 java/lang/NoSuchMethodException.java,
716 java/lang/NullPointerException.java,
717 java/lang/NumberFormatException.java,
718 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
719 java/lang/SecurityException.java,
720 java/lang/StackOverflowError.java,
721 java/lang/StringIndexOutOfBoundsException.java,
722 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
723 java/lang/UnsatisfiedLinkError.java,
724 java/lang/UnsupportedOperationException.java,
725 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
726 java/lang/reflect/InvocationTargetException.java,
727 java/net/BindException.java, java/net/ConnectException.java,
728 java/net/MalformedURLException.java,
729 java/net/NoRouteToHostException.java,
730 java/net/ProtocolException.java, java/net/SocketException.java,
731 java/net/UnknownHostException.java,
732 java/net/UnknownServiceException.java,
733 java/text/ParseException.java: Copied from Classpath, thanks to
734 Mark Wielaard who did the merge.
736 * java/lang/System.java (getProperty): Use single argument form of
737 SecurityManager.checkPropertyAccess.
738 * Makefile.in: Rebuilt.
739 * Makefile.am (core_java_source_files): Added VMSecurityManager.
740 * java/lang/VMSecurityManager.java: New file.
741 * java/lang/SecurityManager.java: Merged with Classpath.
743 2001-08-31 Per Bothner <per@bothner.com>
745 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
746 (_Jv_RegisterClassHookDefault): Likewise.
747 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
748 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
749 (_Jv_RegisterClassHookDefault): New.function.
750 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
752 * java/lang/ClassLoader.java (system): Remove static field.
753 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
754 directly instead of using it to set the system field.
755 (loadClass): Use VMClassLoader.instance instead of system field.
756 (findSystemClass): Similar.
757 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
758 than ClassLoader::system which no longer exists.
759 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
761 2001-08-31 Tom Tromey <tromey@redhat.com>
763 * java/io/BufferedReader.java, java/io/ObjectInput.java,
764 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
765 Re-merged with Classpath.
767 Re-merge with Classpath:
768 * java/util/Comparator (equals): Added.
769 * java/io/PipedWriter.java (write): Changed argument to `int'.
771 * java/io/FileDescriptor.java (FileDescriptor()): New
773 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
775 * Makefile.in: Rebuilt.
776 * Makefile.am (ordinary_java_source_files): Removed
777 EnumerationChain, added DoubleEnumeration.
778 (nat_source_files): Added natResourceBundle.cc.
779 * java/util/natResourceBundle.cc: New file.
780 * gnu/java/util/DoubleEnumeration.java: New file.
781 * gnu/gcj/util/EnumerationChain.java: Removed.
782 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
783 * java/util/ResourceBundle.java: Merged with Classpath.
784 * java/util/StringTokenizer.java: Merged with Classpath.
785 * java/util/Locale.java: Merged with Classpath.
786 * java/util/Random.java: Merged with Classpath.
787 * java/util/PropertyResourceBundle.java: Merged with Classpath.
788 * java/util/ListResourceBundle.java: Merged with Classpath.
789 * java/util/ConcurrentModificationException.java: Re-merged with
791 * java/util/EmptyStackException.java: Likewise.
792 * java/util/MissingResourceException.java: Likewise.
793 * java/util/NoSuchElementException.java: Likewise.
794 * java/util/TooManyListenersException.java: Likewise.
796 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
797 * java/io/OptionalDataException.java: Merged with Classpath.
799 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
801 * exception.cc (PERSONALITY_FUNCTION): Simplify
804 2001-08-31 Tom Tromey <tromey@redhat.com>
806 * java/io/ByteArrayInputStream.java: Merged with Classpath.
808 2001-08-30 Tom Tromey <tromey@redhat.com>
810 * java/io/BufferedReader.java: Re-merged with Classpath.
812 2001-08-28 Per Bothner <per@bothner.com>
814 * java/math/BigInteger.java (init(int,Random)): New method.
815 Move body of constructor <init>(int,Random)) here.
816 Re-write it to avoid constructing unneeded temporaries.
817 (<init>(int,int,Random)): Use new init method to avoid constructing
818 extra temporary BigIntegers.
820 2001-08-27 Tom Tromey <tromey@redhat.com>
822 * java/rmi/activation/Activatable.java,
823 java/rmi/activation/ActivateFailedException.java,
824 java/rmi/activation/ActivationDesc.java,
825 java/rmi/activation/ActivationException.java,
826 java/rmi/activation/ActivationGroup.java,
827 java/rmi/activation/ActivationGroupDesc.java,
828 java/rmi/activation/ActivationGroupID.java,
829 java/rmi/activation/ActivationID.java,
830 java/rmi/activation/ActivationInstantiator.java,
831 java/rmi/activation/ActivationMonitor.java,
832 java/rmi/activation/ActivationSystem.java,
833 java/rmi/activation/Activator.java,
834 java/rmi/activation/UnknownGroupException.java,
835 java/rmi/activation/UnknownObjectException.java,
836 java/rmi/AccessException.java,
837 java/rmi/AlreadyBoundException.java,
838 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
839 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
840 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
841 java/rmi/NotBoundException.java,
842 java/rmi/RMISecurityException.java,
843 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
844 java/rmi/RemoteException.java, java/rmi/ServerError.java,
845 java/rmi/ServerException.java,
846 java/rmi/ServerRuntimeException.java,
847 java/rmi/StubNotFoundException.java,
848 java/rmi/UnexpectedException.java,
849 java/rmi/UnknownHostException.java,
850 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
851 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
852 java/rmi/registry/LocateRegistry.java,
853 java/rmi/registry/Registry.java,
854 java/rmi/registry/RegistryHandler.java,
855 java/rmi/server/ExportException.java,
856 java/rmi/server/LoaderHandler.java,
857 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
858 java/rmi/server/Operation.java,
859 java/rmi/server/RMIClassLoader.java,
860 java/rmi/server/RMIClientSocketFactory.java,
861 java/rmi/server/RMIFailureHandler.java,
862 java/rmi/server/RMIServerSocketFactory.java,
863 java/rmi/server/RMISocketFactory.java,
864 java/rmi/server/RemoteCall.java,
865 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
866 java/rmi/server/RemoteServer.java,
867 java/rmi/server/RemoteStub.java,
868 java/rmi/server/ServerCloneException.java,
869 java/rmi/server/ServerNotActiveException.java,
870 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
871 java/rmi/server/SkeletonMismatchException.java,
872 java/rmi/server/SkeletonNotFoundException.java,
873 java/rmi/server/SocketSecurityException.java,
874 java/rmi/server/UID.java,
875 java/rmi/server/UnicastRemoteObject.java,
876 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
877 gnu/java/rmi/dgc/DGCImpl_Skel.java,
878 gnu/java/rmi/dgc/DGCImpl_Stub.java,
879 gnu/java/rmi/registry/RegistryImpl.java,
880 gnu/java/rmi/registry/RegistryImpl_Skel.java,
881 gnu/java/rmi/registry/RegistryImpl_Stub.java,
882 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
883 gnu/java/rmi/server/ProtocolConstants.java,
884 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
885 gnu/java/rmi/server/RMIHashes.java,
886 gnu/java/rmi/server/RMIObjectInputStream.java,
887 gnu/java/rmi/server/RMIObjectOutputStream.java,
888 gnu/java/rmi/server/UnicastConnection.java,
889 gnu/java/rmi/server/UnicastConnectionManager.java,
890 gnu/java/rmi/server/UnicastRef.java,
891 gnu/java/rmi/server/UnicastRemoteCall.java,
892 gnu/java/rmi/server/UnicastRemoteStub.java,
893 gnu/java/rmi/server/UnicastServer.java,
894 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
895 Kaffe. Relabelled classes to fit into Classpath tree.
896 * Makefile.in: Rebuilt.
897 * Makefile.am (rmi_java_source_files): New macro.
898 (ordinary_java_source_files): Reference it.
899 (bin_PROGRAMS): Added rmic and rmiregistry.
900 (rmic_SOURCES): New macro.
901 (EXTRA_rmic_SOURCES): Likewise.
902 (rmic_LDFLAGS): Likewise.
903 (rmic_LINK): Likewise.
904 (rmic_LDADD): Likewise.
905 (rmic_DEPENDENCIES): Likewise.
906 (rmiregistry_SOURCES): New macro.
907 (EXTRA_rmiregistry_SOURCES): Likewise.
908 (rmiregistry_LDFLAGS): Likewise.
909 (rmiregistry_LINK): Likewise.
910 (rmiregistry_LDADD): Likewise.
911 (rmiregistry_DEPENDENCIES): Likewise.
913 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
915 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
917 * Makefile.am: New friends for java/lang/Thread.h.
918 * prims.cc (runFirst): Removed.
919 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
920 (_Jv_RunMain): Now takes either a klass or class name parameter.
921 Create a gnu.gcj.runtime.FirstThread and attach the native thread
922 to that, then run it using _Jv_ThreadRun. Remove special handling of
923 jar files, instead pass is_jar parameter through to FirstThread.
924 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
925 of _Jv_AttachCurrentThread.
926 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
927 (run): New method. Take care of looking up main class manifest
928 attribute and calling forName if neccessary. Then call call_main.
929 (call_main): New native method.
930 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
931 relocated from prims.cc. Look up and call main method.
932 * java/lang/Thread.java (run_): Removed.
933 * java/lang/natThread.cc (run_): Renamed to...
934 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
935 (_Jv_NotifyThreadStart): here. New function.
936 (countStackFrames, destroy, resume, suspend, stop): Throw
937 UnsupportedOperationExceptions rather than JvFail'ing.
938 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
939 Existing version wraps new variant.
942 2001-08-23 Tom Tromey <tromey@redhat.com>
944 * java/lang/reflect/Field.java (toString): Use
945 Method.appendClassName.
946 * java/lang/reflect/Constructor.java (toString): Use
947 Method.appendClassName.
948 * java/lang/reflect/Method.java: Reindented.
949 (appendClassName): New method.
951 * defineclass.cc (handleMethod ): Initialize `throws' field of
953 (read_one_method_attribute): Handle Exceptions attribute.
954 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
955 (ObjectClass): Removed.
956 (getType): Compute `exception_types'.
957 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
959 2001-08-21 Anthony Green <green@redhat.com>
961 * java/lang/natClassLoader.cc (findClass): Search for
962 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
964 2001-08-21 Jeff Sturm <jsturm@one-point.com>
966 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
969 2001-08-20 Tom Tromey <tromey@redhat.com>
971 * java/awt/GridBagConstraints.java: Removed comment.
973 * jni.cc (nathash, nathash_count, nathash_size): New globals.
974 (DELETED_ENTRY): New define.
975 (hash): New function.
976 (nathash_find_slot): Likewise.
977 (natrehash): Likewise.
978 (nathash_add): Likewise.
979 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
981 (nathash_find): New function.
982 (_Jv_LookupJNIMethod): Use it. Synchronize body.
983 (call): Synchronize around assignment.
985 2001-08-17 Jeff Sturm <jsturm@one-point.com>
987 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
988 starting from zero offset.
990 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
992 * boehm.cc: Include gc_local_alloc.h if appropriate.
993 (GC_GENERIC_MALLOC): Don't define.
994 (MAYBE_MARK): Redefine for GC 6.0.
995 (_Jv_MarkObj): Mark class differently.
996 (_Jv_AllocArray): Use GC_generic_malloc.
998 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1000 * java/math/BigInteger.java (randBytes): New method.
1001 (BigInteger(int,Random)): Use randBytes.
1003 2001-08-17 Tom Tromey <tromey@redhat.com>
1005 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1007 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1009 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1011 2001-08-15 Tom Tromey <tromey@redhat.com>
1013 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1014 (local_ref_table, global_ref_table): Now IdentityHashMap.
1015 (_Jv_JNI_Init): Updated for new types.
1016 (mark_for_gc): Likewise.
1017 (unmark_for_gc): Likewise.
1018 * gcj/javaprims.h: Rebuilt class list.
1019 * Makefile.in: Rebuilt.
1020 * Makefile.am (core_java_source_files): Added new file.
1021 * java/util/IdentityHashMap.java: New file.
1023 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1026 2001-08-09 Tom Tromey <tromey@redhat.com>
1028 * java/awt/image/SampleModel.java (getPixel): Set correct array
1029 element. From Chris Meyer.
1031 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1033 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1034 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1036 2001-08-06 Tom Tromey <tromey@redhat.com>
1038 * java/io/InputStreamReader.java (refill): Only call refill on
1039 BufferedInputStream when appropriate constraints are met.
1041 2001-08-05 Tom Tromey <tromey@redhat.com>
1043 * java/io/StringWriter.java: Merged with Classpath.
1044 * java/io/InputStream.java: Merged with Classpath.
1045 * java/io/OutputStream.java: Merged with Classpath.
1046 * java/io/PushbackInputStream.java: Merged with Classpath.
1047 * java/io/CharArrayReader.java: Merged with Classpath.
1048 * java/io/CharArrayWriter.java: Merged with Classpath.
1050 2001-08-02 Tom Tromey <tromey@redhat.com>
1052 * prims.cc (JNI_OnLoad): Don't declare.
1053 (_JNI_OnLoad): Don't define.
1054 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1056 2001-08-02 Tom Tromey <tromey@redhat.com>
1058 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1060 (skipBytes): Don't fail if seeking past end of file.
1061 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1063 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1065 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1067 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1069 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1071 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1073 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1074 to initialize global_ref_table/local_ref_table.
1076 2001-08-02 Tom Tromey <tromey@redhat.com>
1078 * configure: Rebuilt.
1079 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1082 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1084 * include/posix.h (_POSIX_PII_SOCKET): Define.
1085 * configure.in (HAVE_SOCKLEN_T): Define.
1086 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1088 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1089 (java::net::PlainSocketImpl::accept): Use it.
1090 Fixes PRs libgcj/3694, libgcj/3696.
1092 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1093 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1094 * configure, include/config.h.in: Regenerate.
1095 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1096 (mcastGrp): Likewise.
1097 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1098 missing IPV6_MULTICAST_IF.
1099 Fixes PR libgcj/3694.
1101 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1103 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1105 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1107 * Makefile.in: Rebuilt.
1108 * Makefile.am (GCJLINK): Added --tag=GCJ.
1109 (LIBLINK): Likewise.
1111 2001-07-30 Tom Tromey <tromey@redhat.com>
1113 * java/util/Date.java: Re-merged with Classpath.
1115 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1117 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1118 (_Jv_bind): New static function.
1119 (bind): Use _Jv_bind.
1120 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1121 (_Jv_bind, _Jv_connect): New static functions.
1122 (bind): Use _Jv_bind.
1123 (connect): Use _Jv_connect.
1125 2001-07-30 Tom Tromey <tromey@redhat.com>
1126 Corey Minyard <minyard@acm.org>
1128 * gnu/gcj/convert/natIconv.cc (done): New methods.
1129 * gnu/gcj/convert/Output_iconv.java (done): New method.
1130 * gnu/gcj/convert/Input_iconv.java (done): New method.
1131 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1133 (getDefaultEncodingClass): Removed.
1134 (getDefaultEncoder): Use getEncoder.
1136 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1138 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1140 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1142 (getDefaultDecodingClass): Removed.
1143 (getDefaultDecoder): Use getDecoder.
1144 (getDecoder): Look up decoder in cache.
1146 * java/lang/natString.cc (init): Call `done' on converter.
1147 (getBytes): Likewise.
1149 2001-07-30 Tom Tromey <tromey@redhat.com>
1151 * java/lang/Integer.java: Merged with Classpath.
1153 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1155 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1156 setTimeInMillis() to set the default/current time.
1158 2001-07-29 Mark Wielaard <mark@klomp.org>
1160 * HACKING: add description on updating namespace
1162 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1164 * java/util/Calendar.java (set): Never recompute fields here. They
1165 will already be set if someone set time explicitly, and it can cause
1166 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1167 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1168 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1170 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1171 (readObject): Call set2DigitYearStart if appropriate so that
1172 defaultCentury is calculated.
1173 (SimpleDateFormat): Don't bother clearing calendar here. Call
1174 computeCenturyStart().
1175 (set2DigitYearStart): Calculate and set defaultCentury.
1176 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1178 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1179 2 numeric digits, use the 80-20 heuristic to parse the value into a
1180 default century based on defaultCenturyStart.
1181 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1183 2001-07-25 Tom Tromey <tromey@redhat.com>
1185 * Makefile.in: Rebuilt.
1186 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1189 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1191 * prims.cc (_JNI_OnLoad): New function.
1192 (JNI_OnLoad): Use it.
1193 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1195 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1197 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1198 Makefile.in: Regenerate.
1200 2001-07-24 Tom Tromey <tromey@redhat.com>
1202 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1205 2001-07-23 Tom Tromey <tromey@redhat.com>
1207 * gcj/javaprims.h: Rebuilt class list.
1208 * Makefile.in: Rebuilt.
1209 * Makefile.am (core_java_source_files): Added VMClassLoader.
1210 * java/lang/VMClassLoader.java: New file.
1211 * java/lang/Boolean.java: Merged with Classpath.
1212 * java/lang/Byte.java: Merged with Classpath.
1213 * java/lang/Integer.java: Merged with Classpath.
1214 * java/lang/Long.java: Merged with Classpath.
1215 * java/lang/Number.java: Merged with Classpath.
1216 * java/lang/Short.java: Merged with Classpath.
1218 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1220 * configure.host: Enable hash synchronization for alpha*-*.
1221 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1223 * java/lang/natObject.cc (compare_and_swap, release_set,
1224 compare_and_swap_release): Added inline functions for alpha.
1226 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1228 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1229 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1230 back to old RFC 2133 variants if missing.
1232 2001-07-18 Tom Tromey <tromey@redhat.com>
1234 * java/io/natFileWin32.cc (_access): Renamed.
1236 * java/io/natFile.cc (_access): Renamed.
1238 * java/io/File.java (access, stat): Add leading `_' to name.
1239 Updated all callers.
1241 2001-07-18 Tom Tromey <tromey@redhat.com>
1244 * libgcj.spec.in (*lib): Added LIBICONV.
1245 * configure: Rebuilt.
1246 * configure.in: Call AM_ICONV. Don't check for iconv function.
1247 Add parameters to JV_HASH_SYNCHRONIZATION define.
1248 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1250 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1252 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1253 not by setting its size field.
1255 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1257 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1260 2001-07-12 Tom Tromey <tromey@redhat.com>
1261 David Brownell <david-b@pacbell.net>
1263 Fix for PR libgcj/3426:
1264 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1266 (read): Throw exception if character conversion fails.
1267 * java/io/BufferedInputStream.java (refill): Now package-private.
1268 * java/io/InputStreamReader.java (ready): Simplified.
1269 (refill): New method.
1272 2001-07-12 Tom Tromey <tromey@redhat.com>
1274 Report from Henner Zeller:
1275 * java/io/FileOutputStream.java (FileOutputStream): Throw
1276 FileNotFoundException, not IOException.
1278 2001-07-10 Anthony Green <green@redhat.com>
1280 * Makefile.in: Rebuilt.
1281 * Makefile.am: Add new files.
1282 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1283 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1284 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1285 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1286 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1287 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1288 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1289 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1290 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1291 org/w3c/dom/ranges/DocumentRange.java,
1292 org/w3c/dom/ranges/Range.java,
1293 org/w3c/dom/ranges/RangeException.java,
1294 org/w3c/dom/traversal/DocumentTraversal.java,
1295 org/w3c/dom/traversal/NodeFilter.java,
1296 org/w3c/dom/traversal/NodeIterator.java,
1297 org/w3c/dom/traversal/TreeWalker.java,
1298 org/xml/sax/ext/DeclHandler.java,
1299 org/xml/sax/ext/LexicalHandler.java,
1300 org/xml/sax/helpers/AttributeListImpl.java,
1301 org/xml/sax/helpers/AttributesImpl.java,
1302 org/xml/sax/helpers/DefaultHandler.java,
1303 org/xml/sax/helpers/LocatorImpl.java,
1304 org/xml/sax/helpers/NamespaceSupport.java,
1305 org/xml/sax/helpers/ParserAdapter.java,
1306 org/xml/sax/helpers/ParserFactory.java,
1307 org/xml/sax/helpers/XMLFilterImpl.java,
1308 org/xml/sax/helpers/XMLReaderAdapter.java,
1309 org/xml/sax/helpers/XMLReaderFactory.java,
1310 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1311 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1312 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1313 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1314 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1315 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1316 org/xml/sax/SAXNotRecognizedException.java,
1317 org/xml/sax/SAXNotSupportedException.java,
1318 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1319 org/xml/sax/XMLReader.java: New files.
1321 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1323 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1324 * Makefile.in: Regenerate.
1325 * java/lang/ThreadLocal.java: Initial import.
1327 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1329 * Makefile.am (libgcj.jar): Don't recursively make
1330 built_java_source_files. Avoid long command lines.
1331 Don't change to $(srcdir) to invoke javac.
1332 (libgcj.la, libgcjx.la); Avoid long command lines.
1333 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1334 * Makefile.in: Rebuilt.
1336 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1338 * include/i386-signal.h: Don't do anything with unsigned divide
1339 overflow except throw an exception.
1341 2001-07-05 Tom Tromey <tromey@redhat.com>
1344 * java/lang/Class.h (Class(void)): Now private. Removed
1345 implementation. From dmorsberger@sensysdl.com.
1347 2001-07-02 Tom Tromey <tromey@redhat.com>
1349 Fix for PR bootstrap/3281:
1350 * aclocal.m4, configure: Rebuilt.
1351 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1352 Correctly compute libgcj_basedir.
1353 (mkinstalldirs): Define and subst.
1355 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1358 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1361 2001-06-27 Tom Tromey <tromey@redhat.com>
1363 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1366 2001-06-25 Tom Tromey <tromey@redhat.com>
1368 * scripts/encodings.pl: Generate lower-case names. Updated URL
1369 for `character-sets' file.
1370 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1372 Rebuilt list of aliases.
1374 2001-06-25 Tom Tromey <tromey@redhat.com>
1376 * java/io/natFileDescriptorPosix.cc (open): Change error message
1377 formatting. From David Brownell.
1379 2001-06-21 Tom Tromey <tromey@redhat.com>
1381 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1384 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1386 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1387 extraneous/malformed sign word.
1389 2001-06-15 Tom Tromey <tromey@redhat.com>
1391 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1393 2001-06-15 Tom Tromey <tromey@redhat.com>
1395 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1396 NULL if no library on the list has the symbol.
1397 (init): Call add_library on the program itself.
1398 * prims.cc (JvRunMain): Initialize Runtime before searching for
1400 (_Jv_RunMain): Likewise.
1402 2001-06-15 Tom Tromey <tromey@redhat.com>
1404 * jni.cc (ClassClass): Removed; updated all users.
1405 (ObjectClass): Likewise.
1406 (ThrowableClass): Likewise.
1407 (MethodClass): Likewise.
1408 (ThreadGroupClass): Likewise.
1409 (local_ref_table): Renamed from `ref_table'.
1410 (global_ref_table): New global.
1411 (_Jv_JNI_Init): Initialize both ref tables.
1412 (mark_for_gc): Added `ref_table' parameter.
1413 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1415 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1416 (_Jv_JNI_DeleteGlobalRef): Likewise.
1417 (_Jv_JNI_DeleteLocalRef): Likewise.
1418 (_Jv_JNI_NewLocalRef): Likewise.
1419 (_Jv_JNI_PopLocalFrame): Likewise.
1420 (_Jv_JNI_GetStringChars): Likewise.
1421 (_Jv_JNI_ReleaseStringChars): Likewise.
1422 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1423 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1425 2001-06-14 Tom Tromey <tromey@redhat.com>
1427 Fix for PR libgcj/3144:
1428 * java/util/Date.java: Merged with Classpath.
1430 2001-06-12 Tom Tromey <tromey@redhat.com>
1432 * aclocal.m4, configure: Rebuilt.
1433 * acinclude.m4: Find configure.host in srcdir.
1435 2001-06-07 Tom Tromey <tromey@redhat.com>
1437 Fix for PR libgcj/3059:
1438 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1439 * Makefile.in: Rebuilt.
1440 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1442 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1444 * exception.cc (cstdlib): Replaces stdlib.h.
1445 (_Jv_Throw): Use std::abort().
1446 (PERSONALITY_FUNCTION): Likewise.
1448 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1450 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1451 nothing, as in autoconf 2.50.
1452 * aclocal.m4, configure: Rebuilt.
1454 2001-06-08 Tom Tromey <tromey@redhat.com>
1456 * configure: Rebuilt.
1457 * configure.in: Compute new aux dir using `pwd'.
1459 2001-06-07 Tom Tromey <tromey@redhat.com>
1461 For PR bootstrap/3075:
1462 * configure, aclocal.m4, Makefile.am: Rebuilt.
1463 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1464 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1465 relative to libgcj_basedir.
1466 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1467 AC_CANONICAL_SYSTEM here.
1468 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1470 ($(extra_headers)): New target.
1472 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1473 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1475 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1476 table index is within allowed bounds. Ensure that we dont try to access
1477 class itable at a negative offset. Avoid an ancestor table lookup if
1478 source is a primitive type class.
1479 (isInstance): Remove redundant isPrimitive() check.
1481 2001-06-04 Tom Tromey <tromey@redhat.com>
1483 * java/security/PublicKey.java: Extend Key.
1484 * java/security/PrivateKey.java: Extend Key.
1486 2001-06-02 Anthony Green <green@redhat.com>
1488 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1489 alternate when USE_LTDL not defined.
1491 2001-06-02 Anthony Green <green@redhat.com>
1493 * configure: Rebuild.
1494 * configure.in: Remove data_start hack.
1495 * libgcj.spec.in: Ditto.
1496 * Makefile.in: Rebuild.
1497 * Makefile.am: Ditto.
1498 * libgcjdata.c: Remove.
1500 2001-06-02 Anthony Green <green@redhat.com>
1502 * configure: Rebuild.
1503 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1504 --without-libffi option. Tweak --disable-java-net processing.
1505 * Makefile.in: Rebuild.
1506 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1507 * include/config.h.in: Rebuild.
1508 * acconfig.h (USE_LIBFFI): Define.
1509 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1511 2001-06-02 Anthony Green <green@redhat.com>
1513 * configure: Rebuilt.
1514 * configure.in: Test for sigaction on native builds.
1515 * prims.cc: Check HAVE_SIGACTION.
1516 * include/config.h.in: Rebuilt.
1518 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1520 * natFile.cc (get_entry): Removed functions.
1521 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1522 Allocate enough storage for d_name if using readdir_r.
1524 2001-05-31 Tom Tromey <tromey@redhat.com>
1526 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1528 (write): Loop until write completes. From Corey Minyard.
1530 2001-05-29 Laurent Guerby <guerby@acm.org>
1532 * java/awt/geom/Rectangle2D.java: fix doc typo.
1534 2001-05-31 Tom Tromey <tromey@redhat.com>
1536 * java/sql/DriverManager.java (getDrivers): Handle case where
1537 driver's class loader is null. From Corey Minyard.
1539 2001-05-29 Tom Tromey <tromey@redhat.com>
1541 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1543 * configure: Rebuilt.
1544 * configure.in: Only add multilib support code if we just rebuilt
1547 2001-05-29 Andrew Haley <aph@redhat.com>
1549 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1550 pointer: the dwarf unwinder in libgcc will do everything that's
1552 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1553 more than we absolutely need to.
1554 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1555 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1557 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1559 * configure: Rebuilt.
1560 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1562 (SIGNAL_HANDLER): Use siginfo style handler.
1563 (INIT_SEGV): Likewise.
1564 (INIT_FPE): Likewise.
1565 * include/ppc-signal.h: Delete whole file.
1567 2001-05-24 Tom Tromey <tromey@redhat.com>
1569 * java/lang/natString.cc (init): Throw
1570 ArrayIndexOutOfBoundsException.
1571 (getChars): Likewise.
1572 (getBytes): Likewise.
1573 (valueOf): Likewise.
1575 * configure.in: Only allow hash synchronization when POSIX threads
1577 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1578 of sync info object.
1580 2001-05-23 Tom Tromey <tromey@redhat.com>
1582 * Makefile.in: Rebuilt.
1583 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1585 Revert patch of 2001-05-21:
1586 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1587 (libgcj_la_LIBADD): Likewise.
1588 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1589 (libgcjx_la_LIBADD): Likewise.
1591 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1592 * gcj/Makefile.in: Rebuilt.
1593 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1594 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1595 * gcj/libgcj-config.h.in: New file.
1596 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1597 * configure: Rebuilt.
1598 * configure.in: Enable hash synchronization by default on some
1600 (HASH_SYNC_SPEC): New subst.
1601 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1602 Correctly use `test -z' instead of `test -n' in a couple places.
1603 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1605 * configure.host (enable_java_net_default): Initialize.
1606 (enable_hash_synchronization_default): New variable.
1608 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1610 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1611 synchronization in use.
1612 (_Jv_MarkArray): Likewise.
1613 (_Jv_AllocBytes): Don't check return result.
1614 (handle_out_of_memory): New function.
1615 (_Jv_InitGC): Set GC_oom_fn.
1616 (trace_one_vtable): New global.
1617 (_Jv_AllocTraceOne): New function.
1618 * configure.in: Added --enable-hash-synchronization.
1619 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1620 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1621 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1622 (_Jv_AllocArray): Likewise.
1623 (_Jv_AllocBytes): Likewise.
1624 (_Jv_AllocPtrFreeObject): New function.
1625 (_Jv_AllocTraceOne): Likewise.
1626 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1628 (self_cache): New global.
1629 (_Jv_ThreadSelf_out_of_line): New function.
1630 * prims.cc (_Jv_AllocBytesChecked): Removed.
1631 (_Jv_ThrowNoMemory): New function.
1632 (_Jv_AllocObject): Don't check for null return from allocator.
1633 (_Jv_NewObjectArray): Likewise.
1634 (_Jv_AllocPtrFreeObject): New function.
1635 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1636 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1637 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1638 * include/boehm-gc.h (_Jv_AllocObj): Define.
1639 (_Jv_AllocPtrFreeObj): Define.
1640 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1641 (_Jv_ThrowNoMemory): Declare.
1642 (_Jv_AllocTraceOne): Declare.
1643 (_Jv_AllocBytesChecked): Removed.
1644 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1645 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1646 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1648 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1650 * java/lang/Object.h (sync_info): Conditional upon presence of
1651 hash synchronization.
1652 * java/lang/natObject.cc: Much new code to handle thin locks and
1653 hash synchronization.
1654 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1657 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1659 * gij.cc (version): Update copyright year.
1661 2001-05-22 Anthony Green <green@redhat.com>
1663 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1666 2001-05-21 Per Bothner <per@bothner.com>
1668 Implement invocation interface; don't create new thread for main.
1669 * java/lang/Thread.java (gen_name): Make native.
1670 (<init>(Thread,THreadGroup,Runnable,String)): New private
1671 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1672 * java/lang/natThread.cc (gen_name): New implementation.
1673 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1674 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1675 (_Jv_CreateJavaVM): New runtime initialization procedure.
1676 (runFirst): New proecdure - mostly code from old FirstThread::run.
1677 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1678 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1679 JvDetachCurrentThread): New inline wrappers.
1680 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1681 _Jv_DetachCurrentThread): New declarations.
1682 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1683 (getMain): new static method.
1684 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1685 by runFirst in prims.cc.
1686 (java/lang/Thread.h): Update for new invocation interface.
1687 * include/posix-threads.h (_Jv_ThreadRegister,
1688 _Jv_ThreadUnRegister): New declarations.
1689 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1690 (really_start): Use new _Jv_ThreadRegister.
1691 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1692 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1693 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1694 Complain of called when _Jv_OnlyThread already set.
1695 (_Jv_ThreadStart): Always JvFail.
1696 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1697 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1698 * win32-threads.cc (struct starter): Remove objet field -
1699 we use _Jv_Thread_t's new thread_obj field instead.
1700 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1701 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1702 (really_start): Use new _Jv_ThreadRegister.
1703 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1704 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1705 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1706 Removed - no longer needed with new invocation interface.
1707 * Makefile.am: Update for removed/added files.
1709 2001-05-21 Per Bothner <per@bothner.com>
1711 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1712 (libgcj_la_LIBADD): Likewise.
1713 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1715 2001-05-21 Per Bothner <per@bothner.com>
1717 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1718 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1719 taken from old Integer.toString code.
1720 (Integer::valueOf): Use _Jv_FormatInt.
1721 * java/lang/Integer.java (toString): Just use call String.valueOf.
1722 * java/lang/Long.java (toString): Fix typo in comment.
1723 * java/lang/String.java (valueOf(int)): Make native.
1724 * java/lang/StringBuffer.java (append(int)): Make native.
1725 * java/lang/natStringBuffer.cc: New file, for append(jint).
1726 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1728 2001-05-21 Tom Tromey <tromey@redhat.com>
1730 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1732 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1734 * include/dwarf2-signal.h: New file.
1735 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1736 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1737 * configure: Rebuilt.
1739 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1741 * configure.in: Update boehm-gc include dir for new GC version.
1742 * configure: Rebuilt.
1743 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1745 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1746 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1747 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1750 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1752 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1753 (_Jv_MutexInit): Likewise.
1755 2001-05-18 Tom Tromey <tromey@redhat.com>
1757 * Makefile.in: Rebuilt.
1758 * Makefile.am (awt_java_source_files): Added Polygon.java.
1760 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1762 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1763 * gcj/javaprims.h: ... here.
1764 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1766 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1768 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1769 with length of ioffset table.
1770 (_Jv_IsAssignableFrom): Likewise.
1772 2001-05-17 Per Bothner <per@bothner.com>
1774 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1776 2001-05-16 Tom Tromey <tromey@redhat.com>
1778 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1781 2001-05-15 Tom Tromey <tromey@redhat.com>
1783 * java/util/GregorianCalendar.java (computeTime): Only call
1786 2001-05-14 Tom Tromey <tromey@redhat.com>
1788 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1789 ZONE_OFFSET just before computing the time.
1791 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1793 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1794 * Makefile.in: Regenerate (by hand).
1795 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1796 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1798 2001-05-11 Richard Henderson <rth@redhat.com>
1800 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1801 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1803 2001-05-11 Richard Henderson <rth@redhat.com>
1805 * exception.cc: Include unwind-pe.h. Remove all pointer
1808 2001-05-10 Tom Tromey <tromey@redhat.com>
1810 * Makefile.in: Rebuilt.
1811 * Makefile.am (awt_java_source_files): Added Polygon.java.
1812 * java/awt/Polygon.java: New file.
1814 * java/awt/geom/AffineTransform.java
1815 (setToRotation(double,double,double)): New method.
1816 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1817 (setToShear): Likewise.
1819 2001-05-10 Tom Tromey <tromey@redhat.com>
1821 * java/util/GregorianCalendar.java: Imported from Classpath.
1822 * gnu/java/locale/LocaleInformation_nl.java: New file from
1824 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1825 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1826 * gnu/java/locale/LocaleInformation.java: Likewise.
1827 * natGregorianCalendar.cc: Removed.
1828 * Makefile.in: Rebuilt.
1829 * Makefile.am (nat_source_files): Removed
1830 natGregorianCalendar.cc.
1832 2001-05-10 Tom Tromey <tromey@redhat.com>
1834 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1836 (defaultCenturyStart): Use it.
1837 (readObject): Likewise.
1838 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1840 (parse): Copy the calendar before modifying it. Correctly handle
1843 * java/util/Calendar.java (clear): Set field value(s) to 0.
1845 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1847 * Calendar.java (get): Clear areFieldsSet if requested field
1849 (set): Unset fields that depend on new value.
1851 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1853 * java/lang/Class.h (_Jv_Self): New union type.
1854 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1855 Jeff Sturm and Fergus Henderson.
1857 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1859 * java/lang/ClassLoader.java: Remove dead code fragment.
1861 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1863 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1865 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1867 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1869 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1870 * configure.host (EXCEPTIONSPEC): New.
1871 * configure.in (EXCEPTIONSPEC): New.
1872 * configure: Rebuilt.
1874 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1876 * doc/*.texi: Remove generated documentation.
1878 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1880 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1881 (performDelete): Fix #endif placement.
1883 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1885 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1886 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1887 (_Jv_ThreadDestroyData): Use _Jv_Free.
1888 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1891 2001-04-27 Tom Tromey <tromey@redhat.com>
1893 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1895 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1897 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1899 * include/jni.h (struct JNINativeInterface): Fixed types in
1900 Get/Set*ArrayRegion declarations.
1901 (class _Jv_JNIEnv): Likewise.
1903 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1905 * configure.in: Obtain THREADS with `gcc -v'.
1906 * configure: Rebuilt.
1908 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1911 * java/io/ObjectStreamClass.java (setClass): Calculate
1912 serialVersionUID for local class and compare it against the UID
1913 from the Object Stream. Throw InvalidClassException upon mismatch.
1914 (setUID): Renamed to...
1915 (getClassUID): this. Return the calculated class UID rather than
1916 setting uid field directly.
1917 (getDefinedSUID): Removed.
1918 * java/io/ObjectInputStream.java (resolveClass): Use the
1919 three-argument Class.forName().
1920 * java/io/InvalidClassException (toString): Don't include classname in
1921 result if it is null.
1923 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1925 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1926 Wrap use of inet_pton in HAVE_INET6.
1928 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1930 java.security merge and ClassLoader compliance fixes.
1932 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1933 New protectionDomain field.
1934 (forName): Add initialize parameter. Fixes declaration to comply with
1936 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1937 variant. Honour "initialize" flag.
1938 (getProtectionDomain0): New method.
1939 * java/lang/Class.java: Fix forName() declaration.
1940 (getPackage): New method based on Classpath implementation.
1941 (getProtectionDomain0): New native method decl.
1942 (getProtectionDomain): New method.
1943 * java/lang/ClassLoader.java (getParent): Now final.
1944 (definedPackages): New field.
1946 (defineClass): New variant with protectionDomain argument.
1947 (definePackage): New.
1949 (findSystemClass): Now final.
1950 (getSystemResourceAsStream): Remove redundant "final" modifier.
1951 (getSystemResource): Remove redundant "final" modifier.
1952 (getResources): Now final.
1953 (protectionDomainPermission): New static field.
1954 (unknownProtectionDomain): Ditto.
1955 (defaultProtectionDomain): Ditto.
1956 (getSystemClassLoader): Now non-native.
1957 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1958 arguments for Class.forName().
1959 * java/lang/Package.java: New file.
1960 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1961 (instance): Static initialize singleton.
1962 (findClass): Override this, not findSystemClass.
1963 * java/lang/natClassLoader.cc (defineClass0): Set class's
1964 protectionDomain field as specified.
1965 (getSystemClassLoader): Removed.
1966 (findClass): Renamed from findSystemClass. Call the interpreter via
1967 URLClassLoader.findClass if loading class via dlopen fails.
1969 * java/security/*.java: java.security import/merge with Classpath.
1970 * java/security/acl/*.java: Likewise.
1971 * java/security/interfaces/*.java: Likewise.
1972 * java/security/spec/*.java: Likewise.
1973 * java/net/NetPermission.java: Likewise.
1974 * java/net/SocketPermission.java: Likewise.
1975 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1977 * Makefile.am: Add new classes.
1978 * Makefile.in: Rebuilt.
1979 * gcj/javaprims.h: CNI namespace rebuild.
1981 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1983 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1984 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1985 * configure: Rebuilt.
1987 2001-04-21 Tom Tromey <tromey@redhat.com>
1989 * Makefile.in: Rebuilt.
1990 * Makefile.am (awt_java_source_files): Added Line2D.java.
1991 * java/awt/geom/Line2D.java: Wrote.
1993 * java/awt/Menu.java (addNotify): Wrote.
1995 * java/awt/PopupMenu.java (addNotify): Implemented.
1998 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1999 * java/awt/List.java (addNotify): Call super.addNotify.
2000 * java/awt/Label.java (addNotify): Call super.addNotify.
2001 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2002 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2003 * java/awt/Choice.java (addNotify): Call super.addNotify.
2004 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2005 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2007 * java/awt/List.java (replaceItem): Notify peer.
2009 * java/awt/geom/Rectangle2D.java
2010 (Float.setRect(float,float,float,float)): New method.
2012 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2015 * java/awt/RenderingHints.java (Key): Class now public.
2017 * java/awt/Rectangle.java (Rectangle): Now implements
2019 (getPathIterator): Removed.
2021 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2024 * java/awt/FileDialog.java: Wrote.
2026 * java/awt/EventQueue.java (isDispatchThread): Now public.
2027 (invokeLater): Likewise.
2029 * java/awt/Component.java (setCursor): Update peer.
2030 (getFontMetrics): Use peer.
2032 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2035 2001-04-20 Tom Tromey <tromey@redhat.com>
2037 * java/awt/List.java: Wrote.
2038 * java/awt/Dialog.java: Wrote.
2040 2001-04-20 Warren Levy <warrenl@redhat.com>
2042 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2043 * java/text/SimpleDateFormat.java
2044 (indexInArray): Removed private method.
2045 (processYear): Removed private method.
2046 (parseLenient): Removed private method.
2047 (parseLeadingZeros): Removed private method.
2048 (parseStrict): Removed private method.
2049 (expect): Added new private method.
2050 (parse): Reverted to pre-Classpath merge version with minor fixes.
2051 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2054 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2056 * java/io/File.java (normalizePath): New private method.
2057 (File (String)): Use normalizePath().
2058 (File (String, String)): Likewise.
2060 * Makefile.am (libffi_files): Removed.
2061 (libgcj.la): Link libffi as a convenience library instead of
2062 refering to its object files directly.
2063 * Makefile.in: Rebuilt.
2065 2001-04-08 Per Bothner <per@bothner.com>
2067 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2068 Recalculate hash, since Utf8Const's hash is only 16 bits.
2070 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2071 bits of hash to calculate step for chaining.
2073 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2074 when 2/3 full, rather than 3/4 full.
2076 2001-04-06 Tom Tromey <tromey@redhat.com>
2078 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2079 (wrap_value<T*>): New specialization.
2080 (_Jv_JNI_PopLocalFrame): Update env->locals.
2082 2001-04-05 Tom Tromey <tromey@redhat.com>
2084 * libtool-version: Updated current.
2086 2001-04-04 Andreas Jaeger <aj@suse.de>
2088 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2089 * gcj/Makefile.in: Rebuilt.
2090 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2091 * Makefile.in: Rebuilt.
2092 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2093 * testsuite/Makefile.in: Rebuild.
2094 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2095 * include/Makefile.in: Rebuild.
2097 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2099 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2100 compiled test', not 'execution from source compiled test'.
2101 Use UNTESTED, not XFAIL, for tests which are not run because
2102 they depend on a previous test which failed.
2104 2001-04-02 Richard Henderson <rth@redhat.com>
2106 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2107 the same tree as gcc.
2108 * configure: Rebuilt.
2110 * exception.cc (_Jv_Throw): Clarify commentary.
2112 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2114 * jni.cc (wrap_value<jclass>): New specialization.
2116 2001-04-02 Tom Tromey <tromey@redhat.com>
2118 * java/io/PrintStream.java (out): Removed field. Fixes PR
2120 (write): Call flush, not out.flush, per spec.
2121 (close): Flush output stream, per spec. Handle
2122 InterruptedIOException.
2123 (checkError): Likewise.
2124 (flush, print, write): Handle InterruptedIOException per spec.
2125 (PrintStream): Don't create BufferedOutputStream.
2126 (work_bytes): New field.
2127 (writeChars): Use work_bytes. Don't assume `out' is a
2128 BufferedOutputStream.
2130 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2132 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2135 2001-03-30 Tom Tromey <tromey@redhat.com>
2137 * jni.cc (add_char): Correctly encode non-ascii characters.
2138 (add_char): Define even when INTERPRETER not defined.
2139 (mangled_name): Likewise.
2140 (_Jv_GetJNIEnvNewFrame): Likewise.
2141 (_Jv_LookupJNIMethod): Likewise.
2143 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2145 * configure.host: Enable interpreter for PPC.
2147 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2149 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2150 to "file.separator", "path.separator", and "java.io.tmpdir" property
2152 * java/io/File.java: Likewise.
2153 * java/io/natFile.cc (init_native): Likewise.
2154 * java/io/natFileWin32.cc (init_native): Likewise.
2156 2001-04-01 Per Bothner <per@bothner.com>
2158 * java/lang/natString.cc (intern): If string's data does not point to
2159 this String, make a fresh String that does.
2161 * java/lang/natString.cc (unintern): Replace by static function.
2162 * java/lang/String.java (unintern): Remove method.
2164 2001-04-01 Per Bothner <per@bothner.com>
2166 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2167 (finish): def.deflate needs to be called in a loop.
2168 (inbuf, inbufLength): New private fields.
2169 (write(int)): Use inbuf.
2170 (write(byte[],int,int): Check if pending output in inbuf.
2171 * ZipOutputStream.java: Don't use Deflater if stored.
2172 Use a Checksum object directly, not via a CheckedOutputStream.
2173 (uncompressed_size): New field,
2174 (closeEntry): Only write data_directory if needed.
2175 (write): If STORED, write directly.
2176 Always update crc, and uncompressed_size.
2177 (write_entry): Fix lots of protocol erors.
2179 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2181 1.3-Compliant Implementation of java.io.File.
2182 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2183 "path.separator", and "java.io.tmpdir" from the File class, instead
2184 of setting them explicitly.
2185 * java/io/File.java: Do not canonicalize paths for security manager
2186 checks. Call init_native() from static initializer. Do not pass path
2187 argument to native methods. New native method declarations. Some
2188 security manager checks moved to checkWrite().
2189 (equals): Check file system case sensitivity and act appropriatly.
2190 (hashCode): Likewise.
2191 (isHidden): New method implemented.
2192 (performList): Changed prototype. Now takes a class argument specifying
2193 the class of the returned array: Strings or File objects. Also added
2194 FileFilter argument.
2195 (listFiles): New variants with "File" return type implemented.
2196 (createTempFile): Use createNewFile(). Use maxPathLen.
2197 (setReadOnly): New method implemented.
2198 (listRoots): Likewise.
2199 (compareTo): Likewise.
2200 (setLastModified): Likewise.
2201 (checkWrite): New method.
2203 * java/io/natFile.cc: Various functions no longer take canonical path
2205 (stat): Handle ISHIDDEN query.
2206 (isAbsolute): Remove WIN32 cruft.
2207 (performList): New arguments. Handle returning either File[] or String[]
2208 arrays. Check with FileFilter or FilenameFilter arguments as
2209 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2210 (performSetReadOnly): New method implemented.
2211 (performListRoots): Likewise.
2212 (performSetLastModified): Likewise.
2213 (performCreate): Likewise.
2214 (init_native): New initialization function.
2215 * java/io/natFileWin32.cc: Various functions no longer take canonical
2217 (stat): Add FIXME about ISHIDDEN query.
2218 (performList): New arguments. Handle returning either File[] or String[]
2219 arrays. Check with FileFilter or FilenameFilter arguments as
2220 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2221 (performSetReadOnly): New. Stubbed.
2222 (performListRoots): Likewise.
2223 (performSetLastModified): Likewise.
2224 (performCreate): Likewise.
2225 (init_native) New initialization function.
2226 * configure.in: Check for utime() and chmod().
2227 * configure: Rebuilt.
2228 * include/config.h.in: Rebuilt.
2230 Resolves PR libgcj/1759.
2232 2001-03-28 Richard Henderson <rth@redhat.com>
2234 IA-64 ABI Exception Handling:
2235 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2236 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2237 Remove EXCEPTIONSPEC.
2238 * configure.host (libgcj_sjlj): Remove.
2239 * configure.in (EXCEPTIONSPEC): Remove.
2240 (enable-sjlj-exceptions): Detect if not specified.
2241 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2242 what header we're looking for.
2243 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2244 * Makefile.in, configure: Regenerate.
2245 * exception.cc: Don't declare libgcc2 stuff.
2246 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2247 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2248 (win32_get_restart_frame): Remove.
2249 (struct java_exception_header): New.
2250 (__gcj_exception_class): New.
2251 (get_exception_header_from_ue): New.
2252 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2253 (size_of_encoded_value, read_encoded_value): New.
2254 (read_uleb128, read_sleb128, parse_lsda_header): New.
2255 (get_ttype_entry, __gcj_personality_sj0): New.
2256 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2258 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2260 * javax/naming/InitialContext.java (init): Fix typo.
2261 (composeName): Remove unnecessary semicolon.
2262 (addToEnvironment): Remove unnecessary semicolon.
2263 (addToEnvironment): Use put() instead of add().
2265 * javax/naming/InitialContext.java (InitialContext):
2267 (destroySubcontext): Method doesn't return a result.
2268 * javax/naming/Context.java: Import java.util.Hashtable.
2269 * javax/naming/Name.java: Import java.util.Enumeration.
2271 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2273 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2274 objects in subdirectories.
2275 * Makefile.in: Rebuilt.
2277 2001-03-25 Richard Henderson <rth@redhat.com>
2279 * exception.cc (java_eh_info): Make value type jthrowable.
2280 (_Jv_type_matcher): Remove now unneeded cast.
2281 (_Jv_Throw): Make argument type jthrowable. Munge name
2282 for SJLJ_EXCEPTIONS here ...
2283 * gcj/cni.h: ... not here.
2285 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2287 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2288 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2289 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2290 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2291 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2292 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2293 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2294 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2295 java/lang/natDouble.cc, java/lang/natObject.cc,
2296 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2297 java/lang/natString.cc, java/lang/natSystem.cc,
2298 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2299 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2300 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2301 java/util/zip/natInflater.cc:
2302 Use throw, not JvThrow or _Jv_Throw.
2304 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2306 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2307 paramater, bump it to 1.
2308 * java/util/Hashtable.java (Hashtable): Likewise.
2310 2001-03-23 Per Bothner <per@bothner.com>
2312 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2313 check for errors, since we don't want to throw exception on
2314 overflow/underflow. Instead, trim whitespace, and then check that
2315 _strtod_r uses up all the rest of the string.
2317 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2318 ancestors array is invalid for interfaces, so do that *after*
2319 check that the target type is not an interface.
2321 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2323 * prims.cc (_Jv_FindClassFromSignature): Check return of
2324 recursive call. Do not abort on invalid signature; return NULL
2327 2001-03-22 Tom Tromey <tromey@redhat.com>
2329 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2330 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2332 * include/jvm.h (_Jv_ResolveField): Declare.
2333 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2334 * resolve.cc (_Jv_ResolveField): No longer conditional on
2337 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2339 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2340 for libtool hacking.
2341 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2342 to a temporary file, then invoke libtool with the -objectlist
2344 (libgcjx.la): Likewise.
2345 * Makefile.in: Rebuilt.
2347 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2349 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2351 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2353 * jni.cc (add_char): Handle `.' like `/'.
2355 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2357 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2358 initialize if exception_types is null.
2359 * java/lang/reflect/Constructor.java: Likewise.
2360 * java/lang/reflect/natConstructor.cc (getType): Initialize
2361 exception_types to an empty Object array.
2363 2001-03-21 Tom Tromey <tromey@redhat.com>
2365 * configure: Rebuilt.
2366 * configure.in (GCJFLAGS): Subst.
2367 * Makefile.in: Rebuilt.
2368 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2369 (gij_LDFLAGS): Likewise.
2370 (JC1FLAGS): Added GCJFLAGS and removed -g.
2372 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2373 read/write case. Fixes PR libgcj/2338.
2375 2001-03-20 Warren Levy <warrenl@redhat.com>
2377 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2378 and corrected SimpleTimeZone's for the timezones hash table.
2380 2001-03-19 Per Bothner <per@bothner.com>
2382 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2383 "canonicalize" "../../xxx" to "/xxx".
2385 2001-03-19 Mark Wielaard <mark@klomp.org>
2387 * java/util/ArrayList.java: Remove RCS keywords from comments
2388 * java/util/BasicMapEntry.java: idem
2389 * java/util/Dictionary.java: idem
2390 * java/util/HashSet.java: idem
2392 * java/util/EventObject.java: reindent
2393 * java/util/Properties.java: idem
2394 * java/util/SortedMap.java: idem
2396 * java/util/Enumeration.java: Merge with Classpath
2397 * java/util/EventListener.java: idem
2398 * java/util/Observable.java: idem
2399 * java/util/Observer.java: idem
2400 * java/util/Stack.java: idem
2402 2001-03-17 Tom Tromey <tromey@redhat.com>
2404 * java/lang/natString.cc (rehash): Don't bother with memset;
2405 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2407 (UNMASK_PTR): New macro.
2408 (intern): Unmask pointer before returning it. Register finalizer
2410 (unintern): Handle case where
2411 (MASK_PTR): New macro.
2412 (PTR_MAKSED): Likewise.
2413 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2415 2001-03-01 Andrew Haley <aph@redhat.com>
2417 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2418 stackTrace buffer to a correctly aligned pointer array.
2420 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2422 * java/lang/Runtime.java (_exit): Declare new package-private native.
2423 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2424 without a security manager check.
2425 (exit): Call _exit after security check.
2426 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2428 * java/lang/System.java (setSecurityManager): If a security manager
2429 is already in place, call checkPermission.
2430 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2431 throws an exception, try to deal with it gracefully.
2432 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2433 Only try to print the subordinate stack trace if "exception" is set.
2434 Print our class name first.
2436 2001-03-08 Tom Tromey <tromey@redhat.com>
2438 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2439 info for array classes.
2440 Fixes PR libgcj/1971.
2442 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2444 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2447 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2449 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2450 instead of the new JDK1.2 API. This is simpler and makes
2451 back-porting the classes to JDK1.1 trivial.
2452 (readObject): likewise.
2454 2001-03-01 Per Bothner <per@bothner.com>
2456 Changes merged from Kawa's gnu.math.
2457 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2458 (rshift(int[],int[],int,int): Removed - not needed.
2459 (gcd): Use rshift0 rather than rshift.
2460 * java/math/BigInteger.java (setShiftRight): Likewise.
2461 (divide): Simplify by using rshift0.
2462 (divide): Zero-extend results if high-order bit set.
2464 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2466 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2469 2001-02-23 Per Bothner <per@bothner.com>
2471 Change to sometimes include class name in ClassFormatError message.
2472 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2473 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2474 boolean instead of throwing ClassFormatError on failure.
2475 (throw_class_format_error): Change static function to method.
2476 (_Jv_ClassReader): New inline methods verify_identifier,
2477 two overloads of verify_classname, verify_field_signature, and
2478 verify_method_signature
2479 * include/java-interp.h: Update declarations to return bool.
2480 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2481 ClassFormatError since _Jv_VerifyClassName now returns bool.
2483 2001-02-23 Per Bothner <per@bothner.com>
2485 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2486 c++filt to select java-style output.
2488 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2490 Fix for PR java/2040:
2491 * java/util/HashMap.java (HashMap): Don't throw exception for
2492 loadFactor > 1. Add exception messages.
2493 * java/util/Hashtable.java (Hashtable): Likewise.
2495 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2497 Disable libgcjx by default.
2498 * configure.in: Add support for --enable-java-awt configure option.
2499 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2500 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2501 * Makefile.in: Rebuilt.
2502 * configure: Rebuilt.
2504 2001-02-20 Tom Tromey <tromey@redhat.com>
2506 * java/io/PipedWriter.java (flush): Throw exception if stream
2508 * java/io/OutputStreamWriter.java (write): Throw exception if
2510 (writeChars): Don't throw exception if stream closed.
2511 * java/io/CharArrayWriter.java (closed): New field.
2513 (flush): Throw exception if stream closed.
2514 (reset): Synchronize on correct lock. Allow stream to be
2516 (toCharArray, toString, writeTo): Synchronize.
2517 (write): Throwe exception if stream closed.
2518 * java/io/BufferedWriter.java (close): Clear `buffer'.
2519 (flush): Throw IOException if stream is closed.
2522 2001-02-16 Tom Tromey <tromey@cygnus.com>
2524 * java/lang/ThreadGroup.java (activeCount): Only include threads
2526 (enumerate): Likewise.
2528 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2530 * java/lang/Integer.java (getInteger): Return default argument if
2531 property is not set. Don't call decode with null argument.
2532 * java/lang/Long.java (getLong): Likewise.
2534 * java/io/CharArrayReader.java (CharArrayReader): Throw
2535 IllegalArgumentException if constructor arguments are illegal.
2536 (ready): Return false if no more characters can be read.
2537 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2539 2001-02-17 Mark Wielaard <mark@klomp.org>
2541 * java/util/TimerTask.java: New version from Classpath.
2543 2001-02-17 Mark Wielaard <mark@klomp.org>
2545 Remerge with Classpath
2546 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2547 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2548 (readByte): Use convertToByte().
2549 (readChar): Use convertToChar().
2550 (readInt): Use convertToInt().
2551 (readLong): Use convertToLong().
2552 (readShort): Use convertToShort().
2553 (readUnsignedByte): Use convertToUnsignedByte().
2554 (readUnsignedShort): Use convertToUnsignedShort().
2555 (readUTF): Use convertToUTF().
2557 (convertToBoolean): Resurrected.
2558 (convertToByte): Ditto.
2559 (convertToChar): Ditto.
2560 (convertToInt): Ditto.
2561 (convertToLong): Ditto.
2562 (convertToShort): Ditto.
2563 (convertToUnsignedByte): Ditto.
2564 (convertToUnsignedShort): Ditto.
2565 (convertToUTF): Ditto.
2567 2001-02-17 Mark Wielaard <mark@klomp.org>
2571 2001-02-17 Mark Wielaard <mark@klomp.org>
2573 * java/io/DataInputStream.java: update copyright notice
2574 * java/io/PrintWriter.java: idem
2575 * java/io/Reader.java: idem
2576 * java/io/StreamTokenizer.java: idem
2577 * java/io/StringReader.java: idem
2578 * java/lang/reflect/ReflectPermission.java: idem
2580 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2582 * java/util/TreeSet.java (clone): Made subclass safe, use
2583 super.clone(), not new.
2584 * java/util/TreeMap.java (clone): Likewise.
2586 * java/util/TreeMap.java (nil): Made non-final.
2587 (clone): Create new nil node for copy.
2589 * java/util/HashSet.java (clone): Made subclass safe, use
2590 super.clone(), not new.
2592 2001-02-14 Andrew Haley <aph@redhat.com>
2594 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2597 2001-02-15 Anthony Green <green@redhat.com>
2599 * defineclass.cc: Don't include alloca.h.
2600 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2601 * interpret.cc (run_normal): Ditto.
2603 * java/lang/natDouble.cc (parseDouble): Ditto.
2605 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2607 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2609 * java/util/Collections.java (ReverseComparator): New static class.
2610 (reverseOrder): Return static instance of ReverseComparator.
2612 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2613 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2614 Rectangle.clone(), not Object.clone().
2616 * java/util/HashSet.java (clone): Remove try/catch.
2618 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2619 * java/util/Collection.java: Likewise.
2620 * java/util/Comparator.java: Likewise.
2621 * java/util/Dictionary.java: Likewise.
2622 * java/util/Iterator.java: Likewise.
2623 * java/util/ListIterator.java: Likewise.
2624 * java/util/Map.java: Likewise.
2625 * java/util/Set.java: Likewise.
2627 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2629 * java/util/TreeMap.java: New file.
2630 * java/util/TreeSet.java: New file.
2631 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2632 * Makefile.in: Rebuilt.
2633 * java/util/HashSet.java (clone): Use constructor instead of calling
2635 * java/util/SortedSet.java: Sync with classpath.
2636 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2639 * java/lang/natClass.cc (getSignature): Don't try to dereference
2640 param_types if it is null. Instead, take this to mean "no parameters".
2641 * java/lang/TreeMap.java (TreeIterator.next): Throw
2642 NoSuchElementException in preference to ConcurrentModificationException.
2643 (TreeIterator.remove): Throw IllegalStateException in preference to
2644 ConcurrentModificationException.
2645 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2646 throw a NoSuchElementException.
2647 (SubMap.lastKey): Likewise.
2649 2001-02-13 Tom Tromey <tromey@redhat.com>
2651 * java/io/PipedReader.java (ready): Throw IOException if pipe
2653 * java/io/FilterReader.java (close): Don't clear `in'.
2654 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2656 (read, ready, reset, skip): Added exception message.
2657 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2658 Perform checkStatus check inside synchronized block.
2660 2001-02-13 Tom Tromey <tromey@redhat.com>
2662 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2664 2001-02-13 Tom Tromey <tromey@redhat.com>
2666 Fix for PR libgcj/1351:
2667 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2669 Include Thread.h and InterruptedIOException.h.
2671 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2673 * java/io/BlockDataException.java: Removed.
2674 * java/io/ObjectInputStream.java (readObject): Throw
2675 StreamCorruptedException, not BlockDataException.
2676 * Makefile.am: Remove BlockDataException.
2677 * Makefile.in: Rebuild.
2679 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2680 Tom Tromey <tromey@redhat.com>
2682 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2685 2001-02-09 Tom Tromey <tromey@redhat.com>
2687 * java/util/Timer.java: New version from Classpath.
2689 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2691 * java/lang/Double.java (doubleToRawLongBits): Now native.
2692 * java/lang/Float.java (floatToRawIntBits): Likewise.
2693 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2694 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2696 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2698 * java/io/File.java (java.net): Imported.
2699 (getAbsoluteFile): Added.
2700 (getCanonicalPath): Likewise.
2703 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2705 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2706 * java/lang/Integer.java: Likewise.
2707 * java/lang/Long.java: Likewise.
2708 * java/lang/Short.java: Likewise.
2709 * java/lang/Double.java: Likewise.
2710 (doubleToRawLongBits): New method.
2711 * java/lang/Float.java: As above.
2712 (floatToRawIntBits): New method.
2714 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2715 IOException if stream closed.
2717 2001-02-08 Tom Tromey <tromey@redhat.com>
2719 * java/lang/Float.java (parseFloat): New method.
2721 2001-02-08 Tom Tromey <tromey@redhat.com>
2723 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2724 * java/io/InputStreamReader.java (ready, read): Throw IOException
2725 if stream has been closed.
2727 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2729 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2730 Change sources.redhat.com and sourceware.cygnus.com references to
2733 2001-02-07 Tom Tromey <tromey@redhat.com>
2735 Fix for PR libgcj/1906:
2736 * java/text/MessageFormat.java (setLocale): Use named class
2739 (format(Object,StringBuffer,FieldPosition)): Special case if
2740 argument is an Object[].
2742 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2744 * java/util/Arrays.java: Removed "cmp" methods.
2745 (qsort): Don't use "cmp".
2748 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2750 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2751 sort. Fix for PR java/1895.
2753 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2755 * configure.host: Use sjlj-exceptions for Alpha.
2757 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2759 * libgcj.spec.in: Don't force static libgcc into the executable.
2760 * configure.in (FORCELIBGCCSPEC): Removed.
2761 * configure: Rebuilt.
2763 2001-01-31 Tom Tromey <tromey@redhat.com>
2765 * Makefile.in: Rebuilt.
2766 * Makefile.am (LTCXXCOMPILE): New macro.
2768 2001-01-26 Andrew Haley <aph@redhat.com>
2770 (INIT_FPE): Use a direct system call to set the handler.
2772 2001-01-27 Richard Henderson <rth@redhat.com>
2774 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2776 2001-01-27 Tom Tromey <tromey@redhat.com>
2778 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2779 native interface structure.
2781 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2783 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2785 (read (byte[], int, int)): Only call readNextBlock() if the block
2786 buffer would actually be overrun. Increment blockDataPosition.
2787 (callReadMethod): Propagate exceptions from invocation target.
2788 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2789 exceptions from invocation target.
2791 2001-01-26 Tom Tromey <tromey@redhat.com>
2793 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2794 to internal representation.
2795 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2796 _Jv_FindClassFromSignature.
2798 2001-01-26 Warren Levy <warrenl@redhat.com>
2800 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2801 and timezone if they are available on the system.
2803 2001-01-24 Tom Tromey <tromey@redhat.com>
2805 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2807 2001-01-24 Tom Tromey <tromey@redhat.com>
2809 * Makefile.in: Rebuilt.
2810 * Makefile.am (c_source_files): Added sf_fabs.c.
2811 * java/lang/sf_fabs.c: New file.
2813 2001-01-19 Warren Levy <warrenl@redhat.com>
2815 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2816 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2817 correctly. Adjust properly from 0-23 clock hour.
2819 2001-01-17 Mark Wielaard <mark@klomp.org>
2821 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2823 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2825 * java/lang/Class.h (isInterface): Move implementation from
2826 natClass.cc. Declare inline.
2827 (Class): Add default constructor.
2828 * java/lang/Object.h: Update comments.
2829 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2830 initialize superclass, saving a call if super is already initialized.
2832 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2834 * prims.cc (init_prim_class): Deleted.
2835 (DECLARE_PRIM_TYPE): Rewritten.
2836 * java/lang/Class.h (stdio.h): Include removed.
2837 (stddef.h): Included.
2838 (java/lang/reflect/Modifier.h): Likewise.
2839 (Class): Contructor now takes arguments, initializes fields.
2840 (initializePrim): Prototype deleted.
2841 * java/lang/natClass.cc (initializePrim): Deleted.
2843 2001-01-16 Warren Levy <warrenl@redhat.com>
2845 * java/math/BigInteger.java: Update Copyright year.
2847 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2849 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2852 2001-01-14 Mark Wielaard <mark@klomp.org>
2853 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2854 (decode): Merge comments with Classpath, don't throw Exception
2856 2001-01-12 Tom Tromey <tromey@redhat.com>
2858 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2862 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2863 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2864 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2865 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2866 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2868 * java/lang/natSystem.cc: Include locale.h if it exists.
2869 * configure: Rebuilt.
2870 * configure.in: Check for locale.h.
2872 2001-01-11 Tom Tromey <tromey@redhat.com>
2874 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2875 (Cursor(int), getPredefinedCursor): Throw exception if argument
2878 2001-01-03 Tom Tromey <tromey@redhat.com>
2880 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2881 (getLocationOnScreen): Wrote.
2883 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2885 * Makefile.am: Re-enable dependencies.
2886 * Makefile.in: Rebuilt.
2888 2001-01-10 Warren Levy <warrenl@redhat.com>
2890 * java/math/BigDecimal.java (divide): Fixed comment.
2892 2001-01-10 Warren Levy <warrenl@redhat.com>
2894 Fix for PR libgcj/1596:
2895 * java/math/BigDecimal.java (divide): Check newScale for validity.
2896 Ensure that BigInteger.pow() is called with a non-negative value.
2897 (setScale (int)): New public method.
2898 (setScale (int,int)): New public method.
2900 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2902 Fix for PR libgcj/1338:
2903 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2904 commentChar. Fixed typos in comments.
2906 2001-01-08 Warren Levy <warrenl@redhat.com>
2908 Fix for PR libgcj/1411:
2909 * Makefile.am: Removed java/util/natTimeZone.cc.
2910 * Makefile.in: Rebuilt.
2911 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2912 missing localized timezone names.
2913 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2914 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2915 (init_properties): Set user.timezone property.
2916 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2917 default timezone names; removed non-standard ones. Use standard
2919 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2921 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2923 (getDefaultTimeZoneId): Removed.
2925 * java/util/natTimeZone.cc: Removed.
2927 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2929 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2930 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2931 (_Jv_GetArrayClass): New inline function.
2932 (arrayclass): New field.
2933 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2934 _Jv_GetArrayElementFromElementType.
2935 (_Jv_NewPrimArray): Ditto.
2936 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2937 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2938 Set Modifier::ABSTRACT.
2939 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2940 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2941 Now synchronized. Array classes are now referenced from
2942 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2943 Set array classes' accessibility flags correctly. Optimize so that
2944 all array classes share the same IDT.
2945 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2946 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2947 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2948 in superclasses from overwriting classes own fields.
2949 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2950 Modifier::isAbstract().
2951 (null_idt): New static field.
2952 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2954 (_Jv_IndexOf): Made inline.
2955 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2957 2001-01-08 Tom Tromey <tromey@redhat.com>
2959 Fix for PR java/1586:
2960 * Makefile.in: Rebuilt.
2961 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2963 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2965 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2966 from the c++ compiler.
2967 * Makefile.in: Rebuilt.
2969 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2971 All files with updated copyright.
2972 * prims.cc (class _Jv_PrimClass): Removed.
2973 (init_prim_class): New function.
2974 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2975 `_Jv_PrimClass' in primitive type declarations. Assign to the
2976 value returned by `init_prim_class.'
2977 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2978 primitive type declarations.
2979 (JvPrimClass): Cast to `jclass' removed.
2980 * java/lang/Class.h (Class): New constructor.
2981 (Class): New copy constructor.
2982 (initializePrim): New prototype.
2983 (_Jv_PrimClass): Field removed.
2984 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2985 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2986 (class java::lang::Object): `finalize' moved up front.
2987 * java/lang/natClass.cc
2988 (isAssignableFrom): Turned outline.
2989 (isInstance): Likewise.
2990 (isInterface): Likewise, fixed indentation.
2991 (initializePrim): New function.
2993 2001-01-07 Anthony Green <green@redhat.com>
2995 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2997 * Makefile.in: Rebuilt.
2999 * scripts/TexinfoDoclet.java: New file.
3001 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3002 doc/java-awt-color.texi, doc/java-lang.texi,
3003 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3004 doc/java-awt-event.texi, doc/java-net.texi,
3005 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3006 doc/java-awt-image.texi, doc/java-security.texi,
3007 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3008 doc/java-text.texi, doc/java-beans-beancontext.texi,
3009 doc/java-util-jar.texi, doc/java-beans.texi,
3010 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3011 doc/java-lang-ref.texi: New files.
3013 2001-01-07 Anthony Green <green@redhat.com>
3015 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3016 be used for both input and output, so don't clear doInput.
3018 * java/lang/StringBuffer.java: Fix comments.
3020 2001-01-06 Anthony Green <green@redhat.com>
3022 * java/beans/PropertyDescriptor.java: Fix comment.
3023 * java/io/PushbackReader.java: Fix comment.
3024 * java/io/ObjectStreamClass.java: Fix comment.
3025 * java/io/DataInputStream.java: Fix comment.
3026 * java/io/PipedInputStream.java: Fix comments.
3027 * java/io/PipedReader.java: Fix comments.
3028 * java/sql/DatabaseMetaData.java: Fix comments.
3030 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3032 * java/io/PipedReader: Synchronize on "lock" instead of this.
3034 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3036 * java/lang/Thread.java: Update comment.
3038 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3039 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3040 * java/io/PipedReader: New implementation based on new
3042 * java/io/PipedWriter: Updated to match new PipedReader.
3044 2001-01-03 Tom Tromey <tromey@redhat.com>
3046 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3047 (getViewportSize): Insets include scrollbar size.
3048 (doLayout): Finished.
3049 (getScrollPosition): Wrote.
3050 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3052 2001-01-02 Tom Tromey <tromey@redhat.com>
3054 * java/awt/ScrollPane.java: Wrote.
3055 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3058 * java/awt/Panel.java (Panel()): Fixed.
3060 * java/awt/Component.java (isShowing): Return false if no peer
3061 exists, and true if component is visible and no parent exists.
3062 (getLocationOnScreen): Wrote.
3063 (getPreferredSize): Removed FIXME comment.
3064 (getMinimumSize): Likewise.
3065 (getAlignmentX, getAlignmentY): Wrote.
3067 (requestFocus): Wrote.
3068 (transferFocus): Wrote.
3069 (findNextFocusComponent): New method.
3070 (hasFocus()): Wrote.
3071 (checkImage): Wrote.
3072 (enableEvents): Call setEventMask on the peer.
3074 * java/awt/Container.java (list): Use super.list() to print self.
3075 (findNextFocusComponent): New method.
3076 (setLayout): Call invalidate.
3077 (findComponentAt): Wrote.
3079 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3081 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3082 the correct versions of various linuxthreads functions get linked.
3083 * Makefile.in: Rebuilt.
3084 * java/lang/natThread.cc (finalize_native): New static function. Call
3085 _Jv_ThreadDestroyData.
3086 (initialize_native): Register finalizer for "data".
3087 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3088 (_Jv_ThreadDestroyData): New prototype.
3089 * include/win32-threads.h: Ditto.
3090 * include/no-threads.h: Ditto.
3091 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3092 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3093 move mutex and condition variable destroy code from:
3094 (really_start): ...here.
3095 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3096 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3097 (_Jv_ThreadDestroyData): Implemented.
3098 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3099 (_Jv_AllocArray): Ditto.
3101 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3103 * java/sql/DriverManager.java (getConnection): Don't set user/password
3106 2000-12-27 Warren Levy <warrenl@redhat.com>
3108 Fix for PR libgcj/1358:
3109 * java/lang/System.java: Update Copyright date properly.
3110 * java/util/Calendar.java: Fix typo in comment.
3111 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3112 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3113 initialize times. Spec says to set H:M:S values to zero only if
3115 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3116 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3117 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3118 timezones and GMT offsets, being careful to account for units of
3119 milliseconds vs. seconds.
3121 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3123 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3124 not be assigned to Object.
3126 Fix for PR libgcj/1516:
3127 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3129 (can_widen): Declared inline. Remove redundant checks for void
3130 arguments and char->short conversion. Add special case for boolean
3132 (ffi_type): Declared inline.
3133 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3135 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3137 * java/sql/SQLWarning.java: Fixed typo in comment.
3139 2000-12-26 Tom Tromey <tromey@redhat.com>
3141 * java/awt/MenuItem.java (paramString): Now protected.
3143 * java/awt/MenuShortcut.java: Implements Serializable.
3145 * java/awt/MenuBar.java: Rewrote from scratch.
3147 * java/awt/MenuComponent.java (removeNotify): Wrote.
3148 Implements Serializable.
3150 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3153 * java/awt/CheckboxMenuItem.java: Wrote.
3155 2000-12-25 Tom Tromey <tromey@redhat.com>
3157 * java/awt/MenuContainer.java: Fixed typo.
3159 * Makefile.in: Rebuilt.
3160 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3161 * java/awt/SystemColor.java: New file.
3163 * java/awt/Color.java (rgba): Now package-private.
3165 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3167 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3170 * java/awt/MenuItem.java (addNotify): New method.
3171 (MenuItem(String,MenuShortcut)): New constructor.
3172 (setLabel): Notify peer of change.
3173 (setEnabled): Likewise.
3175 * java/awt/GridLayout.java (toString): New method.
3177 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3178 (FlowLayout): Check for LEADING and TRAILING.
3179 (setAlignment): Likewise.
3180 (layoutContainer): Handle component orientation.
3182 * java/awt/Component.java (orientatin): New field.
3183 (setComponentOrientation): Wrote.
3184 (getComponentOrientation): Wrote.
3186 * java/awt/Event.java (Event): Implements Serializable.
3187 (consumed): New field for serialization.
3188 * java/awt/Dimension.java (Dimension): Implements Serializable.
3189 * java/awt/Cursor.java (Cursor): Implements Serializable.
3190 * java/awt/Container.java (Container): No longer abstract.
3192 * java/awt/Choice.java: Wrote.
3193 * java/awt/Checkbox.java: Wrote.
3194 * java/awt/ItemSelectable.java: Documented.
3195 * java/awt/CheckboxGroup.java: Wrote.
3197 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3199 (getSize): Likewise.
3201 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3203 * java/io/FileDescriptor.java: Initialize fd to -1.
3204 Remove default constructor.
3206 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3208 * java/lang/mprec.h: Change C9X reference to refer to C99.
3210 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3212 * java/lang/Throwable.java (trace_enabled): New static field.
3213 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3214 trace_enabled not set.
3215 * prims.cc (main_init): Turn off trace_enabled while creating
3216 default exception objects.
3218 2000-12-21 Tom Tromey <tromey@redhat.com>
3220 * java/beans/PropertyChangeListener.java: Extends EventListener.
3221 * java/beans/VetoableChangeListener.java: Extends EventListener.
3223 * java/util/zip/Deflater.java (update, init): Now private.
3225 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3227 * java/util/BasicMapEntry.java: Re-added.
3228 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3229 (putAll): Test for BasicMapEntry.
3230 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3231 (putAll): Test for BasicMapEntry.
3232 Change references from `HashMap.Entry' to `Entry' in various places.
3233 * Makefile.am: Add BasicMapEntry.java.
3234 * Makefile.in: Rebuilt.
3236 2000-12-18 Warren Levy <warrenl@redhat.com>
3238 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3239 need to set timezone to a valid non-null value. Partial fix for
3242 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3244 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3246 * java/awt/Button.java (addNotify): Likewise.
3247 * java/awt/Label.java (addNotify): Likewise.
3248 * java/awt/Panel.java (addNotify): Likewise.
3249 * java/awt/Scrollbar.java (addNotify): Likewise.
3250 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3251 Remove redundant null checks.
3253 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3255 * COPYING: Update to current
3256 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3257 to 19yy as example year in copyright notice).
3259 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3261 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3262 end-of-stream if avail_in is 0.
3264 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3266 * java/util/ArrayList.java (data): Declare transient.
3267 (serialPersistantFields): Removed.
3268 (readObject): Use defaultReadObject(), not readFields().
3269 (writeObject): Use defaultWriteObject(), not writeFields().
3271 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3273 * java/util/Hashtable.java (put): Remove `last' variable.
3274 Link new entry to head of list.
3275 * java/util/HashMap.java (put): Ditto.
3277 2000-12-15 Tom Tromey <tromey@redhat.com>
3279 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3280 loader to Class.forName.
3282 2000-12-14 Tom Tromey <tromey@redhat.com>
3284 * java/util/ResourceBundle.java
3285 (getBundle(String,Locale,ClassLoader)): New method.
3286 (trySomeGetBundle): Added `loader' argument.
3287 (partialGetBundle): Likewise.
3289 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3290 maximumFractionDigits, maximumIntegerDigits,
3291 minimumFractionDigits, minimumIntegerDigits): Now
3294 * java/lang/Thread.java (checkAccess): Now final.
3296 * java/lang/RuntimePermission.java: Class now final.
3298 * java/io/StringWriter.java (StringWriter(int)): Now public.
3300 * java/io/SerializablePermission.java (legal_names): Now private.
3302 * java/lang/Character.java: Updated UnicodeBlock constants.
3303 * scripts/blocks.pl: Special case private use and surrogate
3306 2000-12-12 Tom Tromey <tromey@redhat.com>
3308 * Makefile.in: Rebuilt.
3309 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3311 (GCJCOMPILE): Use it.
3314 2000-12-11 Tom Tromey <tromey@redhat.com>
3316 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3317 New static final fields.
3319 * scripts/classes.pl (scan): Skip lines with leading `*'.
3320 Fix for PR libgcj/378.
3322 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3324 * configure.in: Remove check for -fuse-divide-subroutine.
3325 * configure: Rebuilt.
3327 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3329 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3331 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3333 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3334 Remove BasicMapEntry.java and Bucket.java.
3335 * Makefile.in: Rebuilt.
3336 * java/util/HashMap.java: Rewritten.
3337 * java/util/HashSet.java: Imported from classpath.
3338 * java/util/WeakHashMap.java: Imported from classpath.
3339 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3340 * java/util/Bucket.java: Deleted.
3341 * java/util/BasicMapEntry.java: Deleted.
3342 * java/util/Collections.java (search): Use a for-loop, not iterator
3344 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3345 of elements in source.
3346 (max): Use a for-loop.
3348 (reverse): Keep track of positions instead of using Iterator's
3349 nextIndex() and previousIndex().
3350 (shuffle(List)): Initialize defaultRandom if required using
3351 double-check thread safety idiom. Call two-argument shuffle method
3352 using defaultRandom.
3353 (defaultRandom): New field.
3354 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3355 using previousIndex() and nextIndex().
3356 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3357 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3358 * java/util/AbstractMap.java (toString): Use StringBuffer.
3359 * java/lang/ref/PhantomReference.java: Imported from classpath.
3360 * java/lang/ref/SoftReference.java: Ditto.
3361 * java/lang/ref/Reference.java: Ditto.
3362 * java/lang/ref/WeakReference.java: Ditto.
3363 * java/lang/ref/ReferenceQueue.java: Ditto.
3365 2000-12-10 Richard Henderson <rth@redhat.com>
3367 * configure.host: Recognize alpha*-*, not alphaev6-*.
3369 2000-12-09 Anthony Green <green@redhat.com>
3371 * configure.host: Enable interpreter for Alpha.
3373 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3375 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3376 (ZIP): Points at fastjar instead of zip.
3377 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3378 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3379 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3380 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3381 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3382 ($(x_java_source_files:.java=.class):): Likewise.
3383 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3385 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3386 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3387 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3388 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3389 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3390 gnu/gcj/runtime/VMClassLoader.h:,
3391 java/io/ObjectInputStream$$GetField.h:,
3392 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3393 (Makefile.in): Rebuilt.
3395 2000-12-08 Tom Tromey <tromey@redhat.com>
3398 * configure: Rebuilt.
3399 * configure.in: Use echo, not `:', to create .d files.
3401 2000-12-08 Warren Levy <warrenl@redhat.com>
3403 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3404 NullPointerException so proper check of offset can be done.
3406 2000-12-08 Warren Levy <warrenl@redhat.com>
3408 * java/io/FileInputStream.java (close): Check if the fd is valid.
3409 * java/io/RandomAccessFile.java (close): Ditto.
3410 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3411 * java/net/PlainSocketImpl.java (close): Ditto.
3413 2000-12-06 Tom Tromey <tromey@redhat.com>
3415 * java/awt/GridBagConstraints.java: Filled in values for static
3418 * java/util/BitSet.java: Updated copyright notice.
3420 * Makefile.in: Rebuilt.
3421 * Makefile.am (awt_java_source_files): Added new file.
3422 * java/awt/GridBagConstraints.java: New file.
3424 2000-12-05 Tom Tromey <tromey@redhat.com>
3426 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3427 Now package-private, not protected.
3428 * java/text/DateFormatSymbols.java (equals): Now private.
3429 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3430 * java/util/BitSet.java: Class no longer final.
3432 2000-12-04 Warren Levy <warrenl@redhat.com>
3434 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3435 out code dependent on compiler and library changes.
3437 2000-12-04 Warren Levy <warrenl@redhat.com>
3439 * java/io/FilePermission.java: Made class final per spec.
3440 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3441 method name to match spec (fixed typo).
3442 * java/util/LinkedList.java: Implements List.
3444 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3446 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3447 Edgar Villanueva <edgarvil@home.com>.
3449 2000-12-03 Tom Tromey <tromey@redhat.com>
3451 * java/awt/geom/Point2D.java: Added protected constructor.
3452 (equals): New method.
3453 (Float.setLocation(float,float)): New method.
3454 * java/awt/geom/Dimension2D.java: Added protected constructor.
3455 * java/awt/geom/AffineTransform.java: Made all constants public.
3456 (concatenate): Fixed typo in name.
3457 * java/awt/event/WindowAdapter.java: Class now abstract.
3458 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3459 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3462 * java/awt/AWTError.java: Extend Error, not
3463 IllegalStateException.
3465 * Makefile.in: Rebuilt.
3466 * Makefile.am (awt_java_source_files): Added new file.
3467 * java/awt/geom/RoundRectangle2D.java: New file.
3469 * Makefile.in: Rebuilt.
3470 * Makefile.am (awt_java_source_files): Added new file.
3471 * java/awt/FlowLayout.java: New file.
3473 * Makefile.in: Rebuilt.
3474 * Makefile.am (awt_java_source_files): Added new file.
3475 * java/awt/GridLayout.java: New file.
3477 2000-12-02 Tom Tromey <tromey@redhat.com>
3479 * Makefile.in: Rebuilt.
3480 * Makefile.am (awt_java_source_files): Added new files.
3481 * java/awt/CardLayout.java: New file.
3482 * java/awt/AWTPermission.java: New file.
3484 2000-12-01 Tom Tromey <tromey@redhat.com>
3486 * java/util/Vector.java (insertElementAt): Unconditionally
3487 increment elementCount.
3488 (removeRange): Clear unused slots in vector.
3490 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3492 * java/lang/natMath.cc: Declare fabsf() function.
3493 * java/lang/mprec.h: Don't include math.h.
3494 * java/lang/dtoa.c: Include string.h.
3495 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3498 From Adam Welc <welc@cs.purdue.edu>:
3499 * java/util/LinkedList.java (removeFirst): Update `first' field.
3500 Handle the last == first case.
3501 (removeLast): Update `last' field. Handle the last == first case.
3503 2000-12-01 Warren Levy <warrenl@cygnus.com>
3505 * Makefile.am: Added entries for new java.sql modules.
3506 * Makefile.in: Rebuilt.
3508 2000-12-01 Warren Levy <warrenl@cygnus.com>
3510 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3511 that aren't quite 1.2 compatible yet.
3513 2000-11-30 Warren Levy <warrenl@cygnus.com>
3515 * java/sql/Array.java: New file from classpath.
3516 * java/sql/BatchUpdateException.java: Ditto.
3517 * java/sql/Blob.java: Ditto.
3518 * java/sql/Clob.java: Ditto.
3519 * java/sql/Ref.java: Ditto.
3520 * java/sql/SQLData.java: Ditto.
3521 * java/sql/SQLInput.java: Ditto.
3522 * java/sql/SQLOutput.java: Ditto.
3523 * java/sql/Struct.java: Ditto.
3524 * java/sql/CallableStatement.java: Merged file from claspath.
3525 * java/sql/Connection.java: Ditto.
3526 * java/sql/DataTruncation.java: Ditto.
3527 * java/sql/DatabaseMetaData.java: Ditto.
3528 * java/sql/DriverManager.java: Ditto.
3529 * java/sql/PreparedStatement.java: Ditto.
3530 * java/sql/ResultSet.java: Ditto.
3531 * java/sql/ResultSetMetaData.java: Ditto.
3532 * java/sql/SQLException.java: Ditto.
3533 * java/sql/SQLWarning.java: Ditto.
3534 * java/sql/Statement.java: Ditto.
3535 * java/sql/Types.java: Ditto.
3537 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3539 * java/lang/natSystem.cc (init_properties): Set user.language and
3541 * configure.in: Check for setlocale.
3542 * configure: Rebuilt.
3543 * include/config.h.in: Rebuilt.
3545 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3546 the infate() call didn't deliver any output. Throw a ZipException if
3547 the needsDictionary() call returns true.
3548 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3549 * java/io/InputStreamReader: Use the default buffer size for the
3550 contained BufferedInputStream.
3552 2000-11-28 Warren Levy <warrenl@cygnus.com>
3554 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3555 more time zone entries.
3556 * java/text/SimpleDateFormat.java (format): Added case for
3559 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3561 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3562 directly rather than read() in all cases. Make primitive read
3563 implementations more efficient, as defined in JDK online docs.
3564 (skipBytes): Behave like the JDK's implementation.
3565 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3566 closed stream with checkStatus() whenever an IOException can be
3568 (checkStatus): New private method.
3570 2000-11-27 Warren Levy <warrenl@cygnus.com>
3572 * Makefile.am: Added natTimeZone.cc.
3573 * Makefile.in: Rebuilt.
3574 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3575 * java/text/DateFormatSymbols.java (ampms): Made package private.
3576 (eras): Made package private.
3577 (months): Made package private.
3578 (shortMonths): Made package private.
3579 (shortWeekdays): Made package private.
3580 (weekdays): Made package private.
3581 (formatPrefixes): New private field.
3582 (localPatternCharsDefault): Made private.
3583 (dateFormats): New package private field.
3584 (timeFormats): New package private field.
3585 (formatsForKey): New private method.
3586 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3587 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3588 * java/text/SimpleDateFormat.java: Merged with Classpath.
3589 * java/util/TimeZone.java: Merged with Classpath.
3590 * java/util/natTimeZone.cc: New file.
3592 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3594 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3595 (addElement): Don't increment elementCount twice. Doh.
3596 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3597 array needs to be expanded.
3599 * java/util/Collections.java (UnmodifiableCollection): Implement
3601 (UnmodifiableList): Throw UnsupportedOperationException from
3602 modification methods. Set `l' from the one-parameter constructor.
3603 (UnmodifiableMap): Implement toString().
3604 (SynchronizedCollection): Ditto.
3605 (SynchronizedList): Set `l' from the one-parameter constructor.
3606 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3607 (SynchronizedMap): Implement toString().
3609 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3611 * javax/naming/NameParser.java,
3612 javax/naming/directory/AttributeInUseException.java,
3613 javax/naming/directory/AttributeModificationException.java,
3614 javax/naming/directory/InvalidAttributeIdentifierException.java,
3615 javax/naming/directory/InvalidAttributesException.java,
3616 javax/naming/directory/InvalidAttributeValueException.java,
3617 javax/naming/directory/InvalidSearchControlsException.java,
3618 javax/naming/directory/InvalidSearchFilterException.java,
3619 javax/naming/directory/NoSuchAttributeException.java,
3620 javax/naming/directory/SchemaViolationException.java: New files.
3622 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3624 * javax/naming/InitialContext.java (rebind): Implement.
3625 (unbind): Implement.
3626 (rename): Implement.
3628 (listBindings): Implement.
3629 (destroySubcontext): Implement.
3630 (createSubcontext): Implement.
3631 (lookupLink): Implement.
3632 (getNameParser): Implement.
3633 (composeName): Implement.
3634 (addToEnvironment): Implement.
3636 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3638 * javax/naming/AuthenticationException.java,
3639 javax/naming/AuthenticationNotSupportedException.java,
3640 javax/naming/CannotProceedException.java,
3641 javax/naming/CommunicationException.java,
3642 javax/naming/ConfigurationException.java,
3643 javax/naming/ContextNotEmptyException.java,
3644 javax/naming/InsufficientResourcesException.java,
3645 javax/naming/InterruptedNamingException.java,
3646 javax/naming/InvalidNameException.java,
3647 javax/naming/LimitExceededException.java,
3648 javax/naming/LinkException.java,
3649 javax/naming/LinkLoopException.java,
3650 javax/naming/MalformedLinkException.java,
3651 javax/naming/NameAlreadyBoundException.java,
3652 javax/naming/NameNotFoundException.java,
3653 javax/naming/NamingSecurityException.java,
3654 javax/naming/NoPermissionException.java,
3655 javax/naming/NotContextException.java,
3656 javax/naming/PartialResultException.java,
3657 javax/naming/ReferralException.java,
3658 javax/naming/ServiceUnavailableException.java,
3659 javax/naming/SizeLimitExceededException.java,
3660 javax/naming/TimeLimitExceededException.java: New files.
3662 * javax/naming/Name.java (clone): New method.
3663 (compareTo): New method.
3664 (isEmpty): New method.
3665 (getAll): New method.
3666 (getPrefix): New method.
3667 (getSuffix): New method.
3668 (startsWith): New method.
3669 (endsWith): New method.
3670 (addAll): New method.
3671 (addAll): New method.
3674 (remove): New method.
3676 * javax/naming/Context.java (lookup): New method.
3677 (rebind): New method.
3678 (unbind): New method.
3679 (rename): New method.
3681 (listBindings): New method.
3682 (destroySubcontext): New method.
3683 (createSubcontext): New method.
3684 (lookupLink): New method.
3685 (getNameParser): New method.
3686 (composeName): New method.
3687 (addToEnvironment): New method.
3688 (removeFromEnvironment): New method.
3689 (getEnvironment): New method.
3690 (close): New method.
3691 (getNameInNamespace): New method.
3693 * javax/naming/InitialContext.java (lookup): New method.
3694 (rebind): New method.
3695 (unbind): New method.
3696 (rename): New method.
3698 (listBindings): New method.
3699 (destroySubcontext): New method.
3700 (createSubcontext): New method.
3701 (lookupLink): New method.
3702 (getNameParser): New method.
3703 (composeName): New method.
3704 (addToEnvironment): New method.
3705 (removeFromEnvironment): New method.
3706 (getEnvironment): New method.
3707 (close): New method.
3708 (getNameInNamespace): New method.
3710 2000-11-26 Tom Tromey <tromey@cygnus.com>
3712 * Makefile.in: Rebuilt.
3713 * Makefile.am (core_java_source_files): Added
3714 RuntimePermission.java.
3715 * java/lang/RuntimePermission.java: Imported from Classpath.
3716 * java/lang/Thread.java (getContextClassLoader): Now
3717 synchronized. Added security code.
3718 (setContextClassLoader): Likewise.
3720 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3721 length field of array.
3722 (_Jv_NewPrimArray): Likewise.
3723 * gcj/array.h (__JArray): `length' field now const. Added
3726 2000-11-26 Anthony Green <green@redhat.com>
3728 * javax/naming/spi/NamingManager.java,
3729 javax/naming/spi/ObjectFactory.java,
3730 javax/naming/spi/InitialContextFactory.java,
3731 javax/naming/spi/InitialContextFactoryBuilder.java,
3732 javax/naming/RefAddr.java, javax/naming/Reference.java,
3733 javax/naming/NamingException.java, javax/naming/Context.java,
3734 javax/naming/Referenceable.java,
3735 javax/naming/directory/InitialDirContext.java,
3736 javax/naming/directory/DirContext.java,
3737 javax/naming/directory/Attributes.java,
3738 javax/naming/directory/Attribute.java,
3739 javax/naming/StringRefAddr.java,
3740 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3741 javax/naming/InitialContext.java,
3742 javax/naming/NoInitialContextException.java: New files.
3744 2000-11-25 Anthony Green <green@redhat.com>
3746 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3747 (_Jv_NewPrimArray): Likewise.
3748 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3749 (class JArray): Removed constructor.
3751 * java/lang/Thread.java (context_class_loader): New private data.
3752 (getContextClassLoader): New method.
3753 (setContextClassLoader): New method.
3754 (Thread): Initialize context_class_loader.
3756 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3757 (getResource): Rename to findResource.
3758 (findResource): New method. Used to be getResource.
3759 (getResourceAsStream): Deleted.
3760 (jarFileize): Extracted logic from URLClassLoader constructor into
3761 this new private method.
3762 (addURL): New protected method.
3763 (URLClassLoader): Call jarFileize. Use addElement instead of
3765 (findResources): New method.
3767 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3768 (getResource): Implement correct logic.
3769 (findResource): New method.
3770 (getResources): New method.
3771 (findClass): Create a ClassNotFoundException with the name of the
3772 class rather than nothing at all.
3773 (defineClass) Only throw ClassFormatError.
3775 * java/lang/Class.java (forName): New method.
3776 * java/lang/Class.h (forName): New method.
3777 * java/lang/natClass.cc (forName): New method.
3779 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3781 * java/lang/System.java (setProperties): Only call init_properties()
3782 if properties is null.
3783 (getProperties): Ditto.
3784 (getProperty): Ditto.
3785 (setProperty): Call init_properties if properties are null.
3786 (prop_init): Remove field.
3787 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3788 method. Check for null properties after synchronizing instead of
3789 prop_init flag. Set the properties field last for thread safety.
3791 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3792 test for gcj.dumpobjects property and enable object stream dumping
3794 (dumpElement): No longer native.
3795 (dumpElementln): Ditto.
3796 (setDump): Do not define.
3797 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3798 (dumpElementln): Removed.
3801 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3803 * configure: Rebuilt.
3804 * Makefile.in: Rebuilt.
3805 * Makefile.am (built_java_source_files): Add Configuration.java.
3806 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3807 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3808 Create `gnu' directory in the build tree.
3809 * gnu/classpath/Configuration.java.in: New file.
3811 2000-11-24 Tom Tromey <tromey@cygnus.com>
3813 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3815 (_Jv_NewPrimArray): Likewise.
3817 * gcj/array.h (__JArray): `length' field now const. Added
3819 (class JArray): Added constructor.
3821 2000-11-23 Mark Wielaard <mark@klomp.org>
3823 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3826 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3828 * java/util/Vector.java: Improve exception messages.
3829 (Vector): Check initialCapacity for IllegalArgumentException.
3830 (tromToSize): Don't check for elementCount == elementData.length
3832 (toArray): Don't try to set null marker if target array is the same
3833 length as the vector.
3835 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3837 * Makefile.in: Rebuilt.
3838 * Makefile.am (core_java_source_files): Added Collections.java.
3839 * java/util/List.java: Merged from classpath.
3840 * java/util/Vector.java: Ditto.
3841 * java/util/Collections.java: From classpath.
3842 * java/util/ArrayList.java (addAll(Collection)): Call
3843 addAll(int,Collection) instead of duplicating code.
3844 (indexOf): Clean up int initialization.
3845 (clear): Set cleared array entries to null, to allow garbage
3847 * java/util/List.java: Minor formatting fixes.
3848 * java/util/SimpleTimeZone.java: ditto.
3850 2000-11-18 Tom Tromey <tromey@cygnus.com>
3852 * Makefile.in: Rebuilt.
3853 * Makefile.am (core_java_source_files): Added new files.
3854 * java/lang/reflect/ReflectPermission.java: New class.
3855 * java/io/FileFilter.java: From Classpath
3856 * java/io/FilePermission.java: From Classpath.
3858 2000-11-17 Tom Tromey <tromey@cygnus.com>
3860 * java/lang/reflect/AccessibleObject.java (isAccessible,
3861 setAccessible): Now public.
3863 * java/lang/natString.cc: Include Locale.h.
3864 (toUpperCase): Added `locale' argument. Handle locale
3866 (toLowerCase): Added `locale' argument. Handle locale
3868 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3869 CAPITAL_I): New defines.
3870 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3873 (toUpperCase, toLowerCase): New methods. Variants which accept
3876 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3879 * java/util/PropertyPermission.java: Re-merged from Classpath.
3881 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3883 * java/text/StringCharacterIterator.java: Reindented.
3884 (setText): New method.
3886 2000-11-17 Mark Wielaard <mark@klomp.org>
3888 Merge with Classpath (changes by Bryce McKinlay)
3889 * java/util/jar/*.java: Reformat all to unofficial standard coding
3890 style. No changes of substance.
3892 2000-11-17 Mark Wielaard <mark@klomp.org>
3894 * java/util/zip/*.java: Javadoc updates.
3896 2000-11-17 Tom Tromey <tromey@cygnus.com>
3898 * java/text/CollationKey.java: Implement Comparable.
3899 (compareTo(Object)): New method.
3900 * java/text/Collator.java (compare(Object,Object)): New method.
3901 Implement Comparator.
3903 * java/util/zip/InflaterInputStream.java (available): New method.
3904 (close): New method.
3905 (read, available, skip, fill): Throw exception if stream closed.
3906 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3907 getNextEntry): Throw exception if closed.
3909 2000-11-16 Tom Tromey <tromey@cygnus.com>
3911 * java/io/PushbackReader.java: Merged with Classpath.
3912 * java/util/Arrays.java: Updated from Classpath.
3914 * scripts/blocks.pl: New file.
3915 * java/lang/Character.java (Subset): New class.
3916 (UnicodeBlock): New class.
3918 * java/lang/Math.java (toDegrees, toRadians): New methods.
3920 * java/lang/Float.java: Implement Comparable.
3921 (compareTo): New methods.
3922 * java/lang/Double.java: Implement Comparable.
3923 (compareTo): New methods.
3925 2000-11-16 Warren Levy <warrenl@cygnus.com>
3927 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3929 (listeners): Made transient.
3930 (source): Renamed from 'bean'.
3931 (children): New field for serialization.
3932 (propertyChangeSupportSerializedDataVersion): Ditto.
3933 (serialVersionUID): Ditto.
3934 (writeObject): New serialization method.
3935 (readObject): New serialization method.
3936 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3938 (listeners): Made transient.
3939 (source): Renamed from 'bean'.
3940 (children): New field for serialization.
3941 (vetoableChangeSupportSerializedDataVersion): Ditto.
3942 (serialVersionUID): Ditto.
3943 (writeObject): New serialization method.
3944 (readObject): New serialization method.
3945 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3946 to allow constructor to have a return type (i.e. the class that the
3947 constructor constructs).
3949 2000-11-14 Tom Tromey <tromey@cygnus.com>
3951 * Makefile.in: Rebuilt.
3952 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3955 2000-11-02 Warren Levy <warrenl@cygnus.com>
3957 * java/io/ObjectInputStream.java (readObject): Added code to
3958 conditionally dump out the serialized data.
3959 Handle ENDBLOCKDATA case a bit more gracefully since the current
3960 behavior doesn't seem to work as expected.
3961 (readStreamHeader): Added code for serialized data dumper.
3962 (readNextBlock): Ditto.
3963 (readFields): Ditto.
3964 (dump): New private static field for turning on/off dumper.
3965 (setDump): New native method.
3966 (dumpElement): New native method.
3967 (dumpElementln): New native method.
3968 * java/io/natObjectInputStream.cc (setDump): New method.
3969 (dumpElement): New method.
3970 (dumpElementln): New method.
3972 2000-11-02 Warren Levy <warrenl@cygnus.com>
3974 * java/net/InetAddress.java (addr): Renamed from 'address'.
3975 (address): New field to match Serialized Form doc.
3976 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3977 (family): New serialization field.
3978 (serialVersionUID): New field.
3979 (readObject): New method.
3980 (writeObject): New method.
3981 (getFamily): New native method.
3982 (InetAddress): Set family.
3983 * java/net/natInetAddress.cc (getFamily): New method.
3984 (addr): Renamed from 'address'.
3985 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3986 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3987 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3989 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3991 * java/util/AbstractList.java (SubList): Make it a top-level private
3993 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3995 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3996 * Makefile.in: Rebuilt.
3998 2000-11-02 Tom Tromey <tromey@cygnus.com>
4000 * Makefile.in: Rebuilt.
4001 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4004 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4006 * java/util/AbstractList.java (remove): Comment out modCount increment
4007 to work around compiler bug.
4010 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4012 * java/util/AbstractList.java: Throw messages with
4013 IndexOutOfBoundsExceptions.
4014 (listIterator()): Call listIterator(0).
4015 (size): New field. Initialize to size().
4016 (hasNext): Test position against size, not size().
4017 (remove): Increment knownMod by one instead of resetting it from
4020 (SubList.upMod): Removed.
4021 (SubList.set): Don't call upMod() or update knownMod.
4022 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4023 (SubList.remove): Ditto.
4024 (SubList.addAll): Don't call backingList.size(). Increment size from
4026 (SubList.iterator): New method. Call listIterator(0).
4027 (SubList.listIterator): New method. Restore code to return an anonymous
4028 listIterator implementation (with some changes).
4029 * java/util/AbstractSequentialList.java: Throw messages with
4030 IndexOutOfBoundsExceptions.
4031 (addAll): Add a specnote.
4032 * java/util/ArrayList.java (removeRange): Get the math right.
4033 (addAll): Increment modCount _before_ creating iterator.
4034 * java/util/LinkedList.java: Rewritten, mostly.
4036 2000-11-01 Tom Tromey <tromey@cygnus.com>
4038 * scripts/encodings.pl: Added `ASCII' alias.
4039 * Makefile.in: Rebuilt.
4040 * Makefile.am (convert_source_files): Added new files.
4041 * gnu/gcj/convert/Input_ASCII.java: New file.
4042 * gnu/gcj/convert/Output_ASCII.java: New file.
4043 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4044 out-of-range characters.
4045 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4046 (read): Swap bytes if required. Treat `count' as character count,
4048 (write): Likewise. Also, handle case where iconv fails on a given
4050 (init): Put encoding into exception.
4051 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4052 (static): Call iconv_init. Rebuilt alias list.
4053 (iconv_init): New private method.
4055 2000-11-01 Tom Tromey <tromey@cygnus.com>
4057 * Makefile.in: Rebuilt.
4058 * Makefile.am (install-exec-hook): Only make a single symlink, and
4059 remove the destination before making the link.
4060 * configure: Rebuilt.
4061 * configure.in: Call AC_PROG_LN_S.
4063 2000-10-31 Warren Levy <warrenl@cygnus.com>
4065 * jni.cc: Added include of java/lang/ThreadGroup.h.
4066 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4067 per change of 2000-10-05.
4069 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4071 * java/util/BitSet.java: Updated @specnote.
4073 * java/io/Reader.java: Merge docs from classpath.
4074 (skip): Synchronize on `lock'.
4075 * java/io/FileReader.java: Import correct implementation from
4077 * java/io/StringReader.java: Merge docs from classpath.
4078 (ready): Throw IOException if stream is closed.
4080 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4082 * java/util/AbstractCollection.java (addAll): Use size() instead of
4083 hasNext() in iterator loop.
4085 (contains): Ditto. Simplify loop.
4086 (containsAll): Ditto.
4091 (toString): Ditto. Use string concatenation operators, not
4093 * java/util/AbstractList.java (addAll): Use size() instead of
4094 hasNext() in iterator loop.
4097 (indexOf): Ditto. Don't take null check outside of the loop.
4098 (iterator): Return an AbstractListItr instead of anonymous class.
4099 (lastIndexOf): Use a for loop bounded by size() instead of
4100 hasPrevious() in iterator loop.
4101 (listIterator): Return an AbstractListItr.
4102 (removeRange): Remove bounds checking code and docs.
4103 (AbstractListItr): New inner class. Code moved here from
4105 (SubList.iterator): Removed. Use default implementation from
4106 AbstractList instead.
4107 (SubList.listIterator): As above.
4108 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4109 instead of hasNext() in iterator loop.
4110 (containsValue): Ditto.
4116 (toString): Ditto. Use string concatenation operators, not
4118 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4119 bounded by size() instead of hasNext() in iterator loop.
4120 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4121 part of normal execution flow. Do an explicit null check instead.
4122 * java/util/ArrayList.java (_iSize): Rename to `size'.
4123 (_arData): Rename to `data'.
4124 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4127 (removeRange): Make protected. Don't check bounds.
4128 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4130 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4132 (addAll (int, Collection)): Check lower bounds. Simplify exception
4134 (clone): Clone the data array too.
4135 (indexOf): Inline doesEqual().
4136 (lastIndexOf): Ditto.
4137 (clear): Don't set array data to null.
4138 (set): Check lower bounds. Simplify exception string.
4139 (toArray): Correct comment.
4140 (trimToSize): Don't update modCount, this is not a structural change.
4143 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4145 (toString): Declare `bit' as long, not int.
4146 (data): Made package-private, not private.
4148 2000-10-27 Warren Levy <warrenl@cygnus.com>
4150 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4151 array elements to true.
4153 2000-10-27 Warren Levy <warrenl@cygnus.com>
4155 * Makefile.am: Added locale files from Classpath.
4156 * Makefile.in: Rebuilt.
4157 * gnu/java/locale/Calendar.java: New file.
4158 * gnu/java/locale/Calendar_de.java: New file.
4159 * gnu/java/locale/Calendar_en.java: New file.
4160 * gnu/java/locale/Calendar_nl.java: New file.
4161 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4162 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4163 serialization compatibility.
4164 (scale): Made private.
4165 (serialVersionUID): New field.
4166 * java/math/BigInteger.java (ival): Made transient.
4167 (words): Made transient.
4168 (bitCount): New serialization field.
4170 (firstNonzeroByteNum): Ditto.
4171 (lowestSetBit): Ditto.
4174 (serialVersionUID): New field.
4175 (readObject): New method.
4176 (writeObject): New method.
4177 * java/util/BitSet.java (serialVersionUID): New field.
4178 * java/util/Calendar.java: Replaced with Classpath file.
4179 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4180 of getDefault() for TimeZone or Locale instead of passing nulls.
4181 * java/util/Locale.java (serialVersionUID): New field.
4182 (writeObject): New method.
4183 (readObject): New method.
4184 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4186 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4188 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4189 (core_java_source_files): Put java.lang, java.io, and java.util here.
4190 (ordinary_java_source_files): Order so that core_java_source_files are
4192 (java_source_files): Reorder so that special_java_source_files are
4194 * configure.in: Don't pass -I flag to gcj.
4195 * Makefile.in: Rebuilt.
4196 * configure: Rebuilt.
4198 2000-10-25 Tom Tromey <tromey@cygnus.com>
4200 * Makefile.in: Rebuilt.
4201 * Makefile.am (install-exec-hook): New target.
4203 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4205 * java/util/EventObject.java: Merged from classpath.
4207 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4210 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4212 * java/util/AbstractSet.java (equals): Re-installed original code.
4214 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4216 * Makefile.am: Added rules for libgcjx library.
4217 * Makefile.in: Rebuilt.
4218 * configure.in: Added check for X.
4219 * configure: Rebuilt.
4220 * gnu/awt/LightweightRedirector.java: New file.
4221 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4222 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4223 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4224 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4225 * gnu/awt/j2d/MappedRaster.java: New file.
4226 * gnu/awt/xlib/XCanvasPeer.java: New file.
4227 * gnu/awt/xlib/XEventLoop.java: New file.
4228 * gnu/awt/xlib/XEventQueue.java: New file.
4229 * gnu/awt/xlib/XFontMetrics.java: New file.
4230 * gnu/awt/xlib/XFramePeer.java: New file.
4231 * gnu/awt/xlib/XGraphics.java: New file.
4232 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4233 * gnu/awt/xlib/XPanelPeer.java: New file.
4234 * gnu/awt/xlib/XToolkit.java: New file.
4235 * gnu/gcj/xlib/Clip.java: New file.
4236 * gnu/gcj/xlib/Colormap.java: New file.
4237 * gnu/gcj/xlib/Display.java: New file.
4238 * gnu/gcj/xlib/Drawable.java: New file.
4239 * gnu/gcj/xlib/Font.java: New file.
4240 * gnu/gcj/xlib/GC.java: New file.
4241 * gnu/gcj/xlib/Pixmap.java: New file.
4242 * gnu/gcj/xlib/Screen.java: New file.
4243 * gnu/gcj/xlib/Visual.java: New file.
4244 * gnu/gcj/xlib/WMSizeHints.java: New file.
4245 * gnu/gcj/xlib/Window.java: New file.
4246 * gnu/gcj/xlib/WindowAttributes.java: New file.
4247 * gnu/gcj/xlib/XAnyEvent.java: New file.
4248 * gnu/gcj/xlib/XButtonEvent.java: New file.
4249 * gnu/gcj/xlib/XColor.java: New file.
4250 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4251 * gnu/gcj/xlib/XConnectException.java: New file.
4252 * gnu/gcj/xlib/XEvent.java: New file.
4253 * gnu/gcj/xlib/XException.java: New file.
4254 * gnu/gcj/xlib/XExposeEvent.java: New file.
4255 * gnu/gcj/xlib/XID.java: New file.
4256 * gnu/gcj/xlib/XImage.java: New file.
4257 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4258 * gnu/gcj/xlib/natClip.cc: New file.
4259 * gnu/gcj/xlib/natColormap.cc: New file.
4260 * gnu/gcj/xlib/natDisplay.cc: New file.
4261 * gnu/gcj/xlib/natDrawable.cc: New file.
4262 * gnu/gcj/xlib/natFont.cc: New file.
4263 * gnu/gcj/xlib/natGC.cc: New file.
4264 * gnu/gcj/xlib/natPixmap.cc: New file.
4265 * gnu/gcj/xlib/natScreen.cc: New file.
4266 * gnu/gcj/xlib/natVisual.cc: New file.
4267 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4268 * gnu/gcj/xlib/natWindow.cc: New file.
4269 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4270 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4271 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4272 * gnu/gcj/xlib/natXColor.cc: New file.
4273 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4274 * gnu/gcj/xlib/natXException.cc: New file.
4275 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4276 * gnu/gcj/xlib/natXImage.cc: New file.
4277 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4278 * java/awt/EventDispatchThread.java: Start thead on creation.
4280 2000-10-20 Tom Tromey <tromey@cygnus.com>
4282 From Arno J. Klaassen:
4283 * interpret.cc: Include <stdlib.h> for alloca.
4284 * defineclass.cc: Include <stdlib.h> for alloca.
4286 * Makefile.in: Rebuilt.
4287 * Makefile.am: Include deps.mk.
4288 (GCJCOMPILE): Added -MD, -MT, and -MF.
4289 ($(javao_files)): Don't depend on libgcj.zip.
4290 (all-recursive): New target.
4291 (%.lo:%.cc): Do dependency tracking.
4292 ($(nat_headers)): Don't depend on libgcj.zip.
4293 * configure: Rebuilt.
4294 * configure.in: Make .d files and deps.mk.
4296 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4298 * exception.cc: Don't #include "exception".
4299 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4301 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4302 * Makefile.in: Updated.
4304 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4306 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4307 * java/awt/peer/ComponentPeer.java (disable): Removed.
4310 (minimumSize): Removed.
4311 (preferredSize): Removed.
4314 * java/awt/peer/ListPeer.java (addItem): Removed.
4316 (minimumSize): Removed.
4317 (preferredSize): Removed.
4318 (setMultipleSelections): Removed.
4319 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4320 (remove): Renamed from removeMenu.
4321 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4323 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4324 (remove): Renamed from removeItem.
4325 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4326 (getMinimumSize): Removed.
4327 (getPreferredSize): Removed.
4328 (minimumSize): Removed.
4329 (preferredSize): Removed.
4330 (replaceText): Removed.
4331 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4332 (preferredSize): Removed.
4333 (getMinimumSize): Removed.
4334 (getPreferredSize): Removed.
4335 (setEchoCharacter): Removed.
4337 2000-10-10 Warren Levy <warrenl@cygnus.com>
4339 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4340 * java/sql/Date.java (serialVersionUID): New field.
4341 * java/sql/Time.java (serialVersionUID): New field.
4342 * java/sql/Timestamp.java (serialVersionUID): New field.
4343 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4344 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4345 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4346 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4347 (readObject): New serialization method.
4348 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4349 (serialVersionOnStream): New field.
4350 (readObject): New serialization method.
4351 (getMonetaryDecimalSeparator): New method.
4352 (setMonetaryDecimalSeparator): New method.
4353 * java/text/NumberFormat.java (maxFractionDigits): New field.
4354 (maxIntegerDigits): New field.
4355 (minFractionDigits): New field.
4356 (minIntegerDigits): New field.
4357 (serialVersionOnStream): New field.
4358 (serialVersionUID): New field.
4359 (readObject): New serialization method.
4360 (writeObject): New serialization method.
4361 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4362 (serialVersionOnStream): New field.
4363 (serialVersionUID): New field.
4364 (readObject): New serialization method.
4366 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4368 * configure.in (GCJ): Avoid bogus error message when looking for
4369 (and not finding) gcj in the build tree.
4370 * configure: Rebuilt.
4372 2000-10-09 Tom Tromey <tromey@cygnus.com>
4374 * configure: Rebuilt.
4375 * configure.in: Include sys/types.h when checking for socklen_t.
4376 From Arno J. Klaassen.
4378 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4380 * include/jvm.h: Enable __builtin_expect().
4382 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4383 the main program. Fix for PR libgcj/341.
4385 2000-10-07 Tom Tromey <tromey@cygnus.com>
4387 * java/util/Properties.java: Merged with Classpath version.
4389 2000-10-05 Tom Tromey <tromey@cygnus.com>
4391 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4392 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4393 * java/lang/Class.h (Object): Added `class$' field.
4394 * java/lang/Object.h (Object): Added `class$' field.
4395 * defineclass.cc (ClassClass): Use `class$' form.
4396 (ClassObject): Likewise.
4397 * resolve.cc (ClassObject): Use `class$' form.
4398 (ObjectClass): Likewise.
4399 * interpret.cc (ClassError): Removed.
4400 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4402 (IntegerClass): Likewise.
4403 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4405 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4406 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4407 SerializableClass): Likewise.
4408 Include Serializable.h, Cloneable.h.
4409 * java/lang/natSystem.cc (SystemClass): Removed.
4410 (init_properties): Use `class$' form.
4411 * java/lang/natObject.cc (CloneableClass): Removed.
4412 (clone): Use `class$' form.
4413 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4414 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4415 ConstructorClass): Likewise.
4416 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4417 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4418 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4419 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4421 (ClassClass): Likewise.
4422 * include/jvm.h (StringClass): Use `class$' form.
4423 * prims.cc (ObjectClass): Removed.
4424 (_Jv_RunMain): Use `class$' form.
4425 (_Jv_AllocObject): Likewise.
4426 * jni.cc (ClassClass): Use `class$' form.
4427 (ThrowableClass): Likewise.
4428 (ObjectClass): Likewise.
4429 (MethodClass): Likewise.
4430 (ThreadGroupClass): Likewise.
4431 (NativeThreadClass): Likewise.
4432 * boehm.cc (ObjectClass): Removed.
4433 (ClassClass): Removed.
4434 (_Jv_MarkObj): Use `class$' form.
4435 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4438 2000-10-05 Warren Levy <warrenl@cygnus.com>
4440 * Makefile.am: Removed java/io/Replaceable.java and
4441 java/io/Resolvable.java.
4442 * Makefile.in: Rebuilt.
4443 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4445 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4447 (processResolution): Handle readResolve method via reflection with
4448 removal of Resolvable interface.
4449 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4450 method via reflection with removal of Replaceable interface.
4451 * java/io/Replaceable.java: Removed.
4452 * java/io/Resolvable.java: Removed.
4453 * java/security/Key.java (serialVersionUID): New field.
4454 * java/security/Provider.java (serialVersionUID): New field.
4455 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4457 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4459 * java/sql/DataTruncation.java (serialVersionUID): New field.
4460 * java/sql/SQLException.java (serialVersionUID): New field.
4461 * java/sql/SQLWarning.java (serialVersionUID): New field.
4462 * java/util/Date.java (serialVersionUID): New field.
4463 (millis): Made transient.
4464 (readObject): New method.
4465 (writeObject): New method.
4467 2000-10-05 Tom Tromey <tromey@cygnus.com>
4469 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4471 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4473 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4474 (JvRunMain): Set _Jv_argv and _Jv_argc.
4475 * java/awt/Component.java: Minor fixes.
4476 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4477 * java/awt/Toolkit.java (systemEventQueue): Removed.
4478 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4479 * java/awt/Window.java (getToolkit): Don't call super.
4480 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4481 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4482 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4483 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4484 * gnu/awt/gtk/GtkFramePeer.java: New file.
4485 * gnu/awt/gtk/GtkMainThread.java: New file.
4486 * gnu/awt/gtk/GtkToolkit.java: New file.
4487 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4488 * gnu/awt/gtk/gtkcommon.cc: New file.
4489 * gnu/awt/gtk/gtkcommon.h: New file.
4490 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4491 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4492 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4493 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4494 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4495 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4497 2000-09-30 Tom Tromey <tromey@cygnus.com>
4499 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4500 interrupted before modifying the cv's wait set.
4503 2000-09-30 Hans Boehm <boehm@acm.org>
4504 Bryce McKinlay <bryce@albatross.co.nz>
4506 Implement bitmap descriptor based marking for Boehm GC.
4508 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4509 * configure: Rebuilt.
4510 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4511 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4512 method get_finalizer().
4513 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4514 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4515 (_Jv_AllocObj): Add new jclass parameter.
4516 (_Jv_AllocArray): Ditto.
4517 (_Jv_BuildGCDescr): New prototype.
4518 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4519 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4520 get_finalizer() instead of direct finalizer vtable offset.
4521 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4522 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4523 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4524 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4525 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4526 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4527 (_Jv_DetermineVTableIndex): Ditto.
4528 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4529 calculations to account for new gc_descr field.
4530 * boehm.cc: #include gc_gcj.h.
4531 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4532 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4533 New commentary from HB. Mark the classes vtable.
4534 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4535 (GC_DEFAULT_DESCR): New #define.
4536 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4537 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4538 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4539 scan conservativly if size is less than min_heap_addr. Set vtable
4540 pointer of new object before returning.
4541 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4542 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4543 allocation for obj_kind_x.
4544 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4545 (_Jv_AllocObj): Set vtable on returned object.
4546 (_Jv_AllocArray): Ditto.
4547 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4548 (_Jv_NewPrimArray): Ditto.
4549 (_Jv_AllocObj): Declare as a friend.
4550 (_Jv_AllocArray): Ditto.
4551 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4552 from &ObjectClass into new array class. Remove offset-by-one
4553 adjustments from `method' size calculations to account for gc_descr
4556 2000-09-26 Tom Tromey <tromey@cygnus.com>
4558 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4559 `remove', not `add'.
4561 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4563 * java/lang/natSystem.cc (file_encoding): Added return statement.
4565 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4567 * Makefile.am: Re-work shell commands that exceeded command-line
4569 * Makefile.in: Rebuilt.
4571 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4573 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4574 * java/lang/natDouble.cc: Likewise.
4575 * java/lang/reflect/natMethod.cc: Likewise.
4576 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4578 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4580 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4582 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4583 * acinclude.m4: Arrange for automake to not bring in a new
4584 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4585 * Makefile.am: Leave it up to automake to subst GCJ.
4586 * aclocal.m4, configure, Makefile.in: Rebuilt.
4588 2000-09-13 Tom Tromey <tromey@cygnus.com>
4590 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4591 (get): Ensure Boolean class is initialized.
4592 * java/lang/reflect/natField.cc (BooleanClass): New define.
4593 (get): Ensure Boolean class is initialized.
4595 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4597 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4598 Initialize with anonymous class.
4599 (compareToIgnoreCase): New method.
4601 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4602 (uncaughtException): Set had_uncaught_exception.
4603 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4604 exit with error status if set.
4605 (_Jv_RunMain): Ditto.
4607 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4609 * configure: Rebuilt with new ../libtool.m4.
4611 2000-09-11 Tom Tromey <tromey@cygnus.com>
4613 * java/lang/reflect/Field.java (toString): Don't rely on
4616 2000-09-08 Tom Tromey <tromey@cygnus.com>
4618 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4619 default decoder use iconv.
4620 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4621 Let default encoder use iconv.
4622 * configure: Rebuilt.
4623 * configure.in: Check for nl_langinfo and <langinfo.h>.
4624 * java/lang/natSystem.cc (file_encoding): New function.
4625 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4627 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4629 * acinclude.m4: Simplify the tests for CC and CXX.
4630 * aclocal.m4, configure: Rebuilt.
4632 * acinclude.m4: Include libtool macros from the source tree.
4633 * aclocal.m4, configure: Rebuilt.
4635 2000-09-08 Warren Levy <warrenl@cygnus.com>
4637 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4638 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4639 * java/io/File.java (writeObject): Added.
4640 (readObject): Added.
4641 (serialVersionUID): Added.
4642 * java/io/ObjectOutputStream.java (writeObject): Initialized
4643 fieldsAlreadyWritten before recursion rather than after.
4644 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4645 * java/io/OptionalDataException.java (serialVersionUID): Added.
4646 (OptionalDataException): Made package private.
4647 * java/io/SyncFailedException.java (SyncFailedException): Removed
4648 default constructor to match spec.
4649 * java/lang/Boolean.java (serialVersionUID): Added.
4650 * java/lang/Byte.java (serialVersionUID): Added.
4651 * java/lang/Character.java (serialVersionUID): Added.
4652 * java/lang/Double.java (serialVersionUID): Added.
4653 * java/lang/Float.java (serialVersionUID): Added.
4654 * java/lang/Integer.java (serialVersionUID): Added.
4655 * java/lang/Long.java (serialVersionUID): Added.
4656 * java/lang/Number.java (serialVersionUID): Added.
4657 * java/lang/Short.java (serialVersionUID): Added.
4658 * java/lang/String.java (serialVersionUID): Added.
4659 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4661 * java/lang/reflect/InvocationTargetException.java
4662 (serialVersionUID): Added.
4663 * java/net/URL.java (handler): Made transient.
4664 (hashCode): Added field for serialization, per spec. and use
4665 cached value if available.
4666 (serialVersionUID): Added.
4667 (URL): Initialize hashCode.
4668 (set): Adjust hashCode.
4669 (readObject): New Method to initialize the protocol handler when
4671 (writeObject): New method.
4672 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4673 * java/text/Collator.java: Removed 'implements Serializable'.
4674 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4675 * java/util/Properties.java (serialVersionUID): Added.
4676 * java/util/Random.java (serialVersionUID): Added.
4677 (seed): Made private.
4678 (nextNextGaussian): Made private.
4679 (haveNextNextGaussian): Made private.
4680 * java/util/Stack.java (serialVersionUID): Added.
4681 * java/util/TimeZone.java (serialVersionUID): Added.
4682 * java/util/Vector.java (serialVersionUID): Added.
4684 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4686 * Makefile.am (Thread.h): Don't be friends with native threads
4688 * Makefile.in: Rebuilt.
4689 * java/lang/Thread.java (interrupt_flag): Make package-private.
4691 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4693 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4694 to avoid long long division.
4696 2000-09-06 Tom Tromey <tromey@cygnus.com>
4698 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4700 * java/lang/reflect/Method.java (toString): Use `getName' for
4703 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4704 `args' if method takes no parameters.
4706 Fix for PR java.lang/339:
4707 * java/lang/natPosixProcess.cc (fail): New function.
4708 (cleanup): New function.
4709 (startProcess): Use them. Create pipe so child can communicate
4710 exec failure back to parent.
4712 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4714 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4716 (send): Undo last patch. Remove the label only.
4718 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4720 * java/net/natInetAdress.cc: Ditto.
4722 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4724 2000-09-05 Tom Tromey <tromey@cygnus.com>
4726 * doc/cni.sgml: Updated from master copy.
4728 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4730 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4732 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4734 * java/lang/fdlibm.h: #undef __P if previously defined.
4735 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4736 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4740 2000-09-04 Tom Tromey <tromey@cygnus.com>
4742 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4745 2000-09-04 Anthony Green <green@redhat.com>
4747 Fix for PR java.io/203:
4748 * java/io/File.java (createTempFile): Obey directory argument.
4749 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4750 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4751 variable to set java.io.tmpdir on non-WIN32 systems.
4753 2000-09-04 Anthony Green <green@redhat.com>
4755 * java/io/File.java (deleteOnExit): New method.
4756 * gnu/gcj/runtime/FileDeleter.java: New class.
4757 * java/lang/natRuntime.cc (exit): Call
4758 FileDeleter.deleteOnExitNow()
4759 * Makefile.am: Add FileDeleter.java.
4760 * Makefile.in: Rebuilt.
4762 2000-09-02 Tom Tromey <tromey@cygnus.com>
4764 * Makefile.in: Rebuilt.
4765 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4766 environment variable.
4768 2000-09-01 Andrew Haley <aph@redhat.com>
4770 * java/io/StreamTokenizer.java: Don't throw a
4771 NumberFormatException if a field is numeric as far as the
4772 StreamTokenizer is concerned but not as far as Double.valueOf() is
4773 concerned: return a zero instead.
4775 2000-08-30 Tom Tromey <tromey@cygnus.com>
4777 * Makefile.in: Rebuilt.
4778 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4780 2000-08-28 Tom Tromey <tromey@cygnus.com>
4782 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4783 gnu/gcj/awt/ComponentDataBlitOp.java,
4784 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4785 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4786 java/awt/color/ICC_ColorSpace.java,
4787 java/awt/color/ICC_Profile.java,
4788 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4789 java/awt/image/ComponentColorModel.java,
4790 java/awt/image/ComponentSampleModel.java,
4791 java/awt/image/DataBuffer.java,
4792 java/awt/image/DataBufferByte.java,
4793 java/awt/image/DataBufferInt.java,
4794 java/awt/image/DataBufferUShort.java,
4795 java/awt/image/DirectColorModel.java,
4796 java/awt/image/IndexColorModel.java,
4797 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4798 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4799 java/awt/image/SinglePixelPackedSampleModel.java,
4800 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4801 Removed Latin-1 copyright symbols.
4802 * java/util/zip/ZipFile.java: Indentation fixes.
4804 2000-08-27 Mark Wielaard <mark@klomp.org>
4806 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4807 constructor, close can delete the file, finalize calls close.
4808 * java/util/jar/JarFile.java: Constructor that takes mode now
4811 2000-08-27 Anthony Green <green@redhat.com>
4813 * java/util/ArrayList.java, java/util/Timer.java,
4814 java/util/LinkedList.java, java/util/TimerTask.java,
4815 java/util/HashMap.java, java/util/AbstractMap.java,
4816 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4817 java/util/SortedSet.java: Imported from GNU Classpath.
4818 * Makefile.in: Rebuilt.
4819 * Makefile.am: Added new files.
4821 2000-08-26 Anthony Green <green@redhat.com>
4823 * Makefile.in: Rebuilt.
4824 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4827 * prims.cc: Include ClassLoader.h.
4828 (_Jv_RunMain): When executing jar files, classpath must be the jar
4829 file only. Lose our reference to the system ClassLoader in order
4830 to get a new one with the correct classpath.
4831 * java/lang/natSystem.cc (init_properties): When executing a jar
4832 file, only use the jar file for java.class.path.
4834 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4835 for bytecode archives.
4837 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4838 exists, but not Main-Class.
4840 2000-08-23 Mark Wielaard <mark@klomp.org>
4842 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4843 return -1 when fill() has no more data for the Inflater.
4845 2000-08-23 Mark Wielaard <mark@klomp.org>
4847 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4848 write(String) already does.
4850 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4852 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4853 to `alive_flag', call `init'.
4854 (init): New native method.
4855 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4858 2000-08-21 Mark Wielaard <mark@klomp.org>
4860 * Makefile.in: Rebuilt.
4861 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4863 (java/lang/reflect/Field.h): Likewise.
4864 (java/lang/reflect/Method.h): Likewise.
4865 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4868 2000-08-21 Tom Tromey <tromey@cygnus.com>
4870 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4873 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4875 * java/lang/natSystem.cc (init_properties): Change sourceware
4876 reference to sources.redhat.com.
4878 * include/java-props.h: Add _Jv_Jar_Class_Path.
4879 * prims.cc: Ditto. Set it from `gij -jar file' option.
4881 * java/lang/natSystem.cc (init_properties): Set java.class.path
4883 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4885 * java/util/PropertyPermission.java: Import from GNU Classpath.
4886 * Makefile.in: Rebuilt.
4887 * Makefile.am: Add java/util/PropertyPermission.java.
4888 * java/lang/System.java: Add setProperty method.
4890 * gij.cc (main): Add -jar option to execute jar files.
4891 (help): Describe -jar option.
4892 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4893 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4894 * gnu/gcj/runtime/FirstThread.java (main): New method.
4896 * java/util/jar/Attributes.java: Correct comment spelling.
4898 2000-08-20 Mark Wielaard <mark@klomp.org>
4900 * java/util/zip/Adler32.java: Make private variables really private
4901 * java/util/zip/CRC32.java: Make private variables really private
4902 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4904 * java/util/zip/InflaterInputStream.java: skip() could skip to
4906 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4907 * java/util/zip/ZipFile.java: size() new 1.2 method
4908 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4909 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4912 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4914 * java/util/jar/JarFile.java: Don't call
4915 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4918 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4920 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4921 Read the entire contents of the class file, not just what is
4924 * java/net/JarURLConnection.java: getEntry doesn't take any
4925 arguments. Return null if element is null.
4927 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4928 size from the archive, not the inflated size.
4930 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4931 java.util.zip.ZipFile.getEntry.
4933 * gij.cc (help): Change sourceware reference to
4936 2000-08-19 Tom Tromey <tromey@cygnus.com>
4938 * java/util/zip/ZipInputStream.java (createZipEntry):
4941 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4943 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4944 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4945 java/util/jar/JarInputStream.java,
4946 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4947 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4948 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4949 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4950 java/security/cert/Certificate.java,
4951 java/security/cert/CertificateEncodingException.java,
4952 java/security/cert/CertificateException.java,
4953 java/security/cert/CertificateExpiredException.java,
4954 java/security/cert/CertificateFactory.java,
4955 java/security/cert/CertificateFactorySpi.java,
4956 java/security/cert/CertificateNotYetValidException.java,
4957 java/security/cert/CertificateParsingException.java,
4958 java/security/cert/X509CRL.java,
4959 java/security/cert/X509CRLEntry.java,
4960 java/security/cert/X509Certificate.java,
4961 java/security/cert/X509Extension.java: Imported from Classpath.
4962 * java/util/Hashtable.java: Imported from Classpath.
4964 * java/util/zip/ZipInputStream.java: Create stub for
4967 * gcj/javaprims.h: Updated class list.
4969 * Makefile.in, gcj/Makefile.in: Rebuilt.
4970 * Makefile.am (ordinary_java_source_files): Add these new classes.
4972 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4974 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4975 * gnu/gcj/awt/GLightweightPeer.java: New file.
4976 * java/awt/BorderLayout.java: Implemented all methods.
4977 * java/awt/Button.java (actionListener, actionCommand): Renamed
4978 and modifier change.
4979 (addNotify): Call super.
4980 (dispatchEventImpl): New method.
4981 (getListeners): New method.
4982 (label): Made package-private, not private.
4983 * java/awt/Canvas.java: Implemented class body.
4984 * java/awt/Color.java (brighter): New method.
4985 (darker): New method.
4986 (hashCode): New method.
4987 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4988 (getGraphicsConfiguration): Delegate to
4989 getGraphicsConfigurationImpl().
4990 (getGraphicsConfigurationImpl): New method.
4991 (getToolkit): Only return value from peer if not null.
4992 (isDisplayable): Check with parent.
4993 (isShowing): No parent implies not showing.
4994 (getForeground): Check parent property if local is null.
4995 (getBackground): Likewise.
4996 (getFont): Likewise.
4997 (setForeground): Inform peer.
4998 (setBackground): Likewise
4999 (setLocale): Invalidate component.
5000 (getColorModel): Implemented.
5001 (setLocation): Invalidate, or ignore if no change.
5002 (setSize): Invalidate, or ignore if no change.
5003 (setBounds): Invalidate, or ignore if no change.
5004 (isOpaque): By default, heavyweight implies opaque.
5005 (isLightweight): Implemented.
5006 (getMaximumSize): Implemented.
5007 (doLayout): Implemented, NOP.
5008 (validate): Implemented, NOP.
5009 (invalidate): Only propagate to parent if parent was valid.
5010 (getGraphics): Implemented.
5011 (getFontMetrics): Implemented.
5012 (update): Implemented.
5013 (paintAll): Implemented.
5014 (repaint): Implemented all repaint methods.
5015 (print): Implemented.
5016 (printAll): Implemented.
5017 (createImage): Implemented.
5018 (dispatchEvent): Give the peer a chance to handle the event.
5019 (dispatchEventImpl): Dispatch paint events.
5020 (enableEvents): Lightweights enable events on parent component.
5021 (coalesceEvents): Coalesce paint events, and select event type
5023 (coalescePaintEvents): New method.
5024 (processEvent): Fix unfortunate ordering of statements, and call
5025 correct method for MOUSE_CLICKED.
5026 (processPaintEvent): New method.
5027 (addNotify): Allow container to notify children before event
5028 mask is set in peer.
5029 (addNotifyContainerChildren): New method.
5030 (removeNotify): Visibility should not change on removeNotify.
5031 (paramString): Implemented.
5032 (list): Implemented two of the list methods.
5033 * Container (myInsets): Removed, insets are managed by peer.
5034 (getInsets): Query peer.
5035 (addImpl): Fix reparenting, enable events for lightweights,
5036 initialize component array.
5037 (validate): Call doLayout in validateTree() instead.
5038 (validateTree): Do nothing if already valid. Call beginValidate(),
5039 endValidate() on peer. Call validateTree() instead of validate()
5040 for children that are containers. Mark valid after validation of
5042 (setFont): Partial implementation.
5043 (paint): Implemented.
5044 (visitChildren): New method.
5045 (visitChild): New method.
5046 (update): Implemented.
5047 (print): Implemented.
5048 (paintComponents): Implemented.
5049 (printComponents): Consider translation and clipping.
5050 (getComponentAt): Ignore invisible children. Return this if no
5052 (addNotify): Call super.
5053 (addNotifyContainerChildren): New method.
5054 (paramString): Implemented.
5055 (list): Implemented.
5056 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5058 (invokeLater): Likewise.
5059 (isDispatchThread): Likewise.
5060 * java/awt/FontMetrics (getLeading): Formula change.
5061 (getDescent): Consider leading also.
5062 (getMaxAscent): Default to getAscent().
5063 (getMaxDescent): Default to getDescent.
5064 (getMaxAdvance): Return value signifying unknown.
5065 (charWidth): Both methods implemented.
5066 (charsWidth): Implemented.
5067 (bytesWidth): Implemented.
5068 (getWidths): Implemented.
5069 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5071 (Frame): Rearragend constuctor chaining to disallow null being
5072 passed as a graphics configuration.
5073 (getTitle): Return empty string if null.
5075 (getIconImage): New method.
5076 (setIconImage): New method.
5077 (finalize): New method.
5078 (setMenuBar): Notify peer.
5079 (isResizable): New method.
5080 (setResizable): New method.
5081 (getState): New method.
5083 (remove): Implemented.
5084 (removeNotify): New method.
5085 (getFrames): New method.
5086 * java/awt/Graphics.java: Implemented body of class.
5087 * java/awt/Graphics2D.java: New file.
5088 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5089 * java/awt/Image.java: Implemented body of class.
5090 * java/awt/Panel.java (Panel): Call correct super constructor.
5091 (addNotify): Implemented.
5092 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5093 * java/awt/RenderingHints.java: New file.
5094 * java/awt/Toolkit.java (createComponent): Implemented.
5095 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5096 * java/awt/Window.java (Window): Two new constructors. Reordered
5097 constructor chaining.
5098 (getGraphicsConfigurationImpl): New method.
5099 (finalize): Call super.
5100 (addNotify): Call super.
5101 (pack): Do layout stuff.
5102 (show): Ensure that peer exists and that component is valid.
5103 (dispose): Dispose owned children.
5104 (getOwner): Simplify code, casting null pointers is valid.
5105 (getGraphicsConfiguration): Ask peer if local value is null.
5106 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5108 * java/awt/image/BufferedImage.java: New file.
5109 * java/awt/image/RasterOp.java: New file.
5110 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5111 More powerfull replacement for getColorModel().
5112 (getColorModel) Removed.
5113 (setEventMask) New method.
5114 * Makefile.am: Added new files.
5115 * Makefile.in: Rebuilt.
5117 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5119 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5120 (finit_leg_name): New global.
5121 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5122 `$finit$'. This is a backward compatibility hack.
5123 (java::lang::Class::_getMethods): Likewise.
5125 2000-08-15 Andrew Haley <aph@cygnus.com>
5127 * include/jvm.h (_Jv_HashCode): New hash code.
5129 2000-08-15 Tom Tromey <tromey@cygnus.com>
5131 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5133 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5135 * THANKS: More thanks.
5137 2000-08-10 Tom Tromey <tromey@cygnus.com>
5139 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5141 (connect): Likewise.
5143 (getOption): Likewise.
5144 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5145 case when errno not set.
5148 (receive): Likewise.
5149 (mcastGrp): Likewise.
5150 (setOption): Likewise.
5151 (getOption): Likewise.
5153 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5154 John Stracke <francis@ecal.com>
5156 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5157 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5159 (disconnect): Don't unset connected flag.
5160 (getHeaderField (String)): Call connect() if not connected.
5161 (getHeaderField (int)): Ditto.
5162 (getHeaderFieldKey): Ditto.
5163 (getHttpHeaders): Don't call connect().
5164 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5165 gotResponseVals): New fields.
5166 (getResponseCode): Call getResponseVals() conditionally.
5167 (getResponseMessage): Ditto.
5168 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5170 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5172 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5173 * Makefile.in: Rebuilt.
5174 * java/awt/Color.java (getTransparency): New method.
5175 * java/awt/Component.java: Various updates.
5176 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5177 after dealing with children.
5178 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5179 * java/awt/Window.java: Various new methods and updates.
5180 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5182 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5183 * java/awt/event/WindowEvent.java (paramString): Ditto.
5184 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5186 * java/awt/geom/Point2D.java (clone): Ditto.
5187 * java/awt/geom/RectangularShape.java (clone): Ditto.
5188 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5189 isAlphaPremultiplied): Make package-private, not private.
5191 2000-08-08 Tom Tromey <tromey@cygnus.com>
5193 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5194 surrogate characters.
5195 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5197 (write): Correct handling of surrogate characters.
5199 2000-08-07 Tom Tromey <tromey@cygnus.com>
5201 * java/lang/reflect/Method.java (hashCode): Use getName().
5202 (toString): Likewise.
5203 * java/lang/reflect/natMethod.cc (getType): Initialize
5206 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5208 * java/lang/reflect/Field.java (toString): Correct formatting.
5211 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5213 (receive): Streamlined.
5215 2000-08-05 Tom Tromey <tromey@cygnus.com>
5217 * java/io/PrintWriter.java: Merged comments from Classpath.
5218 (printlnUnsynchronized): Removed.
5219 (println()): Print the separator.
5220 (println): Call println(), not printlnUnsynchronized.
5221 (out): Now protected, to match spec.
5223 2000-08-04 Tom Tromey <tromey@cygnus.com>
5225 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5226 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5229 2000-08-03 Warren Levy <warrenl@cygnus.com>
5231 * java/io/ObjectInputStream.java (readFields): Turn off
5232 readDataFromBlock while reading via GetField.
5233 (GetField$1.get(String, Object)): Pass Class of default value to
5235 (getField): Allow for null default values.
5237 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5238 (PutField$1.put): Fixed calls of checkType in most of the put
5239 methods to pass the correct parameter.
5240 (PutField$1.put(String, Object)): Allow for null value arg.
5241 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5244 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5245 typo in spec'ed field name.
5246 (getSerialPersistentFields): Changed spelling of method to match
5247 the correct spelling of the spec'ed field name.
5249 2000-08-03 Tom Tromey <tromey@cygnus.com>
5251 * Makefile.in: Rebuilt.
5252 * Makefile.am (awt_java_source_files): Added new files.
5254 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5256 * Makefile.am: Add new AWT stubs.
5257 * java/awt/Canvas.java: New placeholder class.
5258 * java/awt/Checkbox.java: Ditto.
5259 * java/awt/CheckboxMenuItem.java: Ditto.
5260 * java/awt/Choice.java: Ditto.
5261 * java/awt/Dialog.java: Ditto.
5262 * java/awt/FileDialog.java: Ditto.
5263 * java/awt/List.java: Ditto.
5264 * java/awt/ScrollPane.java: Ditto.
5265 * java/awt/TextField.java: Ditto.
5266 * java/awt/datatransfer/Clipboard.java: Ditto.
5267 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5268 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5269 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5270 Some commented out. Partially implemented.
5271 * java/awt/natToolkit.cc: Removed file.
5273 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5275 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5276 Fixes "make -j" builds.
5277 * Makefile.in: Rebuild.
5279 2000-08-02 Tom Tromey <tromey@cygnus.com>
5281 * Makefile.in: Rebuilt.
5282 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5283 * java/net/natPlainSocketImpl.cc: Include posix.h.
5284 (accept): Use _Jv_select.
5285 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5286 (receive): Use _Jv_select.
5287 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5288 (available): Use _Jv_select.
5289 * java/lang/natSystem.cc: Include posix.h.
5290 (currentTimeMillis): Use _Jv_gettimeofday.
5291 * include/posix.h: New file.
5292 * posix.cc: New file.
5294 * scripts/encodings.pl: New file.
5295 * Makefile.in: Rebuilt.
5296 * Makefile.am (convert_source_files): Added IOConverter.java.
5297 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5299 (getDefaultDecodingClass): Canonicalize default encoding name.
5300 (getEncoder): Likewise.
5301 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5303 (getDefaultDecodingClass): Canonicalize default encoding name.
5304 (getDecoder): Likewise.
5305 * gnu/gcj/convert/IOConverter.java: New file.
5307 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5309 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5310 to match C declaration in ffi.h.
5311 * Makefile.am: Add java/awt/Button.java.
5312 * Makefile.in: Rebuilt.
5314 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5316 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5317 cast of the second argument to `ffi_raw_call' changed to match
5320 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5322 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5323 argument to `ffi_raw_call' changed to match prototype.
5325 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5327 * java/awt/Component.java (toString): Implemented.
5328 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5329 dispatchEvent() to dispatch the event.
5330 (removeImpl): Ditto.
5332 2000-07-30 Anthony Green <green@redhat.com>
5334 * java/awt/Component.java: Add treeLock object.
5335 (getTreeLock): Implement.
5336 (isShowing): Implement.
5338 2000-07-30 Tom Tromey <tromey@cygnus.com>
5340 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5342 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5344 * java/awt/Window.java (addNotify): Wrote.
5345 (addWindowListener): Wrote.
5347 (getWarningString): Wrote.
5348 (processEvent): Wrote.
5349 (processWindowEvent): Wrote.
5350 (removeWindowListener): Wrote.
5351 (show): Call validate(), setVisible().
5355 * java/awt/Toolkit.java (createWindow): Declare.
5357 * java/awt/Frame.java (addNotify): Use getToolkit to find
5360 * java/awt/Component.java (invalidate): Wrote.
5362 (getToolkit): Wrote.
5364 * java/awt/Container.java (addContainerListener): Removed
5366 (removeContainerListener): Likewise.
5368 (add(Component)): Use it.
5369 (add(String,Component)): Likewise.
5370 (add(Component,int)): Likewise.
5371 (add(Component,Object)): Likewise.
5372 (add(Component,Object,int)): Likewise.
5374 (getAlignmentX): Wrote.
5375 (getAlignmentY): Wrote.
5376 (getComponentAt): Wrote.
5377 (getMaximumSize): Wrote.
5378 (invalidate): Wrote.
5379 (list(PrintStream,int)): Wrote.
5380 (list(PrintWriter,int)): Wrote.
5381 (getMinimumSize): Wrote.
5382 (getPreferredSize): Wrote.
5383 (printComponents): Wrote.
5384 (processContainerEvent): Look at containerListener, not
5386 (remove): Added event processing and peer destruction.
5387 (removeAll): Use remove.
5388 (removeNotify): Wrote.
5390 (validateTree): Wrote.
5392 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5393 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5394 * java/awt/Container.java (addNotify): Don't create Container
5396 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5398 2000-07-30 Tom Tromey <tromey@cygnus.com>
5400 * java/awt/Container.java (remove(int)): Wrote.
5401 (remove(Component)): Wrote.
5402 (add(Component)): Wrote.
5403 (add(Component,int)): Wrote.
5405 (addNotify): Set our own peer.
5406 * java/awt/Scrollbar.java (listeners): Changed type.
5407 (Scrollbar): Don't initialize listeners.
5409 (setValue): Call setValues.
5410 (setMinimum): Likewise.
5411 (setMaxPriority): Likewise.
5412 (setVisibleAmount): Likewise.
5414 (setUnitIncrement): Forward to peer.
5415 (setLineIncrement): Call setUnitIncrement.
5416 (setPageIncrement): Call setBlockIncrement.
5417 (setBlockIncrement): Forward to peer.
5418 (addAdjustmentListener): Rewrote.
5419 (removeAdjustmentListener): Rewrote.
5420 (processAdjustmentEvent): Rewrote.
5421 (paramString): Wrote.
5422 * Makefile.in: Rebuilt.
5423 * Makefile.am (awt_java_source_files): Added Button.java.
5424 * java/awt/Button.java: New file.
5425 * java/awt/Toolkit.java (createLabel): Declare.
5426 (createButton): Likewise.
5427 (createScrollbar): Likewise.
5428 (createContainer): Likewise.
5429 * java/awt/Label.java (addNotify): Wrote.
5430 (setAlignment): Call setAlignment in the peer.
5431 (setText): Call setText in the peer.
5433 2000-07-28 Warren Levy <warrenl@cygnus.com>
5435 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5436 NotSerializableException with just the class name.
5438 2000-07-26 Andrew Haley <aph@cygnus.com>
5440 * interpret.cc (continue1): Insert missing break into switch.
5442 2000-07-28 Warren Levy <warrenl@cygnus.com>
5444 * java/io/ObjectStreamException.java: Made constructors protected.
5446 2000-07-27 Tom Tromey <tromey@cygnus.com>
5448 * java/io/OutputStreamWriter.java (close): Only flush if not
5451 2000-07-27 Warren Levy <warrenl@cygnus.com>
5453 * mauve-libgcj: Activated serialization tests.
5454 * gcj/field.h (getModifiers): Mask off unknown flags.
5455 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5456 spurious bits don't cause discrepancies.
5457 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5458 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5459 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5460 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5461 * java/lang/Throwable.java (serialVersionUID): New field.
5462 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5463 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5465 * java/lang/reflect/natMethod.cc: Ditto.
5466 * java/security/Key.java (serialVersionUID): Removed field for now.
5467 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5468 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5470 2000-07-22 Tom Tromey <tromey@cygnus.com>
5472 * java/awt/geom/RectangularShape.java (getPathIterator):
5475 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5477 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5478 stub libjava/java/awt/ColorModel.java which was located in the
5480 * libjava/java/awt/image/ComponentColorModel.java: New file.
5481 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5482 * libjava/java/awt/image/DataBuffer.java: New file.
5483 * libjava/java/awt/image/DataBufferByte.java: New file.
5484 * libjava/java/awt/image/DataBufferInt.java: New file.
5485 * libjava/java/awt/image/DataBufferUShort.java: New file.
5486 * libjava/java/awt/image/DirectColorModel.java: New file.
5487 * libjava/java/awt/image/PackedColorModel.java: New file.
5488 * libjava/java/awt/image/Raster.java: New file.
5489 * libjava/java/awt/image/SampleModel.java: New file.
5490 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5492 * libjava/java/awt/image/IndexColorModel.java: New file.
5493 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5494 java.awt.ColorModel stub.
5496 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5497 * gnu/gcj/util/Buffers.java: New file, utility class.
5499 * libjava/Makefile.am: Updated to include new files.
5500 * libjava/Makefile.in: Rebuilt.
5502 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5504 * java/io/StreamTokenizer.java: Merged with classpath.
5506 2000-07-20 Tom Tromey <tromey@cygnus.com>
5508 * Makefile.in: Rebuilt.
5509 * Makefile.am (awt_java_source_files): Updated for new files.
5510 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5511 * java/awt/Label.java: New file.
5512 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5513 (createIntersection, createUnion, getBounds2D): New methods.
5514 * java/awt/Scrollbar.java: New file.
5515 * java/awt/Shape.java: Updated to 1.2.
5516 * java/awt/geom/AffineTransform.java: New file.
5517 * java/awt/geom/Ellipse2D.java: New file.
5518 * java/awt/geom/NoninvertibleTransformException.java: New file.
5519 * java/awt/geom/PathIterator.java: New file.
5520 * java/awt/geom/Rectangle2D.java: New file.
5521 * java/awt/geom/RectangularShape.java: New file.
5522 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5523 * java/awt/geom/IllegalPathStateException.java: New file.
5525 * scripts/showval.java: New file.
5527 * scripts/classes.pl (scan): Print inner classes properly.
5528 * gcj/javaprims.h: Updated class list.
5530 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5531 initialize String fields for interpreted classes. Fixes bug
5532 reported by Hans Boehm.
5534 * java/io/File.java (getParentFile): New method, from Classpath
5535 via Oskar Liljeblad.
5537 * java/util/Vector.java (remove(Object)): Implemented.
5539 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5541 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5542 zero return from backtrace().
5544 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5546 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5548 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5549 before calling notifyAll().
5551 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5553 Add missing files from last check-in:
5554 * java/awt/image/ImageConsumer.java: New file.
5555 * java/awt/image/ImageProducer.java: New file.
5556 * java/awt/image/ImageObserver.java: New file.
5558 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5560 Merged implementation of java.applet from classpath:
5561 * java/applet/Applet.java: New file.
5562 * java/applet/AppletContext.java: New file.
5563 * java/applet/AppletStub.java: New file.
5564 * java/applet/AudioClip.java: New file.
5566 * Makefile.am: Added new java.applet classes.
5567 * Makefile.in: Rebuilt.
5569 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5572 * java/util/ResourceBundle.java (getLocale): stub.
5573 * Makefile.am: Added new AWT classes.
5574 * Makefile.in: Rebuilt.
5575 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5576 constructors. Fix toString() and paramString().
5577 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5578 * java/awt/CheckboxGroup.java: New class.
5579 * java/awt/ColorModel.java: New class.
5580 * java/awt/Component.java: Added stubs for most methods. Implemented
5582 * java/awt/Container.java: ditto.
5583 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5584 * java/awt/Cursor.java: ditto.
5585 * java/awt/Event.java: Fix paramString().
5586 * java/awt/EventQueue.java: New class. Implemented.
5587 * java/awt/Font.java: Added additional stub methods. Implemented
5589 * java/awt/FontMetrics.java: New class. Stubbed.
5590 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5592 * java/awt/Insets.java: New class. Implemented.
5593 * java/awt/Menu.java: Add new methods. Partially implemented.
5594 * java/awt/MenuItem.java: Add new methods and fields. Partially
5596 * java/awt/MenuShortcut.java: New class. Implemented.
5597 * java/awt/Panel.java: New class. Placeholder.
5598 * java/awt/PopupMenu.java: New class. Stubbed.
5599 * java/awt/Rectangle.java: New class. Implemented.
5600 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5601 * java/awt/event/ActionEvent.java: Implement paramString().
5602 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5603 * java/awt/event/ComponentEvent.java: Implement paramString().
5604 * java/awt/event/ContainerEvent.java: Implement paramString().
5605 * java/awt/event/FocusEvent.java: Implement paramString().
5606 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5607 * java/awt/event/HierarchyBoundsListener.java: New class.
5608 * java/awt/event/HierarchyEvent.java: New class.
5609 * java/awt/event/HierarchyListener.java: New class.
5610 * java/awt/event/InputMethodEvent.java: Implement paramString().
5611 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5612 exception if !catchExceptions.
5613 * java/awt/event/ItemEvent.java: Implement paramString().
5614 * java/awt/event/KeyEvent.java: Implement paramString().
5615 * java/awt/event/MouseEvent.java: Implement paramString().
5616 * java/awt/event/PaintEvent.java: Implement paramString().
5617 * java/awt/event/TextEvent.java: Implement paramString().
5618 * java/awt/event/WindowEvent.java: Implement paramString().
5620 AWT Peer interfaces:
5621 * java/awt/peer/ButtonPeer.java: New file.
5622 * java/awt/peer/ListPeer.java: New file.
5623 * java/awt/peer/CanvasPeer.java: New file.
5624 * java/awt/peer/MenuBarPeer.java: New file.
5625 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5626 * java/awt/peer/MenuComponentPeer.java: New file.
5627 * java/awt/peer/CheckboxPeer.java: New file.
5628 * java/awt/peer/MenuItemPeer.java: New file.
5629 * java/awt/peer/ChoicePeer.java: New file.
5630 * java/awt/peer/MenuPeer.java: New file.
5631 * java/awt/peer/ComponentPeer.java: Implemented.
5632 * java/awt/peer/PanelPeer.java: New file.
5633 * java/awt/peer/ContainerPeer.java: Implemented.
5634 * java/awt/peer/PopupMenuPeer.java: New file.
5635 * java/awt/peer/DialogPeer.java: New file.
5636 * java/awt/peer/ScrollPanePeer.java: New file.
5637 * java/awt/peer/FileDialogPeer.java: New file.
5638 * java/awt/peer/ScrollbarPeer.java: New file.
5639 * java/awt/peer/FontPeer.java: New file.
5640 * java/awt/peer/TextAreaPeer.java: New file.
5641 * java/awt/peer/FramePeer.java: Implemented.
5642 * java/awt/peer/TextComponentPeer.java: New file.
5643 * java/awt/peer/LabelPeer.java: New file.
5644 * java/awt/peer/TextFieldPeer.java: New file.
5645 * java/awt/peer/LightweightPeer.java: New file.
5646 * java/awt/peer/WindowPeer.java: Implemented.
5648 2000-07-06 Tom Tromey <tromey@cygnus.com>
5650 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5651 Initialize static final String fields.
5653 2000-07-03 Tom Tromey <tromey@cygnus.com>
5655 * java/io/PrintWriter.java (print): Call write(String), not
5656 print(String). See PR libgcj/277.
5657 (print(String)): Use write, not out.write.
5659 2000-06-30 Tom Tromey <tromey@cygnus.com>
5661 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5663 2000-06-27 Andrew Haley <aph@cygnus.com>
5665 * java/io/File.java (createTempFile): Close the FileDescriptor
5666 used to create a temp file. Fixes some of PR 203.
5667 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5668 collection if we run out of file handles.
5670 2000-06-28 Warren Levy <warrenl@cygnus.com>
5672 * gnu/java/security/provider/Gnu.java: New file.
5673 * gnu/java/security/provider/SHA.java: New file.
5674 * gnu/java/security/provider/SHA1PRNG.java: New file.
5675 * Makefile.am: Added the above files.
5676 * Makefile.in: Rebuilt.
5678 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5680 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5682 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5683 (destroyed_flag): Removed.
5684 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5685 (activeCount): Added spec note.
5687 2000-06-27 Warren Levy <warrenl@cygnus.com>
5689 * java/security/Principal.java: New file.
5690 * Makefile.am: Added Principal.java.
5691 * Makefile.in: Rebuilt.
5693 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5695 * java/awt/event/MouseEvent.java: Fixed coordinate space
5698 2000-06-27 Tom Tromey <tromey@cygnus.com>
5700 * java/io/PushbackInputStream.java (read): If there are characters
5701 in the buffer, don't also call super.read().
5702 * java/io/PushbackReader.java (read): If there are characters in
5703 the buffer, don't also call super.read().
5705 * java/lang/Double.java (valueOf): Call parseDouble().
5707 2000-06-26 Warren Levy <warrenl@cygnus.com>
5709 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5710 (newVal): Renamed to newValue.
5711 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5712 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5713 (revokeNow): Renamed to invalidateRefs.
5714 * java/io/OptionalDataException.java: Updated FIXME.
5715 (eof): New placeholder field.
5717 * java/io/WriteAbortedException.java (message): Made transient.
5718 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5719 * java/lang/Throwable.java (stackTrace): Made transient.
5720 * java/net/InetAddress.java: Made Serializable.
5721 * java/security/KeyPair.java: Made Serializable.
5722 * java/security/Provider.java: Replaced with Classpath version that
5723 implements serialization and proper methods.
5724 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5725 (limits): Renamed to choiceLimits.
5727 2000-06-24 Tom Tromey <tromey@cygnus.com>
5729 * java/lang/natDouble.cc (parseDouble): Renamed from
5731 * java/lang/Double.java (parseDouble): Renamed from
5732 doubleValueOf. Now public.
5734 2000-06-23 Andrew Haley <aph@cygnus.com>
5736 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5737 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5739 2000-06-23 Tom Tromey <tromey@cygnus.com>
5741 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5742 * java/lang/natDouble.cc: Always include <alloca.h>.
5743 Fix for PR libgcj/267.
5745 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5747 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5748 comply with classpath VM spec.
5749 (add(Group)): Rename to addGroup().
5750 * java/lang/Thread.java (Thread): Use addThread().
5751 * java/lang/natThread.cc (finish_): Use removeThread().
5753 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5755 * java/lang/ThreadGroup.java: Merged with classpath.
5756 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5757 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5759 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5760 ThreadGroup.root if Thread.currentThread is null. Honour the
5761 ThreadGroup's max priority setting.
5763 2000-06-18 Tom Tromey <tromey@cygnus.com>
5765 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5766 returned class. For PR gcj/260.
5768 2000-06-16 Tom Tromey <tromey@cygnus.com>
5770 Fix for PR libgcj/261:
5771 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5773 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5774 argument. (This is a patch from long ago that somehow went
5777 2000-06-15 Tom Tromey <tromey@cygnus.com>
5779 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5783 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5785 Fix for PR java.lang/258:
5786 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5787 JV_STATE_DONE, to prevent accidental initialization.
5788 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5789 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5790 interface or an abstract class. Remove redundant initializeClass calls.
5791 Remove duplicate if_idt test.
5792 (_Jv_InterfaceAssignableFrom): New function.
5793 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5795 2000-05-31 Tom Tromey <tromey@cygnus.com>
5797 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5798 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5799 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5800 (NUM_OBJECT_METHODS): New define.
5801 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5802 `array_vtable' parameter. Added assertion.
5803 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5806 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5808 * gcj/cni.h: Include <string.h>.
5809 * defineclass.cc: Include <alloca.h>.
5810 * interpret.cc: Ditto.
5811 * gij.cc: Include <stdlib.h>.
5813 2000-05-30 Tom Tromey <tromey@cygnus.com>
5815 * include/name-finder.h: Include <sys/wait.h>.
5816 (_Jv_name_finder::pid): Now of type `pid_t'.
5817 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5818 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5821 2000-05-24 Warren Levy <warrenl@cygnus.com>
5823 * java/io/ObjectOutputStream.java (writeObject): Use component type
5824 when writing arrays.
5827 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5829 Fix for PR libgcj/226:
5830 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5831 since this is an installed header.
5833 Fix for PR libgcj/228:
5834 * java/util/zip/ZipFile (getInputStream): Create inflater with
5837 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5838 with DataFormatException.
5840 2000-05-20 Tom Tromey <tromey@cygnus.com>
5842 * Makefile.in: Rebuilt.
5843 * Makefile.am (hack1): Removed.
5844 (awto_files): Likewise.
5845 (libgcjawt_la_SOURCES): Likewise.
5846 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5847 (libgcjawt_la_DEPENDENCIES): Likewise.
5848 (libgcjawt_la_LIBADD): Likewise.
5849 (libgcjawt_la_LDFLAGS): Likewise.
5850 (libgcjawt_la_LINK): Likewise.
5851 ($(awt_java_source_files:.java=.class)): Likewise.
5852 (libgcj.zip): Don't depend on AWT files.
5853 (MOSTLYCLEANFILES): Don't include AWT files.
5854 ($(awto_files)): Removed.
5855 (nat_headers): Removed AWT files.
5856 (cond_awt_java_source_files): Removed.
5857 (ordinary_java_source_files): Added awt_java_source_files.
5858 * libgcj.spec.in (*lib): Removed -lgcjawt.
5859 * configure: Rebuilt.
5860 * configure.in: Removed --enable-java-awt option.
5862 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5864 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5865 (ZipEntry): Copy the `name' field.
5866 (clone): Implement JDK1.2 method.
5867 (setCompressedSize): ditto.
5870 2000-05-19 Tom Tromey <tromey@cygnus.com>
5872 * java/io/BufferedWriter.java: Merged with Classpath.
5873 * java/io/BufferedOutputStream.java: Merged with Classpath.
5875 2000-05-16 Andrew Haley <aph@cygnus.com>
5877 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5878 build_ia64_frame_state.
5879 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5882 2000-05-15 Warren Levy <warrenl@cygnus.com>
5884 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5885 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5886 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5887 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5888 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5889 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5890 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5891 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5892 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5893 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5894 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5895 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5896 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5897 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5898 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5899 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5900 * gnu/gcj/io/NullOutputStream.java: Removed.
5901 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5902 * gnu/gcj/lang/ArrayHelper.java: Removed.
5903 * gnu/gcj/lang/ClassHelper.java: Removed.
5904 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5906 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5907 * gnu/java/beans/EmptyBeanInfo.java: New file.
5908 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5909 * gnu/java/beans/IntrospectionIncubator.java: New file.
5910 * gnu/java/beans/editors/ColorEditor.java: New file.
5911 * gnu/java/beans/editors/FontEditor.java: New file.
5912 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5913 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5914 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5915 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5916 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5917 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5918 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5919 * gnu/java/beans/editors/StringEditor.java: New file.
5920 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5921 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5922 * gnu/java/io/NullOutputStream.java: New file.
5923 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5924 * gnu/java/lang/ArrayHelper.java: New file.
5925 * gnu/java/lang/ClassHelper.java: New file.
5926 * gnu/java/lang/reflect/TypeSignature.java: New file.
5928 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5929 namespace back to the original Classpath gnu/java namespace.
5930 * Makefile.in: Rebuilt.
5932 * java/beans/Beans.java: Namespace change.
5933 * java/beans/EventSetDescriptor.java: Namespace change.
5934 * java/beans/Introspector.java: Namespace change.
5935 * java/beans/PropertyEditorManager.java: Namespace change.
5936 * java/io/ObjectInputStream.java: Namespace change.
5937 * java/io/ObjectOutputStream.java: Namespace change.
5938 * java/io/ObjectStreamClass.java: Namespace change.
5939 * java/io/ObjectStreamField.java: Namespace change.
5941 2000-04-21 Warren Levy <warrenl@cygnus.com>
5943 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5944 now that compiler patch is available.
5945 Removed unneeded System.loadLibrary.
5946 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5947 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5949 2000-04-19 Andrew Haley <aph@cygnus.com>
5951 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5952 and target classes have been initialized.
5954 2000-04-19 Andrew Haley <aph@cygnus.com>
5956 * java/lang/String.java: implement Serializable, Comparable.
5957 (compareTo (Object)): New method.
5959 2000-04-19 Warren Levy <warrenl@cygnus.com>
5961 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5962 instead of getField to retrieve non-public field.
5963 (getSerialPersistantFields): Ditto.
5965 2000-04-18 Warren Levy <warrenl@cygnus.com>
5967 * mauve-libgcj: Turned off object serialization tests temporarily
5968 due to compiler error.
5970 2000-04-17 Warren Levy <warrenl@cygnus.com>
5972 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5973 to avoid build problem.
5975 * mauve-libgcj: Turned on object serialization tests.
5977 2000-04-17 Tom Tromey <tromey@cygnus.com>
5979 * libgcj.spec.in (*lib): Added -lgcjawt.
5981 2000-04-17 Andrew Haley <aph@cygnus.com>
5983 * Makefile.am: Add new files:
5984 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5986 * Makefile.in: Rebuilt.
5988 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5989 interface that has no implementations.
5990 Check for an attempt to assign an abstract class to an interface.
5992 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5993 if we fail to find MessageDigest.getInstance ("SHA").
5995 * gnu/gcj/io/SimpleSHSStream.java: New file.
5996 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5997 * gnu/gcj/io/shs.cc: New file.
5998 * gnu/gcj/io/shs.h: new file.
6000 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6003 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6004 punctuation from the classname of an array element.
6006 * gcj/javaprims.h: Add SimpleDigestStream.
6008 2000-04-17 Andrew Haley <aph@cygnus.com>
6010 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6011 to getPrivateField for superclasses.
6013 2000-04-14 Andrew Haley <aph@cygnus.com>
6015 * Makefile.am: Add new files:
6016 java/io/ObjectOutputStream$PutField.h,
6017 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6018 java/io/natObjectOutputStream.cc
6019 * Makefile.in: Rebuilt.
6020 * gcj/Makefile.in: Rebuilt.
6021 * include/Makefile.in: Rebuilt.
6022 * java/lang/Class.h (getPrivateField): New method.
6023 (getPrivateMethod): Ditto.
6024 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6025 and java::io::ObjectStreamClass our friends.
6026 * java/lang/natClass.cc (getPrivateField): New method.
6027 (getPrivateMethod): Ditto.
6028 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6029 * gcj/javaprims.h: Add serialization classes.
6030 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6031 (setByteField): Ditto.
6032 (setCharField): Ditto.
6033 (setDoubleField): Ditto.
6034 (setFloatField): Ditto.
6035 (setIntField): Ditto.
6036 (setLongField): Ditto.
6037 (setShortField): Ditto.
6038 (setObjectField): Ditto.
6039 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6041 (getByteField): Ditto.
6042 (getCharField): Ditto.
6043 (getDoubleField): Ditto.
6044 (getFloatField): Ditto.
6045 (getIntField): Ditto.
6046 (getLongField): Ditto.
6047 (getShortField): Ditto.
6048 (getObjectField): Ditto.
6049 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6051 (getSerialPersistantFields): Ditto.
6052 (getDefinedSUID): Ditto.
6053 * java/io/natObjectOutputStream.cc: New file.
6054 * java/io/natObjectInputStream.cc: New file.
6056 2000-04-13 Warren Levy <warrenl@cygnus.com>
6058 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6059 problems. Revert to previous version to reproduce and when fixed.
6061 2000-04-13 Warren Levy <warrenl@cygnus.com>
6063 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6064 * gnu/gcj/io/NullOutputStream.java: New file.
6065 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6066 * java/io/BlockDataException.java: New file.
6067 * java/io/Externalizable.java: New file.
6068 * java/io/InvalidClassException.java: New file.
6069 * java/io/InvalidObjectException.java: New file.
6070 * java/io/NotActiveException.java: New file.
6071 * java/io/NotSerializableException.java: New file.
6072 * java/io/ObjectInput.java: New file.
6073 * java/io/ObjectInputStream.java: New file.
6074 * java/io/ObjectInputValidation.java: New file.
6075 * java/io/ObjectOutput.java: New file.
6076 * java/io/ObjectOutputStream.java: New file.
6077 * java/io/ObjectStreamClass.java: New file.
6078 * java/io/ObjectStreamConstants.java: New file.
6079 * java/io/ObjectStreamField.java: New file.
6080 * java/io/Replaceable.java: New file.
6081 * java/io/Resolvable.java: New file.
6082 * java/io/SerializablePermission.java: New file.
6083 * java/io/WriteAbortedException.java: New file.
6084 * java/security/BasicPermission.java: New file.
6085 * java/security/DigestOutputStream.java: New file.
6086 * java/security/Guard.java: New file.
6087 * java/security/Permission.java: New file.
6088 * java/security/PermissionCollection.java: New file.
6089 * Makefile.am: Added above files.
6090 * Makefile.in: Rebuilt.
6092 * java/beans/Beans.java (instantiate): Activated serialization code.
6093 * java/lang/SecurityManager.java (checkPermission): New method.
6095 2000-04-12 Warren Levy <warrenl@cygnus.com>
6097 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6098 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6099 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6100 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6101 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6102 * gnu/gcj/beans/editors/FontEditor.java: New file.
6103 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6104 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6105 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6106 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6107 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6108 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6109 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6110 * gnu/gcj/beans/editors/StringEditor.java: New file.
6111 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6112 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6113 * gnu/gcj/lang/ArrayHelper.java: New file.
6114 * gnu/gcj/lang/ClassHelper.java: New file.
6115 * java/beans/BeanDescriptor.java: New file.
6116 * java/beans/BeanInfo.java: New file.
6117 * java/beans/Beans.java: New file.
6118 * java/beans/Customizer.java: New file.
6119 * java/beans/DesignMode.java: New file.
6120 * java/beans/EventSetDescriptor.java: New file.
6121 * java/beans/FeatureDescriptor.java: New file.
6122 * java/beans/IndexedPropertyDescriptor.java: New file.
6123 * java/beans/IntrospectionException.java: New file.
6124 * java/beans/Introspector.java: New file.
6125 * java/beans/MethodDescriptor.java: New file.
6126 * java/beans/ParameterDescriptor.java: New file.
6127 * java/beans/PropertyChangeEvent.java: New file.
6128 * java/beans/PropertyChangeListener.java: New file.
6129 * java/beans/PropertyChangeSupport.java: New file.
6130 * java/beans/PropertyDescriptor.java: New file.
6131 * java/beans/PropertyEditor.java: New file.
6132 * java/beans/PropertyEditorManager.java: New file.
6133 * java/beans/PropertyEditorSupport.java: New file.
6134 * java/beans/PropertyVetoException.java: New file.
6135 * java/beans/SimpleBeanInfo.java: New file.
6136 * java/beans/VetoableChangeListener.java: New file.
6137 * java/beans/VetoableChangeSupport.java: New file.
6138 * java/beans/Visibility.java: New file.
6139 * java/beans/beancontext/BeanContext.java: New file.
6140 * java/beans/beancontext/BeanContextChild.java: New file.
6141 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6142 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6143 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6144 * java/beans/beancontext/BeanContextEvent.java: New file.
6145 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6146 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6147 * java/beans/beancontext/BeanContextProxy.java: New file.
6148 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6150 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6151 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6153 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6154 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6156 * java/beans/beancontext/BeanContextServices.java: New file.
6157 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6158 * java/util/AbstractCollection.java: New file.
6159 * java/util/AbstractList.java: New file.
6160 * java/util/Arrays.java: New file.
6161 * Makefile.am: Added above files.
6162 * Makefile.in: Rebuilt.
6164 2000-04-11 Warren Levy <warrenl@cygnus.com>
6166 * java/awt/AWTError.java: New file.
6167 * java/awt/AWTEvent.java: New file.
6168 * java/awt/AWTException.java: New file.
6169 * java/awt/ActiveEvent.java: New file.
6170 * java/awt/Adjustable.java: New file.
6171 * java/awt/BorderLayout.java: New file.
6172 * java/awt/Color.java: New file.
6173 * java/awt/Component.java: New file.
6174 * java/awt/Container.java: New file.
6175 * java/awt/Dimension.java: New file.
6176 * java/awt/Event.java: New file.
6177 * java/awt/Font.java: New file.
6178 * java/awt/Frame.java: New file.
6179 * java/awt/Graphics.java: New file.
6180 * java/awt/IllegalComponentStateException.java: New file.
6181 * java/awt/Image.java: New file.
6182 * java/awt/ItemSelectable.java: New file.
6183 * java/awt/LayoutManager.java: New file.
6184 * java/awt/LayoutManager2.java: New file.
6185 * java/awt/Menu.java: New file.
6186 * java/awt/MenuBar.java: New file.
6187 * java/awt/MenuComponent.java: New file.
6188 * java/awt/MenuContainer.java: New file.
6189 * java/awt/MenuItem.java: New file.
6190 * java/awt/Paint.java: New file.
6191 * java/awt/PaintContext.java: New file.
6192 * java/awt/Point.java: New file.
6193 * java/awt/Rectangle.java: New file.
6194 * java/awt/Shape.java: New file.
6195 * java/awt/TextArea.java: New file.
6196 * java/awt/TextComponent.java: New file.
6197 * java/awt/Toolkit.java: New file.
6198 * java/awt/Transparency.java: New file.
6199 * java/awt/Window.java: New file.
6200 * java/awt/natToolkit.cc: New file.
6201 * java/awt/event/AWTEventListener.java: New file.
6202 * java/awt/event/ActionEvent.java: New file.
6203 * java/awt/event/ActionListener.java: New file.
6204 * java/awt/event/AdjustmentEvent.java: New file.
6205 * java/awt/event/AdjustmentListener.java: New file.
6206 * java/awt/event/ComponentAdapter.java: New file.
6207 * java/awt/event/ComponentEvent.java: New file.
6208 * java/awt/event/ComponentListener.java: New file.
6209 * java/awt/event/ContainerAdapter.java: New file.
6210 * java/awt/event/ContainerEvent.java: New file.
6211 * java/awt/event/ContainerListener.java: New file.
6212 * java/awt/event/FocusAdapter.java: New file.
6213 * java/awt/event/FocusEvent.java: New file.
6214 * java/awt/event/FocusListener.java: New file.
6215 * java/awt/event/InputEvent.java: New file.
6216 * java/awt/event/InputMethodEvent.java: New file.
6217 * java/awt/event/InputMethodListener.java: New file.
6218 * java/awt/event/InvocationEvent.java: New file.
6219 * java/awt/event/ItemEvent.java: New file.
6220 * java/awt/event/ItemListener.java: New file.
6221 * java/awt/event/KeyAdapter.java: New file.
6222 * java/awt/event/KeyEvent.java: New file.
6223 * java/awt/event/KeyListener.java: New file.
6224 * java/awt/event/MouseAdapter.java: New file.
6225 * java/awt/event/MouseEvent.java: New file.
6226 * java/awt/event/MouseListener.java: New file.
6227 * java/awt/event/MouseMotionAdapter.java: New file.
6228 * java/awt/event/MouseMotionListener.java: New file.
6229 * java/awt/event/PaintEvent.java: New file.
6230 * java/awt/event/TextEvent.java: New file.
6231 * java/awt/event/TextListener.java: New file.
6232 * java/awt/event/WindowAdapter.java: New file.
6233 * java/awt/event/WindowEvent.java: New file.
6234 * java/awt/event/WindowListener.java: New file.
6235 * java/awt/geom/Dimension2D.java: New file.
6236 * java/awt/geom/Point2D.java: New file.
6237 * java/awt/peer/ComponentPeer.java: New file.
6238 * java/awt/peer/ContainerPeer.java: New file.
6239 * java/awt/peer/FramePeer.java: New file.
6240 * java/awt/peer/WindowPeer.java: New file.
6241 * java/util/Collection.java: New file.
6242 * java/util/Comparator.java: New file.
6243 * java/util/Iterator.java: New file.
6244 * java/util/List.java: New file.
6245 * java/util/ListIterator.java: New file.
6246 * Makefile.am: Added above files.
6247 * Makefile.in: Rebuilt.
6249 2000-04-10 Warren Levy <warrenl@cygnus.com>
6251 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6252 * java/lang/FirstThread.java: Ditto.
6253 * java/lang/StringBuffer.java: Ditto.
6254 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6256 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6257 Special case handled in java.math.BigInteger.
6258 * java/math/BigInteger.java (divide): Handle the special case when
6259 dividing by 1 and the high bit of the dividend is set.
6260 (setShiftRight): Handle case when count == 0.
6262 2000-04-05 Andrew Haley <aph@cygnus.com>
6264 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6267 2000-04-05 Andrew Haley <aph@cygnus.com>
6269 * sysdep/ia64.c (rse_address_add): Delete.
6270 (IS_NaT_COLLECTION_ADDR): Delete.
6271 (ia64_backtrace_helper): check for null unwind_info.
6273 * sysdep/ia64-frame.h: add calc_caller_bsp.
6275 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6278 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6279 (_Jv_remI): Likewise.
6280 (_Jv_divJ): Likewise.
6281 (_Jv_remJ): Likewise.
6283 * interpret.cc (continue1): Use divide subroutines to guarantee
6284 correct Java standard behaviour.
6285 Floating-point division should not abort; make it so.
6287 2000-03-29 Tom Tromey <tromey@cygnus.com>
6289 * configure: Rebuilt.
6290 * configure.in: Test against `libgcj_sjlj', not
6291 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6292 to be set even when using sjlj.
6294 2000-03-24 Andrew Haley <aph@cygnus.com>
6296 * Makefile.am: Add file addr2name.awk.
6297 * Makefile.in: Rebuilt.
6298 * addr2name.awk: New file.
6299 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6301 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6304 2000-03-22 Andrew Haley <aph@cygnus.com>
6306 * configure.host: Add -funwind-tables for IA64.
6307 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6308 * Makefile.in: Rebuilt.
6309 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6310 * sysdep/ia64.c: New file.
6311 * sysdep/ia64-frame.h: New file.
6312 * configure.in: Add sysdep/ia64.c for ia64.
6313 * configure: Rebuilt.
6315 2000-03-17 Andrew Haley <aph@cygnus.com>
6317 * java/lang/natString.cc: Remove `register' keyword.
6318 interpret.cc: ditto.
6320 2000-03-16 Andrew Haley <aph@cygnus.com>
6322 * configure.host (ia64): Enable interpreter.
6324 2000-03-14 Hans Boehm <boehm@acm.org>
6326 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6328 2000-03-14 Andrew Haley <aph@cygnus.com>
6330 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6333 2000-03-10 Andrew Haley <aph@cygnus.com>
6335 * java/lang/ieeefp.h: Import latest version from fdlibm.
6337 2000-03-14 Andrew Haley <aph@cygnus.com>
6339 * prims.cc (_Jv_ThrowSignal): New function.
6340 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6342 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6343 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6344 * include/ppc-signal.h: New file.
6346 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6348 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6349 * java/lang/natThread.java (initialize_native): Cast `data' to
6351 * gnu/gcj/RawData.java: Clarify documentation.
6353 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6354 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6355 `jarFile', not `jarFileURL'.
6357 2000-05-15 Andrew Haley <aph@cygnus.com>
6359 * include/ppc-signal.h: New file.
6361 2000-05-11 Tom Tromey <tromey@cygnus.com>
6363 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6364 file headers, don't include `size' in the skip call.
6366 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6368 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6369 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6371 (replace): Reimplemented. Fix javadoc.
6372 (reverse): Call ensureCapacity_unsynchronized().
6373 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6375 (replace): Calculate length for arraycopy() correctly.
6377 2000-05-09 Tom Tromey <tromey@cygnus.com>
6379 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6381 (insert(int,char[],int,int): New method.
6382 (delete): New method from Classpath.
6383 (deleteCharAt): Likewise.
6384 (substring): Likewise.
6385 (shared): No longer private.
6386 Added JavaDoc comments from Classpath.
6387 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6390 2000-05-07 Tom Tromey <tromey@cygnus.com>
6392 * Makefile.in: Rebuilt.
6393 * Makefile.am (LIBLINK): New macro.
6394 (libgcj_la_LINK): Use it.
6395 (libgcjawt_la_LINK): Likewise.
6397 2000-05-06 Tom Tromey <tromey@cygnus.com>
6399 * Makefile.in: Rebuilt.
6400 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6402 2000-05-05 Tom Tromey <tromey@cygnus.com>
6404 Fix for PR libgcj/220:
6405 * Makefile.in: Rebuilt.
6406 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6407 (jv_convert_LDFLAGS): Likewise.
6408 (libgcj_la_LDFLAGS): Likewise.
6409 (GCJLINK): New macro.
6410 (jv_convert_LINK): Use it.
6411 (gij_LINK): Likewise.
6412 (libgcj_la_LINK): New macro.
6413 (libgcjawt_la_LINK): Likewise.
6415 2000-05-04 Tom Tromey <tromey@cygnus.com>
6417 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6419 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6423 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6425 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6426 (_Jv_IsAssignableFrom): Ditto.
6427 (_Jv_IsInstanceOf): Ditto.
6428 (_Jv_CheckCast): Ditto.
6429 (_Jv_CheckArrayStore): Ditto.
6430 * java/lang/Class.h (_Jv_InitClass): Ditto.
6431 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6436 (_Jv_MonitorExit): Ditto.
6437 * boehm.cc (_Jv_MarkObj): Ditto.
6438 (_Jv_MarkObj): Ditto.
6439 (_Jv_MarkArray): Ditto.
6440 * prims.cc (_Jv_AllocObject): Ditto.
6441 (_Jv_NewObjectArray): Ditto.
6442 (_Jv_NewPrimArray): Ditto.
6443 (_Jv_Malloc): Ditto.
6444 (_Jv_Realloc): Ditto.
6445 (_Jv_MallocUnchecked): Ditto.
6451 2000-05-04 Tom Tromey <tromey@cygnus.com>
6453 * java/util/Locale.java (Locale): Don't explicitly check for
6455 * java/util/Hashtable.java (containsKey): Don't explicitly check
6458 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6460 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6462 * java/text/StringCharacterIterator.java
6463 (StringCharacterIterator): Don't check for null.
6464 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6466 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6467 check for null pointer.
6468 (leaveGroup): Likewise.
6469 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6471 (setData): Likewise.
6472 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6475 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6477 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6478 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6479 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6480 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6481 -rpath for in-gcc builds.
6482 * Makefile.in: Rebuilt.
6484 2000-04-28 Tom Tromey <tromey@cygnus.com>
6486 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6489 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6491 * libjava/java/lang/String.java (toString): Remove `final' hack.
6493 2000-04-05 Tom Tromey <tromey@cygnus.com>
6495 Runtime support for PR gcj/2:
6496 * prims.cc (_Jv_ThrowNullPointerException): New function.
6497 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6499 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6501 * prims.cc (_Jv_NewObjectArray): Fix typo.
6503 2000-04-26 Tom Tromey <tromey@cygnus.com>
6505 * Makefile.in: Rebuilt.
6506 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6508 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6510 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6513 2000-04-22 Anthony Green <green@cygnus.com>
6515 * include/jvm.h (__builtin_expect): Define as unused for now.
6516 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6520 (_Jv_MonitorExit): Ditto.
6521 * boehm.cc (_Jv_MarkObj): Ditto.
6522 (_Jv_MarkObj): Ditto.
6523 (_Jv_MarkArray): Ditto.
6524 (_Jv_AllocBytes): Ditto.
6525 * prims.cc (_Jv_AllocObject): Ditto.
6526 (_Jv_NewObjectArray): Ditto.
6527 (_Jv_NewPrimArray): Ditto.
6528 (_Jv_Malloc): Ditto.
6529 (_Jv_Realloc): Ditto.
6530 (_Jv_MallocUnchecked): Ditto.
6536 * include/Makefile.in: Rebuilt.
6537 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6539 2000-04-21 Tom Tromey <tromey@cygnus.com>
6541 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6542 Yet another new version from Classpath.
6544 Fix for PR libgcj/15:
6545 * java/util/natGregorianCalendar.cc (_REENTRANT,
6546 _POSIX_PTHREAD_SEMANTICS): Don't define.
6547 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6548 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6550 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6552 * configure: Rebuilt.
6553 * configure.in: If using POSIX threads, define _REENTRANT if
6554 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6555 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6557 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6558 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6559 version from Classpath.
6561 Fix for PR libgcj/213:
6562 * Makefile.in: Rebuilt.
6563 * Makefile.am (gij_SOURCES): Added gij.cc.
6564 (EXTRA_gij_SOURCES): Removed.
6565 (gij_LDADD): Removed gij.lo.
6566 (gij_DEPENDENCIES): Likewise.
6567 ($(gij_OBJECTS)): Depend on nat_headers.
6569 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6570 `setURL', not `url.set'.
6572 2000-04-20 Tom Tromey <tromey@cygnus.com>
6574 Fix for PR java.io/204:
6575 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6576 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6579 Fix for PR libgcj/212:
6580 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6581 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6582 * java/lang/Class.h (_Jv_word): Declare.
6584 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6586 2000-04-19 Tom Tromey <tromey@cygnus.com>
6588 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6589 doesn't have a loader.
6591 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6593 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6594 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6596 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6598 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6600 (available): Initialize `where' to prevent bogus compiler warning.
6602 2000-04-12 Tom Tromey <tromey@cygnus.com>
6604 * java/lang/natString.cc (intern): Temporarily disable finalizer
6607 * java/lang/natString.cc (unintern): Added `obj' argument.
6608 (intern): Register finalizer for string.
6609 * java/lang/String.java (unintern): Now static; added obj
6612 2000-04-11 Tom Tromey <tromey@cygnus.com>
6614 * java/util/Vector.java (VectorEnumeration): Now `final'.
6615 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6616 (HashtableEnumeration): Likewise.
6617 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6618 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6620 2000-04-10 Warren Levy <warrenl@cygnus.com>
6622 * java/io/ObjectStreamException.java: New file.
6623 * java/io/OptionalDataException.java: New file.
6624 * java/io/StreamCorruptedException.java: New file.
6625 * java/math/BigDecimal.java: New file.
6626 * java/sql/CallableStatement.java: New file.
6627 * java/sql/Connection.java: New file.
6628 * java/sql/DataTruncation.java: New file.
6629 * java/sql/DatabaseMetaData.java: New file.
6630 * java/sql/Date.java: New file.
6631 * java/sql/Driver.java: New file.
6632 * java/sql/DriverManager.java: New file.
6633 * java/sql/DriverPropertyInfo.java: New file.
6634 * java/sql/PreparedStatement.java: New file.
6635 * java/sql/ResultSet.java: New file.
6636 * java/sql/ResultSetMetaData.java: New file.
6637 * java/sql/SQLException.java: New file.
6638 * java/sql/SQLWarning.java: New file.
6639 * java/sql/Statement.java: New file.
6640 * java/sql/Time.java: New file.
6641 * java/sql/Timestamp.java: New file.
6642 * java/sql/Types.java: New file.
6643 * Makefile.am: Added above new files.
6644 * Makefile.in: Rebuilt.
6646 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6647 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6648 DatagramSocket constructor instead of null.
6650 2000-04-08 Anthony Green <green@cygnus.com>
6652 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6655 2000-04-08 Anthony Green <green@cygnus.com>
6657 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6658 (_Jv_MutexUnlock): Ditto.
6659 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6660 (_Jv_MutexUnlock): Ditto.
6662 2000-04-08 Anthony Green <green@cygnus.com>
6664 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6665 (ensureCapacity_unsynchronized): New private method.
6666 (append): Use ensureCapacity_unsynchronized.
6668 2000-04-08 Tom Tromey <tromey@cygnus.com>
6670 * Makefile.in: Rebuilt.
6671 * Makefile.am (awt_java_source_files): Added new files.
6672 * java/awt/IllegalComponentStateException.java: New file.
6673 * java/awt/ItemSelectable.java: New file.
6674 * java/awt/event/WindowEvent.java: Finished.
6675 * java/awt/event/TextEvent.java: Finished.
6676 * java/awt/event/ContainerEvent.java: New file.
6677 * java/awt/Component.java (getX, getY): New methods.
6678 * java/awt/event/PaintEvent.java: New file.
6679 * java/awt/event/MouseEvent.java: New file.
6680 * java/awt/ActiveEvent.java: New file.
6681 * java/awt/event/KeyEvent.java: Finished.
6682 * java/awt/event/ItemEvent.java: New file.
6683 * java/awt/Adjustable.java: New file.
6684 * java/awt/event/InputMethodEvent.java: New file.
6685 * java/awt/event/InputEvent.java: Finished.
6686 * java/awt/event/FocusEvent.java: New file.
6687 * java/awt/event/MouseMotionAdapter.java: New file.
6688 * java/awt/event/MouseAdapter.java: New file.
6689 * java/awt/event/KeyAdapter.java: New file.
6690 * java/awt/event/FocusAdapter.java: New file.
6691 * java/awt/event/ContainerAdapter.java: New file.
6692 * java/awt/event/ComponentEvent.java: Finished.
6693 * java/awt/event/AdjustmentEvent.java: New file.
6694 * java/awt/event/ComponentAdapter.java: New file.
6695 * java/awt/event/ActionEvent.java: Finished.
6696 * java/awt/event/MouseMotionListener.java: New file.
6697 * java/awt/event/MouseListener.java: New file.
6698 * java/awt/event/ItemListener.java: New file.
6699 * java/awt/event/InputMethodListener.java: New file.
6700 * java/awt/event/ContainerListener.java: New file.
6701 * java/awt/event/FocusListener.java: New file.
6702 * java/awt/event/ComponentListener.java: New file.
6703 * java/awt/event/AWTEventListener.java: New file.
6704 * java/awt/event/AdjustmentListener.java: New file.
6706 2000-04-08 Anthony Green <green@cygnus.com>
6708 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6709 check when we have to.
6711 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6714 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6717 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6718 inline hasMoreElements.
6720 2000-04-05 Tom Tromey <tromey@cygnus.com>
6722 * configure: Rebuilt.
6723 * configure.in: Recognize --enable-java-awt.
6724 (AWT): New conditional.
6725 * Makefile.in: Rebuilt.
6726 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6728 (libgcjawt_la_SOURCES): New macro.
6729 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6730 (libgcjawt_la_DEPENDENCIES): Likewise.
6731 (libgcjawt_la_LIBADD): Likewise.
6732 (libgcjawt_la_LDFLAGS): Likewise.
6733 (libgcj.zip): Depend on cond_java_awt_source_files
6734 (cond_awt_java_source_files): New macro.
6735 (MOSTLYCLEANFILES): Added awto_files.
6736 (awto_files): New macro. Use where javao_files used.
6737 (nat_headers): Use cond_awt_java_source_files.
6739 2000-04-04 Tom Tromey <tromey@cygnus.com>
6741 * Makefile.in: Rebuilt.
6742 * Makefile.am (awt_java_source_files): Added AWTException.java.
6743 * java/awt/AWTException.java: New file.
6745 2000-04-03 Tom Tromey <tromey@cygnus.com>
6747 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6748 commentary from Alex.
6750 * Makefile.in: Rebuilt.
6751 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6754 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6756 * configure: Rebuilt.
6757 * configure.in: Add --disable-jvmpi.
6758 * include/config.h.in: Rebuilt.
6759 * acconfig.h: Add ENABLE_JVMPI.
6761 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6762 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6763 (_Jv_JVMPI_Notify_THREAD_END): New define.
6764 (_Jv_JVMPI_Notify_THREAD_END): New define.
6765 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6766 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6767 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6769 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6772 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6773 (finish_): Generate JVMPI thread end events.
6774 (run_): Generate JVMPI thread start events.
6775 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6776 preloaded JNI library.
6777 Include JVMPI headers if necessary.
6778 (run): Generate JVMPI thread start events.
6780 * boehm.cc: Define GC_disable and GC_enable.
6781 (_Jv_DisableGC): New function.
6782 (_Jv_EnableGC): New function.
6783 (disable_gc_mutex): Declare.
6784 * nogc.cc (_Jv_DisableGC): New function.
6785 (_Jv_EnableGC): New function.
6787 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6788 (_Jv_JVMPI_Interface): Define.
6789 (jvmpiEnableEvent): New function.
6790 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6792 * include/jvmpi.h: New file.
6794 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6796 * Makefile.in: New #defines and friends for Thread.h.
6797 * Makefile.am: Ditto.
6798 * posix-threads.cc: (struct starter): Remove `object'.
6799 (_Jv_CondWait): Use interruptable condition variables and new
6800 recursive mutexes. New return codes on interrupt or non-ownership
6802 (_Jv_CondNotify): Ditto.
6803 (_Jv_CondNotifyAll): Ditto.
6804 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6805 the target thread by signaling its wait condition.
6806 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6807 not the starter struct. Initialize wait_mutex and wait_cond.
6808 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6810 (_Jv_MutexUnlock): Ditto.
6811 (really_start): Set info->data->thread from pthread_self() to work
6812 around a race condition. Destroy wait_mutex and wait_cond when run()
6814 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6815 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6817 startable_flag: New private field.
6818 (Thread): Initialize `startable_flag'.
6819 (toString): Check for null thread group.
6820 * java/lang/natThread.cc: (struct natThread): New fields
6821 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6822 (class locker): Removed.
6823 (initialize_native): Initialize `join_cond' and `join_mutex'.
6824 (interrupt): Now just calls _Jv_ThreadInterrupt().
6825 (join): Simplified. Just wait on the target thread's join condition.
6826 (finish_): Remove join list code. Unset thread group. Signal
6827 potential joiners by notifying the dying threads join_cond.
6828 (start): Check for illegal restarts.
6829 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6831 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6832 #defines and #ifdefs.
6833 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6834 `wait_mutex', `next'.
6835 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6836 directly mapping to pthread_cond_t.
6837 (struct _Jv_Mutex_t): New recursive implementation.
6838 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6839 _Jv_HaveCondDestroy: Never define this for posix-threads.
6840 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6841 (_Jv_CondNotifyAll): Ditto.
6842 (_Jv_MutexLock): Ditto.
6843 (_Jv_MutexUnlock): Ditto.
6844 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6845 (_Jv_MutexDestroy): Ditto.
6846 (_Jv_CondDestroy): Removed.
6847 (_Jv_PthreadGetMutex): Removed.
6848 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6849 error. Add a FIXME about this.
6850 (_Jv_CondNotifyAll): Ditto.
6851 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6852 _JV_NOT_OWNER on other errors. Add FIXME.
6854 2000-03-26 Tom Tromey <tromey@cygnus.com>
6856 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6858 (call): Don't throw exception here.
6860 2000-03-26 Tom Tromey <tromey@cygnus.com>
6862 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6863 * interpret.cc: Use SIZEOF_VOID_P.
6864 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6865 (_Jv_loadLong): Likewise.
6866 (_Jv_storeDouble): Likewise.
6867 * configure: Rebuilt.
6868 * configure.in: Check size of void*.
6870 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6872 2000-03-26 Hans Boehm <boehm@acm.org>
6874 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6875 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6877 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6878 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6879 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6880 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6882 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6883 (FFI_RAW_SIZE): Likewise.
6884 (_Jv_InterpMethod::ncode): Use them.
6885 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6886 STORED): Define differently on a 64 bit machine.
6887 (continue1): Use ffi_java_raw_call when appropriate.
6889 2000-03-24 Warren Levy <warrenl@cygnus.com>
6891 * java/math/BigInteger.java(divide): Handle the special case when
6892 dividing by 1 and the high bit of the dividend is set.
6893 (setShiftRight): Handle case when count == 0.
6895 2000-03-24 Warren Levy <warrenl@cygnus.com>
6897 * java/awt/Font.java(isBold): Fix syntax error.
6899 * java/awt/Frame.java(postEvent): ditto.
6900 * java/awt/Menu.java(postEvent): ditto.
6901 * java/awt/MenuBar.java(postEvent): ditto.
6902 * java/awt/Toolkit.java(init): Included a stub.
6904 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6906 * java/awt/Event.java: Add all the event type constants.
6907 (Event): Implemented constructors.
6908 (controlDown): Implemented.
6909 (metaDown): Implemented.
6910 (paramString): Stubbed.
6911 (shiftDown): Implemented.
6912 (toString): Implemented.
6913 (translate): Implemented.
6915 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6917 * java/lang/natClass.cc (isInstance): Initialize `this'.
6918 (isAssignableFrom): Initialize `this' and `klass'.
6919 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6920 implemented by any loaded class, so return false.
6921 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6922 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6924 2000-03-19 Warren Levy <warrenl@cygnus.com>
6926 * java/awt/Color.java: Specified java.io for Serializable.
6927 * java/awt/Toolkit.java: Imported java.net.URL.
6929 2000-03-19 Warren Levy <warrenl@cygnus.com>
6931 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6933 2000-03-16 Warren Levy <warrenl@cygnus.com>
6935 * java/awt/Color.java: New file.
6936 * java/awt/Graphics.java: New file.
6937 * java/awt/Image.java: New file.
6938 * java/awt/Paint.java: New file.
6939 * java/awt/PaintContext.java: New file.
6940 * java/awt/Transparency.java: New file.
6941 * java/util/Collection.java: New file.
6942 * java/util/Comparator.java: New file.
6943 * java/util/Iterator.java: New file.
6944 * java/util/List.java: New file.
6945 * java/util/ListIterator.java: New file.
6946 * Makefile.am: Added above new files.
6947 * Makefile.in: Rebuilt.
6949 * java/awt/Font.java (PLAIN): New field.
6951 (ITALIC): New field.
6952 (ROMAN_BASELINE): New field.
6953 (CENTER_BASELINE): New field.
6954 (HANGING_BASELINE): New field.
6958 (pointSize): New field.
6959 (Font): Implemented constructor.
6960 (isPlain): Implemented method.
6961 (isBold): Implemented method.
6962 (isItalic): Implemented method.
6963 (getName): Implemented method.
6964 (getStyle): Implemented method.
6965 (getSize): Implemented method.
6966 (getSize2D): Implemented method.
6968 * java/awt/Frame.java (getFont): Stubbed.
6969 (postEvent): Stubbed.
6971 * java/awt/Menu.java (postEvent): Stubbed.
6972 * java/awt/MenuBar.java (getFont): Stubbed.
6973 (postEvent): Stubbed.
6974 * java/awt/Toolkit.java (getImage): Added abstract method.
6976 2000-03-15 Tom Tromey <tromey@cygnus.com>
6978 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6980 * prims.cc (win32_exception_handler): Reformatted.
6982 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6983 (_Jv_HaveMutexDestroy): Likewise.
6985 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6987 * java/io/natFileDescriptorWin32.cc: New file.
6988 * java/io/natFileWin32.cc: New file.
6989 * java/net/natInetAddress.cc: Added conditional inclusion of
6990 Windows / Winsock headers.
6991 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6992 inclusion of Windows / Winsock headers.
6993 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6994 Windows / Winsock headers.
6995 * include/win32-signal.h: New file.
6996 * include/win32-threads.h: New file.
6997 * win32-threads.cc: New file.
6998 * exception.cc (win32_get_restart_frame): New function.
6999 * prims.cc (win32_exception_handler): New function.
7000 (main_init) Performs Winsock initialisation.
7001 (main_init) Installs exeception handler.
7003 2000-03-14 Tom Tromey <tromey@cygnus.com>
7005 * jni.cc (mangled_name): Fixed assertion.
7006 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7007 turned assert into actual failure.
7009 2000-03-09 Warren Levy <warrenl@cygnus.com>
7011 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7012 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7013 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7015 2000-03-09 Warren Levy <warrenl@cygnus.com>
7017 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7018 * java/security/DigestException.java: New file.
7019 * java/security/GeneralSecurityException.java: New file.
7020 * java/security/InvalidAlgorithmParameterException.java: New file.
7021 * java/security/InvalidKeyException.java: New file.
7022 * java/security/InvalidParameterException.java: New file.
7023 * java/security/Key.java: New file.
7024 * java/security/KeyException.java: New file.
7025 * java/security/KeyPair.java: New file.
7026 * java/security/KeyPairGenerator.java: New file.
7027 * java/security/KeyPairGeneratorSpi.java: New file.
7028 * java/security/NoSuchProviderException.java: New file.
7029 * java/security/PrivateKey.java: New file.
7030 * java/security/Provider.java: New file.
7031 * java/security/PublicKey.java: New file.
7032 * java/security/SecureRandom.java: New file.
7033 * java/security/Security.java: New file.
7034 * java/security/Signature.java: New file.
7035 * java/security/SignatureException.java: New file.
7036 * java/security/interfaces/DSAKey.java: New file.
7037 * java/security/interfaces/DSAParams.java: New file.
7038 * java/security/interfaces/DSAPrivateKey.java: New file.
7039 * java/security/interfaces/DSAPublicKey.java: New file.
7040 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7041 * java/security/interfaces/RSAPrivateKey.java: New file.
7042 * java/security/interfaces/RSAPublicKey.java: New file.
7043 * java/security/spec/AlgorithmParameterSpec.java: New file.
7044 * java/security/spec/InvalidKeySpecException.java: New file.
7045 * java/security/spec/InvalidParameterSpecException.java: New file.
7046 * java/security/spec/KeySpec.java: New file.
7047 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7048 * java/security/spec/RSAPrivateKeySpec.java: New file.
7049 * java/security/spec/RSAPublicKeySpec.java: New file.
7050 * Makefile.am: Added above java.security files.
7051 * Makefile.in: Rebuilt.
7053 * java/security/MessageDigest.java: Rewritten.
7054 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7056 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7060 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7062 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7063 _Jv_PrepareConstantTimeTables.
7064 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7065 classes should have an IDT, so don't return if klass is an array
7068 2000-03-08 Tom Tromey <tromey@cygnus.com>
7070 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7071 of `void' to be created.
7073 2000-03-08 Warren Levy <warrenl@cygnus.com>
7075 * java/math/BigInteger.java(signum): Handle zero properly.
7077 2000-03-07 Tom Tromey <tromey@cygnus.com>
7079 * All files: Updated copyright information.
7080 * COPYING: New file.
7081 * COPYING.LIB: Removed.
7082 * LIBGCJ_LICENSE: We now use GPL + special exception.
7084 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7086 * resolve.cc (_Jv_SearchMethodInClass): New function.
7087 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7088 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7090 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7092 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7093 (struct _Jv_ifaces): New declaration.
7094 JV_CLASS: New macro definition.
7095 (getComponentType): Relocate below isArray() for inlining.
7096 (getModifiers): Declare `inline'.
7097 (getSuperclass): Ditto.
7099 (isPrimitive): Ditto.
7100 (_Jv_IsAssignableFrom): New prototype.
7101 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7103 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7104 Check for JV_STATE_DONE before invoking initializeClass().
7105 (_Jv_PrepareConstantTimeTables): New prototype.
7106 (_Jv_GetInterfaces): Ditto.
7107 (_Jv_GenerateITable): Ditto.
7108 (_Jv_GetMethodString): Ditto.
7109 (_Jv_AppendPartialITable): Ditto.
7110 (_Jv_FindIIndex): Ditto.
7111 depth, ancestors, idt: New class fields.
7113 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7114 inline function `_Jv_IsAssignableFrom'. Use that function.
7115 (isInstance): Declare `inline'.
7116 (initializeClass): Get lock on class before checking `state'. Unlock
7117 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7119 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7120 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7121 class->depth and ancestor table.
7122 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7123 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7124 _Jv_IsAssignableFrom.
7125 (_Jv_CheckArrayStore): Ditto.
7126 (_Jv_LookupInterfaceMethodIdx): New function.
7127 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7128 (_Jv_PrepareConstantTimeTables): New function.
7129 (_Jv_IndexOf): Ditto.
7130 (_Jv_GetInterfaces): Ditto.
7131 (_Jv_GenerateITable): Ditto.
7132 (_Jv_GetMethodString): Ditto.
7133 (_Jv_AppendPartialITable): Ditto.
7134 iindex_mutex, iindex_mutex_initialized: New static fields.
7135 (_Jv_FindIIndex): New function.
7137 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7139 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7140 (_Jv_CheckArrayStore): Ditto.
7141 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7142 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7143 Moved to gcj/array.h.
7144 (_Jv_Realloc): New function.
7146 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7148 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7149 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7150 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7151 JvNewDoubleArray): Implementations moved from prims.cc and
7154 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7156 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7158 2000-03-06 Tom Tromey <tromey@cygnus.com>
7160 * jni.cc (MARK_NONE): New define.
7161 (MARK_USER): Likewise.
7162 (MARK_SYSTEM): Likewise.
7163 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7165 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7166 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7167 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7168 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7170 (call): Use MARK_SYSTEM.
7171 (_Jv_GetJNIEnvNewFrame): New function.
7172 (_Jv_LookupJNIMethod): New function.
7173 (_Jv_JNI_PopSystemFrame): New function.
7174 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7176 2000-03-05 Tom Tromey <tromey@cygnus.com>
7178 Fix for PR libgcj/43:
7179 * include/Makefile.in: Rebuilt.
7180 * include/Makefile.am (include_HEADERS): New define.
7182 2000-03-05 Anthony Green <green@redhat.com>
7184 * gcj/javaprims.h ("Java"): Remove FirstThread.
7186 * configure.host: Fix __NO_MATH_INLNES botch.
7188 * Makefile.in: Rebuilt.
7189 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7190 (gnu/gcj/runtime/FirstThread.h): Moved.
7191 (ordinary_java_source_files): Move FirstThread.java.
7192 * prims.cc: Deal with FirstThread movement.
7194 (_Jv_RunMain): Ditto.
7196 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7197 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7199 2000-03-05 Warren Levy <warrenl@cygnus.com>
7201 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7202 Handle null addresses.
7204 2000-03-04 Anthony Green <green@redhat.com>
7206 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7209 2000-03-04 Anthony Green <green@redhat.com>
7211 * configure: Rebuilt.
7212 * configure.in (ZLIBTESTSPEC): New macro.
7213 (GCTESTSPEC): New macro.
7214 (LIBGCJTESTSPEC): New macro.
7215 * libgcj-test.spec.in: New file.
7217 2000-03-02 Tom Tromey <tromey@cygnus.com>
7219 * include/java-interp.h: Don't include MethodInvocation.h.
7220 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7221 * Makefile.in: Rebuilt.
7222 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7223 (ordinary_java_source_files): Don't mention
7224 MethodInvocation.java.
7225 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7226 * interpret.cc (MethodInvocation::continue1): Removed.
7227 (run): Handle exceptions here.
7228 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7230 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7232 (defineClass2): Removed.
7234 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7236 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7238 (hack_call): Removed.
7240 * java/lang/Class.h (Class): Removed hackRunInitializers,
7242 * java/lang/natClass.cc (hackRunInitializers): Removed.
7243 (initializeClass): Catch exceptions here.
7244 Include ExceptionInInitializerError.h.
7245 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7248 * java/lang/Object.h (Object): Don't mention hack12_6.
7249 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7251 * java/lang/Object.java (hack12_6): Removed.
7253 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7254 (start): Use run_, not run__.
7255 * java/lang/Thread.java (run_): Renamed from run__; old run_
7258 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7259 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7260 (_Jv_JNI_DefineClass): Likewise.
7261 (_Jv_JNI_ThrowNew): Likewise.
7262 (_Jv_JNI_AllocObject): Likewise.
7263 (_Jv_JNI_GetAnyMethodID): Likewise.
7264 (_Jv_JNI_CallAnyMethodV): Likewise.
7265 (_Jv_JNI_CallAnyMethodA): Likewise.
7266 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7267 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7268 (_Jv_JNI_GetAnyFieldID): Likewise.
7269 (_Jv_JNI_NewString): Likewise.
7270 (_Jv_JNI_NewStringUTF): Likewise.
7271 (_Jv_JNI_GetStringUTFChars): Likewise.
7272 (_Jv_JNI_NewObjectArray): Likewise.
7273 (_Jv_JNI_NewPrimitiveArray): Likewise.
7274 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7275 (_Jv_JNI_GetStringRegion): Likewise.
7276 (_Jv_JNI_GetStringUTFRegion): Likewise.
7277 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7278 (_Jv_JNI_MonitorEnter): Likewise.
7279 (_Jv_JNI_MonitorExit): Likewise.
7280 (_Jv_JNI_ToReflectedField): Likewise.
7281 (_Jv_JNI_ToReflectedMethod): Likewise.
7282 (_Jv_JNI_RegisterNatives): Likewise.
7283 (_Jv_JNI_AttachCurrentThread): Likewise.
7284 (_Jv_JNI_DestroyJavaVM): Likewise.
7286 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7288 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7289 error caused by the incorrect casting of a long to an int.
7291 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7293 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7294 SIGSEV caused by use of the wrong instance variable.
7296 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7298 * java/io/File.java (File(String, String)): For dirPath, treat an
7299 empty String the same as `null'.
7301 2000-02-26 Anthony Green <green@cygnus.com>
7303 * gnu/gcj/io/MimeTypes.java: Test for null.
7305 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7306 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7308 * java/net/URLConnection.java: Update copyright notice.
7310 2000-02-25 Tom Tromey <tromey@cygnus.com>
7312 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7315 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7317 * java/net/URLConnection.java (initializeDateFormats): New
7319 (getHeaderFieldDate): Call initializeDateFormats if required.
7320 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7322 Fix for PR libgcj/38.
7324 2000-02-24 Warren Levy <warrenl@cygnus.com>
7326 * java/math/BigInteger.java(ival): Made private.
7330 2000-02-20 Anthony Green <green@cygnus.com>
7332 * Makefile.in: Rebuilt.
7333 * Makefile.am (ordinary_java_source_files): Add
7334 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7336 * scripts/MakeDefaultMimeTypes.java: New file.
7337 * scripts/mime.types: New file.
7338 * scripts/classes.pl: Moved from top level.
7339 * classes.pl: Moved to scripts directory.
7341 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7343 * gnu/gcj/io/MimeTypes.java: New file.
7344 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7346 2000-02-20 Tom Tromey <tromey@cygnus.com>
7348 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7350 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7352 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7355 2000-02-18 Tom Tromey <tromey@cygnus.com>
7357 * include/jvm.h (_Jv_GetJavaVM): Declare.
7358 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7359 (_Jv_MethodBase::get_method): New method.
7360 (_Jv_JNIMethod::set_function): New method.
7361 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7362 (_Jv_JNI_RegisterNatives): New function.
7363 (_Jv_JNIFunctions): Updated for new functions.
7364 (_Jv_GetJavaVM): New function.
7365 (_Jv_JNI_GetJavaVM): Use it. Now static.
7366 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7367 is already a Java thread but does not have a JNIEnv yet.
7369 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7372 2000-02-17 Tom Tromey <tromey@cygnus.com>
7374 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7377 2000-02-16 Tom Tromey <tromey@cygnus.com>
7379 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7381 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7382 (_Jv_JNI_NewObject): Likewise.
7383 (_Jv_JNI_NewObjectA): Likewise.
7384 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7385 as "return" type to _Jv_CallAnyMethodA.
7386 (_Jv_JNI_CallAnyMethodA): Likewise.
7387 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7389 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7392 2000-02-15 Tom Tromey <tromey@cygnus.com>
7394 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7396 (init_cif): Added `rtype_p' argument.
7397 * include/java-interp.h (class _Jv_MethodBase): Added
7399 (class _Jv_InterpMethod): Removed args_raw_size.
7400 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7401 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7402 class pointer as well as the ordinary arguments.
7404 * jni.cc (mangled_name): Skip leading `(' in signature.
7406 * jni.cc (add_char): Added missing `else'.
7408 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7411 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7415 * java/lang/natRuntime.cc (_load): Include library path with
7418 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7421 * java/lang/natThread.cc (dumpStack): Removed.
7422 * java/lang/Thread.java (dumpStack): Implemented.
7424 2000-02-15 Tom Tromey <tromey@cygnus.com>
7426 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7427 with `lib' for loadLibrary. Fixes PR gcj/150.
7429 2000-02-14 Warren Levy <warrenl@cygnus.com>
7431 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7433 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7437 (modPow): Rewritten to not use the naive, slow, brute force approach.
7438 (isProbablePrime): Implemented.
7439 (testBit): Implemented.
7440 (flipBit): Implemented.
7441 (getLowestSetBit): Implemented.
7443 2000-02-16 Anthony Green <green@redhat.com>
7445 * configure.host: Use the same options for i386 and i486 as we do
7448 2000-02-12 Tom Tromey <tromey@cygnus.com>
7450 * java/io/File.java (createTempFile): Use low bits from counter,
7453 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7455 * THANKS: More thanks.
7457 2000-02-11 Tom Tromey <tromey@cygnus.com>
7459 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7460 astore instruction. From Hans Boehm.
7462 2000-02-11 Warren Levy <warrenl@cygnus.com>
7464 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7465 (BigInteger(String)): New constructor.
7466 (not): Rewritten using version from Kawa's BitOps class.
7467 (valueOf): New private methods from Kawa's BitOps class.
7474 (andNot): Implemented.
7475 (clearBit): Implemented.
7476 (setBit): Implemented.
7477 (bitCount): Implemented.
7478 (toByteArray): Implemented.
7480 2000-02-11 Tom Tromey <tromey@cygnus.com>
7482 * java/io/File.java (nextValue): Now synchronized.
7484 2000-02-10 Tom Tromey <tromey@cygnus.com>
7486 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7487 * java/io/FileDescriptor.java (EXCL): New static field.
7488 * java/io/File.java (tmpdir): New static field.
7489 (createTempFile): New method.
7490 (nextValue): New method.
7491 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7494 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7495 (jboolean): Declare as an attributed int, not a bool.
7496 (_Jv_func): Declare differently for C.
7498 * gnu/gcj/jni/natNativeThread.cc: New file.
7499 * gnu/gcj/jni/NativeThread.java: New file.
7500 * java/lang/Thread.java (data): Now a RawData.
7501 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7503 * Makefile.in: Rebuilt.
7504 * Makefile.am (java/lang/Thread.h): New target.
7505 (ordinary_java_source_files): Added NativeThread.java.
7506 (nat_source_files): Added natNativeThread.cc.
7507 * java/lang/natThread.cc: Include <jni.h>
7508 (struct natThread): Added `jni_env' field.
7509 (_Jv_GetCurrentJNIEnv): New function.
7510 (_Jv_SetCurrentJNIEnv): Likewise.
7511 (initialize_native): Initialize jni_env.
7513 * jni.cc (ThreadGroupClass): New define.
7514 (_Jv_JNI_InvokeFunctions): New structure.
7515 (JNI_GetCreatedJavaVMs): New function.
7516 (the_vm): New global.
7517 (JNI_GetDefaultJavaVMInitArgs): New function.
7518 Include NativeThread.h.
7519 (NativeThreadClass): New define.
7520 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7521 (_Jv_JNI_DestroyJavaVM): New function.
7522 (_Jv_JNI_AttachCurrentThread): New function.
7523 (_Jv_JNI_DetachCurrentThread): New function.
7524 (_Jv_JNI_GetEnv): New function.
7525 (JNI_CreateJavaVM): New function.
7526 (_Jv_JNI_GetJavaVM): New function.
7527 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7528 * include/jni.h (JavaVMAttachArgs): New structure.
7529 (JNI_EDETACHED): New define.
7530 (JNI_EVERSION): Likewise.
7531 (JavaVM): Define properly.
7532 (struct JNIInvokeInterface): New structure.
7533 (class _Jv_JavaVM): New class.
7534 (JNI_OnLoad, JNI_OnUnload): Declare.
7535 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7536 JNI_GetCreatedJavaVMs): Declare.
7537 (JavaVMInitArgs): New typedef.
7538 (JavaVMOption): Likewise.
7539 (JNI_ERR): New define.
7542 2000-02-10 Andrew Haley <aph@cygnus.com>
7544 * interpret.cc: Don't include fdlibm.h.
7545 Replace #if with #ifdef throughout.
7546 Declare extern __ieee754_fmod.
7547 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7549 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7550 Search class hierarchy for superclass vtable.
7552 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7553 off the end of a pointer list.
7555 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7559 2000-02-09 Tom Tromey <tromey@cygnus.com>
7561 * java/lang/natRuntime.cc (_load): Call add_library.
7562 (loadLibraryInternal): Likewise.
7564 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7565 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7566 (Output_iconv::finalize): Likewise.
7568 2000-02-08 Tom Tromey <tromey@cygnus.com>
7570 * java/util/Properties.java (setProperty): New method.
7571 (store): New method.
7573 2000-02-07 Tom Tromey <tromey@cygnus.com>
7575 * java/lang/Runtime.java (_load): Declare.
7576 (load, loadLibrary): Wrote in terms of _load.
7577 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7579 (loadLibrary): Likewise.
7581 (_load): New method.
7582 (loadLibrary, load): Removed.
7584 * jni.cc (ThrowableClass): New define.
7585 (_Jv_JNI_Throw): Check argument.
7586 (_Jv_JNI_ThrowNew): Likewise.
7587 (wrap_value): Don't wrap object if it is NULL.
7588 (_Jv_JNI_DefineClass): Use wrap_value.
7589 (_Jv_JNI_FindClass): Likewise.
7590 (_Jv_JNI_GetSuperclass): Likewise.
7591 (_Jv_JNI_ExceptionOccurred): Likewise.
7592 (_Jv_JNI_AllocObject): Likewise.
7593 (_Jv_JNI_GetObjectClass): Likewise.
7594 (_Jv_JNI_NewString): Likewise.
7595 (_Jv_JNI_NewStringUTF): Likewise.
7596 (_Jv_JNI_NewObjectArray): Likewise.
7597 (_Jv_JNI_GetObjectArrayElement): Likewise.
7598 (_Jv_JNI_NewPrimitiveArray): Likewise.
7599 (_Jv_JNI_ToReflectedField): Likewise.
7600 (_Jv_JNI_ToReflectedMethod): Likewise.
7601 (_Jv_JNI_AllocObject): Check argument.
7602 (_Jv_JNI_NewObjectV): Likewise.
7603 (_Jv_JNI_NewObject): Likewise.
7604 (_Jv_JNI_NewObjectA): Likewise.
7605 (_Jv_JNI_GetObjectClass): Likewise.
7606 (_Jv_JNI_GetField): Likewise.
7607 (_Jv_JNI_SetField): Likewise.
7609 * interpret.cc (PUSHL): Don't use expression statement.
7614 * jni.cc (add_char): Conditional on INTERPRETER.
7615 (mangled_name): Likewise.
7617 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7619 (class _Jv_JNIMethod): Likewise.
7621 2000-02-04 Warren Levy <warrenl@cygnus.com>
7623 * Makefile.am: Added MPN.java and BigInteger.java.
7624 * Makefile.in: Rebuilt.
7625 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7627 * java/math/BigInteger.java: New file. Based primarily on
7628 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7630 2000-02-04 Tom Tromey <tromey@cygnus.com>
7632 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7634 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7635 if the method is native.
7636 * resolve.cc (ncode): Don't handle native methods.
7637 (_Jv_JNIMethod::ncode): New method.
7638 (_Jv_PrepareClass): Handle native methods.
7639 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7640 Include AbstractMethodError.h.
7641 (add_char): New function.
7642 (mangled_name): Likewise.
7643 * include/java-interp.h (class _Jv_JNIMethod): New class.
7644 (class _Jv_MethodBase): New class.
7645 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7646 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7649 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7650 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7651 libraries): New globals.
7652 (add_library): New function.
7653 (_Jv_FindSymbolInExecutable): New function.
7655 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7658 2000-02-04 Andrew Haley <aph@cygnus.com>
7660 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7661 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7662 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7663 printStackTrace to printRawStackTrace.
7665 2000-02-03 Tom Tromey <tromey@cygnus.com>
7667 * java/util/Calendar.java (toString): New method.
7668 * java/util/SimpleTimeZone.java (clone): New method.
7669 (toString): New method.
7670 * java/util/TimeZone.java (clone): New method.
7671 * java/text/SimpleDateFormat.java (clone): New method.
7672 * java/text/NumberFormat.java (clone): New method.
7673 (equals): New method.
7674 * java/text/Format.java (clone): New method.
7675 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7677 (clone): New method.
7678 * java/text/DateFormat.java (clone): New method.
7679 * java/text/Collator.java (clone): New method.
7681 2000-02-03 Tom Tromey <tromey@cygnus.com>
7683 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7686 2000-02-01 Tom Tromey <tromey@cygnus.com>
7688 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7689 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7690 constructing the closure if the function is native.
7691 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7692 a template function, #if'd out, or static.
7693 Include <java-interp.h>.
7695 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7697 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7699 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7700 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7702 (wrap_value): New function.
7703 (_Jv_JNI_CallAnyMethodV): Use it.
7704 (_Jv_JNI_CallAnyMethodA): Likewise.
7705 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7706 (_Jv_JNI_GetStaticField): Likewise.
7708 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7709 (_Jv_JNI_GetStaticField): Likewise.
7711 2000-01-31 Tom Tromey <tromey@cygnus.com>
7713 * prims.cc (_Jv_MallocUnchecked): New function.
7714 (main_init): Call _Jv_JNI_Init.
7715 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7716 (_Jv_JNI_Init): Declare.
7717 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7719 (_Jv_JNI_NewGlobalRef): New function.
7720 (_Jv_JNI_DeleteGlobalRef): New function.
7721 (_Jv_JNI_DeleteLocalRef): New function.
7722 (_Jv_JNI_conversion_call): Initialize and clear local reference
7724 (_Jv_JNI_NewLocalRef): New function.
7725 (struct _Jv_JNI_LocalFrame): New structure.
7726 (_Jv_JNI_PushLocalFrame): New function.
7727 (_Jv_JNI_EnsureLocalCapacity): New function.
7728 (FRAME_SIZE): New define.
7729 (_Jv_JNI_GetStringChars): Mark string, not characters.
7730 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7731 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7732 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7734 (_Jv_JNI_DefineClass): Make return value a local ref.
7735 (_Jv_JNI_FindClass): Likewise.
7736 (_Jv_JNI_GetSuperclass): Likewise.
7737 (_Jv_JNI_ExceptionOccurred): Likewise.
7738 (_Jv_JNI_AllocObject): Likewise.
7739 (_Jv_JNI_GetObjectClass): Likewise.
7740 (_Jv_JNI_CallAnyMethodV): Likewise.
7741 (_Jv_JNI_NewString): Likewise.
7742 (_Jv_JNI_NewStringUTF): Likewise.
7743 (_Jv_JNI_NewObjectArray): Likewise.
7744 (_Jv_JNI_GetObjectArrayElement): Likewise.
7745 (_Jv_JNI_ToReflectedField): Likewise.
7746 (_Jv_JNI_ToReflectedMethod): Likewise.
7747 (_Jv_JNIFunctions): Updated table for new functions.
7748 (_Jv_JNI_Init): New function.
7749 (mark_for_gc): Wrote.
7750 (unmark_for_gc): Wrote.
7751 * include/jni.h (struct JNINativeInterface): Removed name from
7752 PopLocalFrame parameter.
7753 (class _Jv_JNIEnv): Added `locals' field.
7755 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7757 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7760 2000-01-30 Tom Tromey <tromey@cygnus.com>
7762 * include/config.h.in: Rebuilt.
7763 * acconfig.h (HAVE_ICONV): Define.
7764 * configure: Rebuilt.
7765 * configure.in: Check for `iconv' function.
7766 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7767 no specific encoder exists.
7768 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7769 no specific encoder exists.
7770 * Makefile.in: Rebuilt.
7771 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7773 (nat_source_files): Added natIconv.cc.
7774 * gnu/gcj/convert/natIconv.cc: New file.
7775 * gnu/gcj/convert/Input_iconv.java: New file.
7776 * gnu/gcj/convert/Output_iconv.java: New file.
7778 2000-01-28 Tom Tromey <tromey@cygnus.com>
7780 * Makefile.in: Rebuilt.
7781 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7783 2000-01-26 Tom Tromey <tromey@cygnus.com>
7785 * gcj/method.h (JvNumMethods): Moved from Class.h.
7786 (JvGetFirstMethod): Likewise.
7787 * java/lang/Class.h (Object): Updated decl of
7788 _Jv_JNI_ToReflectedField.
7789 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7790 * Makefile.in: Rebuilt.
7791 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7792 argument of _Jv_JNI_ToReflectedField.
7793 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7795 (java/lang/reflect/Method.h): Likewise.
7796 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7798 (jweak): New typedef.
7799 (struct JNINativeInterface): Correctly declare remaining entries.
7800 * jni.cc: Include Class.h, ClassLoader.h.
7801 (_Jv_JNI_FindClass): New function.
7802 (_Jv_JNI_DefineClass): New function.
7803 (_Jv_JNI_conversion_call): New function.
7804 (_Jv_JNI_FindClass): Use current class loader to find class.
7805 (_Jv_JNI_ExceptionCheck): New function.
7806 (_Jv_JNI_FromReflectedField): Now static.
7807 (MethodClass): New define.
7808 (_Jv_JNI_FromReflectedMethod): New function.
7809 (_Jv_JNI_ToReflectedMethod): Likewise.
7811 (_Jv_JNI_IsAssignableFrom): Renamed.
7812 (_Jv_JNI_GetStringRegion): New function.
7813 Include StringIndexOutOfBoundsException.h.
7814 (_Jv_JNI_GetStringUTFRegion): New function.
7815 (_Jv_JNIFunctions): Updated for new functions.
7816 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7817 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7818 (_Jv_JNI_GetStringCritical): New function.
7819 (_Jv_JNI_ReleaseStringCritical): Likewise.
7820 (get_throwable): Removed.
7821 (GCJ_JV_JNIENV_FRIEND): Removed.
7822 (__GCJ_JNI_IMPL__): Define.
7825 * resolve.cc (get_ffi_type_from_signature): Handle case where
7828 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7830 * interpret.cc (run): Don't call println.
7831 Don't include PrintStream.h.
7833 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7834 nameIndex. Use "jint" as type for boffset.
7835 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7837 (Class): Likewise. Also changed type of method_count,
7838 vtable_method_count, size_in_bytes, field_count,
7839 static_field_count, interface_count.
7840 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7843 2000-01-21 Tom Tromey <tromey@cygnus.com>
7845 * java/lang/reflect/natConstructor.cc (newInstance): Use
7847 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7848 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7849 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7852 (invoke): Use _Jv_CallAnyMethodA.
7854 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7855 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7857 (struct _Jv_Method): Added getNextMethod method.
7858 (JvNumMethods): New function.
7859 (JvGetFirstMethod): Likewise.
7860 * gcj/field.h (JvGetFirstStaticField): New function.
7861 (JvNumStaticFields): Likewise.
7862 (getNextField): Renamed from getNextInstanceField.
7863 (struct _Jv_Field): New method getClass.
7864 * jni.cc: Wrote many new functions.
7865 * include/jni.h (JNI_TRUE): Define.
7866 (JNI_FALSE): Likewise.
7867 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7868 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7869 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7870 (jfieldID, jmethodID): Likewise.
7871 (JNI_COMMIT, JNI_ABORT): New defines.
7872 (JNINativeMethod): New struct.
7873 (struct JNINativeInterface): Correctly declared more entries.
7874 (class _Jv_JNIEnv): Added `ex' member.
7875 (JNI_VERSION_1_1): New define.
7876 (JNI_VERSION_1_2): Likewise.
7878 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7879 getNextInstanceField.
7881 2000-01-20 Tom Tromey <tromey@cygnus.com>
7883 * resolve.cc (StringClass): Removed.
7884 * defineclass.cc (StringClass): Removed.
7886 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7890 2000-01-19 Tom Tromey <tromey@cygnus.com>
7892 * interpret.cc (PC_REGISTER_ASM): Removed.
7894 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7895 From Bryce McKinlay.
7897 * All files: Updated copyright to reflect Cygnus purchase.
7899 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7901 * configure: Rebuilt.
7902 * configure.in: Recognize --disable-interpreter.
7904 2000-01-18 Andrew Haley <aph@cygnus.com>
7906 * name-finder.cc (lookup): Check for dladdr function.
7907 acconfig.h (HAVE_DLADDR): Add.
7908 configure.in: Check for HAVE_DLADDR
7910 include/config.h.in: Rebuilt.
7912 2000-01-17 Andrew Haley <aph@cygnus.com>
7914 * prims.cc (_Jv_RunMain): Set the name of this executable.
7916 2000-01-17 Tom Tromey <tromey@cygnus.com>
7918 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7919 when backtrace can't be computed.
7921 * configure: Rebuilt.
7922 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7924 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7925 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7926 (_Jv_FindClassInCache): Likewise.
7927 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7928 (findSystemClass): Try to load class from compiled module.
7930 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7931 (loadLibrary): Likewise.
7932 (lt_preloaded_symbols): Define.
7933 (loadLibraryInternal): New method.
7934 * include/config.h.in: Rebuilt.
7935 * acconfig.h (USE_LTDL): Added.
7936 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7937 (INCLUDES): Added $(INCLTDL).
7938 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7939 (libgcj_la_LIBADD): Likewise.
7940 * aclocal.m4, configure: Rebuilt.
7941 * configure.in: Added libltdl support.
7943 2000-01-15 Tom Tromey <tromey@cygnus.com>
7945 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7947 2000-01-14 Andrew Haley <aph@cygnus.com>
7949 * java/lang/natThrowable.cc: New file.
7951 * java/lang/Throwable.java (fillInStackTrace): Make native.
7952 (printStackTrace): Call native method to do this.
7953 (Throwable): Call fillInStackTrace.
7954 (stackTrace): New variable.
7956 * include/jvm.h: Add _Jv_ThisExecutable functions.
7958 * prims.cc: (_Jv_execName): New variable.
7959 (catch_segv): Call fillInStackTrace.
7961 (_Jv_ThisExecutable): New functions.
7962 (JvRunMain): Set the name of this executable.
7964 * Makefile.am: Add java/lang/natThrowable.cc.
7966 * Makefile.in: Rebuilt.
7968 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7970 * configure.in: Force link with __frame_state_for in
7971 FORCELIBGCCSPEC. Add new checks for backtrace.
7972 * include/config.h.in: Rebuilt.
7974 * name-finder.cc: New file.
7975 * include/name-finder.h: New file.
7977 2000-01-16 Anthony Green <green@cygnus.com>
7979 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7982 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7984 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7986 2000-01-13 Tom Tromey <tromey@cygnus.com>
7988 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7989 not system loader, as initiating loader.
7991 2000-01-11 Tom Tromey <tromey@cygnus.com>
7993 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7994 HP/UX. From David Scott Urban.
7996 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7998 * java/lang/natMath.cc (pow): Cast args to `double', not
8001 (IEEEremainder): Likewise.
8002 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8003 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8005 2000-01-09 Anthony Green <green@cygnus.com>
8007 * java/lang/natString.cc (init): Test for overflow condition
8008 during out of bounds check.
8009 (getChars): Throw StringIndexOutOfBoundsException, not
8010 ArrayIndexOutOfBoundsException.
8012 (regionMatches): Obey case option during string comparison.
8014 * configure.host (ligcj_interpreter): New variable. Enable
8015 interpreter by default on IA-32.
8016 * configure.in: Examine libgcj_interpreter.
8017 * configure: Rebuilt.
8019 2000-01-07 Tom Tromey <tromey@cygnus.com>
8021 * mauve-libgcj: Don't disable ClassTest.
8023 * java/lang/natClass.cc (getClasses): Wrote.
8025 2000-01-06 Tom Tromey <tromey@cygnus.com>
8027 * java/lang/natClass.cc (_getConstructors): Correctly check
8028 whether method name is the init name.
8029 (getMethod): Look at accflags on method in `klass', not `this'.
8031 2000-01-05 Tom Tromey <tromey@cygnus.com>
8033 * java/lang/natClass.cc (getMethod): Compute offset relative to
8034 `klass's methods table, not `this's table.
8036 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8037 In unwrapping/widening case, check whether `k' is null, not
8038 whether it is primitive. Initialize `num' from `argelts', not
8039 `paramelts'. Correct create and pass arguments to ffi_call.
8040 Don't let presence of `this' argument affect index used to look in
8042 (COPY): Set appropriate element in `values' vector.
8044 * java/lang/natClass.cc: Include <gcj/method.h>.
8046 * java/lang/Class.h (_getMethods): Correctly declare as private,
8049 * java/lang/Class.h (_getMethods): Declare.
8050 * java/lang/Class.java (_getMethods): Declare.
8051 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8052 (getDeclaredClasses): Always return empty array.
8053 (_getMethods): New method.
8054 (getMethods): Wrote.
8055 (getDeclaredMethod): Return `rmethod'.
8056 (finit_name): New global.
8057 (getDeclaredMethods): Check for finit_name.
8058 (_getMethods): Likewise.
8059 (getMethod): Only return public methods.
8061 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8062 jboolean and select correct ffi type on that basis.
8063 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8064 Constructor call always has `void' return type.
8066 2000-01-04 Tom Tromey <tromey@cygnus.com>
8068 * java/lang/Class.h (getSignature): Updated.
8069 * java/lang/Class.java (getSignature): Updated.
8070 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8072 (getConstructor): Ensure constructor is public.
8073 (_getConstructors): Check for public-ness of constructor when
8074 `declared' is false, not when it is true.
8076 2000-01-04 Warren Levy <warrenl@cygnus.com>
8078 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8080 (receive): Set the sender's address in the DatagramPacket.
8082 2000-01-04 Tom Tromey <tromey@cygnus.com>
8084 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8085 declaring class as return_type argument to
8086 _Jv_CallNonvirtualMethodA.
8087 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8088 constructor case, create object and use it as `this' argument.
8089 * java/lang/Class.h (_getConstructors): Declare.
8090 (_getFields): Declare.
8091 * java/lang/Class.java (getConstructors): Wrote.
8092 (_getConstructors): New native method.
8093 (getDeclaredConstructors): Wrote.
8094 (_getFields): Declare new native method.
8095 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8097 (getMethod): Work correctly when class is primitive.
8098 (getDeclaredMethods): Likewise. Compute offset using `method',
8100 (getDeclaredMethod): Likewise.
8101 (getConstructor): Wrote.
8102 (ConstructorClass): New define.
8103 (getDeclaredConstructor): Wrote.
8104 (_getConstructors): New method.
8105 (_getFields): New method.
8108 * Makefile.in: Rebuilt.
8109 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8111 * prims.cc: Remove `#pragma implementation'.
8112 * gcj/array.h: Remove `#pragma interface'.
8114 * prims.cc (_Jv_equaln): New function.
8115 * java/lang/Class.java (getSignature): Declare.
8116 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8117 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8119 (getSignature): New method.
8120 (getDeclaredMethod): Wrote.
8122 Include StringBuffer.h.
8123 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8124 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8126 (getSignature): Declare.
8127 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8128 (_Jv_equaln): Declare.
8129 (_Jv_CallNonvirtualMethodA): Declare.
8130 * Makefile.in: Rebuilt.
8131 * Makefile.am (nat_source_files): Added natConstructor.cc.
8132 (java/lang/reflect/Constructor.h): New target.
8133 * java/lang/reflect/natConstructor.cc: New file.
8134 * java/lang/reflect/Constructor.java (newInstance): Now native.
8135 (declaringClass): Renamed from decl_class.
8136 (offset): Renamed from index.
8137 (getType): New native method.
8138 (getModifiers): Now native.
8139 (getParameterTypes): Call getType if required.
8140 (hashCode): Include hash code from declaring class.
8141 (modifiers): Removed.
8142 (toString): Call getType if required.
8143 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8144 * java/lang/reflect/natMethod.cc (hack_call): New method.
8145 Removed `#if 0' around FFI code.
8146 Include <gnu/gcj/RawData.h>.
8147 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8148 IllegalArgumentException when argument object and class disagree.
8149 (_Jv_GetTypesFromSignature): New function.
8151 (ObjectClass): New define.
8152 (_Jv_CallNonvirtualMethodA): New function.
8153 * java/lang/reflect/Method.java (hack_trampoline): New method.
8154 (hack_call): New native method.