1 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
5 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7 * java/util/HashMap.java (HashEntry.clone): Removed.
8 (HashMap(Map)): Use putAllInternal.
10 (putAllInternal): New method. Efficient counterpart to putAll which
12 * java/util/LinkedHashMap.java (rethread): Removed.
13 (putAllInternal): New method. Clear "head" and "tail".
14 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
15 if callRemove == false.
17 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
18 * Makefile.in: Rebuilt.
20 2001-10-15 Eric Blake <ebb9@email.byu.edu>
22 * java/util/Collection.java: Updated javadoc.
23 * java/util/Comparator.java: Updated javadoc.
24 * java/util/Enumeration.java: Updated javadoc.
25 * java/util/Iterator.java: Updated javadoc.
26 * java/util/List.java: Updated javadoc.
27 * java/util/ListIterator.java: Updated javadoc.
28 * java/util/Map.java: Updated javadoc.
29 * java/util/RandomAccess.java: New file.
30 * java/util/Set.java: Updated javadoc.
31 * java/util/SortedMap.java: Updated javadoc.
32 * java/util/SortedSet.java: Updated javadoc.
34 2001-10-15 Tom Tromey <tromey@redhat.com>
36 * java/lang/reflect/AccessibleObject.java (checkPermission):
38 Updated copyright information.
40 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
42 * java/lang/natObject.cc (heavy_lock): Moved fields
43 old_client_data, old_finalization_proc near beginning.
44 (heavy_lock_finalization_proc): Now inline; changed type of
46 (JV_SYNC_TABLE_SZ): Now 2048.
48 (spin): `mp' now global.
49 (heavy_lock_obj_finalization_proc): Updated to correctly handle
50 heavy lock finalization.
51 (remove_all_heavy): New function.
52 (maybe_remove_all_heavy): Likewise.
53 (_Jv_MonitorEnter): Throw exception if object is NULL.
54 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
56 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
57 * nogc.cc (_Jv_AllocTraceTwo): New function.
58 * boehm.cc (trace_two_vtable): New global.
59 (_Jv_AllocTraceTwo): New function.
61 2001-10-15 Tom Tromey <tromey@redhat.com>
63 * Makefile.in: Rebuilt.
64 * Makefile.am (awt_java_source_files): Added new file.
65 * java/beans/AppletInitializer.java: New file.
67 * java/net/SocketPermission.java (hostport, actions): Now
70 2001-10-14 Mark Wielaard <mark@klomp.org>
72 * java/lang/Double.java: Partial merge with Classpath
73 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
75 (static): new static block to load native libary (not used in libgcj)
76 (Double (String)): call parseDouble()
77 (byteValue): removed, already defined in superclass Number
78 (shortValue): likewise
79 (valueOf (String)): call new Double(String) directly
80 (compare (double,double)): new 1.4 method
81 (compareTo (Double)): call new compare(double,double) method
82 (initIDs): new private method (not used in libgcj)
83 * java/lang/Float.java: Partial merge with Classpath
84 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
86 (static): new static block to load native libary (not used in libgcj)
87 (Float (String)): call parseFloat()
88 (byteValue): removed, already defined in superclass Number
89 (shortValue): likewise
90 (valueOf (String)): call new Float(String) directly
91 (compare (float,float)): new 1.4 method
92 (compareTo (Float)): call new compare(double,double) method
94 2001-10-13 Tom Tromey <tromey@redhat.com>
96 * java/lang/SecurityManager.java (SecurityManager): Now public.
98 * java/security/AccessController.java (checkPermission): Now
99 throws AccessControlException.
100 * java/security/AllPermission.java: Class now final.
101 * java/security/Permission.java (getName): Now final.
103 (equals): New abstract method.
104 * java/security/PermissionCollection.java (linesep): Now private.
105 * java/security/Permissions.java: Class now final.
106 * java/security/Security.java (Security): New private
108 * java/security/UnresolvedPermission.java: Import
109 java.security.cert.Certificate. Class now final.
110 * java/security/acl/Group.java: Now extends Principal.
111 (isMember): Added Principal argument.
112 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
114 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
117 2001-10-12 Tom Tromey <tromey@redhat.com>
119 * Makefile.in: Rebuilt.
120 * Makefile.am (rmi_java_source_files): Added new files.
121 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
123 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
124 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
125 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
126 * gnu/java/rmi/rmic/Compiler.java: New file.
128 2001-10-11 Tom Tromey <tromey@redhat.com>
130 * configure: Rebuilt.
131 * configure.in: Recognize --disable-java-awt.
133 2001-10-10 Tom Tromey <tromey@redhat.com>
135 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
136 * java/lang/natRuntime.cc: Include FinalizerThread.h.
137 (runFinalization): Call finalizerReady.
138 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
139 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
140 (_Jv_CreateJavaVM): Start the finalizer thread.
141 * no-threads.cc: Include InternalError.h.
142 (_Jv_ThreadStart): Throw InternalError.
143 (_Jv_ThreadInitData): Don't throw error if this is not the first
145 * Makefile.in: Rebuilt.
146 * Makefile.am (ordinary_java_source_files): Added
147 FinalizerThread.java.
148 (nat_source_files): Added natFinalizerThread.cc.
149 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
150 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
151 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
152 * gnu/gcj/runtime/FinalizerThread.java: New file.
154 2001-10-09 Per Bothner <per@bothner.com>
156 * strtod.c (_strtod_r): Logic to check for missing digits
157 after exponent had 'else' attached to wrong 'if'.
159 2001-10-09 Mark Wielaard <mark@klomp.org>
161 * java/net/SocketImpl.java: Merge with Classpath
163 2001-10-08 Mark Wielaard <mark@klomp.org>
165 * java/net/DatagramSocketImpl.java: Merge with Classpath
167 2001-10-07 Mark Wielaard <mark@klomp.org>
169 * java/net/URLDecoder.java: Remerge with Classpath
170 * java/net/URLEncoder.java: Merge with Classpath
172 2001-10-08 Tom Tromey <tromey@redhat.com>
174 Fix for PR libgcj/4481:
175 * java/io/File.java (getParent): Handle case where path is "/".
176 (normalizePath): Use correct string for UNC leader.
178 2001-10-06 Mark Wielaard <mark@klomp.org>
180 * java/io/BufferedInputStream.java: Merge with Classpath
182 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
184 * defineclass.cc, java/awt/image/ColorModel.java,
185 java/awt/image/SampleModel.java, java/lang/Package.java,
186 java/security/cert/X509Extension.java: Fix spelling errors of
187 "separate" as "seperate", and corresponding spelling errors of
190 2001-10-05 Tom Tromey <tromey@redhat.com>
192 * java/text/DecimalFormat.java (format): Use localized minus sign
193 when generating exponent; never use `+'. Use floor to compute
196 2001-10-05 Mark Wielaard <mark@klomp.org>
198 * java/util/zip/Adler32.java: Merge with Classpath
199 * java/util/zip/CRC32.java: Ditto
200 * java/util/zip/Checksum.java: Ditto
201 * java/util/zip/DataFormatException.java: Ditto
202 * java/util/zip/ZipException.java: Ditto
204 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
206 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
208 2001-10-04 Mark Wielaard <mark@klomp.org>
210 * java/lang/reflect/Modifier.java: Merge with Classpath
212 2001-10-03 Mark Wielaard <mark@klomp.org>
214 * java/io/SequenceInputStream.java: Merge with Classpath
215 * java/io/StringBufferInputStream.java: Ditto
216 * java/util/Collections.java: Remerge with Classpath
218 2001-10-03 Tom Tromey <tromey@redhat.com>
220 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
223 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
225 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
226 * gij.cc (version): Use GCJVERSION.
228 2001-10-02 Mark Wielaard <mark@klomp.org>
230 * Makefile.am (core_java_source_files): add InheritableThreadLocal
231 * Makefile.in: regenerate
232 * gcj/javaprims.h: ditto
233 * java/lang/InheritableThreadLocal.java: new class from Classpath
234 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
235 call InheritableThreadLocal.newChildThread()
237 2001-10-01 Mark Wielaard <mark@klomp.org>
239 * Makefile.am: Add new classes
240 (core_java_source_files): CharSequence
241 (ordinary_java_source_files): Authenticator, PasswordAuthentication
242 * Makefile.in: regenerate
243 * gcj/javaprims.h: ditto
244 * java/lang/CharSequence: new class from Classpath
245 * java/lang/String.java: implements CharSequence
246 (subSequence (int,int)): new method
247 * java/lang/SubString.java: implements CharSequence
248 (subSequence (int,int)): new method
249 remerge comments with Classpath
250 * java/net/Authenticator.java: new class from Classpath
251 * java/net/PasswordAuthentication.java: ditto
253 2001-10-01 Tom Tromey <tromey@redhat.com>
255 * gcj/javaprims.h: Rebuilt class list.
256 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
257 (_Jv_GCCanReclaimSoftReference): New function.
258 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
259 (_Jv_GCCanReclaimSoftReference): Declare.
260 * java/lang/ref/Reference.java (referent): Now a RawData.
261 (create): Renamed from `created'. Added object argument.
262 (Reference): Don't initialize `referent' here.
263 * Makefile.in: Rebuilt.
264 * Makefile.am (nat_source_files): Added new file.
265 * java/lang/ref/natReference.cc: New file.
267 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
268 (_Jv_NewMultiArray): Use it. Check each array dimension.
269 (_Jv_NewMultiArray): Likewise.
270 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
272 * java/lang/reflect/natArray.cc (newInstance): Throw
273 IllegalArgumentException if there are no dimensions.
275 2001-10-01 Mark Wielaard <mark@klomp.org>
277 * java/io/FileWriter.java: Merge with Classpath.
278 * java/io/FilterInputStream.java: Ditto.
279 (mark): no longer synchronized
281 * java/io/FilterOutputStream.java: Merge with Classpath.
282 * java/io/FilterReader.java: Ditto.
283 (mark): no longer synchronized
285 * java/io/FilterWriter.java: Merge with Classpath.
286 * java/io/Writer.java: Ditto.
287 * java/lang/Compiler.java: Ditto.
288 * java/lang/Process.java: Ditto.
289 * java/lang/Void.java: Ditto.
290 * java/net/ContentHandler.java: Ditto.
291 * java/net/DatagramPacket.java: Ditto.
292 * java/net/MulticastSocket.java: Merge comments with Classpath.
294 2001-09-30 Mark Wielaard <mark@klomp.org>
296 * java/io/DataInput.java: Merge with Classpath.
297 * java/io/DataOutput.java: Idem.
298 * java/io/FilenameFilter.java: Idem.
299 * java/io/Serializable.java: Idem.
300 * java/lang/Cloneable.java: Idem.
301 * java/lang/Comparable.java: Idem.
302 * java/lang/Runnable.java: Idem.
303 * java/lang/reflect/Member.java: Idem.
304 * java/net/ContentHandlerFactory.java: Idem.
305 * java/net/FileNameMap.java: Idem.
306 * java/net/SocketImplFactory.java: Idem.
307 * java/net/SocketOptions.java: Idem.
308 * java/net/URLStreamHandlerFactory.java: Idem.
310 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
312 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
313 an uninitialized target class.
315 * gnu/gcj/protocol/file/Connection.java (connect): Throw
316 FileNotFoundException if appropriate.
317 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
318 IOException if we got a file: url with a hostname. Comment out protocol
319 switch to ftp for now.
320 * java/net/URL.java (URL): Include protocol name in exception message
321 when handler can't be found.
323 2001-09-28 Per Bothner <per@bothner.com>
325 * gnu/gcj/runtime/SharedLibLoader.java: New class.
326 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
327 * Makefile.am: Update accordingly.
328 * configure.in: Add AC_CHECK_LIB for dlopen.
329 * include/config.h.in: Add HAVE_DLOPEN.
331 2001-09-29 Jeff Sturm <jsturm@one-point.com>
333 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
334 * Makefile.in: Rebuilt.
336 2001-09-27 Tom Tromey <tromey@redhat.com>
338 * java/util/IdentityHashMap.java (containsKey): Use getHash.
342 (getHash): New method.
343 (tombstone, emptyslot): Now static final.
344 (put): Correctly determine when to rehash, and correctly rehash.
345 (containsKey, remove): Test against table length with `>='.
347 2001-09-26 Tom Tromey <tromey@redhat.com>
349 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
351 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
352 Re-merged with Classpath.
354 * java/io/DataInputStream.java (readChar): Use readFully.
356 (readLong): Likewise.
357 (readShort): Likewise.
358 (readUnsignedShort): Likewise.
360 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
362 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
363 IllegalThreadStateException if process hasn't exited yet.
364 * java/lang/natPosixProcess.cc (exitValue): Removed.
365 (waitFor): Only check thread interrupted status if waitpid() returned
366 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
369 * java/security/cert/X509Extension.java: Merge from classpath.
371 2001-09-22 Anthony Green <green@redhat.com>
373 * java/security/DummyKeyPairGenerator.java (initialize): New
374 method (with AlgorithmParameterSpec argument).
376 2001-09-22 Anthony Green <green@redhat.com>
378 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
380 * gnu/java/security/provider/SHA1PRNG.java: Extend from
382 (engineNextBytes): Fix order of memory copies.
384 2001-09-21 Richard Henderson <rth@redhat.com>
386 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
387 add get_method, set_method, vtable_elt_size, new_vtable.
388 (_Jv_ArrayVTable): Derive from _Jv_VTable.
389 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
390 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
391 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
393 2001-09-21 Richard Henderson <rth@redhat.com>
395 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
396 * java/lang/mprec.c (lo0bits): Fix paren typo.
398 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
400 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
401 blocking IO via pthread_kill().
402 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
403 interrupted status flag only if ::write returned an error.
404 (write (jbyteArray, jint, jint): Likewise.
405 (read (jint)): Likewise.
406 (read (jbyteArray, jint, jint): Likewise.
408 2001-09-19 Anthony Green <green@redhat.com>
410 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
413 2001-09-17 Andreas Jaeger <aj@suse.de>
415 * jni.cc (array_from_valist): Use promoted types for va_arg.
417 2001-09-16 Anthony Green <green@redhat.com>
419 * gnu/java/locale/LocaleInformation.java: Extend
420 LocaleInformation_en_US, not LocaleInformation_en.
422 2001-09-16 Anthony Green <green@redhat.com>
424 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
426 2001-09-14 Tom Tromey <tromey@redhat.com>
428 * java/util/TimeZone.java: Updated list of timezones from
431 * java/lang/CloneNotSupportedException.java: Re-merged with
434 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
436 * java/io/File.java (normalizePath): Use equals() not '==' for string
439 * java/util/Hashtable.java (Enumerator): Ensure that if
440 hasMoreElements() returns true, nextElement() will always return
441 something even if the table has been modified.
443 2001-09-12 Tom Tromey <tromey@redhat.com>
445 * Makefile.in: Rebuilt.
446 * Makefile.am (class-check): New target.
448 2001-09-11 Tom Tromey <tromey@redhat.com>
450 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
452 2001-09-10 Tom Tromey <tromey@redhat.com>
454 * java/util/Properties.java (load): Correctly read \u sequences.
455 Report from Anthony Green.
457 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
459 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
460 and $(MULTIBUILDTOP).
461 * configure: Re-generate.
463 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
465 * include/jvm.h (_Jv_AllocRawObj): New prototype.
466 * boehm.cc (_Jv_AllocRawObj): Implement.
467 * nogc.cc (_Jv_AllocRawObj): Likewise.
468 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
470 2001-09-06 Anthony Green <green@redhat.com>
472 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
473 redundant method calls.
474 (emptyLocale): New private member.
475 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
478 2001-09-06 Tom Tromey <tromey@redhat.com>
480 * java/text/RuleBasedCollator.java (clone): Rewrote.
481 (RuleBasedCollator(RuleBasedCollator)): Removed.
482 * java/text/MessageFormat.java: Re-merged from Classpath.
483 * java/text/DecimalFormat.java: Re-merged from Classpath.
485 2001-09-06 Anthony Green <green@redhat.com>
487 * include/jvm.h: Declare _Jv_RegisterResource.
488 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
489 gnu/gcj/protocol/core/Connection.java,
490 gnu/gcj/protocol/core/Handler.java,
491 gnu/gcj/protocol/core/CoreInputStream.java,
492 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
493 * java/net/URL.java (setURLStreamHandler): Use
494 gnu.gcj.protocol.core.Handler for the core protocol.
495 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
496 end of java.class.path.
497 * Makefile.am (ordinary_java_source_files): Add new java files.
498 (nat_source_files): Add new native code files.
499 * Makefile.in: Rebuilt.
501 2001-09-05 Tom Tromey <tromey@redhat.com>
503 * java/util/Properties.java: Re-merged from Classpath.
505 From Eric Blake, via Classpath:
506 * java/lang/String.java (CaseInsensitiveComparator): New class.
507 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
509 * java/util/Date.java: Re-merged with Classpath.
511 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
513 2001-09-05 Corey Minyard <minyard@acm.org>
514 Tom Tromey <tromey@redhat.com>
516 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
517 (_Jv_RegisterClassHookDefault): Throw error if a class is
520 2001-09-05 Tom Tromey <tromey@redhat.com>
522 * java/lang/natSystem.cc (init_properties): Default locale is
525 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
527 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
528 here, DecimalFormat.applyPattern() does not throw it.
530 2001-09-04 Tom Tromey <tromey@redhat.com>
532 * java/util/AbstractMap.java: Re-merged with Classpath.
533 * java/util/IdentityHashMap.java: Re-merged with Classpath.
535 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
536 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
537 gnu/gcj/text/LocaleData_en_US.java: Removed.
538 * java/text/DateFormatSymbols.java (clone): Use Classpath
540 (equals): Simplified.
541 (DateFormatSymbols): Look in gnu.java.locale for information.
542 (DateFormatSymbols(DateFormatSymbols)): Removed.
543 (safeGetResource): Removed.
544 (DateFormatSymbols): Throws MissingResourceException.
545 (ampmsDefault, erasDefault, localPatternCharsDefault,
546 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
547 weekdaysDefault, zoneStringsDefault): Removed.
548 * java/text/Collator.java (getAvailableLocales): Use modified
549 Classpath implementation.
550 (getInstance): Look in gnu.java.locale for information.
552 * java/text/MessageFormat.java: Reindented.
554 * java/text/FieldPosition.java: Merged with Classpath.
555 * java/text/ParsePosition.java: Merged with Classpath.
556 * java/text/Format.java: Merged with Classpath.
557 * java/text/StringCharacterIterator.java
558 (StringCharacterIterator(StringCharacterIterator,int,int)): New
559 constructor from Classpath.
560 * java/text/Annotation.java,
561 java/text/AttributedCharacterIterator.java,
562 java/text/AttributedString.java,
563 java/text/AttributedStringIterator.java: New from Classpath.
564 * java/text/CharacterIterator.java: Copied from Classpath.
565 * java/text/ChoiceFormat.java: Reindented.
567 * gnu/java/text/BaseBreakIterator.java,
568 gnu/java/text/CharacterBreakIterator.java,
569 gnu/java/text/LineBreakIterator.java,
570 gnu/java/text/LocaleData_en.java,
571 gnu/java/text/LocaleData_en_US.java,
572 gnu/java/text/SentenceBreakIterator.java,
573 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
574 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
576 * java/text/BreakIterator.java (getAvailableLocales): Use
577 Classpath implementation.
578 (getInstance): Look in gnu.java.locale for information.
579 (getCharacterInstance, getLineInstance, getSentenceInstance,
580 getWordInstance): Look in gnu.java.text for implementations.
581 * java/text/DecimalFormatSymbols.java: Reindented
582 (clone): Use Classpath implementation.
583 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
584 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
586 * java/text/DateFormat.java: Merged with Classpath.
587 (getAvailableLocales): Use Classpath implementation.
588 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
589 (computeInstance): Look in gnu.java.locale for information.
590 * java/text/NumberFormat.java: Reindented.
591 (computeInstance): Look in gnu.java.locale for information.
592 (getAvailableLocales): Use implementation from Classpath.
593 (setMaximumIntegerDigits): Likewise.
594 (setMinimumIntegerDigits): Likewise.
595 (setMaximumFractionDigits): Likewise.
597 * java/text/DecimalFormat.java: Reindented.
598 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
599 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
600 * Makefile.in: Rebuilt.
601 * Makefile.am (ordinary_java_source_files): Added all new files.
602 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
603 * java/security/spec/AlgorithmParameterSpec.java,
604 java/security/spec/KeySpec.java: Re-merged with Classpath.
606 Fix for PR libgcj/4213:
607 * Makefile.am (ordinary_java_source_files): Added new file.
608 * gnu/gcj/text/LocaleData.java: New file.
610 2001-09-03 Tom Tromey <tromey@redhat.com>
612 * java/lang/reflect/natField.cc (set): Allow for case when the
613 value is null. Fixes PR libgcj/4208.
615 * gcj/javaprims.h: Regenerated class list.
616 * java/lang/IllegalThreadStateException.java,
617 java/lang/InstantiationException.java: Minor comment tweaks to
618 satisfy libgcj `classes.pl' script.
620 2001-09-01 Tom Tromey <tromey@redhat.com>
622 * Makefile.in: Rebuilt.
623 * Makefile.am (core_java_source_files): Added
624 UnsupportedClassVersionError.
625 * java/lang/UnsupportedClassVersionError.java: New file from
628 * java/io/CharConversionException.java, java/io/EOFException.java,
629 java/io/FileNotFoundException.java, java/io/IOException.java,
630 java/io/InterruptedIOException.java,
631 java/io/ObjectStreamException.java,
632 java/io/OptionalDataException.java,
633 java/io/StreamCorruptedException.java,
634 java/io/SyncFailedException.java,
635 java/io/UTFDataFormatException.java,
636 java/io/UnsupportedEncodingException.java,
637 java/lang/AbstractMethodError.java,
638 java/lang/ArithmeticException.java,
639 java/lang/ArrayIndexOutOfBoundsException.java,
640 java/lang/ArrayStoreException.java,
641 java/lang/ClassCastException.java,
642 java/lang/ClassCircularityError.java,
643 java/lang/ClassFormatError.java,
644 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
645 java/lang/Exception.java,
646 java/lang/ExceptionInInitializerError.java,
647 java/lang/IllegalAccessError.java,
648 java/lang/IllegalAccessException.java,
649 java/lang/IllegalArgumentException.java,
650 java/lang/IllegalMonitorStateException.java,
651 java/lang/IllegalStateException.java,
652 java/lang/IllegalThreadStateException.java,
653 java/lang/IncompatibleClassChangeError.java,
654 java/lang/IndexOutOfBoundsException.java,
655 java/lang/InstantiationError.java,
656 java/lang/InstantiationException.java,
657 java/lang/InternalError.java, java/lang/InterruptedException.java,
658 java/lang/LinkageError.java,
659 java/lang/NegativeArraySizeException.java,
660 java/lang/NoClassDefFoundError.java,
661 java/lang/NoSuchFieldError.java,
662 java/lang/NoSuchFieldException.java,
663 java/lang/NoSuchMethodError.java,
664 java/lang/NoSuchMethodException.java,
665 java/lang/NullPointerException.java,
666 java/lang/NumberFormatException.java,
667 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
668 java/lang/SecurityException.java,
669 java/lang/StackOverflowError.java,
670 java/lang/StringIndexOutOfBoundsException.java,
671 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
672 java/lang/UnsatisfiedLinkError.java,
673 java/lang/UnsupportedOperationException.java,
674 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
675 java/lang/reflect/InvocationTargetException.java,
676 java/net/BindException.java, java/net/ConnectException.java,
677 java/net/MalformedURLException.java,
678 java/net/NoRouteToHostException.java,
679 java/net/ProtocolException.java, java/net/SocketException.java,
680 java/net/UnknownHostException.java,
681 java/net/UnknownServiceException.java,
682 java/text/ParseException.java: Copied from Classpath, thanks to
683 Mark Wielaard who did the merge.
685 * java/lang/System.java (getProperty): Use single argument form of
686 SecurityManager.checkPropertyAccess.
687 * Makefile.in: Rebuilt.
688 * Makefile.am (core_java_source_files): Added VMSecurityManager.
689 * java/lang/VMSecurityManager.java: New file.
690 * java/lang/SecurityManager.java: Merged with Classpath.
692 2001-08-31 Per Bothner <per@bothner.com>
694 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
695 (_Jv_RegisterClassHookDefault): Likewise.
696 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
697 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
698 (_Jv_RegisterClassHookDefault): New.function.
699 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
701 * java/lang/ClassLoader.java (system): Remove static field.
702 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
703 directly instead of using it to set the system field.
704 (loadClass): Use VMClassLoader.instance instead of system field.
705 (findSystemClass): Similar.
706 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
707 than ClassLoader::system which no longer exists.
708 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
710 2001-08-31 Tom Tromey <tromey@redhat.com>
712 * java/io/BufferedReader.java, java/io/ObjectInput.java,
713 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
714 Re-merged with Classpath.
716 Re-merge with Classpath:
717 * java/util/Comparator (equals): Added.
718 * java/io/PipedWriter.java (write): Changed argument to `int'.
720 * java/io/FileDescriptor.java (FileDescriptor()): New
722 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
724 * Makefile.in: Rebuilt.
725 * Makefile.am (ordinary_java_source_files): Removed
726 EnumerationChain, added DoubleEnumeration.
727 (nat_source_files): Added natResourceBundle.cc.
728 * java/util/natResourceBundle.cc: New file.
729 * gnu/java/util/DoubleEnumeration.java: New file.
730 * gnu/gcj/util/EnumerationChain.java: Removed.
731 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
732 * java/util/ResourceBundle.java: Merged with Classpath.
733 * java/util/StringTokenizer.java: Merged with Classpath.
734 * java/util/Locale.java: Merged with Classpath.
735 * java/util/Random.java: Merged with Classpath.
736 * java/util/PropertyResourceBundle.java: Merged with Classpath.
737 * java/util/ListResourceBundle.java: Merged with Classpath.
738 * java/util/ConcurrentModificationException.java: Re-merged with
740 * java/util/EmptyStackException.java: Likewise.
741 * java/util/MissingResourceException.java: Likewise.
742 * java/util/NoSuchElementException.java: Likewise.
743 * java/util/TooManyListenersException.java: Likewise.
745 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
746 * java/io/OptionalDataException.java: Merged with Classpath.
748 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
750 * exception.cc (PERSONALITY_FUNCTION): Simplify
753 2001-08-31 Tom Tromey <tromey@redhat.com>
755 * java/io/ByteArrayInputStream.java: Merged with Classpath.
757 2001-08-30 Tom Tromey <tromey@redhat.com>
759 * java/io/BufferedReader.java: Re-merged with Classpath.
761 2001-08-28 Per Bothner <per@bothner.com>
763 * java/math/BigInteger.java (init(int,Random)): New method.
764 Move body of constructor <init>(int,Random)) here.
765 Re-write it to avoid constructing unneeded temporaries.
766 (<init>(int,int,Random)): Use new init method to avoid constructing
767 extra temporary BigIntegers.
769 2001-08-27 Tom Tromey <tromey@redhat.com>
771 * java/rmi/activation/Activatable.java,
772 java/rmi/activation/ActivateFailedException.java,
773 java/rmi/activation/ActivationDesc.java,
774 java/rmi/activation/ActivationException.java,
775 java/rmi/activation/ActivationGroup.java,
776 java/rmi/activation/ActivationGroupDesc.java,
777 java/rmi/activation/ActivationGroupID.java,
778 java/rmi/activation/ActivationID.java,
779 java/rmi/activation/ActivationInstantiator.java,
780 java/rmi/activation/ActivationMonitor.java,
781 java/rmi/activation/ActivationSystem.java,
782 java/rmi/activation/Activator.java,
783 java/rmi/activation/UnknownGroupException.java,
784 java/rmi/activation/UnknownObjectException.java,
785 java/rmi/AccessException.java,
786 java/rmi/AlreadyBoundException.java,
787 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
788 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
789 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
790 java/rmi/NotBoundException.java,
791 java/rmi/RMISecurityException.java,
792 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
793 java/rmi/RemoteException.java, java/rmi/ServerError.java,
794 java/rmi/ServerException.java,
795 java/rmi/ServerRuntimeException.java,
796 java/rmi/StubNotFoundException.java,
797 java/rmi/UnexpectedException.java,
798 java/rmi/UnknownHostException.java,
799 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
800 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
801 java/rmi/registry/LocateRegistry.java,
802 java/rmi/registry/Registry.java,
803 java/rmi/registry/RegistryHandler.java,
804 java/rmi/server/ExportException.java,
805 java/rmi/server/LoaderHandler.java,
806 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
807 java/rmi/server/Operation.java,
808 java/rmi/server/RMIClassLoader.java,
809 java/rmi/server/RMIClientSocketFactory.java,
810 java/rmi/server/RMIFailureHandler.java,
811 java/rmi/server/RMIServerSocketFactory.java,
812 java/rmi/server/RMISocketFactory.java,
813 java/rmi/server/RemoteCall.java,
814 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
815 java/rmi/server/RemoteServer.java,
816 java/rmi/server/RemoteStub.java,
817 java/rmi/server/ServerCloneException.java,
818 java/rmi/server/ServerNotActiveException.java,
819 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
820 java/rmi/server/SkeletonMismatchException.java,
821 java/rmi/server/SkeletonNotFoundException.java,
822 java/rmi/server/SocketSecurityException.java,
823 java/rmi/server/UID.java,
824 java/rmi/server/UnicastRemoteObject.java,
825 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
826 gnu/java/rmi/dgc/DGCImpl_Skel.java,
827 gnu/java/rmi/dgc/DGCImpl_Stub.java,
828 gnu/java/rmi/registry/RegistryImpl.java,
829 gnu/java/rmi/registry/RegistryImpl_Skel.java,
830 gnu/java/rmi/registry/RegistryImpl_Stub.java,
831 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
832 gnu/java/rmi/server/ProtocolConstants.java,
833 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
834 gnu/java/rmi/server/RMIHashes.java,
835 gnu/java/rmi/server/RMIObjectInputStream.java,
836 gnu/java/rmi/server/RMIObjectOutputStream.java,
837 gnu/java/rmi/server/UnicastConnection.java,
838 gnu/java/rmi/server/UnicastConnectionManager.java,
839 gnu/java/rmi/server/UnicastRef.java,
840 gnu/java/rmi/server/UnicastRemoteCall.java,
841 gnu/java/rmi/server/UnicastRemoteStub.java,
842 gnu/java/rmi/server/UnicastServer.java,
843 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
844 Kaffe. Relabelled classes to fit into Classpath tree.
845 * Makefile.in: Rebuilt.
846 * Makefile.am (rmi_java_source_files): New macro.
847 (ordinary_java_source_files): Reference it.
848 (bin_PROGRAMS): Added rmic and rmiregistry.
849 (rmic_SOURCES): New macro.
850 (EXTRA_rmic_SOURCES): Likewise.
851 (rmic_LDFLAGS): Likewise.
852 (rmic_LINK): Likewise.
853 (rmic_LDADD): Likewise.
854 (rmic_DEPENDENCIES): Likewise.
855 (rmiregistry_SOURCES): New macro.
856 (EXTRA_rmiregistry_SOURCES): Likewise.
857 (rmiregistry_LDFLAGS): Likewise.
858 (rmiregistry_LINK): Likewise.
859 (rmiregistry_LDADD): Likewise.
860 (rmiregistry_DEPENDENCIES): Likewise.
862 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
864 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
866 * Makefile.am: New friends for java/lang/Thread.h.
867 * prims.cc (runFirst): Removed.
868 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
869 (_Jv_RunMain): Now takes either a klass or class name parameter.
870 Create a gnu.gcj.runtime.FirstThread and attach the native thread
871 to that, then run it using _Jv_ThreadRun. Remove special handling of
872 jar files, instead pass is_jar parameter through to FirstThread.
873 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
874 of _Jv_AttachCurrentThread.
875 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
876 (run): New method. Take care of looking up main class manifest
877 attribute and calling forName if neccessary. Then call call_main.
878 (call_main): New native method.
879 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
880 relocated from prims.cc. Look up and call main method.
881 * java/lang/Thread.java (run_): Removed.
882 * java/lang/natThread.cc (run_): Renamed to...
883 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
884 (_Jv_NotifyThreadStart): here. New function.
885 (countStackFrames, destroy, resume, suspend, stop): Throw
886 UnsupportedOperationExceptions rather than JvFail'ing.
887 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
888 Existing version wraps new variant.
891 2001-08-23 Tom Tromey <tromey@redhat.com>
893 * java/lang/reflect/Field.java (toString): Use
894 Method.appendClassName.
895 * java/lang/reflect/Constructor.java (toString): Use
896 Method.appendClassName.
897 * java/lang/reflect/Method.java: Reindented.
898 (appendClassName): New method.
900 * defineclass.cc (handleMethod ): Initialize `throws' field of
902 (read_one_method_attribute): Handle Exceptions attribute.
903 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
904 (ObjectClass): Removed.
905 (getType): Compute `exception_types'.
906 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
908 2001-08-21 Anthony Green <green@redhat.com>
910 * java/lang/natClassLoader.cc (findClass): Search for
911 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
913 2001-08-21 Jeff Sturm <jsturm@one-point.com>
915 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
918 2001-08-20 Tom Tromey <tromey@redhat.com>
920 * java/awt/GridBagConstraints.java: Removed comment.
922 * jni.cc (nathash, nathash_count, nathash_size): New globals.
923 (DELETED_ENTRY): New define.
924 (hash): New function.
925 (nathash_find_slot): Likewise.
926 (natrehash): Likewise.
927 (nathash_add): Likewise.
928 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
930 (nathash_find): New function.
931 (_Jv_LookupJNIMethod): Use it. Synchronize body.
932 (call): Synchronize around assignment.
934 2001-08-17 Jeff Sturm <jsturm@one-point.com>
936 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
937 starting from zero offset.
939 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
941 * boehm.cc: Include gc_local_alloc.h if appropriate.
942 (GC_GENERIC_MALLOC): Don't define.
943 (MAYBE_MARK): Redefine for GC 6.0.
944 (_Jv_MarkObj): Mark class differently.
945 (_Jv_AllocArray): Use GC_generic_malloc.
947 2001-08-17 Mark J Roberts <mjr@anarcast.net>
949 * java/math/BigInteger.java (randBytes): New method.
950 (BigInteger(int,Random)): Use randBytes.
952 2001-08-17 Tom Tromey <tromey@redhat.com>
954 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
956 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
958 * BigInteger.java: fix right shifts by nonzero multiples of 32.
960 2001-08-15 Tom Tromey <tromey@redhat.com>
962 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
963 (local_ref_table, global_ref_table): Now IdentityHashMap.
964 (_Jv_JNI_Init): Updated for new types.
965 (mark_for_gc): Likewise.
966 (unmark_for_gc): Likewise.
967 * gcj/javaprims.h: Rebuilt class list.
968 * Makefile.in: Rebuilt.
969 * Makefile.am (core_java_source_files): Added new file.
970 * java/util/IdentityHashMap.java: New file.
972 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
975 2001-08-09 Tom Tromey <tromey@redhat.com>
977 * java/awt/image/SampleModel.java (getPixel): Set correct array
978 element. From Chris Meyer.
980 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
982 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
983 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
985 2001-08-06 Tom Tromey <tromey@redhat.com>
987 * java/io/InputStreamReader.java (refill): Only call refill on
988 BufferedInputStream when appropriate constraints are met.
990 2001-08-05 Tom Tromey <tromey@redhat.com>
992 * java/io/StringWriter.java: Merged with Classpath.
993 * java/io/InputStream.java: Merged with Classpath.
994 * java/io/OutputStream.java: Merged with Classpath.
995 * java/io/PushbackInputStream.java: Merged with Classpath.
996 * java/io/CharArrayReader.java: Merged with Classpath.
997 * java/io/CharArrayWriter.java: Merged with Classpath.
999 2001-08-02 Tom Tromey <tromey@redhat.com>
1001 * prims.cc (JNI_OnLoad): Don't declare.
1002 (_JNI_OnLoad): Don't define.
1003 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1005 2001-08-02 Tom Tromey <tromey@redhat.com>
1007 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1009 (skipBytes): Don't fail if seeking past end of file.
1010 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1012 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1014 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1016 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1018 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1020 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1022 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1023 to initialize global_ref_table/local_ref_table.
1025 2001-08-02 Tom Tromey <tromey@redhat.com>
1027 * configure: Rebuilt.
1028 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1031 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1033 * include/posix.h (_POSIX_PII_SOCKET): Define.
1034 * configure.in (HAVE_SOCKLEN_T): Define.
1035 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1037 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1038 (java::net::PlainSocketImpl::accept): Use it.
1039 Fixes PRs libgcj/3694, libgcj/3696.
1041 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1042 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1043 * configure, include/config.h.in: Regenerate.
1044 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1045 (mcastGrp): Likewise.
1046 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1047 missing IPV6_MULTICAST_IF.
1048 Fixes PR libgcj/3694.
1050 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1052 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1054 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1056 * Makefile.in: Rebuilt.
1057 * Makefile.am (GCJLINK): Added --tag=GCJ.
1058 (LIBLINK): Likewise.
1060 2001-07-30 Tom Tromey <tromey@redhat.com>
1062 * java/util/Date.java: Re-merged with Classpath.
1064 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1066 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1067 (_Jv_bind): New static function.
1068 (bind): Use _Jv_bind.
1069 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1070 (_Jv_bind, _Jv_connect): New static functions.
1071 (bind): Use _Jv_bind.
1072 (connect): Use _Jv_connect.
1074 2001-07-30 Tom Tromey <tromey@redhat.com>
1075 Corey Minyard <minyard@acm.org>
1077 * gnu/gcj/convert/natIconv.cc (done): New methods.
1078 * gnu/gcj/convert/Output_iconv.java (done): New method.
1079 * gnu/gcj/convert/Input_iconv.java (done): New method.
1080 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1082 (getDefaultEncodingClass): Removed.
1083 (getDefaultEncoder): Use getEncoder.
1085 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1087 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1089 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1091 (getDefaultDecodingClass): Removed.
1092 (getDefaultDecoder): Use getDecoder.
1093 (getDecoder): Look up decoder in cache.
1095 * java/lang/natString.cc (init): Call `done' on converter.
1096 (getBytes): Likewise.
1098 2001-07-30 Tom Tromey <tromey@redhat.com>
1100 * java/lang/Integer.java: Merged with Classpath.
1102 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1104 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1105 setTimeInMillis() to set the default/current time.
1107 2001-07-29 Mark Wielaard <mark@klomp.org>
1109 * HACKING: add description on updating namespace
1111 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1113 * java/util/Calendar.java (set): Never recompute fields here. They
1114 will already be set if someone set time explicitly, and it can cause
1115 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1116 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1117 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1119 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1120 (readObject): Call set2DigitYearStart if appropriate so that
1121 defaultCentury is calculated.
1122 (SimpleDateFormat): Don't bother clearing calendar here. Call
1123 computeCenturyStart().
1124 (set2DigitYearStart): Calculate and set defaultCentury.
1125 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1127 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1128 2 numeric digits, use the 80-20 heuristic to parse the value into a
1129 default century based on defaultCenturyStart.
1130 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1132 2001-07-25 Tom Tromey <tromey@redhat.com>
1134 * Makefile.in: Rebuilt.
1135 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1138 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1140 * prims.cc (_JNI_OnLoad): New function.
1141 (JNI_OnLoad): Use it.
1142 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1144 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1146 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1147 Makefile.in: Regenerate.
1149 2001-07-24 Tom Tromey <tromey@redhat.com>
1151 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1154 2001-07-23 Tom Tromey <tromey@redhat.com>
1156 * gcj/javaprims.h: Rebuilt class list.
1157 * Makefile.in: Rebuilt.
1158 * Makefile.am (core_java_source_files): Added VMClassLoader.
1159 * java/lang/VMClassLoader.java: New file.
1160 * java/lang/Boolean.java: Merged with Classpath.
1161 * java/lang/Byte.java: Merged with Classpath.
1162 * java/lang/Integer.java: Merged with Classpath.
1163 * java/lang/Long.java: Merged with Classpath.
1164 * java/lang/Number.java: Merged with Classpath.
1165 * java/lang/Short.java: Merged with Classpath.
1167 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1169 * configure.host: Enable hash synchronization for alpha*-*.
1170 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1172 * java/lang/natObject.cc (compare_and_swap, release_set,
1173 compare_and_swap_release): Added inline functions for alpha.
1175 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1177 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1178 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1179 back to old RFC 2133 variants if missing.
1181 2001-07-18 Tom Tromey <tromey@redhat.com>
1183 * java/io/natFileWin32.cc (_access): Renamed.
1185 * java/io/natFile.cc (_access): Renamed.
1187 * java/io/File.java (access, stat): Add leading `_' to name.
1188 Updated all callers.
1190 2001-07-18 Tom Tromey <tromey@redhat.com>
1193 * libgcj.spec.in (*lib): Added LIBICONV.
1194 * configure: Rebuilt.
1195 * configure.in: Call AM_ICONV. Don't check for iconv function.
1196 Add parameters to JV_HASH_SYNCHRONIZATION define.
1197 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1199 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1201 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1202 not by setting its size field.
1204 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1206 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1209 2001-07-12 Tom Tromey <tromey@redhat.com>
1210 David Brownell <david-b@pacbell.net>
1212 Fix for PR libgcj/3426:
1213 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1215 (read): Throw exception if character conversion fails.
1216 * java/io/BufferedInputStream.java (refill): Now package-private.
1217 * java/io/InputStreamReader.java (ready): Simplified.
1218 (refill): New method.
1221 2001-07-12 Tom Tromey <tromey@redhat.com>
1223 Report from Henner Zeller:
1224 * java/io/FileOutputStream.java (FileOutputStream): Throw
1225 FileNotFoundException, not IOException.
1227 2001-07-10 Anthony Green <green@redhat.com>
1229 * Makefile.in: Rebuilt.
1230 * Makefile.am: Add new files.
1231 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1232 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1233 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1234 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1235 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1236 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1237 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1238 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1239 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1240 org/w3c/dom/ranges/DocumentRange.java,
1241 org/w3c/dom/ranges/Range.java,
1242 org/w3c/dom/ranges/RangeException.java,
1243 org/w3c/dom/traversal/DocumentTraversal.java,
1244 org/w3c/dom/traversal/NodeFilter.java,
1245 org/w3c/dom/traversal/NodeIterator.java,
1246 org/w3c/dom/traversal/TreeWalker.java,
1247 org/xml/sax/ext/DeclHandler.java,
1248 org/xml/sax/ext/LexicalHandler.java,
1249 org/xml/sax/helpers/AttributeListImpl.java,
1250 org/xml/sax/helpers/AttributesImpl.java,
1251 org/xml/sax/helpers/DefaultHandler.java,
1252 org/xml/sax/helpers/LocatorImpl.java,
1253 org/xml/sax/helpers/NamespaceSupport.java,
1254 org/xml/sax/helpers/ParserAdapter.java,
1255 org/xml/sax/helpers/ParserFactory.java,
1256 org/xml/sax/helpers/XMLFilterImpl.java,
1257 org/xml/sax/helpers/XMLReaderAdapter.java,
1258 org/xml/sax/helpers/XMLReaderFactory.java,
1259 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1260 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1261 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1262 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1263 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1264 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1265 org/xml/sax/SAXNotRecognizedException.java,
1266 org/xml/sax/SAXNotSupportedException.java,
1267 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1268 org/xml/sax/XMLReader.java: New files.
1270 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1272 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1273 * Makefile.in: Regenerate.
1274 * java/lang/ThreadLocal.java: Initial import.
1276 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1278 * Makefile.am (libgcj.jar): Don't recursively make
1279 built_java_source_files. Avoid long command lines.
1280 Don't change to $(srcdir) to invoke javac.
1281 (libgcj.la, libgcjx.la); Avoid long command lines.
1282 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1283 * Makefile.in: Rebuilt.
1285 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1287 * include/i386-signal.h: Don't do anything with unsigned divide
1288 overflow except throw an exception.
1290 2001-07-05 Tom Tromey <tromey@redhat.com>
1293 * java/lang/Class.h (Class(void)): Now private. Removed
1294 implementation. From dmorsberger@sensysdl.com.
1296 2001-07-02 Tom Tromey <tromey@redhat.com>
1298 Fix for PR bootstrap/3281:
1299 * aclocal.m4, configure: Rebuilt.
1300 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1301 Correctly compute libgcj_basedir.
1302 (mkinstalldirs): Define and subst.
1304 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1307 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1310 2001-06-27 Tom Tromey <tromey@redhat.com>
1312 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1315 2001-06-25 Tom Tromey <tromey@redhat.com>
1317 * scripts/encodings.pl: Generate lower-case names. Updated URL
1318 for `character-sets' file.
1319 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1321 Rebuilt list of aliases.
1323 2001-06-25 Tom Tromey <tromey@redhat.com>
1325 * java/io/natFileDescriptorPosix.cc (open): Change error message
1326 formatting. From David Brownell.
1328 2001-06-21 Tom Tromey <tromey@redhat.com>
1330 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1333 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1335 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1336 extraneous/malformed sign word.
1338 2001-06-15 Tom Tromey <tromey@redhat.com>
1340 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1342 2001-06-15 Tom Tromey <tromey@redhat.com>
1344 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1345 NULL if no library on the list has the symbol.
1346 (init): Call add_library on the program itself.
1347 * prims.cc (JvRunMain): Initialize Runtime before searching for
1349 (_Jv_RunMain): Likewise.
1351 2001-06-15 Tom Tromey <tromey@redhat.com>
1353 * jni.cc (ClassClass): Removed; updated all users.
1354 (ObjectClass): Likewise.
1355 (ThrowableClass): Likewise.
1356 (MethodClass): Likewise.
1357 (ThreadGroupClass): Likewise.
1358 (local_ref_table): Renamed from `ref_table'.
1359 (global_ref_table): New global.
1360 (_Jv_JNI_Init): Initialize both ref tables.
1361 (mark_for_gc): Added `ref_table' parameter.
1362 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1364 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1365 (_Jv_JNI_DeleteGlobalRef): Likewise.
1366 (_Jv_JNI_DeleteLocalRef): Likewise.
1367 (_Jv_JNI_NewLocalRef): Likewise.
1368 (_Jv_JNI_PopLocalFrame): Likewise.
1369 (_Jv_JNI_GetStringChars): Likewise.
1370 (_Jv_JNI_ReleaseStringChars): Likewise.
1371 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1372 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1374 2001-06-14 Tom Tromey <tromey@redhat.com>
1376 Fix for PR libgcj/3144:
1377 * java/util/Date.java: Merged with Classpath.
1379 2001-06-12 Tom Tromey <tromey@redhat.com>
1381 * aclocal.m4, configure: Rebuilt.
1382 * acinclude.m4: Find configure.host in srcdir.
1384 2001-06-07 Tom Tromey <tromey@redhat.com>
1386 Fix for PR libgcj/3059:
1387 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1388 * Makefile.in: Rebuilt.
1389 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1391 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1393 * exception.cc (cstdlib): Replaces stdlib.h.
1394 (_Jv_Throw): Use std::abort().
1395 (PERSONALITY_FUNCTION): Likewise.
1397 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1399 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1400 nothing, as in autoconf 2.50.
1401 * aclocal.m4, configure: Rebuilt.
1403 2001-06-08 Tom Tromey <tromey@redhat.com>
1405 * configure: Rebuilt.
1406 * configure.in: Compute new aux dir using `pwd'.
1408 2001-06-07 Tom Tromey <tromey@redhat.com>
1410 For PR bootstrap/3075:
1411 * configure, aclocal.m4, Makefile.am: Rebuilt.
1412 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1413 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1414 relative to libgcj_basedir.
1415 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1416 AC_CANONICAL_SYSTEM here.
1417 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1419 ($(extra_headers)): New target.
1421 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1422 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1424 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1425 table index is within allowed bounds. Ensure that we dont try to access
1426 class itable at a negative offset. Avoid an ancestor table lookup if
1427 source is a primitive type class.
1428 (isInstance): Remove redundant isPrimitive() check.
1430 2001-06-04 Tom Tromey <tromey@redhat.com>
1432 * java/security/PublicKey.java: Extend Key.
1433 * java/security/PrivateKey.java: Extend Key.
1435 2001-06-02 Anthony Green <green@redhat.com>
1437 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1438 alternate when USE_LTDL not defined.
1440 2001-06-02 Anthony Green <green@redhat.com>
1442 * configure: Rebuild.
1443 * configure.in: Remove data_start hack.
1444 * libgcj.spec.in: Ditto.
1445 * Makefile.in: Rebuild.
1446 * Makefile.am: Ditto.
1447 * libgcjdata.c: Remove.
1449 2001-06-02 Anthony Green <green@redhat.com>
1451 * configure: Rebuild.
1452 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1453 --without-libffi option. Tweak --disable-java-net processing.
1454 * Makefile.in: Rebuild.
1455 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1456 * include/config.h.in: Rebuild.
1457 * acconfig.h (USE_LIBFFI): Define.
1458 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1460 2001-06-02 Anthony Green <green@redhat.com>
1462 * configure: Rebuilt.
1463 * configure.in: Test for sigaction on native builds.
1464 * prims.cc: Check HAVE_SIGACTION.
1465 * include/config.h.in: Rebuilt.
1467 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1469 * natFile.cc (get_entry): Removed functions.
1470 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1471 Allocate enough storage for d_name if using readdir_r.
1473 2001-05-31 Tom Tromey <tromey@redhat.com>
1475 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1477 (write): Loop until write completes. From Corey Minyard.
1479 2001-05-29 Laurent Guerby <guerby@acm.org>
1481 * java/awt/geom/Rectangle2D.java: fix doc typo.
1483 2001-05-31 Tom Tromey <tromey@redhat.com>
1485 * java/sql/DriverManager.java (getDrivers): Handle case where
1486 driver's class loader is null. From Corey Minyard.
1488 2001-05-29 Tom Tromey <tromey@redhat.com>
1490 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1492 * configure: Rebuilt.
1493 * configure.in: Only add multilib support code if we just rebuilt
1496 2001-05-29 Andrew Haley <aph@redhat.com>
1498 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1499 pointer: the dwarf unwinder in libgcc will do everything that's
1501 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1502 more than we absolutely need to.
1503 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1504 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1506 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1508 * configure: Rebuilt.
1509 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1511 (SIGNAL_HANDLER): Use siginfo style handler.
1512 (INIT_SEGV): Likewise.
1513 (INIT_FPE): Likewise.
1514 * include/ppc-signal.h: Delete whole file.
1516 2001-05-24 Tom Tromey <tromey@redhat.com>
1518 * java/lang/natString.cc (init): Throw
1519 ArrayIndexOutOfBoundsException.
1520 (getChars): Likewise.
1521 (getBytes): Likewise.
1522 (valueOf): Likewise.
1524 * configure.in: Only allow hash synchronization when POSIX threads
1526 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1527 of sync info object.
1529 2001-05-23 Tom Tromey <tromey@redhat.com>
1531 * Makefile.in: Rebuilt.
1532 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1534 Revert patch of 2001-05-21:
1535 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1536 (libgcj_la_LIBADD): Likewise.
1537 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1538 (libgcjx_la_LIBADD): Likewise.
1540 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1541 * gcj/Makefile.in: Rebuilt.
1542 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1543 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1544 * gcj/libgcj-config.h.in: New file.
1545 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1546 * configure: Rebuilt.
1547 * configure.in: Enable hash synchronization by default on some
1549 (HASH_SYNC_SPEC): New subst.
1550 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1551 Correctly use `test -z' instead of `test -n' in a couple places.
1552 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1554 * configure.host (enable_java_net_default): Initialize.
1555 (enable_hash_synchronization_default): New variable.
1557 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1559 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1560 synchronization in use.
1561 (_Jv_MarkArray): Likewise.
1562 (_Jv_AllocBytes): Don't check return result.
1563 (handle_out_of_memory): New function.
1564 (_Jv_InitGC): Set GC_oom_fn.
1565 (trace_one_vtable): New global.
1566 (_Jv_AllocTraceOne): New function.
1567 * configure.in: Added --enable-hash-synchronization.
1568 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1569 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1570 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1571 (_Jv_AllocArray): Likewise.
1572 (_Jv_AllocBytes): Likewise.
1573 (_Jv_AllocPtrFreeObject): New function.
1574 (_Jv_AllocTraceOne): Likewise.
1575 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1577 (self_cache): New global.
1578 (_Jv_ThreadSelf_out_of_line): New function.
1579 * prims.cc (_Jv_AllocBytesChecked): Removed.
1580 (_Jv_ThrowNoMemory): New function.
1581 (_Jv_AllocObject): Don't check for null return from allocator.
1582 (_Jv_NewObjectArray): Likewise.
1583 (_Jv_AllocPtrFreeObject): New function.
1584 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1585 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1586 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1587 * include/boehm-gc.h (_Jv_AllocObj): Define.
1588 (_Jv_AllocPtrFreeObj): Define.
1589 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1590 (_Jv_ThrowNoMemory): Declare.
1591 (_Jv_AllocTraceOne): Declare.
1592 (_Jv_AllocBytesChecked): Removed.
1593 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1594 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1595 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1597 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1599 * java/lang/Object.h (sync_info): Conditional upon presence of
1600 hash synchronization.
1601 * java/lang/natObject.cc: Much new code to handle thin locks and
1602 hash synchronization.
1603 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1606 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1608 * gij.cc (version): Update copyright year.
1610 2001-05-22 Anthony Green <green@redhat.com>
1612 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1615 2001-05-21 Per Bothner <per@bothner.com>
1617 Implement invocation interface; don't create new thread for main.
1618 * java/lang/Thread.java (gen_name): Make native.
1619 (<init>(Thread,THreadGroup,Runnable,String)): New private
1620 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1621 * java/lang/natThread.cc (gen_name): New implementation.
1622 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1623 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1624 (_Jv_CreateJavaVM): New runtime initialization procedure.
1625 (runFirst): New proecdure - mostly code from old FirstThread::run.
1626 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1627 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1628 JvDetachCurrentThread): New inline wrappers.
1629 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1630 _Jv_DetachCurrentThread): New declarations.
1631 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1632 (getMain): new static method.
1633 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1634 by runFirst in prims.cc.
1635 (java/lang/Thread.h): Update for new invocation interface.
1636 * include/posix-threads.h (_Jv_ThreadRegister,
1637 _Jv_ThreadUnRegister): New declarations.
1638 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1639 (really_start): Use new _Jv_ThreadRegister.
1640 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1641 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1642 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1643 Complain of called when _Jv_OnlyThread already set.
1644 (_Jv_ThreadStart): Always JvFail.
1645 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1646 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1647 * win32-threads.cc (struct starter): Remove objet field -
1648 we use _Jv_Thread_t's new thread_obj field instead.
1649 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1650 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1651 (really_start): Use new _Jv_ThreadRegister.
1652 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1653 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1654 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1655 Removed - no longer needed with new invocation interface.
1656 * Makefile.am: Update for removed/added files.
1658 2001-05-21 Per Bothner <per@bothner.com>
1660 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1661 (libgcj_la_LIBADD): Likewise.
1662 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1664 2001-05-21 Per Bothner <per@bothner.com>
1666 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1667 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1668 taken from old Integer.toString code.
1669 (Integer::valueOf): Use _Jv_FormatInt.
1670 * java/lang/Integer.java (toString): Just use call String.valueOf.
1671 * java/lang/Long.java (toString): Fix typo in comment.
1672 * java/lang/String.java (valueOf(int)): Make native.
1673 * java/lang/StringBuffer.java (append(int)): Make native.
1674 * java/lang/natStringBuffer.cc: New file, for append(jint).
1675 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1677 2001-05-21 Tom Tromey <tromey@redhat.com>
1679 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1681 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1683 * include/dwarf2-signal.h: New file.
1684 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1685 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1686 * configure: Rebuilt.
1688 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1690 * configure.in: Update boehm-gc include dir for new GC version.
1691 * configure: Rebuilt.
1692 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1694 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1695 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1696 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1699 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1701 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1702 (_Jv_MutexInit): Likewise.
1704 2001-05-18 Tom Tromey <tromey@redhat.com>
1706 * Makefile.in: Rebuilt.
1707 * Makefile.am (awt_java_source_files): Added Polygon.java.
1709 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1711 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1712 * gcj/javaprims.h: ... here.
1713 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1715 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1717 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1718 with length of ioffset table.
1719 (_Jv_IsAssignableFrom): Likewise.
1721 2001-05-17 Per Bothner <per@bothner.com>
1723 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1725 2001-05-16 Tom Tromey <tromey@redhat.com>
1727 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1730 2001-05-15 Tom Tromey <tromey@redhat.com>
1732 * java/util/GregorianCalendar.java (computeTime): Only call
1735 2001-05-14 Tom Tromey <tromey@redhat.com>
1737 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1738 ZONE_OFFSET just before computing the time.
1740 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1742 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1743 * Makefile.in: Regenerate (by hand).
1744 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1745 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1747 2001-05-11 Richard Henderson <rth@redhat.com>
1749 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1750 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1752 2001-05-11 Richard Henderson <rth@redhat.com>
1754 * exception.cc: Include unwind-pe.h. Remove all pointer
1757 2001-05-10 Tom Tromey <tromey@redhat.com>
1759 * Makefile.in: Rebuilt.
1760 * Makefile.am (awt_java_source_files): Added Polygon.java.
1761 * java/awt/Polygon.java: New file.
1763 * java/awt/geom/AffineTransform.java
1764 (setToRotation(double,double,double)): New method.
1765 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1766 (setToShear): Likewise.
1768 2001-05-10 Tom Tromey <tromey@redhat.com>
1770 * java/util/GregorianCalendar.java: Imported from Classpath.
1771 * gnu/java/locale/LocaleInformation_nl.java: New file from
1773 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1774 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1775 * gnu/java/locale/LocaleInformation.java: Likewise.
1776 * natGregorianCalendar.cc: Removed.
1777 * Makefile.in: Rebuilt.
1778 * Makefile.am (nat_source_files): Removed
1779 natGregorianCalendar.cc.
1781 2001-05-10 Tom Tromey <tromey@redhat.com>
1783 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1785 (defaultCenturyStart): Use it.
1786 (readObject): Likewise.
1787 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1789 (parse): Copy the calendar before modifying it. Correctly handle
1792 * java/util/Calendar.java (clear): Set field value(s) to 0.
1794 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1796 * Calendar.java (get): Clear areFieldsSet if requested field
1798 (set): Unset fields that depend on new value.
1800 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1802 * java/lang/Class.h (_Jv_Self): New union type.
1803 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1804 Jeff Sturm and Fergus Henderson.
1806 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1808 * java/lang/ClassLoader.java: Remove dead code fragment.
1810 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1812 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1814 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1816 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1818 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1819 * configure.host (EXCEPTIONSPEC): New.
1820 * configure.in (EXCEPTIONSPEC): New.
1821 * configure: Rebuilt.
1823 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1825 * doc/*.texi: Remove generated documentation.
1827 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1829 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1830 (performDelete): Fix #endif placement.
1832 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1834 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1835 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1836 (_Jv_ThreadDestroyData): Use _Jv_Free.
1837 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1840 2001-04-27 Tom Tromey <tromey@redhat.com>
1842 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1844 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1846 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1848 * include/jni.h (struct JNINativeInterface): Fixed types in
1849 Get/Set*ArrayRegion declarations.
1850 (class _Jv_JNIEnv): Likewise.
1852 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1854 * configure.in: Obtain THREADS with `gcc -v'.
1855 * configure: Rebuilt.
1857 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1860 * java/io/ObjectStreamClass.java (setClass): Calculate
1861 serialVersionUID for local class and compare it against the UID
1862 from the Object Stream. Throw InvalidClassException upon mismatch.
1863 (setUID): Renamed to...
1864 (getClassUID): this. Return the calculated class UID rather than
1865 setting uid field directly.
1866 (getDefinedSUID): Removed.
1867 * java/io/ObjectInputStream.java (resolveClass): Use the
1868 three-argument Class.forName().
1869 * java/io/InvalidClassException (toString): Don't include classname in
1870 result if it is null.
1872 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1874 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1875 Wrap use of inet_pton in HAVE_INET6.
1877 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1879 java.security merge and ClassLoader compliance fixes.
1881 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1882 New protectionDomain field.
1883 (forName): Add initialize parameter. Fixes declaration to comply with
1885 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1886 variant. Honour "initialize" flag.
1887 (getProtectionDomain0): New method.
1888 * java/lang/Class.java: Fix forName() declaration.
1889 (getPackage): New method based on Classpath implementation.
1890 (getProtectionDomain0): New native method decl.
1891 (getProtectionDomain): New method.
1892 * java/lang/ClassLoader.java (getParent): Now final.
1893 (definedPackages): New field.
1895 (defineClass): New variant with protectionDomain argument.
1896 (definePackage): New.
1898 (findSystemClass): Now final.
1899 (getSystemResourceAsStream): Remove redundant "final" modifier.
1900 (getSystemResource): Remove redundant "final" modifier.
1901 (getResources): Now final.
1902 (protectionDomainPermission): New static field.
1903 (unknownProtectionDomain): Ditto.
1904 (defaultProtectionDomain): Ditto.
1905 (getSystemClassLoader): Now non-native.
1906 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1907 arguments for Class.forName().
1908 * java/lang/Package.java: New file.
1909 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1910 (instance): Static initialize singleton.
1911 (findClass): Override this, not findSystemClass.
1912 * java/lang/natClassLoader.cc (defineClass0): Set class's
1913 protectionDomain field as specified.
1914 (getSystemClassLoader): Removed.
1915 (findClass): Renamed from findSystemClass. Call the interpreter via
1916 URLClassLoader.findClass if loading class via dlopen fails.
1918 * java/security/*.java: java.security import/merge with Classpath.
1919 * java/security/acl/*.java: Likewise.
1920 * java/security/interfaces/*.java: Likewise.
1921 * java/security/spec/*.java: Likewise.
1922 * java/net/NetPermission.java: Likewise.
1923 * java/net/SocketPermission.java: Likewise.
1924 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1926 * Makefile.am: Add new classes.
1927 * Makefile.in: Rebuilt.
1928 * gcj/javaprims.h: CNI namespace rebuild.
1930 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1932 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1933 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1934 * configure: Rebuilt.
1936 2001-04-21 Tom Tromey <tromey@redhat.com>
1938 * Makefile.in: Rebuilt.
1939 * Makefile.am (awt_java_source_files): Added Line2D.java.
1940 * java/awt/geom/Line2D.java: Wrote.
1942 * java/awt/Menu.java (addNotify): Wrote.
1944 * java/awt/PopupMenu.java (addNotify): Implemented.
1947 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1948 * java/awt/List.java (addNotify): Call super.addNotify.
1949 * java/awt/Label.java (addNotify): Call super.addNotify.
1950 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1951 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1952 * java/awt/Choice.java (addNotify): Call super.addNotify.
1953 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1954 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1956 * java/awt/List.java (replaceItem): Notify peer.
1958 * java/awt/geom/Rectangle2D.java
1959 (Float.setRect(float,float,float,float)): New method.
1961 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1964 * java/awt/RenderingHints.java (Key): Class now public.
1966 * java/awt/Rectangle.java (Rectangle): Now implements
1968 (getPathIterator): Removed.
1970 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1973 * java/awt/FileDialog.java: Wrote.
1975 * java/awt/EventQueue.java (isDispatchThread): Now public.
1976 (invokeLater): Likewise.
1978 * java/awt/Component.java (setCursor): Update peer.
1979 (getFontMetrics): Use peer.
1981 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1984 2001-04-20 Tom Tromey <tromey@redhat.com>
1986 * java/awt/List.java: Wrote.
1987 * java/awt/Dialog.java: Wrote.
1989 2001-04-20 Warren Levy <warrenl@redhat.com>
1991 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1992 * java/text/SimpleDateFormat.java
1993 (indexInArray): Removed private method.
1994 (processYear): Removed private method.
1995 (parseLenient): Removed private method.
1996 (parseLeadingZeros): Removed private method.
1997 (parseStrict): Removed private method.
1998 (expect): Added new private method.
1999 (parse): Reverted to pre-Classpath merge version with minor fixes.
2000 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2003 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2005 * java/io/File.java (normalizePath): New private method.
2006 (File (String)): Use normalizePath().
2007 (File (String, String)): Likewise.
2009 * Makefile.am (libffi_files): Removed.
2010 (libgcj.la): Link libffi as a convenience library instead of
2011 refering to its object files directly.
2012 * Makefile.in: Rebuilt.
2014 2001-04-08 Per Bothner <per@bothner.com>
2016 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2017 Recalculate hash, since Utf8Const's hash is only 16 bits.
2019 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2020 bits of hash to calculate step for chaining.
2022 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2023 when 2/3 full, rather than 3/4 full.
2025 2001-04-06 Tom Tromey <tromey@redhat.com>
2027 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2028 (wrap_value<T*>): New specialization.
2029 (_Jv_JNI_PopLocalFrame): Update env->locals.
2031 2001-04-05 Tom Tromey <tromey@redhat.com>
2033 * libtool-version: Updated current.
2035 2001-04-04 Andreas Jaeger <aj@suse.de>
2037 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2038 * gcj/Makefile.in: Rebuilt.
2039 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2040 * Makefile.in: Rebuilt.
2041 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2042 * testsuite/Makefile.in: Rebuild.
2043 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2044 * include/Makefile.in: Rebuild.
2046 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2048 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2049 compiled test', not 'execution from source compiled test'.
2050 Use UNTESTED, not XFAIL, for tests which are not run because
2051 they depend on a previous test which failed.
2053 2001-04-02 Richard Henderson <rth@redhat.com>
2055 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2056 the same tree as gcc.
2057 * configure: Rebuilt.
2059 * exception.cc (_Jv_Throw): Clarify commentary.
2061 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2063 * jni.cc (wrap_value<jclass>): New specialization.
2065 2001-04-02 Tom Tromey <tromey@redhat.com>
2067 * java/io/PrintStream.java (out): Removed field. Fixes PR
2069 (write): Call flush, not out.flush, per spec.
2070 (close): Flush output stream, per spec. Handle
2071 InterruptedIOException.
2072 (checkError): Likewise.
2073 (flush, print, write): Handle InterruptedIOException per spec.
2074 (PrintStream): Don't create BufferedOutputStream.
2075 (work_bytes): New field.
2076 (writeChars): Use work_bytes. Don't assume `out' is a
2077 BufferedOutputStream.
2079 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2081 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2084 2001-03-30 Tom Tromey <tromey@redhat.com>
2086 * jni.cc (add_char): Correctly encode non-ascii characters.
2087 (add_char): Define even when INTERPRETER not defined.
2088 (mangled_name): Likewise.
2089 (_Jv_GetJNIEnvNewFrame): Likewise.
2090 (_Jv_LookupJNIMethod): Likewise.
2092 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2094 * configure.host: Enable interpreter for PPC.
2096 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2098 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2099 to "file.separator", "path.separator", and "java.io.tmpdir" property
2101 * java/io/File.java: Likewise.
2102 * java/io/natFile.cc (init_native): Likewise.
2103 * java/io/natFileWin32.cc (init_native): Likewise.
2105 2001-04-01 Per Bothner <per@bothner.com>
2107 * java/lang/natString.cc (intern): If string's data does not point to
2108 this String, make a fresh String that does.
2110 * java/lang/natString.cc (unintern): Replace by static function.
2111 * java/lang/String.java (unintern): Remove method.
2113 2001-04-01 Per Bothner <per@bothner.com>
2115 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2116 (finish): def.deflate needs to be called in a loop.
2117 (inbuf, inbufLength): New private fields.
2118 (write(int)): Use inbuf.
2119 (write(byte[],int,int): Check if pending output in inbuf.
2120 * ZipOutputStream.java: Don't use Deflater if stored.
2121 Use a Checksum object directly, not via a CheckedOutputStream.
2122 (uncompressed_size): New field,
2123 (closeEntry): Only write data_directory if needed.
2124 (write): If STORED, write directly.
2125 Always update crc, and uncompressed_size.
2126 (write_entry): Fix lots of protocol erors.
2128 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2130 1.3-Compliant Implementation of java.io.File.
2131 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2132 "path.separator", and "java.io.tmpdir" from the File class, instead
2133 of setting them explicitly.
2134 * java/io/File.java: Do not canonicalize paths for security manager
2135 checks. Call init_native() from static initializer. Do not pass path
2136 argument to native methods. New native method declarations. Some
2137 security manager checks moved to checkWrite().
2138 (equals): Check file system case sensitivity and act appropriatly.
2139 (hashCode): Likewise.
2140 (isHidden): New method implemented.
2141 (performList): Changed prototype. Now takes a class argument specifying
2142 the class of the returned array: Strings or File objects. Also added
2143 FileFilter argument.
2144 (listFiles): New variants with "File" return type implemented.
2145 (createTempFile): Use createNewFile(). Use maxPathLen.
2146 (setReadOnly): New method implemented.
2147 (listRoots): Likewise.
2148 (compareTo): Likewise.
2149 (setLastModified): Likewise.
2150 (checkWrite): New method.
2152 * java/io/natFile.cc: Various functions no longer take canonical path
2154 (stat): Handle ISHIDDEN query.
2155 (isAbsolute): Remove WIN32 cruft.
2156 (performList): New arguments. Handle returning either File[] or String[]
2157 arrays. Check with FileFilter or FilenameFilter arguments as
2158 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2159 (performSetReadOnly): New method implemented.
2160 (performListRoots): Likewise.
2161 (performSetLastModified): Likewise.
2162 (performCreate): Likewise.
2163 (init_native): New initialization function.
2164 * java/io/natFileWin32.cc: Various functions no longer take canonical
2166 (stat): Add FIXME about ISHIDDEN query.
2167 (performList): New arguments. Handle returning either File[] or String[]
2168 arrays. Check with FileFilter or FilenameFilter arguments as
2169 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2170 (performSetReadOnly): New. Stubbed.
2171 (performListRoots): Likewise.
2172 (performSetLastModified): Likewise.
2173 (performCreate): Likewise.
2174 (init_native) New initialization function.
2175 * configure.in: Check for utime() and chmod().
2176 * configure: Rebuilt.
2177 * include/config.h.in: Rebuilt.
2179 Resolves PR libgcj/1759.
2181 2001-03-28 Richard Henderson <rth@redhat.com>
2183 IA-64 ABI Exception Handling:
2184 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2185 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2186 Remove EXCEPTIONSPEC.
2187 * configure.host (libgcj_sjlj): Remove.
2188 * configure.in (EXCEPTIONSPEC): Remove.
2189 (enable-sjlj-exceptions): Detect if not specified.
2190 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2191 what header we're looking for.
2192 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2193 * Makefile.in, configure: Regenerate.
2194 * exception.cc: Don't declare libgcc2 stuff.
2195 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2196 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2197 (win32_get_restart_frame): Remove.
2198 (struct java_exception_header): New.
2199 (__gcj_exception_class): New.
2200 (get_exception_header_from_ue): New.
2201 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2202 (size_of_encoded_value, read_encoded_value): New.
2203 (read_uleb128, read_sleb128, parse_lsda_header): New.
2204 (get_ttype_entry, __gcj_personality_sj0): New.
2205 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2207 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2209 * javax/naming/InitialContext.java (init): Fix typo.
2210 (composeName): Remove unnecessary semicolon.
2211 (addToEnvironment): Remove unnecessary semicolon.
2212 (addToEnvironment): Use put() instead of add().
2214 * javax/naming/InitialContext.java (InitialContext):
2216 (destroySubcontext): Method doesn't return a result.
2217 * javax/naming/Context.java: Import java.util.Hashtable.
2218 * javax/naming/Name.java: Import java.util.Enumeration.
2220 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2222 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2223 objects in subdirectories.
2224 * Makefile.in: Rebuilt.
2226 2001-03-25 Richard Henderson <rth@redhat.com>
2228 * exception.cc (java_eh_info): Make value type jthrowable.
2229 (_Jv_type_matcher): Remove now unneeded cast.
2230 (_Jv_Throw): Make argument type jthrowable. Munge name
2231 for SJLJ_EXCEPTIONS here ...
2232 * gcj/cni.h: ... not here.
2234 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2236 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2237 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2238 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2239 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2240 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2241 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2242 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2243 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2244 java/lang/natDouble.cc, java/lang/natObject.cc,
2245 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2246 java/lang/natString.cc, java/lang/natSystem.cc,
2247 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2248 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2249 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2250 java/util/zip/natInflater.cc:
2251 Use throw, not JvThrow or _Jv_Throw.
2253 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2255 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2256 paramater, bump it to 1.
2257 * java/util/Hashtable.java (Hashtable): Likewise.
2259 2001-03-23 Per Bothner <per@bothner.com>
2261 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2262 check for errors, since we don't want to throw exception on
2263 overflow/underflow. Instead, trim whitespace, and then check that
2264 _strtod_r uses up all the rest of the string.
2266 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2267 ancestors array is invalid for interfaces, so do that *after*
2268 check that the target type is not an interface.
2270 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2272 * prims.cc (_Jv_FindClassFromSignature): Check return of
2273 recursive call. Do not abort on invalid signature; return NULL
2276 2001-03-22 Tom Tromey <tromey@redhat.com>
2278 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2279 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2281 * include/jvm.h (_Jv_ResolveField): Declare.
2282 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2283 * resolve.cc (_Jv_ResolveField): No longer conditional on
2286 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2288 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2289 for libtool hacking.
2290 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2291 to a temporary file, then invoke libtool with the -objectlist
2293 (libgcjx.la): Likewise.
2294 * Makefile.in: Rebuilt.
2296 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2298 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2300 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2302 * jni.cc (add_char): Handle `.' like `/'.
2304 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2306 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2307 initialize if exception_types is null.
2308 * java/lang/reflect/Constructor.java: Likewise.
2309 * java/lang/reflect/natConstructor.cc (getType): Initialize
2310 exception_types to an empty Object array.
2312 2001-03-21 Tom Tromey <tromey@redhat.com>
2314 * configure: Rebuilt.
2315 * configure.in (GCJFLAGS): Subst.
2316 * Makefile.in: Rebuilt.
2317 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2318 (gij_LDFLAGS): Likewise.
2319 (JC1FLAGS): Added GCJFLAGS and removed -g.
2321 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2322 read/write case. Fixes PR libgcj/2338.
2324 2001-03-20 Warren Levy <warrenl@redhat.com>
2326 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2327 and corrected SimpleTimeZone's for the timezones hash table.
2329 2001-03-19 Per Bothner <per@bothner.com>
2331 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2332 "canonicalize" "../../xxx" to "/xxx".
2334 2001-03-19 Mark Wielaard <mark@klomp.org>
2336 * java/util/ArrayList.java: Remove RCS keywords from comments
2337 * java/util/BasicMapEntry.java: idem
2338 * java/util/Dictionary.java: idem
2339 * java/util/HashSet.java: idem
2341 * java/util/EventObject.java: reindent
2342 * java/util/Properties.java: idem
2343 * java/util/SortedMap.java: idem
2345 * java/util/Enumeration.java: Merge with Classpath
2346 * java/util/EventListener.java: idem
2347 * java/util/Observable.java: idem
2348 * java/util/Observer.java: idem
2349 * java/util/Stack.java: idem
2351 2001-03-17 Tom Tromey <tromey@redhat.com>
2353 * java/lang/natString.cc (rehash): Don't bother with memset;
2354 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2356 (UNMASK_PTR): New macro.
2357 (intern): Unmask pointer before returning it. Register finalizer
2359 (unintern): Handle case where
2360 (MASK_PTR): New macro.
2361 (PTR_MAKSED): Likewise.
2362 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2364 2001-03-01 Andrew Haley <aph@redhat.com>
2366 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2367 stackTrace buffer to a correctly aligned pointer array.
2369 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2371 * java/lang/Runtime.java (_exit): Declare new package-private native.
2372 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2373 without a security manager check.
2374 (exit): Call _exit after security check.
2375 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2377 * java/lang/System.java (setSecurityManager): If a security manager
2378 is already in place, call checkPermission.
2379 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2380 throws an exception, try to deal with it gracefully.
2381 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2382 Only try to print the subordinate stack trace if "exception" is set.
2383 Print our class name first.
2385 2001-03-08 Tom Tromey <tromey@redhat.com>
2387 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2388 info for array classes.
2389 Fixes PR libgcj/1971.
2391 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2393 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2396 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2398 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2399 instead of the new JDK1.2 API. This is simpler and makes
2400 back-porting the classes to JDK1.1 trivial.
2401 (readObject): likewise.
2403 2001-03-01 Per Bothner <per@bothner.com>
2405 Changes merged from Kawa's gnu.math.
2406 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2407 (rshift(int[],int[],int,int): Removed - not needed.
2408 (gcd): Use rshift0 rather than rshift.
2409 * java/math/BigInteger.java (setShiftRight): Likewise.
2410 (divide): Simplify by using rshift0.
2411 (divide): Zero-extend results if high-order bit set.
2413 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2415 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2418 2001-02-23 Per Bothner <per@bothner.com>
2420 Change to sometimes include class name in ClassFormatError message.
2421 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2422 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2423 boolean instead of throwing ClassFormatError on failure.
2424 (throw_class_format_error): Change static function to method.
2425 (_Jv_ClassReader): New inline methods verify_identifier,
2426 two overloads of verify_classname, verify_field_signature, and
2427 verify_method_signature
2428 * include/java-interp.h: Update declarations to return bool.
2429 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2430 ClassFormatError since _Jv_VerifyClassName now returns bool.
2432 2001-02-23 Per Bothner <per@bothner.com>
2434 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2435 c++filt to select java-style output.
2437 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2439 Fix for PR java/2040:
2440 * java/util/HashMap.java (HashMap): Don't throw exception for
2441 loadFactor > 1. Add exception messages.
2442 * java/util/Hashtable.java (Hashtable): Likewise.
2444 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2446 Disable libgcjx by default.
2447 * configure.in: Add support for --enable-java-awt configure option.
2448 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2449 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2450 * Makefile.in: Rebuilt.
2451 * configure: Rebuilt.
2453 2001-02-20 Tom Tromey <tromey@redhat.com>
2455 * java/io/PipedWriter.java (flush): Throw exception if stream
2457 * java/io/OutputStreamWriter.java (write): Throw exception if
2459 (writeChars): Don't throw exception if stream closed.
2460 * java/io/CharArrayWriter.java (closed): New field.
2462 (flush): Throw exception if stream closed.
2463 (reset): Synchronize on correct lock. Allow stream to be
2465 (toCharArray, toString, writeTo): Synchronize.
2466 (write): Throwe exception if stream closed.
2467 * java/io/BufferedWriter.java (close): Clear `buffer'.
2468 (flush): Throw IOException if stream is closed.
2471 2001-02-16 Tom Tromey <tromey@cygnus.com>
2473 * java/lang/ThreadGroup.java (activeCount): Only include threads
2475 (enumerate): Likewise.
2477 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2479 * java/lang/Integer.java (getInteger): Return default argument if
2480 property is not set. Don't call decode with null argument.
2481 * java/lang/Long.java (getLong): Likewise.
2483 * java/io/CharArrayReader.java (CharArrayReader): Throw
2484 IllegalArgumentException if constructor arguments are illegal.
2485 (ready): Return false if no more characters can be read.
2486 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2488 2001-02-17 Mark Wielaard <mark@klomp.org>
2490 * java/util/TimerTask.java: New version from Classpath.
2492 2001-02-17 Mark Wielaard <mark@klomp.org>
2494 Remerge with Classpath
2495 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2496 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2497 (readByte): Use convertToByte().
2498 (readChar): Use convertToChar().
2499 (readInt): Use convertToInt().
2500 (readLong): Use convertToLong().
2501 (readShort): Use convertToShort().
2502 (readUnsignedByte): Use convertToUnsignedByte().
2503 (readUnsignedShort): Use convertToUnsignedShort().
2504 (readUTF): Use convertToUTF().
2506 (convertToBoolean): Resurrected.
2507 (convertToByte): Ditto.
2508 (convertToChar): Ditto.
2509 (convertToInt): Ditto.
2510 (convertToLong): Ditto.
2511 (convertToShort): Ditto.
2512 (convertToUnsignedByte): Ditto.
2513 (convertToUnsignedShort): Ditto.
2514 (convertToUTF): Ditto.
2516 2001-02-17 Mark Wielaard <mark@klomp.org>
2520 2001-02-17 Mark Wielaard <mark@klomp.org>
2522 * java/io/DataInputStream.java: update copyright notice
2523 * java/io/PrintWriter.java: idem
2524 * java/io/Reader.java: idem
2525 * java/io/StreamTokenizer.java: idem
2526 * java/io/StringReader.java: idem
2527 * java/lang/reflect/ReflectPermission.java: idem
2529 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2531 * java/util/TreeSet.java (clone): Made subclass safe, use
2532 super.clone(), not new.
2533 * java/util/TreeMap.java (clone): Likewise.
2535 * java/util/TreeMap.java (nil): Made non-final.
2536 (clone): Create new nil node for copy.
2538 * java/util/HashSet.java (clone): Made subclass safe, use
2539 super.clone(), not new.
2541 2001-02-14 Andrew Haley <aph@redhat.com>
2543 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2546 2001-02-15 Anthony Green <green@redhat.com>
2548 * defineclass.cc: Don't include alloca.h.
2549 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2550 * interpret.cc (run_normal): Ditto.
2552 * java/lang/natDouble.cc (parseDouble): Ditto.
2554 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2556 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2558 * java/util/Collections.java (ReverseComparator): New static class.
2559 (reverseOrder): Return static instance of ReverseComparator.
2561 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2562 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2563 Rectangle.clone(), not Object.clone().
2565 * java/util/HashSet.java (clone): Remove try/catch.
2567 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2568 * java/util/Collection.java: Likewise.
2569 * java/util/Comparator.java: Likewise.
2570 * java/util/Dictionary.java: Likewise.
2571 * java/util/Iterator.java: Likewise.
2572 * java/util/ListIterator.java: Likewise.
2573 * java/util/Map.java: Likewise.
2574 * java/util/Set.java: Likewise.
2576 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2578 * java/util/TreeMap.java: New file.
2579 * java/util/TreeSet.java: New file.
2580 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2581 * Makefile.in: Rebuilt.
2582 * java/util/HashSet.java (clone): Use constructor instead of calling
2584 * java/util/SortedSet.java: Sync with classpath.
2585 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2588 * java/lang/natClass.cc (getSignature): Don't try to dereference
2589 param_types if it is null. Instead, take this to mean "no parameters".
2590 * java/lang/TreeMap.java (TreeIterator.next): Throw
2591 NoSuchElementException in preference to ConcurrentModificationException.
2592 (TreeIterator.remove): Throw IllegalStateException in preference to
2593 ConcurrentModificationException.
2594 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2595 throw a NoSuchElementException.
2596 (SubMap.lastKey): Likewise.
2598 2001-02-13 Tom Tromey <tromey@redhat.com>
2600 * java/io/PipedReader.java (ready): Throw IOException if pipe
2602 * java/io/FilterReader.java (close): Don't clear `in'.
2603 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2605 (read, ready, reset, skip): Added exception message.
2606 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2607 Perform checkStatus check inside synchronized block.
2609 2001-02-13 Tom Tromey <tromey@redhat.com>
2611 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2613 2001-02-13 Tom Tromey <tromey@redhat.com>
2615 Fix for PR libgcj/1351:
2616 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2618 Include Thread.h and InterruptedIOException.h.
2620 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2622 * java/io/BlockDataException.java: Removed.
2623 * java/io/ObjectInputStream.java (readObject): Throw
2624 StreamCorruptedException, not BlockDataException.
2625 * Makefile.am: Remove BlockDataException.
2626 * Makefile.in: Rebuild.
2628 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2629 Tom Tromey <tromey@redhat.com>
2631 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2634 2001-02-09 Tom Tromey <tromey@redhat.com>
2636 * java/util/Timer.java: New version from Classpath.
2638 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2640 * java/lang/Double.java (doubleToRawLongBits): Now native.
2641 * java/lang/Float.java (floatToRawIntBits): Likewise.
2642 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2643 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2645 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2647 * java/io/File.java (java.net): Imported.
2648 (getAbsoluteFile): Added.
2649 (getCanonicalPath): Likewise.
2652 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2654 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2655 * java/lang/Integer.java: Likewise.
2656 * java/lang/Long.java: Likewise.
2657 * java/lang/Short.java: Likewise.
2658 * java/lang/Double.java: Likewise.
2659 (doubleToRawLongBits): New method.
2660 * java/lang/Float.java: As above.
2661 (floatToRawIntBits): New method.
2663 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2664 IOException if stream closed.
2666 2001-02-08 Tom Tromey <tromey@redhat.com>
2668 * java/lang/Float.java (parseFloat): New method.
2670 2001-02-08 Tom Tromey <tromey@redhat.com>
2672 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2673 * java/io/InputStreamReader.java (ready, read): Throw IOException
2674 if stream has been closed.
2676 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2678 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2679 Change sources.redhat.com and sourceware.cygnus.com references to
2682 2001-02-07 Tom Tromey <tromey@redhat.com>
2684 Fix for PR libgcj/1906:
2685 * java/text/MessageFormat.java (setLocale): Use named class
2688 (format(Object,StringBuffer,FieldPosition)): Special case if
2689 argument is an Object[].
2691 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2693 * java/util/Arrays.java: Removed "cmp" methods.
2694 (qsort): Don't use "cmp".
2697 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2699 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2700 sort. Fix for PR java/1895.
2702 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2704 * configure.host: Use sjlj-exceptions for Alpha.
2706 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2708 * libgcj.spec.in: Don't force static libgcc into the executable.
2709 * configure.in (FORCELIBGCCSPEC): Removed.
2710 * configure: Rebuilt.
2712 2001-01-31 Tom Tromey <tromey@redhat.com>
2714 * Makefile.in: Rebuilt.
2715 * Makefile.am (LTCXXCOMPILE): New macro.
2717 2001-01-26 Andrew Haley <aph@redhat.com>
2719 (INIT_FPE): Use a direct system call to set the handler.
2721 2001-01-27 Richard Henderson <rth@redhat.com>
2723 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2725 2001-01-27 Tom Tromey <tromey@redhat.com>
2727 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2728 native interface structure.
2730 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2732 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2734 (read (byte[], int, int)): Only call readNextBlock() if the block
2735 buffer would actually be overrun. Increment blockDataPosition.
2736 (callReadMethod): Propagate exceptions from invocation target.
2737 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2738 exceptions from invocation target.
2740 2001-01-26 Tom Tromey <tromey@redhat.com>
2742 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2743 to internal representation.
2744 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2745 _Jv_FindClassFromSignature.
2747 2001-01-26 Warren Levy <warrenl@redhat.com>
2749 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2750 and timezone if they are available on the system.
2752 2001-01-24 Tom Tromey <tromey@redhat.com>
2754 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2756 2001-01-24 Tom Tromey <tromey@redhat.com>
2758 * Makefile.in: Rebuilt.
2759 * Makefile.am (c_source_files): Added sf_fabs.c.
2760 * java/lang/sf_fabs.c: New file.
2762 2001-01-19 Warren Levy <warrenl@redhat.com>
2764 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2765 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2766 correctly. Adjust properly from 0-23 clock hour.
2768 2001-01-17 Mark Wielaard <mark@klomp.org>
2770 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2772 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2774 * java/lang/Class.h (isInterface): Move implementation from
2775 natClass.cc. Declare inline.
2776 (Class): Add default constructor.
2777 * java/lang/Object.h: Update comments.
2778 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2779 initialize superclass, saving a call if super is already initialized.
2781 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2783 * prims.cc (init_prim_class): Deleted.
2784 (DECLARE_PRIM_TYPE): Rewritten.
2785 * java/lang/Class.h (stdio.h): Include removed.
2786 (stddef.h): Included.
2787 (java/lang/reflect/Modifier.h): Likewise.
2788 (Class): Contructor now takes arguments, initializes fields.
2789 (initializePrim): Prototype deleted.
2790 * java/lang/natClass.cc (initializePrim): Deleted.
2792 2001-01-16 Warren Levy <warrenl@redhat.com>
2794 * java/math/BigInteger.java: Update Copyright year.
2796 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2798 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2801 2001-01-14 Mark Wielaard <mark@klomp.org>
2802 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2803 (decode): Merge comments with Classpath, don't throw Exception
2805 2001-01-12 Tom Tromey <tromey@redhat.com>
2807 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2811 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2812 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2813 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2814 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2815 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2817 * java/lang/natSystem.cc: Include locale.h if it exists.
2818 * configure: Rebuilt.
2819 * configure.in: Check for locale.h.
2821 2001-01-11 Tom Tromey <tromey@redhat.com>
2823 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2824 (Cursor(int), getPredefinedCursor): Throw exception if argument
2827 2001-01-03 Tom Tromey <tromey@redhat.com>
2829 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2830 (getLocationOnScreen): Wrote.
2832 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2834 * Makefile.am: Re-enable dependencies.
2835 * Makefile.in: Rebuilt.
2837 2001-01-10 Warren Levy <warrenl@redhat.com>
2839 * java/math/BigDecimal.java (divide): Fixed comment.
2841 2001-01-10 Warren Levy <warrenl@redhat.com>
2843 Fix for PR libgcj/1596:
2844 * java/math/BigDecimal.java (divide): Check newScale for validity.
2845 Ensure that BigInteger.pow() is called with a non-negative value.
2846 (setScale (int)): New public method.
2847 (setScale (int,int)): New public method.
2849 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2851 Fix for PR libgcj/1338:
2852 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2853 commentChar. Fixed typos in comments.
2855 2001-01-08 Warren Levy <warrenl@redhat.com>
2857 Fix for PR libgcj/1411:
2858 * Makefile.am: Removed java/util/natTimeZone.cc.
2859 * Makefile.in: Rebuilt.
2860 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2861 missing localized timezone names.
2862 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2863 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2864 (init_properties): Set user.timezone property.
2865 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2866 default timezone names; removed non-standard ones. Use standard
2868 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2870 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2872 (getDefaultTimeZoneId): Removed.
2874 * java/util/natTimeZone.cc: Removed.
2876 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2878 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2879 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2880 (_Jv_GetArrayClass): New inline function.
2881 (arrayclass): New field.
2882 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2883 _Jv_GetArrayElementFromElementType.
2884 (_Jv_NewPrimArray): Ditto.
2885 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2886 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2887 Set Modifier::ABSTRACT.
2888 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2889 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2890 Now synchronized. Array classes are now referenced from
2891 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2892 Set array classes' accessibility flags correctly. Optimize so that
2893 all array classes share the same IDT.
2894 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2895 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2896 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2897 in superclasses from overwriting classes own fields.
2898 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2899 Modifier::isAbstract().
2900 (null_idt): New static field.
2901 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2903 (_Jv_IndexOf): Made inline.
2904 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2906 2001-01-08 Tom Tromey <tromey@redhat.com>
2908 Fix for PR java/1586:
2909 * Makefile.in: Rebuilt.
2910 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2912 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2914 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2915 from the c++ compiler.
2916 * Makefile.in: Rebuilt.
2918 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2920 All files with updated copyright.
2921 * prims.cc (class _Jv_PrimClass): Removed.
2922 (init_prim_class): New function.
2923 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2924 `_Jv_PrimClass' in primitive type declarations. Assign to the
2925 value returned by `init_prim_class.'
2926 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2927 primitive type declarations.
2928 (JvPrimClass): Cast to `jclass' removed.
2929 * java/lang/Class.h (Class): New constructor.
2930 (Class): New copy constructor.
2931 (initializePrim): New prototype.
2932 (_Jv_PrimClass): Field removed.
2933 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2934 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2935 (class java::lang::Object): `finalize' moved up front.
2936 * java/lang/natClass.cc
2937 (isAssignableFrom): Turned outline.
2938 (isInstance): Likewise.
2939 (isInterface): Likewise, fixed indentation.
2940 (initializePrim): New function.
2942 2001-01-07 Anthony Green <green@redhat.com>
2944 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2946 * Makefile.in: Rebuilt.
2948 * scripts/TexinfoDoclet.java: New file.
2950 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2951 doc/java-awt-color.texi, doc/java-lang.texi,
2952 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2953 doc/java-awt-event.texi, doc/java-net.texi,
2954 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2955 doc/java-awt-image.texi, doc/java-security.texi,
2956 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2957 doc/java-text.texi, doc/java-beans-beancontext.texi,
2958 doc/java-util-jar.texi, doc/java-beans.texi,
2959 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2960 doc/java-lang-ref.texi: New files.
2962 2001-01-07 Anthony Green <green@redhat.com>
2964 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2965 be used for both input and output, so don't clear doInput.
2967 * java/lang/StringBuffer.java: Fix comments.
2969 2001-01-06 Anthony Green <green@redhat.com>
2971 * java/beans/PropertyDescriptor.java: Fix comment.
2972 * java/io/PushbackReader.java: Fix comment.
2973 * java/io/ObjectStreamClass.java: Fix comment.
2974 * java/io/DataInputStream.java: Fix comment.
2975 * java/io/PipedInputStream.java: Fix comments.
2976 * java/io/PipedReader.java: Fix comments.
2977 * java/sql/DatabaseMetaData.java: Fix comments.
2979 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2981 * java/io/PipedReader: Synchronize on "lock" instead of this.
2983 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2985 * java/lang/Thread.java: Update comment.
2987 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2988 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2989 * java/io/PipedReader: New implementation based on new
2991 * java/io/PipedWriter: Updated to match new PipedReader.
2993 2001-01-03 Tom Tromey <tromey@redhat.com>
2995 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2996 (getViewportSize): Insets include scrollbar size.
2997 (doLayout): Finished.
2998 (getScrollPosition): Wrote.
2999 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3001 2001-01-02 Tom Tromey <tromey@redhat.com>
3003 * java/awt/ScrollPane.java: Wrote.
3004 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3007 * java/awt/Panel.java (Panel()): Fixed.
3009 * java/awt/Component.java (isShowing): Return false if no peer
3010 exists, and true if component is visible and no parent exists.
3011 (getLocationOnScreen): Wrote.
3012 (getPreferredSize): Removed FIXME comment.
3013 (getMinimumSize): Likewise.
3014 (getAlignmentX, getAlignmentY): Wrote.
3016 (requestFocus): Wrote.
3017 (transferFocus): Wrote.
3018 (findNextFocusComponent): New method.
3019 (hasFocus()): Wrote.
3020 (checkImage): Wrote.
3021 (enableEvents): Call setEventMask on the peer.
3023 * java/awt/Container.java (list): Use super.list() to print self.
3024 (findNextFocusComponent): New method.
3025 (setLayout): Call invalidate.
3026 (findComponentAt): Wrote.
3028 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3030 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3031 the correct versions of various linuxthreads functions get linked.
3032 * Makefile.in: Rebuilt.
3033 * java/lang/natThread.cc (finalize_native): New static function. Call
3034 _Jv_ThreadDestroyData.
3035 (initialize_native): Register finalizer for "data".
3036 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3037 (_Jv_ThreadDestroyData): New prototype.
3038 * include/win32-threads.h: Ditto.
3039 * include/no-threads.h: Ditto.
3040 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3041 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3042 move mutex and condition variable destroy code from:
3043 (really_start): ...here.
3044 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3045 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3046 (_Jv_ThreadDestroyData): Implemented.
3047 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3048 (_Jv_AllocArray): Ditto.
3050 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3052 * java/sql/DriverManager.java (getConnection): Don't set user/password
3055 2000-12-27 Warren Levy <warrenl@redhat.com>
3057 Fix for PR libgcj/1358:
3058 * java/lang/System.java: Update Copyright date properly.
3059 * java/util/Calendar.java: Fix typo in comment.
3060 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3061 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3062 initialize times. Spec says to set H:M:S values to zero only if
3064 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3065 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3066 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3067 timezones and GMT offsets, being careful to account for units of
3068 milliseconds vs. seconds.
3070 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3072 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3073 not be assigned to Object.
3075 Fix for PR libgcj/1516:
3076 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3078 (can_widen): Declared inline. Remove redundant checks for void
3079 arguments and char->short conversion. Add special case for boolean
3081 (ffi_type): Declared inline.
3082 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3084 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3086 * java/sql/SQLWarning.java: Fixed typo in comment.
3088 2000-12-26 Tom Tromey <tromey@redhat.com>
3090 * java/awt/MenuItem.java (paramString): Now protected.
3092 * java/awt/MenuShortcut.java: Implements Serializable.
3094 * java/awt/MenuBar.java: Rewrote from scratch.
3096 * java/awt/MenuComponent.java (removeNotify): Wrote.
3097 Implements Serializable.
3099 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3102 * java/awt/CheckboxMenuItem.java: Wrote.
3104 2000-12-25 Tom Tromey <tromey@redhat.com>
3106 * java/awt/MenuContainer.java: Fixed typo.
3108 * Makefile.in: Rebuilt.
3109 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3110 * java/awt/SystemColor.java: New file.
3112 * java/awt/Color.java (rgba): Now package-private.
3114 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3116 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3119 * java/awt/MenuItem.java (addNotify): New method.
3120 (MenuItem(String,MenuShortcut)): New constructor.
3121 (setLabel): Notify peer of change.
3122 (setEnabled): Likewise.
3124 * java/awt/GridLayout.java (toString): New method.
3126 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3127 (FlowLayout): Check for LEADING and TRAILING.
3128 (setAlignment): Likewise.
3129 (layoutContainer): Handle component orientation.
3131 * java/awt/Component.java (orientatin): New field.
3132 (setComponentOrientation): Wrote.
3133 (getComponentOrientation): Wrote.
3135 * java/awt/Event.java (Event): Implements Serializable.
3136 (consumed): New field for serialization.
3137 * java/awt/Dimension.java (Dimension): Implements Serializable.
3138 * java/awt/Cursor.java (Cursor): Implements Serializable.
3139 * java/awt/Container.java (Container): No longer abstract.
3141 * java/awt/Choice.java: Wrote.
3142 * java/awt/Checkbox.java: Wrote.
3143 * java/awt/ItemSelectable.java: Documented.
3144 * java/awt/CheckboxGroup.java: Wrote.
3146 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3148 (getSize): Likewise.
3150 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3152 * java/io/FileDescriptor.java: Initialize fd to -1.
3153 Remove default constructor.
3155 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3157 * java/lang/mprec.h: Change C9X reference to refer to C99.
3159 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3161 * java/lang/Throwable.java (trace_enabled): New static field.
3162 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3163 trace_enabled not set.
3164 * prims.cc (main_init): Turn off trace_enabled while creating
3165 default exception objects.
3167 2000-12-21 Tom Tromey <tromey@redhat.com>
3169 * java/beans/PropertyChangeListener.java: Extends EventListener.
3170 * java/beans/VetoableChangeListener.java: Extends EventListener.
3172 * java/util/zip/Deflater.java (update, init): Now private.
3174 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3176 * java/util/BasicMapEntry.java: Re-added.
3177 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3178 (putAll): Test for BasicMapEntry.
3179 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3180 (putAll): Test for BasicMapEntry.
3181 Change references from `HashMap.Entry' to `Entry' in various places.
3182 * Makefile.am: Add BasicMapEntry.java.
3183 * Makefile.in: Rebuilt.
3185 2000-12-18 Warren Levy <warrenl@redhat.com>
3187 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3188 need to set timezone to a valid non-null value. Partial fix for
3191 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3193 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3195 * java/awt/Button.java (addNotify): Likewise.
3196 * java/awt/Label.java (addNotify): Likewise.
3197 * java/awt/Panel.java (addNotify): Likewise.
3198 * java/awt/Scrollbar.java (addNotify): Likewise.
3199 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3200 Remove redundant null checks.
3202 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3204 * COPYING: Update to current
3205 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3206 to 19yy as example year in copyright notice).
3208 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3210 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3211 end-of-stream if avail_in is 0.
3213 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3215 * java/util/ArrayList.java (data): Declare transient.
3216 (serialPersistantFields): Removed.
3217 (readObject): Use defaultReadObject(), not readFields().
3218 (writeObject): Use defaultWriteObject(), not writeFields().
3220 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3222 * java/util/Hashtable.java (put): Remove `last' variable.
3223 Link new entry to head of list.
3224 * java/util/HashMap.java (put): Ditto.
3226 2000-12-15 Tom Tromey <tromey@redhat.com>
3228 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3229 loader to Class.forName.
3231 2000-12-14 Tom Tromey <tromey@redhat.com>
3233 * java/util/ResourceBundle.java
3234 (getBundle(String,Locale,ClassLoader)): New method.
3235 (trySomeGetBundle): Added `loader' argument.
3236 (partialGetBundle): Likewise.
3238 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3239 maximumFractionDigits, maximumIntegerDigits,
3240 minimumFractionDigits, minimumIntegerDigits): Now
3243 * java/lang/Thread.java (checkAccess): Now final.
3245 * java/lang/RuntimePermission.java: Class now final.
3247 * java/io/StringWriter.java (StringWriter(int)): Now public.
3249 * java/io/SerializablePermission.java (legal_names): Now private.
3251 * java/lang/Character.java: Updated UnicodeBlock constants.
3252 * scripts/blocks.pl: Special case private use and surrogate
3255 2000-12-12 Tom Tromey <tromey@redhat.com>
3257 * Makefile.in: Rebuilt.
3258 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3260 (GCJCOMPILE): Use it.
3263 2000-12-11 Tom Tromey <tromey@redhat.com>
3265 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3266 New static final fields.
3268 * scripts/classes.pl (scan): Skip lines with leading `*'.
3269 Fix for PR libgcj/378.
3271 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3273 * configure.in: Remove check for -fuse-divide-subroutine.
3274 * configure: Rebuilt.
3276 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3278 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3280 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3282 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3283 Remove BasicMapEntry.java and Bucket.java.
3284 * Makefile.in: Rebuilt.
3285 * java/util/HashMap.java: Rewritten.
3286 * java/util/HashSet.java: Imported from classpath.
3287 * java/util/WeakHashMap.java: Imported from classpath.
3288 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3289 * java/util/Bucket.java: Deleted.
3290 * java/util/BasicMapEntry.java: Deleted.
3291 * java/util/Collections.java (search): Use a for-loop, not iterator
3293 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3294 of elements in source.
3295 (max): Use a for-loop.
3297 (reverse): Keep track of positions instead of using Iterator's
3298 nextIndex() and previousIndex().
3299 (shuffle(List)): Initialize defaultRandom if required using
3300 double-check thread safety idiom. Call two-argument shuffle method
3301 using defaultRandom.
3302 (defaultRandom): New field.
3303 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3304 using previousIndex() and nextIndex().
3305 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3306 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3307 * java/util/AbstractMap.java (toString): Use StringBuffer.
3308 * java/lang/ref/PhantomReference.java: Imported from classpath.
3309 * java/lang/ref/SoftReference.java: Ditto.
3310 * java/lang/ref/Reference.java: Ditto.
3311 * java/lang/ref/WeakReference.java: Ditto.
3312 * java/lang/ref/ReferenceQueue.java: Ditto.
3314 2000-12-10 Richard Henderson <rth@redhat.com>
3316 * configure.host: Recognize alpha*-*, not alphaev6-*.
3318 2000-12-09 Anthony Green <green@redhat.com>
3320 * configure.host: Enable interpreter for Alpha.
3322 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3324 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3325 (ZIP): Points at fastjar instead of zip.
3326 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3327 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3328 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3329 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3330 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3331 ($(x_java_source_files:.java=.class):): Likewise.
3332 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3334 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3335 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3336 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3337 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3338 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3339 gnu/gcj/runtime/VMClassLoader.h:,
3340 java/io/ObjectInputStream$$GetField.h:,
3341 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3342 (Makefile.in): Rebuilt.
3344 2000-12-08 Tom Tromey <tromey@redhat.com>
3347 * configure: Rebuilt.
3348 * configure.in: Use echo, not `:', to create .d files.
3350 2000-12-08 Warren Levy <warrenl@redhat.com>
3352 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3353 NullPointerException so proper check of offset can be done.
3355 2000-12-08 Warren Levy <warrenl@redhat.com>
3357 * java/io/FileInputStream.java (close): Check if the fd is valid.
3358 * java/io/RandomAccessFile.java (close): Ditto.
3359 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3360 * java/net/PlainSocketImpl.java (close): Ditto.
3362 2000-12-06 Tom Tromey <tromey@redhat.com>
3364 * java/awt/GridBagConstraints.java: Filled in values for static
3367 * java/util/BitSet.java: Updated copyright notice.
3369 * Makefile.in: Rebuilt.
3370 * Makefile.am (awt_java_source_files): Added new file.
3371 * java/awt/GridBagConstraints.java: New file.
3373 2000-12-05 Tom Tromey <tromey@redhat.com>
3375 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3376 Now package-private, not protected.
3377 * java/text/DateFormatSymbols.java (equals): Now private.
3378 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3379 * java/util/BitSet.java: Class no longer final.
3381 2000-12-04 Warren Levy <warrenl@redhat.com>
3383 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3384 out code dependent on compiler and library changes.
3386 2000-12-04 Warren Levy <warrenl@redhat.com>
3388 * java/io/FilePermission.java: Made class final per spec.
3389 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3390 method name to match spec (fixed typo).
3391 * java/util/LinkedList.java: Implements List.
3393 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3395 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3396 Edgar Villanueva <edgarvil@home.com>.
3398 2000-12-03 Tom Tromey <tromey@redhat.com>
3400 * java/awt/geom/Point2D.java: Added protected constructor.
3401 (equals): New method.
3402 (Float.setLocation(float,float)): New method.
3403 * java/awt/geom/Dimension2D.java: Added protected constructor.
3404 * java/awt/geom/AffineTransform.java: Made all constants public.
3405 (concatenate): Fixed typo in name.
3406 * java/awt/event/WindowAdapter.java: Class now abstract.
3407 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3408 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3411 * java/awt/AWTError.java: Extend Error, not
3412 IllegalStateException.
3414 * Makefile.in: Rebuilt.
3415 * Makefile.am (awt_java_source_files): Added new file.
3416 * java/awt/geom/RoundRectangle2D.java: New file.
3418 * Makefile.in: Rebuilt.
3419 * Makefile.am (awt_java_source_files): Added new file.
3420 * java/awt/FlowLayout.java: New file.
3422 * Makefile.in: Rebuilt.
3423 * Makefile.am (awt_java_source_files): Added new file.
3424 * java/awt/GridLayout.java: New file.
3426 2000-12-02 Tom Tromey <tromey@redhat.com>
3428 * Makefile.in: Rebuilt.
3429 * Makefile.am (awt_java_source_files): Added new files.
3430 * java/awt/CardLayout.java: New file.
3431 * java/awt/AWTPermission.java: New file.
3433 2000-12-01 Tom Tromey <tromey@redhat.com>
3435 * java/util/Vector.java (insertElementAt): Unconditionally
3436 increment elementCount.
3437 (removeRange): Clear unused slots in vector.
3439 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3441 * java/lang/natMath.cc: Declare fabsf() function.
3442 * java/lang/mprec.h: Don't include math.h.
3443 * java/lang/dtoa.c: Include string.h.
3444 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3447 From Adam Welc <welc@cs.purdue.edu>:
3448 * java/util/LinkedList.java (removeFirst): Update `first' field.
3449 Handle the last == first case.
3450 (removeLast): Update `last' field. Handle the last == first case.
3452 2000-12-01 Warren Levy <warrenl@cygnus.com>
3454 * Makefile.am: Added entries for new java.sql modules.
3455 * Makefile.in: Rebuilt.
3457 2000-12-01 Warren Levy <warrenl@cygnus.com>
3459 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3460 that aren't quite 1.2 compatible yet.
3462 2000-11-30 Warren Levy <warrenl@cygnus.com>
3464 * java/sql/Array.java: New file from classpath.
3465 * java/sql/BatchUpdateException.java: Ditto.
3466 * java/sql/Blob.java: Ditto.
3467 * java/sql/Clob.java: Ditto.
3468 * java/sql/Ref.java: Ditto.
3469 * java/sql/SQLData.java: Ditto.
3470 * java/sql/SQLInput.java: Ditto.
3471 * java/sql/SQLOutput.java: Ditto.
3472 * java/sql/Struct.java: Ditto.
3473 * java/sql/CallableStatement.java: Merged file from claspath.
3474 * java/sql/Connection.java: Ditto.
3475 * java/sql/DataTruncation.java: Ditto.
3476 * java/sql/DatabaseMetaData.java: Ditto.
3477 * java/sql/DriverManager.java: Ditto.
3478 * java/sql/PreparedStatement.java: Ditto.
3479 * java/sql/ResultSet.java: Ditto.
3480 * java/sql/ResultSetMetaData.java: Ditto.
3481 * java/sql/SQLException.java: Ditto.
3482 * java/sql/SQLWarning.java: Ditto.
3483 * java/sql/Statement.java: Ditto.
3484 * java/sql/Types.java: Ditto.
3486 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3488 * java/lang/natSystem.cc (init_properties): Set user.language and
3490 * configure.in: Check for setlocale.
3491 * configure: Rebuilt.
3492 * include/config.h.in: Rebuilt.
3494 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3495 the infate() call didn't deliver any output. Throw a ZipException if
3496 the needsDictionary() call returns true.
3497 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3498 * java/io/InputStreamReader: Use the default buffer size for the
3499 contained BufferedInputStream.
3501 2000-11-28 Warren Levy <warrenl@cygnus.com>
3503 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3504 more time zone entries.
3505 * java/text/SimpleDateFormat.java (format): Added case for
3508 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3510 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3511 directly rather than read() in all cases. Make primitive read
3512 implementations more efficient, as defined in JDK online docs.
3513 (skipBytes): Behave like the JDK's implementation.
3514 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3515 closed stream with checkStatus() whenever an IOException can be
3517 (checkStatus): New private method.
3519 2000-11-27 Warren Levy <warrenl@cygnus.com>
3521 * Makefile.am: Added natTimeZone.cc.
3522 * Makefile.in: Rebuilt.
3523 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3524 * java/text/DateFormatSymbols.java (ampms): Made package private.
3525 (eras): Made package private.
3526 (months): Made package private.
3527 (shortMonths): Made package private.
3528 (shortWeekdays): Made package private.
3529 (weekdays): Made package private.
3530 (formatPrefixes): New private field.
3531 (localPatternCharsDefault): Made private.
3532 (dateFormats): New package private field.
3533 (timeFormats): New package private field.
3534 (formatsForKey): New private method.
3535 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3536 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3537 * java/text/SimpleDateFormat.java: Merged with Classpath.
3538 * java/util/TimeZone.java: Merged with Classpath.
3539 * java/util/natTimeZone.cc: New file.
3541 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3543 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3544 (addElement): Don't increment elementCount twice. Doh.
3545 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3546 array needs to be expanded.
3548 * java/util/Collections.java (UnmodifiableCollection): Implement
3550 (UnmodifiableList): Throw UnsupportedOperationException from
3551 modification methods. Set `l' from the one-parameter constructor.
3552 (UnmodifiableMap): Implement toString().
3553 (SynchronizedCollection): Ditto.
3554 (SynchronizedList): Set `l' from the one-parameter constructor.
3555 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3556 (SynchronizedMap): Implement toString().
3558 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3560 * javax/naming/NameParser.java,
3561 javax/naming/directory/AttributeInUseException.java,
3562 javax/naming/directory/AttributeModificationException.java,
3563 javax/naming/directory/InvalidAttributeIdentifierException.java,
3564 javax/naming/directory/InvalidAttributesException.java,
3565 javax/naming/directory/InvalidAttributeValueException.java,
3566 javax/naming/directory/InvalidSearchControlsException.java,
3567 javax/naming/directory/InvalidSearchFilterException.java,
3568 javax/naming/directory/NoSuchAttributeException.java,
3569 javax/naming/directory/SchemaViolationException.java: New files.
3571 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3573 * javax/naming/InitialContext.java (rebind): Implement.
3574 (unbind): Implement.
3575 (rename): Implement.
3577 (listBindings): Implement.
3578 (destroySubcontext): Implement.
3579 (createSubcontext): Implement.
3580 (lookupLink): Implement.
3581 (getNameParser): Implement.
3582 (composeName): Implement.
3583 (addToEnvironment): Implement.
3585 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3587 * javax/naming/AuthenticationException.java,
3588 javax/naming/AuthenticationNotSupportedException.java,
3589 javax/naming/CannotProceedException.java,
3590 javax/naming/CommunicationException.java,
3591 javax/naming/ConfigurationException.java,
3592 javax/naming/ContextNotEmptyException.java,
3593 javax/naming/InsufficientResourcesException.java,
3594 javax/naming/InterruptedNamingException.java,
3595 javax/naming/InvalidNameException.java,
3596 javax/naming/LimitExceededException.java,
3597 javax/naming/LinkException.java,
3598 javax/naming/LinkLoopException.java,
3599 javax/naming/MalformedLinkException.java,
3600 javax/naming/NameAlreadyBoundException.java,
3601 javax/naming/NameNotFoundException.java,
3602 javax/naming/NamingSecurityException.java,
3603 javax/naming/NoPermissionException.java,
3604 javax/naming/NotContextException.java,
3605 javax/naming/PartialResultException.java,
3606 javax/naming/ReferralException.java,
3607 javax/naming/ServiceUnavailableException.java,
3608 javax/naming/SizeLimitExceededException.java,
3609 javax/naming/TimeLimitExceededException.java: New files.
3611 * javax/naming/Name.java (clone): New method.
3612 (compareTo): New method.
3613 (isEmpty): New method.
3614 (getAll): New method.
3615 (getPrefix): New method.
3616 (getSuffix): New method.
3617 (startsWith): New method.
3618 (endsWith): New method.
3619 (addAll): New method.
3620 (addAll): New method.
3623 (remove): New method.
3625 * javax/naming/Context.java (lookup): New method.
3626 (rebind): New method.
3627 (unbind): New method.
3628 (rename): New method.
3630 (listBindings): New method.
3631 (destroySubcontext): New method.
3632 (createSubcontext): New method.
3633 (lookupLink): New method.
3634 (getNameParser): New method.
3635 (composeName): New method.
3636 (addToEnvironment): New method.
3637 (removeFromEnvironment): New method.
3638 (getEnvironment): New method.
3639 (close): New method.
3640 (getNameInNamespace): New method.
3642 * javax/naming/InitialContext.java (lookup): New method.
3643 (rebind): New method.
3644 (unbind): New method.
3645 (rename): New method.
3647 (listBindings): New method.
3648 (destroySubcontext): New method.
3649 (createSubcontext): New method.
3650 (lookupLink): New method.
3651 (getNameParser): New method.
3652 (composeName): New method.
3653 (addToEnvironment): New method.
3654 (removeFromEnvironment): New method.
3655 (getEnvironment): New method.
3656 (close): New method.
3657 (getNameInNamespace): New method.
3659 2000-11-26 Tom Tromey <tromey@cygnus.com>
3661 * Makefile.in: Rebuilt.
3662 * Makefile.am (core_java_source_files): Added
3663 RuntimePermission.java.
3664 * java/lang/RuntimePermission.java: Imported from Classpath.
3665 * java/lang/Thread.java (getContextClassLoader): Now
3666 synchronized. Added security code.
3667 (setContextClassLoader): Likewise.
3669 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3670 length field of array.
3671 (_Jv_NewPrimArray): Likewise.
3672 * gcj/array.h (__JArray): `length' field now const. Added
3675 2000-11-26 Anthony Green <green@redhat.com>
3677 * javax/naming/spi/NamingManager.java,
3678 javax/naming/spi/ObjectFactory.java,
3679 javax/naming/spi/InitialContextFactory.java,
3680 javax/naming/spi/InitialContextFactoryBuilder.java,
3681 javax/naming/RefAddr.java, javax/naming/Reference.java,
3682 javax/naming/NamingException.java, javax/naming/Context.java,
3683 javax/naming/Referenceable.java,
3684 javax/naming/directory/InitialDirContext.java,
3685 javax/naming/directory/DirContext.java,
3686 javax/naming/directory/Attributes.java,
3687 javax/naming/directory/Attribute.java,
3688 javax/naming/StringRefAddr.java,
3689 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3690 javax/naming/InitialContext.java,
3691 javax/naming/NoInitialContextException.java: New files.
3693 2000-11-25 Anthony Green <green@redhat.com>
3695 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3696 (_Jv_NewPrimArray): Likewise.
3697 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3698 (class JArray): Removed constructor.
3700 * java/lang/Thread.java (context_class_loader): New private data.
3701 (getContextClassLoader): New method.
3702 (setContextClassLoader): New method.
3703 (Thread): Initialize context_class_loader.
3705 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3706 (getResource): Rename to findResource.
3707 (findResource): New method. Used to be getResource.
3708 (getResourceAsStream): Deleted.
3709 (jarFileize): Extracted logic from URLClassLoader constructor into
3710 this new private method.
3711 (addURL): New protected method.
3712 (URLClassLoader): Call jarFileize. Use addElement instead of
3714 (findResources): New method.
3716 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3717 (getResource): Implement correct logic.
3718 (findResource): New method.
3719 (getResources): New method.
3720 (findClass): Create a ClassNotFoundException with the name of the
3721 class rather than nothing at all.
3722 (defineClass) Only throw ClassFormatError.
3724 * java/lang/Class.java (forName): New method.
3725 * java/lang/Class.h (forName): New method.
3726 * java/lang/natClass.cc (forName): New method.
3728 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3730 * java/lang/System.java (setProperties): Only call init_properties()
3731 if properties is null.
3732 (getProperties): Ditto.
3733 (getProperty): Ditto.
3734 (setProperty): Call init_properties if properties are null.
3735 (prop_init): Remove field.
3736 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3737 method. Check for null properties after synchronizing instead of
3738 prop_init flag. Set the properties field last for thread safety.
3740 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3741 test for gcj.dumpobjects property and enable object stream dumping
3743 (dumpElement): No longer native.
3744 (dumpElementln): Ditto.
3745 (setDump): Do not define.
3746 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3747 (dumpElementln): Removed.
3750 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3752 * configure: Rebuilt.
3753 * Makefile.in: Rebuilt.
3754 * Makefile.am (built_java_source_files): Add Configuration.java.
3755 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3756 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3757 Create `gnu' directory in the build tree.
3758 * gnu/classpath/Configuration.java.in: New file.
3760 2000-11-24 Tom Tromey <tromey@cygnus.com>
3762 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3764 (_Jv_NewPrimArray): Likewise.
3766 * gcj/array.h (__JArray): `length' field now const. Added
3768 (class JArray): Added constructor.
3770 2000-11-23 Mark Wielaard <mark@klomp.org>
3772 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3775 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3777 * java/util/Vector.java: Improve exception messages.
3778 (Vector): Check initialCapacity for IllegalArgumentException.
3779 (tromToSize): Don't check for elementCount == elementData.length
3781 (toArray): Don't try to set null marker if target array is the same
3782 length as the vector.
3784 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3786 * Makefile.in: Rebuilt.
3787 * Makefile.am (core_java_source_files): Added Collections.java.
3788 * java/util/List.java: Merged from classpath.
3789 * java/util/Vector.java: Ditto.
3790 * java/util/Collections.java: From classpath.
3791 * java/util/ArrayList.java (addAll(Collection)): Call
3792 addAll(int,Collection) instead of duplicating code.
3793 (indexOf): Clean up int initialization.
3794 (clear): Set cleared array entries to null, to allow garbage
3796 * java/util/List.java: Minor formatting fixes.
3797 * java/util/SimpleTimeZone.java: ditto.
3799 2000-11-18 Tom Tromey <tromey@cygnus.com>
3801 * Makefile.in: Rebuilt.
3802 * Makefile.am (core_java_source_files): Added new files.
3803 * java/lang/reflect/ReflectPermission.java: New class.
3804 * java/io/FileFilter.java: From Classpath
3805 * java/io/FilePermission.java: From Classpath.
3807 2000-11-17 Tom Tromey <tromey@cygnus.com>
3809 * java/lang/reflect/AccessibleObject.java (isAccessible,
3810 setAccessible): Now public.
3812 * java/lang/natString.cc: Include Locale.h.
3813 (toUpperCase): Added `locale' argument. Handle locale
3815 (toLowerCase): Added `locale' argument. Handle locale
3817 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3818 CAPITAL_I): New defines.
3819 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3822 (toUpperCase, toLowerCase): New methods. Variants which accept
3825 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3828 * java/util/PropertyPermission.java: Re-merged from Classpath.
3830 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3832 * java/text/StringCharacterIterator.java: Reindented.
3833 (setText): New method.
3835 2000-11-17 Mark Wielaard <mark@klomp.org>
3837 Merge with Classpath (changes by Bryce McKinlay)
3838 * java/util/jar/*.java: Reformat all to unofficial standard coding
3839 style. No changes of substance.
3841 2000-11-17 Mark Wielaard <mark@klomp.org>
3843 * java/util/zip/*.java: Javadoc updates.
3845 2000-11-17 Tom Tromey <tromey@cygnus.com>
3847 * java/text/CollationKey.java: Implement Comparable.
3848 (compareTo(Object)): New method.
3849 * java/text/Collator.java (compare(Object,Object)): New method.
3850 Implement Comparator.
3852 * java/util/zip/InflaterInputStream.java (available): New method.
3853 (close): New method.
3854 (read, available, skip, fill): Throw exception if stream closed.
3855 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3856 getNextEntry): Throw exception if closed.
3858 2000-11-16 Tom Tromey <tromey@cygnus.com>
3860 * java/io/PushbackReader.java: Merged with Classpath.
3861 * java/util/Arrays.java: Updated from Classpath.
3863 * scripts/blocks.pl: New file.
3864 * java/lang/Character.java (Subset): New class.
3865 (UnicodeBlock): New class.
3867 * java/lang/Math.java (toDegrees, toRadians): New methods.
3869 * java/lang/Float.java: Implement Comparable.
3870 (compareTo): New methods.
3871 * java/lang/Double.java: Implement Comparable.
3872 (compareTo): New methods.
3874 2000-11-16 Warren Levy <warrenl@cygnus.com>
3876 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3878 (listeners): Made transient.
3879 (source): Renamed from 'bean'.
3880 (children): New field for serialization.
3881 (propertyChangeSupportSerializedDataVersion): Ditto.
3882 (serialVersionUID): Ditto.
3883 (writeObject): New serialization method.
3884 (readObject): New serialization method.
3885 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3887 (listeners): Made transient.
3888 (source): Renamed from 'bean'.
3889 (children): New field for serialization.
3890 (vetoableChangeSupportSerializedDataVersion): Ditto.
3891 (serialVersionUID): Ditto.
3892 (writeObject): New serialization method.
3893 (readObject): New serialization method.
3894 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3895 to allow constructor to have a return type (i.e. the class that the
3896 constructor constructs).
3898 2000-11-14 Tom Tromey <tromey@cygnus.com>
3900 * Makefile.in: Rebuilt.
3901 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3904 2000-11-02 Warren Levy <warrenl@cygnus.com>
3906 * java/io/ObjectInputStream.java (readObject): Added code to
3907 conditionally dump out the serialized data.
3908 Handle ENDBLOCKDATA case a bit more gracefully since the current
3909 behavior doesn't seem to work as expected.
3910 (readStreamHeader): Added code for serialized data dumper.
3911 (readNextBlock): Ditto.
3912 (readFields): Ditto.
3913 (dump): New private static field for turning on/off dumper.
3914 (setDump): New native method.
3915 (dumpElement): New native method.
3916 (dumpElementln): New native method.
3917 * java/io/natObjectInputStream.cc (setDump): New method.
3918 (dumpElement): New method.
3919 (dumpElementln): New method.
3921 2000-11-02 Warren Levy <warrenl@cygnus.com>
3923 * java/net/InetAddress.java (addr): Renamed from 'address'.
3924 (address): New field to match Serialized Form doc.
3925 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3926 (family): New serialization field.
3927 (serialVersionUID): New field.
3928 (readObject): New method.
3929 (writeObject): New method.
3930 (getFamily): New native method.
3931 (InetAddress): Set family.
3932 * java/net/natInetAddress.cc (getFamily): New method.
3933 (addr): Renamed from 'address'.
3934 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3935 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3936 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3938 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3940 * java/util/AbstractList.java (SubList): Make it a top-level private
3942 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3944 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3945 * Makefile.in: Rebuilt.
3947 2000-11-02 Tom Tromey <tromey@cygnus.com>
3949 * Makefile.in: Rebuilt.
3950 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3953 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3955 * java/util/AbstractList.java (remove): Comment out modCount increment
3956 to work around compiler bug.
3959 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3961 * java/util/AbstractList.java: Throw messages with
3962 IndexOutOfBoundsExceptions.
3963 (listIterator()): Call listIterator(0).
3964 (size): New field. Initialize to size().
3965 (hasNext): Test position against size, not size().
3966 (remove): Increment knownMod by one instead of resetting it from
3969 (SubList.upMod): Removed.
3970 (SubList.set): Don't call upMod() or update knownMod.
3971 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3972 (SubList.remove): Ditto.
3973 (SubList.addAll): Don't call backingList.size(). Increment size from
3975 (SubList.iterator): New method. Call listIterator(0).
3976 (SubList.listIterator): New method. Restore code to return an anonymous
3977 listIterator implementation (with some changes).
3978 * java/util/AbstractSequentialList.java: Throw messages with
3979 IndexOutOfBoundsExceptions.
3980 (addAll): Add a specnote.
3981 * java/util/ArrayList.java (removeRange): Get the math right.
3982 (addAll): Increment modCount _before_ creating iterator.
3983 * java/util/LinkedList.java: Rewritten, mostly.
3985 2000-11-01 Tom Tromey <tromey@cygnus.com>
3987 * scripts/encodings.pl: Added `ASCII' alias.
3988 * Makefile.in: Rebuilt.
3989 * Makefile.am (convert_source_files): Added new files.
3990 * gnu/gcj/convert/Input_ASCII.java: New file.
3991 * gnu/gcj/convert/Output_ASCII.java: New file.
3992 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3993 out-of-range characters.
3994 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3995 (read): Swap bytes if required. Treat `count' as character count,
3997 (write): Likewise. Also, handle case where iconv fails on a given
3999 (init): Put encoding into exception.
4000 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4001 (static): Call iconv_init. Rebuilt alias list.
4002 (iconv_init): New private method.
4004 2000-11-01 Tom Tromey <tromey@cygnus.com>
4006 * Makefile.in: Rebuilt.
4007 * Makefile.am (install-exec-hook): Only make a single symlink, and
4008 remove the destination before making the link.
4009 * configure: Rebuilt.
4010 * configure.in: Call AC_PROG_LN_S.
4012 2000-10-31 Warren Levy <warrenl@cygnus.com>
4014 * jni.cc: Added include of java/lang/ThreadGroup.h.
4015 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4016 per change of 2000-10-05.
4018 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4020 * java/util/BitSet.java: Updated @specnote.
4022 * java/io/Reader.java: Merge docs from classpath.
4023 (skip): Synchronize on `lock'.
4024 * java/io/FileReader.java: Import correct implementation from
4026 * java/io/StringReader.java: Merge docs from classpath.
4027 (ready): Throw IOException if stream is closed.
4029 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4031 * java/util/AbstractCollection.java (addAll): Use size() instead of
4032 hasNext() in iterator loop.
4034 (contains): Ditto. Simplify loop.
4035 (containsAll): Ditto.
4040 (toString): Ditto. Use string concatenation operators, not
4042 * java/util/AbstractList.java (addAll): Use size() instead of
4043 hasNext() in iterator loop.
4046 (indexOf): Ditto. Don't take null check outside of the loop.
4047 (iterator): Return an AbstractListItr instead of anonymous class.
4048 (lastIndexOf): Use a for loop bounded by size() instead of
4049 hasPrevious() in iterator loop.
4050 (listIterator): Return an AbstractListItr.
4051 (removeRange): Remove bounds checking code and docs.
4052 (AbstractListItr): New inner class. Code moved here from
4054 (SubList.iterator): Removed. Use default implementation from
4055 AbstractList instead.
4056 (SubList.listIterator): As above.
4057 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4058 instead of hasNext() in iterator loop.
4059 (containsValue): Ditto.
4065 (toString): Ditto. Use string concatenation operators, not
4067 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4068 bounded by size() instead of hasNext() in iterator loop.
4069 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4070 part of normal execution flow. Do an explicit null check instead.
4071 * java/util/ArrayList.java (_iSize): Rename to `size'.
4072 (_arData): Rename to `data'.
4073 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4076 (removeRange): Make protected. Don't check bounds.
4077 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4079 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4081 (addAll (int, Collection)): Check lower bounds. Simplify exception
4083 (clone): Clone the data array too.
4084 (indexOf): Inline doesEqual().
4085 (lastIndexOf): Ditto.
4086 (clear): Don't set array data to null.
4087 (set): Check lower bounds. Simplify exception string.
4088 (toArray): Correct comment.
4089 (trimToSize): Don't update modCount, this is not a structural change.
4092 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4094 (toString): Declare `bit' as long, not int.
4095 (data): Made package-private, not private.
4097 2000-10-27 Warren Levy <warrenl@cygnus.com>
4099 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4100 array elements to true.
4102 2000-10-27 Warren Levy <warrenl@cygnus.com>
4104 * Makefile.am: Added locale files from Classpath.
4105 * Makefile.in: Rebuilt.
4106 * gnu/java/locale/Calendar.java: New file.
4107 * gnu/java/locale/Calendar_de.java: New file.
4108 * gnu/java/locale/Calendar_en.java: New file.
4109 * gnu/java/locale/Calendar_nl.java: New file.
4110 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4111 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4112 serialization compatibility.
4113 (scale): Made private.
4114 (serialVersionUID): New field.
4115 * java/math/BigInteger.java (ival): Made transient.
4116 (words): Made transient.
4117 (bitCount): New serialization field.
4119 (firstNonzeroByteNum): Ditto.
4120 (lowestSetBit): Ditto.
4123 (serialVersionUID): New field.
4124 (readObject): New method.
4125 (writeObject): New method.
4126 * java/util/BitSet.java (serialVersionUID): New field.
4127 * java/util/Calendar.java: Replaced with Classpath file.
4128 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4129 of getDefault() for TimeZone or Locale instead of passing nulls.
4130 * java/util/Locale.java (serialVersionUID): New field.
4131 (writeObject): New method.
4132 (readObject): New method.
4133 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4135 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4137 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4138 (core_java_source_files): Put java.lang, java.io, and java.util here.
4139 (ordinary_java_source_files): Order so that core_java_source_files are
4141 (java_source_files): Reorder so that special_java_source_files are
4143 * configure.in: Don't pass -I flag to gcj.
4144 * Makefile.in: Rebuilt.
4145 * configure: Rebuilt.
4147 2000-10-25 Tom Tromey <tromey@cygnus.com>
4149 * Makefile.in: Rebuilt.
4150 * Makefile.am (install-exec-hook): New target.
4152 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4154 * java/util/EventObject.java: Merged from classpath.
4156 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4159 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4161 * java/util/AbstractSet.java (equals): Re-installed original code.
4163 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4165 * Makefile.am: Added rules for libgcjx library.
4166 * Makefile.in: Rebuilt.
4167 * configure.in: Added check for X.
4168 * configure: Rebuilt.
4169 * gnu/awt/LightweightRedirector.java: New file.
4170 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4171 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4172 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4173 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4174 * gnu/awt/j2d/MappedRaster.java: New file.
4175 * gnu/awt/xlib/XCanvasPeer.java: New file.
4176 * gnu/awt/xlib/XEventLoop.java: New file.
4177 * gnu/awt/xlib/XEventQueue.java: New file.
4178 * gnu/awt/xlib/XFontMetrics.java: New file.
4179 * gnu/awt/xlib/XFramePeer.java: New file.
4180 * gnu/awt/xlib/XGraphics.java: New file.
4181 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4182 * gnu/awt/xlib/XPanelPeer.java: New file.
4183 * gnu/awt/xlib/XToolkit.java: New file.
4184 * gnu/gcj/xlib/Clip.java: New file.
4185 * gnu/gcj/xlib/Colormap.java: New file.
4186 * gnu/gcj/xlib/Display.java: New file.
4187 * gnu/gcj/xlib/Drawable.java: New file.
4188 * gnu/gcj/xlib/Font.java: New file.
4189 * gnu/gcj/xlib/GC.java: New file.
4190 * gnu/gcj/xlib/Pixmap.java: New file.
4191 * gnu/gcj/xlib/Screen.java: New file.
4192 * gnu/gcj/xlib/Visual.java: New file.
4193 * gnu/gcj/xlib/WMSizeHints.java: New file.
4194 * gnu/gcj/xlib/Window.java: New file.
4195 * gnu/gcj/xlib/WindowAttributes.java: New file.
4196 * gnu/gcj/xlib/XAnyEvent.java: New file.
4197 * gnu/gcj/xlib/XButtonEvent.java: New file.
4198 * gnu/gcj/xlib/XColor.java: New file.
4199 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4200 * gnu/gcj/xlib/XConnectException.java: New file.
4201 * gnu/gcj/xlib/XEvent.java: New file.
4202 * gnu/gcj/xlib/XException.java: New file.
4203 * gnu/gcj/xlib/XExposeEvent.java: New file.
4204 * gnu/gcj/xlib/XID.java: New file.
4205 * gnu/gcj/xlib/XImage.java: New file.
4206 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4207 * gnu/gcj/xlib/natClip.cc: New file.
4208 * gnu/gcj/xlib/natColormap.cc: New file.
4209 * gnu/gcj/xlib/natDisplay.cc: New file.
4210 * gnu/gcj/xlib/natDrawable.cc: New file.
4211 * gnu/gcj/xlib/natFont.cc: New file.
4212 * gnu/gcj/xlib/natGC.cc: New file.
4213 * gnu/gcj/xlib/natPixmap.cc: New file.
4214 * gnu/gcj/xlib/natScreen.cc: New file.
4215 * gnu/gcj/xlib/natVisual.cc: New file.
4216 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4217 * gnu/gcj/xlib/natWindow.cc: New file.
4218 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4219 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4220 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4221 * gnu/gcj/xlib/natXColor.cc: New file.
4222 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4223 * gnu/gcj/xlib/natXException.cc: New file.
4224 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4225 * gnu/gcj/xlib/natXImage.cc: New file.
4226 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4227 * java/awt/EventDispatchThread.java: Start thead on creation.
4229 2000-10-20 Tom Tromey <tromey@cygnus.com>
4231 From Arno J. Klaassen:
4232 * interpret.cc: Include <stdlib.h> for alloca.
4233 * defineclass.cc: Include <stdlib.h> for alloca.
4235 * Makefile.in: Rebuilt.
4236 * Makefile.am: Include deps.mk.
4237 (GCJCOMPILE): Added -MD, -MT, and -MF.
4238 ($(javao_files)): Don't depend on libgcj.zip.
4239 (all-recursive): New target.
4240 (%.lo:%.cc): Do dependency tracking.
4241 ($(nat_headers)): Don't depend on libgcj.zip.
4242 * configure: Rebuilt.
4243 * configure.in: Make .d files and deps.mk.
4245 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4247 * exception.cc: Don't #include "exception".
4248 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4250 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4251 * Makefile.in: Updated.
4253 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4255 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4256 * java/awt/peer/ComponentPeer.java (disable): Removed.
4259 (minimumSize): Removed.
4260 (preferredSize): Removed.
4263 * java/awt/peer/ListPeer.java (addItem): Removed.
4265 (minimumSize): Removed.
4266 (preferredSize): Removed.
4267 (setMultipleSelections): Removed.
4268 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4269 (remove): Renamed from removeMenu.
4270 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4272 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4273 (remove): Renamed from removeItem.
4274 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4275 (getMinimumSize): Removed.
4276 (getPreferredSize): Removed.
4277 (minimumSize): Removed.
4278 (preferredSize): Removed.
4279 (replaceText): Removed.
4280 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4281 (preferredSize): Removed.
4282 (getMinimumSize): Removed.
4283 (getPreferredSize): Removed.
4284 (setEchoCharacter): Removed.
4286 2000-10-10 Warren Levy <warrenl@cygnus.com>
4288 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4289 * java/sql/Date.java (serialVersionUID): New field.
4290 * java/sql/Time.java (serialVersionUID): New field.
4291 * java/sql/Timestamp.java (serialVersionUID): New field.
4292 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4293 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4294 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4295 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4296 (readObject): New serialization method.
4297 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4298 (serialVersionOnStream): New field.
4299 (readObject): New serialization method.
4300 (getMonetaryDecimalSeparator): New method.
4301 (setMonetaryDecimalSeparator): New method.
4302 * java/text/NumberFormat.java (maxFractionDigits): New field.
4303 (maxIntegerDigits): New field.
4304 (minFractionDigits): New field.
4305 (minIntegerDigits): New field.
4306 (serialVersionOnStream): New field.
4307 (serialVersionUID): New field.
4308 (readObject): New serialization method.
4309 (writeObject): New serialization method.
4310 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4311 (serialVersionOnStream): New field.
4312 (serialVersionUID): New field.
4313 (readObject): New serialization method.
4315 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4317 * configure.in (GCJ): Avoid bogus error message when looking for
4318 (and not finding) gcj in the build tree.
4319 * configure: Rebuilt.
4321 2000-10-09 Tom Tromey <tromey@cygnus.com>
4323 * configure: Rebuilt.
4324 * configure.in: Include sys/types.h when checking for socklen_t.
4325 From Arno J. Klaassen.
4327 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4329 * include/jvm.h: Enable __builtin_expect().
4331 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4332 the main program. Fix for PR libgcj/341.
4334 2000-10-07 Tom Tromey <tromey@cygnus.com>
4336 * java/util/Properties.java: Merged with Classpath version.
4338 2000-10-05 Tom Tromey <tromey@cygnus.com>
4340 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4341 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4342 * java/lang/Class.h (Object): Added `class$' field.
4343 * java/lang/Object.h (Object): Added `class$' field.
4344 * defineclass.cc (ClassClass): Use `class$' form.
4345 (ClassObject): Likewise.
4346 * resolve.cc (ClassObject): Use `class$' form.
4347 (ObjectClass): Likewise.
4348 * interpret.cc (ClassError): Removed.
4349 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4351 (IntegerClass): Likewise.
4352 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4354 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4355 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4356 SerializableClass): Likewise.
4357 Include Serializable.h, Cloneable.h.
4358 * java/lang/natSystem.cc (SystemClass): Removed.
4359 (init_properties): Use `class$' form.
4360 * java/lang/natObject.cc (CloneableClass): Removed.
4361 (clone): Use `class$' form.
4362 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4363 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4364 ConstructorClass): Likewise.
4365 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4366 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4367 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4368 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4370 (ClassClass): Likewise.
4371 * include/jvm.h (StringClass): Use `class$' form.
4372 * prims.cc (ObjectClass): Removed.
4373 (_Jv_RunMain): Use `class$' form.
4374 (_Jv_AllocObject): Likewise.
4375 * jni.cc (ClassClass): Use `class$' form.
4376 (ThrowableClass): Likewise.
4377 (ObjectClass): Likewise.
4378 (MethodClass): Likewise.
4379 (ThreadGroupClass): Likewise.
4380 (NativeThreadClass): Likewise.
4381 * boehm.cc (ObjectClass): Removed.
4382 (ClassClass): Removed.
4383 (_Jv_MarkObj): Use `class$' form.
4384 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4387 2000-10-05 Warren Levy <warrenl@cygnus.com>
4389 * Makefile.am: Removed java/io/Replaceable.java and
4390 java/io/Resolvable.java.
4391 * Makefile.in: Rebuilt.
4392 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4394 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4396 (processResolution): Handle readResolve method via reflection with
4397 removal of Resolvable interface.
4398 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4399 method via reflection with removal of Replaceable interface.
4400 * java/io/Replaceable.java: Removed.
4401 * java/io/Resolvable.java: Removed.
4402 * java/security/Key.java (serialVersionUID): New field.
4403 * java/security/Provider.java (serialVersionUID): New field.
4404 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4406 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4408 * java/sql/DataTruncation.java (serialVersionUID): New field.
4409 * java/sql/SQLException.java (serialVersionUID): New field.
4410 * java/sql/SQLWarning.java (serialVersionUID): New field.
4411 * java/util/Date.java (serialVersionUID): New field.
4412 (millis): Made transient.
4413 (readObject): New method.
4414 (writeObject): New method.
4416 2000-10-05 Tom Tromey <tromey@cygnus.com>
4418 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4420 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4422 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4423 (JvRunMain): Set _Jv_argv and _Jv_argc.
4424 * java/awt/Component.java: Minor fixes.
4425 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4426 * java/awt/Toolkit.java (systemEventQueue): Removed.
4427 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4428 * java/awt/Window.java (getToolkit): Don't call super.
4429 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4430 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4431 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4432 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4433 * gnu/awt/gtk/GtkFramePeer.java: New file.
4434 * gnu/awt/gtk/GtkMainThread.java: New file.
4435 * gnu/awt/gtk/GtkToolkit.java: New file.
4436 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4437 * gnu/awt/gtk/gtkcommon.cc: New file.
4438 * gnu/awt/gtk/gtkcommon.h: New file.
4439 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4440 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4441 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4442 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4443 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4444 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4446 2000-09-30 Tom Tromey <tromey@cygnus.com>
4448 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4449 interrupted before modifying the cv's wait set.
4452 2000-09-30 Hans Boehm <boehm@acm.org>
4453 Bryce McKinlay <bryce@albatross.co.nz>
4455 Implement bitmap descriptor based marking for Boehm GC.
4457 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4458 * configure: Rebuilt.
4459 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4460 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4461 method get_finalizer().
4462 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4463 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4464 (_Jv_AllocObj): Add new jclass parameter.
4465 (_Jv_AllocArray): Ditto.
4466 (_Jv_BuildGCDescr): New prototype.
4467 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4468 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4469 get_finalizer() instead of direct finalizer vtable offset.
4470 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4471 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4472 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4473 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4474 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4475 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4476 (_Jv_DetermineVTableIndex): Ditto.
4477 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4478 calculations to account for new gc_descr field.
4479 * boehm.cc: #include gc_gcj.h.
4480 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4481 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4482 New commentary from HB. Mark the classes vtable.
4483 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4484 (GC_DEFAULT_DESCR): New #define.
4485 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4486 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4487 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4488 scan conservativly if size is less than min_heap_addr. Set vtable
4489 pointer of new object before returning.
4490 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4491 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4492 allocation for obj_kind_x.
4493 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4494 (_Jv_AllocObj): Set vtable on returned object.
4495 (_Jv_AllocArray): Ditto.
4496 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4497 (_Jv_NewPrimArray): Ditto.
4498 (_Jv_AllocObj): Declare as a friend.
4499 (_Jv_AllocArray): Ditto.
4500 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4501 from &ObjectClass into new array class. Remove offset-by-one
4502 adjustments from `method' size calculations to account for gc_descr
4505 2000-09-26 Tom Tromey <tromey@cygnus.com>
4507 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4508 `remove', not `add'.
4510 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4512 * java/lang/natSystem.cc (file_encoding): Added return statement.
4514 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4516 * Makefile.am: Re-work shell commands that exceeded command-line
4518 * Makefile.in: Rebuilt.
4520 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4522 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4523 * java/lang/natDouble.cc: Likewise.
4524 * java/lang/reflect/natMethod.cc: Likewise.
4525 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4527 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4529 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4531 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4532 * acinclude.m4: Arrange for automake to not bring in a new
4533 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4534 * Makefile.am: Leave it up to automake to subst GCJ.
4535 * aclocal.m4, configure, Makefile.in: Rebuilt.
4537 2000-09-13 Tom Tromey <tromey@cygnus.com>
4539 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4540 (get): Ensure Boolean class is initialized.
4541 * java/lang/reflect/natField.cc (BooleanClass): New define.
4542 (get): Ensure Boolean class is initialized.
4544 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4546 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4547 Initialize with anonymous class.
4548 (compareToIgnoreCase): New method.
4550 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4551 (uncaughtException): Set had_uncaught_exception.
4552 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4553 exit with error status if set.
4554 (_Jv_RunMain): Ditto.
4556 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4558 * configure: Rebuilt with new ../libtool.m4.
4560 2000-09-11 Tom Tromey <tromey@cygnus.com>
4562 * java/lang/reflect/Field.java (toString): Don't rely on
4565 2000-09-08 Tom Tromey <tromey@cygnus.com>
4567 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4568 default decoder use iconv.
4569 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4570 Let default encoder use iconv.
4571 * configure: Rebuilt.
4572 * configure.in: Check for nl_langinfo and <langinfo.h>.
4573 * java/lang/natSystem.cc (file_encoding): New function.
4574 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4576 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4578 * acinclude.m4: Simplify the tests for CC and CXX.
4579 * aclocal.m4, configure: Rebuilt.
4581 * acinclude.m4: Include libtool macros from the source tree.
4582 * aclocal.m4, configure: Rebuilt.
4584 2000-09-08 Warren Levy <warrenl@cygnus.com>
4586 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4587 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4588 * java/io/File.java (writeObject): Added.
4589 (readObject): Added.
4590 (serialVersionUID): Added.
4591 * java/io/ObjectOutputStream.java (writeObject): Initialized
4592 fieldsAlreadyWritten before recursion rather than after.
4593 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4594 * java/io/OptionalDataException.java (serialVersionUID): Added.
4595 (OptionalDataException): Made package private.
4596 * java/io/SyncFailedException.java (SyncFailedException): Removed
4597 default constructor to match spec.
4598 * java/lang/Boolean.java (serialVersionUID): Added.
4599 * java/lang/Byte.java (serialVersionUID): Added.
4600 * java/lang/Character.java (serialVersionUID): Added.
4601 * java/lang/Double.java (serialVersionUID): Added.
4602 * java/lang/Float.java (serialVersionUID): Added.
4603 * java/lang/Integer.java (serialVersionUID): Added.
4604 * java/lang/Long.java (serialVersionUID): Added.
4605 * java/lang/Number.java (serialVersionUID): Added.
4606 * java/lang/Short.java (serialVersionUID): Added.
4607 * java/lang/String.java (serialVersionUID): Added.
4608 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4610 * java/lang/reflect/InvocationTargetException.java
4611 (serialVersionUID): Added.
4612 * java/net/URL.java (handler): Made transient.
4613 (hashCode): Added field for serialization, per spec. and use
4614 cached value if available.
4615 (serialVersionUID): Added.
4616 (URL): Initialize hashCode.
4617 (set): Adjust hashCode.
4618 (readObject): New Method to initialize the protocol handler when
4620 (writeObject): New method.
4621 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4622 * java/text/Collator.java: Removed 'implements Serializable'.
4623 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4624 * java/util/Properties.java (serialVersionUID): Added.
4625 * java/util/Random.java (serialVersionUID): Added.
4626 (seed): Made private.
4627 (nextNextGaussian): Made private.
4628 (haveNextNextGaussian): Made private.
4629 * java/util/Stack.java (serialVersionUID): Added.
4630 * java/util/TimeZone.java (serialVersionUID): Added.
4631 * java/util/Vector.java (serialVersionUID): Added.
4633 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4635 * Makefile.am (Thread.h): Don't be friends with native threads
4637 * Makefile.in: Rebuilt.
4638 * java/lang/Thread.java (interrupt_flag): Make package-private.
4640 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4642 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4643 to avoid long long division.
4645 2000-09-06 Tom Tromey <tromey@cygnus.com>
4647 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4649 * java/lang/reflect/Method.java (toString): Use `getName' for
4652 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4653 `args' if method takes no parameters.
4655 Fix for PR java.lang/339:
4656 * java/lang/natPosixProcess.cc (fail): New function.
4657 (cleanup): New function.
4658 (startProcess): Use them. Create pipe so child can communicate
4659 exec failure back to parent.
4661 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4663 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4665 (send): Undo last patch. Remove the label only.
4667 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4669 * java/net/natInetAdress.cc: Ditto.
4671 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4673 2000-09-05 Tom Tromey <tromey@cygnus.com>
4675 * doc/cni.sgml: Updated from master copy.
4677 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4679 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4681 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4683 * java/lang/fdlibm.h: #undef __P if previously defined.
4684 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4685 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4689 2000-09-04 Tom Tromey <tromey@cygnus.com>
4691 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4694 2000-09-04 Anthony Green <green@redhat.com>
4696 Fix for PR java.io/203:
4697 * java/io/File.java (createTempFile): Obey directory argument.
4698 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4699 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4700 variable to set java.io.tmpdir on non-WIN32 systems.
4702 2000-09-04 Anthony Green <green@redhat.com>
4704 * java/io/File.java (deleteOnExit): New method.
4705 * gnu/gcj/runtime/FileDeleter.java: New class.
4706 * java/lang/natRuntime.cc (exit): Call
4707 FileDeleter.deleteOnExitNow()
4708 * Makefile.am: Add FileDeleter.java.
4709 * Makefile.in: Rebuilt.
4711 2000-09-02 Tom Tromey <tromey@cygnus.com>
4713 * Makefile.in: Rebuilt.
4714 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4715 environment variable.
4717 2000-09-01 Andrew Haley <aph@redhat.com>
4719 * java/io/StreamTokenizer.java: Don't throw a
4720 NumberFormatException if a field is numeric as far as the
4721 StreamTokenizer is concerned but not as far as Double.valueOf() is
4722 concerned: return a zero instead.
4724 2000-08-30 Tom Tromey <tromey@cygnus.com>
4726 * Makefile.in: Rebuilt.
4727 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4729 2000-08-28 Tom Tromey <tromey@cygnus.com>
4731 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4732 gnu/gcj/awt/ComponentDataBlitOp.java,
4733 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4734 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4735 java/awt/color/ICC_ColorSpace.java,
4736 java/awt/color/ICC_Profile.java,
4737 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4738 java/awt/image/ComponentColorModel.java,
4739 java/awt/image/ComponentSampleModel.java,
4740 java/awt/image/DataBuffer.java,
4741 java/awt/image/DataBufferByte.java,
4742 java/awt/image/DataBufferInt.java,
4743 java/awt/image/DataBufferUShort.java,
4744 java/awt/image/DirectColorModel.java,
4745 java/awt/image/IndexColorModel.java,
4746 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4747 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4748 java/awt/image/SinglePixelPackedSampleModel.java,
4749 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4750 Removed Latin-1 copyright symbols.
4751 * java/util/zip/ZipFile.java: Indentation fixes.
4753 2000-08-27 Mark Wielaard <mark@klomp.org>
4755 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4756 constructor, close can delete the file, finalize calls close.
4757 * java/util/jar/JarFile.java: Constructor that takes mode now
4760 2000-08-27 Anthony Green <green@redhat.com>
4762 * java/util/ArrayList.java, java/util/Timer.java,
4763 java/util/LinkedList.java, java/util/TimerTask.java,
4764 java/util/HashMap.java, java/util/AbstractMap.java,
4765 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4766 java/util/SortedSet.java: Imported from GNU Classpath.
4767 * Makefile.in: Rebuilt.
4768 * Makefile.am: Added new files.
4770 2000-08-26 Anthony Green <green@redhat.com>
4772 * Makefile.in: Rebuilt.
4773 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4776 * prims.cc: Include ClassLoader.h.
4777 (_Jv_RunMain): When executing jar files, classpath must be the jar
4778 file only. Lose our reference to the system ClassLoader in order
4779 to get a new one with the correct classpath.
4780 * java/lang/natSystem.cc (init_properties): When executing a jar
4781 file, only use the jar file for java.class.path.
4783 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4784 for bytecode archives.
4786 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4787 exists, but not Main-Class.
4789 2000-08-23 Mark Wielaard <mark@klomp.org>
4791 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4792 return -1 when fill() has no more data for the Inflater.
4794 2000-08-23 Mark Wielaard <mark@klomp.org>
4796 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4797 write(String) already does.
4799 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4801 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4802 to `alive_flag', call `init'.
4803 (init): New native method.
4804 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4807 2000-08-21 Mark Wielaard <mark@klomp.org>
4809 * Makefile.in: Rebuilt.
4810 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4812 (java/lang/reflect/Field.h): Likewise.
4813 (java/lang/reflect/Method.h): Likewise.
4814 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4817 2000-08-21 Tom Tromey <tromey@cygnus.com>
4819 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4822 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4824 * java/lang/natSystem.cc (init_properties): Change sourceware
4825 reference to sources.redhat.com.
4827 * include/java-props.h: Add _Jv_Jar_Class_Path.
4828 * prims.cc: Ditto. Set it from `gij -jar file' option.
4830 * java/lang/natSystem.cc (init_properties): Set java.class.path
4832 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4834 * java/util/PropertyPermission.java: Import from GNU Classpath.
4835 * Makefile.in: Rebuilt.
4836 * Makefile.am: Add java/util/PropertyPermission.java.
4837 * java/lang/System.java: Add setProperty method.
4839 * gij.cc (main): Add -jar option to execute jar files.
4840 (help): Describe -jar option.
4841 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4842 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4843 * gnu/gcj/runtime/FirstThread.java (main): New method.
4845 * java/util/jar/Attributes.java: Correct comment spelling.
4847 2000-08-20 Mark Wielaard <mark@klomp.org>
4849 * java/util/zip/Adler32.java: Make private variables really private
4850 * java/util/zip/CRC32.java: Make private variables really private
4851 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4853 * java/util/zip/InflaterInputStream.java: skip() could skip to
4855 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4856 * java/util/zip/ZipFile.java: size() new 1.2 method
4857 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4858 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4861 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4863 * java/util/jar/JarFile.java: Don't call
4864 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4867 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4869 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4870 Read the entire contents of the class file, not just what is
4873 * java/net/JarURLConnection.java: getEntry doesn't take any
4874 arguments. Return null if element is null.
4876 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4877 size from the archive, not the inflated size.
4879 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4880 java.util.zip.ZipFile.getEntry.
4882 * gij.cc (help): Change sourceware reference to
4885 2000-08-19 Tom Tromey <tromey@cygnus.com>
4887 * java/util/zip/ZipInputStream.java (createZipEntry):
4890 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4892 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4893 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4894 java/util/jar/JarInputStream.java,
4895 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4896 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4897 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4898 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4899 java/security/cert/Certificate.java,
4900 java/security/cert/CertificateEncodingException.java,
4901 java/security/cert/CertificateException.java,
4902 java/security/cert/CertificateExpiredException.java,
4903 java/security/cert/CertificateFactory.java,
4904 java/security/cert/CertificateFactorySpi.java,
4905 java/security/cert/CertificateNotYetValidException.java,
4906 java/security/cert/CertificateParsingException.java,
4907 java/security/cert/X509CRL.java,
4908 java/security/cert/X509CRLEntry.java,
4909 java/security/cert/X509Certificate.java,
4910 java/security/cert/X509Extension.java: Imported from Classpath.
4911 * java/util/Hashtable.java: Imported from Classpath.
4913 * java/util/zip/ZipInputStream.java: Create stub for
4916 * gcj/javaprims.h: Updated class list.
4918 * Makefile.in, gcj/Makefile.in: Rebuilt.
4919 * Makefile.am (ordinary_java_source_files): Add these new classes.
4921 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4923 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4924 * gnu/gcj/awt/GLightweightPeer.java: New file.
4925 * java/awt/BorderLayout.java: Implemented all methods.
4926 * java/awt/Button.java (actionListener, actionCommand): Renamed
4927 and modifier change.
4928 (addNotify): Call super.
4929 (dispatchEventImpl): New method.
4930 (getListeners): New method.
4931 (label): Made package-private, not private.
4932 * java/awt/Canvas.java: Implemented class body.
4933 * java/awt/Color.java (brighter): New method.
4934 (darker): New method.
4935 (hashCode): New method.
4936 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4937 (getGraphicsConfiguration): Delegate to
4938 getGraphicsConfigurationImpl().
4939 (getGraphicsConfigurationImpl): New method.
4940 (getToolkit): Only return value from peer if not null.
4941 (isDisplayable): Check with parent.
4942 (isShowing): No parent implies not showing.
4943 (getForeground): Check parent property if local is null.
4944 (getBackground): Likewise.
4945 (getFont): Likewise.
4946 (setForeground): Inform peer.
4947 (setBackground): Likewise
4948 (setLocale): Invalidate component.
4949 (getColorModel): Implemented.
4950 (setLocation): Invalidate, or ignore if no change.
4951 (setSize): Invalidate, or ignore if no change.
4952 (setBounds): Invalidate, or ignore if no change.
4953 (isOpaque): By default, heavyweight implies opaque.
4954 (isLightweight): Implemented.
4955 (getMaximumSize): Implemented.
4956 (doLayout): Implemented, NOP.
4957 (validate): Implemented, NOP.
4958 (invalidate): Only propagate to parent if parent was valid.
4959 (getGraphics): Implemented.
4960 (getFontMetrics): Implemented.
4961 (update): Implemented.
4962 (paintAll): Implemented.
4963 (repaint): Implemented all repaint methods.
4964 (print): Implemented.
4965 (printAll): Implemented.
4966 (createImage): Implemented.
4967 (dispatchEvent): Give the peer a chance to handle the event.
4968 (dispatchEventImpl): Dispatch paint events.
4969 (enableEvents): Lightweights enable events on parent component.
4970 (coalesceEvents): Coalesce paint events, and select event type
4972 (coalescePaintEvents): New method.
4973 (processEvent): Fix unfortunate ordering of statements, and call
4974 correct method for MOUSE_CLICKED.
4975 (processPaintEvent): New method.
4976 (addNotify): Allow container to notify children before event
4977 mask is set in peer.
4978 (addNotifyContainerChildren): New method.
4979 (removeNotify): Visibility should not change on removeNotify.
4980 (paramString): Implemented.
4981 (list): Implemented two of the list methods.
4982 * Container (myInsets): Removed, insets are managed by peer.
4983 (getInsets): Query peer.
4984 (addImpl): Fix reparenting, enable events for lightweights,
4985 initialize component array.
4986 (validate): Call doLayout in validateTree() instead.
4987 (validateTree): Do nothing if already valid. Call beginValidate(),
4988 endValidate() on peer. Call validateTree() instead of validate()
4989 for children that are containers. Mark valid after validation of
4991 (setFont): Partial implementation.
4992 (paint): Implemented.
4993 (visitChildren): New method.
4994 (visitChild): New method.
4995 (update): Implemented.
4996 (print): Implemented.
4997 (paintComponents): Implemented.
4998 (printComponents): Consider translation and clipping.
4999 (getComponentAt): Ignore invisible children. Return this if no
5001 (addNotify): Call super.
5002 (addNotifyContainerChildren): New method.
5003 (paramString): Implemented.
5004 (list): Implemented.
5005 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5007 (invokeLater): Likewise.
5008 (isDispatchThread): Likewise.
5009 * java/awt/FontMetrics (getLeading): Formula change.
5010 (getDescent): Consider leading also.
5011 (getMaxAscent): Default to getAscent().
5012 (getMaxDescent): Default to getDescent.
5013 (getMaxAdvance): Return value signifying unknown.
5014 (charWidth): Both methods implemented.
5015 (charsWidth): Implemented.
5016 (bytesWidth): Implemented.
5017 (getWidths): Implemented.
5018 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5020 (Frame): Rearragend constuctor chaining to disallow null being
5021 passed as a graphics configuration.
5022 (getTitle): Return empty string if null.
5024 (getIconImage): New method.
5025 (setIconImage): New method.
5026 (finalize): New method.
5027 (setMenuBar): Notify peer.
5028 (isResizable): New method.
5029 (setResizable): New method.
5030 (getState): New method.
5032 (remove): Implemented.
5033 (removeNotify): New method.
5034 (getFrames): New method.
5035 * java/awt/Graphics.java: Implemented body of class.
5036 * java/awt/Graphics2D.java: New file.
5037 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5038 * java/awt/Image.java: Implemented body of class.
5039 * java/awt/Panel.java (Panel): Call correct super constructor.
5040 (addNotify): Implemented.
5041 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5042 * java/awt/RenderingHints.java: New file.
5043 * java/awt/Toolkit.java (createComponent): Implemented.
5044 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5045 * java/awt/Window.java (Window): Two new constructors. Reordered
5046 constructor chaining.
5047 (getGraphicsConfigurationImpl): New method.
5048 (finalize): Call super.
5049 (addNotify): Call super.
5050 (pack): Do layout stuff.
5051 (show): Ensure that peer exists and that component is valid.
5052 (dispose): Dispose owned children.
5053 (getOwner): Simplify code, casting null pointers is valid.
5054 (getGraphicsConfiguration): Ask peer if local value is null.
5055 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5057 * java/awt/image/BufferedImage.java: New file.
5058 * java/awt/image/RasterOp.java: New file.
5059 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5060 More powerfull replacement for getColorModel().
5061 (getColorModel) Removed.
5062 (setEventMask) New method.
5063 * Makefile.am: Added new files.
5064 * Makefile.in: Rebuilt.
5066 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5068 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5069 (finit_leg_name): New global.
5070 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5071 `$finit$'. This is a backward compatibility hack.
5072 (java::lang::Class::_getMethods): Likewise.
5074 2000-08-15 Andrew Haley <aph@cygnus.com>
5076 * include/jvm.h (_Jv_HashCode): New hash code.
5078 2000-08-15 Tom Tromey <tromey@cygnus.com>
5080 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5082 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5084 * THANKS: More thanks.
5086 2000-08-10 Tom Tromey <tromey@cygnus.com>
5088 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5090 (connect): Likewise.
5092 (getOption): Likewise.
5093 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5094 case when errno not set.
5097 (receive): Likewise.
5098 (mcastGrp): Likewise.
5099 (setOption): Likewise.
5100 (getOption): Likewise.
5102 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5103 John Stracke <francis@ecal.com>
5105 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5106 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5108 (disconnect): Don't unset connected flag.
5109 (getHeaderField (String)): Call connect() if not connected.
5110 (getHeaderField (int)): Ditto.
5111 (getHeaderFieldKey): Ditto.
5112 (getHttpHeaders): Don't call connect().
5113 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5114 gotResponseVals): New fields.
5115 (getResponseCode): Call getResponseVals() conditionally.
5116 (getResponseMessage): Ditto.
5117 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5119 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5121 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5122 * Makefile.in: Rebuilt.
5123 * java/awt/Color.java (getTransparency): New method.
5124 * java/awt/Component.java: Various updates.
5125 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5126 after dealing with children.
5127 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5128 * java/awt/Window.java: Various new methods and updates.
5129 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5131 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5132 * java/awt/event/WindowEvent.java (paramString): Ditto.
5133 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5135 * java/awt/geom/Point2D.java (clone): Ditto.
5136 * java/awt/geom/RectangularShape.java (clone): Ditto.
5137 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5138 isAlphaPremultiplied): Make package-private, not private.
5140 2000-08-08 Tom Tromey <tromey@cygnus.com>
5142 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5143 surrogate characters.
5144 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5146 (write): Correct handling of surrogate characters.
5148 2000-08-07 Tom Tromey <tromey@cygnus.com>
5150 * java/lang/reflect/Method.java (hashCode): Use getName().
5151 (toString): Likewise.
5152 * java/lang/reflect/natMethod.cc (getType): Initialize
5155 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5157 * java/lang/reflect/Field.java (toString): Correct formatting.
5160 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5162 (receive): Streamlined.
5164 2000-08-05 Tom Tromey <tromey@cygnus.com>
5166 * java/io/PrintWriter.java: Merged comments from Classpath.
5167 (printlnUnsynchronized): Removed.
5168 (println()): Print the separator.
5169 (println): Call println(), not printlnUnsynchronized.
5170 (out): Now protected, to match spec.
5172 2000-08-04 Tom Tromey <tromey@cygnus.com>
5174 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5175 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5178 2000-08-03 Warren Levy <warrenl@cygnus.com>
5180 * java/io/ObjectInputStream.java (readFields): Turn off
5181 readDataFromBlock while reading via GetField.
5182 (GetField$1.get(String, Object)): Pass Class of default value to
5184 (getField): Allow for null default values.
5186 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5187 (PutField$1.put): Fixed calls of checkType in most of the put
5188 methods to pass the correct parameter.
5189 (PutField$1.put(String, Object)): Allow for null value arg.
5190 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5193 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5194 typo in spec'ed field name.
5195 (getSerialPersistentFields): Changed spelling of method to match
5196 the correct spelling of the spec'ed field name.
5198 2000-08-03 Tom Tromey <tromey@cygnus.com>
5200 * Makefile.in: Rebuilt.
5201 * Makefile.am (awt_java_source_files): Added new files.
5203 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5205 * Makefile.am: Add new AWT stubs.
5206 * java/awt/Canvas.java: New placeholder class.
5207 * java/awt/Checkbox.java: Ditto.
5208 * java/awt/CheckboxMenuItem.java: Ditto.
5209 * java/awt/Choice.java: Ditto.
5210 * java/awt/Dialog.java: Ditto.
5211 * java/awt/FileDialog.java: Ditto.
5212 * java/awt/List.java: Ditto.
5213 * java/awt/ScrollPane.java: Ditto.
5214 * java/awt/TextField.java: Ditto.
5215 * java/awt/datatransfer/Clipboard.java: Ditto.
5216 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5217 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5218 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5219 Some commented out. Partially implemented.
5220 * java/awt/natToolkit.cc: Removed file.
5222 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5224 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5225 Fixes "make -j" builds.
5226 * Makefile.in: Rebuild.
5228 2000-08-02 Tom Tromey <tromey@cygnus.com>
5230 * Makefile.in: Rebuilt.
5231 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5232 * java/net/natPlainSocketImpl.cc: Include posix.h.
5233 (accept): Use _Jv_select.
5234 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5235 (receive): Use _Jv_select.
5236 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5237 (available): Use _Jv_select.
5238 * java/lang/natSystem.cc: Include posix.h.
5239 (currentTimeMillis): Use _Jv_gettimeofday.
5240 * include/posix.h: New file.
5241 * posix.cc: New file.
5243 * scripts/encodings.pl: New file.
5244 * Makefile.in: Rebuilt.
5245 * Makefile.am (convert_source_files): Added IOConverter.java.
5246 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5248 (getDefaultDecodingClass): Canonicalize default encoding name.
5249 (getEncoder): Likewise.
5250 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5252 (getDefaultDecodingClass): Canonicalize default encoding name.
5253 (getDecoder): Likewise.
5254 * gnu/gcj/convert/IOConverter.java: New file.
5256 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5258 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5259 to match C declaration in ffi.h.
5260 * Makefile.am: Add java/awt/Button.java.
5261 * Makefile.in: Rebuilt.
5263 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5265 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5266 cast of the second argument to `ffi_raw_call' changed to match
5269 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5271 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5272 argument to `ffi_raw_call' changed to match prototype.
5274 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5276 * java/awt/Component.java (toString): Implemented.
5277 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5278 dispatchEvent() to dispatch the event.
5279 (removeImpl): Ditto.
5281 2000-07-30 Anthony Green <green@redhat.com>
5283 * java/awt/Component.java: Add treeLock object.
5284 (getTreeLock): Implement.
5285 (isShowing): Implement.
5287 2000-07-30 Tom Tromey <tromey@cygnus.com>
5289 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5291 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5293 * java/awt/Window.java (addNotify): Wrote.
5294 (addWindowListener): Wrote.
5296 (getWarningString): Wrote.
5297 (processEvent): Wrote.
5298 (processWindowEvent): Wrote.
5299 (removeWindowListener): Wrote.
5300 (show): Call validate(), setVisible().
5304 * java/awt/Toolkit.java (createWindow): Declare.
5306 * java/awt/Frame.java (addNotify): Use getToolkit to find
5309 * java/awt/Component.java (invalidate): Wrote.
5311 (getToolkit): Wrote.
5313 * java/awt/Container.java (addContainerListener): Removed
5315 (removeContainerListener): Likewise.
5317 (add(Component)): Use it.
5318 (add(String,Component)): Likewise.
5319 (add(Component,int)): Likewise.
5320 (add(Component,Object)): Likewise.
5321 (add(Component,Object,int)): Likewise.
5323 (getAlignmentX): Wrote.
5324 (getAlignmentY): Wrote.
5325 (getComponentAt): Wrote.
5326 (getMaximumSize): Wrote.
5327 (invalidate): Wrote.
5328 (list(PrintStream,int)): Wrote.
5329 (list(PrintWriter,int)): Wrote.
5330 (getMinimumSize): Wrote.
5331 (getPreferredSize): Wrote.
5332 (printComponents): Wrote.
5333 (processContainerEvent): Look at containerListener, not
5335 (remove): Added event processing and peer destruction.
5336 (removeAll): Use remove.
5337 (removeNotify): Wrote.
5339 (validateTree): Wrote.
5341 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5342 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5343 * java/awt/Container.java (addNotify): Don't create Container
5345 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5347 2000-07-30 Tom Tromey <tromey@cygnus.com>
5349 * java/awt/Container.java (remove(int)): Wrote.
5350 (remove(Component)): Wrote.
5351 (add(Component)): Wrote.
5352 (add(Component,int)): Wrote.
5354 (addNotify): Set our own peer.
5355 * java/awt/Scrollbar.java (listeners): Changed type.
5356 (Scrollbar): Don't initialize listeners.
5358 (setValue): Call setValues.
5359 (setMinimum): Likewise.
5360 (setMaxPriority): Likewise.
5361 (setVisibleAmount): Likewise.
5363 (setUnitIncrement): Forward to peer.
5364 (setLineIncrement): Call setUnitIncrement.
5365 (setPageIncrement): Call setBlockIncrement.
5366 (setBlockIncrement): Forward to peer.
5367 (addAdjustmentListener): Rewrote.
5368 (removeAdjustmentListener): Rewrote.
5369 (processAdjustmentEvent): Rewrote.
5370 (paramString): Wrote.
5371 * Makefile.in: Rebuilt.
5372 * Makefile.am (awt_java_source_files): Added Button.java.
5373 * java/awt/Button.java: New file.
5374 * java/awt/Toolkit.java (createLabel): Declare.
5375 (createButton): Likewise.
5376 (createScrollbar): Likewise.
5377 (createContainer): Likewise.
5378 * java/awt/Label.java (addNotify): Wrote.
5379 (setAlignment): Call setAlignment in the peer.
5380 (setText): Call setText in the peer.
5382 2000-07-28 Warren Levy <warrenl@cygnus.com>
5384 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5385 NotSerializableException with just the class name.
5387 2000-07-26 Andrew Haley <aph@cygnus.com>
5389 * interpret.cc (continue1): Insert missing break into switch.
5391 2000-07-28 Warren Levy <warrenl@cygnus.com>
5393 * java/io/ObjectStreamException.java: Made constructors protected.
5395 2000-07-27 Tom Tromey <tromey@cygnus.com>
5397 * java/io/OutputStreamWriter.java (close): Only flush if not
5400 2000-07-27 Warren Levy <warrenl@cygnus.com>
5402 * mauve-libgcj: Activated serialization tests.
5403 * gcj/field.h (getModifiers): Mask off unknown flags.
5404 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5405 spurious bits don't cause discrepancies.
5406 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5407 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5408 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5409 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5410 * java/lang/Throwable.java (serialVersionUID): New field.
5411 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5412 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5414 * java/lang/reflect/natMethod.cc: Ditto.
5415 * java/security/Key.java (serialVersionUID): Removed field for now.
5416 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5417 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5419 2000-07-22 Tom Tromey <tromey@cygnus.com>
5421 * java/awt/geom/RectangularShape.java (getPathIterator):
5424 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5426 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5427 stub libjava/java/awt/ColorModel.java which was located in the
5429 * libjava/java/awt/image/ComponentColorModel.java: New file.
5430 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5431 * libjava/java/awt/image/DataBuffer.java: New file.
5432 * libjava/java/awt/image/DataBufferByte.java: New file.
5433 * libjava/java/awt/image/DataBufferInt.java: New file.
5434 * libjava/java/awt/image/DataBufferUShort.java: New file.
5435 * libjava/java/awt/image/DirectColorModel.java: New file.
5436 * libjava/java/awt/image/PackedColorModel.java: New file.
5437 * libjava/java/awt/image/Raster.java: New file.
5438 * libjava/java/awt/image/SampleModel.java: New file.
5439 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5441 * libjava/java/awt/image/IndexColorModel.java: New file.
5442 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5443 java.awt.ColorModel stub.
5445 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5446 * gnu/gcj/util/Buffers.java: New file, utility class.
5448 * libjava/Makefile.am: Updated to include new files.
5449 * libjava/Makefile.in: Rebuilt.
5451 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5453 * java/io/StreamTokenizer.java: Merged with classpath.
5455 2000-07-20 Tom Tromey <tromey@cygnus.com>
5457 * Makefile.in: Rebuilt.
5458 * Makefile.am (awt_java_source_files): Updated for new files.
5459 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5460 * java/awt/Label.java: New file.
5461 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5462 (createIntersection, createUnion, getBounds2D): New methods.
5463 * java/awt/Scrollbar.java: New file.
5464 * java/awt/Shape.java: Updated to 1.2.
5465 * java/awt/geom/AffineTransform.java: New file.
5466 * java/awt/geom/Ellipse2D.java: New file.
5467 * java/awt/geom/NoninvertibleTransformException.java: New file.
5468 * java/awt/geom/PathIterator.java: New file.
5469 * java/awt/geom/Rectangle2D.java: New file.
5470 * java/awt/geom/RectangularShape.java: New file.
5471 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5472 * java/awt/geom/IllegalPathStateException.java: New file.
5474 * scripts/showval.java: New file.
5476 * scripts/classes.pl (scan): Print inner classes properly.
5477 * gcj/javaprims.h: Updated class list.
5479 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5480 initialize String fields for interpreted classes. Fixes bug
5481 reported by Hans Boehm.
5483 * java/io/File.java (getParentFile): New method, from Classpath
5484 via Oskar Liljeblad.
5486 * java/util/Vector.java (remove(Object)): Implemented.
5488 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5490 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5491 zero return from backtrace().
5493 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5495 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5497 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5498 before calling notifyAll().
5500 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5502 Add missing files from last check-in:
5503 * java/awt/image/ImageConsumer.java: New file.
5504 * java/awt/image/ImageProducer.java: New file.
5505 * java/awt/image/ImageObserver.java: New file.
5507 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5509 Merged implementation of java.applet from classpath:
5510 * java/applet/Applet.java: New file.
5511 * java/applet/AppletContext.java: New file.
5512 * java/applet/AppletStub.java: New file.
5513 * java/applet/AudioClip.java: New file.
5515 * Makefile.am: Added new java.applet classes.
5516 * Makefile.in: Rebuilt.
5518 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5521 * java/util/ResourceBundle.java (getLocale): stub.
5522 * Makefile.am: Added new AWT classes.
5523 * Makefile.in: Rebuilt.
5524 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5525 constructors. Fix toString() and paramString().
5526 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5527 * java/awt/CheckboxGroup.java: New class.
5528 * java/awt/ColorModel.java: New class.
5529 * java/awt/Component.java: Added stubs for most methods. Implemented
5531 * java/awt/Container.java: ditto.
5532 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5533 * java/awt/Cursor.java: ditto.
5534 * java/awt/Event.java: Fix paramString().
5535 * java/awt/EventQueue.java: New class. Implemented.
5536 * java/awt/Font.java: Added additional stub methods. Implemented
5538 * java/awt/FontMetrics.java: New class. Stubbed.
5539 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5541 * java/awt/Insets.java: New class. Implemented.
5542 * java/awt/Menu.java: Add new methods. Partially implemented.
5543 * java/awt/MenuItem.java: Add new methods and fields. Partially
5545 * java/awt/MenuShortcut.java: New class. Implemented.
5546 * java/awt/Panel.java: New class. Placeholder.
5547 * java/awt/PopupMenu.java: New class. Stubbed.
5548 * java/awt/Rectangle.java: New class. Implemented.
5549 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5550 * java/awt/event/ActionEvent.java: Implement paramString().
5551 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5552 * java/awt/event/ComponentEvent.java: Implement paramString().
5553 * java/awt/event/ContainerEvent.java: Implement paramString().
5554 * java/awt/event/FocusEvent.java: Implement paramString().
5555 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5556 * java/awt/event/HierarchyBoundsListener.java: New class.
5557 * java/awt/event/HierarchyEvent.java: New class.
5558 * java/awt/event/HierarchyListener.java: New class.
5559 * java/awt/event/InputMethodEvent.java: Implement paramString().
5560 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5561 exception if !catchExceptions.
5562 * java/awt/event/ItemEvent.java: Implement paramString().
5563 * java/awt/event/KeyEvent.java: Implement paramString().
5564 * java/awt/event/MouseEvent.java: Implement paramString().
5565 * java/awt/event/PaintEvent.java: Implement paramString().
5566 * java/awt/event/TextEvent.java: Implement paramString().
5567 * java/awt/event/WindowEvent.java: Implement paramString().
5569 AWT Peer interfaces:
5570 * java/awt/peer/ButtonPeer.java: New file.
5571 * java/awt/peer/ListPeer.java: New file.
5572 * java/awt/peer/CanvasPeer.java: New file.
5573 * java/awt/peer/MenuBarPeer.java: New file.
5574 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5575 * java/awt/peer/MenuComponentPeer.java: New file.
5576 * java/awt/peer/CheckboxPeer.java: New file.
5577 * java/awt/peer/MenuItemPeer.java: New file.
5578 * java/awt/peer/ChoicePeer.java: New file.
5579 * java/awt/peer/MenuPeer.java: New file.
5580 * java/awt/peer/ComponentPeer.java: Implemented.
5581 * java/awt/peer/PanelPeer.java: New file.
5582 * java/awt/peer/ContainerPeer.java: Implemented.
5583 * java/awt/peer/PopupMenuPeer.java: New file.
5584 * java/awt/peer/DialogPeer.java: New file.
5585 * java/awt/peer/ScrollPanePeer.java: New file.
5586 * java/awt/peer/FileDialogPeer.java: New file.
5587 * java/awt/peer/ScrollbarPeer.java: New file.
5588 * java/awt/peer/FontPeer.java: New file.
5589 * java/awt/peer/TextAreaPeer.java: New file.
5590 * java/awt/peer/FramePeer.java: Implemented.
5591 * java/awt/peer/TextComponentPeer.java: New file.
5592 * java/awt/peer/LabelPeer.java: New file.
5593 * java/awt/peer/TextFieldPeer.java: New file.
5594 * java/awt/peer/LightweightPeer.java: New file.
5595 * java/awt/peer/WindowPeer.java: Implemented.
5597 2000-07-06 Tom Tromey <tromey@cygnus.com>
5599 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5600 Initialize static final String fields.
5602 2000-07-03 Tom Tromey <tromey@cygnus.com>
5604 * java/io/PrintWriter.java (print): Call write(String), not
5605 print(String). See PR libgcj/277.
5606 (print(String)): Use write, not out.write.
5608 2000-06-30 Tom Tromey <tromey@cygnus.com>
5610 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5612 2000-06-27 Andrew Haley <aph@cygnus.com>
5614 * java/io/File.java (createTempFile): Close the FileDescriptor
5615 used to create a temp file. Fixes some of PR 203.
5616 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5617 collection if we run out of file handles.
5619 2000-06-28 Warren Levy <warrenl@cygnus.com>
5621 * gnu/java/security/provider/Gnu.java: New file.
5622 * gnu/java/security/provider/SHA.java: New file.
5623 * gnu/java/security/provider/SHA1PRNG.java: New file.
5624 * Makefile.am: Added the above files.
5625 * Makefile.in: Rebuilt.
5627 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5629 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5631 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5632 (destroyed_flag): Removed.
5633 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5634 (activeCount): Added spec note.
5636 2000-06-27 Warren Levy <warrenl@cygnus.com>
5638 * java/security/Principal.java: New file.
5639 * Makefile.am: Added Principal.java.
5640 * Makefile.in: Rebuilt.
5642 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5644 * java/awt/event/MouseEvent.java: Fixed coordinate space
5647 2000-06-27 Tom Tromey <tromey@cygnus.com>
5649 * java/io/PushbackInputStream.java (read): If there are characters
5650 in the buffer, don't also call super.read().
5651 * java/io/PushbackReader.java (read): If there are characters in
5652 the buffer, don't also call super.read().
5654 * java/lang/Double.java (valueOf): Call parseDouble().
5656 2000-06-26 Warren Levy <warrenl@cygnus.com>
5658 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5659 (newVal): Renamed to newValue.
5660 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5661 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5662 (revokeNow): Renamed to invalidateRefs.
5663 * java/io/OptionalDataException.java: Updated FIXME.
5664 (eof): New placeholder field.
5666 * java/io/WriteAbortedException.java (message): Made transient.
5667 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5668 * java/lang/Throwable.java (stackTrace): Made transient.
5669 * java/net/InetAddress.java: Made Serializable.
5670 * java/security/KeyPair.java: Made Serializable.
5671 * java/security/Provider.java: Replaced with Classpath version that
5672 implements serialization and proper methods.
5673 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5674 (limits): Renamed to choiceLimits.
5676 2000-06-24 Tom Tromey <tromey@cygnus.com>
5678 * java/lang/natDouble.cc (parseDouble): Renamed from
5680 * java/lang/Double.java (parseDouble): Renamed from
5681 doubleValueOf. Now public.
5683 2000-06-23 Andrew Haley <aph@cygnus.com>
5685 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5686 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5688 2000-06-23 Tom Tromey <tromey@cygnus.com>
5690 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5691 * java/lang/natDouble.cc: Always include <alloca.h>.
5692 Fix for PR libgcj/267.
5694 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5696 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5697 comply with classpath VM spec.
5698 (add(Group)): Rename to addGroup().
5699 * java/lang/Thread.java (Thread): Use addThread().
5700 * java/lang/natThread.cc (finish_): Use removeThread().
5702 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5704 * java/lang/ThreadGroup.java: Merged with classpath.
5705 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5706 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5708 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5709 ThreadGroup.root if Thread.currentThread is null. Honour the
5710 ThreadGroup's max priority setting.
5712 2000-06-18 Tom Tromey <tromey@cygnus.com>
5714 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5715 returned class. For PR gcj/260.
5717 2000-06-16 Tom Tromey <tromey@cygnus.com>
5719 Fix for PR libgcj/261:
5720 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5722 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5723 argument. (This is a patch from long ago that somehow went
5726 2000-06-15 Tom Tromey <tromey@cygnus.com>
5728 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5732 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5734 Fix for PR java.lang/258:
5735 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5736 JV_STATE_DONE, to prevent accidental initialization.
5737 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5738 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5739 interface or an abstract class. Remove redundant initializeClass calls.
5740 Remove duplicate if_idt test.
5741 (_Jv_InterfaceAssignableFrom): New function.
5742 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5744 2000-05-31 Tom Tromey <tromey@cygnus.com>
5746 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5747 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5748 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5749 (NUM_OBJECT_METHODS): New define.
5750 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5751 `array_vtable' parameter. Added assertion.
5752 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5755 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5757 * gcj/cni.h: Include <string.h>.
5758 * defineclass.cc: Include <alloca.h>.
5759 * interpret.cc: Ditto.
5760 * gij.cc: Include <stdlib.h>.
5762 2000-05-30 Tom Tromey <tromey@cygnus.com>
5764 * include/name-finder.h: Include <sys/wait.h>.
5765 (_Jv_name_finder::pid): Now of type `pid_t'.
5766 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5767 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5770 2000-05-24 Warren Levy <warrenl@cygnus.com>
5772 * java/io/ObjectOutputStream.java (writeObject): Use component type
5773 when writing arrays.
5776 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5778 Fix for PR libgcj/226:
5779 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5780 since this is an installed header.
5782 Fix for PR libgcj/228:
5783 * java/util/zip/ZipFile (getInputStream): Create inflater with
5786 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5787 with DataFormatException.
5789 2000-05-20 Tom Tromey <tromey@cygnus.com>
5791 * Makefile.in: Rebuilt.
5792 * Makefile.am (hack1): Removed.
5793 (awto_files): Likewise.
5794 (libgcjawt_la_SOURCES): Likewise.
5795 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5796 (libgcjawt_la_DEPENDENCIES): Likewise.
5797 (libgcjawt_la_LIBADD): Likewise.
5798 (libgcjawt_la_LDFLAGS): Likewise.
5799 (libgcjawt_la_LINK): Likewise.
5800 ($(awt_java_source_files:.java=.class)): Likewise.
5801 (libgcj.zip): Don't depend on AWT files.
5802 (MOSTLYCLEANFILES): Don't include AWT files.
5803 ($(awto_files)): Removed.
5804 (nat_headers): Removed AWT files.
5805 (cond_awt_java_source_files): Removed.
5806 (ordinary_java_source_files): Added awt_java_source_files.
5807 * libgcj.spec.in (*lib): Removed -lgcjawt.
5808 * configure: Rebuilt.
5809 * configure.in: Removed --enable-java-awt option.
5811 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5813 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5814 (ZipEntry): Copy the `name' field.
5815 (clone): Implement JDK1.2 method.
5816 (setCompressedSize): ditto.
5819 2000-05-19 Tom Tromey <tromey@cygnus.com>
5821 * java/io/BufferedWriter.java: Merged with Classpath.
5822 * java/io/BufferedOutputStream.java: Merged with Classpath.
5824 2000-05-16 Andrew Haley <aph@cygnus.com>
5826 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5827 build_ia64_frame_state.
5828 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5831 2000-05-15 Warren Levy <warrenl@cygnus.com>
5833 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5834 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5835 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5836 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5837 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5838 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5839 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5840 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5841 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5842 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5843 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5844 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5845 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5846 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5847 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5848 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5849 * gnu/gcj/io/NullOutputStream.java: Removed.
5850 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5851 * gnu/gcj/lang/ArrayHelper.java: Removed.
5852 * gnu/gcj/lang/ClassHelper.java: Removed.
5853 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5855 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5856 * gnu/java/beans/EmptyBeanInfo.java: New file.
5857 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5858 * gnu/java/beans/IntrospectionIncubator.java: New file.
5859 * gnu/java/beans/editors/ColorEditor.java: New file.
5860 * gnu/java/beans/editors/FontEditor.java: New file.
5861 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5862 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5863 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5864 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5865 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5866 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5867 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5868 * gnu/java/beans/editors/StringEditor.java: New file.
5869 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5870 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5871 * gnu/java/io/NullOutputStream.java: New file.
5872 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5873 * gnu/java/lang/ArrayHelper.java: New file.
5874 * gnu/java/lang/ClassHelper.java: New file.
5875 * gnu/java/lang/reflect/TypeSignature.java: New file.
5877 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5878 namespace back to the original Classpath gnu/java namespace.
5879 * Makefile.in: Rebuilt.
5881 * java/beans/Beans.java: Namespace change.
5882 * java/beans/EventSetDescriptor.java: Namespace change.
5883 * java/beans/Introspector.java: Namespace change.
5884 * java/beans/PropertyEditorManager.java: Namespace change.
5885 * java/io/ObjectInputStream.java: Namespace change.
5886 * java/io/ObjectOutputStream.java: Namespace change.
5887 * java/io/ObjectStreamClass.java: Namespace change.
5888 * java/io/ObjectStreamField.java: Namespace change.
5890 2000-04-21 Warren Levy <warrenl@cygnus.com>
5892 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5893 now that compiler patch is available.
5894 Removed unneeded System.loadLibrary.
5895 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5896 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5898 2000-04-19 Andrew Haley <aph@cygnus.com>
5900 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5901 and target classes have been initialized.
5903 2000-04-19 Andrew Haley <aph@cygnus.com>
5905 * java/lang/String.java: implement Serializable, Comparable.
5906 (compareTo (Object)): New method.
5908 2000-04-19 Warren Levy <warrenl@cygnus.com>
5910 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5911 instead of getField to retrieve non-public field.
5912 (getSerialPersistantFields): Ditto.
5914 2000-04-18 Warren Levy <warrenl@cygnus.com>
5916 * mauve-libgcj: Turned off object serialization tests temporarily
5917 due to compiler error.
5919 2000-04-17 Warren Levy <warrenl@cygnus.com>
5921 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5922 to avoid build problem.
5924 * mauve-libgcj: Turned on object serialization tests.
5926 2000-04-17 Tom Tromey <tromey@cygnus.com>
5928 * libgcj.spec.in (*lib): Added -lgcjawt.
5930 2000-04-17 Andrew Haley <aph@cygnus.com>
5932 * Makefile.am: Add new files:
5933 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5935 * Makefile.in: Rebuilt.
5937 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5938 interface that has no implementations.
5939 Check for an attempt to assign an abstract class to an interface.
5941 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5942 if we fail to find MessageDigest.getInstance ("SHA").
5944 * gnu/gcj/io/SimpleSHSStream.java: New file.
5945 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5946 * gnu/gcj/io/shs.cc: New file.
5947 * gnu/gcj/io/shs.h: new file.
5949 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5952 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5953 punctuation from the classname of an array element.
5955 * gcj/javaprims.h: Add SimpleDigestStream.
5957 2000-04-17 Andrew Haley <aph@cygnus.com>
5959 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5960 to getPrivateField for superclasses.
5962 2000-04-14 Andrew Haley <aph@cygnus.com>
5964 * Makefile.am: Add new files:
5965 java/io/ObjectOutputStream$PutField.h,
5966 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5967 java/io/natObjectOutputStream.cc
5968 * Makefile.in: Rebuilt.
5969 * gcj/Makefile.in: Rebuilt.
5970 * include/Makefile.in: Rebuilt.
5971 * java/lang/Class.h (getPrivateField): New method.
5972 (getPrivateMethod): Ditto.
5973 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5974 and java::io::ObjectStreamClass our friends.
5975 * java/lang/natClass.cc (getPrivateField): New method.
5976 (getPrivateMethod): Ditto.
5977 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5978 * gcj/javaprims.h: Add serialization classes.
5979 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5980 (setByteField): Ditto.
5981 (setCharField): Ditto.
5982 (setDoubleField): Ditto.
5983 (setFloatField): Ditto.
5984 (setIntField): Ditto.
5985 (setLongField): Ditto.
5986 (setShortField): Ditto.
5987 (setObjectField): Ditto.
5988 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5990 (getByteField): Ditto.
5991 (getCharField): Ditto.
5992 (getDoubleField): Ditto.
5993 (getFloatField): Ditto.
5994 (getIntField): Ditto.
5995 (getLongField): Ditto.
5996 (getShortField): Ditto.
5997 (getObjectField): Ditto.
5998 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6000 (getSerialPersistantFields): Ditto.
6001 (getDefinedSUID): Ditto.
6002 * java/io/natObjectOutputStream.cc: New file.
6003 * java/io/natObjectInputStream.cc: New file.
6005 2000-04-13 Warren Levy <warrenl@cygnus.com>
6007 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6008 problems. Revert to previous version to reproduce and when fixed.
6010 2000-04-13 Warren Levy <warrenl@cygnus.com>
6012 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6013 * gnu/gcj/io/NullOutputStream.java: New file.
6014 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6015 * java/io/BlockDataException.java: New file.
6016 * java/io/Externalizable.java: New file.
6017 * java/io/InvalidClassException.java: New file.
6018 * java/io/InvalidObjectException.java: New file.
6019 * java/io/NotActiveException.java: New file.
6020 * java/io/NotSerializableException.java: New file.
6021 * java/io/ObjectInput.java: New file.
6022 * java/io/ObjectInputStream.java: New file.
6023 * java/io/ObjectInputValidation.java: New file.
6024 * java/io/ObjectOutput.java: New file.
6025 * java/io/ObjectOutputStream.java: New file.
6026 * java/io/ObjectStreamClass.java: New file.
6027 * java/io/ObjectStreamConstants.java: New file.
6028 * java/io/ObjectStreamField.java: New file.
6029 * java/io/Replaceable.java: New file.
6030 * java/io/Resolvable.java: New file.
6031 * java/io/SerializablePermission.java: New file.
6032 * java/io/WriteAbortedException.java: New file.
6033 * java/security/BasicPermission.java: New file.
6034 * java/security/DigestOutputStream.java: New file.
6035 * java/security/Guard.java: New file.
6036 * java/security/Permission.java: New file.
6037 * java/security/PermissionCollection.java: New file.
6038 * Makefile.am: Added above files.
6039 * Makefile.in: Rebuilt.
6041 * java/beans/Beans.java (instantiate): Activated serialization code.
6042 * java/lang/SecurityManager.java (checkPermission): New method.
6044 2000-04-12 Warren Levy <warrenl@cygnus.com>
6046 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6047 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6048 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6049 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6050 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6051 * gnu/gcj/beans/editors/FontEditor.java: New file.
6052 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6053 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6054 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6055 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6056 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6057 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6058 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6059 * gnu/gcj/beans/editors/StringEditor.java: New file.
6060 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6061 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6062 * gnu/gcj/lang/ArrayHelper.java: New file.
6063 * gnu/gcj/lang/ClassHelper.java: New file.
6064 * java/beans/BeanDescriptor.java: New file.
6065 * java/beans/BeanInfo.java: New file.
6066 * java/beans/Beans.java: New file.
6067 * java/beans/Customizer.java: New file.
6068 * java/beans/DesignMode.java: New file.
6069 * java/beans/EventSetDescriptor.java: New file.
6070 * java/beans/FeatureDescriptor.java: New file.
6071 * java/beans/IndexedPropertyDescriptor.java: New file.
6072 * java/beans/IntrospectionException.java: New file.
6073 * java/beans/Introspector.java: New file.
6074 * java/beans/MethodDescriptor.java: New file.
6075 * java/beans/ParameterDescriptor.java: New file.
6076 * java/beans/PropertyChangeEvent.java: New file.
6077 * java/beans/PropertyChangeListener.java: New file.
6078 * java/beans/PropertyChangeSupport.java: New file.
6079 * java/beans/PropertyDescriptor.java: New file.
6080 * java/beans/PropertyEditor.java: New file.
6081 * java/beans/PropertyEditorManager.java: New file.
6082 * java/beans/PropertyEditorSupport.java: New file.
6083 * java/beans/PropertyVetoException.java: New file.
6084 * java/beans/SimpleBeanInfo.java: New file.
6085 * java/beans/VetoableChangeListener.java: New file.
6086 * java/beans/VetoableChangeSupport.java: New file.
6087 * java/beans/Visibility.java: New file.
6088 * java/beans/beancontext/BeanContext.java: New file.
6089 * java/beans/beancontext/BeanContextChild.java: New file.
6090 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6091 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6092 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6093 * java/beans/beancontext/BeanContextEvent.java: New file.
6094 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6095 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6096 * java/beans/beancontext/BeanContextProxy.java: New file.
6097 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6099 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6100 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6102 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6103 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6105 * java/beans/beancontext/BeanContextServices.java: New file.
6106 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6107 * java/util/AbstractCollection.java: New file.
6108 * java/util/AbstractList.java: New file.
6109 * java/util/Arrays.java: New file.
6110 * Makefile.am: Added above files.
6111 * Makefile.in: Rebuilt.
6113 2000-04-11 Warren Levy <warrenl@cygnus.com>
6115 * java/awt/AWTError.java: New file.
6116 * java/awt/AWTEvent.java: New file.
6117 * java/awt/AWTException.java: New file.
6118 * java/awt/ActiveEvent.java: New file.
6119 * java/awt/Adjustable.java: New file.
6120 * java/awt/BorderLayout.java: New file.
6121 * java/awt/Color.java: New file.
6122 * java/awt/Component.java: New file.
6123 * java/awt/Container.java: New file.
6124 * java/awt/Dimension.java: New file.
6125 * java/awt/Event.java: New file.
6126 * java/awt/Font.java: New file.
6127 * java/awt/Frame.java: New file.
6128 * java/awt/Graphics.java: New file.
6129 * java/awt/IllegalComponentStateException.java: New file.
6130 * java/awt/Image.java: New file.
6131 * java/awt/ItemSelectable.java: New file.
6132 * java/awt/LayoutManager.java: New file.
6133 * java/awt/LayoutManager2.java: New file.
6134 * java/awt/Menu.java: New file.
6135 * java/awt/MenuBar.java: New file.
6136 * java/awt/MenuComponent.java: New file.
6137 * java/awt/MenuContainer.java: New file.
6138 * java/awt/MenuItem.java: New file.
6139 * java/awt/Paint.java: New file.
6140 * java/awt/PaintContext.java: New file.
6141 * java/awt/Point.java: New file.
6142 * java/awt/Rectangle.java: New file.
6143 * java/awt/Shape.java: New file.
6144 * java/awt/TextArea.java: New file.
6145 * java/awt/TextComponent.java: New file.
6146 * java/awt/Toolkit.java: New file.
6147 * java/awt/Transparency.java: New file.
6148 * java/awt/Window.java: New file.
6149 * java/awt/natToolkit.cc: New file.
6150 * java/awt/event/AWTEventListener.java: New file.
6151 * java/awt/event/ActionEvent.java: New file.
6152 * java/awt/event/ActionListener.java: New file.
6153 * java/awt/event/AdjustmentEvent.java: New file.
6154 * java/awt/event/AdjustmentListener.java: New file.
6155 * java/awt/event/ComponentAdapter.java: New file.
6156 * java/awt/event/ComponentEvent.java: New file.
6157 * java/awt/event/ComponentListener.java: New file.
6158 * java/awt/event/ContainerAdapter.java: New file.
6159 * java/awt/event/ContainerEvent.java: New file.
6160 * java/awt/event/ContainerListener.java: New file.
6161 * java/awt/event/FocusAdapter.java: New file.
6162 * java/awt/event/FocusEvent.java: New file.
6163 * java/awt/event/FocusListener.java: New file.
6164 * java/awt/event/InputEvent.java: New file.
6165 * java/awt/event/InputMethodEvent.java: New file.
6166 * java/awt/event/InputMethodListener.java: New file.
6167 * java/awt/event/InvocationEvent.java: New file.
6168 * java/awt/event/ItemEvent.java: New file.
6169 * java/awt/event/ItemListener.java: New file.
6170 * java/awt/event/KeyAdapter.java: New file.
6171 * java/awt/event/KeyEvent.java: New file.
6172 * java/awt/event/KeyListener.java: New file.
6173 * java/awt/event/MouseAdapter.java: New file.
6174 * java/awt/event/MouseEvent.java: New file.
6175 * java/awt/event/MouseListener.java: New file.
6176 * java/awt/event/MouseMotionAdapter.java: New file.
6177 * java/awt/event/MouseMotionListener.java: New file.
6178 * java/awt/event/PaintEvent.java: New file.
6179 * java/awt/event/TextEvent.java: New file.
6180 * java/awt/event/TextListener.java: New file.
6181 * java/awt/event/WindowAdapter.java: New file.
6182 * java/awt/event/WindowEvent.java: New file.
6183 * java/awt/event/WindowListener.java: New file.
6184 * java/awt/geom/Dimension2D.java: New file.
6185 * java/awt/geom/Point2D.java: New file.
6186 * java/awt/peer/ComponentPeer.java: New file.
6187 * java/awt/peer/ContainerPeer.java: New file.
6188 * java/awt/peer/FramePeer.java: New file.
6189 * java/awt/peer/WindowPeer.java: New file.
6190 * java/util/Collection.java: New file.
6191 * java/util/Comparator.java: New file.
6192 * java/util/Iterator.java: New file.
6193 * java/util/List.java: New file.
6194 * java/util/ListIterator.java: New file.
6195 * Makefile.am: Added above files.
6196 * Makefile.in: Rebuilt.
6198 2000-04-10 Warren Levy <warrenl@cygnus.com>
6200 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6201 * java/lang/FirstThread.java: Ditto.
6202 * java/lang/StringBuffer.java: Ditto.
6203 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6205 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6206 Special case handled in java.math.BigInteger.
6207 * java/math/BigInteger.java (divide): Handle the special case when
6208 dividing by 1 and the high bit of the dividend is set.
6209 (setShiftRight): Handle case when count == 0.
6211 2000-04-05 Andrew Haley <aph@cygnus.com>
6213 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6216 2000-04-05 Andrew Haley <aph@cygnus.com>
6218 * sysdep/ia64.c (rse_address_add): Delete.
6219 (IS_NaT_COLLECTION_ADDR): Delete.
6220 (ia64_backtrace_helper): check for null unwind_info.
6222 * sysdep/ia64-frame.h: add calc_caller_bsp.
6224 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6227 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6228 (_Jv_remI): Likewise.
6229 (_Jv_divJ): Likewise.
6230 (_Jv_remJ): Likewise.
6232 * interpret.cc (continue1): Use divide subroutines to guarantee
6233 correct Java standard behaviour.
6234 Floating-point division should not abort; make it so.
6236 2000-03-29 Tom Tromey <tromey@cygnus.com>
6238 * configure: Rebuilt.
6239 * configure.in: Test against `libgcj_sjlj', not
6240 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6241 to be set even when using sjlj.
6243 2000-03-24 Andrew Haley <aph@cygnus.com>
6245 * Makefile.am: Add file addr2name.awk.
6246 * Makefile.in: Rebuilt.
6247 * addr2name.awk: New file.
6248 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6250 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6253 2000-03-22 Andrew Haley <aph@cygnus.com>
6255 * configure.host: Add -funwind-tables for IA64.
6256 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6257 * Makefile.in: Rebuilt.
6258 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6259 * sysdep/ia64.c: New file.
6260 * sysdep/ia64-frame.h: New file.
6261 * configure.in: Add sysdep/ia64.c for ia64.
6262 * configure: Rebuilt.
6264 2000-03-17 Andrew Haley <aph@cygnus.com>
6266 * java/lang/natString.cc: Remove `register' keyword.
6267 interpret.cc: ditto.
6269 2000-03-16 Andrew Haley <aph@cygnus.com>
6271 * configure.host (ia64): Enable interpreter.
6273 2000-03-14 Hans Boehm <boehm@acm.org>
6275 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6277 2000-03-14 Andrew Haley <aph@cygnus.com>
6279 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6282 2000-03-10 Andrew Haley <aph@cygnus.com>
6284 * java/lang/ieeefp.h: Import latest version from fdlibm.
6286 2000-03-14 Andrew Haley <aph@cygnus.com>
6288 * prims.cc (_Jv_ThrowSignal): New function.
6289 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6291 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6292 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6293 * include/ppc-signal.h: New file.
6295 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6297 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6298 * java/lang/natThread.java (initialize_native): Cast `data' to
6300 * gnu/gcj/RawData.java: Clarify documentation.
6302 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6303 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6304 `jarFile', not `jarFileURL'.
6306 2000-05-15 Andrew Haley <aph@cygnus.com>
6308 * include/ppc-signal.h: New file.
6310 2000-05-11 Tom Tromey <tromey@cygnus.com>
6312 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6313 file headers, don't include `size' in the skip call.
6315 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6317 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6318 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6320 (replace): Reimplemented. Fix javadoc.
6321 (reverse): Call ensureCapacity_unsynchronized().
6322 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6324 (replace): Calculate length for arraycopy() correctly.
6326 2000-05-09 Tom Tromey <tromey@cygnus.com>
6328 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6330 (insert(int,char[],int,int): New method.
6331 (delete): New method from Classpath.
6332 (deleteCharAt): Likewise.
6333 (substring): Likewise.
6334 (shared): No longer private.
6335 Added JavaDoc comments from Classpath.
6336 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6339 2000-05-07 Tom Tromey <tromey@cygnus.com>
6341 * Makefile.in: Rebuilt.
6342 * Makefile.am (LIBLINK): New macro.
6343 (libgcj_la_LINK): Use it.
6344 (libgcjawt_la_LINK): Likewise.
6346 2000-05-06 Tom Tromey <tromey@cygnus.com>
6348 * Makefile.in: Rebuilt.
6349 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6351 2000-05-05 Tom Tromey <tromey@cygnus.com>
6353 Fix for PR libgcj/220:
6354 * Makefile.in: Rebuilt.
6355 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6356 (jv_convert_LDFLAGS): Likewise.
6357 (libgcj_la_LDFLAGS): Likewise.
6358 (GCJLINK): New macro.
6359 (jv_convert_LINK): Use it.
6360 (gij_LINK): Likewise.
6361 (libgcj_la_LINK): New macro.
6362 (libgcjawt_la_LINK): Likewise.
6364 2000-05-04 Tom Tromey <tromey@cygnus.com>
6366 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6368 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6372 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6374 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6375 (_Jv_IsAssignableFrom): Ditto.
6376 (_Jv_IsInstanceOf): Ditto.
6377 (_Jv_CheckCast): Ditto.
6378 (_Jv_CheckArrayStore): Ditto.
6379 * java/lang/Class.h (_Jv_InitClass): Ditto.
6380 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6385 (_Jv_MonitorExit): Ditto.
6386 * boehm.cc (_Jv_MarkObj): Ditto.
6387 (_Jv_MarkObj): Ditto.
6388 (_Jv_MarkArray): Ditto.
6389 * prims.cc (_Jv_AllocObject): Ditto.
6390 (_Jv_NewObjectArray): Ditto.
6391 (_Jv_NewPrimArray): Ditto.
6392 (_Jv_Malloc): Ditto.
6393 (_Jv_Realloc): Ditto.
6394 (_Jv_MallocUnchecked): Ditto.
6400 2000-05-04 Tom Tromey <tromey@cygnus.com>
6402 * java/util/Locale.java (Locale): Don't explicitly check for
6404 * java/util/Hashtable.java (containsKey): Don't explicitly check
6407 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6409 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6411 * java/text/StringCharacterIterator.java
6412 (StringCharacterIterator): Don't check for null.
6413 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6415 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6416 check for null pointer.
6417 (leaveGroup): Likewise.
6418 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6420 (setData): Likewise.
6421 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6424 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6426 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6427 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6428 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6429 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6430 -rpath for in-gcc builds.
6431 * Makefile.in: Rebuilt.
6433 2000-04-28 Tom Tromey <tromey@cygnus.com>
6435 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6438 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6440 * libjava/java/lang/String.java (toString): Remove `final' hack.
6442 2000-04-05 Tom Tromey <tromey@cygnus.com>
6444 Runtime support for PR gcj/2:
6445 * prims.cc (_Jv_ThrowNullPointerException): New function.
6446 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6448 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6450 * prims.cc (_Jv_NewObjectArray): Fix typo.
6452 2000-04-26 Tom Tromey <tromey@cygnus.com>
6454 * Makefile.in: Rebuilt.
6455 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6457 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6459 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6462 2000-04-22 Anthony Green <green@cygnus.com>
6464 * include/jvm.h (__builtin_expect): Define as unused for now.
6465 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6469 (_Jv_MonitorExit): Ditto.
6470 * boehm.cc (_Jv_MarkObj): Ditto.
6471 (_Jv_MarkObj): Ditto.
6472 (_Jv_MarkArray): Ditto.
6473 (_Jv_AllocBytes): Ditto.
6474 * prims.cc (_Jv_AllocObject): Ditto.
6475 (_Jv_NewObjectArray): Ditto.
6476 (_Jv_NewPrimArray): Ditto.
6477 (_Jv_Malloc): Ditto.
6478 (_Jv_Realloc): Ditto.
6479 (_Jv_MallocUnchecked): Ditto.
6485 * include/Makefile.in: Rebuilt.
6486 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6488 2000-04-21 Tom Tromey <tromey@cygnus.com>
6490 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6491 Yet another new version from Classpath.
6493 Fix for PR libgcj/15:
6494 * java/util/natGregorianCalendar.cc (_REENTRANT,
6495 _POSIX_PTHREAD_SEMANTICS): Don't define.
6496 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6497 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6499 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6501 * configure: Rebuilt.
6502 * configure.in: If using POSIX threads, define _REENTRANT if
6503 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6504 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6506 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6507 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6508 version from Classpath.
6510 Fix for PR libgcj/213:
6511 * Makefile.in: Rebuilt.
6512 * Makefile.am (gij_SOURCES): Added gij.cc.
6513 (EXTRA_gij_SOURCES): Removed.
6514 (gij_LDADD): Removed gij.lo.
6515 (gij_DEPENDENCIES): Likewise.
6516 ($(gij_OBJECTS)): Depend on nat_headers.
6518 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6519 `setURL', not `url.set'.
6521 2000-04-20 Tom Tromey <tromey@cygnus.com>
6523 Fix for PR java.io/204:
6524 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6525 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6528 Fix for PR libgcj/212:
6529 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6530 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6531 * java/lang/Class.h (_Jv_word): Declare.
6533 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6535 2000-04-19 Tom Tromey <tromey@cygnus.com>
6537 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6538 doesn't have a loader.
6540 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6542 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6543 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6545 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6547 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6549 (available): Initialize `where' to prevent bogus compiler warning.
6551 2000-04-12 Tom Tromey <tromey@cygnus.com>
6553 * java/lang/natString.cc (intern): Temporarily disable finalizer
6556 * java/lang/natString.cc (unintern): Added `obj' argument.
6557 (intern): Register finalizer for string.
6558 * java/lang/String.java (unintern): Now static; added obj
6561 2000-04-11 Tom Tromey <tromey@cygnus.com>
6563 * java/util/Vector.java (VectorEnumeration): Now `final'.
6564 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6565 (HashtableEnumeration): Likewise.
6566 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6567 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6569 2000-04-10 Warren Levy <warrenl@cygnus.com>
6571 * java/io/ObjectStreamException.java: New file.
6572 * java/io/OptionalDataException.java: New file.
6573 * java/io/StreamCorruptedException.java: New file.
6574 * java/math/BigDecimal.java: New file.
6575 * java/sql/CallableStatement.java: New file.
6576 * java/sql/Connection.java: New file.
6577 * java/sql/DataTruncation.java: New file.
6578 * java/sql/DatabaseMetaData.java: New file.
6579 * java/sql/Date.java: New file.
6580 * java/sql/Driver.java: New file.
6581 * java/sql/DriverManager.java: New file.
6582 * java/sql/DriverPropertyInfo.java: New file.
6583 * java/sql/PreparedStatement.java: New file.
6584 * java/sql/ResultSet.java: New file.
6585 * java/sql/ResultSetMetaData.java: New file.
6586 * java/sql/SQLException.java: New file.
6587 * java/sql/SQLWarning.java: New file.
6588 * java/sql/Statement.java: New file.
6589 * java/sql/Time.java: New file.
6590 * java/sql/Timestamp.java: New file.
6591 * java/sql/Types.java: New file.
6592 * Makefile.am: Added above new files.
6593 * Makefile.in: Rebuilt.
6595 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6596 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6597 DatagramSocket constructor instead of null.
6599 2000-04-08 Anthony Green <green@cygnus.com>
6601 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6604 2000-04-08 Anthony Green <green@cygnus.com>
6606 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6607 (_Jv_MutexUnlock): Ditto.
6608 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6609 (_Jv_MutexUnlock): Ditto.
6611 2000-04-08 Anthony Green <green@cygnus.com>
6613 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6614 (ensureCapacity_unsynchronized): New private method.
6615 (append): Use ensureCapacity_unsynchronized.
6617 2000-04-08 Tom Tromey <tromey@cygnus.com>
6619 * Makefile.in: Rebuilt.
6620 * Makefile.am (awt_java_source_files): Added new files.
6621 * java/awt/IllegalComponentStateException.java: New file.
6622 * java/awt/ItemSelectable.java: New file.
6623 * java/awt/event/WindowEvent.java: Finished.
6624 * java/awt/event/TextEvent.java: Finished.
6625 * java/awt/event/ContainerEvent.java: New file.
6626 * java/awt/Component.java (getX, getY): New methods.
6627 * java/awt/event/PaintEvent.java: New file.
6628 * java/awt/event/MouseEvent.java: New file.
6629 * java/awt/ActiveEvent.java: New file.
6630 * java/awt/event/KeyEvent.java: Finished.
6631 * java/awt/event/ItemEvent.java: New file.
6632 * java/awt/Adjustable.java: New file.
6633 * java/awt/event/InputMethodEvent.java: New file.
6634 * java/awt/event/InputEvent.java: Finished.
6635 * java/awt/event/FocusEvent.java: New file.
6636 * java/awt/event/MouseMotionAdapter.java: New file.
6637 * java/awt/event/MouseAdapter.java: New file.
6638 * java/awt/event/KeyAdapter.java: New file.
6639 * java/awt/event/FocusAdapter.java: New file.
6640 * java/awt/event/ContainerAdapter.java: New file.
6641 * java/awt/event/ComponentEvent.java: Finished.
6642 * java/awt/event/AdjustmentEvent.java: New file.
6643 * java/awt/event/ComponentAdapter.java: New file.
6644 * java/awt/event/ActionEvent.java: Finished.
6645 * java/awt/event/MouseMotionListener.java: New file.
6646 * java/awt/event/MouseListener.java: New file.
6647 * java/awt/event/ItemListener.java: New file.
6648 * java/awt/event/InputMethodListener.java: New file.
6649 * java/awt/event/ContainerListener.java: New file.
6650 * java/awt/event/FocusListener.java: New file.
6651 * java/awt/event/ComponentListener.java: New file.
6652 * java/awt/event/AWTEventListener.java: New file.
6653 * java/awt/event/AdjustmentListener.java: New file.
6655 2000-04-08 Anthony Green <green@cygnus.com>
6657 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6658 check when we have to.
6660 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6663 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6666 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6667 inline hasMoreElements.
6669 2000-04-05 Tom Tromey <tromey@cygnus.com>
6671 * configure: Rebuilt.
6672 * configure.in: Recognize --enable-java-awt.
6673 (AWT): New conditional.
6674 * Makefile.in: Rebuilt.
6675 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6677 (libgcjawt_la_SOURCES): New macro.
6678 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6679 (libgcjawt_la_DEPENDENCIES): Likewise.
6680 (libgcjawt_la_LIBADD): Likewise.
6681 (libgcjawt_la_LDFLAGS): Likewise.
6682 (libgcj.zip): Depend on cond_java_awt_source_files
6683 (cond_awt_java_source_files): New macro.
6684 (MOSTLYCLEANFILES): Added awto_files.
6685 (awto_files): New macro. Use where javao_files used.
6686 (nat_headers): Use cond_awt_java_source_files.
6688 2000-04-04 Tom Tromey <tromey@cygnus.com>
6690 * Makefile.in: Rebuilt.
6691 * Makefile.am (awt_java_source_files): Added AWTException.java.
6692 * java/awt/AWTException.java: New file.
6694 2000-04-03 Tom Tromey <tromey@cygnus.com>
6696 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6697 commentary from Alex.
6699 * Makefile.in: Rebuilt.
6700 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6703 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6705 * configure: Rebuilt.
6706 * configure.in: Add --disable-jvmpi.
6707 * include/config.h.in: Rebuilt.
6708 * acconfig.h: Add ENABLE_JVMPI.
6710 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6711 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6712 (_Jv_JVMPI_Notify_THREAD_END): New define.
6713 (_Jv_JVMPI_Notify_THREAD_END): New define.
6714 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6715 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6716 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6718 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6721 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6722 (finish_): Generate JVMPI thread end events.
6723 (run_): Generate JVMPI thread start events.
6724 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6725 preloaded JNI library.
6726 Include JVMPI headers if necessary.
6727 (run): Generate JVMPI thread start events.
6729 * boehm.cc: Define GC_disable and GC_enable.
6730 (_Jv_DisableGC): New function.
6731 (_Jv_EnableGC): New function.
6732 (disable_gc_mutex): Declare.
6733 * nogc.cc (_Jv_DisableGC): New function.
6734 (_Jv_EnableGC): New function.
6736 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6737 (_Jv_JVMPI_Interface): Define.
6738 (jvmpiEnableEvent): New function.
6739 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6741 * include/jvmpi.h: New file.
6743 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6745 * Makefile.in: New #defines and friends for Thread.h.
6746 * Makefile.am: Ditto.
6747 * posix-threads.cc: (struct starter): Remove `object'.
6748 (_Jv_CondWait): Use interruptable condition variables and new
6749 recursive mutexes. New return codes on interrupt or non-ownership
6751 (_Jv_CondNotify): Ditto.
6752 (_Jv_CondNotifyAll): Ditto.
6753 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6754 the target thread by signaling its wait condition.
6755 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6756 not the starter struct. Initialize wait_mutex and wait_cond.
6757 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6759 (_Jv_MutexUnlock): Ditto.
6760 (really_start): Set info->data->thread from pthread_self() to work
6761 around a race condition. Destroy wait_mutex and wait_cond when run()
6763 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6764 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6766 startable_flag: New private field.
6767 (Thread): Initialize `startable_flag'.
6768 (toString): Check for null thread group.
6769 * java/lang/natThread.cc: (struct natThread): New fields
6770 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6771 (class locker): Removed.
6772 (initialize_native): Initialize `join_cond' and `join_mutex'.
6773 (interrupt): Now just calls _Jv_ThreadInterrupt().
6774 (join): Simplified. Just wait on the target thread's join condition.
6775 (finish_): Remove join list code. Unset thread group. Signal
6776 potential joiners by notifying the dying threads join_cond.
6777 (start): Check for illegal restarts.
6778 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6780 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6781 #defines and #ifdefs.
6782 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6783 `wait_mutex', `next'.
6784 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6785 directly mapping to pthread_cond_t.
6786 (struct _Jv_Mutex_t): New recursive implementation.
6787 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6788 _Jv_HaveCondDestroy: Never define this for posix-threads.
6789 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6790 (_Jv_CondNotifyAll): Ditto.
6791 (_Jv_MutexLock): Ditto.
6792 (_Jv_MutexUnlock): Ditto.
6793 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6794 (_Jv_MutexDestroy): Ditto.
6795 (_Jv_CondDestroy): Removed.
6796 (_Jv_PthreadGetMutex): Removed.
6797 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6798 error. Add a FIXME about this.
6799 (_Jv_CondNotifyAll): Ditto.
6800 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6801 _JV_NOT_OWNER on other errors. Add FIXME.
6803 2000-03-26 Tom Tromey <tromey@cygnus.com>
6805 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6807 (call): Don't throw exception here.
6809 2000-03-26 Tom Tromey <tromey@cygnus.com>
6811 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6812 * interpret.cc: Use SIZEOF_VOID_P.
6813 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6814 (_Jv_loadLong): Likewise.
6815 (_Jv_storeDouble): Likewise.
6816 * configure: Rebuilt.
6817 * configure.in: Check size of void*.
6819 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6821 2000-03-26 Hans Boehm <boehm@acm.org>
6823 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6824 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6826 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6827 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6828 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6829 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6831 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6832 (FFI_RAW_SIZE): Likewise.
6833 (_Jv_InterpMethod::ncode): Use them.
6834 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6835 STORED): Define differently on a 64 bit machine.
6836 (continue1): Use ffi_java_raw_call when appropriate.
6838 2000-03-24 Warren Levy <warrenl@cygnus.com>
6840 * java/math/BigInteger.java(divide): Handle the special case when
6841 dividing by 1 and the high bit of the dividend is set.
6842 (setShiftRight): Handle case when count == 0.
6844 2000-03-24 Warren Levy <warrenl@cygnus.com>
6846 * java/awt/Font.java(isBold): Fix syntax error.
6848 * java/awt/Frame.java(postEvent): ditto.
6849 * java/awt/Menu.java(postEvent): ditto.
6850 * java/awt/MenuBar.java(postEvent): ditto.
6851 * java/awt/Toolkit.java(init): Included a stub.
6853 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6855 * java/awt/Event.java: Add all the event type constants.
6856 (Event): Implemented constructors.
6857 (controlDown): Implemented.
6858 (metaDown): Implemented.
6859 (paramString): Stubbed.
6860 (shiftDown): Implemented.
6861 (toString): Implemented.
6862 (translate): Implemented.
6864 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6866 * java/lang/natClass.cc (isInstance): Initialize `this'.
6867 (isAssignableFrom): Initialize `this' and `klass'.
6868 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6869 implemented by any loaded class, so return false.
6870 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6871 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6873 2000-03-19 Warren Levy <warrenl@cygnus.com>
6875 * java/awt/Color.java: Specified java.io for Serializable.
6876 * java/awt/Toolkit.java: Imported java.net.URL.
6878 2000-03-19 Warren Levy <warrenl@cygnus.com>
6880 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6882 2000-03-16 Warren Levy <warrenl@cygnus.com>
6884 * java/awt/Color.java: New file.
6885 * java/awt/Graphics.java: New file.
6886 * java/awt/Image.java: New file.
6887 * java/awt/Paint.java: New file.
6888 * java/awt/PaintContext.java: New file.
6889 * java/awt/Transparency.java: New file.
6890 * java/util/Collection.java: New file.
6891 * java/util/Comparator.java: New file.
6892 * java/util/Iterator.java: New file.
6893 * java/util/List.java: New file.
6894 * java/util/ListIterator.java: New file.
6895 * Makefile.am: Added above new files.
6896 * Makefile.in: Rebuilt.
6898 * java/awt/Font.java (PLAIN): New field.
6900 (ITALIC): New field.
6901 (ROMAN_BASELINE): New field.
6902 (CENTER_BASELINE): New field.
6903 (HANGING_BASELINE): New field.
6907 (pointSize): New field.
6908 (Font): Implemented constructor.
6909 (isPlain): Implemented method.
6910 (isBold): Implemented method.
6911 (isItalic): Implemented method.
6912 (getName): Implemented method.
6913 (getStyle): Implemented method.
6914 (getSize): Implemented method.
6915 (getSize2D): Implemented method.
6917 * java/awt/Frame.java (getFont): Stubbed.
6918 (postEvent): Stubbed.
6920 * java/awt/Menu.java (postEvent): Stubbed.
6921 * java/awt/MenuBar.java (getFont): Stubbed.
6922 (postEvent): Stubbed.
6923 * java/awt/Toolkit.java (getImage): Added abstract method.
6925 2000-03-15 Tom Tromey <tromey@cygnus.com>
6927 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6929 * prims.cc (win32_exception_handler): Reformatted.
6931 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6932 (_Jv_HaveMutexDestroy): Likewise.
6934 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6936 * java/io/natFileDescriptorWin32.cc: New file.
6937 * java/io/natFileWin32.cc: New file.
6938 * java/net/natInetAddress.cc: Added conditional inclusion of
6939 Windows / Winsock headers.
6940 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6941 inclusion of Windows / Winsock headers.
6942 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6943 Windows / Winsock headers.
6944 * include/win32-signal.h: New file.
6945 * include/win32-threads.h: New file.
6946 * win32-threads.cc: New file.
6947 * exception.cc (win32_get_restart_frame): New function.
6948 * prims.cc (win32_exception_handler): New function.
6949 (main_init) Performs Winsock initialisation.
6950 (main_init) Installs exeception handler.
6952 2000-03-14 Tom Tromey <tromey@cygnus.com>
6954 * jni.cc (mangled_name): Fixed assertion.
6955 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6956 turned assert into actual failure.
6958 2000-03-09 Warren Levy <warrenl@cygnus.com>
6960 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6961 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6962 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6964 2000-03-09 Warren Levy <warrenl@cygnus.com>
6966 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6967 * java/security/DigestException.java: New file.
6968 * java/security/GeneralSecurityException.java: New file.
6969 * java/security/InvalidAlgorithmParameterException.java: New file.
6970 * java/security/InvalidKeyException.java: New file.
6971 * java/security/InvalidParameterException.java: New file.
6972 * java/security/Key.java: New file.
6973 * java/security/KeyException.java: New file.
6974 * java/security/KeyPair.java: New file.
6975 * java/security/KeyPairGenerator.java: New file.
6976 * java/security/KeyPairGeneratorSpi.java: New file.
6977 * java/security/NoSuchProviderException.java: New file.
6978 * java/security/PrivateKey.java: New file.
6979 * java/security/Provider.java: New file.
6980 * java/security/PublicKey.java: New file.
6981 * java/security/SecureRandom.java: New file.
6982 * java/security/Security.java: New file.
6983 * java/security/Signature.java: New file.
6984 * java/security/SignatureException.java: New file.
6985 * java/security/interfaces/DSAKey.java: New file.
6986 * java/security/interfaces/DSAParams.java: New file.
6987 * java/security/interfaces/DSAPrivateKey.java: New file.
6988 * java/security/interfaces/DSAPublicKey.java: New file.
6989 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6990 * java/security/interfaces/RSAPrivateKey.java: New file.
6991 * java/security/interfaces/RSAPublicKey.java: New file.
6992 * java/security/spec/AlgorithmParameterSpec.java: New file.
6993 * java/security/spec/InvalidKeySpecException.java: New file.
6994 * java/security/spec/InvalidParameterSpecException.java: New file.
6995 * java/security/spec/KeySpec.java: New file.
6996 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6997 * java/security/spec/RSAPrivateKeySpec.java: New file.
6998 * java/security/spec/RSAPublicKeySpec.java: New file.
6999 * Makefile.am: Added above java.security files.
7000 * Makefile.in: Rebuilt.
7002 * java/security/MessageDigest.java: Rewritten.
7003 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7005 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7009 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7011 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7012 _Jv_PrepareConstantTimeTables.
7013 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7014 classes should have an IDT, so don't return if klass is an array
7017 2000-03-08 Tom Tromey <tromey@cygnus.com>
7019 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7020 of `void' to be created.
7022 2000-03-08 Warren Levy <warrenl@cygnus.com>
7024 * java/math/BigInteger.java(signum): Handle zero properly.
7026 2000-03-07 Tom Tromey <tromey@cygnus.com>
7028 * All files: Updated copyright information.
7029 * COPYING: New file.
7030 * COPYING.LIB: Removed.
7031 * LIBGCJ_LICENSE: We now use GPL + special exception.
7033 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7035 * resolve.cc (_Jv_SearchMethodInClass): New function.
7036 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7037 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7039 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7041 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7042 (struct _Jv_ifaces): New declaration.
7043 JV_CLASS: New macro definition.
7044 (getComponentType): Relocate below isArray() for inlining.
7045 (getModifiers): Declare `inline'.
7046 (getSuperclass): Ditto.
7048 (isPrimitive): Ditto.
7049 (_Jv_IsAssignableFrom): New prototype.
7050 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7052 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7053 Check for JV_STATE_DONE before invoking initializeClass().
7054 (_Jv_PrepareConstantTimeTables): New prototype.
7055 (_Jv_GetInterfaces): Ditto.
7056 (_Jv_GenerateITable): Ditto.
7057 (_Jv_GetMethodString): Ditto.
7058 (_Jv_AppendPartialITable): Ditto.
7059 (_Jv_FindIIndex): Ditto.
7060 depth, ancestors, idt: New class fields.
7062 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7063 inline function `_Jv_IsAssignableFrom'. Use that function.
7064 (isInstance): Declare `inline'.
7065 (initializeClass): Get lock on class before checking `state'. Unlock
7066 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7068 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7069 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7070 class->depth and ancestor table.
7071 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7072 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7073 _Jv_IsAssignableFrom.
7074 (_Jv_CheckArrayStore): Ditto.
7075 (_Jv_LookupInterfaceMethodIdx): New function.
7076 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7077 (_Jv_PrepareConstantTimeTables): New function.
7078 (_Jv_IndexOf): Ditto.
7079 (_Jv_GetInterfaces): Ditto.
7080 (_Jv_GenerateITable): Ditto.
7081 (_Jv_GetMethodString): Ditto.
7082 (_Jv_AppendPartialITable): Ditto.
7083 iindex_mutex, iindex_mutex_initialized: New static fields.
7084 (_Jv_FindIIndex): New function.
7086 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7088 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7089 (_Jv_CheckArrayStore): Ditto.
7090 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7091 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7092 Moved to gcj/array.h.
7093 (_Jv_Realloc): New function.
7095 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7097 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7098 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7099 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7100 JvNewDoubleArray): Implementations moved from prims.cc and
7103 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7105 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7107 2000-03-06 Tom Tromey <tromey@cygnus.com>
7109 * jni.cc (MARK_NONE): New define.
7110 (MARK_USER): Likewise.
7111 (MARK_SYSTEM): Likewise.
7112 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7114 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7115 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7116 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7117 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7119 (call): Use MARK_SYSTEM.
7120 (_Jv_GetJNIEnvNewFrame): New function.
7121 (_Jv_LookupJNIMethod): New function.
7122 (_Jv_JNI_PopSystemFrame): New function.
7123 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7125 2000-03-05 Tom Tromey <tromey@cygnus.com>
7127 Fix for PR libgcj/43:
7128 * include/Makefile.in: Rebuilt.
7129 * include/Makefile.am (include_HEADERS): New define.
7131 2000-03-05 Anthony Green <green@redhat.com>
7133 * gcj/javaprims.h ("Java"): Remove FirstThread.
7135 * configure.host: Fix __NO_MATH_INLNES botch.
7137 * Makefile.in: Rebuilt.
7138 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7139 (gnu/gcj/runtime/FirstThread.h): Moved.
7140 (ordinary_java_source_files): Move FirstThread.java.
7141 * prims.cc: Deal with FirstThread movement.
7143 (_Jv_RunMain): Ditto.
7145 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7146 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7148 2000-03-05 Warren Levy <warrenl@cygnus.com>
7150 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7151 Handle null addresses.
7153 2000-03-04 Anthony Green <green@redhat.com>
7155 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7158 2000-03-04 Anthony Green <green@redhat.com>
7160 * configure: Rebuilt.
7161 * configure.in (ZLIBTESTSPEC): New macro.
7162 (GCTESTSPEC): New macro.
7163 (LIBGCJTESTSPEC): New macro.
7164 * libgcj-test.spec.in: New file.
7166 2000-03-02 Tom Tromey <tromey@cygnus.com>
7168 * include/java-interp.h: Don't include MethodInvocation.h.
7169 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7170 * Makefile.in: Rebuilt.
7171 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7172 (ordinary_java_source_files): Don't mention
7173 MethodInvocation.java.
7174 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7175 * interpret.cc (MethodInvocation::continue1): Removed.
7176 (run): Handle exceptions here.
7177 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7179 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7181 (defineClass2): Removed.
7183 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7185 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7187 (hack_call): Removed.
7189 * java/lang/Class.h (Class): Removed hackRunInitializers,
7191 * java/lang/natClass.cc (hackRunInitializers): Removed.
7192 (initializeClass): Catch exceptions here.
7193 Include ExceptionInInitializerError.h.
7194 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7197 * java/lang/Object.h (Object): Don't mention hack12_6.
7198 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7200 * java/lang/Object.java (hack12_6): Removed.
7202 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7203 (start): Use run_, not run__.
7204 * java/lang/Thread.java (run_): Renamed from run__; old run_
7207 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7208 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7209 (_Jv_JNI_DefineClass): Likewise.
7210 (_Jv_JNI_ThrowNew): Likewise.
7211 (_Jv_JNI_AllocObject): Likewise.
7212 (_Jv_JNI_GetAnyMethodID): Likewise.
7213 (_Jv_JNI_CallAnyMethodV): Likewise.
7214 (_Jv_JNI_CallAnyMethodA): Likewise.
7215 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7216 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7217 (_Jv_JNI_GetAnyFieldID): Likewise.
7218 (_Jv_JNI_NewString): Likewise.
7219 (_Jv_JNI_NewStringUTF): Likewise.
7220 (_Jv_JNI_GetStringUTFChars): Likewise.
7221 (_Jv_JNI_NewObjectArray): Likewise.
7222 (_Jv_JNI_NewPrimitiveArray): Likewise.
7223 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7224 (_Jv_JNI_GetStringRegion): Likewise.
7225 (_Jv_JNI_GetStringUTFRegion): Likewise.
7226 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7227 (_Jv_JNI_MonitorEnter): Likewise.
7228 (_Jv_JNI_MonitorExit): Likewise.
7229 (_Jv_JNI_ToReflectedField): Likewise.
7230 (_Jv_JNI_ToReflectedMethod): Likewise.
7231 (_Jv_JNI_RegisterNatives): Likewise.
7232 (_Jv_JNI_AttachCurrentThread): Likewise.
7233 (_Jv_JNI_DestroyJavaVM): Likewise.
7235 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7237 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7238 error caused by the incorrect casting of a long to an int.
7240 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7242 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7243 SIGSEV caused by use of the wrong instance variable.
7245 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7247 * java/io/File.java (File(String, String)): For dirPath, treat an
7248 empty String the same as `null'.
7250 2000-02-26 Anthony Green <green@cygnus.com>
7252 * gnu/gcj/io/MimeTypes.java: Test for null.
7254 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7255 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7257 * java/net/URLConnection.java: Update copyright notice.
7259 2000-02-25 Tom Tromey <tromey@cygnus.com>
7261 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7264 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7266 * java/net/URLConnection.java (initializeDateFormats): New
7268 (getHeaderFieldDate): Call initializeDateFormats if required.
7269 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7271 Fix for PR libgcj/38.
7273 2000-02-24 Warren Levy <warrenl@cygnus.com>
7275 * java/math/BigInteger.java(ival): Made private.
7279 2000-02-20 Anthony Green <green@cygnus.com>
7281 * Makefile.in: Rebuilt.
7282 * Makefile.am (ordinary_java_source_files): Add
7283 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7285 * scripts/MakeDefaultMimeTypes.java: New file.
7286 * scripts/mime.types: New file.
7287 * scripts/classes.pl: Moved from top level.
7288 * classes.pl: Moved to scripts directory.
7290 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7292 * gnu/gcj/io/MimeTypes.java: New file.
7293 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7295 2000-02-20 Tom Tromey <tromey@cygnus.com>
7297 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7299 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7301 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7304 2000-02-18 Tom Tromey <tromey@cygnus.com>
7306 * include/jvm.h (_Jv_GetJavaVM): Declare.
7307 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7308 (_Jv_MethodBase::get_method): New method.
7309 (_Jv_JNIMethod::set_function): New method.
7310 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7311 (_Jv_JNI_RegisterNatives): New function.
7312 (_Jv_JNIFunctions): Updated for new functions.
7313 (_Jv_GetJavaVM): New function.
7314 (_Jv_JNI_GetJavaVM): Use it. Now static.
7315 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7316 is already a Java thread but does not have a JNIEnv yet.
7318 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7321 2000-02-17 Tom Tromey <tromey@cygnus.com>
7323 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7326 2000-02-16 Tom Tromey <tromey@cygnus.com>
7328 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7330 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7331 (_Jv_JNI_NewObject): Likewise.
7332 (_Jv_JNI_NewObjectA): Likewise.
7333 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7334 as "return" type to _Jv_CallAnyMethodA.
7335 (_Jv_JNI_CallAnyMethodA): Likewise.
7336 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7338 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7341 2000-02-15 Tom Tromey <tromey@cygnus.com>
7343 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7345 (init_cif): Added `rtype_p' argument.
7346 * include/java-interp.h (class _Jv_MethodBase): Added
7348 (class _Jv_InterpMethod): Removed args_raw_size.
7349 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7350 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7351 class pointer as well as the ordinary arguments.
7353 * jni.cc (mangled_name): Skip leading `(' in signature.
7355 * jni.cc (add_char): Added missing `else'.
7357 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7360 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7364 * java/lang/natRuntime.cc (_load): Include library path with
7367 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7370 * java/lang/natThread.cc (dumpStack): Removed.
7371 * java/lang/Thread.java (dumpStack): Implemented.
7373 2000-02-15 Tom Tromey <tromey@cygnus.com>
7375 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7376 with `lib' for loadLibrary. Fixes PR gcj/150.
7378 2000-02-14 Warren Levy <warrenl@cygnus.com>
7380 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7382 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7386 (modPow): Rewritten to not use the naive, slow, brute force approach.
7387 (isProbablePrime): Implemented.
7388 (testBit): Implemented.
7389 (flipBit): Implemented.
7390 (getLowestSetBit): Implemented.
7392 2000-02-16 Anthony Green <green@redhat.com>
7394 * configure.host: Use the same options for i386 and i486 as we do
7397 2000-02-12 Tom Tromey <tromey@cygnus.com>
7399 * java/io/File.java (createTempFile): Use low bits from counter,
7402 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7404 * THANKS: More thanks.
7406 2000-02-11 Tom Tromey <tromey@cygnus.com>
7408 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7409 astore instruction. From Hans Boehm.
7411 2000-02-11 Warren Levy <warrenl@cygnus.com>
7413 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7414 (BigInteger(String)): New constructor.
7415 (not): Rewritten using version from Kawa's BitOps class.
7416 (valueOf): New private methods from Kawa's BitOps class.
7423 (andNot): Implemented.
7424 (clearBit): Implemented.
7425 (setBit): Implemented.
7426 (bitCount): Implemented.
7427 (toByteArray): Implemented.
7429 2000-02-11 Tom Tromey <tromey@cygnus.com>
7431 * java/io/File.java (nextValue): Now synchronized.
7433 2000-02-10 Tom Tromey <tromey@cygnus.com>
7435 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7436 * java/io/FileDescriptor.java (EXCL): New static field.
7437 * java/io/File.java (tmpdir): New static field.
7438 (createTempFile): New method.
7439 (nextValue): New method.
7440 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7443 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7444 (jboolean): Declare as an attributed int, not a bool.
7445 (_Jv_func): Declare differently for C.
7447 * gnu/gcj/jni/natNativeThread.cc: New file.
7448 * gnu/gcj/jni/NativeThread.java: New file.
7449 * java/lang/Thread.java (data): Now a RawData.
7450 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7452 * Makefile.in: Rebuilt.
7453 * Makefile.am (java/lang/Thread.h): New target.
7454 (ordinary_java_source_files): Added NativeThread.java.
7455 (nat_source_files): Added natNativeThread.cc.
7456 * java/lang/natThread.cc: Include <jni.h>
7457 (struct natThread): Added `jni_env' field.
7458 (_Jv_GetCurrentJNIEnv): New function.
7459 (_Jv_SetCurrentJNIEnv): Likewise.
7460 (initialize_native): Initialize jni_env.
7462 * jni.cc (ThreadGroupClass): New define.
7463 (_Jv_JNI_InvokeFunctions): New structure.
7464 (JNI_GetCreatedJavaVMs): New function.
7465 (the_vm): New global.
7466 (JNI_GetDefaultJavaVMInitArgs): New function.
7467 Include NativeThread.h.
7468 (NativeThreadClass): New define.
7469 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7470 (_Jv_JNI_DestroyJavaVM): New function.
7471 (_Jv_JNI_AttachCurrentThread): New function.
7472 (_Jv_JNI_DetachCurrentThread): New function.
7473 (_Jv_JNI_GetEnv): New function.
7474 (JNI_CreateJavaVM): New function.
7475 (_Jv_JNI_GetJavaVM): New function.
7476 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7477 * include/jni.h (JavaVMAttachArgs): New structure.
7478 (JNI_EDETACHED): New define.
7479 (JNI_EVERSION): Likewise.
7480 (JavaVM): Define properly.
7481 (struct JNIInvokeInterface): New structure.
7482 (class _Jv_JavaVM): New class.
7483 (JNI_OnLoad, JNI_OnUnload): Declare.
7484 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7485 JNI_GetCreatedJavaVMs): Declare.
7486 (JavaVMInitArgs): New typedef.
7487 (JavaVMOption): Likewise.
7488 (JNI_ERR): New define.
7491 2000-02-10 Andrew Haley <aph@cygnus.com>
7493 * interpret.cc: Don't include fdlibm.h.
7494 Replace #if with #ifdef throughout.
7495 Declare extern __ieee754_fmod.
7496 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7498 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7499 Search class hierarchy for superclass vtable.
7501 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7502 off the end of a pointer list.
7504 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7508 2000-02-09 Tom Tromey <tromey@cygnus.com>
7510 * java/lang/natRuntime.cc (_load): Call add_library.
7511 (loadLibraryInternal): Likewise.
7513 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7514 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7515 (Output_iconv::finalize): Likewise.
7517 2000-02-08 Tom Tromey <tromey@cygnus.com>
7519 * java/util/Properties.java (setProperty): New method.
7520 (store): New method.
7522 2000-02-07 Tom Tromey <tromey@cygnus.com>
7524 * java/lang/Runtime.java (_load): Declare.
7525 (load, loadLibrary): Wrote in terms of _load.
7526 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7528 (loadLibrary): Likewise.
7530 (_load): New method.
7531 (loadLibrary, load): Removed.
7533 * jni.cc (ThrowableClass): New define.
7534 (_Jv_JNI_Throw): Check argument.
7535 (_Jv_JNI_ThrowNew): Likewise.
7536 (wrap_value): Don't wrap object if it is NULL.
7537 (_Jv_JNI_DefineClass): Use wrap_value.
7538 (_Jv_JNI_FindClass): Likewise.
7539 (_Jv_JNI_GetSuperclass): Likewise.
7540 (_Jv_JNI_ExceptionOccurred): Likewise.
7541 (_Jv_JNI_AllocObject): Likewise.
7542 (_Jv_JNI_GetObjectClass): Likewise.
7543 (_Jv_JNI_NewString): Likewise.
7544 (_Jv_JNI_NewStringUTF): Likewise.
7545 (_Jv_JNI_NewObjectArray): Likewise.
7546 (_Jv_JNI_GetObjectArrayElement): Likewise.
7547 (_Jv_JNI_NewPrimitiveArray): Likewise.
7548 (_Jv_JNI_ToReflectedField): Likewise.
7549 (_Jv_JNI_ToReflectedMethod): Likewise.
7550 (_Jv_JNI_AllocObject): Check argument.
7551 (_Jv_JNI_NewObjectV): Likewise.
7552 (_Jv_JNI_NewObject): Likewise.
7553 (_Jv_JNI_NewObjectA): Likewise.
7554 (_Jv_JNI_GetObjectClass): Likewise.
7555 (_Jv_JNI_GetField): Likewise.
7556 (_Jv_JNI_SetField): Likewise.
7558 * interpret.cc (PUSHL): Don't use expression statement.
7563 * jni.cc (add_char): Conditional on INTERPRETER.
7564 (mangled_name): Likewise.
7566 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7568 (class _Jv_JNIMethod): Likewise.
7570 2000-02-04 Warren Levy <warrenl@cygnus.com>
7572 * Makefile.am: Added MPN.java and BigInteger.java.
7573 * Makefile.in: Rebuilt.
7574 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7576 * java/math/BigInteger.java: New file. Based primarily on
7577 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7579 2000-02-04 Tom Tromey <tromey@cygnus.com>
7581 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7583 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7584 if the method is native.
7585 * resolve.cc (ncode): Don't handle native methods.
7586 (_Jv_JNIMethod::ncode): New method.
7587 (_Jv_PrepareClass): Handle native methods.
7588 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7589 Include AbstractMethodError.h.
7590 (add_char): New function.
7591 (mangled_name): Likewise.
7592 * include/java-interp.h (class _Jv_JNIMethod): New class.
7593 (class _Jv_MethodBase): New class.
7594 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7595 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7598 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7599 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7600 libraries): New globals.
7601 (add_library): New function.
7602 (_Jv_FindSymbolInExecutable): New function.
7604 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7607 2000-02-04 Andrew Haley <aph@cygnus.com>
7609 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7610 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7611 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7612 printStackTrace to printRawStackTrace.
7614 2000-02-03 Tom Tromey <tromey@cygnus.com>
7616 * java/util/Calendar.java (toString): New method.
7617 * java/util/SimpleTimeZone.java (clone): New method.
7618 (toString): New method.
7619 * java/util/TimeZone.java (clone): New method.
7620 * java/text/SimpleDateFormat.java (clone): New method.
7621 * java/text/NumberFormat.java (clone): New method.
7622 (equals): New method.
7623 * java/text/Format.java (clone): New method.
7624 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7626 (clone): New method.
7627 * java/text/DateFormat.java (clone): New method.
7628 * java/text/Collator.java (clone): New method.
7630 2000-02-03 Tom Tromey <tromey@cygnus.com>
7632 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7635 2000-02-01 Tom Tromey <tromey@cygnus.com>
7637 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7638 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7639 constructing the closure if the function is native.
7640 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7641 a template function, #if'd out, or static.
7642 Include <java-interp.h>.
7644 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7646 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7648 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7649 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7651 (wrap_value): New function.
7652 (_Jv_JNI_CallAnyMethodV): Use it.
7653 (_Jv_JNI_CallAnyMethodA): Likewise.
7654 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7655 (_Jv_JNI_GetStaticField): Likewise.
7657 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7658 (_Jv_JNI_GetStaticField): Likewise.
7660 2000-01-31 Tom Tromey <tromey@cygnus.com>
7662 * prims.cc (_Jv_MallocUnchecked): New function.
7663 (main_init): Call _Jv_JNI_Init.
7664 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7665 (_Jv_JNI_Init): Declare.
7666 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7668 (_Jv_JNI_NewGlobalRef): New function.
7669 (_Jv_JNI_DeleteGlobalRef): New function.
7670 (_Jv_JNI_DeleteLocalRef): New function.
7671 (_Jv_JNI_conversion_call): Initialize and clear local reference
7673 (_Jv_JNI_NewLocalRef): New function.
7674 (struct _Jv_JNI_LocalFrame): New structure.
7675 (_Jv_JNI_PushLocalFrame): New function.
7676 (_Jv_JNI_EnsureLocalCapacity): New function.
7677 (FRAME_SIZE): New define.
7678 (_Jv_JNI_GetStringChars): Mark string, not characters.
7679 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7680 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7681 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7683 (_Jv_JNI_DefineClass): Make return value a local ref.
7684 (_Jv_JNI_FindClass): Likewise.
7685 (_Jv_JNI_GetSuperclass): Likewise.
7686 (_Jv_JNI_ExceptionOccurred): Likewise.
7687 (_Jv_JNI_AllocObject): Likewise.
7688 (_Jv_JNI_GetObjectClass): Likewise.
7689 (_Jv_JNI_CallAnyMethodV): Likewise.
7690 (_Jv_JNI_NewString): Likewise.
7691 (_Jv_JNI_NewStringUTF): Likewise.
7692 (_Jv_JNI_NewObjectArray): Likewise.
7693 (_Jv_JNI_GetObjectArrayElement): Likewise.
7694 (_Jv_JNI_ToReflectedField): Likewise.
7695 (_Jv_JNI_ToReflectedMethod): Likewise.
7696 (_Jv_JNIFunctions): Updated table for new functions.
7697 (_Jv_JNI_Init): New function.
7698 (mark_for_gc): Wrote.
7699 (unmark_for_gc): Wrote.
7700 * include/jni.h (struct JNINativeInterface): Removed name from
7701 PopLocalFrame parameter.
7702 (class _Jv_JNIEnv): Added `locals' field.
7704 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7706 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7709 2000-01-30 Tom Tromey <tromey@cygnus.com>
7711 * include/config.h.in: Rebuilt.
7712 * acconfig.h (HAVE_ICONV): Define.
7713 * configure: Rebuilt.
7714 * configure.in: Check for `iconv' function.
7715 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7716 no specific encoder exists.
7717 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7718 no specific encoder exists.
7719 * Makefile.in: Rebuilt.
7720 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7722 (nat_source_files): Added natIconv.cc.
7723 * gnu/gcj/convert/natIconv.cc: New file.
7724 * gnu/gcj/convert/Input_iconv.java: New file.
7725 * gnu/gcj/convert/Output_iconv.java: New file.
7727 2000-01-28 Tom Tromey <tromey@cygnus.com>
7729 * Makefile.in: Rebuilt.
7730 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7732 2000-01-26 Tom Tromey <tromey@cygnus.com>
7734 * gcj/method.h (JvNumMethods): Moved from Class.h.
7735 (JvGetFirstMethod): Likewise.
7736 * java/lang/Class.h (Object): Updated decl of
7737 _Jv_JNI_ToReflectedField.
7738 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7739 * Makefile.in: Rebuilt.
7740 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7741 argument of _Jv_JNI_ToReflectedField.
7742 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7744 (java/lang/reflect/Method.h): Likewise.
7745 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7747 (jweak): New typedef.
7748 (struct JNINativeInterface): Correctly declare remaining entries.
7749 * jni.cc: Include Class.h, ClassLoader.h.
7750 (_Jv_JNI_FindClass): New function.
7751 (_Jv_JNI_DefineClass): New function.
7752 (_Jv_JNI_conversion_call): New function.
7753 (_Jv_JNI_FindClass): Use current class loader to find class.
7754 (_Jv_JNI_ExceptionCheck): New function.
7755 (_Jv_JNI_FromReflectedField): Now static.
7756 (MethodClass): New define.
7757 (_Jv_JNI_FromReflectedMethod): New function.
7758 (_Jv_JNI_ToReflectedMethod): Likewise.
7760 (_Jv_JNI_IsAssignableFrom): Renamed.
7761 (_Jv_JNI_GetStringRegion): New function.
7762 Include StringIndexOutOfBoundsException.h.
7763 (_Jv_JNI_GetStringUTFRegion): New function.
7764 (_Jv_JNIFunctions): Updated for new functions.
7765 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7766 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7767 (_Jv_JNI_GetStringCritical): New function.
7768 (_Jv_JNI_ReleaseStringCritical): Likewise.
7769 (get_throwable): Removed.
7770 (GCJ_JV_JNIENV_FRIEND): Removed.
7771 (__GCJ_JNI_IMPL__): Define.
7774 * resolve.cc (get_ffi_type_from_signature): Handle case where
7777 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7779 * interpret.cc (run): Don't call println.
7780 Don't include PrintStream.h.
7782 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7783 nameIndex. Use "jint" as type for boffset.
7784 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7786 (Class): Likewise. Also changed type of method_count,
7787 vtable_method_count, size_in_bytes, field_count,
7788 static_field_count, interface_count.
7789 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7792 2000-01-21 Tom Tromey <tromey@cygnus.com>
7794 * java/lang/reflect/natConstructor.cc (newInstance): Use
7796 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7797 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7798 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7801 (invoke): Use _Jv_CallAnyMethodA.
7803 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7804 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7806 (struct _Jv_Method): Added getNextMethod method.
7807 (JvNumMethods): New function.
7808 (JvGetFirstMethod): Likewise.
7809 * gcj/field.h (JvGetFirstStaticField): New function.
7810 (JvNumStaticFields): Likewise.
7811 (getNextField): Renamed from getNextInstanceField.
7812 (struct _Jv_Field): New method getClass.
7813 * jni.cc: Wrote many new functions.
7814 * include/jni.h (JNI_TRUE): Define.
7815 (JNI_FALSE): Likewise.
7816 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7817 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7818 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7819 (jfieldID, jmethodID): Likewise.
7820 (JNI_COMMIT, JNI_ABORT): New defines.
7821 (JNINativeMethod): New struct.
7822 (struct JNINativeInterface): Correctly declared more entries.
7823 (class _Jv_JNIEnv): Added `ex' member.
7824 (JNI_VERSION_1_1): New define.
7825 (JNI_VERSION_1_2): Likewise.
7827 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7828 getNextInstanceField.
7830 2000-01-20 Tom Tromey <tromey@cygnus.com>
7832 * resolve.cc (StringClass): Removed.
7833 * defineclass.cc (StringClass): Removed.
7835 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7839 2000-01-19 Tom Tromey <tromey@cygnus.com>
7841 * interpret.cc (PC_REGISTER_ASM): Removed.
7843 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7844 From Bryce McKinlay.
7846 * All files: Updated copyright to reflect Cygnus purchase.
7848 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7850 * configure: Rebuilt.
7851 * configure.in: Recognize --disable-interpreter.
7853 2000-01-18 Andrew Haley <aph@cygnus.com>
7855 * name-finder.cc (lookup): Check for dladdr function.
7856 acconfig.h (HAVE_DLADDR): Add.
7857 configure.in: Check for HAVE_DLADDR
7859 include/config.h.in: Rebuilt.
7861 2000-01-17 Andrew Haley <aph@cygnus.com>
7863 * prims.cc (_Jv_RunMain): Set the name of this executable.
7865 2000-01-17 Tom Tromey <tromey@cygnus.com>
7867 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7868 when backtrace can't be computed.
7870 * configure: Rebuilt.
7871 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7873 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7874 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7875 (_Jv_FindClassInCache): Likewise.
7876 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7877 (findSystemClass): Try to load class from compiled module.
7879 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7880 (loadLibrary): Likewise.
7881 (lt_preloaded_symbols): Define.
7882 (loadLibraryInternal): New method.
7883 * include/config.h.in: Rebuilt.
7884 * acconfig.h (USE_LTDL): Added.
7885 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7886 (INCLUDES): Added $(INCLTDL).
7887 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7888 (libgcj_la_LIBADD): Likewise.
7889 * aclocal.m4, configure: Rebuilt.
7890 * configure.in: Added libltdl support.
7892 2000-01-15 Tom Tromey <tromey@cygnus.com>
7894 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7896 2000-01-14 Andrew Haley <aph@cygnus.com>
7898 * java/lang/natThrowable.cc: New file.
7900 * java/lang/Throwable.java (fillInStackTrace): Make native.
7901 (printStackTrace): Call native method to do this.
7902 (Throwable): Call fillInStackTrace.
7903 (stackTrace): New variable.
7905 * include/jvm.h: Add _Jv_ThisExecutable functions.
7907 * prims.cc: (_Jv_execName): New variable.
7908 (catch_segv): Call fillInStackTrace.
7910 (_Jv_ThisExecutable): New functions.
7911 (JvRunMain): Set the name of this executable.
7913 * Makefile.am: Add java/lang/natThrowable.cc.
7915 * Makefile.in: Rebuilt.
7917 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7919 * configure.in: Force link with __frame_state_for in
7920 FORCELIBGCCSPEC. Add new checks for backtrace.
7921 * include/config.h.in: Rebuilt.
7923 * name-finder.cc: New file.
7924 * include/name-finder.h: New file.
7926 2000-01-16 Anthony Green <green@cygnus.com>
7928 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7931 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7933 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7935 2000-01-13 Tom Tromey <tromey@cygnus.com>
7937 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7938 not system loader, as initiating loader.
7940 2000-01-11 Tom Tromey <tromey@cygnus.com>
7942 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7943 HP/UX. From David Scott Urban.
7945 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7947 * java/lang/natMath.cc (pow): Cast args to `double', not
7950 (IEEEremainder): Likewise.
7951 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7952 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7954 2000-01-09 Anthony Green <green@cygnus.com>
7956 * java/lang/natString.cc (init): Test for overflow condition
7957 during out of bounds check.
7958 (getChars): Throw StringIndexOutOfBoundsException, not
7959 ArrayIndexOutOfBoundsException.
7961 (regionMatches): Obey case option during string comparison.
7963 * configure.host (ligcj_interpreter): New variable. Enable
7964 interpreter by default on IA-32.
7965 * configure.in: Examine libgcj_interpreter.
7966 * configure: Rebuilt.
7968 2000-01-07 Tom Tromey <tromey@cygnus.com>
7970 * mauve-libgcj: Don't disable ClassTest.
7972 * java/lang/natClass.cc (getClasses): Wrote.
7974 2000-01-06 Tom Tromey <tromey@cygnus.com>
7976 * java/lang/natClass.cc (_getConstructors): Correctly check
7977 whether method name is the init name.
7978 (getMethod): Look at accflags on method in `klass', not `this'.
7980 2000-01-05 Tom Tromey <tromey@cygnus.com>
7982 * java/lang/natClass.cc (getMethod): Compute offset relative to
7983 `klass's methods table, not `this's table.
7985 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7986 In unwrapping/widening case, check whether `k' is null, not
7987 whether it is primitive. Initialize `num' from `argelts', not
7988 `paramelts'. Correct create and pass arguments to ffi_call.
7989 Don't let presence of `this' argument affect index used to look in
7991 (COPY): Set appropriate element in `values' vector.
7993 * java/lang/natClass.cc: Include <gcj/method.h>.
7995 * java/lang/Class.h (_getMethods): Correctly declare as private,
7998 * java/lang/Class.h (_getMethods): Declare.
7999 * java/lang/Class.java (_getMethods): Declare.
8000 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8001 (getDeclaredClasses): Always return empty array.
8002 (_getMethods): New method.
8003 (getMethods): Wrote.
8004 (getDeclaredMethod): Return `rmethod'.
8005 (finit_name): New global.
8006 (getDeclaredMethods): Check for finit_name.
8007 (_getMethods): Likewise.
8008 (getMethod): Only return public methods.
8010 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8011 jboolean and select correct ffi type on that basis.
8012 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8013 Constructor call always has `void' return type.
8015 2000-01-04 Tom Tromey <tromey@cygnus.com>
8017 * java/lang/Class.h (getSignature): Updated.
8018 * java/lang/Class.java (getSignature): Updated.
8019 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8021 (getConstructor): Ensure constructor is public.
8022 (_getConstructors): Check for public-ness of constructor when
8023 `declared' is false, not when it is true.
8025 2000-01-04 Warren Levy <warrenl@cygnus.com>
8027 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8029 (receive): Set the sender's address in the DatagramPacket.
8031 2000-01-04 Tom Tromey <tromey@cygnus.com>
8033 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8034 declaring class as return_type argument to
8035 _Jv_CallNonvirtualMethodA.
8036 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8037 constructor case, create object and use it as `this' argument.
8038 * java/lang/Class.h (_getConstructors): Declare.
8039 (_getFields): Declare.
8040 * java/lang/Class.java (getConstructors): Wrote.
8041 (_getConstructors): New native method.
8042 (getDeclaredConstructors): Wrote.
8043 (_getFields): Declare new native method.
8044 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8046 (getMethod): Work correctly when class is primitive.
8047 (getDeclaredMethods): Likewise. Compute offset using `method',
8049 (getDeclaredMethod): Likewise.
8050 (getConstructor): Wrote.
8051 (ConstructorClass): New define.
8052 (getDeclaredConstructor): Wrote.
8053 (_getConstructors): New method.
8054 (_getFields): New method.
8057 * Makefile.in: Rebuilt.
8058 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8060 * prims.cc: Remove `#pragma implementation'.
8061 * gcj/array.h: Remove `#pragma interface'.
8063 * prims.cc (_Jv_equaln): New function.
8064 * java/lang/Class.java (getSignature): Declare.
8065 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8066 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8068 (getSignature): New method.
8069 (getDeclaredMethod): Wrote.
8071 Include StringBuffer.h.
8072 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8073 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8075 (getSignature): Declare.
8076 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8077 (_Jv_equaln): Declare.
8078 (_Jv_CallNonvirtualMethodA): Declare.
8079 * Makefile.in: Rebuilt.
8080 * Makefile.am (nat_source_files): Added natConstructor.cc.
8081 (java/lang/reflect/Constructor.h): New target.
8082 * java/lang/reflect/natConstructor.cc: New file.
8083 * java/lang/reflect/Constructor.java (newInstance): Now native.
8084 (declaringClass): Renamed from decl_class.
8085 (offset): Renamed from index.
8086 (getType): New native method.
8087 (getModifiers): Now native.
8088 (getParameterTypes): Call getType if required.
8089 (hashCode): Include hash code from declaring class.
8090 (modifiers): Removed.
8091 (toString): Call getType if required.
8092 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8093 * java/lang/reflect/natMethod.cc (hack_call): New method.
8094 Removed `#if 0' around FFI code.
8095 Include <gnu/gcj/RawData.h>.
8096 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8097 IllegalArgumentException when argument object and class disagree.
8098 (_Jv_GetTypesFromSignature): New function.
8100 (ObjectClass): New define.
8101 (_Jv_CallNonvirtualMethodA): New function.
8102 * java/lang/reflect/Method.java (hack_trampoline): New method.
8103 (hack_call): New native method.