1 2001-10-14 Mark Wielaard <mark@klomp.org>
3 * java/lang/Double.java: Partial merge with Classpath
4 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
6 (static): new static block to load native libary (not used in libgcj)
7 (Double (String)): call parseDouble()
8 (byteValue): removed, already defined in superclass Number
10 (valueOf (String)): call new Double(String) directly
11 (compare (double,double)): new 1.4 method
12 (compareTo (Double)): call new compare(double,double) method
13 (initIDs): new private method (not used in libgcj)
14 * java/lang/Float.java: Partial merge with Classpath
15 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
17 (static): new static block to load native libary (not used in libgcj)
18 (Float (String)): call parseFloat()
19 (byteValue): removed, already defined in superclass Number
20 (shortValue): likewise
21 (valueOf (String)): call new Float(String) directly
22 (compare (float,float)): new 1.4 method
23 (compareTo (Float)): call new compare(double,double) method
25 2001-10-13 Tom Tromey <tromey@redhat.com>
27 * java/lang/SecurityManager.java (SecurityManager): Now public.
29 * java/security/AccessController.java (checkPermission): Now
30 throws AccessControlException.
31 * java/security/AllPermission.java: Class now final.
32 * java/security/Permission.java (getName): Now final.
34 (equals): New abstract method.
35 * java/security/PermissionCollection.java (linesep): Now private.
36 * java/security/Permissions.java: Class now final.
37 * java/security/Security.java (Security): New private
39 * java/security/UnresolvedPermission.java: Import
40 java.security.cert.Certificate. Class now final.
41 * java/security/acl/Group.java: Now extends Principal.
42 (isMember): Added Principal argument.
43 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
45 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
48 2001-10-12 Tom Tromey <tromey@redhat.com>
50 * Makefile.in: Rebuilt.
51 * Makefile.am (rmi_java_source_files): Added new files.
52 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
54 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
55 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
56 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
57 * gnu/java/rmi/rmic/Compiler.java: New file.
59 2001-10-11 Tom Tromey <tromey@redhat.com>
62 * configure.in: Recognize --disable-java-awt.
64 2001-10-10 Tom Tromey <tromey@redhat.com>
66 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
67 * java/lang/natRuntime.cc: Include FinalizerThread.h.
68 (runFinalization): Call finalizerReady.
69 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
70 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
71 (_Jv_CreateJavaVM): Start the finalizer thread.
72 * no-threads.cc: Include InternalError.h.
73 (_Jv_ThreadStart): Throw InternalError.
74 (_Jv_ThreadInitData): Don't throw error if this is not the first
76 * Makefile.in: Rebuilt.
77 * Makefile.am (ordinary_java_source_files): Added
79 (nat_source_files): Added natFinalizerThread.cc.
80 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
81 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
82 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
83 * gnu/gcj/runtime/FinalizerThread.java: New file.
85 2001-10-09 Per Bothner <per@bothner.com>
87 * strtod.c (_strtod_r): Logic to check for missing digits
88 after exponent had 'else' attached to wrong 'if'.
90 2001-10-09 Mark Wielaard <mark@klomp.org>
92 * java/net/SocketImpl.java: Merge with Classpath
94 2001-10-08 Mark Wielaard <mark@klomp.org>
96 * java/net/DatagramSocketImpl.java: Merge with Classpath
98 2001-10-07 Mark Wielaard <mark@klomp.org>
100 * java/net/URLDecoder.java: Remerge with Classpath
101 * java/net/URLEncoder.java: Merge with Classpath
103 2001-10-08 Tom Tromey <tromey@redhat.com>
105 Fix for PR libgcj/4481:
106 * java/io/File.java (getParent): Handle case where path is "/".
107 (normalizePath): Use correct string for UNC leader.
109 2001-10-06 Mark Wielaard <mark@klomp.org>
111 * java/io/BufferedInputStream.java: Merge with Classpath
113 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
115 * defineclass.cc, java/awt/image/ColorModel.java,
116 java/awt/image/SampleModel.java, java/lang/Package.java,
117 java/security/cert/X509Extension.java: Fix spelling errors of
118 "separate" as "seperate", and corresponding spelling errors of
121 2001-10-05 Tom Tromey <tromey@redhat.com>
123 * java/text/DecimalFormat.java (format): Use localized minus sign
124 when generating exponent; never use `+'. Use floor to compute
127 2001-10-05 Mark Wielaard <mark@klomp.org>
129 * java/util/zip/Adler32.java: Merge with Classpath
130 * java/util/zip/CRC32.java: Ditto
131 * java/util/zip/Checksum.java: Ditto
132 * java/util/zip/DataFormatException.java: Ditto
133 * java/util/zip/ZipException.java: Ditto
135 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
137 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
139 2001-10-04 Mark Wielaard <mark@klomp.org>
141 * java/lang/reflect/Modifier.java: Merge with Classpath
143 2001-10-03 Mark Wielaard <mark@klomp.org>
145 * java/io/SequenceInputStream.java: Merge with Classpath
146 * java/io/StringBufferInputStream.java: Ditto
147 * java/util/Collections.java: Remerge with Classpath
149 2001-10-03 Tom Tromey <tromey@redhat.com>
151 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
154 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
156 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
158 2001-10-02 Mark Wielaard <mark@klomp.org>
160 * Makefile.am (core_java_source_files): add InheritableThreadLocal
161 * Makefile.in: regenerate
162 * gcj/javaprims.h: ditto
163 * java/lang/InheritableThreadLocal.java: new class from Classpath
164 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
165 call InheritableThreadLocal.newChildThread()
167 2001-10-01 Mark Wielaard <mark@klomp.org>
169 * Makefile.am: Add new classes
170 (core_java_source_files): CharSequence
171 (ordinary_java_source_files): Authenticator, PasswordAuthentication
172 * Makefile.in: regenerate
173 * gcj/javaprims.h: ditto
174 * java/lang/CharSequence: new class from Classpath
175 * java/lang/String.java: implements CharSequence
176 (subSequence (int,int)): new method
177 * java/lang/SubString.java: implements CharSequence
178 (subSequence (int,int)): new method
179 remerge comments with Classpath
180 * java/net/Authenticator.java: new class from Classpath
181 * java/net/PasswordAuthentication.java: ditto
183 2001-10-01 Tom Tromey <tromey@redhat.com>
185 * gcj/javaprims.h: Rebuilt class list.
186 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
187 (_Jv_GCCanReclaimSoftReference): New function.
188 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
189 (_Jv_GCCanReclaimSoftReference): Declare.
190 * java/lang/ref/Reference.java (referent): Now a RawData.
191 (create): Renamed from `created'. Added object argument.
192 (Reference): Don't initialize `referent' here.
193 * Makefile.in: Rebuilt.
194 * Makefile.am (nat_source_files): Added new file.
195 * java/lang/ref/natReference.cc: New file.
197 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
198 (_Jv_NewMultiArray): Use it. Check each array dimension.
199 (_Jv_NewMultiArray): Likewise.
200 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
202 * java/lang/reflect/natArray.cc (newInstance): Throw
203 IllegalArgumentException if there are no dimensions.
205 2001-10-01 Mark Wielaard <mark@klomp.org>
207 * java/io/FileWriter.java: Merge with Classpath.
208 * java/io/FilterInputStream.java: Ditto.
209 (mark): no longer synchronized
211 * java/io/FilterOutputStream.java: Merge with Classpath.
212 * java/io/FilterReader.java: Ditto.
213 (mark): no longer synchronized
215 * java/io/FilterWriter.java: Merge with Classpath.
216 * java/io/Writer.java: Ditto.
217 * java/lang/Compiler.java: Ditto.
218 * java/lang/Process.java: Ditto.
219 * java/lang/Void.java: Ditto.
220 * java/net/ContentHandler.java: Ditto.
221 * java/net/DatagramPacket.java: Ditto.
222 * java/net/MulticastSocket.java: Merge comments with Classpath.
224 2001-09-30 Mark Wielaard <mark@klomp.org>
226 * java/io/DataInput.java: Merge with Classpath.
227 * java/io/DataOutput.java: Idem.
228 * java/io/FilenameFilter.java: Idem.
229 * java/io/Serializable.java: Idem.
230 * java/lang/Cloneable.java: Idem.
231 * java/lang/Comparable.java: Idem.
232 * java/lang/Runnable.java: Idem.
233 * java/lang/reflect/Member.java: Idem.
234 * java/net/ContentHandlerFactory.java: Idem.
235 * java/net/FileNameMap.java: Idem.
236 * java/net/SocketImplFactory.java: Idem.
237 * java/net/SocketOptions.java: Idem.
238 * java/net/URLStreamHandlerFactory.java: Idem.
240 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
242 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
243 an uninitialized target class.
245 * gnu/gcj/protocol/file/Connection.java (connect): Throw
246 FileNotFoundException if appropriate.
247 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
248 IOException if we got a file: url with a hostname. Comment out protocol
249 switch to ftp for now.
250 * java/net/URL.java (URL): Include protocol name in exception message
251 when handler can't be found.
253 2001-09-28 Per Bothner <per@bothner.com>
255 * gnu/gcj/runtime/SharedLibLoader.java: New class.
256 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
257 * Makefile.am: Update accordingly.
258 * configure.in: Add AC_CHECK_LIB for dlopen.
259 * include/config.h.in: Add HAVE_DLOPEN.
261 2001-09-29 Jeff Sturm <jsturm@one-point.com>
263 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
264 * Makefile.in: Rebuilt.
266 2001-09-27 Tom Tromey <tromey@redhat.com>
268 * java/util/IdentityHashMap.java (containsKey): Use getHash.
272 (getHash): New method.
273 (tombstone, emptyslot): Now static final.
274 (put): Correctly determine when to rehash, and correctly rehash.
275 (containsKey, remove): Test against table length with `>='.
277 2001-09-26 Tom Tromey <tromey@redhat.com>
279 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
281 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
282 Re-merged with Classpath.
284 * java/io/DataInputStream.java (readChar): Use readFully.
286 (readLong): Likewise.
287 (readShort): Likewise.
288 (readUnsignedShort): Likewise.
290 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
292 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
293 IllegalThreadStateException if process hasn't exited yet.
294 * java/lang/natPosixProcess.cc (exitValue): Removed.
295 (waitFor): Only check thread interrupted status if waitpid() returned
296 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
299 * java/security/cert/X509Extension.java: Merge from classpath.
301 2001-09-22 Anthony Green <green@redhat.com>
303 * java/security/DummyKeyPairGenerator.java (initialize): New
304 method (with AlgorithmParameterSpec argument).
306 2001-09-22 Anthony Green <green@redhat.com>
308 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
310 * gnu/java/security/provider/SHA1PRNG.java: Extend from
312 (engineNextBytes): Fix order of memory copies.
314 2001-09-21 Richard Henderson <rth@redhat.com>
316 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
317 add get_method, set_method, vtable_elt_size, new_vtable.
318 (_Jv_ArrayVTable): Derive from _Jv_VTable.
319 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
320 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
321 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
323 2001-09-21 Richard Henderson <rth@redhat.com>
325 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
326 * java/lang/mprec.c (lo0bits): Fix paren typo.
328 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
330 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
331 blocking IO via pthread_kill().
332 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
333 interrupted status flag only if ::write returned an error.
334 (write (jbyteArray, jint, jint): Likewise.
335 (read (jint)): Likewise.
336 (read (jbyteArray, jint, jint): Likewise.
338 2001-09-19 Anthony Green <green@redhat.com>
340 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
343 2001-09-17 Andreas Jaeger <aj@suse.de>
345 * jni.cc (array_from_valist): Use promoted types for va_arg.
347 2001-09-16 Anthony Green <green@redhat.com>
349 * gnu/java/locale/LocaleInformation.java: Extend
350 LocaleInformation_en_US, not LocaleInformation_en.
352 2001-09-16 Anthony Green <green@redhat.com>
354 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
356 2001-09-14 Tom Tromey <tromey@redhat.com>
358 * java/util/TimeZone.java: Updated list of timezones from
361 * java/lang/CloneNotSupportedException.java: Re-merged with
364 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
366 * java/io/File.java (normalizePath): Use equals() not '==' for string
369 * java/util/Hashtable.java (Enumerator): Ensure that if
370 hasMoreElements() returns true, nextElement() will always return
371 something even if the table has been modified.
373 2001-09-12 Tom Tromey <tromey@redhat.com>
375 * Makefile.in: Rebuilt.
376 * Makefile.am (class-check): New target.
378 2001-09-11 Tom Tromey <tromey@redhat.com>
380 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
382 2001-09-10 Tom Tromey <tromey@redhat.com>
384 * java/util/Properties.java (load): Correctly read \u sequences.
385 Report from Anthony Green.
387 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
389 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
390 and $(MULTIBUILDTOP).
391 * configure: Re-generate.
393 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
395 * include/jvm.h (_Jv_AllocRawObj): New prototype.
396 * boehm.cc (_Jv_AllocRawObj): Implement.
397 * nogc.cc (_Jv_AllocRawObj): Likewise.
398 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
400 2001-09-06 Anthony Green <green@redhat.com>
402 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
403 redundant method calls.
404 (emptyLocale): New private member.
405 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
408 2001-09-06 Tom Tromey <tromey@redhat.com>
410 * java/text/RuleBasedCollator.java (clone): Rewrote.
411 (RuleBasedCollator(RuleBasedCollator)): Removed.
412 * java/text/MessageFormat.java: Re-merged from Classpath.
413 * java/text/DecimalFormat.java: Re-merged from Classpath.
415 2001-09-06 Anthony Green <green@redhat.com>
417 * include/jvm.h: Declare _Jv_RegisterResource.
418 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
419 gnu/gcj/protocol/core/Connection.java,
420 gnu/gcj/protocol/core/Handler.java,
421 gnu/gcj/protocol/core/CoreInputStream.java,
422 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
423 * java/net/URL.java (setURLStreamHandler): Use
424 gnu.gcj.protocol.core.Handler for the core protocol.
425 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
426 end of java.class.path.
427 * Makefile.am (ordinary_java_source_files): Add new java files.
428 (nat_source_files): Add new native code files.
429 * Makefile.in: Rebuilt.
431 2001-09-05 Tom Tromey <tromey@redhat.com>
433 * java/util/Properties.java: Re-merged from Classpath.
435 From Eric Blake, via Classpath:
436 * java/lang/String.java (CaseInsensitiveComparator): New class.
437 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
439 * java/util/Date.java: Re-merged with Classpath.
441 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
443 2001-09-05 Corey Minyard <minyard@acm.org>
444 Tom Tromey <tromey@redhat.com>
446 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
447 (_Jv_RegisterClassHookDefault): Throw error if a class is
450 2001-09-05 Tom Tromey <tromey@redhat.com>
452 * java/lang/natSystem.cc (init_properties): Default locale is
455 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
457 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
458 here, DecimalFormat.applyPattern() does not throw it.
460 2001-09-04 Tom Tromey <tromey@redhat.com>
462 * java/util/AbstractMap.java: Re-merged with Classpath.
463 * java/util/IdentityHashMap.java: Re-merged with Classpath.
465 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
466 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
467 gnu/gcj/text/LocaleData_en_US.java: Removed.
468 * java/text/DateFormatSymbols.java (clone): Use Classpath
470 (equals): Simplified.
471 (DateFormatSymbols): Look in gnu.java.locale for information.
472 (DateFormatSymbols(DateFormatSymbols)): Removed.
473 (safeGetResource): Removed.
474 (DateFormatSymbols): Throws MissingResourceException.
475 (ampmsDefault, erasDefault, localPatternCharsDefault,
476 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
477 weekdaysDefault, zoneStringsDefault): Removed.
478 * java/text/Collator.java (getAvailableLocales): Use modified
479 Classpath implementation.
480 (getInstance): Look in gnu.java.locale for information.
482 * java/text/MessageFormat.java: Reindented.
484 * java/text/FieldPosition.java: Merged with Classpath.
485 * java/text/ParsePosition.java: Merged with Classpath.
486 * java/text/Format.java: Merged with Classpath.
487 * java/text/StringCharacterIterator.java
488 (StringCharacterIterator(StringCharacterIterator,int,int)): New
489 constructor from Classpath.
490 * java/text/Annotation.java,
491 java/text/AttributedCharacterIterator.java,
492 java/text/AttributedString.java,
493 java/text/AttributedStringIterator.java: New from Classpath.
494 * java/text/CharacterIterator.java: Copied from Classpath.
495 * java/text/ChoiceFormat.java: Reindented.
497 * gnu/java/text/BaseBreakIterator.java,
498 gnu/java/text/CharacterBreakIterator.java,
499 gnu/java/text/LineBreakIterator.java,
500 gnu/java/text/LocaleData_en.java,
501 gnu/java/text/LocaleData_en_US.java,
502 gnu/java/text/SentenceBreakIterator.java,
503 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
504 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
506 * java/text/BreakIterator.java (getAvailableLocales): Use
507 Classpath implementation.
508 (getInstance): Look in gnu.java.locale for information.
509 (getCharacterInstance, getLineInstance, getSentenceInstance,
510 getWordInstance): Look in gnu.java.text for implementations.
511 * java/text/DecimalFormatSymbols.java: Reindented
512 (clone): Use Classpath implementation.
513 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
514 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
516 * java/text/DateFormat.java: Merged with Classpath.
517 (getAvailableLocales): Use Classpath implementation.
518 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
519 (computeInstance): Look in gnu.java.locale for information.
520 * java/text/NumberFormat.java: Reindented.
521 (computeInstance): Look in gnu.java.locale for information.
522 (getAvailableLocales): Use implementation from Classpath.
523 (setMaximumIntegerDigits): Likewise.
524 (setMinimumIntegerDigits): Likewise.
525 (setMaximumFractionDigits): Likewise.
527 * java/text/DecimalFormat.java: Reindented.
528 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
529 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
530 * Makefile.in: Rebuilt.
531 * Makefile.am (ordinary_java_source_files): Added all new files.
532 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
533 * java/security/spec/AlgorithmParameterSpec.java,
534 java/security/spec/KeySpec.java: Re-merged with Classpath.
536 Fix for PR libgcj/4213:
537 * Makefile.am (ordinary_java_source_files): Added new file.
538 * gnu/gcj/text/LocaleData.java: New file.
540 2001-09-03 Tom Tromey <tromey@redhat.com>
542 * java/lang/reflect/natField.cc (set): Allow for case when the
543 value is null. Fixes PR libgcj/4208.
545 * gcj/javaprims.h: Regenerated class list.
546 * java/lang/IllegalThreadStateException.java,
547 java/lang/InstantiationException.java: Minor comment tweaks to
548 satisfy libgcj `classes.pl' script.
550 2001-09-01 Tom Tromey <tromey@redhat.com>
552 * Makefile.in: Rebuilt.
553 * Makefile.am (core_java_source_files): Added
554 UnsupportedClassVersionError.
555 * java/lang/UnsupportedClassVersionError.java: New file from
558 * java/io/CharConversionException.java, java/io/EOFException.java,
559 java/io/FileNotFoundException.java, java/io/IOException.java,
560 java/io/InterruptedIOException.java,
561 java/io/ObjectStreamException.java,
562 java/io/OptionalDataException.java,
563 java/io/StreamCorruptedException.java,
564 java/io/SyncFailedException.java,
565 java/io/UTFDataFormatException.java,
566 java/io/UnsupportedEncodingException.java,
567 java/lang/AbstractMethodError.java,
568 java/lang/ArithmeticException.java,
569 java/lang/ArrayIndexOutOfBoundsException.java,
570 java/lang/ArrayStoreException.java,
571 java/lang/ClassCastException.java,
572 java/lang/ClassCircularityError.java,
573 java/lang/ClassFormatError.java,
574 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
575 java/lang/Exception.java,
576 java/lang/ExceptionInInitializerError.java,
577 java/lang/IllegalAccessError.java,
578 java/lang/IllegalAccessException.java,
579 java/lang/IllegalArgumentException.java,
580 java/lang/IllegalMonitorStateException.java,
581 java/lang/IllegalStateException.java,
582 java/lang/IllegalThreadStateException.java,
583 java/lang/IncompatibleClassChangeError.java,
584 java/lang/IndexOutOfBoundsException.java,
585 java/lang/InstantiationError.java,
586 java/lang/InstantiationException.java,
587 java/lang/InternalError.java, java/lang/InterruptedException.java,
588 java/lang/LinkageError.java,
589 java/lang/NegativeArraySizeException.java,
590 java/lang/NoClassDefFoundError.java,
591 java/lang/NoSuchFieldError.java,
592 java/lang/NoSuchFieldException.java,
593 java/lang/NoSuchMethodError.java,
594 java/lang/NoSuchMethodException.java,
595 java/lang/NullPointerException.java,
596 java/lang/NumberFormatException.java,
597 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
598 java/lang/SecurityException.java,
599 java/lang/StackOverflowError.java,
600 java/lang/StringIndexOutOfBoundsException.java,
601 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
602 java/lang/UnsatisfiedLinkError.java,
603 java/lang/UnsupportedOperationException.java,
604 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
605 java/lang/reflect/InvocationTargetException.java,
606 java/net/BindException.java, java/net/ConnectException.java,
607 java/net/MalformedURLException.java,
608 java/net/NoRouteToHostException.java,
609 java/net/ProtocolException.java, java/net/SocketException.java,
610 java/net/UnknownHostException.java,
611 java/net/UnknownServiceException.java,
612 java/text/ParseException.java: Copied from Classpath, thanks to
613 Mark Wielaard who did the merge.
615 * java/lang/System.java (getProperty): Use single argument form of
616 SecurityManager.checkPropertyAccess.
617 * Makefile.in: Rebuilt.
618 * Makefile.am (core_java_source_files): Added VMSecurityManager.
619 * java/lang/VMSecurityManager.java: New file.
620 * java/lang/SecurityManager.java: Merged with Classpath.
622 2001-08-31 Per Bothner <per@bothner.com>
624 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
625 (_Jv_RegisterClassHookDefault): Likewise.
626 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
627 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
628 (_Jv_RegisterClassHookDefault): New.function.
629 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
631 * java/lang/ClassLoader.java (system): Remove static field.
632 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
633 directly instead of using it to set the system field.
634 (loadClass): Use VMClassLoader.instance instead of system field.
635 (findSystemClass): Similar.
636 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
637 than ClassLoader::system which no longer exists.
638 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
640 2001-08-31 Tom Tromey <tromey@redhat.com>
642 * java/io/BufferedReader.java, java/io/ObjectInput.java,
643 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
644 Re-merged with Classpath.
646 Re-merge with Classpath:
647 * java/util/Comparator (equals): Added.
648 * java/io/PipedWriter.java (write): Changed argument to `int'.
650 * java/io/FileDescriptor.java (FileDescriptor()): New
652 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
654 * Makefile.in: Rebuilt.
655 * Makefile.am (ordinary_java_source_files): Removed
656 EnumerationChain, added DoubleEnumeration.
657 (nat_source_files): Added natResourceBundle.cc.
658 * java/util/natResourceBundle.cc: New file.
659 * gnu/java/util/DoubleEnumeration.java: New file.
660 * gnu/gcj/util/EnumerationChain.java: Removed.
661 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
662 * java/util/ResourceBundle.java: Merged with Classpath.
663 * java/util/StringTokenizer.java: Merged with Classpath.
664 * java/util/Locale.java: Merged with Classpath.
665 * java/util/Random.java: Merged with Classpath.
666 * java/util/PropertyResourceBundle.java: Merged with Classpath.
667 * java/util/ListResourceBundle.java: Merged with Classpath.
668 * java/util/ConcurrentModificationException.java: Re-merged with
670 * java/util/EmptyStackException.java: Likewise.
671 * java/util/MissingResourceException.java: Likewise.
672 * java/util/NoSuchElementException.java: Likewise.
673 * java/util/TooManyListenersException.java: Likewise.
675 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
676 * java/io/OptionalDataException.java: Merged with Classpath.
678 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
680 * exception.cc (PERSONALITY_FUNCTION): Simplify
683 2001-08-31 Tom Tromey <tromey@redhat.com>
685 * java/io/ByteArrayInputStream.java: Merged with Classpath.
687 2001-08-30 Tom Tromey <tromey@redhat.com>
689 * java/io/BufferedReader.java: Re-merged with Classpath.
691 2001-08-28 Per Bothner <per@bothner.com>
693 * java/math/BigInteger.java (init(int,Random)): New method.
694 Move body of constructor <init>(int,Random)) here.
695 Re-write it to avoid constructing unneeded temporaries.
696 (<init>(int,int,Random)): Use new init method to avoid constructing
697 extra temporary BigIntegers.
699 2001-08-27 Tom Tromey <tromey@redhat.com>
701 * java/rmi/activation/Activatable.java,
702 java/rmi/activation/ActivateFailedException.java,
703 java/rmi/activation/ActivationDesc.java,
704 java/rmi/activation/ActivationException.java,
705 java/rmi/activation/ActivationGroup.java,
706 java/rmi/activation/ActivationGroupDesc.java,
707 java/rmi/activation/ActivationGroupID.java,
708 java/rmi/activation/ActivationID.java,
709 java/rmi/activation/ActivationInstantiator.java,
710 java/rmi/activation/ActivationMonitor.java,
711 java/rmi/activation/ActivationSystem.java,
712 java/rmi/activation/Activator.java,
713 java/rmi/activation/UnknownGroupException.java,
714 java/rmi/activation/UnknownObjectException.java,
715 java/rmi/AccessException.java,
716 java/rmi/AlreadyBoundException.java,
717 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
718 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
719 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
720 java/rmi/NotBoundException.java,
721 java/rmi/RMISecurityException.java,
722 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
723 java/rmi/RemoteException.java, java/rmi/ServerError.java,
724 java/rmi/ServerException.java,
725 java/rmi/ServerRuntimeException.java,
726 java/rmi/StubNotFoundException.java,
727 java/rmi/UnexpectedException.java,
728 java/rmi/UnknownHostException.java,
729 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
730 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
731 java/rmi/registry/LocateRegistry.java,
732 java/rmi/registry/Registry.java,
733 java/rmi/registry/RegistryHandler.java,
734 java/rmi/server/ExportException.java,
735 java/rmi/server/LoaderHandler.java,
736 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
737 java/rmi/server/Operation.java,
738 java/rmi/server/RMIClassLoader.java,
739 java/rmi/server/RMIClientSocketFactory.java,
740 java/rmi/server/RMIFailureHandler.java,
741 java/rmi/server/RMIServerSocketFactory.java,
742 java/rmi/server/RMISocketFactory.java,
743 java/rmi/server/RemoteCall.java,
744 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
745 java/rmi/server/RemoteServer.java,
746 java/rmi/server/RemoteStub.java,
747 java/rmi/server/ServerCloneException.java,
748 java/rmi/server/ServerNotActiveException.java,
749 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
750 java/rmi/server/SkeletonMismatchException.java,
751 java/rmi/server/SkeletonNotFoundException.java,
752 java/rmi/server/SocketSecurityException.java,
753 java/rmi/server/UID.java,
754 java/rmi/server/UnicastRemoteObject.java,
755 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
756 gnu/java/rmi/dgc/DGCImpl_Skel.java,
757 gnu/java/rmi/dgc/DGCImpl_Stub.java,
758 gnu/java/rmi/registry/RegistryImpl.java,
759 gnu/java/rmi/registry/RegistryImpl_Skel.java,
760 gnu/java/rmi/registry/RegistryImpl_Stub.java,
761 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
762 gnu/java/rmi/server/ProtocolConstants.java,
763 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
764 gnu/java/rmi/server/RMIHashes.java,
765 gnu/java/rmi/server/RMIObjectInputStream.java,
766 gnu/java/rmi/server/RMIObjectOutputStream.java,
767 gnu/java/rmi/server/UnicastConnection.java,
768 gnu/java/rmi/server/UnicastConnectionManager.java,
769 gnu/java/rmi/server/UnicastRef.java,
770 gnu/java/rmi/server/UnicastRemoteCall.java,
771 gnu/java/rmi/server/UnicastRemoteStub.java,
772 gnu/java/rmi/server/UnicastServer.java,
773 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
774 Kaffe. Relabelled classes to fit into Classpath tree.
775 * Makefile.in: Rebuilt.
776 * Makefile.am (rmi_java_source_files): New macro.
777 (ordinary_java_source_files): Reference it.
778 (bin_PROGRAMS): Added rmic and rmiregistry.
779 (rmic_SOURCES): New macro.
780 (EXTRA_rmic_SOURCES): Likewise.
781 (rmic_LDFLAGS): Likewise.
782 (rmic_LINK): Likewise.
783 (rmic_LDADD): Likewise.
784 (rmic_DEPENDENCIES): Likewise.
785 (rmiregistry_SOURCES): New macro.
786 (EXTRA_rmiregistry_SOURCES): Likewise.
787 (rmiregistry_LDFLAGS): Likewise.
788 (rmiregistry_LINK): Likewise.
789 (rmiregistry_LDADD): Likewise.
790 (rmiregistry_DEPENDENCIES): Likewise.
792 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
794 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
796 * Makefile.am: New friends for java/lang/Thread.h.
797 * prims.cc (runFirst): Removed.
798 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
799 (_Jv_RunMain): Now takes either a klass or class name parameter.
800 Create a gnu.gcj.runtime.FirstThread and attach the native thread
801 to that, then run it using _Jv_ThreadRun. Remove special handling of
802 jar files, instead pass is_jar parameter through to FirstThread.
803 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
804 of _Jv_AttachCurrentThread.
805 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
806 (run): New method. Take care of looking up main class manifest
807 attribute and calling forName if neccessary. Then call call_main.
808 (call_main): New native method.
809 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
810 relocated from prims.cc. Look up and call main method.
811 * java/lang/Thread.java (run_): Removed.
812 * java/lang/natThread.cc (run_): Renamed to...
813 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
814 (_Jv_NotifyThreadStart): here. New function.
815 (countStackFrames, destroy, resume, suspend, stop): Throw
816 UnsupportedOperationExceptions rather than JvFail'ing.
817 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
818 Existing version wraps new variant.
821 2001-08-23 Tom Tromey <tromey@redhat.com>
823 * java/lang/reflect/Field.java (toString): Use
824 Method.appendClassName.
825 * java/lang/reflect/Constructor.java (toString): Use
826 Method.appendClassName.
827 * java/lang/reflect/Method.java: Reindented.
828 (appendClassName): New method.
830 * defineclass.cc (handleMethod ): Initialize `throws' field of
832 (read_one_method_attribute): Handle Exceptions attribute.
833 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
834 (ObjectClass): Removed.
835 (getType): Compute `exception_types'.
836 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
838 2001-08-21 Anthony Green <green@redhat.com>
840 * java/lang/natClassLoader.cc (findClass): Search for
841 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
843 2001-08-21 Jeff Sturm <jsturm@one-point.com>
845 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
848 2001-08-20 Tom Tromey <tromey@redhat.com>
850 * java/awt/GridBagConstraints.java: Removed comment.
852 * jni.cc (nathash, nathash_count, nathash_size): New globals.
853 (DELETED_ENTRY): New define.
854 (hash): New function.
855 (nathash_find_slot): Likewise.
856 (natrehash): Likewise.
857 (nathash_add): Likewise.
858 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
860 (nathash_find): New function.
861 (_Jv_LookupJNIMethod): Use it. Synchronize body.
862 (call): Synchronize around assignment.
864 2001-08-17 Jeff Sturm <jsturm@one-point.com>
866 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
867 starting from zero offset.
869 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
871 * boehm.cc: Include gc_local_alloc.h if appropriate.
872 (GC_GENERIC_MALLOC): Don't define.
873 (MAYBE_MARK): Redefine for GC 6.0.
874 (_Jv_MarkObj): Mark class differently.
875 (_Jv_AllocArray): Use GC_generic_malloc.
877 2001-08-17 Mark J Roberts <mjr@anarcast.net>
879 * java/math/BigInteger.java (randBytes): New method.
880 (BigInteger(int,Random)): Use randBytes.
882 2001-08-17 Tom Tromey <tromey@redhat.com>
884 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
886 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
888 * BigInteger.java: fix right shifts by nonzero multiples of 32.
890 2001-08-15 Tom Tromey <tromey@redhat.com>
892 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
893 (local_ref_table, global_ref_table): Now IdentityHashMap.
894 (_Jv_JNI_Init): Updated for new types.
895 (mark_for_gc): Likewise.
896 (unmark_for_gc): Likewise.
897 * gcj/javaprims.h: Rebuilt class list.
898 * Makefile.in: Rebuilt.
899 * Makefile.am (core_java_source_files): Added new file.
900 * java/util/IdentityHashMap.java: New file.
902 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
905 2001-08-09 Tom Tromey <tromey@redhat.com>
907 * java/awt/image/SampleModel.java (getPixel): Set correct array
908 element. From Chris Meyer.
910 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
912 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
913 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
915 2001-08-06 Tom Tromey <tromey@redhat.com>
917 * java/io/InputStreamReader.java (refill): Only call refill on
918 BufferedInputStream when appropriate constraints are met.
920 2001-08-05 Tom Tromey <tromey@redhat.com>
922 * java/io/StringWriter.java: Merged with Classpath.
923 * java/io/InputStream.java: Merged with Classpath.
924 * java/io/OutputStream.java: Merged with Classpath.
925 * java/io/PushbackInputStream.java: Merged with Classpath.
926 * java/io/CharArrayReader.java: Merged with Classpath.
927 * java/io/CharArrayWriter.java: Merged with Classpath.
929 2001-08-02 Tom Tromey <tromey@redhat.com>
931 * prims.cc (JNI_OnLoad): Don't declare.
932 (_JNI_OnLoad): Don't define.
933 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
935 2001-08-02 Tom Tromey <tromey@redhat.com>
937 * java/io/RandomAccessFile.java (seek): Let seek go past end of
939 (skipBytes): Don't fail if seeking past end of file.
940 * java/io/FileInputStream.java (skip): Don't fail if seeking past
942 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
944 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
946 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
948 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
950 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
952 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
953 to initialize global_ref_table/local_ref_table.
955 2001-08-02 Tom Tromey <tromey@redhat.com>
957 * configure: Rebuilt.
958 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
961 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
963 * include/posix.h (_POSIX_PII_SOCKET): Define.
964 * configure.in (HAVE_SOCKLEN_T): Define.
965 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
967 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
968 (java::net::PlainSocketImpl::accept): Use it.
969 Fixes PRs libgcj/3694, libgcj/3696.
971 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
972 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
973 * configure, include/config.h.in: Regenerate.
974 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
975 (mcastGrp): Likewise.
976 (java::net::PlainDatagramSocketImpl::setOption): Guard against
977 missing IPV6_MULTICAST_IF.
978 Fixes PR libgcj/3694.
980 2001-08-01 Jeff Sturm <jsturm@one-point.com>
982 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
984 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
986 * Makefile.in: Rebuilt.
987 * Makefile.am (GCJLINK): Added --tag=GCJ.
990 2001-07-30 Tom Tromey <tromey@redhat.com>
992 * java/util/Date.java: Re-merged with Classpath.
994 2001-07-30 Jeff Sturm <jsturm@one-point.com>
996 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
997 (_Jv_bind): New static function.
998 (bind): Use _Jv_bind.
999 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1000 (_Jv_bind, _Jv_connect): New static functions.
1001 (bind): Use _Jv_bind.
1002 (connect): Use _Jv_connect.
1004 2001-07-30 Tom Tromey <tromey@redhat.com>
1005 Corey Minyard <minyard@acm.org>
1007 * gnu/gcj/convert/natIconv.cc (done): New methods.
1008 * gnu/gcj/convert/Output_iconv.java (done): New method.
1009 * gnu/gcj/convert/Input_iconv.java (done): New method.
1010 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1012 (getDefaultEncodingClass): Removed.
1013 (getDefaultEncoder): Use getEncoder.
1015 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1017 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1019 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1021 (getDefaultDecodingClass): Removed.
1022 (getDefaultDecoder): Use getDecoder.
1023 (getDecoder): Look up decoder in cache.
1025 * java/lang/natString.cc (init): Call `done' on converter.
1026 (getBytes): Likewise.
1028 2001-07-30 Tom Tromey <tromey@redhat.com>
1030 * java/lang/Integer.java: Merged with Classpath.
1032 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1034 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1035 setTimeInMillis() to set the default/current time.
1037 2001-07-29 Mark Wielaard <mark@klomp.org>
1039 * HACKING: add description on updating namespace
1041 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1043 * java/util/Calendar.java (set): Never recompute fields here. They
1044 will already be set if someone set time explicitly, and it can cause
1045 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1046 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1047 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1049 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1050 (readObject): Call set2DigitYearStart if appropriate so that
1051 defaultCentury is calculated.
1052 (SimpleDateFormat): Don't bother clearing calendar here. Call
1053 computeCenturyStart().
1054 (set2DigitYearStart): Calculate and set defaultCentury.
1055 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1057 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1058 2 numeric digits, use the 80-20 heuristic to parse the value into a
1059 default century based on defaultCenturyStart.
1060 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1062 2001-07-25 Tom Tromey <tromey@redhat.com>
1064 * Makefile.in: Rebuilt.
1065 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1068 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1070 * prims.cc (_JNI_OnLoad): New function.
1071 (JNI_OnLoad): Use it.
1072 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1074 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1076 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1077 Makefile.in: Regenerate.
1079 2001-07-24 Tom Tromey <tromey@redhat.com>
1081 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1084 2001-07-23 Tom Tromey <tromey@redhat.com>
1086 * gcj/javaprims.h: Rebuilt class list.
1087 * Makefile.in: Rebuilt.
1088 * Makefile.am (core_java_source_files): Added VMClassLoader.
1089 * java/lang/VMClassLoader.java: New file.
1090 * java/lang/Boolean.java: Merged with Classpath.
1091 * java/lang/Byte.java: Merged with Classpath.
1092 * java/lang/Integer.java: Merged with Classpath.
1093 * java/lang/Long.java: Merged with Classpath.
1094 * java/lang/Number.java: Merged with Classpath.
1095 * java/lang/Short.java: Merged with Classpath.
1097 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1099 * configure.host: Enable hash synchronization for alpha*-*.
1100 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1102 * java/lang/natObject.cc (compare_and_swap, release_set,
1103 compare_and_swap_release): Added inline functions for alpha.
1105 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1107 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1108 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1109 back to old RFC 2133 variants if missing.
1111 2001-07-18 Tom Tromey <tromey@redhat.com>
1113 * java/io/natFileWin32.cc (_access): Renamed.
1115 * java/io/natFile.cc (_access): Renamed.
1117 * java/io/File.java (access, stat): Add leading `_' to name.
1118 Updated all callers.
1120 2001-07-18 Tom Tromey <tromey@redhat.com>
1123 * libgcj.spec.in (*lib): Added LIBICONV.
1124 * configure: Rebuilt.
1125 * configure.in: Call AM_ICONV. Don't check for iconv function.
1126 Add parameters to JV_HASH_SYNCHRONIZATION define.
1127 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1129 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1131 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1132 not by setting its size field.
1134 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1136 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1139 2001-07-12 Tom Tromey <tromey@redhat.com>
1140 David Brownell <david-b@pacbell.net>
1142 Fix for PR libgcj/3426:
1143 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1145 (read): Throw exception if character conversion fails.
1146 * java/io/BufferedInputStream.java (refill): Now package-private.
1147 * java/io/InputStreamReader.java (ready): Simplified.
1148 (refill): New method.
1151 2001-07-12 Tom Tromey <tromey@redhat.com>
1153 Report from Henner Zeller:
1154 * java/io/FileOutputStream.java (FileOutputStream): Throw
1155 FileNotFoundException, not IOException.
1157 2001-07-10 Anthony Green <green@redhat.com>
1159 * Makefile.in: Rebuilt.
1160 * Makefile.am: Add new files.
1161 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1162 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1163 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1164 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1165 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1166 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1167 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1168 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1169 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1170 org/w3c/dom/ranges/DocumentRange.java,
1171 org/w3c/dom/ranges/Range.java,
1172 org/w3c/dom/ranges/RangeException.java,
1173 org/w3c/dom/traversal/DocumentTraversal.java,
1174 org/w3c/dom/traversal/NodeFilter.java,
1175 org/w3c/dom/traversal/NodeIterator.java,
1176 org/w3c/dom/traversal/TreeWalker.java,
1177 org/xml/sax/ext/DeclHandler.java,
1178 org/xml/sax/ext/LexicalHandler.java,
1179 org/xml/sax/helpers/AttributeListImpl.java,
1180 org/xml/sax/helpers/AttributesImpl.java,
1181 org/xml/sax/helpers/DefaultHandler.java,
1182 org/xml/sax/helpers/LocatorImpl.java,
1183 org/xml/sax/helpers/NamespaceSupport.java,
1184 org/xml/sax/helpers/ParserAdapter.java,
1185 org/xml/sax/helpers/ParserFactory.java,
1186 org/xml/sax/helpers/XMLFilterImpl.java,
1187 org/xml/sax/helpers/XMLReaderAdapter.java,
1188 org/xml/sax/helpers/XMLReaderFactory.java,
1189 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1190 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1191 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1192 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1193 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1194 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1195 org/xml/sax/SAXNotRecognizedException.java,
1196 org/xml/sax/SAXNotSupportedException.java,
1197 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1198 org/xml/sax/XMLReader.java: New files.
1200 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1202 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1203 * Makefile.in: Regenerate.
1204 * java/lang/ThreadLocal.java: Initial import.
1206 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1208 * Makefile.am (libgcj.jar): Don't recursively make
1209 built_java_source_files. Avoid long command lines.
1210 Don't change to $(srcdir) to invoke javac.
1211 (libgcj.la, libgcjx.la); Avoid long command lines.
1212 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1213 * Makefile.in: Rebuilt.
1215 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1217 * include/i386-signal.h: Don't do anything with unsigned divide
1218 overflow except throw an exception.
1220 2001-07-05 Tom Tromey <tromey@redhat.com>
1223 * java/lang/Class.h (Class(void)): Now private. Removed
1224 implementation. From dmorsberger@sensysdl.com.
1226 2001-07-02 Tom Tromey <tromey@redhat.com>
1228 Fix for PR bootstrap/3281:
1229 * aclocal.m4, configure: Rebuilt.
1230 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1231 Correctly compute libgcj_basedir.
1232 (mkinstalldirs): Define and subst.
1234 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1237 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1240 2001-06-27 Tom Tromey <tromey@redhat.com>
1242 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1245 2001-06-25 Tom Tromey <tromey@redhat.com>
1247 * scripts/encodings.pl: Generate lower-case names. Updated URL
1248 for `character-sets' file.
1249 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1251 Rebuilt list of aliases.
1253 2001-06-25 Tom Tromey <tromey@redhat.com>
1255 * java/io/natFileDescriptorPosix.cc (open): Change error message
1256 formatting. From David Brownell.
1258 2001-06-21 Tom Tromey <tromey@redhat.com>
1260 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1263 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1265 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1266 extraneous/malformed sign word.
1268 2001-06-15 Tom Tromey <tromey@redhat.com>
1270 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1272 2001-06-15 Tom Tromey <tromey@redhat.com>
1274 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1275 NULL if no library on the list has the symbol.
1276 (init): Call add_library on the program itself.
1277 * prims.cc (JvRunMain): Initialize Runtime before searching for
1279 (_Jv_RunMain): Likewise.
1281 2001-06-15 Tom Tromey <tromey@redhat.com>
1283 * jni.cc (ClassClass): Removed; updated all users.
1284 (ObjectClass): Likewise.
1285 (ThrowableClass): Likewise.
1286 (MethodClass): Likewise.
1287 (ThreadGroupClass): Likewise.
1288 (local_ref_table): Renamed from `ref_table'.
1289 (global_ref_table): New global.
1290 (_Jv_JNI_Init): Initialize both ref tables.
1291 (mark_for_gc): Added `ref_table' parameter.
1292 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1294 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1295 (_Jv_JNI_DeleteGlobalRef): Likewise.
1296 (_Jv_JNI_DeleteLocalRef): Likewise.
1297 (_Jv_JNI_NewLocalRef): Likewise.
1298 (_Jv_JNI_PopLocalFrame): Likewise.
1299 (_Jv_JNI_GetStringChars): Likewise.
1300 (_Jv_JNI_ReleaseStringChars): Likewise.
1301 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1302 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1304 2001-06-14 Tom Tromey <tromey@redhat.com>
1306 Fix for PR libgcj/3144:
1307 * java/util/Date.java: Merged with Classpath.
1309 2001-06-12 Tom Tromey <tromey@redhat.com>
1311 * aclocal.m4, configure: Rebuilt.
1312 * acinclude.m4: Find configure.host in srcdir.
1314 2001-06-07 Tom Tromey <tromey@redhat.com>
1316 Fix for PR libgcj/3059:
1317 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1318 * Makefile.in: Rebuilt.
1319 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1321 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1323 * exception.cc (cstdlib): Replaces stdlib.h.
1324 (_Jv_Throw): Use std::abort().
1325 (PERSONALITY_FUNCTION): Likewise.
1327 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1329 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1330 nothing, as in autoconf 2.50.
1331 * aclocal.m4, configure: Rebuilt.
1333 2001-06-08 Tom Tromey <tromey@redhat.com>
1335 * configure: Rebuilt.
1336 * configure.in: Compute new aux dir using `pwd'.
1338 2001-06-07 Tom Tromey <tromey@redhat.com>
1340 For PR bootstrap/3075:
1341 * configure, aclocal.m4, Makefile.am: Rebuilt.
1342 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1343 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1344 relative to libgcj_basedir.
1345 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1346 AC_CANONICAL_SYSTEM here.
1347 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1349 ($(extra_headers)): New target.
1351 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1352 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1354 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1355 table index is within allowed bounds. Ensure that we dont try to access
1356 class itable at a negative offset. Avoid an ancestor table lookup if
1357 source is a primitive type class.
1358 (isInstance): Remove redundant isPrimitive() check.
1360 2001-06-04 Tom Tromey <tromey@redhat.com>
1362 * java/security/PublicKey.java: Extend Key.
1363 * java/security/PrivateKey.java: Extend Key.
1365 2001-06-02 Anthony Green <green@redhat.com>
1367 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1368 alternate when USE_LTDL not defined.
1370 2001-06-02 Anthony Green <green@redhat.com>
1372 * configure: Rebuild.
1373 * configure.in: Remove data_start hack.
1374 * libgcj.spec.in: Ditto.
1375 * Makefile.in: Rebuild.
1376 * Makefile.am: Ditto.
1377 * libgcjdata.c: Remove.
1379 2001-06-02 Anthony Green <green@redhat.com>
1381 * configure: Rebuild.
1382 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1383 --without-libffi option. Tweak --disable-java-net processing.
1384 * Makefile.in: Rebuild.
1385 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1386 * include/config.h.in: Rebuild.
1387 * acconfig.h (USE_LIBFFI): Define.
1388 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1390 2001-06-02 Anthony Green <green@redhat.com>
1392 * configure: Rebuilt.
1393 * configure.in: Test for sigaction on native builds.
1394 * prims.cc: Check HAVE_SIGACTION.
1395 * include/config.h.in: Rebuilt.
1397 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1399 * natFile.cc (get_entry): Removed functions.
1400 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1401 Allocate enough storage for d_name if using readdir_r.
1403 2001-05-31 Tom Tromey <tromey@redhat.com>
1405 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1407 (write): Loop until write completes. From Corey Minyard.
1409 2001-05-29 Laurent Guerby <guerby@acm.org>
1411 * java/awt/geom/Rectangle2D.java: fix doc typo.
1413 2001-05-31 Tom Tromey <tromey@redhat.com>
1415 * java/sql/DriverManager.java (getDrivers): Handle case where
1416 driver's class loader is null. From Corey Minyard.
1418 2001-05-29 Tom Tromey <tromey@redhat.com>
1420 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1422 * configure: Rebuilt.
1423 * configure.in: Only add multilib support code if we just rebuilt
1426 2001-05-29 Andrew Haley <aph@redhat.com>
1428 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1429 pointer: the dwarf unwinder in libgcc will do everything that's
1431 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1432 more than we absolutely need to.
1433 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1434 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1436 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1438 * configure: Rebuilt.
1439 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1441 (SIGNAL_HANDLER): Use siginfo style handler.
1442 (INIT_SEGV): Likewise.
1443 (INIT_FPE): Likewise.
1444 * include/ppc-signal.h: Delete whole file.
1446 2001-05-24 Tom Tromey <tromey@redhat.com>
1448 * java/lang/natString.cc (init): Throw
1449 ArrayIndexOutOfBoundsException.
1450 (getChars): Likewise.
1451 (getBytes): Likewise.
1452 (valueOf): Likewise.
1454 * configure.in: Only allow hash synchronization when POSIX threads
1456 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1457 of sync info object.
1459 2001-05-23 Tom Tromey <tromey@redhat.com>
1461 * Makefile.in: Rebuilt.
1462 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1464 Revert patch of 2001-05-21:
1465 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1466 (libgcj_la_LIBADD): Likewise.
1467 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1468 (libgcjx_la_LIBADD): Likewise.
1470 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1471 * gcj/Makefile.in: Rebuilt.
1472 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1473 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1474 * gcj/libgcj-config.h.in: New file.
1475 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1476 * configure: Rebuilt.
1477 * configure.in: Enable hash synchronization by default on some
1479 (HASH_SYNC_SPEC): New subst.
1480 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1481 Correctly use `test -z' instead of `test -n' in a couple places.
1482 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1484 * configure.host (enable_java_net_default): Initialize.
1485 (enable_hash_synchronization_default): New variable.
1487 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1489 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1490 synchronization in use.
1491 (_Jv_MarkArray): Likewise.
1492 (_Jv_AllocBytes): Don't check return result.
1493 (handle_out_of_memory): New function.
1494 (_Jv_InitGC): Set GC_oom_fn.
1495 (trace_one_vtable): New global.
1496 (_Jv_AllocTraceOne): New function.
1497 * configure.in: Added --enable-hash-synchronization.
1498 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1499 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1500 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1501 (_Jv_AllocArray): Likewise.
1502 (_Jv_AllocBytes): Likewise.
1503 (_Jv_AllocPtrFreeObject): New function.
1504 (_Jv_AllocTraceOne): Likewise.
1505 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1507 (self_cache): New global.
1508 (_Jv_ThreadSelf_out_of_line): New function.
1509 * prims.cc (_Jv_AllocBytesChecked): Removed.
1510 (_Jv_ThrowNoMemory): New function.
1511 (_Jv_AllocObject): Don't check for null return from allocator.
1512 (_Jv_NewObjectArray): Likewise.
1513 (_Jv_AllocPtrFreeObject): New function.
1514 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1515 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1516 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1517 * include/boehm-gc.h (_Jv_AllocObj): Define.
1518 (_Jv_AllocPtrFreeObj): Define.
1519 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1520 (_Jv_ThrowNoMemory): Declare.
1521 (_Jv_AllocTraceOne): Declare.
1522 (_Jv_AllocBytesChecked): Removed.
1523 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1524 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1525 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1527 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1529 * java/lang/Object.h (sync_info): Conditional upon presence of
1530 hash synchronization.
1531 * java/lang/natObject.cc: Much new code to handle thin locks and
1532 hash synchronization.
1533 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1536 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1538 * gij.cc (version): Update copyright year.
1540 2001-05-22 Anthony Green <green@redhat.com>
1542 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1545 2001-05-21 Per Bothner <per@bothner.com>
1547 Implement invocation interface; don't create new thread for main.
1548 * java/lang/Thread.java (gen_name): Make native.
1549 (<init>(Thread,THreadGroup,Runnable,String)): New private
1550 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1551 * java/lang/natThread.cc (gen_name): New implementation.
1552 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1553 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1554 (_Jv_CreateJavaVM): New runtime initialization procedure.
1555 (runFirst): New proecdure - mostly code from old FirstThread::run.
1556 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1557 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1558 JvDetachCurrentThread): New inline wrappers.
1559 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1560 _Jv_DetachCurrentThread): New declarations.
1561 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1562 (getMain): new static method.
1563 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1564 by runFirst in prims.cc.
1565 (java/lang/Thread.h): Update for new invocation interface.
1566 * include/posix-threads.h (_Jv_ThreadRegister,
1567 _Jv_ThreadUnRegister): New declarations.
1568 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1569 (really_start): Use new _Jv_ThreadRegister.
1570 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1571 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1572 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1573 Complain of called when _Jv_OnlyThread already set.
1574 (_Jv_ThreadStart): Always JvFail.
1575 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1576 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1577 * win32-threads.cc (struct starter): Remove objet field -
1578 we use _Jv_Thread_t's new thread_obj field instead.
1579 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1580 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1581 (really_start): Use new _Jv_ThreadRegister.
1582 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1583 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1584 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1585 Removed - no longer needed with new invocation interface.
1586 * Makefile.am: Update for removed/added files.
1588 2001-05-21 Per Bothner <per@bothner.com>
1590 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1591 (libgcj_la_LIBADD): Likewise.
1592 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1594 2001-05-21 Per Bothner <per@bothner.com>
1596 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1597 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1598 taken from old Integer.toString code.
1599 (Integer::valueOf): Use _Jv_FormatInt.
1600 * java/lang/Integer.java (toString): Just use call String.valueOf.
1601 * java/lang/Long.java (toString): Fix typo in comment.
1602 * java/lang/String.java (valueOf(int)): Make native.
1603 * java/lang/StringBuffer.java (append(int)): Make native.
1604 * java/lang/natStringBuffer.cc: New file, for append(jint).
1605 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1607 2001-05-21 Tom Tromey <tromey@redhat.com>
1609 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1611 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1613 * include/dwarf2-signal.h: New file.
1614 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1615 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1616 * configure: Rebuilt.
1618 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1620 * configure.in: Update boehm-gc include dir for new GC version.
1621 * configure: Rebuilt.
1622 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1624 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1625 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1626 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1629 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1631 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1632 (_Jv_MutexInit): Likewise.
1634 2001-05-18 Tom Tromey <tromey@redhat.com>
1636 * Makefile.in: Rebuilt.
1637 * Makefile.am (awt_java_source_files): Added Polygon.java.
1639 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1641 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1642 * gcj/javaprims.h: ... here.
1643 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1645 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1647 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1648 with length of ioffset table.
1649 (_Jv_IsAssignableFrom): Likewise.
1651 2001-05-17 Per Bothner <per@bothner.com>
1653 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1655 2001-05-16 Tom Tromey <tromey@redhat.com>
1657 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1660 2001-05-15 Tom Tromey <tromey@redhat.com>
1662 * java/util/GregorianCalendar.java (computeTime): Only call
1665 2001-05-14 Tom Tromey <tromey@redhat.com>
1667 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1668 ZONE_OFFSET just before computing the time.
1670 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1672 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1673 * Makefile.in: Regenerate (by hand).
1674 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1675 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1677 2001-05-11 Richard Henderson <rth@redhat.com>
1679 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1680 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1682 2001-05-11 Richard Henderson <rth@redhat.com>
1684 * exception.cc: Include unwind-pe.h. Remove all pointer
1687 2001-05-10 Tom Tromey <tromey@redhat.com>
1689 * Makefile.in: Rebuilt.
1690 * Makefile.am (awt_java_source_files): Added Polygon.java.
1691 * java/awt/Polygon.java: New file.
1693 * java/awt/geom/AffineTransform.java
1694 (setToRotation(double,double,double)): New method.
1695 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1696 (setToShear): Likewise.
1698 2001-05-10 Tom Tromey <tromey@redhat.com>
1700 * java/util/GregorianCalendar.java: Imported from Classpath.
1701 * gnu/java/locale/LocaleInformation_nl.java: New file from
1703 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1704 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1705 * gnu/java/locale/LocaleInformation.java: Likewise.
1706 * natGregorianCalendar.cc: Removed.
1707 * Makefile.in: Rebuilt.
1708 * Makefile.am (nat_source_files): Removed
1709 natGregorianCalendar.cc.
1711 2001-05-10 Tom Tromey <tromey@redhat.com>
1713 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1715 (defaultCenturyStart): Use it.
1716 (readObject): Likewise.
1717 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1719 (parse): Copy the calendar before modifying it. Correctly handle
1722 * java/util/Calendar.java (clear): Set field value(s) to 0.
1724 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1726 * Calendar.java (get): Clear areFieldsSet if requested field
1728 (set): Unset fields that depend on new value.
1730 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1732 * java/lang/Class.h (_Jv_Self): New union type.
1733 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1734 Jeff Sturm and Fergus Henderson.
1736 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1738 * java/lang/ClassLoader.java: Remove dead code fragment.
1740 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1742 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1744 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1746 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1748 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1749 * configure.host (EXCEPTIONSPEC): New.
1750 * configure.in (EXCEPTIONSPEC): New.
1751 * configure: Rebuilt.
1753 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1755 * doc/*.texi: Remove generated documentation.
1757 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1759 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1760 (performDelete): Fix #endif placement.
1762 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1764 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1765 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1766 (_Jv_ThreadDestroyData): Use _Jv_Free.
1767 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1770 2001-04-27 Tom Tromey <tromey@redhat.com>
1772 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1774 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1776 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1778 * include/jni.h (struct JNINativeInterface): Fixed types in
1779 Get/Set*ArrayRegion declarations.
1780 (class _Jv_JNIEnv): Likewise.
1782 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1784 * configure.in: Obtain THREADS with `gcc -v'.
1785 * configure: Rebuilt.
1787 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1790 * java/io/ObjectStreamClass.java (setClass): Calculate
1791 serialVersionUID for local class and compare it against the UID
1792 from the Object Stream. Throw InvalidClassException upon mismatch.
1793 (setUID): Renamed to...
1794 (getClassUID): this. Return the calculated class UID rather than
1795 setting uid field directly.
1796 (getDefinedSUID): Removed.
1797 * java/io/ObjectInputStream.java (resolveClass): Use the
1798 three-argument Class.forName().
1799 * java/io/InvalidClassException (toString): Don't include classname in
1800 result if it is null.
1802 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1804 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1805 Wrap use of inet_pton in HAVE_INET6.
1807 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1809 java.security merge and ClassLoader compliance fixes.
1811 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1812 New protectionDomain field.
1813 (forName): Add initialize parameter. Fixes declaration to comply with
1815 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1816 variant. Honour "initialize" flag.
1817 (getProtectionDomain0): New method.
1818 * java/lang/Class.java: Fix forName() declaration.
1819 (getPackage): New method based on Classpath implementation.
1820 (getProtectionDomain0): New native method decl.
1821 (getProtectionDomain): New method.
1822 * java/lang/ClassLoader.java (getParent): Now final.
1823 (definedPackages): New field.
1825 (defineClass): New variant with protectionDomain argument.
1826 (definePackage): New.
1828 (findSystemClass): Now final.
1829 (getSystemResourceAsStream): Remove redundant "final" modifier.
1830 (getSystemResource): Remove redundant "final" modifier.
1831 (getResources): Now final.
1832 (protectionDomainPermission): New static field.
1833 (unknownProtectionDomain): Ditto.
1834 (defaultProtectionDomain): Ditto.
1835 (getSystemClassLoader): Now non-native.
1836 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1837 arguments for Class.forName().
1838 * java/lang/Package.java: New file.
1839 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1840 (instance): Static initialize singleton.
1841 (findClass): Override this, not findSystemClass.
1842 * java/lang/natClassLoader.cc (defineClass0): Set class's
1843 protectionDomain field as specified.
1844 (getSystemClassLoader): Removed.
1845 (findClass): Renamed from findSystemClass. Call the interpreter via
1846 URLClassLoader.findClass if loading class via dlopen fails.
1848 * java/security/*.java: java.security import/merge with Classpath.
1849 * java/security/acl/*.java: Likewise.
1850 * java/security/interfaces/*.java: Likewise.
1851 * java/security/spec/*.java: Likewise.
1852 * java/net/NetPermission.java: Likewise.
1853 * java/net/SocketPermission.java: Likewise.
1854 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1856 * Makefile.am: Add new classes.
1857 * Makefile.in: Rebuilt.
1858 * gcj/javaprims.h: CNI namespace rebuild.
1860 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1862 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1863 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1864 * configure: Rebuilt.
1866 2001-04-21 Tom Tromey <tromey@redhat.com>
1868 * Makefile.in: Rebuilt.
1869 * Makefile.am (awt_java_source_files): Added Line2D.java.
1870 * java/awt/geom/Line2D.java: Wrote.
1872 * java/awt/Menu.java (addNotify): Wrote.
1874 * java/awt/PopupMenu.java (addNotify): Implemented.
1877 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1878 * java/awt/List.java (addNotify): Call super.addNotify.
1879 * java/awt/Label.java (addNotify): Call super.addNotify.
1880 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1881 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1882 * java/awt/Choice.java (addNotify): Call super.addNotify.
1883 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1884 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1886 * java/awt/List.java (replaceItem): Notify peer.
1888 * java/awt/geom/Rectangle2D.java
1889 (Float.setRect(float,float,float,float)): New method.
1891 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1894 * java/awt/RenderingHints.java (Key): Class now public.
1896 * java/awt/Rectangle.java (Rectangle): Now implements
1898 (getPathIterator): Removed.
1900 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1903 * java/awt/FileDialog.java: Wrote.
1905 * java/awt/EventQueue.java (isDispatchThread): Now public.
1906 (invokeLater): Likewise.
1908 * java/awt/Component.java (setCursor): Update peer.
1909 (getFontMetrics): Use peer.
1911 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1914 2001-04-20 Tom Tromey <tromey@redhat.com>
1916 * java/awt/List.java: Wrote.
1917 * java/awt/Dialog.java: Wrote.
1919 2001-04-20 Warren Levy <warrenl@redhat.com>
1921 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1922 * java/text/SimpleDateFormat.java
1923 (indexInArray): Removed private method.
1924 (processYear): Removed private method.
1925 (parseLenient): Removed private method.
1926 (parseLeadingZeros): Removed private method.
1927 (parseStrict): Removed private method.
1928 (expect): Added new private method.
1929 (parse): Reverted to pre-Classpath merge version with minor fixes.
1930 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1933 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1935 * java/io/File.java (normalizePath): New private method.
1936 (File (String)): Use normalizePath().
1937 (File (String, String)): Likewise.
1939 * Makefile.am (libffi_files): Removed.
1940 (libgcj.la): Link libffi as a convenience library instead of
1941 refering to its object files directly.
1942 * Makefile.in: Rebuilt.
1944 2001-04-08 Per Bothner <per@bothner.com>
1946 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1947 Recalculate hash, since Utf8Const's hash is only 16 bits.
1949 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1950 bits of hash to calculate step for chaining.
1952 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1953 when 2/3 full, rather than 3/4 full.
1955 2001-04-06 Tom Tromey <tromey@redhat.com>
1957 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1958 (wrap_value<T*>): New specialization.
1959 (_Jv_JNI_PopLocalFrame): Update env->locals.
1961 2001-04-05 Tom Tromey <tromey@redhat.com>
1963 * libtool-version: Updated current.
1965 2001-04-04 Andreas Jaeger <aj@suse.de>
1967 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1968 * gcj/Makefile.in: Rebuilt.
1969 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1970 * Makefile.in: Rebuilt.
1971 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1972 * testsuite/Makefile.in: Rebuild.
1973 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1974 * include/Makefile.in: Rebuild.
1976 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1978 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1979 compiled test', not 'execution from source compiled test'.
1980 Use UNTESTED, not XFAIL, for tests which are not run because
1981 they depend on a previous test which failed.
1983 2001-04-02 Richard Henderson <rth@redhat.com>
1985 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1986 the same tree as gcc.
1987 * configure: Rebuilt.
1989 * exception.cc (_Jv_Throw): Clarify commentary.
1991 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1993 * jni.cc (wrap_value<jclass>): New specialization.
1995 2001-04-02 Tom Tromey <tromey@redhat.com>
1997 * java/io/PrintStream.java (out): Removed field. Fixes PR
1999 (write): Call flush, not out.flush, per spec.
2000 (close): Flush output stream, per spec. Handle
2001 InterruptedIOException.
2002 (checkError): Likewise.
2003 (flush, print, write): Handle InterruptedIOException per spec.
2004 (PrintStream): Don't create BufferedOutputStream.
2005 (work_bytes): New field.
2006 (writeChars): Use work_bytes. Don't assume `out' is a
2007 BufferedOutputStream.
2009 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2011 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2014 2001-03-30 Tom Tromey <tromey@redhat.com>
2016 * jni.cc (add_char): Correctly encode non-ascii characters.
2017 (add_char): Define even when INTERPRETER not defined.
2018 (mangled_name): Likewise.
2019 (_Jv_GetJNIEnvNewFrame): Likewise.
2020 (_Jv_LookupJNIMethod): Likewise.
2022 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2024 * configure.host: Enable interpreter for PPC.
2026 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2028 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2029 to "file.separator", "path.separator", and "java.io.tmpdir" property
2031 * java/io/File.java: Likewise.
2032 * java/io/natFile.cc (init_native): Likewise.
2033 * java/io/natFileWin32.cc (init_native): Likewise.
2035 2001-04-01 Per Bothner <per@bothner.com>
2037 * java/lang/natString.cc (intern): If string's data does not point to
2038 this String, make a fresh String that does.
2040 * java/lang/natString.cc (unintern): Replace by static function.
2041 * java/lang/String.java (unintern): Remove method.
2043 2001-04-01 Per Bothner <per@bothner.com>
2045 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2046 (finish): def.deflate needs to be called in a loop.
2047 (inbuf, inbufLength): New private fields.
2048 (write(int)): Use inbuf.
2049 (write(byte[],int,int): Check if pending output in inbuf.
2050 * ZipOutputStream.java: Don't use Deflater if stored.
2051 Use a Checksum object directly, not via a CheckedOutputStream.
2052 (uncompressed_size): New field,
2053 (closeEntry): Only write data_directory if needed.
2054 (write): If STORED, write directly.
2055 Always update crc, and uncompressed_size.
2056 (write_entry): Fix lots of protocol erors.
2058 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2060 1.3-Compliant Implementation of java.io.File.
2061 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2062 "path.separator", and "java.io.tmpdir" from the File class, instead
2063 of setting them explicitly.
2064 * java/io/File.java: Do not canonicalize paths for security manager
2065 checks. Call init_native() from static initializer. Do not pass path
2066 argument to native methods. New native method declarations. Some
2067 security manager checks moved to checkWrite().
2068 (equals): Check file system case sensitivity and act appropriatly.
2069 (hashCode): Likewise.
2070 (isHidden): New method implemented.
2071 (performList): Changed prototype. Now takes a class argument specifying
2072 the class of the returned array: Strings or File objects. Also added
2073 FileFilter argument.
2074 (listFiles): New variants with "File" return type implemented.
2075 (createTempFile): Use createNewFile(). Use maxPathLen.
2076 (setReadOnly): New method implemented.
2077 (listRoots): Likewise.
2078 (compareTo): Likewise.
2079 (setLastModified): Likewise.
2080 (checkWrite): New method.
2082 * java/io/natFile.cc: Various functions no longer take canonical path
2084 (stat): Handle ISHIDDEN query.
2085 (isAbsolute): Remove WIN32 cruft.
2086 (performList): New arguments. Handle returning either File[] or String[]
2087 arrays. Check with FileFilter or FilenameFilter arguments as
2088 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2089 (performSetReadOnly): New method implemented.
2090 (performListRoots): Likewise.
2091 (performSetLastModified): Likewise.
2092 (performCreate): Likewise.
2093 (init_native): New initialization function.
2094 * java/io/natFileWin32.cc: Various functions no longer take canonical
2096 (stat): Add FIXME about ISHIDDEN query.
2097 (performList): New arguments. Handle returning either File[] or String[]
2098 arrays. Check with FileFilter or FilenameFilter arguments as
2099 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2100 (performSetReadOnly): New. Stubbed.
2101 (performListRoots): Likewise.
2102 (performSetLastModified): Likewise.
2103 (performCreate): Likewise.
2104 (init_native) New initialization function.
2105 * configure.in: Check for utime() and chmod().
2106 * configure: Rebuilt.
2107 * include/config.h.in: Rebuilt.
2109 Resolves PR libgcj/1759.
2111 2001-03-28 Richard Henderson <rth@redhat.com>
2113 IA-64 ABI Exception Handling:
2114 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2115 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2116 Remove EXCEPTIONSPEC.
2117 * configure.host (libgcj_sjlj): Remove.
2118 * configure.in (EXCEPTIONSPEC): Remove.
2119 (enable-sjlj-exceptions): Detect if not specified.
2120 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2121 what header we're looking for.
2122 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2123 * Makefile.in, configure: Regenerate.
2124 * exception.cc: Don't declare libgcc2 stuff.
2125 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2126 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2127 (win32_get_restart_frame): Remove.
2128 (struct java_exception_header): New.
2129 (__gcj_exception_class): New.
2130 (get_exception_header_from_ue): New.
2131 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2132 (size_of_encoded_value, read_encoded_value): New.
2133 (read_uleb128, read_sleb128, parse_lsda_header): New.
2134 (get_ttype_entry, __gcj_personality_sj0): New.
2135 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2137 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2139 * javax/naming/InitialContext.java (init): Fix typo.
2140 (composeName): Remove unnecessary semicolon.
2141 (addToEnvironment): Remove unnecessary semicolon.
2142 (addToEnvironment): Use put() instead of add().
2144 * javax/naming/InitialContext.java (InitialContext):
2146 (destroySubcontext): Method doesn't return a result.
2147 * javax/naming/Context.java: Import java.util.Hashtable.
2148 * javax/naming/Name.java: Import java.util.Enumeration.
2150 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2152 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2153 objects in subdirectories.
2154 * Makefile.in: Rebuilt.
2156 2001-03-25 Richard Henderson <rth@redhat.com>
2158 * exception.cc (java_eh_info): Make value type jthrowable.
2159 (_Jv_type_matcher): Remove now unneeded cast.
2160 (_Jv_Throw): Make argument type jthrowable. Munge name
2161 for SJLJ_EXCEPTIONS here ...
2162 * gcj/cni.h: ... not here.
2164 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2166 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2167 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2168 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2169 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2170 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2171 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2172 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2173 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2174 java/lang/natDouble.cc, java/lang/natObject.cc,
2175 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2176 java/lang/natString.cc, java/lang/natSystem.cc,
2177 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2178 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2179 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2180 java/util/zip/natInflater.cc:
2181 Use throw, not JvThrow or _Jv_Throw.
2183 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2185 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2186 paramater, bump it to 1.
2187 * java/util/Hashtable.java (Hashtable): Likewise.
2189 2001-03-23 Per Bothner <per@bothner.com>
2191 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2192 check for errors, since we don't want to throw exception on
2193 overflow/underflow. Instead, trim whitespace, and then check that
2194 _strtod_r uses up all the rest of the string.
2196 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2197 ancestors array is invalid for interfaces, so do that *after*
2198 check that the target type is not an interface.
2200 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2202 * prims.cc (_Jv_FindClassFromSignature): Check return of
2203 recursive call. Do not abort on invalid signature; return NULL
2206 2001-03-22 Tom Tromey <tromey@redhat.com>
2208 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2209 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2211 * include/jvm.h (_Jv_ResolveField): Declare.
2212 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2213 * resolve.cc (_Jv_ResolveField): No longer conditional on
2216 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2218 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2219 for libtool hacking.
2220 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2221 to a temporary file, then invoke libtool with the -objectlist
2223 (libgcjx.la): Likewise.
2224 * Makefile.in: Rebuilt.
2226 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2228 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2230 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2232 * jni.cc (add_char): Handle `.' like `/'.
2234 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2236 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2237 initialize if exception_types is null.
2238 * java/lang/reflect/Constructor.java: Likewise.
2239 * java/lang/reflect/natConstructor.cc (getType): Initialize
2240 exception_types to an empty Object array.
2242 2001-03-21 Tom Tromey <tromey@redhat.com>
2244 * configure: Rebuilt.
2245 * configure.in (GCJFLAGS): Subst.
2246 * Makefile.in: Rebuilt.
2247 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2248 (gij_LDFLAGS): Likewise.
2249 (JC1FLAGS): Added GCJFLAGS and removed -g.
2251 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2252 read/write case. Fixes PR libgcj/2338.
2254 2001-03-20 Warren Levy <warrenl@redhat.com>
2256 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2257 and corrected SimpleTimeZone's for the timezones hash table.
2259 2001-03-19 Per Bothner <per@bothner.com>
2261 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2262 "canonicalize" "../../xxx" to "/xxx".
2264 2001-03-19 Mark Wielaard <mark@klomp.org>
2266 * java/util/ArrayList.java: Remove RCS keywords from comments
2267 * java/util/BasicMapEntry.java: idem
2268 * java/util/Dictionary.java: idem
2269 * java/util/HashSet.java: idem
2271 * java/util/EventObject.java: reindent
2272 * java/util/Properties.java: idem
2273 * java/util/SortedMap.java: idem
2275 * java/util/Enumeration.java: Merge with Classpath
2276 * java/util/EventListener.java: idem
2277 * java/util/Observable.java: idem
2278 * java/util/Observer.java: idem
2279 * java/util/Stack.java: idem
2281 2001-03-17 Tom Tromey <tromey@redhat.com>
2283 * java/lang/natString.cc (rehash): Don't bother with memset;
2284 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2286 (UNMASK_PTR): New macro.
2287 (intern): Unmask pointer before returning it. Register finalizer
2289 (unintern): Handle case where
2290 (MASK_PTR): New macro.
2291 (PTR_MAKSED): Likewise.
2292 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2294 2001-03-01 Andrew Haley <aph@redhat.com>
2296 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2297 stackTrace buffer to a correctly aligned pointer array.
2299 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2301 * java/lang/Runtime.java (_exit): Declare new package-private native.
2302 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2303 without a security manager check.
2304 (exit): Call _exit after security check.
2305 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2307 * java/lang/System.java (setSecurityManager): If a security manager
2308 is already in place, call checkPermission.
2309 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2310 throws an exception, try to deal with it gracefully.
2311 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2312 Only try to print the subordinate stack trace if "exception" is set.
2313 Print our class name first.
2315 2001-03-08 Tom Tromey <tromey@redhat.com>
2317 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2318 info for array classes.
2319 Fixes PR libgcj/1971.
2321 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2323 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2326 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2328 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2329 instead of the new JDK1.2 API. This is simpler and makes
2330 back-porting the classes to JDK1.1 trivial.
2331 (readObject): likewise.
2333 2001-03-01 Per Bothner <per@bothner.com>
2335 Changes merged from Kawa's gnu.math.
2336 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2337 (rshift(int[],int[],int,int): Removed - not needed.
2338 (gcd): Use rshift0 rather than rshift.
2339 * java/math/BigInteger.java (setShiftRight): Likewise.
2340 (divide): Simplify by using rshift0.
2341 (divide): Zero-extend results if high-order bit set.
2343 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2345 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2348 2001-02-23 Per Bothner <per@bothner.com>
2350 Change to sometimes include class name in ClassFormatError message.
2351 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2352 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2353 boolean instead of throwing ClassFormatError on failure.
2354 (throw_class_format_error): Change static function to method.
2355 (_Jv_ClassReader): New inline methods verify_identifier,
2356 two overloads of verify_classname, verify_field_signature, and
2357 verify_method_signature
2358 * include/java-interp.h: Update declarations to return bool.
2359 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2360 ClassFormatError since _Jv_VerifyClassName now returns bool.
2362 2001-02-23 Per Bothner <per@bothner.com>
2364 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2365 c++filt to select java-style output.
2367 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2369 Fix for PR java/2040:
2370 * java/util/HashMap.java (HashMap): Don't throw exception for
2371 loadFactor > 1. Add exception messages.
2372 * java/util/Hashtable.java (Hashtable): Likewise.
2374 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2376 Disable libgcjx by default.
2377 * configure.in: Add support for --enable-java-awt configure option.
2378 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2379 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2380 * Makefile.in: Rebuilt.
2381 * configure: Rebuilt.
2383 2001-02-20 Tom Tromey <tromey@redhat.com>
2385 * java/io/PipedWriter.java (flush): Throw exception if stream
2387 * java/io/OutputStreamWriter.java (write): Throw exception if
2389 (writeChars): Don't throw exception if stream closed.
2390 * java/io/CharArrayWriter.java (closed): New field.
2392 (flush): Throw exception if stream closed.
2393 (reset): Synchronize on correct lock. Allow stream to be
2395 (toCharArray, toString, writeTo): Synchronize.
2396 (write): Throwe exception if stream closed.
2397 * java/io/BufferedWriter.java (close): Clear `buffer'.
2398 (flush): Throw IOException if stream is closed.
2401 2001-02-16 Tom Tromey <tromey@cygnus.com>
2403 * java/lang/ThreadGroup.java (activeCount): Only include threads
2405 (enumerate): Likewise.
2407 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2409 * java/lang/Integer.java (getInteger): Return default argument if
2410 property is not set. Don't call decode with null argument.
2411 * java/lang/Long.java (getLong): Likewise.
2413 * java/io/CharArrayReader.java (CharArrayReader): Throw
2414 IllegalArgumentException if constructor arguments are illegal.
2415 (ready): Return false if no more characters can be read.
2416 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2418 2001-02-17 Mark Wielaard <mark@klomp.org>
2420 * java/util/TimerTask.java: New version from Classpath.
2422 2001-02-17 Mark Wielaard <mark@klomp.org>
2424 Remerge with Classpath
2425 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2426 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2427 (readByte): Use convertToByte().
2428 (readChar): Use convertToChar().
2429 (readInt): Use convertToInt().
2430 (readLong): Use convertToLong().
2431 (readShort): Use convertToShort().
2432 (readUnsignedByte): Use convertToUnsignedByte().
2433 (readUnsignedShort): Use convertToUnsignedShort().
2434 (readUTF): Use convertToUTF().
2436 (convertToBoolean): Resurrected.
2437 (convertToByte): Ditto.
2438 (convertToChar): Ditto.
2439 (convertToInt): Ditto.
2440 (convertToLong): Ditto.
2441 (convertToShort): Ditto.
2442 (convertToUnsignedByte): Ditto.
2443 (convertToUnsignedShort): Ditto.
2444 (convertToUTF): Ditto.
2446 2001-02-17 Mark Wielaard <mark@klomp.org>
2450 2001-02-17 Mark Wielaard <mark@klomp.org>
2452 * java/io/DataInputStream.java: update copyright notice
2453 * java/io/PrintWriter.java: idem
2454 * java/io/Reader.java: idem
2455 * java/io/StreamTokenizer.java: idem
2456 * java/io/StringReader.java: idem
2457 * java/lang/reflect/ReflectPermission.java: idem
2459 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2461 * java/util/TreeSet.java (clone): Made subclass safe, use
2462 super.clone(), not new.
2463 * java/util/TreeMap.java (clone): Likewise.
2465 * java/util/TreeMap.java (nil): Made non-final.
2466 (clone): Create new nil node for copy.
2468 * java/util/HashSet.java (clone): Made subclass safe, use
2469 super.clone(), not new.
2471 2001-02-14 Andrew Haley <aph@redhat.com>
2473 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2476 2001-02-15 Anthony Green <green@redhat.com>
2478 * defineclass.cc: Don't include alloca.h.
2479 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2480 * interpret.cc (run_normal): Ditto.
2482 * java/lang/natDouble.cc (parseDouble): Ditto.
2484 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2486 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2488 * java/util/Collections.java (ReverseComparator): New static class.
2489 (reverseOrder): Return static instance of ReverseComparator.
2491 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2492 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2493 Rectangle.clone(), not Object.clone().
2495 * java/util/HashSet.java (clone): Remove try/catch.
2497 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2498 * java/util/Collection.java: Likewise.
2499 * java/util/Comparator.java: Likewise.
2500 * java/util/Dictionary.java: Likewise.
2501 * java/util/Iterator.java: Likewise.
2502 * java/util/ListIterator.java: Likewise.
2503 * java/util/Map.java: Likewise.
2504 * java/util/Set.java: Likewise.
2506 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2508 * java/util/TreeMap.java: New file.
2509 * java/util/TreeSet.java: New file.
2510 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2511 * Makefile.in: Rebuilt.
2512 * java/util/HashSet.java (clone): Use constructor instead of calling
2514 * java/util/SortedSet.java: Sync with classpath.
2515 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2518 * java/lang/natClass.cc (getSignature): Don't try to dereference
2519 param_types if it is null. Instead, take this to mean "no parameters".
2520 * java/lang/TreeMap.java (TreeIterator.next): Throw
2521 NoSuchElementException in preference to ConcurrentModificationException.
2522 (TreeIterator.remove): Throw IllegalStateException in preference to
2523 ConcurrentModificationException.
2524 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2525 throw a NoSuchElementException.
2526 (SubMap.lastKey): Likewise.
2528 2001-02-13 Tom Tromey <tromey@redhat.com>
2530 * java/io/PipedReader.java (ready): Throw IOException if pipe
2532 * java/io/FilterReader.java (close): Don't clear `in'.
2533 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2535 (read, ready, reset, skip): Added exception message.
2536 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2537 Perform checkStatus check inside synchronized block.
2539 2001-02-13 Tom Tromey <tromey@redhat.com>
2541 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2543 2001-02-13 Tom Tromey <tromey@redhat.com>
2545 Fix for PR libgcj/1351:
2546 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2548 Include Thread.h and InterruptedIOException.h.
2550 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2552 * java/io/BlockDataException.java: Removed.
2553 * java/io/ObjectInputStream.java (readObject): Throw
2554 StreamCorruptedException, not BlockDataException.
2555 * Makefile.am: Remove BlockDataException.
2556 * Makefile.in: Rebuild.
2558 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2559 Tom Tromey <tromey@redhat.com>
2561 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2564 2001-02-09 Tom Tromey <tromey@redhat.com>
2566 * java/util/Timer.java: New version from Classpath.
2568 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2570 * java/lang/Double.java (doubleToRawLongBits): Now native.
2571 * java/lang/Float.java (floatToRawIntBits): Likewise.
2572 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2573 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2575 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2577 * java/io/File.java (java.net): Imported.
2578 (getAbsoluteFile): Added.
2579 (getCanonicalPath): Likewise.
2582 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2584 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2585 * java/lang/Integer.java: Likewise.
2586 * java/lang/Long.java: Likewise.
2587 * java/lang/Short.java: Likewise.
2588 * java/lang/Double.java: Likewise.
2589 (doubleToRawLongBits): New method.
2590 * java/lang/Float.java: As above.
2591 (floatToRawIntBits): New method.
2593 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2594 IOException if stream closed.
2596 2001-02-08 Tom Tromey <tromey@redhat.com>
2598 * java/lang/Float.java (parseFloat): New method.
2600 2001-02-08 Tom Tromey <tromey@redhat.com>
2602 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2603 * java/io/InputStreamReader.java (ready, read): Throw IOException
2604 if stream has been closed.
2606 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2608 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2609 Change sources.redhat.com and sourceware.cygnus.com references to
2612 2001-02-07 Tom Tromey <tromey@redhat.com>
2614 Fix for PR libgcj/1906:
2615 * java/text/MessageFormat.java (setLocale): Use named class
2618 (format(Object,StringBuffer,FieldPosition)): Special case if
2619 argument is an Object[].
2621 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2623 * java/util/Arrays.java: Removed "cmp" methods.
2624 (qsort): Don't use "cmp".
2627 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2629 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2630 sort. Fix for PR java/1895.
2632 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2634 * configure.host: Use sjlj-exceptions for Alpha.
2636 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2638 * libgcj.spec.in: Don't force static libgcc into the executable.
2639 * configure.in (FORCELIBGCCSPEC): Removed.
2640 * configure: Rebuilt.
2642 2001-01-31 Tom Tromey <tromey@redhat.com>
2644 * Makefile.in: Rebuilt.
2645 * Makefile.am (LTCXXCOMPILE): New macro.
2647 2001-01-26 Andrew Haley <aph@redhat.com>
2649 (INIT_FPE): Use a direct system call to set the handler.
2651 2001-01-27 Richard Henderson <rth@redhat.com>
2653 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2655 2001-01-27 Tom Tromey <tromey@redhat.com>
2657 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2658 native interface structure.
2660 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2662 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2664 (read (byte[], int, int)): Only call readNextBlock() if the block
2665 buffer would actually be overrun. Increment blockDataPosition.
2666 (callReadMethod): Propagate exceptions from invocation target.
2667 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2668 exceptions from invocation target.
2670 2001-01-26 Tom Tromey <tromey@redhat.com>
2672 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2673 to internal representation.
2674 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2675 _Jv_FindClassFromSignature.
2677 2001-01-26 Warren Levy <warrenl@redhat.com>
2679 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2680 and timezone if they are available on the system.
2682 2001-01-24 Tom Tromey <tromey@redhat.com>
2684 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2686 2001-01-24 Tom Tromey <tromey@redhat.com>
2688 * Makefile.in: Rebuilt.
2689 * Makefile.am (c_source_files): Added sf_fabs.c.
2690 * java/lang/sf_fabs.c: New file.
2692 2001-01-19 Warren Levy <warrenl@redhat.com>
2694 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2695 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2696 correctly. Adjust properly from 0-23 clock hour.
2698 2001-01-17 Mark Wielaard <mark@klomp.org>
2700 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2702 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2704 * java/lang/Class.h (isInterface): Move implementation from
2705 natClass.cc. Declare inline.
2706 (Class): Add default constructor.
2707 * java/lang/Object.h: Update comments.
2708 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2709 initialize superclass, saving a call if super is already initialized.
2711 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2713 * prims.cc (init_prim_class): Deleted.
2714 (DECLARE_PRIM_TYPE): Rewritten.
2715 * java/lang/Class.h (stdio.h): Include removed.
2716 (stddef.h): Included.
2717 (java/lang/reflect/Modifier.h): Likewise.
2718 (Class): Contructor now takes arguments, initializes fields.
2719 (initializePrim): Prototype deleted.
2720 * java/lang/natClass.cc (initializePrim): Deleted.
2722 2001-01-16 Warren Levy <warrenl@redhat.com>
2724 * java/math/BigInteger.java: Update Copyright year.
2726 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2728 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2731 2001-01-14 Mark Wielaard <mark@klomp.org>
2732 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2733 (decode): Merge comments with Classpath, don't throw Exception
2735 2001-01-12 Tom Tromey <tromey@redhat.com>
2737 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2741 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2742 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2743 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2744 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2745 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2747 * java/lang/natSystem.cc: Include locale.h if it exists.
2748 * configure: Rebuilt.
2749 * configure.in: Check for locale.h.
2751 2001-01-11 Tom Tromey <tromey@redhat.com>
2753 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2754 (Cursor(int), getPredefinedCursor): Throw exception if argument
2757 2001-01-03 Tom Tromey <tromey@redhat.com>
2759 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2760 (getLocationOnScreen): Wrote.
2762 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2764 * Makefile.am: Re-enable dependencies.
2765 * Makefile.in: Rebuilt.
2767 2001-01-10 Warren Levy <warrenl@redhat.com>
2769 * java/math/BigDecimal.java (divide): Fixed comment.
2771 2001-01-10 Warren Levy <warrenl@redhat.com>
2773 Fix for PR libgcj/1596:
2774 * java/math/BigDecimal.java (divide): Check newScale for validity.
2775 Ensure that BigInteger.pow() is called with a non-negative value.
2776 (setScale (int)): New public method.
2777 (setScale (int,int)): New public method.
2779 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2781 Fix for PR libgcj/1338:
2782 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2783 commentChar. Fixed typos in comments.
2785 2001-01-08 Warren Levy <warrenl@redhat.com>
2787 Fix for PR libgcj/1411:
2788 * Makefile.am: Removed java/util/natTimeZone.cc.
2789 * Makefile.in: Rebuilt.
2790 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2791 missing localized timezone names.
2792 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2793 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2794 (init_properties): Set user.timezone property.
2795 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2796 default timezone names; removed non-standard ones. Use standard
2798 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2800 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2802 (getDefaultTimeZoneId): Removed.
2804 * java/util/natTimeZone.cc: Removed.
2806 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2808 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2809 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2810 (_Jv_GetArrayClass): New inline function.
2811 (arrayclass): New field.
2812 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2813 _Jv_GetArrayElementFromElementType.
2814 (_Jv_NewPrimArray): Ditto.
2815 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2816 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2817 Set Modifier::ABSTRACT.
2818 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2819 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2820 Now synchronized. Array classes are now referenced from
2821 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2822 Set array classes' accessibility flags correctly. Optimize so that
2823 all array classes share the same IDT.
2824 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2825 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2826 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2827 in superclasses from overwriting classes own fields.
2828 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2829 Modifier::isAbstract().
2830 (null_idt): New static field.
2831 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2833 (_Jv_IndexOf): Made inline.
2834 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2836 2001-01-08 Tom Tromey <tromey@redhat.com>
2838 Fix for PR java/1586:
2839 * Makefile.in: Rebuilt.
2840 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2842 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2844 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2845 from the c++ compiler.
2846 * Makefile.in: Rebuilt.
2848 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2850 All files with updated copyright.
2851 * prims.cc (class _Jv_PrimClass): Removed.
2852 (init_prim_class): New function.
2853 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2854 `_Jv_PrimClass' in primitive type declarations. Assign to the
2855 value returned by `init_prim_class.'
2856 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2857 primitive type declarations.
2858 (JvPrimClass): Cast to `jclass' removed.
2859 * java/lang/Class.h (Class): New constructor.
2860 (Class): New copy constructor.
2861 (initializePrim): New prototype.
2862 (_Jv_PrimClass): Field removed.
2863 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2864 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2865 (class java::lang::Object): `finalize' moved up front.
2866 * java/lang/natClass.cc
2867 (isAssignableFrom): Turned outline.
2868 (isInstance): Likewise.
2869 (isInterface): Likewise, fixed indentation.
2870 (initializePrim): New function.
2872 2001-01-07 Anthony Green <green@redhat.com>
2874 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2876 * Makefile.in: Rebuilt.
2878 * scripts/TexinfoDoclet.java: New file.
2880 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2881 doc/java-awt-color.texi, doc/java-lang.texi,
2882 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2883 doc/java-awt-event.texi, doc/java-net.texi,
2884 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2885 doc/java-awt-image.texi, doc/java-security.texi,
2886 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2887 doc/java-text.texi, doc/java-beans-beancontext.texi,
2888 doc/java-util-jar.texi, doc/java-beans.texi,
2889 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2890 doc/java-lang-ref.texi: New files.
2892 2001-01-07 Anthony Green <green@redhat.com>
2894 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2895 be used for both input and output, so don't clear doInput.
2897 * java/lang/StringBuffer.java: Fix comments.
2899 2001-01-06 Anthony Green <green@redhat.com>
2901 * java/beans/PropertyDescriptor.java: Fix comment.
2902 * java/io/PushbackReader.java: Fix comment.
2903 * java/io/ObjectStreamClass.java: Fix comment.
2904 * java/io/DataInputStream.java: Fix comment.
2905 * java/io/PipedInputStream.java: Fix comments.
2906 * java/io/PipedReader.java: Fix comments.
2907 * java/sql/DatabaseMetaData.java: Fix comments.
2909 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2911 * java/io/PipedReader: Synchronize on "lock" instead of this.
2913 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2915 * java/lang/Thread.java: Update comment.
2917 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2918 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2919 * java/io/PipedReader: New implementation based on new
2921 * java/io/PipedWriter: Updated to match new PipedReader.
2923 2001-01-03 Tom Tromey <tromey@redhat.com>
2925 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2926 (getViewportSize): Insets include scrollbar size.
2927 (doLayout): Finished.
2928 (getScrollPosition): Wrote.
2929 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2931 2001-01-02 Tom Tromey <tromey@redhat.com>
2933 * java/awt/ScrollPane.java: Wrote.
2934 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2937 * java/awt/Panel.java (Panel()): Fixed.
2939 * java/awt/Component.java (isShowing): Return false if no peer
2940 exists, and true if component is visible and no parent exists.
2941 (getLocationOnScreen): Wrote.
2942 (getPreferredSize): Removed FIXME comment.
2943 (getMinimumSize): Likewise.
2944 (getAlignmentX, getAlignmentY): Wrote.
2946 (requestFocus): Wrote.
2947 (transferFocus): Wrote.
2948 (findNextFocusComponent): New method.
2949 (hasFocus()): Wrote.
2950 (checkImage): Wrote.
2951 (enableEvents): Call setEventMask on the peer.
2953 * java/awt/Container.java (list): Use super.list() to print self.
2954 (findNextFocusComponent): New method.
2955 (setLayout): Call invalidate.
2956 (findComponentAt): Wrote.
2958 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2960 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2961 the correct versions of various linuxthreads functions get linked.
2962 * Makefile.in: Rebuilt.
2963 * java/lang/natThread.cc (finalize_native): New static function. Call
2964 _Jv_ThreadDestroyData.
2965 (initialize_native): Register finalizer for "data".
2966 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2967 (_Jv_ThreadDestroyData): New prototype.
2968 * include/win32-threads.h: Ditto.
2969 * include/no-threads.h: Ditto.
2970 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2971 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2972 move mutex and condition variable destroy code from:
2973 (really_start): ...here.
2974 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2975 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2976 (_Jv_ThreadDestroyData): Implemented.
2977 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2978 (_Jv_AllocArray): Ditto.
2980 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2982 * java/sql/DriverManager.java (getConnection): Don't set user/password
2985 2000-12-27 Warren Levy <warrenl@redhat.com>
2987 Fix for PR libgcj/1358:
2988 * java/lang/System.java: Update Copyright date properly.
2989 * java/util/Calendar.java: Fix typo in comment.
2990 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2991 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2992 initialize times. Spec says to set H:M:S values to zero only if
2994 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2995 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2996 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2997 timezones and GMT offsets, being careful to account for units of
2998 milliseconds vs. seconds.
3000 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3002 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3003 not be assigned to Object.
3005 Fix for PR libgcj/1516:
3006 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3008 (can_widen): Declared inline. Remove redundant checks for void
3009 arguments and char->short conversion. Add special case for boolean
3011 (ffi_type): Declared inline.
3012 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3014 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3016 * java/sql/SQLWarning.java: Fixed typo in comment.
3018 2000-12-26 Tom Tromey <tromey@redhat.com>
3020 * java/awt/MenuItem.java (paramString): Now protected.
3022 * java/awt/MenuShortcut.java: Implements Serializable.
3024 * java/awt/MenuBar.java: Rewrote from scratch.
3026 * java/awt/MenuComponent.java (removeNotify): Wrote.
3027 Implements Serializable.
3029 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3032 * java/awt/CheckboxMenuItem.java: Wrote.
3034 2000-12-25 Tom Tromey <tromey@redhat.com>
3036 * java/awt/MenuContainer.java: Fixed typo.
3038 * Makefile.in: Rebuilt.
3039 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3040 * java/awt/SystemColor.java: New file.
3042 * java/awt/Color.java (rgba): Now package-private.
3044 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3046 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3049 * java/awt/MenuItem.java (addNotify): New method.
3050 (MenuItem(String,MenuShortcut)): New constructor.
3051 (setLabel): Notify peer of change.
3052 (setEnabled): Likewise.
3054 * java/awt/GridLayout.java (toString): New method.
3056 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3057 (FlowLayout): Check for LEADING and TRAILING.
3058 (setAlignment): Likewise.
3059 (layoutContainer): Handle component orientation.
3061 * java/awt/Component.java (orientatin): New field.
3062 (setComponentOrientation): Wrote.
3063 (getComponentOrientation): Wrote.
3065 * java/awt/Event.java (Event): Implements Serializable.
3066 (consumed): New field for serialization.
3067 * java/awt/Dimension.java (Dimension): Implements Serializable.
3068 * java/awt/Cursor.java (Cursor): Implements Serializable.
3069 * java/awt/Container.java (Container): No longer abstract.
3071 * java/awt/Choice.java: Wrote.
3072 * java/awt/Checkbox.java: Wrote.
3073 * java/awt/ItemSelectable.java: Documented.
3074 * java/awt/CheckboxGroup.java: Wrote.
3076 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3078 (getSize): Likewise.
3080 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3082 * java/io/FileDescriptor.java: Initialize fd to -1.
3083 Remove default constructor.
3085 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3087 * java/lang/mprec.h: Change C9X reference to refer to C99.
3089 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3091 * java/lang/Throwable.java (trace_enabled): New static field.
3092 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3093 trace_enabled not set.
3094 * prims.cc (main_init): Turn off trace_enabled while creating
3095 default exception objects.
3097 2000-12-21 Tom Tromey <tromey@redhat.com>
3099 * java/beans/PropertyChangeListener.java: Extends EventListener.
3100 * java/beans/VetoableChangeListener.java: Extends EventListener.
3102 * java/util/zip/Deflater.java (update, init): Now private.
3104 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3106 * java/util/BasicMapEntry.java: Re-added.
3107 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3108 (putAll): Test for BasicMapEntry.
3109 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3110 (putAll): Test for BasicMapEntry.
3111 Change references from `HashMap.Entry' to `Entry' in various places.
3112 * Makefile.am: Add BasicMapEntry.java.
3113 * Makefile.in: Rebuilt.
3115 2000-12-18 Warren Levy <warrenl@redhat.com>
3117 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3118 need to set timezone to a valid non-null value. Partial fix for
3121 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3123 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3125 * java/awt/Button.java (addNotify): Likewise.
3126 * java/awt/Label.java (addNotify): Likewise.
3127 * java/awt/Panel.java (addNotify): Likewise.
3128 * java/awt/Scrollbar.java (addNotify): Likewise.
3129 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3130 Remove redundant null checks.
3132 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3134 * COPYING: Update to current
3135 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3136 to 19yy as example year in copyright notice).
3138 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3140 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3141 end-of-stream if avail_in is 0.
3143 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3145 * java/util/ArrayList.java (data): Declare transient.
3146 (serialPersistantFields): Removed.
3147 (readObject): Use defaultReadObject(), not readFields().
3148 (writeObject): Use defaultWriteObject(), not writeFields().
3150 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3152 * java/util/Hashtable.java (put): Remove `last' variable.
3153 Link new entry to head of list.
3154 * java/util/HashMap.java (put): Ditto.
3156 2000-12-15 Tom Tromey <tromey@redhat.com>
3158 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3159 loader to Class.forName.
3161 2000-12-14 Tom Tromey <tromey@redhat.com>
3163 * java/util/ResourceBundle.java
3164 (getBundle(String,Locale,ClassLoader)): New method.
3165 (trySomeGetBundle): Added `loader' argument.
3166 (partialGetBundle): Likewise.
3168 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3169 maximumFractionDigits, maximumIntegerDigits,
3170 minimumFractionDigits, minimumIntegerDigits): Now
3173 * java/lang/Thread.java (checkAccess): Now final.
3175 * java/lang/RuntimePermission.java: Class now final.
3177 * java/io/StringWriter.java (StringWriter(int)): Now public.
3179 * java/io/SerializablePermission.java (legal_names): Now private.
3181 * java/lang/Character.java: Updated UnicodeBlock constants.
3182 * scripts/blocks.pl: Special case private use and surrogate
3185 2000-12-12 Tom Tromey <tromey@redhat.com>
3187 * Makefile.in: Rebuilt.
3188 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3190 (GCJCOMPILE): Use it.
3193 2000-12-11 Tom Tromey <tromey@redhat.com>
3195 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3196 New static final fields.
3198 * scripts/classes.pl (scan): Skip lines with leading `*'.
3199 Fix for PR libgcj/378.
3201 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3203 * configure.in: Remove check for -fuse-divide-subroutine.
3204 * configure: Rebuilt.
3206 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3208 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3210 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3212 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3213 Remove BasicMapEntry.java and Bucket.java.
3214 * Makefile.in: Rebuilt.
3215 * java/util/HashMap.java: Rewritten.
3216 * java/util/HashSet.java: Imported from classpath.
3217 * java/util/WeakHashMap.java: Imported from classpath.
3218 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3219 * java/util/Bucket.java: Deleted.
3220 * java/util/BasicMapEntry.java: Deleted.
3221 * java/util/Collections.java (search): Use a for-loop, not iterator
3223 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3224 of elements in source.
3225 (max): Use a for-loop.
3227 (reverse): Keep track of positions instead of using Iterator's
3228 nextIndex() and previousIndex().
3229 (shuffle(List)): Initialize defaultRandom if required using
3230 double-check thread safety idiom. Call two-argument shuffle method
3231 using defaultRandom.
3232 (defaultRandom): New field.
3233 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3234 using previousIndex() and nextIndex().
3235 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3236 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3237 * java/util/AbstractMap.java (toString): Use StringBuffer.
3238 * java/lang/ref/PhantomReference.java: Imported from classpath.
3239 * java/lang/ref/SoftReference.java: Ditto.
3240 * java/lang/ref/Reference.java: Ditto.
3241 * java/lang/ref/WeakReference.java: Ditto.
3242 * java/lang/ref/ReferenceQueue.java: Ditto.
3244 2000-12-10 Richard Henderson <rth@redhat.com>
3246 * configure.host: Recognize alpha*-*, not alphaev6-*.
3248 2000-12-09 Anthony Green <green@redhat.com>
3250 * configure.host: Enable interpreter for Alpha.
3252 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3254 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3255 (ZIP): Points at fastjar instead of zip.
3256 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3257 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3258 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3259 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3260 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3261 ($(x_java_source_files:.java=.class):): Likewise.
3262 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3264 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3265 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3266 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3267 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3268 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3269 gnu/gcj/runtime/VMClassLoader.h:,
3270 java/io/ObjectInputStream$$GetField.h:,
3271 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3272 (Makefile.in): Rebuilt.
3274 2000-12-08 Tom Tromey <tromey@redhat.com>
3277 * configure: Rebuilt.
3278 * configure.in: Use echo, not `:', to create .d files.
3280 2000-12-08 Warren Levy <warrenl@redhat.com>
3282 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3283 NullPointerException so proper check of offset can be done.
3285 2000-12-08 Warren Levy <warrenl@redhat.com>
3287 * java/io/FileInputStream.java (close): Check if the fd is valid.
3288 * java/io/RandomAccessFile.java (close): Ditto.
3289 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3290 * java/net/PlainSocketImpl.java (close): Ditto.
3292 2000-12-06 Tom Tromey <tromey@redhat.com>
3294 * java/awt/GridBagConstraints.java: Filled in values for static
3297 * java/util/BitSet.java: Updated copyright notice.
3299 * Makefile.in: Rebuilt.
3300 * Makefile.am (awt_java_source_files): Added new file.
3301 * java/awt/GridBagConstraints.java: New file.
3303 2000-12-05 Tom Tromey <tromey@redhat.com>
3305 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3306 Now package-private, not protected.
3307 * java/text/DateFormatSymbols.java (equals): Now private.
3308 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3309 * java/util/BitSet.java: Class no longer final.
3311 2000-12-04 Warren Levy <warrenl@redhat.com>
3313 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3314 out code dependent on compiler and library changes.
3316 2000-12-04 Warren Levy <warrenl@redhat.com>
3318 * java/io/FilePermission.java: Made class final per spec.
3319 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3320 method name to match spec (fixed typo).
3321 * java/util/LinkedList.java: Implements List.
3323 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3325 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3326 Edgar Villanueva <edgarvil@home.com>.
3328 2000-12-03 Tom Tromey <tromey@redhat.com>
3330 * java/awt/geom/Point2D.java: Added protected constructor.
3331 (equals): New method.
3332 (Float.setLocation(float,float)): New method.
3333 * java/awt/geom/Dimension2D.java: Added protected constructor.
3334 * java/awt/geom/AffineTransform.java: Made all constants public.
3335 (concatenate): Fixed typo in name.
3336 * java/awt/event/WindowAdapter.java: Class now abstract.
3337 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3338 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3341 * java/awt/AWTError.java: Extend Error, not
3342 IllegalStateException.
3344 * Makefile.in: Rebuilt.
3345 * Makefile.am (awt_java_source_files): Added new file.
3346 * java/awt/geom/RoundRectangle2D.java: New file.
3348 * Makefile.in: Rebuilt.
3349 * Makefile.am (awt_java_source_files): Added new file.
3350 * java/awt/FlowLayout.java: New file.
3352 * Makefile.in: Rebuilt.
3353 * Makefile.am (awt_java_source_files): Added new file.
3354 * java/awt/GridLayout.java: New file.
3356 2000-12-02 Tom Tromey <tromey@redhat.com>
3358 * Makefile.in: Rebuilt.
3359 * Makefile.am (awt_java_source_files): Added new files.
3360 * java/awt/CardLayout.java: New file.
3361 * java/awt/AWTPermission.java: New file.
3363 2000-12-01 Tom Tromey <tromey@redhat.com>
3365 * java/util/Vector.java (insertElementAt): Unconditionally
3366 increment elementCount.
3367 (removeRange): Clear unused slots in vector.
3369 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3371 * java/lang/natMath.cc: Declare fabsf() function.
3372 * java/lang/mprec.h: Don't include math.h.
3373 * java/lang/dtoa.c: Include string.h.
3374 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3377 From Adam Welc <welc@cs.purdue.edu>:
3378 * java/util/LinkedList.java (removeFirst): Update `first' field.
3379 Handle the last == first case.
3380 (removeLast): Update `last' field. Handle the last == first case.
3382 2000-12-01 Warren Levy <warrenl@cygnus.com>
3384 * Makefile.am: Added entries for new java.sql modules.
3385 * Makefile.in: Rebuilt.
3387 2000-12-01 Warren Levy <warrenl@cygnus.com>
3389 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3390 that aren't quite 1.2 compatible yet.
3392 2000-11-30 Warren Levy <warrenl@cygnus.com>
3394 * java/sql/Array.java: New file from classpath.
3395 * java/sql/BatchUpdateException.java: Ditto.
3396 * java/sql/Blob.java: Ditto.
3397 * java/sql/Clob.java: Ditto.
3398 * java/sql/Ref.java: Ditto.
3399 * java/sql/SQLData.java: Ditto.
3400 * java/sql/SQLInput.java: Ditto.
3401 * java/sql/SQLOutput.java: Ditto.
3402 * java/sql/Struct.java: Ditto.
3403 * java/sql/CallableStatement.java: Merged file from claspath.
3404 * java/sql/Connection.java: Ditto.
3405 * java/sql/DataTruncation.java: Ditto.
3406 * java/sql/DatabaseMetaData.java: Ditto.
3407 * java/sql/DriverManager.java: Ditto.
3408 * java/sql/PreparedStatement.java: Ditto.
3409 * java/sql/ResultSet.java: Ditto.
3410 * java/sql/ResultSetMetaData.java: Ditto.
3411 * java/sql/SQLException.java: Ditto.
3412 * java/sql/SQLWarning.java: Ditto.
3413 * java/sql/Statement.java: Ditto.
3414 * java/sql/Types.java: Ditto.
3416 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3418 * java/lang/natSystem.cc (init_properties): Set user.language and
3420 * configure.in: Check for setlocale.
3421 * configure: Rebuilt.
3422 * include/config.h.in: Rebuilt.
3424 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3425 the infate() call didn't deliver any output. Throw a ZipException if
3426 the needsDictionary() call returns true.
3427 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3428 * java/io/InputStreamReader: Use the default buffer size for the
3429 contained BufferedInputStream.
3431 2000-11-28 Warren Levy <warrenl@cygnus.com>
3433 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3434 more time zone entries.
3435 * java/text/SimpleDateFormat.java (format): Added case for
3438 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3440 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3441 directly rather than read() in all cases. Make primitive read
3442 implementations more efficient, as defined in JDK online docs.
3443 (skipBytes): Behave like the JDK's implementation.
3444 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3445 closed stream with checkStatus() whenever an IOException can be
3447 (checkStatus): New private method.
3449 2000-11-27 Warren Levy <warrenl@cygnus.com>
3451 * Makefile.am: Added natTimeZone.cc.
3452 * Makefile.in: Rebuilt.
3453 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3454 * java/text/DateFormatSymbols.java (ampms): Made package private.
3455 (eras): Made package private.
3456 (months): Made package private.
3457 (shortMonths): Made package private.
3458 (shortWeekdays): Made package private.
3459 (weekdays): Made package private.
3460 (formatPrefixes): New private field.
3461 (localPatternCharsDefault): Made private.
3462 (dateFormats): New package private field.
3463 (timeFormats): New package private field.
3464 (formatsForKey): New private method.
3465 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3466 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3467 * java/text/SimpleDateFormat.java: Merged with Classpath.
3468 * java/util/TimeZone.java: Merged with Classpath.
3469 * java/util/natTimeZone.cc: New file.
3471 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3473 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3474 (addElement): Don't increment elementCount twice. Doh.
3475 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3476 array needs to be expanded.
3478 * java/util/Collections.java (UnmodifiableCollection): Implement
3480 (UnmodifiableList): Throw UnsupportedOperationException from
3481 modification methods. Set `l' from the one-parameter constructor.
3482 (UnmodifiableMap): Implement toString().
3483 (SynchronizedCollection): Ditto.
3484 (SynchronizedList): Set `l' from the one-parameter constructor.
3485 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3486 (SynchronizedMap): Implement toString().
3488 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3490 * javax/naming/NameParser.java,
3491 javax/naming/directory/AttributeInUseException.java,
3492 javax/naming/directory/AttributeModificationException.java,
3493 javax/naming/directory/InvalidAttributeIdentifierException.java,
3494 javax/naming/directory/InvalidAttributesException.java,
3495 javax/naming/directory/InvalidAttributeValueException.java,
3496 javax/naming/directory/InvalidSearchControlsException.java,
3497 javax/naming/directory/InvalidSearchFilterException.java,
3498 javax/naming/directory/NoSuchAttributeException.java,
3499 javax/naming/directory/SchemaViolationException.java: New files.
3501 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3503 * javax/naming/InitialContext.java (rebind): Implement.
3504 (unbind): Implement.
3505 (rename): Implement.
3507 (listBindings): Implement.
3508 (destroySubcontext): Implement.
3509 (createSubcontext): Implement.
3510 (lookupLink): Implement.
3511 (getNameParser): Implement.
3512 (composeName): Implement.
3513 (addToEnvironment): Implement.
3515 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3517 * javax/naming/AuthenticationException.java,
3518 javax/naming/AuthenticationNotSupportedException.java,
3519 javax/naming/CannotProceedException.java,
3520 javax/naming/CommunicationException.java,
3521 javax/naming/ConfigurationException.java,
3522 javax/naming/ContextNotEmptyException.java,
3523 javax/naming/InsufficientResourcesException.java,
3524 javax/naming/InterruptedNamingException.java,
3525 javax/naming/InvalidNameException.java,
3526 javax/naming/LimitExceededException.java,
3527 javax/naming/LinkException.java,
3528 javax/naming/LinkLoopException.java,
3529 javax/naming/MalformedLinkException.java,
3530 javax/naming/NameAlreadyBoundException.java,
3531 javax/naming/NameNotFoundException.java,
3532 javax/naming/NamingSecurityException.java,
3533 javax/naming/NoPermissionException.java,
3534 javax/naming/NotContextException.java,
3535 javax/naming/PartialResultException.java,
3536 javax/naming/ReferralException.java,
3537 javax/naming/ServiceUnavailableException.java,
3538 javax/naming/SizeLimitExceededException.java,
3539 javax/naming/TimeLimitExceededException.java: New files.
3541 * javax/naming/Name.java (clone): New method.
3542 (compareTo): New method.
3543 (isEmpty): New method.
3544 (getAll): New method.
3545 (getPrefix): New method.
3546 (getSuffix): New method.
3547 (startsWith): New method.
3548 (endsWith): New method.
3549 (addAll): New method.
3550 (addAll): New method.
3553 (remove): New method.
3555 * javax/naming/Context.java (lookup): New method.
3556 (rebind): New method.
3557 (unbind): New method.
3558 (rename): New method.
3560 (listBindings): New method.
3561 (destroySubcontext): New method.
3562 (createSubcontext): New method.
3563 (lookupLink): New method.
3564 (getNameParser): New method.
3565 (composeName): New method.
3566 (addToEnvironment): New method.
3567 (removeFromEnvironment): New method.
3568 (getEnvironment): New method.
3569 (close): New method.
3570 (getNameInNamespace): New method.
3572 * javax/naming/InitialContext.java (lookup): New method.
3573 (rebind): New method.
3574 (unbind): New method.
3575 (rename): New method.
3577 (listBindings): New method.
3578 (destroySubcontext): New method.
3579 (createSubcontext): New method.
3580 (lookupLink): New method.
3581 (getNameParser): New method.
3582 (composeName): New method.
3583 (addToEnvironment): New method.
3584 (removeFromEnvironment): New method.
3585 (getEnvironment): New method.
3586 (close): New method.
3587 (getNameInNamespace): New method.
3589 2000-11-26 Tom Tromey <tromey@cygnus.com>
3591 * Makefile.in: Rebuilt.
3592 * Makefile.am (core_java_source_files): Added
3593 RuntimePermission.java.
3594 * java/lang/RuntimePermission.java: Imported from Classpath.
3595 * java/lang/Thread.java (getContextClassLoader): Now
3596 synchronized. Added security code.
3597 (setContextClassLoader): Likewise.
3599 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3600 length field of array.
3601 (_Jv_NewPrimArray): Likewise.
3602 * gcj/array.h (__JArray): `length' field now const. Added
3605 2000-11-26 Anthony Green <green@redhat.com>
3607 * javax/naming/spi/NamingManager.java,
3608 javax/naming/spi/ObjectFactory.java,
3609 javax/naming/spi/InitialContextFactory.java,
3610 javax/naming/spi/InitialContextFactoryBuilder.java,
3611 javax/naming/RefAddr.java, javax/naming/Reference.java,
3612 javax/naming/NamingException.java, javax/naming/Context.java,
3613 javax/naming/Referenceable.java,
3614 javax/naming/directory/InitialDirContext.java,
3615 javax/naming/directory/DirContext.java,
3616 javax/naming/directory/Attributes.java,
3617 javax/naming/directory/Attribute.java,
3618 javax/naming/StringRefAddr.java,
3619 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3620 javax/naming/InitialContext.java,
3621 javax/naming/NoInitialContextException.java: New files.
3623 2000-11-25 Anthony Green <green@redhat.com>
3625 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3626 (_Jv_NewPrimArray): Likewise.
3627 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3628 (class JArray): Removed constructor.
3630 * java/lang/Thread.java (context_class_loader): New private data.
3631 (getContextClassLoader): New method.
3632 (setContextClassLoader): New method.
3633 (Thread): Initialize context_class_loader.
3635 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3636 (getResource): Rename to findResource.
3637 (findResource): New method. Used to be getResource.
3638 (getResourceAsStream): Deleted.
3639 (jarFileize): Extracted logic from URLClassLoader constructor into
3640 this new private method.
3641 (addURL): New protected method.
3642 (URLClassLoader): Call jarFileize. Use addElement instead of
3644 (findResources): New method.
3646 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3647 (getResource): Implement correct logic.
3648 (findResource): New method.
3649 (getResources): New method.
3650 (findClass): Create a ClassNotFoundException with the name of the
3651 class rather than nothing at all.
3652 (defineClass) Only throw ClassFormatError.
3654 * java/lang/Class.java (forName): New method.
3655 * java/lang/Class.h (forName): New method.
3656 * java/lang/natClass.cc (forName): New method.
3658 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3660 * java/lang/System.java (setProperties): Only call init_properties()
3661 if properties is null.
3662 (getProperties): Ditto.
3663 (getProperty): Ditto.
3664 (setProperty): Call init_properties if properties are null.
3665 (prop_init): Remove field.
3666 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3667 method. Check for null properties after synchronizing instead of
3668 prop_init flag. Set the properties field last for thread safety.
3670 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3671 test for gcj.dumpobjects property and enable object stream dumping
3673 (dumpElement): No longer native.
3674 (dumpElementln): Ditto.
3675 (setDump): Do not define.
3676 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3677 (dumpElementln): Removed.
3680 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3682 * configure: Rebuilt.
3683 * Makefile.in: Rebuilt.
3684 * Makefile.am (built_java_source_files): Add Configuration.java.
3685 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3686 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3687 Create `gnu' directory in the build tree.
3688 * gnu/classpath/Configuration.java.in: New file.
3690 2000-11-24 Tom Tromey <tromey@cygnus.com>
3692 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3694 (_Jv_NewPrimArray): Likewise.
3696 * gcj/array.h (__JArray): `length' field now const. Added
3698 (class JArray): Added constructor.
3700 2000-11-23 Mark Wielaard <mark@klomp.org>
3702 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3705 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3707 * java/util/Vector.java: Improve exception messages.
3708 (Vector): Check initialCapacity for IllegalArgumentException.
3709 (tromToSize): Don't check for elementCount == elementData.length
3711 (toArray): Don't try to set null marker if target array is the same
3712 length as the vector.
3714 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3716 * Makefile.in: Rebuilt.
3717 * Makefile.am (core_java_source_files): Added Collections.java.
3718 * java/util/List.java: Merged from classpath.
3719 * java/util/Vector.java: Ditto.
3720 * java/util/Collections.java: From classpath.
3721 * java/util/ArrayList.java (addAll(Collection)): Call
3722 addAll(int,Collection) instead of duplicating code.
3723 (indexOf): Clean up int initialization.
3724 (clear): Set cleared array entries to null, to allow garbage
3726 * java/util/List.java: Minor formatting fixes.
3727 * java/util/SimpleTimeZone.java: ditto.
3729 2000-11-18 Tom Tromey <tromey@cygnus.com>
3731 * Makefile.in: Rebuilt.
3732 * Makefile.am (core_java_source_files): Added new files.
3733 * java/lang/reflect/ReflectPermission.java: New class.
3734 * java/io/FileFilter.java: From Classpath
3735 * java/io/FilePermission.java: From Classpath.
3737 2000-11-17 Tom Tromey <tromey@cygnus.com>
3739 * java/lang/reflect/AccessibleObject.java (isAccessible,
3740 setAccessible): Now public.
3742 * java/lang/natString.cc: Include Locale.h.
3743 (toUpperCase): Added `locale' argument. Handle locale
3745 (toLowerCase): Added `locale' argument. Handle locale
3747 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3748 CAPITAL_I): New defines.
3749 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3752 (toUpperCase, toLowerCase): New methods. Variants which accept
3755 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3758 * java/util/PropertyPermission.java: Re-merged from Classpath.
3760 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3762 * java/text/StringCharacterIterator.java: Reindented.
3763 (setText): New method.
3765 2000-11-17 Mark Wielaard <mark@klomp.org>
3767 Merge with Classpath (changes by Bryce McKinlay)
3768 * java/util/jar/*.java: Reformat all to unofficial standard coding
3769 style. No changes of substance.
3771 2000-11-17 Mark Wielaard <mark@klomp.org>
3773 * java/util/zip/*.java: Javadoc updates.
3775 2000-11-17 Tom Tromey <tromey@cygnus.com>
3777 * java/text/CollationKey.java: Implement Comparable.
3778 (compareTo(Object)): New method.
3779 * java/text/Collator.java (compare(Object,Object)): New method.
3780 Implement Comparator.
3782 * java/util/zip/InflaterInputStream.java (available): New method.
3783 (close): New method.
3784 (read, available, skip, fill): Throw exception if stream closed.
3785 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3786 getNextEntry): Throw exception if closed.
3788 2000-11-16 Tom Tromey <tromey@cygnus.com>
3790 * java/io/PushbackReader.java: Merged with Classpath.
3791 * java/util/Arrays.java: Updated from Classpath.
3793 * scripts/blocks.pl: New file.
3794 * java/lang/Character.java (Subset): New class.
3795 (UnicodeBlock): New class.
3797 * java/lang/Math.java (toDegrees, toRadians): New methods.
3799 * java/lang/Float.java: Implement Comparable.
3800 (compareTo): New methods.
3801 * java/lang/Double.java: Implement Comparable.
3802 (compareTo): New methods.
3804 2000-11-16 Warren Levy <warrenl@cygnus.com>
3806 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3808 (listeners): Made transient.
3809 (source): Renamed from 'bean'.
3810 (children): New field for serialization.
3811 (propertyChangeSupportSerializedDataVersion): Ditto.
3812 (serialVersionUID): Ditto.
3813 (writeObject): New serialization method.
3814 (readObject): New serialization method.
3815 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3817 (listeners): Made transient.
3818 (source): Renamed from 'bean'.
3819 (children): New field for serialization.
3820 (vetoableChangeSupportSerializedDataVersion): Ditto.
3821 (serialVersionUID): Ditto.
3822 (writeObject): New serialization method.
3823 (readObject): New serialization method.
3824 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3825 to allow constructor to have a return type (i.e. the class that the
3826 constructor constructs).
3828 2000-11-14 Tom Tromey <tromey@cygnus.com>
3830 * Makefile.in: Rebuilt.
3831 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3834 2000-11-02 Warren Levy <warrenl@cygnus.com>
3836 * java/io/ObjectInputStream.java (readObject): Added code to
3837 conditionally dump out the serialized data.
3838 Handle ENDBLOCKDATA case a bit more gracefully since the current
3839 behavior doesn't seem to work as expected.
3840 (readStreamHeader): Added code for serialized data dumper.
3841 (readNextBlock): Ditto.
3842 (readFields): Ditto.
3843 (dump): New private static field for turning on/off dumper.
3844 (setDump): New native method.
3845 (dumpElement): New native method.
3846 (dumpElementln): New native method.
3847 * java/io/natObjectInputStream.cc (setDump): New method.
3848 (dumpElement): New method.
3849 (dumpElementln): New method.
3851 2000-11-02 Warren Levy <warrenl@cygnus.com>
3853 * java/net/InetAddress.java (addr): Renamed from 'address'.
3854 (address): New field to match Serialized Form doc.
3855 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3856 (family): New serialization field.
3857 (serialVersionUID): New field.
3858 (readObject): New method.
3859 (writeObject): New method.
3860 (getFamily): New native method.
3861 (InetAddress): Set family.
3862 * java/net/natInetAddress.cc (getFamily): New method.
3863 (addr): Renamed from 'address'.
3864 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3865 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3866 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3868 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3870 * java/util/AbstractList.java (SubList): Make it a top-level private
3872 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3874 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3875 * Makefile.in: Rebuilt.
3877 2000-11-02 Tom Tromey <tromey@cygnus.com>
3879 * Makefile.in: Rebuilt.
3880 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3883 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3885 * java/util/AbstractList.java (remove): Comment out modCount increment
3886 to work around compiler bug.
3889 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3891 * java/util/AbstractList.java: Throw messages with
3892 IndexOutOfBoundsExceptions.
3893 (listIterator()): Call listIterator(0).
3894 (size): New field. Initialize to size().
3895 (hasNext): Test position against size, not size().
3896 (remove): Increment knownMod by one instead of resetting it from
3899 (SubList.upMod): Removed.
3900 (SubList.set): Don't call upMod() or update knownMod.
3901 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3902 (SubList.remove): Ditto.
3903 (SubList.addAll): Don't call backingList.size(). Increment size from
3905 (SubList.iterator): New method. Call listIterator(0).
3906 (SubList.listIterator): New method. Restore code to return an anonymous
3907 listIterator implementation (with some changes).
3908 * java/util/AbstractSequentialList.java: Throw messages with
3909 IndexOutOfBoundsExceptions.
3910 (addAll): Add a specnote.
3911 * java/util/ArrayList.java (removeRange): Get the math right.
3912 (addAll): Increment modCount _before_ creating iterator.
3913 * java/util/LinkedList.java: Rewritten, mostly.
3915 2000-11-01 Tom Tromey <tromey@cygnus.com>
3917 * scripts/encodings.pl: Added `ASCII' alias.
3918 * Makefile.in: Rebuilt.
3919 * Makefile.am (convert_source_files): Added new files.
3920 * gnu/gcj/convert/Input_ASCII.java: New file.
3921 * gnu/gcj/convert/Output_ASCII.java: New file.
3922 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3923 out-of-range characters.
3924 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3925 (read): Swap bytes if required. Treat `count' as character count,
3927 (write): Likewise. Also, handle case where iconv fails on a given
3929 (init): Put encoding into exception.
3930 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3931 (static): Call iconv_init. Rebuilt alias list.
3932 (iconv_init): New private method.
3934 2000-11-01 Tom Tromey <tromey@cygnus.com>
3936 * Makefile.in: Rebuilt.
3937 * Makefile.am (install-exec-hook): Only make a single symlink, and
3938 remove the destination before making the link.
3939 * configure: Rebuilt.
3940 * configure.in: Call AC_PROG_LN_S.
3942 2000-10-31 Warren Levy <warrenl@cygnus.com>
3944 * jni.cc: Added include of java/lang/ThreadGroup.h.
3945 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3946 per change of 2000-10-05.
3948 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3950 * java/util/BitSet.java: Updated @specnote.
3952 * java/io/Reader.java: Merge docs from classpath.
3953 (skip): Synchronize on `lock'.
3954 * java/io/FileReader.java: Import correct implementation from
3956 * java/io/StringReader.java: Merge docs from classpath.
3957 (ready): Throw IOException if stream is closed.
3959 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3961 * java/util/AbstractCollection.java (addAll): Use size() instead of
3962 hasNext() in iterator loop.
3964 (contains): Ditto. Simplify loop.
3965 (containsAll): Ditto.
3970 (toString): Ditto. Use string concatenation operators, not
3972 * java/util/AbstractList.java (addAll): Use size() instead of
3973 hasNext() in iterator loop.
3976 (indexOf): Ditto. Don't take null check outside of the loop.
3977 (iterator): Return an AbstractListItr instead of anonymous class.
3978 (lastIndexOf): Use a for loop bounded by size() instead of
3979 hasPrevious() in iterator loop.
3980 (listIterator): Return an AbstractListItr.
3981 (removeRange): Remove bounds checking code and docs.
3982 (AbstractListItr): New inner class. Code moved here from
3984 (SubList.iterator): Removed. Use default implementation from
3985 AbstractList instead.
3986 (SubList.listIterator): As above.
3987 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3988 instead of hasNext() in iterator loop.
3989 (containsValue): Ditto.
3995 (toString): Ditto. Use string concatenation operators, not
3997 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3998 bounded by size() instead of hasNext() in iterator loop.
3999 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4000 part of normal execution flow. Do an explicit null check instead.
4001 * java/util/ArrayList.java (_iSize): Rename to `size'.
4002 (_arData): Rename to `data'.
4003 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4006 (removeRange): Make protected. Don't check bounds.
4007 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4009 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4011 (addAll (int, Collection)): Check lower bounds. Simplify exception
4013 (clone): Clone the data array too.
4014 (indexOf): Inline doesEqual().
4015 (lastIndexOf): Ditto.
4016 (clear): Don't set array data to null.
4017 (set): Check lower bounds. Simplify exception string.
4018 (toArray): Correct comment.
4019 (trimToSize): Don't update modCount, this is not a structural change.
4022 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4024 (toString): Declare `bit' as long, not int.
4025 (data): Made package-private, not private.
4027 2000-10-27 Warren Levy <warrenl@cygnus.com>
4029 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4030 array elements to true.
4032 2000-10-27 Warren Levy <warrenl@cygnus.com>
4034 * Makefile.am: Added locale files from Classpath.
4035 * Makefile.in: Rebuilt.
4036 * gnu/java/locale/Calendar.java: New file.
4037 * gnu/java/locale/Calendar_de.java: New file.
4038 * gnu/java/locale/Calendar_en.java: New file.
4039 * gnu/java/locale/Calendar_nl.java: New file.
4040 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4041 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4042 serialization compatibility.
4043 (scale): Made private.
4044 (serialVersionUID): New field.
4045 * java/math/BigInteger.java (ival): Made transient.
4046 (words): Made transient.
4047 (bitCount): New serialization field.
4049 (firstNonzeroByteNum): Ditto.
4050 (lowestSetBit): Ditto.
4053 (serialVersionUID): New field.
4054 (readObject): New method.
4055 (writeObject): New method.
4056 * java/util/BitSet.java (serialVersionUID): New field.
4057 * java/util/Calendar.java: Replaced with Classpath file.
4058 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4059 of getDefault() for TimeZone or Locale instead of passing nulls.
4060 * java/util/Locale.java (serialVersionUID): New field.
4061 (writeObject): New method.
4062 (readObject): New method.
4063 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4065 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4067 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4068 (core_java_source_files): Put java.lang, java.io, and java.util here.
4069 (ordinary_java_source_files): Order so that core_java_source_files are
4071 (java_source_files): Reorder so that special_java_source_files are
4073 * configure.in: Don't pass -I flag to gcj.
4074 * Makefile.in: Rebuilt.
4075 * configure: Rebuilt.
4077 2000-10-25 Tom Tromey <tromey@cygnus.com>
4079 * Makefile.in: Rebuilt.
4080 * Makefile.am (install-exec-hook): New target.
4082 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4084 * java/util/EventObject.java: Merged from classpath.
4086 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4089 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4091 * java/util/AbstractSet.java (equals): Re-installed original code.
4093 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4095 * Makefile.am: Added rules for libgcjx library.
4096 * Makefile.in: Rebuilt.
4097 * configure.in: Added check for X.
4098 * configure: Rebuilt.
4099 * gnu/awt/LightweightRedirector.java: New file.
4100 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4101 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4102 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4103 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4104 * gnu/awt/j2d/MappedRaster.java: New file.
4105 * gnu/awt/xlib/XCanvasPeer.java: New file.
4106 * gnu/awt/xlib/XEventLoop.java: New file.
4107 * gnu/awt/xlib/XEventQueue.java: New file.
4108 * gnu/awt/xlib/XFontMetrics.java: New file.
4109 * gnu/awt/xlib/XFramePeer.java: New file.
4110 * gnu/awt/xlib/XGraphics.java: New file.
4111 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4112 * gnu/awt/xlib/XPanelPeer.java: New file.
4113 * gnu/awt/xlib/XToolkit.java: New file.
4114 * gnu/gcj/xlib/Clip.java: New file.
4115 * gnu/gcj/xlib/Colormap.java: New file.
4116 * gnu/gcj/xlib/Display.java: New file.
4117 * gnu/gcj/xlib/Drawable.java: New file.
4118 * gnu/gcj/xlib/Font.java: New file.
4119 * gnu/gcj/xlib/GC.java: New file.
4120 * gnu/gcj/xlib/Pixmap.java: New file.
4121 * gnu/gcj/xlib/Screen.java: New file.
4122 * gnu/gcj/xlib/Visual.java: New file.
4123 * gnu/gcj/xlib/WMSizeHints.java: New file.
4124 * gnu/gcj/xlib/Window.java: New file.
4125 * gnu/gcj/xlib/WindowAttributes.java: New file.
4126 * gnu/gcj/xlib/XAnyEvent.java: New file.
4127 * gnu/gcj/xlib/XButtonEvent.java: New file.
4128 * gnu/gcj/xlib/XColor.java: New file.
4129 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4130 * gnu/gcj/xlib/XConnectException.java: New file.
4131 * gnu/gcj/xlib/XEvent.java: New file.
4132 * gnu/gcj/xlib/XException.java: New file.
4133 * gnu/gcj/xlib/XExposeEvent.java: New file.
4134 * gnu/gcj/xlib/XID.java: New file.
4135 * gnu/gcj/xlib/XImage.java: New file.
4136 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4137 * gnu/gcj/xlib/natClip.cc: New file.
4138 * gnu/gcj/xlib/natColormap.cc: New file.
4139 * gnu/gcj/xlib/natDisplay.cc: New file.
4140 * gnu/gcj/xlib/natDrawable.cc: New file.
4141 * gnu/gcj/xlib/natFont.cc: New file.
4142 * gnu/gcj/xlib/natGC.cc: New file.
4143 * gnu/gcj/xlib/natPixmap.cc: New file.
4144 * gnu/gcj/xlib/natScreen.cc: New file.
4145 * gnu/gcj/xlib/natVisual.cc: New file.
4146 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4147 * gnu/gcj/xlib/natWindow.cc: New file.
4148 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4149 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4150 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4151 * gnu/gcj/xlib/natXColor.cc: New file.
4152 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4153 * gnu/gcj/xlib/natXException.cc: New file.
4154 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4155 * gnu/gcj/xlib/natXImage.cc: New file.
4156 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4157 * java/awt/EventDispatchThread.java: Start thead on creation.
4159 2000-10-20 Tom Tromey <tromey@cygnus.com>
4161 From Arno J. Klaassen:
4162 * interpret.cc: Include <stdlib.h> for alloca.
4163 * defineclass.cc: Include <stdlib.h> for alloca.
4165 * Makefile.in: Rebuilt.
4166 * Makefile.am: Include deps.mk.
4167 (GCJCOMPILE): Added -MD, -MT, and -MF.
4168 ($(javao_files)): Don't depend on libgcj.zip.
4169 (all-recursive): New target.
4170 (%.lo:%.cc): Do dependency tracking.
4171 ($(nat_headers)): Don't depend on libgcj.zip.
4172 * configure: Rebuilt.
4173 * configure.in: Make .d files and deps.mk.
4175 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4177 * exception.cc: Don't #include "exception".
4178 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4180 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4181 * Makefile.in: Updated.
4183 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4185 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4186 * java/awt/peer/ComponentPeer.java (disable): Removed.
4189 (minimumSize): Removed.
4190 (preferredSize): Removed.
4193 * java/awt/peer/ListPeer.java (addItem): Removed.
4195 (minimumSize): Removed.
4196 (preferredSize): Removed.
4197 (setMultipleSelections): Removed.
4198 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4199 (remove): Renamed from removeMenu.
4200 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4202 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4203 (remove): Renamed from removeItem.
4204 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4205 (getMinimumSize): Removed.
4206 (getPreferredSize): Removed.
4207 (minimumSize): Removed.
4208 (preferredSize): Removed.
4209 (replaceText): Removed.
4210 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4211 (preferredSize): Removed.
4212 (getMinimumSize): Removed.
4213 (getPreferredSize): Removed.
4214 (setEchoCharacter): Removed.
4216 2000-10-10 Warren Levy <warrenl@cygnus.com>
4218 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4219 * java/sql/Date.java (serialVersionUID): New field.
4220 * java/sql/Time.java (serialVersionUID): New field.
4221 * java/sql/Timestamp.java (serialVersionUID): New field.
4222 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4223 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4224 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4225 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4226 (readObject): New serialization method.
4227 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4228 (serialVersionOnStream): New field.
4229 (readObject): New serialization method.
4230 (getMonetaryDecimalSeparator): New method.
4231 (setMonetaryDecimalSeparator): New method.
4232 * java/text/NumberFormat.java (maxFractionDigits): New field.
4233 (maxIntegerDigits): New field.
4234 (minFractionDigits): New field.
4235 (minIntegerDigits): New field.
4236 (serialVersionOnStream): New field.
4237 (serialVersionUID): New field.
4238 (readObject): New serialization method.
4239 (writeObject): New serialization method.
4240 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4241 (serialVersionOnStream): New field.
4242 (serialVersionUID): New field.
4243 (readObject): New serialization method.
4245 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4247 * configure.in (GCJ): Avoid bogus error message when looking for
4248 (and not finding) gcj in the build tree.
4249 * configure: Rebuilt.
4251 2000-10-09 Tom Tromey <tromey@cygnus.com>
4253 * configure: Rebuilt.
4254 * configure.in: Include sys/types.h when checking for socklen_t.
4255 From Arno J. Klaassen.
4257 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4259 * include/jvm.h: Enable __builtin_expect().
4261 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4262 the main program. Fix for PR libgcj/341.
4264 2000-10-07 Tom Tromey <tromey@cygnus.com>
4266 * java/util/Properties.java: Merged with Classpath version.
4268 2000-10-05 Tom Tromey <tromey@cygnus.com>
4270 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4271 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4272 * java/lang/Class.h (Object): Added `class$' field.
4273 * java/lang/Object.h (Object): Added `class$' field.
4274 * defineclass.cc (ClassClass): Use `class$' form.
4275 (ClassObject): Likewise.
4276 * resolve.cc (ClassObject): Use `class$' form.
4277 (ObjectClass): Likewise.
4278 * interpret.cc (ClassError): Removed.
4279 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4281 (IntegerClass): Likewise.
4282 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4284 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4285 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4286 SerializableClass): Likewise.
4287 Include Serializable.h, Cloneable.h.
4288 * java/lang/natSystem.cc (SystemClass): Removed.
4289 (init_properties): Use `class$' form.
4290 * java/lang/natObject.cc (CloneableClass): Removed.
4291 (clone): Use `class$' form.
4292 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4293 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4294 ConstructorClass): Likewise.
4295 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4296 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4297 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4298 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4300 (ClassClass): Likewise.
4301 * include/jvm.h (StringClass): Use `class$' form.
4302 * prims.cc (ObjectClass): Removed.
4303 (_Jv_RunMain): Use `class$' form.
4304 (_Jv_AllocObject): Likewise.
4305 * jni.cc (ClassClass): Use `class$' form.
4306 (ThrowableClass): Likewise.
4307 (ObjectClass): Likewise.
4308 (MethodClass): Likewise.
4309 (ThreadGroupClass): Likewise.
4310 (NativeThreadClass): Likewise.
4311 * boehm.cc (ObjectClass): Removed.
4312 (ClassClass): Removed.
4313 (_Jv_MarkObj): Use `class$' form.
4314 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4317 2000-10-05 Warren Levy <warrenl@cygnus.com>
4319 * Makefile.am: Removed java/io/Replaceable.java and
4320 java/io/Resolvable.java.
4321 * Makefile.in: Rebuilt.
4322 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4324 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4326 (processResolution): Handle readResolve method via reflection with
4327 removal of Resolvable interface.
4328 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4329 method via reflection with removal of Replaceable interface.
4330 * java/io/Replaceable.java: Removed.
4331 * java/io/Resolvable.java: Removed.
4332 * java/security/Key.java (serialVersionUID): New field.
4333 * java/security/Provider.java (serialVersionUID): New field.
4334 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4336 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4338 * java/sql/DataTruncation.java (serialVersionUID): New field.
4339 * java/sql/SQLException.java (serialVersionUID): New field.
4340 * java/sql/SQLWarning.java (serialVersionUID): New field.
4341 * java/util/Date.java (serialVersionUID): New field.
4342 (millis): Made transient.
4343 (readObject): New method.
4344 (writeObject): New method.
4346 2000-10-05 Tom Tromey <tromey@cygnus.com>
4348 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4350 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4352 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4353 (JvRunMain): Set _Jv_argv and _Jv_argc.
4354 * java/awt/Component.java: Minor fixes.
4355 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4356 * java/awt/Toolkit.java (systemEventQueue): Removed.
4357 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4358 * java/awt/Window.java (getToolkit): Don't call super.
4359 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4360 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4361 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4362 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4363 * gnu/awt/gtk/GtkFramePeer.java: New file.
4364 * gnu/awt/gtk/GtkMainThread.java: New file.
4365 * gnu/awt/gtk/GtkToolkit.java: New file.
4366 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4367 * gnu/awt/gtk/gtkcommon.cc: New file.
4368 * gnu/awt/gtk/gtkcommon.h: New file.
4369 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4370 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4371 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4372 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4373 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4374 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4376 2000-09-30 Tom Tromey <tromey@cygnus.com>
4378 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4379 interrupted before modifying the cv's wait set.
4382 2000-09-30 Hans Boehm <boehm@acm.org>
4383 Bryce McKinlay <bryce@albatross.co.nz>
4385 Implement bitmap descriptor based marking for Boehm GC.
4387 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4388 * configure: Rebuilt.
4389 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4390 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4391 method get_finalizer().
4392 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4393 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4394 (_Jv_AllocObj): Add new jclass parameter.
4395 (_Jv_AllocArray): Ditto.
4396 (_Jv_BuildGCDescr): New prototype.
4397 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4398 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4399 get_finalizer() instead of direct finalizer vtable offset.
4400 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4401 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4402 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4403 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4404 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4405 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4406 (_Jv_DetermineVTableIndex): Ditto.
4407 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4408 calculations to account for new gc_descr field.
4409 * boehm.cc: #include gc_gcj.h.
4410 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4411 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4412 New commentary from HB. Mark the classes vtable.
4413 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4414 (GC_DEFAULT_DESCR): New #define.
4415 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4416 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4417 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4418 scan conservativly if size is less than min_heap_addr. Set vtable
4419 pointer of new object before returning.
4420 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4421 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4422 allocation for obj_kind_x.
4423 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4424 (_Jv_AllocObj): Set vtable on returned object.
4425 (_Jv_AllocArray): Ditto.
4426 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4427 (_Jv_NewPrimArray): Ditto.
4428 (_Jv_AllocObj): Declare as a friend.
4429 (_Jv_AllocArray): Ditto.
4430 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4431 from &ObjectClass into new array class. Remove offset-by-one
4432 adjustments from `method' size calculations to account for gc_descr
4435 2000-09-26 Tom Tromey <tromey@cygnus.com>
4437 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4438 `remove', not `add'.
4440 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4442 * java/lang/natSystem.cc (file_encoding): Added return statement.
4444 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4446 * Makefile.am: Re-work shell commands that exceeded command-line
4448 * Makefile.in: Rebuilt.
4450 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4452 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4453 * java/lang/natDouble.cc: Likewise.
4454 * java/lang/reflect/natMethod.cc: Likewise.
4455 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4457 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4459 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4461 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4462 * acinclude.m4: Arrange for automake to not bring in a new
4463 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4464 * Makefile.am: Leave it up to automake to subst GCJ.
4465 * aclocal.m4, configure, Makefile.in: Rebuilt.
4467 2000-09-13 Tom Tromey <tromey@cygnus.com>
4469 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4470 (get): Ensure Boolean class is initialized.
4471 * java/lang/reflect/natField.cc (BooleanClass): New define.
4472 (get): Ensure Boolean class is initialized.
4474 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4476 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4477 Initialize with anonymous class.
4478 (compareToIgnoreCase): New method.
4480 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4481 (uncaughtException): Set had_uncaught_exception.
4482 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4483 exit with error status if set.
4484 (_Jv_RunMain): Ditto.
4486 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4488 * configure: Rebuilt with new ../libtool.m4.
4490 2000-09-11 Tom Tromey <tromey@cygnus.com>
4492 * java/lang/reflect/Field.java (toString): Don't rely on
4495 2000-09-08 Tom Tromey <tromey@cygnus.com>
4497 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4498 default decoder use iconv.
4499 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4500 Let default encoder use iconv.
4501 * configure: Rebuilt.
4502 * configure.in: Check for nl_langinfo and <langinfo.h>.
4503 * java/lang/natSystem.cc (file_encoding): New function.
4504 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4506 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4508 * acinclude.m4: Simplify the tests for CC and CXX.
4509 * aclocal.m4, configure: Rebuilt.
4511 * acinclude.m4: Include libtool macros from the source tree.
4512 * aclocal.m4, configure: Rebuilt.
4514 2000-09-08 Warren Levy <warrenl@cygnus.com>
4516 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4517 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4518 * java/io/File.java (writeObject): Added.
4519 (readObject): Added.
4520 (serialVersionUID): Added.
4521 * java/io/ObjectOutputStream.java (writeObject): Initialized
4522 fieldsAlreadyWritten before recursion rather than after.
4523 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4524 * java/io/OptionalDataException.java (serialVersionUID): Added.
4525 (OptionalDataException): Made package private.
4526 * java/io/SyncFailedException.java (SyncFailedException): Removed
4527 default constructor to match spec.
4528 * java/lang/Boolean.java (serialVersionUID): Added.
4529 * java/lang/Byte.java (serialVersionUID): Added.
4530 * java/lang/Character.java (serialVersionUID): Added.
4531 * java/lang/Double.java (serialVersionUID): Added.
4532 * java/lang/Float.java (serialVersionUID): Added.
4533 * java/lang/Integer.java (serialVersionUID): Added.
4534 * java/lang/Long.java (serialVersionUID): Added.
4535 * java/lang/Number.java (serialVersionUID): Added.
4536 * java/lang/Short.java (serialVersionUID): Added.
4537 * java/lang/String.java (serialVersionUID): Added.
4538 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4540 * java/lang/reflect/InvocationTargetException.java
4541 (serialVersionUID): Added.
4542 * java/net/URL.java (handler): Made transient.
4543 (hashCode): Added field for serialization, per spec. and use
4544 cached value if available.
4545 (serialVersionUID): Added.
4546 (URL): Initialize hashCode.
4547 (set): Adjust hashCode.
4548 (readObject): New Method to initialize the protocol handler when
4550 (writeObject): New method.
4551 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4552 * java/text/Collator.java: Removed 'implements Serializable'.
4553 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4554 * java/util/Properties.java (serialVersionUID): Added.
4555 * java/util/Random.java (serialVersionUID): Added.
4556 (seed): Made private.
4557 (nextNextGaussian): Made private.
4558 (haveNextNextGaussian): Made private.
4559 * java/util/Stack.java (serialVersionUID): Added.
4560 * java/util/TimeZone.java (serialVersionUID): Added.
4561 * java/util/Vector.java (serialVersionUID): Added.
4563 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4565 * Makefile.am (Thread.h): Don't be friends with native threads
4567 * Makefile.in: Rebuilt.
4568 * java/lang/Thread.java (interrupt_flag): Make package-private.
4570 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4572 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4573 to avoid long long division.
4575 2000-09-06 Tom Tromey <tromey@cygnus.com>
4577 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4579 * java/lang/reflect/Method.java (toString): Use `getName' for
4582 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4583 `args' if method takes no parameters.
4585 Fix for PR java.lang/339:
4586 * java/lang/natPosixProcess.cc (fail): New function.
4587 (cleanup): New function.
4588 (startProcess): Use them. Create pipe so child can communicate
4589 exec failure back to parent.
4591 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4593 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4595 (send): Undo last patch. Remove the label only.
4597 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4599 * java/net/natInetAdress.cc: Ditto.
4601 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4603 2000-09-05 Tom Tromey <tromey@cygnus.com>
4605 * doc/cni.sgml: Updated from master copy.
4607 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4609 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4611 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4613 * java/lang/fdlibm.h: #undef __P if previously defined.
4614 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4615 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4619 2000-09-04 Tom Tromey <tromey@cygnus.com>
4621 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4624 2000-09-04 Anthony Green <green@redhat.com>
4626 Fix for PR java.io/203:
4627 * java/io/File.java (createTempFile): Obey directory argument.
4628 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4629 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4630 variable to set java.io.tmpdir on non-WIN32 systems.
4632 2000-09-04 Anthony Green <green@redhat.com>
4634 * java/io/File.java (deleteOnExit): New method.
4635 * gnu/gcj/runtime/FileDeleter.java: New class.
4636 * java/lang/natRuntime.cc (exit): Call
4637 FileDeleter.deleteOnExitNow()
4638 * Makefile.am: Add FileDeleter.java.
4639 * Makefile.in: Rebuilt.
4641 2000-09-02 Tom Tromey <tromey@cygnus.com>
4643 * Makefile.in: Rebuilt.
4644 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4645 environment variable.
4647 2000-09-01 Andrew Haley <aph@redhat.com>
4649 * java/io/StreamTokenizer.java: Don't throw a
4650 NumberFormatException if a field is numeric as far as the
4651 StreamTokenizer is concerned but not as far as Double.valueOf() is
4652 concerned: return a zero instead.
4654 2000-08-30 Tom Tromey <tromey@cygnus.com>
4656 * Makefile.in: Rebuilt.
4657 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4659 2000-08-28 Tom Tromey <tromey@cygnus.com>
4661 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4662 gnu/gcj/awt/ComponentDataBlitOp.java,
4663 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4664 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4665 java/awt/color/ICC_ColorSpace.java,
4666 java/awt/color/ICC_Profile.java,
4667 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4668 java/awt/image/ComponentColorModel.java,
4669 java/awt/image/ComponentSampleModel.java,
4670 java/awt/image/DataBuffer.java,
4671 java/awt/image/DataBufferByte.java,
4672 java/awt/image/DataBufferInt.java,
4673 java/awt/image/DataBufferUShort.java,
4674 java/awt/image/DirectColorModel.java,
4675 java/awt/image/IndexColorModel.java,
4676 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4677 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4678 java/awt/image/SinglePixelPackedSampleModel.java,
4679 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4680 Removed Latin-1 copyright symbols.
4681 * java/util/zip/ZipFile.java: Indentation fixes.
4683 2000-08-27 Mark Wielaard <mark@klomp.org>
4685 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4686 constructor, close can delete the file, finalize calls close.
4687 * java/util/jar/JarFile.java: Constructor that takes mode now
4690 2000-08-27 Anthony Green <green@redhat.com>
4692 * java/util/ArrayList.java, java/util/Timer.java,
4693 java/util/LinkedList.java, java/util/TimerTask.java,
4694 java/util/HashMap.java, java/util/AbstractMap.java,
4695 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4696 java/util/SortedSet.java: Imported from GNU Classpath.
4697 * Makefile.in: Rebuilt.
4698 * Makefile.am: Added new files.
4700 2000-08-26 Anthony Green <green@redhat.com>
4702 * Makefile.in: Rebuilt.
4703 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4706 * prims.cc: Include ClassLoader.h.
4707 (_Jv_RunMain): When executing jar files, classpath must be the jar
4708 file only. Lose our reference to the system ClassLoader in order
4709 to get a new one with the correct classpath.
4710 * java/lang/natSystem.cc (init_properties): When executing a jar
4711 file, only use the jar file for java.class.path.
4713 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4714 for bytecode archives.
4716 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4717 exists, but not Main-Class.
4719 2000-08-23 Mark Wielaard <mark@klomp.org>
4721 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4722 return -1 when fill() has no more data for the Inflater.
4724 2000-08-23 Mark Wielaard <mark@klomp.org>
4726 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4727 write(String) already does.
4729 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4731 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4732 to `alive_flag', call `init'.
4733 (init): New native method.
4734 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4737 2000-08-21 Mark Wielaard <mark@klomp.org>
4739 * Makefile.in: Rebuilt.
4740 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4742 (java/lang/reflect/Field.h): Likewise.
4743 (java/lang/reflect/Method.h): Likewise.
4744 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4747 2000-08-21 Tom Tromey <tromey@cygnus.com>
4749 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4752 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4754 * java/lang/natSystem.cc (init_properties): Change sourceware
4755 reference to sources.redhat.com.
4757 * include/java-props.h: Add _Jv_Jar_Class_Path.
4758 * prims.cc: Ditto. Set it from `gij -jar file' option.
4760 * java/lang/natSystem.cc (init_properties): Set java.class.path
4762 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4764 * java/util/PropertyPermission.java: Import from GNU Classpath.
4765 * Makefile.in: Rebuilt.
4766 * Makefile.am: Add java/util/PropertyPermission.java.
4767 * java/lang/System.java: Add setProperty method.
4769 * gij.cc (main): Add -jar option to execute jar files.
4770 (help): Describe -jar option.
4771 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4772 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4773 * gnu/gcj/runtime/FirstThread.java (main): New method.
4775 * java/util/jar/Attributes.java: Correct comment spelling.
4777 2000-08-20 Mark Wielaard <mark@klomp.org>
4779 * java/util/zip/Adler32.java: Make private variables really private
4780 * java/util/zip/CRC32.java: Make private variables really private
4781 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4783 * java/util/zip/InflaterInputStream.java: skip() could skip to
4785 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4786 * java/util/zip/ZipFile.java: size() new 1.2 method
4787 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4788 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4791 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4793 * java/util/jar/JarFile.java: Don't call
4794 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4797 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4799 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4800 Read the entire contents of the class file, not just what is
4803 * java/net/JarURLConnection.java: getEntry doesn't take any
4804 arguments. Return null if element is null.
4806 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4807 size from the archive, not the inflated size.
4809 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4810 java.util.zip.ZipFile.getEntry.
4812 * gij.cc (help): Change sourceware reference to
4815 2000-08-19 Tom Tromey <tromey@cygnus.com>
4817 * java/util/zip/ZipInputStream.java (createZipEntry):
4820 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4822 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4823 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4824 java/util/jar/JarInputStream.java,
4825 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4826 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4827 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4828 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4829 java/security/cert/Certificate.java,
4830 java/security/cert/CertificateEncodingException.java,
4831 java/security/cert/CertificateException.java,
4832 java/security/cert/CertificateExpiredException.java,
4833 java/security/cert/CertificateFactory.java,
4834 java/security/cert/CertificateFactorySpi.java,
4835 java/security/cert/CertificateNotYetValidException.java,
4836 java/security/cert/CertificateParsingException.java,
4837 java/security/cert/X509CRL.java,
4838 java/security/cert/X509CRLEntry.java,
4839 java/security/cert/X509Certificate.java,
4840 java/security/cert/X509Extension.java: Imported from Classpath.
4841 * java/util/Hashtable.java: Imported from Classpath.
4843 * java/util/zip/ZipInputStream.java: Create stub for
4846 * gcj/javaprims.h: Updated class list.
4848 * Makefile.in, gcj/Makefile.in: Rebuilt.
4849 * Makefile.am (ordinary_java_source_files): Add these new classes.
4851 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4853 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4854 * gnu/gcj/awt/GLightweightPeer.java: New file.
4855 * java/awt/BorderLayout.java: Implemented all methods.
4856 * java/awt/Button.java (actionListener, actionCommand): Renamed
4857 and modifier change.
4858 (addNotify): Call super.
4859 (dispatchEventImpl): New method.
4860 (getListeners): New method.
4861 (label): Made package-private, not private.
4862 * java/awt/Canvas.java: Implemented class body.
4863 * java/awt/Color.java (brighter): New method.
4864 (darker): New method.
4865 (hashCode): New method.
4866 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4867 (getGraphicsConfiguration): Delegate to
4868 getGraphicsConfigurationImpl().
4869 (getGraphicsConfigurationImpl): New method.
4870 (getToolkit): Only return value from peer if not null.
4871 (isDisplayable): Check with parent.
4872 (isShowing): No parent implies not showing.
4873 (getForeground): Check parent property if local is null.
4874 (getBackground): Likewise.
4875 (getFont): Likewise.
4876 (setForeground): Inform peer.
4877 (setBackground): Likewise
4878 (setLocale): Invalidate component.
4879 (getColorModel): Implemented.
4880 (setLocation): Invalidate, or ignore if no change.
4881 (setSize): Invalidate, or ignore if no change.
4882 (setBounds): Invalidate, or ignore if no change.
4883 (isOpaque): By default, heavyweight implies opaque.
4884 (isLightweight): Implemented.
4885 (getMaximumSize): Implemented.
4886 (doLayout): Implemented, NOP.
4887 (validate): Implemented, NOP.
4888 (invalidate): Only propagate to parent if parent was valid.
4889 (getGraphics): Implemented.
4890 (getFontMetrics): Implemented.
4891 (update): Implemented.
4892 (paintAll): Implemented.
4893 (repaint): Implemented all repaint methods.
4894 (print): Implemented.
4895 (printAll): Implemented.
4896 (createImage): Implemented.
4897 (dispatchEvent): Give the peer a chance to handle the event.
4898 (dispatchEventImpl): Dispatch paint events.
4899 (enableEvents): Lightweights enable events on parent component.
4900 (coalesceEvents): Coalesce paint events, and select event type
4902 (coalescePaintEvents): New method.
4903 (processEvent): Fix unfortunate ordering of statements, and call
4904 correct method for MOUSE_CLICKED.
4905 (processPaintEvent): New method.
4906 (addNotify): Allow container to notify children before event
4907 mask is set in peer.
4908 (addNotifyContainerChildren): New method.
4909 (removeNotify): Visibility should not change on removeNotify.
4910 (paramString): Implemented.
4911 (list): Implemented two of the list methods.
4912 * Container (myInsets): Removed, insets are managed by peer.
4913 (getInsets): Query peer.
4914 (addImpl): Fix reparenting, enable events for lightweights,
4915 initialize component array.
4916 (validate): Call doLayout in validateTree() instead.
4917 (validateTree): Do nothing if already valid. Call beginValidate(),
4918 endValidate() on peer. Call validateTree() instead of validate()
4919 for children that are containers. Mark valid after validation of
4921 (setFont): Partial implementation.
4922 (paint): Implemented.
4923 (visitChildren): New method.
4924 (visitChild): New method.
4925 (update): Implemented.
4926 (print): Implemented.
4927 (paintComponents): Implemented.
4928 (printComponents): Consider translation and clipping.
4929 (getComponentAt): Ignore invisible children. Return this if no
4931 (addNotify): Call super.
4932 (addNotifyContainerChildren): New method.
4933 (paramString): Implemented.
4934 (list): Implemented.
4935 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4937 (invokeLater): Likewise.
4938 (isDispatchThread): Likewise.
4939 * java/awt/FontMetrics (getLeading): Formula change.
4940 (getDescent): Consider leading also.
4941 (getMaxAscent): Default to getAscent().
4942 (getMaxDescent): Default to getDescent.
4943 (getMaxAdvance): Return value signifying unknown.
4944 (charWidth): Both methods implemented.
4945 (charsWidth): Implemented.
4946 (bytesWidth): Implemented.
4947 (getWidths): Implemented.
4948 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4950 (Frame): Rearragend constuctor chaining to disallow null being
4951 passed as a graphics configuration.
4952 (getTitle): Return empty string if null.
4954 (getIconImage): New method.
4955 (setIconImage): New method.
4956 (finalize): New method.
4957 (setMenuBar): Notify peer.
4958 (isResizable): New method.
4959 (setResizable): New method.
4960 (getState): New method.
4962 (remove): Implemented.
4963 (removeNotify): New method.
4964 (getFrames): New method.
4965 * java/awt/Graphics.java: Implemented body of class.
4966 * java/awt/Graphics2D.java: New file.
4967 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4968 * java/awt/Image.java: Implemented body of class.
4969 * java/awt/Panel.java (Panel): Call correct super constructor.
4970 (addNotify): Implemented.
4971 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4972 * java/awt/RenderingHints.java: New file.
4973 * java/awt/Toolkit.java (createComponent): Implemented.
4974 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4975 * java/awt/Window.java (Window): Two new constructors. Reordered
4976 constructor chaining.
4977 (getGraphicsConfigurationImpl): New method.
4978 (finalize): Call super.
4979 (addNotify): Call super.
4980 (pack): Do layout stuff.
4981 (show): Ensure that peer exists and that component is valid.
4982 (dispose): Dispose owned children.
4983 (getOwner): Simplify code, casting null pointers is valid.
4984 (getGraphicsConfiguration): Ask peer if local value is null.
4985 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4987 * java/awt/image/BufferedImage.java: New file.
4988 * java/awt/image/RasterOp.java: New file.
4989 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4990 More powerfull replacement for getColorModel().
4991 (getColorModel) Removed.
4992 (setEventMask) New method.
4993 * Makefile.am: Added new files.
4994 * Makefile.in: Rebuilt.
4996 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4998 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4999 (finit_leg_name): New global.
5000 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5001 `$finit$'. This is a backward compatibility hack.
5002 (java::lang::Class::_getMethods): Likewise.
5004 2000-08-15 Andrew Haley <aph@cygnus.com>
5006 * include/jvm.h (_Jv_HashCode): New hash code.
5008 2000-08-15 Tom Tromey <tromey@cygnus.com>
5010 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5012 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5014 * THANKS: More thanks.
5016 2000-08-10 Tom Tromey <tromey@cygnus.com>
5018 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5020 (connect): Likewise.
5022 (getOption): Likewise.
5023 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5024 case when errno not set.
5027 (receive): Likewise.
5028 (mcastGrp): Likewise.
5029 (setOption): Likewise.
5030 (getOption): Likewise.
5032 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5033 John Stracke <francis@ecal.com>
5035 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5036 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5038 (disconnect): Don't unset connected flag.
5039 (getHeaderField (String)): Call connect() if not connected.
5040 (getHeaderField (int)): Ditto.
5041 (getHeaderFieldKey): Ditto.
5042 (getHttpHeaders): Don't call connect().
5043 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5044 gotResponseVals): New fields.
5045 (getResponseCode): Call getResponseVals() conditionally.
5046 (getResponseMessage): Ditto.
5047 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5049 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5051 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5052 * Makefile.in: Rebuilt.
5053 * java/awt/Color.java (getTransparency): New method.
5054 * java/awt/Component.java: Various updates.
5055 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5056 after dealing with children.
5057 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5058 * java/awt/Window.java: Various new methods and updates.
5059 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5061 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5062 * java/awt/event/WindowEvent.java (paramString): Ditto.
5063 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5065 * java/awt/geom/Point2D.java (clone): Ditto.
5066 * java/awt/geom/RectangularShape.java (clone): Ditto.
5067 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5068 isAlphaPremultiplied): Make package-private, not private.
5070 2000-08-08 Tom Tromey <tromey@cygnus.com>
5072 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5073 surrogate characters.
5074 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5076 (write): Correct handling of surrogate characters.
5078 2000-08-07 Tom Tromey <tromey@cygnus.com>
5080 * java/lang/reflect/Method.java (hashCode): Use getName().
5081 (toString): Likewise.
5082 * java/lang/reflect/natMethod.cc (getType): Initialize
5085 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5087 * java/lang/reflect/Field.java (toString): Correct formatting.
5090 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5092 (receive): Streamlined.
5094 2000-08-05 Tom Tromey <tromey@cygnus.com>
5096 * java/io/PrintWriter.java: Merged comments from Classpath.
5097 (printlnUnsynchronized): Removed.
5098 (println()): Print the separator.
5099 (println): Call println(), not printlnUnsynchronized.
5100 (out): Now protected, to match spec.
5102 2000-08-04 Tom Tromey <tromey@cygnus.com>
5104 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5105 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5108 2000-08-03 Warren Levy <warrenl@cygnus.com>
5110 * java/io/ObjectInputStream.java (readFields): Turn off
5111 readDataFromBlock while reading via GetField.
5112 (GetField$1.get(String, Object)): Pass Class of default value to
5114 (getField): Allow for null default values.
5116 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5117 (PutField$1.put): Fixed calls of checkType in most of the put
5118 methods to pass the correct parameter.
5119 (PutField$1.put(String, Object)): Allow for null value arg.
5120 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5123 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5124 typo in spec'ed field name.
5125 (getSerialPersistentFields): Changed spelling of method to match
5126 the correct spelling of the spec'ed field name.
5128 2000-08-03 Tom Tromey <tromey@cygnus.com>
5130 * Makefile.in: Rebuilt.
5131 * Makefile.am (awt_java_source_files): Added new files.
5133 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5135 * Makefile.am: Add new AWT stubs.
5136 * java/awt/Canvas.java: New placeholder class.
5137 * java/awt/Checkbox.java: Ditto.
5138 * java/awt/CheckboxMenuItem.java: Ditto.
5139 * java/awt/Choice.java: Ditto.
5140 * java/awt/Dialog.java: Ditto.
5141 * java/awt/FileDialog.java: Ditto.
5142 * java/awt/List.java: Ditto.
5143 * java/awt/ScrollPane.java: Ditto.
5144 * java/awt/TextField.java: Ditto.
5145 * java/awt/datatransfer/Clipboard.java: Ditto.
5146 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5147 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5148 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5149 Some commented out. Partially implemented.
5150 * java/awt/natToolkit.cc: Removed file.
5152 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5154 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5155 Fixes "make -j" builds.
5156 * Makefile.in: Rebuild.
5158 2000-08-02 Tom Tromey <tromey@cygnus.com>
5160 * Makefile.in: Rebuilt.
5161 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5162 * java/net/natPlainSocketImpl.cc: Include posix.h.
5163 (accept): Use _Jv_select.
5164 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5165 (receive): Use _Jv_select.
5166 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5167 (available): Use _Jv_select.
5168 * java/lang/natSystem.cc: Include posix.h.
5169 (currentTimeMillis): Use _Jv_gettimeofday.
5170 * include/posix.h: New file.
5171 * posix.cc: New file.
5173 * scripts/encodings.pl: New file.
5174 * Makefile.in: Rebuilt.
5175 * Makefile.am (convert_source_files): Added IOConverter.java.
5176 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5178 (getDefaultDecodingClass): Canonicalize default encoding name.
5179 (getEncoder): Likewise.
5180 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5182 (getDefaultDecodingClass): Canonicalize default encoding name.
5183 (getDecoder): Likewise.
5184 * gnu/gcj/convert/IOConverter.java: New file.
5186 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5188 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5189 to match C declaration in ffi.h.
5190 * Makefile.am: Add java/awt/Button.java.
5191 * Makefile.in: Rebuilt.
5193 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5195 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5196 cast of the second argument to `ffi_raw_call' changed to match
5199 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5201 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5202 argument to `ffi_raw_call' changed to match prototype.
5204 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5206 * java/awt/Component.java (toString): Implemented.
5207 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5208 dispatchEvent() to dispatch the event.
5209 (removeImpl): Ditto.
5211 2000-07-30 Anthony Green <green@redhat.com>
5213 * java/awt/Component.java: Add treeLock object.
5214 (getTreeLock): Implement.
5215 (isShowing): Implement.
5217 2000-07-30 Tom Tromey <tromey@cygnus.com>
5219 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5221 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5223 * java/awt/Window.java (addNotify): Wrote.
5224 (addWindowListener): Wrote.
5226 (getWarningString): Wrote.
5227 (processEvent): Wrote.
5228 (processWindowEvent): Wrote.
5229 (removeWindowListener): Wrote.
5230 (show): Call validate(), setVisible().
5234 * java/awt/Toolkit.java (createWindow): Declare.
5236 * java/awt/Frame.java (addNotify): Use getToolkit to find
5239 * java/awt/Component.java (invalidate): Wrote.
5241 (getToolkit): Wrote.
5243 * java/awt/Container.java (addContainerListener): Removed
5245 (removeContainerListener): Likewise.
5247 (add(Component)): Use it.
5248 (add(String,Component)): Likewise.
5249 (add(Component,int)): Likewise.
5250 (add(Component,Object)): Likewise.
5251 (add(Component,Object,int)): Likewise.
5253 (getAlignmentX): Wrote.
5254 (getAlignmentY): Wrote.
5255 (getComponentAt): Wrote.
5256 (getMaximumSize): Wrote.
5257 (invalidate): Wrote.
5258 (list(PrintStream,int)): Wrote.
5259 (list(PrintWriter,int)): Wrote.
5260 (getMinimumSize): Wrote.
5261 (getPreferredSize): Wrote.
5262 (printComponents): Wrote.
5263 (processContainerEvent): Look at containerListener, not
5265 (remove): Added event processing and peer destruction.
5266 (removeAll): Use remove.
5267 (removeNotify): Wrote.
5269 (validateTree): Wrote.
5271 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5272 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5273 * java/awt/Container.java (addNotify): Don't create Container
5275 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5277 2000-07-30 Tom Tromey <tromey@cygnus.com>
5279 * java/awt/Container.java (remove(int)): Wrote.
5280 (remove(Component)): Wrote.
5281 (add(Component)): Wrote.
5282 (add(Component,int)): Wrote.
5284 (addNotify): Set our own peer.
5285 * java/awt/Scrollbar.java (listeners): Changed type.
5286 (Scrollbar): Don't initialize listeners.
5288 (setValue): Call setValues.
5289 (setMinimum): Likewise.
5290 (setMaxPriority): Likewise.
5291 (setVisibleAmount): Likewise.
5293 (setUnitIncrement): Forward to peer.
5294 (setLineIncrement): Call setUnitIncrement.
5295 (setPageIncrement): Call setBlockIncrement.
5296 (setBlockIncrement): Forward to peer.
5297 (addAdjustmentListener): Rewrote.
5298 (removeAdjustmentListener): Rewrote.
5299 (processAdjustmentEvent): Rewrote.
5300 (paramString): Wrote.
5301 * Makefile.in: Rebuilt.
5302 * Makefile.am (awt_java_source_files): Added Button.java.
5303 * java/awt/Button.java: New file.
5304 * java/awt/Toolkit.java (createLabel): Declare.
5305 (createButton): Likewise.
5306 (createScrollbar): Likewise.
5307 (createContainer): Likewise.
5308 * java/awt/Label.java (addNotify): Wrote.
5309 (setAlignment): Call setAlignment in the peer.
5310 (setText): Call setText in the peer.
5312 2000-07-28 Warren Levy <warrenl@cygnus.com>
5314 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5315 NotSerializableException with just the class name.
5317 2000-07-26 Andrew Haley <aph@cygnus.com>
5319 * interpret.cc (continue1): Insert missing break into switch.
5321 2000-07-28 Warren Levy <warrenl@cygnus.com>
5323 * java/io/ObjectStreamException.java: Made constructors protected.
5325 2000-07-27 Tom Tromey <tromey@cygnus.com>
5327 * java/io/OutputStreamWriter.java (close): Only flush if not
5330 2000-07-27 Warren Levy <warrenl@cygnus.com>
5332 * mauve-libgcj: Activated serialization tests.
5333 * gcj/field.h (getModifiers): Mask off unknown flags.
5334 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5335 spurious bits don't cause discrepancies.
5336 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5337 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5338 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5339 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5340 * java/lang/Throwable.java (serialVersionUID): New field.
5341 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5342 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5344 * java/lang/reflect/natMethod.cc: Ditto.
5345 * java/security/Key.java (serialVersionUID): Removed field for now.
5346 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5347 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5349 2000-07-22 Tom Tromey <tromey@cygnus.com>
5351 * java/awt/geom/RectangularShape.java (getPathIterator):
5354 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5356 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5357 stub libjava/java/awt/ColorModel.java which was located in the
5359 * libjava/java/awt/image/ComponentColorModel.java: New file.
5360 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5361 * libjava/java/awt/image/DataBuffer.java: New file.
5362 * libjava/java/awt/image/DataBufferByte.java: New file.
5363 * libjava/java/awt/image/DataBufferInt.java: New file.
5364 * libjava/java/awt/image/DataBufferUShort.java: New file.
5365 * libjava/java/awt/image/DirectColorModel.java: New file.
5366 * libjava/java/awt/image/PackedColorModel.java: New file.
5367 * libjava/java/awt/image/Raster.java: New file.
5368 * libjava/java/awt/image/SampleModel.java: New file.
5369 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5371 * libjava/java/awt/image/IndexColorModel.java: New file.
5372 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5373 java.awt.ColorModel stub.
5375 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5376 * gnu/gcj/util/Buffers.java: New file, utility class.
5378 * libjava/Makefile.am: Updated to include new files.
5379 * libjava/Makefile.in: Rebuilt.
5381 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5383 * java/io/StreamTokenizer.java: Merged with classpath.
5385 2000-07-20 Tom Tromey <tromey@cygnus.com>
5387 * Makefile.in: Rebuilt.
5388 * Makefile.am (awt_java_source_files): Updated for new files.
5389 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5390 * java/awt/Label.java: New file.
5391 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5392 (createIntersection, createUnion, getBounds2D): New methods.
5393 * java/awt/Scrollbar.java: New file.
5394 * java/awt/Shape.java: Updated to 1.2.
5395 * java/awt/geom/AffineTransform.java: New file.
5396 * java/awt/geom/Ellipse2D.java: New file.
5397 * java/awt/geom/NoninvertibleTransformException.java: New file.
5398 * java/awt/geom/PathIterator.java: New file.
5399 * java/awt/geom/Rectangle2D.java: New file.
5400 * java/awt/geom/RectangularShape.java: New file.
5401 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5402 * java/awt/geom/IllegalPathStateException.java: New file.
5404 * scripts/showval.java: New file.
5406 * scripts/classes.pl (scan): Print inner classes properly.
5407 * gcj/javaprims.h: Updated class list.
5409 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5410 initialize String fields for interpreted classes. Fixes bug
5411 reported by Hans Boehm.
5413 * java/io/File.java (getParentFile): New method, from Classpath
5414 via Oskar Liljeblad.
5416 * java/util/Vector.java (remove(Object)): Implemented.
5418 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5420 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5421 zero return from backtrace().
5423 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5425 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5427 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5428 before calling notifyAll().
5430 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5432 Add missing files from last check-in:
5433 * java/awt/image/ImageConsumer.java: New file.
5434 * java/awt/image/ImageProducer.java: New file.
5435 * java/awt/image/ImageObserver.java: New file.
5437 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5439 Merged implementation of java.applet from classpath:
5440 * java/applet/Applet.java: New file.
5441 * java/applet/AppletContext.java: New file.
5442 * java/applet/AppletStub.java: New file.
5443 * java/applet/AudioClip.java: New file.
5445 * Makefile.am: Added new java.applet classes.
5446 * Makefile.in: Rebuilt.
5448 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5451 * java/util/ResourceBundle.java (getLocale): stub.
5452 * Makefile.am: Added new AWT classes.
5453 * Makefile.in: Rebuilt.
5454 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5455 constructors. Fix toString() and paramString().
5456 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5457 * java/awt/CheckboxGroup.java: New class.
5458 * java/awt/ColorModel.java: New class.
5459 * java/awt/Component.java: Added stubs for most methods. Implemented
5461 * java/awt/Container.java: ditto.
5462 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5463 * java/awt/Cursor.java: ditto.
5464 * java/awt/Event.java: Fix paramString().
5465 * java/awt/EventQueue.java: New class. Implemented.
5466 * java/awt/Font.java: Added additional stub methods. Implemented
5468 * java/awt/FontMetrics.java: New class. Stubbed.
5469 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5471 * java/awt/Insets.java: New class. Implemented.
5472 * java/awt/Menu.java: Add new methods. Partially implemented.
5473 * java/awt/MenuItem.java: Add new methods and fields. Partially
5475 * java/awt/MenuShortcut.java: New class. Implemented.
5476 * java/awt/Panel.java: New class. Placeholder.
5477 * java/awt/PopupMenu.java: New class. Stubbed.
5478 * java/awt/Rectangle.java: New class. Implemented.
5479 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5480 * java/awt/event/ActionEvent.java: Implement paramString().
5481 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5482 * java/awt/event/ComponentEvent.java: Implement paramString().
5483 * java/awt/event/ContainerEvent.java: Implement paramString().
5484 * java/awt/event/FocusEvent.java: Implement paramString().
5485 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5486 * java/awt/event/HierarchyBoundsListener.java: New class.
5487 * java/awt/event/HierarchyEvent.java: New class.
5488 * java/awt/event/HierarchyListener.java: New class.
5489 * java/awt/event/InputMethodEvent.java: Implement paramString().
5490 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5491 exception if !catchExceptions.
5492 * java/awt/event/ItemEvent.java: Implement paramString().
5493 * java/awt/event/KeyEvent.java: Implement paramString().
5494 * java/awt/event/MouseEvent.java: Implement paramString().
5495 * java/awt/event/PaintEvent.java: Implement paramString().
5496 * java/awt/event/TextEvent.java: Implement paramString().
5497 * java/awt/event/WindowEvent.java: Implement paramString().
5499 AWT Peer interfaces:
5500 * java/awt/peer/ButtonPeer.java: New file.
5501 * java/awt/peer/ListPeer.java: New file.
5502 * java/awt/peer/CanvasPeer.java: New file.
5503 * java/awt/peer/MenuBarPeer.java: New file.
5504 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5505 * java/awt/peer/MenuComponentPeer.java: New file.
5506 * java/awt/peer/CheckboxPeer.java: New file.
5507 * java/awt/peer/MenuItemPeer.java: New file.
5508 * java/awt/peer/ChoicePeer.java: New file.
5509 * java/awt/peer/MenuPeer.java: New file.
5510 * java/awt/peer/ComponentPeer.java: Implemented.
5511 * java/awt/peer/PanelPeer.java: New file.
5512 * java/awt/peer/ContainerPeer.java: Implemented.
5513 * java/awt/peer/PopupMenuPeer.java: New file.
5514 * java/awt/peer/DialogPeer.java: New file.
5515 * java/awt/peer/ScrollPanePeer.java: New file.
5516 * java/awt/peer/FileDialogPeer.java: New file.
5517 * java/awt/peer/ScrollbarPeer.java: New file.
5518 * java/awt/peer/FontPeer.java: New file.
5519 * java/awt/peer/TextAreaPeer.java: New file.
5520 * java/awt/peer/FramePeer.java: Implemented.
5521 * java/awt/peer/TextComponentPeer.java: New file.
5522 * java/awt/peer/LabelPeer.java: New file.
5523 * java/awt/peer/TextFieldPeer.java: New file.
5524 * java/awt/peer/LightweightPeer.java: New file.
5525 * java/awt/peer/WindowPeer.java: Implemented.
5527 2000-07-06 Tom Tromey <tromey@cygnus.com>
5529 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5530 Initialize static final String fields.
5532 2000-07-03 Tom Tromey <tromey@cygnus.com>
5534 * java/io/PrintWriter.java (print): Call write(String), not
5535 print(String). See PR libgcj/277.
5536 (print(String)): Use write, not out.write.
5538 2000-06-30 Tom Tromey <tromey@cygnus.com>
5540 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5542 2000-06-27 Andrew Haley <aph@cygnus.com>
5544 * java/io/File.java (createTempFile): Close the FileDescriptor
5545 used to create a temp file. Fixes some of PR 203.
5546 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5547 collection if we run out of file handles.
5549 2000-06-28 Warren Levy <warrenl@cygnus.com>
5551 * gnu/java/security/provider/Gnu.java: New file.
5552 * gnu/java/security/provider/SHA.java: New file.
5553 * gnu/java/security/provider/SHA1PRNG.java: New file.
5554 * Makefile.am: Added the above files.
5555 * Makefile.in: Rebuilt.
5557 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5559 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5561 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5562 (destroyed_flag): Removed.
5563 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5564 (activeCount): Added spec note.
5566 2000-06-27 Warren Levy <warrenl@cygnus.com>
5568 * java/security/Principal.java: New file.
5569 * Makefile.am: Added Principal.java.
5570 * Makefile.in: Rebuilt.
5572 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5574 * java/awt/event/MouseEvent.java: Fixed coordinate space
5577 2000-06-27 Tom Tromey <tromey@cygnus.com>
5579 * java/io/PushbackInputStream.java (read): If there are characters
5580 in the buffer, don't also call super.read().
5581 * java/io/PushbackReader.java (read): If there are characters in
5582 the buffer, don't also call super.read().
5584 * java/lang/Double.java (valueOf): Call parseDouble().
5586 2000-06-26 Warren Levy <warrenl@cygnus.com>
5588 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5589 (newVal): Renamed to newValue.
5590 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5591 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5592 (revokeNow): Renamed to invalidateRefs.
5593 * java/io/OptionalDataException.java: Updated FIXME.
5594 (eof): New placeholder field.
5596 * java/io/WriteAbortedException.java (message): Made transient.
5597 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5598 * java/lang/Throwable.java (stackTrace): Made transient.
5599 * java/net/InetAddress.java: Made Serializable.
5600 * java/security/KeyPair.java: Made Serializable.
5601 * java/security/Provider.java: Replaced with Classpath version that
5602 implements serialization and proper methods.
5603 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5604 (limits): Renamed to choiceLimits.
5606 2000-06-24 Tom Tromey <tromey@cygnus.com>
5608 * java/lang/natDouble.cc (parseDouble): Renamed from
5610 * java/lang/Double.java (parseDouble): Renamed from
5611 doubleValueOf. Now public.
5613 2000-06-23 Andrew Haley <aph@cygnus.com>
5615 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5616 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5618 2000-06-23 Tom Tromey <tromey@cygnus.com>
5620 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5621 * java/lang/natDouble.cc: Always include <alloca.h>.
5622 Fix for PR libgcj/267.
5624 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5626 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5627 comply with classpath VM spec.
5628 (add(Group)): Rename to addGroup().
5629 * java/lang/Thread.java (Thread): Use addThread().
5630 * java/lang/natThread.cc (finish_): Use removeThread().
5632 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5634 * java/lang/ThreadGroup.java: Merged with classpath.
5635 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5636 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5638 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5639 ThreadGroup.root if Thread.currentThread is null. Honour the
5640 ThreadGroup's max priority setting.
5642 2000-06-18 Tom Tromey <tromey@cygnus.com>
5644 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5645 returned class. For PR gcj/260.
5647 2000-06-16 Tom Tromey <tromey@cygnus.com>
5649 Fix for PR libgcj/261:
5650 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5652 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5653 argument. (This is a patch from long ago that somehow went
5656 2000-06-15 Tom Tromey <tromey@cygnus.com>
5658 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5662 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5664 Fix for PR java.lang/258:
5665 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5666 JV_STATE_DONE, to prevent accidental initialization.
5667 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5668 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5669 interface or an abstract class. Remove redundant initializeClass calls.
5670 Remove duplicate if_idt test.
5671 (_Jv_InterfaceAssignableFrom): New function.
5672 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5674 2000-05-31 Tom Tromey <tromey@cygnus.com>
5676 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5677 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5678 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5679 (NUM_OBJECT_METHODS): New define.
5680 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5681 `array_vtable' parameter. Added assertion.
5682 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5685 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5687 * gcj/cni.h: Include <string.h>.
5688 * defineclass.cc: Include <alloca.h>.
5689 * interpret.cc: Ditto.
5690 * gij.cc: Include <stdlib.h>.
5692 2000-05-30 Tom Tromey <tromey@cygnus.com>
5694 * include/name-finder.h: Include <sys/wait.h>.
5695 (_Jv_name_finder::pid): Now of type `pid_t'.
5696 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5697 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5700 2000-05-24 Warren Levy <warrenl@cygnus.com>
5702 * java/io/ObjectOutputStream.java (writeObject): Use component type
5703 when writing arrays.
5706 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5708 Fix for PR libgcj/226:
5709 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5710 since this is an installed header.
5712 Fix for PR libgcj/228:
5713 * java/util/zip/ZipFile (getInputStream): Create inflater with
5716 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5717 with DataFormatException.
5719 2000-05-20 Tom Tromey <tromey@cygnus.com>
5721 * Makefile.in: Rebuilt.
5722 * Makefile.am (hack1): Removed.
5723 (awto_files): Likewise.
5724 (libgcjawt_la_SOURCES): Likewise.
5725 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5726 (libgcjawt_la_DEPENDENCIES): Likewise.
5727 (libgcjawt_la_LIBADD): Likewise.
5728 (libgcjawt_la_LDFLAGS): Likewise.
5729 (libgcjawt_la_LINK): Likewise.
5730 ($(awt_java_source_files:.java=.class)): Likewise.
5731 (libgcj.zip): Don't depend on AWT files.
5732 (MOSTLYCLEANFILES): Don't include AWT files.
5733 ($(awto_files)): Removed.
5734 (nat_headers): Removed AWT files.
5735 (cond_awt_java_source_files): Removed.
5736 (ordinary_java_source_files): Added awt_java_source_files.
5737 * libgcj.spec.in (*lib): Removed -lgcjawt.
5738 * configure: Rebuilt.
5739 * configure.in: Removed --enable-java-awt option.
5741 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5743 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5744 (ZipEntry): Copy the `name' field.
5745 (clone): Implement JDK1.2 method.
5746 (setCompressedSize): ditto.
5749 2000-05-19 Tom Tromey <tromey@cygnus.com>
5751 * java/io/BufferedWriter.java: Merged with Classpath.
5752 * java/io/BufferedOutputStream.java: Merged with Classpath.
5754 2000-05-16 Andrew Haley <aph@cygnus.com>
5756 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5757 build_ia64_frame_state.
5758 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5761 2000-05-15 Warren Levy <warrenl@cygnus.com>
5763 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5764 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5765 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5766 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5767 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5768 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5769 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5770 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5771 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5772 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5773 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5774 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5775 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5776 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5777 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5778 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5779 * gnu/gcj/io/NullOutputStream.java: Removed.
5780 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5781 * gnu/gcj/lang/ArrayHelper.java: Removed.
5782 * gnu/gcj/lang/ClassHelper.java: Removed.
5783 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5785 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5786 * gnu/java/beans/EmptyBeanInfo.java: New file.
5787 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5788 * gnu/java/beans/IntrospectionIncubator.java: New file.
5789 * gnu/java/beans/editors/ColorEditor.java: New file.
5790 * gnu/java/beans/editors/FontEditor.java: New file.
5791 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5792 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5793 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5794 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5795 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5796 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5797 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5798 * gnu/java/beans/editors/StringEditor.java: New file.
5799 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5800 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5801 * gnu/java/io/NullOutputStream.java: New file.
5802 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5803 * gnu/java/lang/ArrayHelper.java: New file.
5804 * gnu/java/lang/ClassHelper.java: New file.
5805 * gnu/java/lang/reflect/TypeSignature.java: New file.
5807 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5808 namespace back to the original Classpath gnu/java namespace.
5809 * Makefile.in: Rebuilt.
5811 * java/beans/Beans.java: Namespace change.
5812 * java/beans/EventSetDescriptor.java: Namespace change.
5813 * java/beans/Introspector.java: Namespace change.
5814 * java/beans/PropertyEditorManager.java: Namespace change.
5815 * java/io/ObjectInputStream.java: Namespace change.
5816 * java/io/ObjectOutputStream.java: Namespace change.
5817 * java/io/ObjectStreamClass.java: Namespace change.
5818 * java/io/ObjectStreamField.java: Namespace change.
5820 2000-04-21 Warren Levy <warrenl@cygnus.com>
5822 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5823 now that compiler patch is available.
5824 Removed unneeded System.loadLibrary.
5825 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5826 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5828 2000-04-19 Andrew Haley <aph@cygnus.com>
5830 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5831 and target classes have been initialized.
5833 2000-04-19 Andrew Haley <aph@cygnus.com>
5835 * java/lang/String.java: implement Serializable, Comparable.
5836 (compareTo (Object)): New method.
5838 2000-04-19 Warren Levy <warrenl@cygnus.com>
5840 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5841 instead of getField to retrieve non-public field.
5842 (getSerialPersistantFields): Ditto.
5844 2000-04-18 Warren Levy <warrenl@cygnus.com>
5846 * mauve-libgcj: Turned off object serialization tests temporarily
5847 due to compiler error.
5849 2000-04-17 Warren Levy <warrenl@cygnus.com>
5851 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5852 to avoid build problem.
5854 * mauve-libgcj: Turned on object serialization tests.
5856 2000-04-17 Tom Tromey <tromey@cygnus.com>
5858 * libgcj.spec.in (*lib): Added -lgcjawt.
5860 2000-04-17 Andrew Haley <aph@cygnus.com>
5862 * Makefile.am: Add new files:
5863 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5865 * Makefile.in: Rebuilt.
5867 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5868 interface that has no implementations.
5869 Check for an attempt to assign an abstract class to an interface.
5871 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5872 if we fail to find MessageDigest.getInstance ("SHA").
5874 * gnu/gcj/io/SimpleSHSStream.java: New file.
5875 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5876 * gnu/gcj/io/shs.cc: New file.
5877 * gnu/gcj/io/shs.h: new file.
5879 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5882 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5883 punctuation from the classname of an array element.
5885 * gcj/javaprims.h: Add SimpleDigestStream.
5887 2000-04-17 Andrew Haley <aph@cygnus.com>
5889 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5890 to getPrivateField for superclasses.
5892 2000-04-14 Andrew Haley <aph@cygnus.com>
5894 * Makefile.am: Add new files:
5895 java/io/ObjectOutputStream$PutField.h,
5896 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5897 java/io/natObjectOutputStream.cc
5898 * Makefile.in: Rebuilt.
5899 * gcj/Makefile.in: Rebuilt.
5900 * include/Makefile.in: Rebuilt.
5901 * java/lang/Class.h (getPrivateField): New method.
5902 (getPrivateMethod): Ditto.
5903 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5904 and java::io::ObjectStreamClass our friends.
5905 * java/lang/natClass.cc (getPrivateField): New method.
5906 (getPrivateMethod): Ditto.
5907 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5908 * gcj/javaprims.h: Add serialization classes.
5909 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5910 (setByteField): Ditto.
5911 (setCharField): Ditto.
5912 (setDoubleField): Ditto.
5913 (setFloatField): Ditto.
5914 (setIntField): Ditto.
5915 (setLongField): Ditto.
5916 (setShortField): Ditto.
5917 (setObjectField): Ditto.
5918 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5920 (getByteField): Ditto.
5921 (getCharField): Ditto.
5922 (getDoubleField): Ditto.
5923 (getFloatField): Ditto.
5924 (getIntField): Ditto.
5925 (getLongField): Ditto.
5926 (getShortField): Ditto.
5927 (getObjectField): Ditto.
5928 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5930 (getSerialPersistantFields): Ditto.
5931 (getDefinedSUID): Ditto.
5932 * java/io/natObjectOutputStream.cc: New file.
5933 * java/io/natObjectInputStream.cc: New file.
5935 2000-04-13 Warren Levy <warrenl@cygnus.com>
5937 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5938 problems. Revert to previous version to reproduce and when fixed.
5940 2000-04-13 Warren Levy <warrenl@cygnus.com>
5942 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5943 * gnu/gcj/io/NullOutputStream.java: New file.
5944 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5945 * java/io/BlockDataException.java: New file.
5946 * java/io/Externalizable.java: New file.
5947 * java/io/InvalidClassException.java: New file.
5948 * java/io/InvalidObjectException.java: New file.
5949 * java/io/NotActiveException.java: New file.
5950 * java/io/NotSerializableException.java: New file.
5951 * java/io/ObjectInput.java: New file.
5952 * java/io/ObjectInputStream.java: New file.
5953 * java/io/ObjectInputValidation.java: New file.
5954 * java/io/ObjectOutput.java: New file.
5955 * java/io/ObjectOutputStream.java: New file.
5956 * java/io/ObjectStreamClass.java: New file.
5957 * java/io/ObjectStreamConstants.java: New file.
5958 * java/io/ObjectStreamField.java: New file.
5959 * java/io/Replaceable.java: New file.
5960 * java/io/Resolvable.java: New file.
5961 * java/io/SerializablePermission.java: New file.
5962 * java/io/WriteAbortedException.java: New file.
5963 * java/security/BasicPermission.java: New file.
5964 * java/security/DigestOutputStream.java: New file.
5965 * java/security/Guard.java: New file.
5966 * java/security/Permission.java: New file.
5967 * java/security/PermissionCollection.java: New file.
5968 * Makefile.am: Added above files.
5969 * Makefile.in: Rebuilt.
5971 * java/beans/Beans.java (instantiate): Activated serialization code.
5972 * java/lang/SecurityManager.java (checkPermission): New method.
5974 2000-04-12 Warren Levy <warrenl@cygnus.com>
5976 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5977 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5978 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5979 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5980 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5981 * gnu/gcj/beans/editors/FontEditor.java: New file.
5982 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5983 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5984 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5985 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5986 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5987 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5988 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5989 * gnu/gcj/beans/editors/StringEditor.java: New file.
5990 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5991 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5992 * gnu/gcj/lang/ArrayHelper.java: New file.
5993 * gnu/gcj/lang/ClassHelper.java: New file.
5994 * java/beans/BeanDescriptor.java: New file.
5995 * java/beans/BeanInfo.java: New file.
5996 * java/beans/Beans.java: New file.
5997 * java/beans/Customizer.java: New file.
5998 * java/beans/DesignMode.java: New file.
5999 * java/beans/EventSetDescriptor.java: New file.
6000 * java/beans/FeatureDescriptor.java: New file.
6001 * java/beans/IndexedPropertyDescriptor.java: New file.
6002 * java/beans/IntrospectionException.java: New file.
6003 * java/beans/Introspector.java: New file.
6004 * java/beans/MethodDescriptor.java: New file.
6005 * java/beans/ParameterDescriptor.java: New file.
6006 * java/beans/PropertyChangeEvent.java: New file.
6007 * java/beans/PropertyChangeListener.java: New file.
6008 * java/beans/PropertyChangeSupport.java: New file.
6009 * java/beans/PropertyDescriptor.java: New file.
6010 * java/beans/PropertyEditor.java: New file.
6011 * java/beans/PropertyEditorManager.java: New file.
6012 * java/beans/PropertyEditorSupport.java: New file.
6013 * java/beans/PropertyVetoException.java: New file.
6014 * java/beans/SimpleBeanInfo.java: New file.
6015 * java/beans/VetoableChangeListener.java: New file.
6016 * java/beans/VetoableChangeSupport.java: New file.
6017 * java/beans/Visibility.java: New file.
6018 * java/beans/beancontext/BeanContext.java: New file.
6019 * java/beans/beancontext/BeanContextChild.java: New file.
6020 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6021 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6022 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6023 * java/beans/beancontext/BeanContextEvent.java: New file.
6024 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6025 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6026 * java/beans/beancontext/BeanContextProxy.java: New file.
6027 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6029 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6030 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6032 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6033 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6035 * java/beans/beancontext/BeanContextServices.java: New file.
6036 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6037 * java/util/AbstractCollection.java: New file.
6038 * java/util/AbstractList.java: New file.
6039 * java/util/Arrays.java: New file.
6040 * Makefile.am: Added above files.
6041 * Makefile.in: Rebuilt.
6043 2000-04-11 Warren Levy <warrenl@cygnus.com>
6045 * java/awt/AWTError.java: New file.
6046 * java/awt/AWTEvent.java: New file.
6047 * java/awt/AWTException.java: New file.
6048 * java/awt/ActiveEvent.java: New file.
6049 * java/awt/Adjustable.java: New file.
6050 * java/awt/BorderLayout.java: New file.
6051 * java/awt/Color.java: New file.
6052 * java/awt/Component.java: New file.
6053 * java/awt/Container.java: New file.
6054 * java/awt/Dimension.java: New file.
6055 * java/awt/Event.java: New file.
6056 * java/awt/Font.java: New file.
6057 * java/awt/Frame.java: New file.
6058 * java/awt/Graphics.java: New file.
6059 * java/awt/IllegalComponentStateException.java: New file.
6060 * java/awt/Image.java: New file.
6061 * java/awt/ItemSelectable.java: New file.
6062 * java/awt/LayoutManager.java: New file.
6063 * java/awt/LayoutManager2.java: New file.
6064 * java/awt/Menu.java: New file.
6065 * java/awt/MenuBar.java: New file.
6066 * java/awt/MenuComponent.java: New file.
6067 * java/awt/MenuContainer.java: New file.
6068 * java/awt/MenuItem.java: New file.
6069 * java/awt/Paint.java: New file.
6070 * java/awt/PaintContext.java: New file.
6071 * java/awt/Point.java: New file.
6072 * java/awt/Rectangle.java: New file.
6073 * java/awt/Shape.java: New file.
6074 * java/awt/TextArea.java: New file.
6075 * java/awt/TextComponent.java: New file.
6076 * java/awt/Toolkit.java: New file.
6077 * java/awt/Transparency.java: New file.
6078 * java/awt/Window.java: New file.
6079 * java/awt/natToolkit.cc: New file.
6080 * java/awt/event/AWTEventListener.java: New file.
6081 * java/awt/event/ActionEvent.java: New file.
6082 * java/awt/event/ActionListener.java: New file.
6083 * java/awt/event/AdjustmentEvent.java: New file.
6084 * java/awt/event/AdjustmentListener.java: New file.
6085 * java/awt/event/ComponentAdapter.java: New file.
6086 * java/awt/event/ComponentEvent.java: New file.
6087 * java/awt/event/ComponentListener.java: New file.
6088 * java/awt/event/ContainerAdapter.java: New file.
6089 * java/awt/event/ContainerEvent.java: New file.
6090 * java/awt/event/ContainerListener.java: New file.
6091 * java/awt/event/FocusAdapter.java: New file.
6092 * java/awt/event/FocusEvent.java: New file.
6093 * java/awt/event/FocusListener.java: New file.
6094 * java/awt/event/InputEvent.java: New file.
6095 * java/awt/event/InputMethodEvent.java: New file.
6096 * java/awt/event/InputMethodListener.java: New file.
6097 * java/awt/event/InvocationEvent.java: New file.
6098 * java/awt/event/ItemEvent.java: New file.
6099 * java/awt/event/ItemListener.java: New file.
6100 * java/awt/event/KeyAdapter.java: New file.
6101 * java/awt/event/KeyEvent.java: New file.
6102 * java/awt/event/KeyListener.java: New file.
6103 * java/awt/event/MouseAdapter.java: New file.
6104 * java/awt/event/MouseEvent.java: New file.
6105 * java/awt/event/MouseListener.java: New file.
6106 * java/awt/event/MouseMotionAdapter.java: New file.
6107 * java/awt/event/MouseMotionListener.java: New file.
6108 * java/awt/event/PaintEvent.java: New file.
6109 * java/awt/event/TextEvent.java: New file.
6110 * java/awt/event/TextListener.java: New file.
6111 * java/awt/event/WindowAdapter.java: New file.
6112 * java/awt/event/WindowEvent.java: New file.
6113 * java/awt/event/WindowListener.java: New file.
6114 * java/awt/geom/Dimension2D.java: New file.
6115 * java/awt/geom/Point2D.java: New file.
6116 * java/awt/peer/ComponentPeer.java: New file.
6117 * java/awt/peer/ContainerPeer.java: New file.
6118 * java/awt/peer/FramePeer.java: New file.
6119 * java/awt/peer/WindowPeer.java: New file.
6120 * java/util/Collection.java: New file.
6121 * java/util/Comparator.java: New file.
6122 * java/util/Iterator.java: New file.
6123 * java/util/List.java: New file.
6124 * java/util/ListIterator.java: New file.
6125 * Makefile.am: Added above files.
6126 * Makefile.in: Rebuilt.
6128 2000-04-10 Warren Levy <warrenl@cygnus.com>
6130 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6131 * java/lang/FirstThread.java: Ditto.
6132 * java/lang/StringBuffer.java: Ditto.
6133 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6135 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6136 Special case handled in java.math.BigInteger.
6137 * java/math/BigInteger.java (divide): Handle the special case when
6138 dividing by 1 and the high bit of the dividend is set.
6139 (setShiftRight): Handle case when count == 0.
6141 2000-04-05 Andrew Haley <aph@cygnus.com>
6143 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6146 2000-04-05 Andrew Haley <aph@cygnus.com>
6148 * sysdep/ia64.c (rse_address_add): Delete.
6149 (IS_NaT_COLLECTION_ADDR): Delete.
6150 (ia64_backtrace_helper): check for null unwind_info.
6152 * sysdep/ia64-frame.h: add calc_caller_bsp.
6154 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6157 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6158 (_Jv_remI): Likewise.
6159 (_Jv_divJ): Likewise.
6160 (_Jv_remJ): Likewise.
6162 * interpret.cc (continue1): Use divide subroutines to guarantee
6163 correct Java standard behaviour.
6164 Floating-point division should not abort; make it so.
6166 2000-03-29 Tom Tromey <tromey@cygnus.com>
6168 * configure: Rebuilt.
6169 * configure.in: Test against `libgcj_sjlj', not
6170 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6171 to be set even when using sjlj.
6173 2000-03-24 Andrew Haley <aph@cygnus.com>
6175 * Makefile.am: Add file addr2name.awk.
6176 * Makefile.in: Rebuilt.
6177 * addr2name.awk: New file.
6178 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6180 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6183 2000-03-22 Andrew Haley <aph@cygnus.com>
6185 * configure.host: Add -funwind-tables for IA64.
6186 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6187 * Makefile.in: Rebuilt.
6188 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6189 * sysdep/ia64.c: New file.
6190 * sysdep/ia64-frame.h: New file.
6191 * configure.in: Add sysdep/ia64.c for ia64.
6192 * configure: Rebuilt.
6194 2000-03-17 Andrew Haley <aph@cygnus.com>
6196 * java/lang/natString.cc: Remove `register' keyword.
6197 interpret.cc: ditto.
6199 2000-03-16 Andrew Haley <aph@cygnus.com>
6201 * configure.host (ia64): Enable interpreter.
6203 2000-03-14 Hans Boehm <boehm@acm.org>
6205 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6207 2000-03-14 Andrew Haley <aph@cygnus.com>
6209 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6212 2000-03-10 Andrew Haley <aph@cygnus.com>
6214 * java/lang/ieeefp.h: Import latest version from fdlibm.
6216 2000-03-14 Andrew Haley <aph@cygnus.com>
6218 * prims.cc (_Jv_ThrowSignal): New function.
6219 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6221 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6222 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6223 * include/ppc-signal.h: New file.
6225 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6227 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6228 * java/lang/natThread.java (initialize_native): Cast `data' to
6230 * gnu/gcj/RawData.java: Clarify documentation.
6232 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6233 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6234 `jarFile', not `jarFileURL'.
6236 2000-05-15 Andrew Haley <aph@cygnus.com>
6238 * include/ppc-signal.h: New file.
6240 2000-05-11 Tom Tromey <tromey@cygnus.com>
6242 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6243 file headers, don't include `size' in the skip call.
6245 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6247 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6248 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6250 (replace): Reimplemented. Fix javadoc.
6251 (reverse): Call ensureCapacity_unsynchronized().
6252 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6254 (replace): Calculate length for arraycopy() correctly.
6256 2000-05-09 Tom Tromey <tromey@cygnus.com>
6258 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6260 (insert(int,char[],int,int): New method.
6261 (delete): New method from Classpath.
6262 (deleteCharAt): Likewise.
6263 (substring): Likewise.
6264 (shared): No longer private.
6265 Added JavaDoc comments from Classpath.
6266 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6269 2000-05-07 Tom Tromey <tromey@cygnus.com>
6271 * Makefile.in: Rebuilt.
6272 * Makefile.am (LIBLINK): New macro.
6273 (libgcj_la_LINK): Use it.
6274 (libgcjawt_la_LINK): Likewise.
6276 2000-05-06 Tom Tromey <tromey@cygnus.com>
6278 * Makefile.in: Rebuilt.
6279 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6281 2000-05-05 Tom Tromey <tromey@cygnus.com>
6283 Fix for PR libgcj/220:
6284 * Makefile.in: Rebuilt.
6285 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6286 (jv_convert_LDFLAGS): Likewise.
6287 (libgcj_la_LDFLAGS): Likewise.
6288 (GCJLINK): New macro.
6289 (jv_convert_LINK): Use it.
6290 (gij_LINK): Likewise.
6291 (libgcj_la_LINK): New macro.
6292 (libgcjawt_la_LINK): Likewise.
6294 2000-05-04 Tom Tromey <tromey@cygnus.com>
6296 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6298 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6302 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6304 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6305 (_Jv_IsAssignableFrom): Ditto.
6306 (_Jv_IsInstanceOf): Ditto.
6307 (_Jv_CheckCast): Ditto.
6308 (_Jv_CheckArrayStore): Ditto.
6309 * java/lang/Class.h (_Jv_InitClass): Ditto.
6310 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6315 (_Jv_MonitorExit): Ditto.
6316 * boehm.cc (_Jv_MarkObj): Ditto.
6317 (_Jv_MarkObj): Ditto.
6318 (_Jv_MarkArray): Ditto.
6319 * prims.cc (_Jv_AllocObject): Ditto.
6320 (_Jv_NewObjectArray): Ditto.
6321 (_Jv_NewPrimArray): Ditto.
6322 (_Jv_Malloc): Ditto.
6323 (_Jv_Realloc): Ditto.
6324 (_Jv_MallocUnchecked): Ditto.
6330 2000-05-04 Tom Tromey <tromey@cygnus.com>
6332 * java/util/Locale.java (Locale): Don't explicitly check for
6334 * java/util/Hashtable.java (containsKey): Don't explicitly check
6337 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6339 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6341 * java/text/StringCharacterIterator.java
6342 (StringCharacterIterator): Don't check for null.
6343 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6345 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6346 check for null pointer.
6347 (leaveGroup): Likewise.
6348 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6350 (setData): Likewise.
6351 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6354 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6356 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6357 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6358 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6359 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6360 -rpath for in-gcc builds.
6361 * Makefile.in: Rebuilt.
6363 2000-04-28 Tom Tromey <tromey@cygnus.com>
6365 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6368 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6370 * libjava/java/lang/String.java (toString): Remove `final' hack.
6372 2000-04-05 Tom Tromey <tromey@cygnus.com>
6374 Runtime support for PR gcj/2:
6375 * prims.cc (_Jv_ThrowNullPointerException): New function.
6376 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6378 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6380 * prims.cc (_Jv_NewObjectArray): Fix typo.
6382 2000-04-26 Tom Tromey <tromey@cygnus.com>
6384 * Makefile.in: Rebuilt.
6385 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6387 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6389 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6392 2000-04-22 Anthony Green <green@cygnus.com>
6394 * include/jvm.h (__builtin_expect): Define as unused for now.
6395 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6399 (_Jv_MonitorExit): Ditto.
6400 * boehm.cc (_Jv_MarkObj): Ditto.
6401 (_Jv_MarkObj): Ditto.
6402 (_Jv_MarkArray): Ditto.
6403 (_Jv_AllocBytes): Ditto.
6404 * prims.cc (_Jv_AllocObject): Ditto.
6405 (_Jv_NewObjectArray): Ditto.
6406 (_Jv_NewPrimArray): Ditto.
6407 (_Jv_Malloc): Ditto.
6408 (_Jv_Realloc): Ditto.
6409 (_Jv_MallocUnchecked): Ditto.
6415 * include/Makefile.in: Rebuilt.
6416 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6418 2000-04-21 Tom Tromey <tromey@cygnus.com>
6420 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6421 Yet another new version from Classpath.
6423 Fix for PR libgcj/15:
6424 * java/util/natGregorianCalendar.cc (_REENTRANT,
6425 _POSIX_PTHREAD_SEMANTICS): Don't define.
6426 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6427 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6429 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6431 * configure: Rebuilt.
6432 * configure.in: If using POSIX threads, define _REENTRANT if
6433 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6434 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6436 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6437 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6438 version from Classpath.
6440 Fix for PR libgcj/213:
6441 * Makefile.in: Rebuilt.
6442 * Makefile.am (gij_SOURCES): Added gij.cc.
6443 (EXTRA_gij_SOURCES): Removed.
6444 (gij_LDADD): Removed gij.lo.
6445 (gij_DEPENDENCIES): Likewise.
6446 ($(gij_OBJECTS)): Depend on nat_headers.
6448 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6449 `setURL', not `url.set'.
6451 2000-04-20 Tom Tromey <tromey@cygnus.com>
6453 Fix for PR java.io/204:
6454 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6455 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6458 Fix for PR libgcj/212:
6459 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6460 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6461 * java/lang/Class.h (_Jv_word): Declare.
6463 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6465 2000-04-19 Tom Tromey <tromey@cygnus.com>
6467 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6468 doesn't have a loader.
6470 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6472 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6473 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6475 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6477 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6479 (available): Initialize `where' to prevent bogus compiler warning.
6481 2000-04-12 Tom Tromey <tromey@cygnus.com>
6483 * java/lang/natString.cc (intern): Temporarily disable finalizer
6486 * java/lang/natString.cc (unintern): Added `obj' argument.
6487 (intern): Register finalizer for string.
6488 * java/lang/String.java (unintern): Now static; added obj
6491 2000-04-11 Tom Tromey <tromey@cygnus.com>
6493 * java/util/Vector.java (VectorEnumeration): Now `final'.
6494 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6495 (HashtableEnumeration): Likewise.
6496 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6497 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6499 2000-04-10 Warren Levy <warrenl@cygnus.com>
6501 * java/io/ObjectStreamException.java: New file.
6502 * java/io/OptionalDataException.java: New file.
6503 * java/io/StreamCorruptedException.java: New file.
6504 * java/math/BigDecimal.java: New file.
6505 * java/sql/CallableStatement.java: New file.
6506 * java/sql/Connection.java: New file.
6507 * java/sql/DataTruncation.java: New file.
6508 * java/sql/DatabaseMetaData.java: New file.
6509 * java/sql/Date.java: New file.
6510 * java/sql/Driver.java: New file.
6511 * java/sql/DriverManager.java: New file.
6512 * java/sql/DriverPropertyInfo.java: New file.
6513 * java/sql/PreparedStatement.java: New file.
6514 * java/sql/ResultSet.java: New file.
6515 * java/sql/ResultSetMetaData.java: New file.
6516 * java/sql/SQLException.java: New file.
6517 * java/sql/SQLWarning.java: New file.
6518 * java/sql/Statement.java: New file.
6519 * java/sql/Time.java: New file.
6520 * java/sql/Timestamp.java: New file.
6521 * java/sql/Types.java: New file.
6522 * Makefile.am: Added above new files.
6523 * Makefile.in: Rebuilt.
6525 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6526 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6527 DatagramSocket constructor instead of null.
6529 2000-04-08 Anthony Green <green@cygnus.com>
6531 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6534 2000-04-08 Anthony Green <green@cygnus.com>
6536 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6537 (_Jv_MutexUnlock): Ditto.
6538 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6539 (_Jv_MutexUnlock): Ditto.
6541 2000-04-08 Anthony Green <green@cygnus.com>
6543 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6544 (ensureCapacity_unsynchronized): New private method.
6545 (append): Use ensureCapacity_unsynchronized.
6547 2000-04-08 Tom Tromey <tromey@cygnus.com>
6549 * Makefile.in: Rebuilt.
6550 * Makefile.am (awt_java_source_files): Added new files.
6551 * java/awt/IllegalComponentStateException.java: New file.
6552 * java/awt/ItemSelectable.java: New file.
6553 * java/awt/event/WindowEvent.java: Finished.
6554 * java/awt/event/TextEvent.java: Finished.
6555 * java/awt/event/ContainerEvent.java: New file.
6556 * java/awt/Component.java (getX, getY): New methods.
6557 * java/awt/event/PaintEvent.java: New file.
6558 * java/awt/event/MouseEvent.java: New file.
6559 * java/awt/ActiveEvent.java: New file.
6560 * java/awt/event/KeyEvent.java: Finished.
6561 * java/awt/event/ItemEvent.java: New file.
6562 * java/awt/Adjustable.java: New file.
6563 * java/awt/event/InputMethodEvent.java: New file.
6564 * java/awt/event/InputEvent.java: Finished.
6565 * java/awt/event/FocusEvent.java: New file.
6566 * java/awt/event/MouseMotionAdapter.java: New file.
6567 * java/awt/event/MouseAdapter.java: New file.
6568 * java/awt/event/KeyAdapter.java: New file.
6569 * java/awt/event/FocusAdapter.java: New file.
6570 * java/awt/event/ContainerAdapter.java: New file.
6571 * java/awt/event/ComponentEvent.java: Finished.
6572 * java/awt/event/AdjustmentEvent.java: New file.
6573 * java/awt/event/ComponentAdapter.java: New file.
6574 * java/awt/event/ActionEvent.java: Finished.
6575 * java/awt/event/MouseMotionListener.java: New file.
6576 * java/awt/event/MouseListener.java: New file.
6577 * java/awt/event/ItemListener.java: New file.
6578 * java/awt/event/InputMethodListener.java: New file.
6579 * java/awt/event/ContainerListener.java: New file.
6580 * java/awt/event/FocusListener.java: New file.
6581 * java/awt/event/ComponentListener.java: New file.
6582 * java/awt/event/AWTEventListener.java: New file.
6583 * java/awt/event/AdjustmentListener.java: New file.
6585 2000-04-08 Anthony Green <green@cygnus.com>
6587 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6588 check when we have to.
6590 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6593 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6596 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6597 inline hasMoreElements.
6599 2000-04-05 Tom Tromey <tromey@cygnus.com>
6601 * configure: Rebuilt.
6602 * configure.in: Recognize --enable-java-awt.
6603 (AWT): New conditional.
6604 * Makefile.in: Rebuilt.
6605 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6607 (libgcjawt_la_SOURCES): New macro.
6608 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6609 (libgcjawt_la_DEPENDENCIES): Likewise.
6610 (libgcjawt_la_LIBADD): Likewise.
6611 (libgcjawt_la_LDFLAGS): Likewise.
6612 (libgcj.zip): Depend on cond_java_awt_source_files
6613 (cond_awt_java_source_files): New macro.
6614 (MOSTLYCLEANFILES): Added awto_files.
6615 (awto_files): New macro. Use where javao_files used.
6616 (nat_headers): Use cond_awt_java_source_files.
6618 2000-04-04 Tom Tromey <tromey@cygnus.com>
6620 * Makefile.in: Rebuilt.
6621 * Makefile.am (awt_java_source_files): Added AWTException.java.
6622 * java/awt/AWTException.java: New file.
6624 2000-04-03 Tom Tromey <tromey@cygnus.com>
6626 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6627 commentary from Alex.
6629 * Makefile.in: Rebuilt.
6630 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6633 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6635 * configure: Rebuilt.
6636 * configure.in: Add --disable-jvmpi.
6637 * include/config.h.in: Rebuilt.
6638 * acconfig.h: Add ENABLE_JVMPI.
6640 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6641 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6642 (_Jv_JVMPI_Notify_THREAD_END): New define.
6643 (_Jv_JVMPI_Notify_THREAD_END): New define.
6644 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6645 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6646 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6648 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6651 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6652 (finish_): Generate JVMPI thread end events.
6653 (run_): Generate JVMPI thread start events.
6654 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6655 preloaded JNI library.
6656 Include JVMPI headers if necessary.
6657 (run): Generate JVMPI thread start events.
6659 * boehm.cc: Define GC_disable and GC_enable.
6660 (_Jv_DisableGC): New function.
6661 (_Jv_EnableGC): New function.
6662 (disable_gc_mutex): Declare.
6663 * nogc.cc (_Jv_DisableGC): New function.
6664 (_Jv_EnableGC): New function.
6666 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6667 (_Jv_JVMPI_Interface): Define.
6668 (jvmpiEnableEvent): New function.
6669 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6671 * include/jvmpi.h: New file.
6673 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6675 * Makefile.in: New #defines and friends for Thread.h.
6676 * Makefile.am: Ditto.
6677 * posix-threads.cc: (struct starter): Remove `object'.
6678 (_Jv_CondWait): Use interruptable condition variables and new
6679 recursive mutexes. New return codes on interrupt or non-ownership
6681 (_Jv_CondNotify): Ditto.
6682 (_Jv_CondNotifyAll): Ditto.
6683 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6684 the target thread by signaling its wait condition.
6685 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6686 not the starter struct. Initialize wait_mutex and wait_cond.
6687 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6689 (_Jv_MutexUnlock): Ditto.
6690 (really_start): Set info->data->thread from pthread_self() to work
6691 around a race condition. Destroy wait_mutex and wait_cond when run()
6693 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6694 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6696 startable_flag: New private field.
6697 (Thread): Initialize `startable_flag'.
6698 (toString): Check for null thread group.
6699 * java/lang/natThread.cc: (struct natThread): New fields
6700 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6701 (class locker): Removed.
6702 (initialize_native): Initialize `join_cond' and `join_mutex'.
6703 (interrupt): Now just calls _Jv_ThreadInterrupt().
6704 (join): Simplified. Just wait on the target thread's join condition.
6705 (finish_): Remove join list code. Unset thread group. Signal
6706 potential joiners by notifying the dying threads join_cond.
6707 (start): Check for illegal restarts.
6708 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6710 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6711 #defines and #ifdefs.
6712 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6713 `wait_mutex', `next'.
6714 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6715 directly mapping to pthread_cond_t.
6716 (struct _Jv_Mutex_t): New recursive implementation.
6717 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6718 _Jv_HaveCondDestroy: Never define this for posix-threads.
6719 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6720 (_Jv_CondNotifyAll): Ditto.
6721 (_Jv_MutexLock): Ditto.
6722 (_Jv_MutexUnlock): Ditto.
6723 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6724 (_Jv_MutexDestroy): Ditto.
6725 (_Jv_CondDestroy): Removed.
6726 (_Jv_PthreadGetMutex): Removed.
6727 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6728 error. Add a FIXME about this.
6729 (_Jv_CondNotifyAll): Ditto.
6730 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6731 _JV_NOT_OWNER on other errors. Add FIXME.
6733 2000-03-26 Tom Tromey <tromey@cygnus.com>
6735 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6737 (call): Don't throw exception here.
6739 2000-03-26 Tom Tromey <tromey@cygnus.com>
6741 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6742 * interpret.cc: Use SIZEOF_VOID_P.
6743 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6744 (_Jv_loadLong): Likewise.
6745 (_Jv_storeDouble): Likewise.
6746 * configure: Rebuilt.
6747 * configure.in: Check size of void*.
6749 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6751 2000-03-26 Hans Boehm <boehm@acm.org>
6753 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6754 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6756 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6757 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6758 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6759 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6761 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6762 (FFI_RAW_SIZE): Likewise.
6763 (_Jv_InterpMethod::ncode): Use them.
6764 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6765 STORED): Define differently on a 64 bit machine.
6766 (continue1): Use ffi_java_raw_call when appropriate.
6768 2000-03-24 Warren Levy <warrenl@cygnus.com>
6770 * java/math/BigInteger.java(divide): Handle the special case when
6771 dividing by 1 and the high bit of the dividend is set.
6772 (setShiftRight): Handle case when count == 0.
6774 2000-03-24 Warren Levy <warrenl@cygnus.com>
6776 * java/awt/Font.java(isBold): Fix syntax error.
6778 * java/awt/Frame.java(postEvent): ditto.
6779 * java/awt/Menu.java(postEvent): ditto.
6780 * java/awt/MenuBar.java(postEvent): ditto.
6781 * java/awt/Toolkit.java(init): Included a stub.
6783 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6785 * java/awt/Event.java: Add all the event type constants.
6786 (Event): Implemented constructors.
6787 (controlDown): Implemented.
6788 (metaDown): Implemented.
6789 (paramString): Stubbed.
6790 (shiftDown): Implemented.
6791 (toString): Implemented.
6792 (translate): Implemented.
6794 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6796 * java/lang/natClass.cc (isInstance): Initialize `this'.
6797 (isAssignableFrom): Initialize `this' and `klass'.
6798 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6799 implemented by any loaded class, so return false.
6800 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6801 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6803 2000-03-19 Warren Levy <warrenl@cygnus.com>
6805 * java/awt/Color.java: Specified java.io for Serializable.
6806 * java/awt/Toolkit.java: Imported java.net.URL.
6808 2000-03-19 Warren Levy <warrenl@cygnus.com>
6810 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6812 2000-03-16 Warren Levy <warrenl@cygnus.com>
6814 * java/awt/Color.java: New file.
6815 * java/awt/Graphics.java: New file.
6816 * java/awt/Image.java: New file.
6817 * java/awt/Paint.java: New file.
6818 * java/awt/PaintContext.java: New file.
6819 * java/awt/Transparency.java: New file.
6820 * java/util/Collection.java: New file.
6821 * java/util/Comparator.java: New file.
6822 * java/util/Iterator.java: New file.
6823 * java/util/List.java: New file.
6824 * java/util/ListIterator.java: New file.
6825 * Makefile.am: Added above new files.
6826 * Makefile.in: Rebuilt.
6828 * java/awt/Font.java (PLAIN): New field.
6830 (ITALIC): New field.
6831 (ROMAN_BASELINE): New field.
6832 (CENTER_BASELINE): New field.
6833 (HANGING_BASELINE): New field.
6837 (pointSize): New field.
6838 (Font): Implemented constructor.
6839 (isPlain): Implemented method.
6840 (isBold): Implemented method.
6841 (isItalic): Implemented method.
6842 (getName): Implemented method.
6843 (getStyle): Implemented method.
6844 (getSize): Implemented method.
6845 (getSize2D): Implemented method.
6847 * java/awt/Frame.java (getFont): Stubbed.
6848 (postEvent): Stubbed.
6850 * java/awt/Menu.java (postEvent): Stubbed.
6851 * java/awt/MenuBar.java (getFont): Stubbed.
6852 (postEvent): Stubbed.
6853 * java/awt/Toolkit.java (getImage): Added abstract method.
6855 2000-03-15 Tom Tromey <tromey@cygnus.com>
6857 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6859 * prims.cc (win32_exception_handler): Reformatted.
6861 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6862 (_Jv_HaveMutexDestroy): Likewise.
6864 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6866 * java/io/natFileDescriptorWin32.cc: New file.
6867 * java/io/natFileWin32.cc: New file.
6868 * java/net/natInetAddress.cc: Added conditional inclusion of
6869 Windows / Winsock headers.
6870 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6871 inclusion of Windows / Winsock headers.
6872 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6873 Windows / Winsock headers.
6874 * include/win32-signal.h: New file.
6875 * include/win32-threads.h: New file.
6876 * win32-threads.cc: New file.
6877 * exception.cc (win32_get_restart_frame): New function.
6878 * prims.cc (win32_exception_handler): New function.
6879 (main_init) Performs Winsock initialisation.
6880 (main_init) Installs exeception handler.
6882 2000-03-14 Tom Tromey <tromey@cygnus.com>
6884 * jni.cc (mangled_name): Fixed assertion.
6885 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6886 turned assert into actual failure.
6888 2000-03-09 Warren Levy <warrenl@cygnus.com>
6890 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6891 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6892 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6894 2000-03-09 Warren Levy <warrenl@cygnus.com>
6896 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6897 * java/security/DigestException.java: New file.
6898 * java/security/GeneralSecurityException.java: New file.
6899 * java/security/InvalidAlgorithmParameterException.java: New file.
6900 * java/security/InvalidKeyException.java: New file.
6901 * java/security/InvalidParameterException.java: New file.
6902 * java/security/Key.java: New file.
6903 * java/security/KeyException.java: New file.
6904 * java/security/KeyPair.java: New file.
6905 * java/security/KeyPairGenerator.java: New file.
6906 * java/security/KeyPairGeneratorSpi.java: New file.
6907 * java/security/NoSuchProviderException.java: New file.
6908 * java/security/PrivateKey.java: New file.
6909 * java/security/Provider.java: New file.
6910 * java/security/PublicKey.java: New file.
6911 * java/security/SecureRandom.java: New file.
6912 * java/security/Security.java: New file.
6913 * java/security/Signature.java: New file.
6914 * java/security/SignatureException.java: New file.
6915 * java/security/interfaces/DSAKey.java: New file.
6916 * java/security/interfaces/DSAParams.java: New file.
6917 * java/security/interfaces/DSAPrivateKey.java: New file.
6918 * java/security/interfaces/DSAPublicKey.java: New file.
6919 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6920 * java/security/interfaces/RSAPrivateKey.java: New file.
6921 * java/security/interfaces/RSAPublicKey.java: New file.
6922 * java/security/spec/AlgorithmParameterSpec.java: New file.
6923 * java/security/spec/InvalidKeySpecException.java: New file.
6924 * java/security/spec/InvalidParameterSpecException.java: New file.
6925 * java/security/spec/KeySpec.java: New file.
6926 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6927 * java/security/spec/RSAPrivateKeySpec.java: New file.
6928 * java/security/spec/RSAPublicKeySpec.java: New file.
6929 * Makefile.am: Added above java.security files.
6930 * Makefile.in: Rebuilt.
6932 * java/security/MessageDigest.java: Rewritten.
6933 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6935 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6939 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6941 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6942 _Jv_PrepareConstantTimeTables.
6943 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6944 classes should have an IDT, so don't return if klass is an array
6947 2000-03-08 Tom Tromey <tromey@cygnus.com>
6949 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6950 of `void' to be created.
6952 2000-03-08 Warren Levy <warrenl@cygnus.com>
6954 * java/math/BigInteger.java(signum): Handle zero properly.
6956 2000-03-07 Tom Tromey <tromey@cygnus.com>
6958 * All files: Updated copyright information.
6959 * COPYING: New file.
6960 * COPYING.LIB: Removed.
6961 * LIBGCJ_LICENSE: We now use GPL + special exception.
6963 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6965 * resolve.cc (_Jv_SearchMethodInClass): New function.
6966 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6967 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6969 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6971 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6972 (struct _Jv_ifaces): New declaration.
6973 JV_CLASS: New macro definition.
6974 (getComponentType): Relocate below isArray() for inlining.
6975 (getModifiers): Declare `inline'.
6976 (getSuperclass): Ditto.
6978 (isPrimitive): Ditto.
6979 (_Jv_IsAssignableFrom): New prototype.
6980 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6982 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6983 Check for JV_STATE_DONE before invoking initializeClass().
6984 (_Jv_PrepareConstantTimeTables): New prototype.
6985 (_Jv_GetInterfaces): Ditto.
6986 (_Jv_GenerateITable): Ditto.
6987 (_Jv_GetMethodString): Ditto.
6988 (_Jv_AppendPartialITable): Ditto.
6989 (_Jv_FindIIndex): Ditto.
6990 depth, ancestors, idt: New class fields.
6992 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6993 inline function `_Jv_IsAssignableFrom'. Use that function.
6994 (isInstance): Declare `inline'.
6995 (initializeClass): Get lock on class before checking `state'. Unlock
6996 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6998 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6999 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7000 class->depth and ancestor table.
7001 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7002 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7003 _Jv_IsAssignableFrom.
7004 (_Jv_CheckArrayStore): Ditto.
7005 (_Jv_LookupInterfaceMethodIdx): New function.
7006 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7007 (_Jv_PrepareConstantTimeTables): New function.
7008 (_Jv_IndexOf): Ditto.
7009 (_Jv_GetInterfaces): Ditto.
7010 (_Jv_GenerateITable): Ditto.
7011 (_Jv_GetMethodString): Ditto.
7012 (_Jv_AppendPartialITable): Ditto.
7013 iindex_mutex, iindex_mutex_initialized: New static fields.
7014 (_Jv_FindIIndex): New function.
7016 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7018 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7019 (_Jv_CheckArrayStore): Ditto.
7020 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7021 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7022 Moved to gcj/array.h.
7023 (_Jv_Realloc): New function.
7025 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7027 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7028 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7029 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7030 JvNewDoubleArray): Implementations moved from prims.cc and
7033 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7035 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7037 2000-03-06 Tom Tromey <tromey@cygnus.com>
7039 * jni.cc (MARK_NONE): New define.
7040 (MARK_USER): Likewise.
7041 (MARK_SYSTEM): Likewise.
7042 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7044 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7045 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7046 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7047 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7049 (call): Use MARK_SYSTEM.
7050 (_Jv_GetJNIEnvNewFrame): New function.
7051 (_Jv_LookupJNIMethod): New function.
7052 (_Jv_JNI_PopSystemFrame): New function.
7053 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7055 2000-03-05 Tom Tromey <tromey@cygnus.com>
7057 Fix for PR libgcj/43:
7058 * include/Makefile.in: Rebuilt.
7059 * include/Makefile.am (include_HEADERS): New define.
7061 2000-03-05 Anthony Green <green@redhat.com>
7063 * gcj/javaprims.h ("Java"): Remove FirstThread.
7065 * configure.host: Fix __NO_MATH_INLNES botch.
7067 * Makefile.in: Rebuilt.
7068 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7069 (gnu/gcj/runtime/FirstThread.h): Moved.
7070 (ordinary_java_source_files): Move FirstThread.java.
7071 * prims.cc: Deal with FirstThread movement.
7073 (_Jv_RunMain): Ditto.
7075 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7076 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7078 2000-03-05 Warren Levy <warrenl@cygnus.com>
7080 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7081 Handle null addresses.
7083 2000-03-04 Anthony Green <green@redhat.com>
7085 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7088 2000-03-04 Anthony Green <green@redhat.com>
7090 * configure: Rebuilt.
7091 * configure.in (ZLIBTESTSPEC): New macro.
7092 (GCTESTSPEC): New macro.
7093 (LIBGCJTESTSPEC): New macro.
7094 * libgcj-test.spec.in: New file.
7096 2000-03-02 Tom Tromey <tromey@cygnus.com>
7098 * include/java-interp.h: Don't include MethodInvocation.h.
7099 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7100 * Makefile.in: Rebuilt.
7101 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7102 (ordinary_java_source_files): Don't mention
7103 MethodInvocation.java.
7104 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7105 * interpret.cc (MethodInvocation::continue1): Removed.
7106 (run): Handle exceptions here.
7107 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7109 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7111 (defineClass2): Removed.
7113 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7115 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7117 (hack_call): Removed.
7119 * java/lang/Class.h (Class): Removed hackRunInitializers,
7121 * java/lang/natClass.cc (hackRunInitializers): Removed.
7122 (initializeClass): Catch exceptions here.
7123 Include ExceptionInInitializerError.h.
7124 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7127 * java/lang/Object.h (Object): Don't mention hack12_6.
7128 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7130 * java/lang/Object.java (hack12_6): Removed.
7132 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7133 (start): Use run_, not run__.
7134 * java/lang/Thread.java (run_): Renamed from run__; old run_
7137 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7138 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7139 (_Jv_JNI_DefineClass): Likewise.
7140 (_Jv_JNI_ThrowNew): Likewise.
7141 (_Jv_JNI_AllocObject): Likewise.
7142 (_Jv_JNI_GetAnyMethodID): Likewise.
7143 (_Jv_JNI_CallAnyMethodV): Likewise.
7144 (_Jv_JNI_CallAnyMethodA): Likewise.
7145 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7146 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7147 (_Jv_JNI_GetAnyFieldID): Likewise.
7148 (_Jv_JNI_NewString): Likewise.
7149 (_Jv_JNI_NewStringUTF): Likewise.
7150 (_Jv_JNI_GetStringUTFChars): Likewise.
7151 (_Jv_JNI_NewObjectArray): Likewise.
7152 (_Jv_JNI_NewPrimitiveArray): Likewise.
7153 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7154 (_Jv_JNI_GetStringRegion): Likewise.
7155 (_Jv_JNI_GetStringUTFRegion): Likewise.
7156 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7157 (_Jv_JNI_MonitorEnter): Likewise.
7158 (_Jv_JNI_MonitorExit): Likewise.
7159 (_Jv_JNI_ToReflectedField): Likewise.
7160 (_Jv_JNI_ToReflectedMethod): Likewise.
7161 (_Jv_JNI_RegisterNatives): Likewise.
7162 (_Jv_JNI_AttachCurrentThread): Likewise.
7163 (_Jv_JNI_DestroyJavaVM): Likewise.
7165 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7167 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7168 error caused by the incorrect casting of a long to an int.
7170 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7172 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7173 SIGSEV caused by use of the wrong instance variable.
7175 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7177 * java/io/File.java (File(String, String)): For dirPath, treat an
7178 empty String the same as `null'.
7180 2000-02-26 Anthony Green <green@cygnus.com>
7182 * gnu/gcj/io/MimeTypes.java: Test for null.
7184 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7185 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7187 * java/net/URLConnection.java: Update copyright notice.
7189 2000-02-25 Tom Tromey <tromey@cygnus.com>
7191 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7194 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7196 * java/net/URLConnection.java (initializeDateFormats): New
7198 (getHeaderFieldDate): Call initializeDateFormats if required.
7199 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7201 Fix for PR libgcj/38.
7203 2000-02-24 Warren Levy <warrenl@cygnus.com>
7205 * java/math/BigInteger.java(ival): Made private.
7209 2000-02-20 Anthony Green <green@cygnus.com>
7211 * Makefile.in: Rebuilt.
7212 * Makefile.am (ordinary_java_source_files): Add
7213 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7215 * scripts/MakeDefaultMimeTypes.java: New file.
7216 * scripts/mime.types: New file.
7217 * scripts/classes.pl: Moved from top level.
7218 * classes.pl: Moved to scripts directory.
7220 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7222 * gnu/gcj/io/MimeTypes.java: New file.
7223 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7225 2000-02-20 Tom Tromey <tromey@cygnus.com>
7227 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7229 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7231 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7234 2000-02-18 Tom Tromey <tromey@cygnus.com>
7236 * include/jvm.h (_Jv_GetJavaVM): Declare.
7237 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7238 (_Jv_MethodBase::get_method): New method.
7239 (_Jv_JNIMethod::set_function): New method.
7240 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7241 (_Jv_JNI_RegisterNatives): New function.
7242 (_Jv_JNIFunctions): Updated for new functions.
7243 (_Jv_GetJavaVM): New function.
7244 (_Jv_JNI_GetJavaVM): Use it. Now static.
7245 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7246 is already a Java thread but does not have a JNIEnv yet.
7248 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7251 2000-02-17 Tom Tromey <tromey@cygnus.com>
7253 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7256 2000-02-16 Tom Tromey <tromey@cygnus.com>
7258 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7260 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7261 (_Jv_JNI_NewObject): Likewise.
7262 (_Jv_JNI_NewObjectA): Likewise.
7263 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7264 as "return" type to _Jv_CallAnyMethodA.
7265 (_Jv_JNI_CallAnyMethodA): Likewise.
7266 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7268 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7271 2000-02-15 Tom Tromey <tromey@cygnus.com>
7273 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7275 (init_cif): Added `rtype_p' argument.
7276 * include/java-interp.h (class _Jv_MethodBase): Added
7278 (class _Jv_InterpMethod): Removed args_raw_size.
7279 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7280 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7281 class pointer as well as the ordinary arguments.
7283 * jni.cc (mangled_name): Skip leading `(' in signature.
7285 * jni.cc (add_char): Added missing `else'.
7287 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7290 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7294 * java/lang/natRuntime.cc (_load): Include library path with
7297 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7300 * java/lang/natThread.cc (dumpStack): Removed.
7301 * java/lang/Thread.java (dumpStack): Implemented.
7303 2000-02-15 Tom Tromey <tromey@cygnus.com>
7305 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7306 with `lib' for loadLibrary. Fixes PR gcj/150.
7308 2000-02-14 Warren Levy <warrenl@cygnus.com>
7310 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7312 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7316 (modPow): Rewritten to not use the naive, slow, brute force approach.
7317 (isProbablePrime): Implemented.
7318 (testBit): Implemented.
7319 (flipBit): Implemented.
7320 (getLowestSetBit): Implemented.
7322 2000-02-16 Anthony Green <green@redhat.com>
7324 * configure.host: Use the same options for i386 and i486 as we do
7327 2000-02-12 Tom Tromey <tromey@cygnus.com>
7329 * java/io/File.java (createTempFile): Use low bits from counter,
7332 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7334 * THANKS: More thanks.
7336 2000-02-11 Tom Tromey <tromey@cygnus.com>
7338 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7339 astore instruction. From Hans Boehm.
7341 2000-02-11 Warren Levy <warrenl@cygnus.com>
7343 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7344 (BigInteger(String)): New constructor.
7345 (not): Rewritten using version from Kawa's BitOps class.
7346 (valueOf): New private methods from Kawa's BitOps class.
7353 (andNot): Implemented.
7354 (clearBit): Implemented.
7355 (setBit): Implemented.
7356 (bitCount): Implemented.
7357 (toByteArray): Implemented.
7359 2000-02-11 Tom Tromey <tromey@cygnus.com>
7361 * java/io/File.java (nextValue): Now synchronized.
7363 2000-02-10 Tom Tromey <tromey@cygnus.com>
7365 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7366 * java/io/FileDescriptor.java (EXCL): New static field.
7367 * java/io/File.java (tmpdir): New static field.
7368 (createTempFile): New method.
7369 (nextValue): New method.
7370 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7373 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7374 (jboolean): Declare as an attributed int, not a bool.
7375 (_Jv_func): Declare differently for C.
7377 * gnu/gcj/jni/natNativeThread.cc: New file.
7378 * gnu/gcj/jni/NativeThread.java: New file.
7379 * java/lang/Thread.java (data): Now a RawData.
7380 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7382 * Makefile.in: Rebuilt.
7383 * Makefile.am (java/lang/Thread.h): New target.
7384 (ordinary_java_source_files): Added NativeThread.java.
7385 (nat_source_files): Added natNativeThread.cc.
7386 * java/lang/natThread.cc: Include <jni.h>
7387 (struct natThread): Added `jni_env' field.
7388 (_Jv_GetCurrentJNIEnv): New function.
7389 (_Jv_SetCurrentJNIEnv): Likewise.
7390 (initialize_native): Initialize jni_env.
7392 * jni.cc (ThreadGroupClass): New define.
7393 (_Jv_JNI_InvokeFunctions): New structure.
7394 (JNI_GetCreatedJavaVMs): New function.
7395 (the_vm): New global.
7396 (JNI_GetDefaultJavaVMInitArgs): New function.
7397 Include NativeThread.h.
7398 (NativeThreadClass): New define.
7399 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7400 (_Jv_JNI_DestroyJavaVM): New function.
7401 (_Jv_JNI_AttachCurrentThread): New function.
7402 (_Jv_JNI_DetachCurrentThread): New function.
7403 (_Jv_JNI_GetEnv): New function.
7404 (JNI_CreateJavaVM): New function.
7405 (_Jv_JNI_GetJavaVM): New function.
7406 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7407 * include/jni.h (JavaVMAttachArgs): New structure.
7408 (JNI_EDETACHED): New define.
7409 (JNI_EVERSION): Likewise.
7410 (JavaVM): Define properly.
7411 (struct JNIInvokeInterface): New structure.
7412 (class _Jv_JavaVM): New class.
7413 (JNI_OnLoad, JNI_OnUnload): Declare.
7414 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7415 JNI_GetCreatedJavaVMs): Declare.
7416 (JavaVMInitArgs): New typedef.
7417 (JavaVMOption): Likewise.
7418 (JNI_ERR): New define.
7421 2000-02-10 Andrew Haley <aph@cygnus.com>
7423 * interpret.cc: Don't include fdlibm.h.
7424 Replace #if with #ifdef throughout.
7425 Declare extern __ieee754_fmod.
7426 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7428 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7429 Search class hierarchy for superclass vtable.
7431 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7432 off the end of a pointer list.
7434 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7438 2000-02-09 Tom Tromey <tromey@cygnus.com>
7440 * java/lang/natRuntime.cc (_load): Call add_library.
7441 (loadLibraryInternal): Likewise.
7443 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7444 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7445 (Output_iconv::finalize): Likewise.
7447 2000-02-08 Tom Tromey <tromey@cygnus.com>
7449 * java/util/Properties.java (setProperty): New method.
7450 (store): New method.
7452 2000-02-07 Tom Tromey <tromey@cygnus.com>
7454 * java/lang/Runtime.java (_load): Declare.
7455 (load, loadLibrary): Wrote in terms of _load.
7456 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7458 (loadLibrary): Likewise.
7460 (_load): New method.
7461 (loadLibrary, load): Removed.
7463 * jni.cc (ThrowableClass): New define.
7464 (_Jv_JNI_Throw): Check argument.
7465 (_Jv_JNI_ThrowNew): Likewise.
7466 (wrap_value): Don't wrap object if it is NULL.
7467 (_Jv_JNI_DefineClass): Use wrap_value.
7468 (_Jv_JNI_FindClass): Likewise.
7469 (_Jv_JNI_GetSuperclass): Likewise.
7470 (_Jv_JNI_ExceptionOccurred): Likewise.
7471 (_Jv_JNI_AllocObject): Likewise.
7472 (_Jv_JNI_GetObjectClass): Likewise.
7473 (_Jv_JNI_NewString): Likewise.
7474 (_Jv_JNI_NewStringUTF): Likewise.
7475 (_Jv_JNI_NewObjectArray): Likewise.
7476 (_Jv_JNI_GetObjectArrayElement): Likewise.
7477 (_Jv_JNI_NewPrimitiveArray): Likewise.
7478 (_Jv_JNI_ToReflectedField): Likewise.
7479 (_Jv_JNI_ToReflectedMethod): Likewise.
7480 (_Jv_JNI_AllocObject): Check argument.
7481 (_Jv_JNI_NewObjectV): Likewise.
7482 (_Jv_JNI_NewObject): Likewise.
7483 (_Jv_JNI_NewObjectA): Likewise.
7484 (_Jv_JNI_GetObjectClass): Likewise.
7485 (_Jv_JNI_GetField): Likewise.
7486 (_Jv_JNI_SetField): Likewise.
7488 * interpret.cc (PUSHL): Don't use expression statement.
7493 * jni.cc (add_char): Conditional on INTERPRETER.
7494 (mangled_name): Likewise.
7496 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7498 (class _Jv_JNIMethod): Likewise.
7500 2000-02-04 Warren Levy <warrenl@cygnus.com>
7502 * Makefile.am: Added MPN.java and BigInteger.java.
7503 * Makefile.in: Rebuilt.
7504 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7506 * java/math/BigInteger.java: New file. Based primarily on
7507 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7509 2000-02-04 Tom Tromey <tromey@cygnus.com>
7511 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7513 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7514 if the method is native.
7515 * resolve.cc (ncode): Don't handle native methods.
7516 (_Jv_JNIMethod::ncode): New method.
7517 (_Jv_PrepareClass): Handle native methods.
7518 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7519 Include AbstractMethodError.h.
7520 (add_char): New function.
7521 (mangled_name): Likewise.
7522 * include/java-interp.h (class _Jv_JNIMethod): New class.
7523 (class _Jv_MethodBase): New class.
7524 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7525 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7528 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7529 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7530 libraries): New globals.
7531 (add_library): New function.
7532 (_Jv_FindSymbolInExecutable): New function.
7534 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7537 2000-02-04 Andrew Haley <aph@cygnus.com>
7539 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7540 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7541 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7542 printStackTrace to printRawStackTrace.
7544 2000-02-03 Tom Tromey <tromey@cygnus.com>
7546 * java/util/Calendar.java (toString): New method.
7547 * java/util/SimpleTimeZone.java (clone): New method.
7548 (toString): New method.
7549 * java/util/TimeZone.java (clone): New method.
7550 * java/text/SimpleDateFormat.java (clone): New method.
7551 * java/text/NumberFormat.java (clone): New method.
7552 (equals): New method.
7553 * java/text/Format.java (clone): New method.
7554 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7556 (clone): New method.
7557 * java/text/DateFormat.java (clone): New method.
7558 * java/text/Collator.java (clone): New method.
7560 2000-02-03 Tom Tromey <tromey@cygnus.com>
7562 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7565 2000-02-01 Tom Tromey <tromey@cygnus.com>
7567 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7568 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7569 constructing the closure if the function is native.
7570 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7571 a template function, #if'd out, or static.
7572 Include <java-interp.h>.
7574 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7576 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7578 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7579 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7581 (wrap_value): New function.
7582 (_Jv_JNI_CallAnyMethodV): Use it.
7583 (_Jv_JNI_CallAnyMethodA): Likewise.
7584 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7585 (_Jv_JNI_GetStaticField): Likewise.
7587 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7588 (_Jv_JNI_GetStaticField): Likewise.
7590 2000-01-31 Tom Tromey <tromey@cygnus.com>
7592 * prims.cc (_Jv_MallocUnchecked): New function.
7593 (main_init): Call _Jv_JNI_Init.
7594 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7595 (_Jv_JNI_Init): Declare.
7596 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7598 (_Jv_JNI_NewGlobalRef): New function.
7599 (_Jv_JNI_DeleteGlobalRef): New function.
7600 (_Jv_JNI_DeleteLocalRef): New function.
7601 (_Jv_JNI_conversion_call): Initialize and clear local reference
7603 (_Jv_JNI_NewLocalRef): New function.
7604 (struct _Jv_JNI_LocalFrame): New structure.
7605 (_Jv_JNI_PushLocalFrame): New function.
7606 (_Jv_JNI_EnsureLocalCapacity): New function.
7607 (FRAME_SIZE): New define.
7608 (_Jv_JNI_GetStringChars): Mark string, not characters.
7609 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7610 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7611 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7613 (_Jv_JNI_DefineClass): Make return value a local ref.
7614 (_Jv_JNI_FindClass): Likewise.
7615 (_Jv_JNI_GetSuperclass): Likewise.
7616 (_Jv_JNI_ExceptionOccurred): Likewise.
7617 (_Jv_JNI_AllocObject): Likewise.
7618 (_Jv_JNI_GetObjectClass): Likewise.
7619 (_Jv_JNI_CallAnyMethodV): Likewise.
7620 (_Jv_JNI_NewString): Likewise.
7621 (_Jv_JNI_NewStringUTF): Likewise.
7622 (_Jv_JNI_NewObjectArray): Likewise.
7623 (_Jv_JNI_GetObjectArrayElement): Likewise.
7624 (_Jv_JNI_ToReflectedField): Likewise.
7625 (_Jv_JNI_ToReflectedMethod): Likewise.
7626 (_Jv_JNIFunctions): Updated table for new functions.
7627 (_Jv_JNI_Init): New function.
7628 (mark_for_gc): Wrote.
7629 (unmark_for_gc): Wrote.
7630 * include/jni.h (struct JNINativeInterface): Removed name from
7631 PopLocalFrame parameter.
7632 (class _Jv_JNIEnv): Added `locals' field.
7634 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7636 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7639 2000-01-30 Tom Tromey <tromey@cygnus.com>
7641 * include/config.h.in: Rebuilt.
7642 * acconfig.h (HAVE_ICONV): Define.
7643 * configure: Rebuilt.
7644 * configure.in: Check for `iconv' function.
7645 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7646 no specific encoder exists.
7647 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7648 no specific encoder exists.
7649 * Makefile.in: Rebuilt.
7650 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7652 (nat_source_files): Added natIconv.cc.
7653 * gnu/gcj/convert/natIconv.cc: New file.
7654 * gnu/gcj/convert/Input_iconv.java: New file.
7655 * gnu/gcj/convert/Output_iconv.java: New file.
7657 2000-01-28 Tom Tromey <tromey@cygnus.com>
7659 * Makefile.in: Rebuilt.
7660 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7662 2000-01-26 Tom Tromey <tromey@cygnus.com>
7664 * gcj/method.h (JvNumMethods): Moved from Class.h.
7665 (JvGetFirstMethod): Likewise.
7666 * java/lang/Class.h (Object): Updated decl of
7667 _Jv_JNI_ToReflectedField.
7668 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7669 * Makefile.in: Rebuilt.
7670 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7671 argument of _Jv_JNI_ToReflectedField.
7672 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7674 (java/lang/reflect/Method.h): Likewise.
7675 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7677 (jweak): New typedef.
7678 (struct JNINativeInterface): Correctly declare remaining entries.
7679 * jni.cc: Include Class.h, ClassLoader.h.
7680 (_Jv_JNI_FindClass): New function.
7681 (_Jv_JNI_DefineClass): New function.
7682 (_Jv_JNI_conversion_call): New function.
7683 (_Jv_JNI_FindClass): Use current class loader to find class.
7684 (_Jv_JNI_ExceptionCheck): New function.
7685 (_Jv_JNI_FromReflectedField): Now static.
7686 (MethodClass): New define.
7687 (_Jv_JNI_FromReflectedMethod): New function.
7688 (_Jv_JNI_ToReflectedMethod): Likewise.
7690 (_Jv_JNI_IsAssignableFrom): Renamed.
7691 (_Jv_JNI_GetStringRegion): New function.
7692 Include StringIndexOutOfBoundsException.h.
7693 (_Jv_JNI_GetStringUTFRegion): New function.
7694 (_Jv_JNIFunctions): Updated for new functions.
7695 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7696 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7697 (_Jv_JNI_GetStringCritical): New function.
7698 (_Jv_JNI_ReleaseStringCritical): Likewise.
7699 (get_throwable): Removed.
7700 (GCJ_JV_JNIENV_FRIEND): Removed.
7701 (__GCJ_JNI_IMPL__): Define.
7704 * resolve.cc (get_ffi_type_from_signature): Handle case where
7707 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7709 * interpret.cc (run): Don't call println.
7710 Don't include PrintStream.h.
7712 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7713 nameIndex. Use "jint" as type for boffset.
7714 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7716 (Class): Likewise. Also changed type of method_count,
7717 vtable_method_count, size_in_bytes, field_count,
7718 static_field_count, interface_count.
7719 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7722 2000-01-21 Tom Tromey <tromey@cygnus.com>
7724 * java/lang/reflect/natConstructor.cc (newInstance): Use
7726 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7727 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7728 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7731 (invoke): Use _Jv_CallAnyMethodA.
7733 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7734 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7736 (struct _Jv_Method): Added getNextMethod method.
7737 (JvNumMethods): New function.
7738 (JvGetFirstMethod): Likewise.
7739 * gcj/field.h (JvGetFirstStaticField): New function.
7740 (JvNumStaticFields): Likewise.
7741 (getNextField): Renamed from getNextInstanceField.
7742 (struct _Jv_Field): New method getClass.
7743 * jni.cc: Wrote many new functions.
7744 * include/jni.h (JNI_TRUE): Define.
7745 (JNI_FALSE): Likewise.
7746 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7747 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7748 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7749 (jfieldID, jmethodID): Likewise.
7750 (JNI_COMMIT, JNI_ABORT): New defines.
7751 (JNINativeMethod): New struct.
7752 (struct JNINativeInterface): Correctly declared more entries.
7753 (class _Jv_JNIEnv): Added `ex' member.
7754 (JNI_VERSION_1_1): New define.
7755 (JNI_VERSION_1_2): Likewise.
7757 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7758 getNextInstanceField.
7760 2000-01-20 Tom Tromey <tromey@cygnus.com>
7762 * resolve.cc (StringClass): Removed.
7763 * defineclass.cc (StringClass): Removed.
7765 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7769 2000-01-19 Tom Tromey <tromey@cygnus.com>
7771 * interpret.cc (PC_REGISTER_ASM): Removed.
7773 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7774 From Bryce McKinlay.
7776 * All files: Updated copyright to reflect Cygnus purchase.
7778 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7780 * configure: Rebuilt.
7781 * configure.in: Recognize --disable-interpreter.
7783 2000-01-18 Andrew Haley <aph@cygnus.com>
7785 * name-finder.cc (lookup): Check for dladdr function.
7786 acconfig.h (HAVE_DLADDR): Add.
7787 configure.in: Check for HAVE_DLADDR
7789 include/config.h.in: Rebuilt.
7791 2000-01-17 Andrew Haley <aph@cygnus.com>
7793 * prims.cc (_Jv_RunMain): Set the name of this executable.
7795 2000-01-17 Tom Tromey <tromey@cygnus.com>
7797 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7798 when backtrace can't be computed.
7800 * configure: Rebuilt.
7801 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7803 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7804 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7805 (_Jv_FindClassInCache): Likewise.
7806 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7807 (findSystemClass): Try to load class from compiled module.
7809 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7810 (loadLibrary): Likewise.
7811 (lt_preloaded_symbols): Define.
7812 (loadLibraryInternal): New method.
7813 * include/config.h.in: Rebuilt.
7814 * acconfig.h (USE_LTDL): Added.
7815 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7816 (INCLUDES): Added $(INCLTDL).
7817 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7818 (libgcj_la_LIBADD): Likewise.
7819 * aclocal.m4, configure: Rebuilt.
7820 * configure.in: Added libltdl support.
7822 2000-01-15 Tom Tromey <tromey@cygnus.com>
7824 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7826 2000-01-14 Andrew Haley <aph@cygnus.com>
7828 * java/lang/natThrowable.cc: New file.
7830 * java/lang/Throwable.java (fillInStackTrace): Make native.
7831 (printStackTrace): Call native method to do this.
7832 (Throwable): Call fillInStackTrace.
7833 (stackTrace): New variable.
7835 * include/jvm.h: Add _Jv_ThisExecutable functions.
7837 * prims.cc: (_Jv_execName): New variable.
7838 (catch_segv): Call fillInStackTrace.
7840 (_Jv_ThisExecutable): New functions.
7841 (JvRunMain): Set the name of this executable.
7843 * Makefile.am: Add java/lang/natThrowable.cc.
7845 * Makefile.in: Rebuilt.
7847 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7849 * configure.in: Force link with __frame_state_for in
7850 FORCELIBGCCSPEC. Add new checks for backtrace.
7851 * include/config.h.in: Rebuilt.
7853 * name-finder.cc: New file.
7854 * include/name-finder.h: New file.
7856 2000-01-16 Anthony Green <green@cygnus.com>
7858 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7861 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7863 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7865 2000-01-13 Tom Tromey <tromey@cygnus.com>
7867 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7868 not system loader, as initiating loader.
7870 2000-01-11 Tom Tromey <tromey@cygnus.com>
7872 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7873 HP/UX. From David Scott Urban.
7875 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7877 * java/lang/natMath.cc (pow): Cast args to `double', not
7880 (IEEEremainder): Likewise.
7881 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7882 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7884 2000-01-09 Anthony Green <green@cygnus.com>
7886 * java/lang/natString.cc (init): Test for overflow condition
7887 during out of bounds check.
7888 (getChars): Throw StringIndexOutOfBoundsException, not
7889 ArrayIndexOutOfBoundsException.
7891 (regionMatches): Obey case option during string comparison.
7893 * configure.host (ligcj_interpreter): New variable. Enable
7894 interpreter by default on IA-32.
7895 * configure.in: Examine libgcj_interpreter.
7896 * configure: Rebuilt.
7898 2000-01-07 Tom Tromey <tromey@cygnus.com>
7900 * mauve-libgcj: Don't disable ClassTest.
7902 * java/lang/natClass.cc (getClasses): Wrote.
7904 2000-01-06 Tom Tromey <tromey@cygnus.com>
7906 * java/lang/natClass.cc (_getConstructors): Correctly check
7907 whether method name is the init name.
7908 (getMethod): Look at accflags on method in `klass', not `this'.
7910 2000-01-05 Tom Tromey <tromey@cygnus.com>
7912 * java/lang/natClass.cc (getMethod): Compute offset relative to
7913 `klass's methods table, not `this's table.
7915 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7916 In unwrapping/widening case, check whether `k' is null, not
7917 whether it is primitive. Initialize `num' from `argelts', not
7918 `paramelts'. Correct create and pass arguments to ffi_call.
7919 Don't let presence of `this' argument affect index used to look in
7921 (COPY): Set appropriate element in `values' vector.
7923 * java/lang/natClass.cc: Include <gcj/method.h>.
7925 * java/lang/Class.h (_getMethods): Correctly declare as private,
7928 * java/lang/Class.h (_getMethods): Declare.
7929 * java/lang/Class.java (_getMethods): Declare.
7930 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7931 (getDeclaredClasses): Always return empty array.
7932 (_getMethods): New method.
7933 (getMethods): Wrote.
7934 (getDeclaredMethod): Return `rmethod'.
7935 (finit_name): New global.
7936 (getDeclaredMethods): Check for finit_name.
7937 (_getMethods): Likewise.
7938 (getMethod): Only return public methods.
7940 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7941 jboolean and select correct ffi type on that basis.
7942 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7943 Constructor call always has `void' return type.
7945 2000-01-04 Tom Tromey <tromey@cygnus.com>
7947 * java/lang/Class.h (getSignature): Updated.
7948 * java/lang/Class.java (getSignature): Updated.
7949 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7951 (getConstructor): Ensure constructor is public.
7952 (_getConstructors): Check for public-ness of constructor when
7953 `declared' is false, not when it is true.
7955 2000-01-04 Warren Levy <warrenl@cygnus.com>
7957 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7959 (receive): Set the sender's address in the DatagramPacket.
7961 2000-01-04 Tom Tromey <tromey@cygnus.com>
7963 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7964 declaring class as return_type argument to
7965 _Jv_CallNonvirtualMethodA.
7966 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7967 constructor case, create object and use it as `this' argument.
7968 * java/lang/Class.h (_getConstructors): Declare.
7969 (_getFields): Declare.
7970 * java/lang/Class.java (getConstructors): Wrote.
7971 (_getConstructors): New native method.
7972 (getDeclaredConstructors): Wrote.
7973 (_getFields): Declare new native method.
7974 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7976 (getMethod): Work correctly when class is primitive.
7977 (getDeclaredMethods): Likewise. Compute offset using `method',
7979 (getDeclaredMethod): Likewise.
7980 (getConstructor): Wrote.
7981 (ConstructorClass): New define.
7982 (getDeclaredConstructor): Wrote.
7983 (_getConstructors): New method.
7984 (_getFields): New method.
7987 * Makefile.in: Rebuilt.
7988 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7990 * prims.cc: Remove `#pragma implementation'.
7991 * gcj/array.h: Remove `#pragma interface'.
7993 * prims.cc (_Jv_equaln): New function.
7994 * java/lang/Class.java (getSignature): Declare.
7995 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7996 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7998 (getSignature): New method.
7999 (getDeclaredMethod): Wrote.
8001 Include StringBuffer.h.
8002 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8003 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8005 (getSignature): Declare.
8006 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8007 (_Jv_equaln): Declare.
8008 (_Jv_CallNonvirtualMethodA): Declare.
8009 * Makefile.in: Rebuilt.
8010 * Makefile.am (nat_source_files): Added natConstructor.cc.
8011 (java/lang/reflect/Constructor.h): New target.
8012 * java/lang/reflect/natConstructor.cc: New file.
8013 * java/lang/reflect/Constructor.java (newInstance): Now native.
8014 (declaringClass): Renamed from decl_class.
8015 (offset): Renamed from index.
8016 (getType): New native method.
8017 (getModifiers): Now native.
8018 (getParameterTypes): Call getType if required.
8019 (hashCode): Include hash code from declaring class.
8020 (modifiers): Removed.
8021 (toString): Call getType if required.
8022 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8023 * java/lang/reflect/natMethod.cc (hack_call): New method.
8024 Removed `#if 0' around FFI code.
8025 Include <gnu/gcj/RawData.h>.
8026 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8027 IllegalArgumentException when argument object and class disagree.
8028 (_Jv_GetTypesFromSignature): New function.
8030 (ObjectClass): New define.
8031 (_Jv_CallNonvirtualMethodA): New function.
8032 * java/lang/reflect/Method.java (hack_trampoline): New method.
8033 (hack_call): New native method.