1 2001-10-06 Mark Wielaard <mark@klomp.org>
3 * java/io/BufferedInputStream.java: Merge with Classpath
5 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
7 * defineclass.cc, java/awt/image/ColorModel.java,
8 java/awt/image/SampleModel.java, java/lang/Package.java,
9 java/security/cert/X509Extension.java: Fix spelling errors of
10 "separate" as "seperate", and corresponding spelling errors of
13 2001-10-05 Tom Tromey <tromey@redhat.com>
15 * java/text/DecimalFormat.java (format): Use localized minus sign
16 when generating exponent; never use `+'. Use floor to compute
19 2001-10-05 Mark Wielaard <mark@klomp.org>
21 * java/util/zip/Adler32.java: Merge with Classpath
22 * java/util/zip/CRC32.java: Ditto
23 * java/util/zip/Checksum.java: Ditto
24 * java/util/zip/DataFormatException.java: Ditto
25 * java/util/zip/ZipException.java: Ditto
27 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
29 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
31 2001-10-04 Mark Wielaard <mark@klomp.org>
33 * java/lang/reflect/Modifier.java: Merge with Classpath
35 2001-10-03 Mark Wielaard <mark@klomp.org>
37 * java/io/SequenceInputStream.java: Merge with Classpath
38 * java/io/StringBufferInputStream.java: Ditto
39 * java/util/Collections.java: Remerge with Classpath
41 2001-10-03 Tom Tromey <tromey@redhat.com>
43 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
46 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
48 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
50 2001-10-02 Mark Wielaard <mark@klomp.org>
52 * Makefile.am (core_java_source_files): add InheritableThreadLocal
53 * Makefile.in: regenerate
54 * gcj/javaprims.h: ditto
55 * java/lang/InheritableThreadLocal.java: new class from Classpath
56 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
57 call InheritableThreadLocal.newChildThread()
59 2001-10-01 Mark Wielaard <mark@klomp.org>
61 * Makefile.am: Add new classes
62 (core_java_source_files): CharSequence
63 (ordinary_java_source_files): Authenticator, PasswordAuthentication
64 * Makefile.in: regenerate
65 * gcj/javaprims.h: ditto
66 * java/lang/CharSequence: new class from Classpath
67 * java/lang/String.java: implements CharSequence
68 (subSequence (int,int)): new method
69 * java/lang/SubString.java: implements CharSequence
70 (subSequence (int,int)): new method
71 remerge comments with Classpath
72 * java/net/Authenticator.java: new class from Classpath
73 * java/net/PasswordAuthentication.java: ditto
75 2001-10-01 Tom Tromey <tromey@redhat.com>
77 * gcj/javaprims.h: Rebuilt class list.
78 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
79 (_Jv_GCCanReclaimSoftReference): New function.
80 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
81 (_Jv_GCCanReclaimSoftReference): Declare.
82 * java/lang/ref/Reference.java (referent): Now a RawData.
83 (create): Renamed from `created'. Added object argument.
84 (Reference): Don't initialize `referent' here.
85 * Makefile.in: Rebuilt.
86 * Makefile.am (nat_source_files): Added new file.
87 * java/lang/ref/natReference.cc: New file.
89 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
90 (_Jv_NewMultiArray): Use it. Check each array dimension.
91 (_Jv_NewMultiArray): Likewise.
92 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
94 * java/lang/reflect/natArray.cc (newInstance): Throw
95 IllegalArgumentException if there are no dimensions.
97 2001-10-01 Mark Wielaard <mark@klomp.org>
99 * java/io/FileWriter.java: Merge with Classpath.
100 * java/io/FilterInputStream.java: Ditto.
101 (mark): no longer synchronized
103 * java/io/FilterOutputStream.java: Merge with Classpath.
104 * java/io/FilterReader.java: Ditto.
105 (mark): no longer synchronized
107 * java/io/FilterWriter.java: Merge with Classpath.
108 * java/io/Writer.java: Ditto.
109 * java/lang/Compiler.java: Ditto.
110 * java/lang/Process.java: Ditto.
111 * java/lang/Void.java: Ditto.
112 * java/net/ContentHandler.java: Ditto.
113 * java/net/DatagramPacket.java: Ditto.
114 * java/net/MulticastSocket.java: Merge comments with Classpath.
116 2001-09-30 Mark Wielaard <mark@klomp.org>
118 * java/io/DataInput.java: Merge with Classpath.
119 * java/io/DataOutput.java: Idem.
120 * java/io/FilenameFilter.java: Idem.
121 * java/io/Serializable.java: Idem.
122 * java/lang/Cloneable.java: Idem.
123 * java/lang/Comparable.java: Idem.
124 * java/lang/Runnable.java: Idem.
125 * java/lang/reflect/Member.java: Idem.
126 * java/net/ContentHandlerFactory.java: Idem.
127 * java/net/FileNameMap.java: Idem.
128 * java/net/SocketImplFactory.java: Idem.
129 * java/net/SocketOptions.java: Idem.
130 * java/net/URLStreamHandlerFactory.java: Idem.
132 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
134 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
135 an uninitialized target class.
137 * gnu/gcj/protocol/file/Connection.java (connect): Throw
138 FileNotFoundException if appropriate.
139 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
140 IOException if we got a file: url with a hostname. Comment out protocol
141 switch to ftp for now.
142 * java/net/URL.java (URL): Include protocol name in exception message
143 when handler can't be found.
145 2001-09-28 Per Bothner <per@bothner.com>
147 * gnu/gcj/runtime/SharedLibLoader.java: New class.
148 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
149 * Makefile.am: Update accordingly.
150 * configure.in: Add AC_CHECK_LIB for dlopen.
151 * include/config.h.in: Add HAVE_DLOPEN.
153 2001-09-29 Jeff Sturm <jsturm@one-point.com>
155 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
156 * Makefile.in: Rebuilt.
158 2001-09-27 Tom Tromey <tromey@redhat.com>
160 * java/util/IdentityHashMap.java (containsKey): Use getHash.
164 (getHash): New method.
165 (tombstone, emptyslot): Now static final.
166 (put): Correctly determine when to rehash, and correctly rehash.
167 (containsKey, remove): Test against table length with `>='.
169 2001-09-26 Tom Tromey <tromey@redhat.com>
171 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
173 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
174 Re-merged with Classpath.
176 * java/io/DataInputStream.java (readChar): Use readFully.
178 (readLong): Likewise.
179 (readShort): Likewise.
180 (readUnsignedShort): Likewise.
182 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
184 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
185 IllegalThreadStateException if process hasn't exited yet.
186 * java/lang/natPosixProcess.cc (exitValue): Removed.
187 (waitFor): Only check thread interrupted status if waitpid() returned
188 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
191 * java/security/cert/X509Extension.java: Merge from classpath.
193 2001-09-22 Anthony Green <green@redhat.com>
195 * java/security/DummyKeyPairGenerator.java (initialize): New
196 method (with AlgorithmParameterSpec argument).
198 2001-09-22 Anthony Green <green@redhat.com>
200 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
202 * gnu/java/security/provider/SHA1PRNG.java: Extend from
204 (engineNextBytes): Fix order of memory copies.
206 2001-09-21 Richard Henderson <rth@redhat.com>
208 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
209 add get_method, set_method, vtable_elt_size, new_vtable.
210 (_Jv_ArrayVTable): Derive from _Jv_VTable.
211 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
212 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
213 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
215 2001-09-21 Richard Henderson <rth@redhat.com>
217 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
218 * java/lang/mprec.c (lo0bits): Fix paren typo.
220 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
222 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
223 blocking IO via pthread_kill().
224 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
225 interrupted status flag only if ::write returned an error.
226 (write (jbyteArray, jint, jint): Likewise.
227 (read (jint)): Likewise.
228 (read (jbyteArray, jint, jint): Likewise.
230 2001-09-19 Anthony Green <green@redhat.com>
232 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
235 2001-09-17 Andreas Jaeger <aj@suse.de>
237 * jni.cc (array_from_valist): Use promoted types for va_arg.
239 2001-09-16 Anthony Green <green@redhat.com>
241 * gnu/java/locale/LocaleInformation.java: Extend
242 LocaleInformation_en_US, not LocaleInformation_en.
244 2001-09-16 Anthony Green <green@redhat.com>
246 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
248 2001-09-14 Tom Tromey <tromey@redhat.com>
250 * java/util/TimeZone.java: Updated list of timezones from
253 * java/lang/CloneNotSupportedException.java: Re-merged with
256 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
258 * java/io/File.java (normalizePath): Use equals() not '==' for string
261 * java/util/Hashtable.java (Enumerator): Ensure that if
262 hasMoreElements() returns true, nextElement() will always return
263 something even if the table has been modified.
265 2001-09-12 Tom Tromey <tromey@redhat.com>
267 * Makefile.in: Rebuilt.
268 * Makefile.am (class-check): New target.
270 2001-09-11 Tom Tromey <tromey@redhat.com>
272 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
274 2001-09-10 Tom Tromey <tromey@redhat.com>
276 * java/util/Properties.java (load): Correctly read \u sequences.
277 Report from Anthony Green.
279 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
281 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
282 and $(MULTIBUILDTOP).
283 * configure: Re-generate.
285 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
287 * include/jvm.h (_Jv_AllocRawObj): New prototype.
288 * boehm.cc (_Jv_AllocRawObj): Implement.
289 * nogc.cc (_Jv_AllocRawObj): Likewise.
290 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
292 2001-09-06 Anthony Green <green@redhat.com>
294 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
295 redundant method calls.
296 (emptyLocale): New private member.
297 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
300 2001-09-06 Tom Tromey <tromey@redhat.com>
302 * java/text/RuleBasedCollator.java (clone): Rewrote.
303 (RuleBasedCollator(RuleBasedCollator)): Removed.
304 * java/text/MessageFormat.java: Re-merged from Classpath.
305 * java/text/DecimalFormat.java: Re-merged from Classpath.
307 2001-09-06 Anthony Green <green@redhat.com>
309 * include/jvm.h: Declare _Jv_RegisterResource.
310 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
311 gnu/gcj/protocol/core/Connection.java,
312 gnu/gcj/protocol/core/Handler.java,
313 gnu/gcj/protocol/core/CoreInputStream.java,
314 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
315 * java/net/URL.java (setURLStreamHandler): Use
316 gnu.gcj.protocol.core.Handler for the core protocol.
317 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
318 end of java.class.path.
319 * Makefile.am (ordinary_java_source_files): Add new java files.
320 (nat_source_files): Add new native code files.
321 * Makefile.in: Rebuilt.
323 2001-09-05 Tom Tromey <tromey@redhat.com>
325 * java/util/Properties.java: Re-merged from Classpath.
327 From Eric Blake, via Classpath:
328 * java/lang/String.java (CaseInsensitiveComparator): New class.
329 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
331 * java/util/Date.java: Re-merged with Classpath.
333 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
335 2001-09-05 Corey Minyard <minyard@acm.org>
336 Tom Tromey <tromey@redhat.com>
338 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
339 (_Jv_RegisterClassHookDefault): Throw error if a class is
342 2001-09-05 Tom Tromey <tromey@redhat.com>
344 * java/lang/natSystem.cc (init_properties): Default locale is
347 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
349 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
350 here, DecimalFormat.applyPattern() does not throw it.
352 2001-09-04 Tom Tromey <tromey@redhat.com>
354 * java/util/AbstractMap.java: Re-merged with Classpath.
355 * java/util/IdentityHashMap.java: Re-merged with Classpath.
357 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
358 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
359 gnu/gcj/text/LocaleData_en_US.java: Removed.
360 * java/text/DateFormatSymbols.java (clone): Use Classpath
362 (equals): Simplified.
363 (DateFormatSymbols): Look in gnu.java.locale for information.
364 (DateFormatSymbols(DateFormatSymbols)): Removed.
365 (safeGetResource): Removed.
366 (DateFormatSymbols): Throws MissingResourceException.
367 (ampmsDefault, erasDefault, localPatternCharsDefault,
368 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
369 weekdaysDefault, zoneStringsDefault): Removed.
370 * java/text/Collator.java (getAvailableLocales): Use modified
371 Classpath implementation.
372 (getInstance): Look in gnu.java.locale for information.
374 * java/text/MessageFormat.java: Reindented.
376 * java/text/FieldPosition.java: Merged with Classpath.
377 * java/text/ParsePosition.java: Merged with Classpath.
378 * java/text/Format.java: Merged with Classpath.
379 * java/text/StringCharacterIterator.java
380 (StringCharacterIterator(StringCharacterIterator,int,int)): New
381 constructor from Classpath.
382 * java/text/Annotation.java,
383 java/text/AttributedCharacterIterator.java,
384 java/text/AttributedString.java,
385 java/text/AttributedStringIterator.java: New from Classpath.
386 * java/text/CharacterIterator.java: Copied from Classpath.
387 * java/text/ChoiceFormat.java: Reindented.
389 * gnu/java/text/BaseBreakIterator.java,
390 gnu/java/text/CharacterBreakIterator.java,
391 gnu/java/text/LineBreakIterator.java,
392 gnu/java/text/LocaleData_en.java,
393 gnu/java/text/LocaleData_en_US.java,
394 gnu/java/text/SentenceBreakIterator.java,
395 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
396 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
398 * java/text/BreakIterator.java (getAvailableLocales): Use
399 Classpath implementation.
400 (getInstance): Look in gnu.java.locale for information.
401 (getCharacterInstance, getLineInstance, getSentenceInstance,
402 getWordInstance): Look in gnu.java.text for implementations.
403 * java/text/DecimalFormatSymbols.java: Reindented
404 (clone): Use Classpath implementation.
405 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
406 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
408 * java/text/DateFormat.java: Merged with Classpath.
409 (getAvailableLocales): Use Classpath implementation.
410 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
411 (computeInstance): Look in gnu.java.locale for information.
412 * java/text/NumberFormat.java: Reindented.
413 (computeInstance): Look in gnu.java.locale for information.
414 (getAvailableLocales): Use implementation from Classpath.
415 (setMaximumIntegerDigits): Likewise.
416 (setMinimumIntegerDigits): Likewise.
417 (setMaximumFractionDigits): Likewise.
419 * java/text/DecimalFormat.java: Reindented.
420 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
421 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
422 * Makefile.in: Rebuilt.
423 * Makefile.am (ordinary_java_source_files): Added all new files.
424 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
425 * java/security/spec/AlgorithmParameterSpec.java,
426 java/security/spec/KeySpec.java: Re-merged with Classpath.
428 Fix for PR libgcj/4213:
429 * Makefile.am (ordinary_java_source_files): Added new file.
430 * gnu/gcj/text/LocaleData.java: New file.
432 2001-09-03 Tom Tromey <tromey@redhat.com>
434 * java/lang/reflect/natField.cc (set): Allow for case when the
435 value is null. Fixes PR libgcj/4208.
437 * gcj/javaprims.h: Regenerated class list.
438 * java/lang/IllegalThreadStateException.java,
439 java/lang/InstantiationException.java: Minor comment tweaks to
440 satisfy libgcj `classes.pl' script.
442 2001-09-01 Tom Tromey <tromey@redhat.com>
444 * Makefile.in: Rebuilt.
445 * Makefile.am (core_java_source_files): Added
446 UnsupportedClassVersionError.
447 * java/lang/UnsupportedClassVersionError.java: New file from
450 * java/io/CharConversionException.java, java/io/EOFException.java,
451 java/io/FileNotFoundException.java, java/io/IOException.java,
452 java/io/InterruptedIOException.java,
453 java/io/ObjectStreamException.java,
454 java/io/OptionalDataException.java,
455 java/io/StreamCorruptedException.java,
456 java/io/SyncFailedException.java,
457 java/io/UTFDataFormatException.java,
458 java/io/UnsupportedEncodingException.java,
459 java/lang/AbstractMethodError.java,
460 java/lang/ArithmeticException.java,
461 java/lang/ArrayIndexOutOfBoundsException.java,
462 java/lang/ArrayStoreException.java,
463 java/lang/ClassCastException.java,
464 java/lang/ClassCircularityError.java,
465 java/lang/ClassFormatError.java,
466 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
467 java/lang/Exception.java,
468 java/lang/ExceptionInInitializerError.java,
469 java/lang/IllegalAccessError.java,
470 java/lang/IllegalAccessException.java,
471 java/lang/IllegalArgumentException.java,
472 java/lang/IllegalMonitorStateException.java,
473 java/lang/IllegalStateException.java,
474 java/lang/IllegalThreadStateException.java,
475 java/lang/IncompatibleClassChangeError.java,
476 java/lang/IndexOutOfBoundsException.java,
477 java/lang/InstantiationError.java,
478 java/lang/InstantiationException.java,
479 java/lang/InternalError.java, java/lang/InterruptedException.java,
480 java/lang/LinkageError.java,
481 java/lang/NegativeArraySizeException.java,
482 java/lang/NoClassDefFoundError.java,
483 java/lang/NoSuchFieldError.java,
484 java/lang/NoSuchFieldException.java,
485 java/lang/NoSuchMethodError.java,
486 java/lang/NoSuchMethodException.java,
487 java/lang/NullPointerException.java,
488 java/lang/NumberFormatException.java,
489 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
490 java/lang/SecurityException.java,
491 java/lang/StackOverflowError.java,
492 java/lang/StringIndexOutOfBoundsException.java,
493 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
494 java/lang/UnsatisfiedLinkError.java,
495 java/lang/UnsupportedOperationException.java,
496 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
497 java/lang/reflect/InvocationTargetException.java,
498 java/net/BindException.java, java/net/ConnectException.java,
499 java/net/MalformedURLException.java,
500 java/net/NoRouteToHostException.java,
501 java/net/ProtocolException.java, java/net/SocketException.java,
502 java/net/UnknownHostException.java,
503 java/net/UnknownServiceException.java,
504 java/text/ParseException.java: Copied from Classpath, thanks to
505 Mark Wielaard who did the merge.
507 * java/lang/System.java (getProperty): Use single argument form of
508 SecurityManager.checkPropertyAccess.
509 * Makefile.in: Rebuilt.
510 * Makefile.am (core_java_source_files): Added VMSecurityManager.
511 * java/lang/VMSecurityManager.java: New file.
512 * java/lang/SecurityManager.java: Merged with Classpath.
514 2001-08-31 Per Bothner <per@bothner.com>
516 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
517 (_Jv_RegisterClassHookDefault): Likewise.
518 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
519 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
520 (_Jv_RegisterClassHookDefault): New.function.
521 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
523 * java/lang/ClassLoader.java (system): Remove static field.
524 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
525 directly instead of using it to set the system field.
526 (loadClass): Use VMClassLoader.instance instead of system field.
527 (findSystemClass): Similar.
528 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
529 than ClassLoader::system which no longer exists.
530 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
532 2001-08-31 Tom Tromey <tromey@redhat.com>
534 * java/io/BufferedReader.java, java/io/ObjectInput.java,
535 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
536 Re-merged with Classpath.
538 Re-merge with Classpath:
539 * java/util/Comparator (equals): Added.
540 * java/io/PipedWriter.java (write): Changed argument to `int'.
542 * java/io/FileDescriptor.java (FileDescriptor()): New
544 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
546 * Makefile.in: Rebuilt.
547 * Makefile.am (ordinary_java_source_files): Removed
548 EnumerationChain, added DoubleEnumeration.
549 (nat_source_files): Added natResourceBundle.cc.
550 * java/util/natResourceBundle.cc: New file.
551 * gnu/java/util/DoubleEnumeration.java: New file.
552 * gnu/gcj/util/EnumerationChain.java: Removed.
553 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
554 * java/util/ResourceBundle.java: Merged with Classpath.
555 * java/util/StringTokenizer.java: Merged with Classpath.
556 * java/util/Locale.java: Merged with Classpath.
557 * java/util/Random.java: Merged with Classpath.
558 * java/util/PropertyResourceBundle.java: Merged with Classpath.
559 * java/util/ListResourceBundle.java: Merged with Classpath.
560 * java/util/ConcurrentModificationException.java: Re-merged with
562 * java/util/EmptyStackException.java: Likewise.
563 * java/util/MissingResourceException.java: Likewise.
564 * java/util/NoSuchElementException.java: Likewise.
565 * java/util/TooManyListenersException.java: Likewise.
567 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
568 * java/io/OptionalDataException.java: Merged with Classpath.
570 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
572 * exception.cc (PERSONALITY_FUNCTION): Simplify
575 2001-08-31 Tom Tromey <tromey@redhat.com>
577 * java/io/ByteArrayInputStream.java: Merged with Classpath.
579 2001-08-30 Tom Tromey <tromey@redhat.com>
581 * java/io/BufferedReader.java: Re-merged with Classpath.
583 2001-08-28 Per Bothner <per@bothner.com>
585 * java/math/BigInteger.java (init(int,Random)): New method.
586 Move body of constructor <init>(int,Random)) here.
587 Re-write it to avoid constructing unneeded temporaries.
588 (<init>(int,int,Random)): Use new init method to avoid constructing
589 extra temporary BigIntegers.
591 2001-08-27 Tom Tromey <tromey@redhat.com>
593 * java/rmi/activation/Activatable.java,
594 java/rmi/activation/ActivateFailedException.java,
595 java/rmi/activation/ActivationDesc.java,
596 java/rmi/activation/ActivationException.java,
597 java/rmi/activation/ActivationGroup.java,
598 java/rmi/activation/ActivationGroupDesc.java,
599 java/rmi/activation/ActivationGroupID.java,
600 java/rmi/activation/ActivationID.java,
601 java/rmi/activation/ActivationInstantiator.java,
602 java/rmi/activation/ActivationMonitor.java,
603 java/rmi/activation/ActivationSystem.java,
604 java/rmi/activation/Activator.java,
605 java/rmi/activation/UnknownGroupException.java,
606 java/rmi/activation/UnknownObjectException.java,
607 java/rmi/AccessException.java,
608 java/rmi/AlreadyBoundException.java,
609 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
610 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
611 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
612 java/rmi/NotBoundException.java,
613 java/rmi/RMISecurityException.java,
614 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
615 java/rmi/RemoteException.java, java/rmi/ServerError.java,
616 java/rmi/ServerException.java,
617 java/rmi/ServerRuntimeException.java,
618 java/rmi/StubNotFoundException.java,
619 java/rmi/UnexpectedException.java,
620 java/rmi/UnknownHostException.java,
621 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
622 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
623 java/rmi/registry/LocateRegistry.java,
624 java/rmi/registry/Registry.java,
625 java/rmi/registry/RegistryHandler.java,
626 java/rmi/server/ExportException.java,
627 java/rmi/server/LoaderHandler.java,
628 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
629 java/rmi/server/Operation.java,
630 java/rmi/server/RMIClassLoader.java,
631 java/rmi/server/RMIClientSocketFactory.java,
632 java/rmi/server/RMIFailureHandler.java,
633 java/rmi/server/RMIServerSocketFactory.java,
634 java/rmi/server/RMISocketFactory.java,
635 java/rmi/server/RemoteCall.java,
636 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
637 java/rmi/server/RemoteServer.java,
638 java/rmi/server/RemoteStub.java,
639 java/rmi/server/ServerCloneException.java,
640 java/rmi/server/ServerNotActiveException.java,
641 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
642 java/rmi/server/SkeletonMismatchException.java,
643 java/rmi/server/SkeletonNotFoundException.java,
644 java/rmi/server/SocketSecurityException.java,
645 java/rmi/server/UID.java,
646 java/rmi/server/UnicastRemoteObject.java,
647 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
648 gnu/java/rmi/dgc/DGCImpl_Skel.java,
649 gnu/java/rmi/dgc/DGCImpl_Stub.java,
650 gnu/java/rmi/registry/RegistryImpl.java,
651 gnu/java/rmi/registry/RegistryImpl_Skel.java,
652 gnu/java/rmi/registry/RegistryImpl_Stub.java,
653 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
654 gnu/java/rmi/server/ProtocolConstants.java,
655 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
656 gnu/java/rmi/server/RMIHashes.java,
657 gnu/java/rmi/server/RMIObjectInputStream.java,
658 gnu/java/rmi/server/RMIObjectOutputStream.java,
659 gnu/java/rmi/server/UnicastConnection.java,
660 gnu/java/rmi/server/UnicastConnectionManager.java,
661 gnu/java/rmi/server/UnicastRef.java,
662 gnu/java/rmi/server/UnicastRemoteCall.java,
663 gnu/java/rmi/server/UnicastRemoteStub.java,
664 gnu/java/rmi/server/UnicastServer.java,
665 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
666 Kaffe. Relabelled classes to fit into Classpath tree.
667 * Makefile.in: Rebuilt.
668 * Makefile.am (rmi_java_source_files): New macro.
669 (ordinary_java_source_files): Reference it.
670 (bin_PROGRAMS): Added rmic and rmiregistry.
671 (rmic_SOURCES): New macro.
672 (EXTRA_rmic_SOURCES): Likewise.
673 (rmic_LDFLAGS): Likewise.
674 (rmic_LINK): Likewise.
675 (rmic_LDADD): Likewise.
676 (rmic_DEPENDENCIES): Likewise.
677 (rmiregistry_SOURCES): New macro.
678 (EXTRA_rmiregistry_SOURCES): Likewise.
679 (rmiregistry_LDFLAGS): Likewise.
680 (rmiregistry_LINK): Likewise.
681 (rmiregistry_LDADD): Likewise.
682 (rmiregistry_DEPENDENCIES): Likewise.
684 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
686 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
688 * Makefile.am: New friends for java/lang/Thread.h.
689 * prims.cc (runFirst): Removed.
690 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
691 (_Jv_RunMain): Now takes either a klass or class name parameter.
692 Create a gnu.gcj.runtime.FirstThread and attach the native thread
693 to that, then run it using _Jv_ThreadRun. Remove special handling of
694 jar files, instead pass is_jar parameter through to FirstThread.
695 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
696 of _Jv_AttachCurrentThread.
697 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
698 (run): New method. Take care of looking up main class manifest
699 attribute and calling forName if neccessary. Then call call_main.
700 (call_main): New native method.
701 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
702 relocated from prims.cc. Look up and call main method.
703 * java/lang/Thread.java (run_): Removed.
704 * java/lang/natThread.cc (run_): Renamed to...
705 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
706 (_Jv_NotifyThreadStart): here. New function.
707 (countStackFrames, destroy, resume, suspend, stop): Throw
708 UnsupportedOperationExceptions rather than JvFail'ing.
709 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
710 Existing version wraps new variant.
713 2001-08-23 Tom Tromey <tromey@redhat.com>
715 * java/lang/reflect/Field.java (toString): Use
716 Method.appendClassName.
717 * java/lang/reflect/Constructor.java (toString): Use
718 Method.appendClassName.
719 * java/lang/reflect/Method.java: Reindented.
720 (appendClassName): New method.
722 * defineclass.cc (handleMethod ): Initialize `throws' field of
724 (read_one_method_attribute): Handle Exceptions attribute.
725 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
726 (ObjectClass): Removed.
727 (getType): Compute `exception_types'.
728 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
730 2001-08-21 Anthony Green <green@redhat.com>
732 * java/lang/natClassLoader.cc (findClass): Search for
733 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
735 2001-08-21 Jeff Sturm <jsturm@one-point.com>
737 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
740 2001-08-20 Tom Tromey <tromey@redhat.com>
742 * java/awt/GridBagConstraints.java: Removed comment.
744 * jni.cc (nathash, nathash_count, nathash_size): New globals.
745 (DELETED_ENTRY): New define.
746 (hash): New function.
747 (nathash_find_slot): Likewise.
748 (natrehash): Likewise.
749 (nathash_add): Likewise.
750 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
752 (nathash_find): New function.
753 (_Jv_LookupJNIMethod): Use it. Synchronize body.
754 (call): Synchronize around assignment.
756 2001-08-17 Jeff Sturm <jsturm@one-point.com>
758 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
759 starting from zero offset.
761 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
763 * boehm.cc: Include gc_local_alloc.h if appropriate.
764 (GC_GENERIC_MALLOC): Don't define.
765 (MAYBE_MARK): Redefine for GC 6.0.
766 (_Jv_MarkObj): Mark class differently.
767 (_Jv_AllocArray): Use GC_generic_malloc.
769 2001-08-17 Mark J Roberts <mjr@anarcast.net>
771 * java/math/BigInteger.java (randBytes): New method.
772 (BigInteger(int,Random)): Use randBytes.
774 2001-08-17 Tom Tromey <tromey@redhat.com>
776 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
778 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
780 * BigInteger.java: fix right shifts by nonzero multiples of 32.
782 2001-08-15 Tom Tromey <tromey@redhat.com>
784 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
785 (local_ref_table, global_ref_table): Now IdentityHashMap.
786 (_Jv_JNI_Init): Updated for new types.
787 (mark_for_gc): Likewise.
788 (unmark_for_gc): Likewise.
789 * gcj/javaprims.h: Rebuilt class list.
790 * Makefile.in: Rebuilt.
791 * Makefile.am (core_java_source_files): Added new file.
792 * java/util/IdentityHashMap.java: New file.
794 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
797 2001-08-09 Tom Tromey <tromey@redhat.com>
799 * java/awt/image/SampleModel.java (getPixel): Set correct array
800 element. From Chris Meyer.
802 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
804 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
805 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
807 2001-08-06 Tom Tromey <tromey@redhat.com>
809 * java/io/InputStreamReader.java (refill): Only call refill on
810 BufferedInputStream when appropriate constraints are met.
812 2001-08-05 Tom Tromey <tromey@redhat.com>
814 * java/io/StringWriter.java: Merged with Classpath.
815 * java/io/InputStream.java: Merged with Classpath.
816 * java/io/OutputStream.java: Merged with Classpath.
817 * java/io/PushbackInputStream.java: Merged with Classpath.
818 * java/io/CharArrayReader.java: Merged with Classpath.
819 * java/io/CharArrayWriter.java: Merged with Classpath.
821 2001-08-02 Tom Tromey <tromey@redhat.com>
823 * prims.cc (JNI_OnLoad): Don't declare.
824 (_JNI_OnLoad): Don't define.
825 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
827 2001-08-02 Tom Tromey <tromey@redhat.com>
829 * java/io/RandomAccessFile.java (seek): Let seek go past end of
831 (skipBytes): Don't fail if seeking past end of file.
832 * java/io/FileInputStream.java (skip): Don't fail if seeking past
834 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
836 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
838 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
840 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
842 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
844 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
845 to initialize global_ref_table/local_ref_table.
847 2001-08-02 Tom Tromey <tromey@redhat.com>
849 * configure: Rebuilt.
850 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
853 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
855 * include/posix.h (_POSIX_PII_SOCKET): Define.
856 * configure.in (HAVE_SOCKLEN_T): Define.
857 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
859 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
860 (java::net::PlainSocketImpl::accept): Use it.
861 Fixes PRs libgcj/3694, libgcj/3696.
863 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
864 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
865 * configure, include/config.h.in: Regenerate.
866 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
867 (mcastGrp): Likewise.
868 (java::net::PlainDatagramSocketImpl::setOption): Guard against
869 missing IPV6_MULTICAST_IF.
870 Fixes PR libgcj/3694.
872 2001-08-01 Jeff Sturm <jsturm@one-point.com>
874 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
876 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
878 * Makefile.in: Rebuilt.
879 * Makefile.am (GCJLINK): Added --tag=GCJ.
882 2001-07-30 Tom Tromey <tromey@redhat.com>
884 * java/util/Date.java: Re-merged with Classpath.
886 2001-07-30 Jeff Sturm <jsturm@one-point.com>
888 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
889 (_Jv_bind): New static function.
890 (bind): Use _Jv_bind.
891 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
892 (_Jv_bind, _Jv_connect): New static functions.
893 (bind): Use _Jv_bind.
894 (connect): Use _Jv_connect.
896 2001-07-30 Tom Tromey <tromey@redhat.com>
897 Corey Minyard <minyard@acm.org>
899 * gnu/gcj/convert/natIconv.cc (done): New methods.
900 * gnu/gcj/convert/Output_iconv.java (done): New method.
901 * gnu/gcj/convert/Input_iconv.java (done): New method.
902 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
904 (getDefaultEncodingClass): Removed.
905 (getDefaultEncoder): Use getEncoder.
907 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
909 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
911 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
913 (getDefaultDecodingClass): Removed.
914 (getDefaultDecoder): Use getDecoder.
915 (getDecoder): Look up decoder in cache.
917 * java/lang/natString.cc (init): Call `done' on converter.
918 (getBytes): Likewise.
920 2001-07-30 Tom Tromey <tromey@redhat.com>
922 * java/lang/Integer.java: Merged with Classpath.
924 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
926 * java/util/GregorianCalendar.java (GregorianCalendar): Call
927 setTimeInMillis() to set the default/current time.
929 2001-07-29 Mark Wielaard <mark@klomp.org>
931 * HACKING: add description on updating namespace
933 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
935 * java/util/Calendar.java (set): Never recompute fields here. They
936 will already be set if someone set time explicitly, and it can cause
937 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
938 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
939 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
941 * java/text/SimpleDateFormat.java (defaultCentury): New field.
942 (readObject): Call set2DigitYearStart if appropriate so that
943 defaultCentury is calculated.
944 (SimpleDateFormat): Don't bother clearing calendar here. Call
945 computeCenturyStart().
946 (set2DigitYearStart): Calculate and set defaultCentury.
947 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
949 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
950 2 numeric digits, use the 80-20 heuristic to parse the value into a
951 default century based on defaultCenturyStart.
952 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
954 2001-07-25 Tom Tromey <tromey@redhat.com>
956 * Makefile.in: Rebuilt.
957 * Makefile.am (libgcj.jar): Correctly fail when bytecode
960 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
962 * prims.cc (_JNI_OnLoad): New function.
963 (JNI_OnLoad): Use it.
964 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
966 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
968 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
969 Makefile.in: Regenerate.
971 2001-07-24 Tom Tromey <tromey@redhat.com>
973 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
976 2001-07-23 Tom Tromey <tromey@redhat.com>
978 * gcj/javaprims.h: Rebuilt class list.
979 * Makefile.in: Rebuilt.
980 * Makefile.am (core_java_source_files): Added VMClassLoader.
981 * java/lang/VMClassLoader.java: New file.
982 * java/lang/Boolean.java: Merged with Classpath.
983 * java/lang/Byte.java: Merged with Classpath.
984 * java/lang/Integer.java: Merged with Classpath.
985 * java/lang/Long.java: Merged with Classpath.
986 * java/lang/Number.java: Merged with Classpath.
987 * java/lang/Short.java: Merged with Classpath.
989 2001-07-22 Jeff Sturm <jsturm@one-point.com>
991 * configure.host: Enable hash synchronization for alpha*-*.
992 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
994 * java/lang/natObject.cc (compare_and_swap, release_set,
995 compare_and_swap_release): Added inline functions for alpha.
997 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
999 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1000 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1001 back to old RFC 2133 variants if missing.
1003 2001-07-18 Tom Tromey <tromey@redhat.com>
1005 * java/io/natFileWin32.cc (_access): Renamed.
1007 * java/io/natFile.cc (_access): Renamed.
1009 * java/io/File.java (access, stat): Add leading `_' to name.
1010 Updated all callers.
1012 2001-07-18 Tom Tromey <tromey@redhat.com>
1015 * libgcj.spec.in (*lib): Added LIBICONV.
1016 * configure: Rebuilt.
1017 * configure.in: Call AM_ICONV. Don't check for iconv function.
1018 Add parameters to JV_HASH_SYNCHRONIZATION define.
1019 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1021 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1023 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1024 not by setting its size field.
1026 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1028 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1031 2001-07-12 Tom Tromey <tromey@redhat.com>
1032 David Brownell <david-b@pacbell.net>
1034 Fix for PR libgcj/3426:
1035 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1037 (read): Throw exception if character conversion fails.
1038 * java/io/BufferedInputStream.java (refill): Now package-private.
1039 * java/io/InputStreamReader.java (ready): Simplified.
1040 (refill): New method.
1043 2001-07-12 Tom Tromey <tromey@redhat.com>
1045 Report from Henner Zeller:
1046 * java/io/FileOutputStream.java (FileOutputStream): Throw
1047 FileNotFoundException, not IOException.
1049 2001-07-10 Anthony Green <green@redhat.com>
1051 * Makefile.in: Rebuilt.
1052 * Makefile.am: Add new files.
1053 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1054 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1055 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1056 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1057 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1058 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1059 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1060 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1061 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1062 org/w3c/dom/ranges/DocumentRange.java,
1063 org/w3c/dom/ranges/Range.java,
1064 org/w3c/dom/ranges/RangeException.java,
1065 org/w3c/dom/traversal/DocumentTraversal.java,
1066 org/w3c/dom/traversal/NodeFilter.java,
1067 org/w3c/dom/traversal/NodeIterator.java,
1068 org/w3c/dom/traversal/TreeWalker.java,
1069 org/xml/sax/ext/DeclHandler.java,
1070 org/xml/sax/ext/LexicalHandler.java,
1071 org/xml/sax/helpers/AttributeListImpl.java,
1072 org/xml/sax/helpers/AttributesImpl.java,
1073 org/xml/sax/helpers/DefaultHandler.java,
1074 org/xml/sax/helpers/LocatorImpl.java,
1075 org/xml/sax/helpers/NamespaceSupport.java,
1076 org/xml/sax/helpers/ParserAdapter.java,
1077 org/xml/sax/helpers/ParserFactory.java,
1078 org/xml/sax/helpers/XMLFilterImpl.java,
1079 org/xml/sax/helpers/XMLReaderAdapter.java,
1080 org/xml/sax/helpers/XMLReaderFactory.java,
1081 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1082 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1083 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1084 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1085 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1086 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1087 org/xml/sax/SAXNotRecognizedException.java,
1088 org/xml/sax/SAXNotSupportedException.java,
1089 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1090 org/xml/sax/XMLReader.java: New files.
1092 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1094 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1095 * Makefile.in: Regenerate.
1096 * java/lang/ThreadLocal.java: Initial import.
1098 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1100 * Makefile.am (libgcj.jar): Don't recursively make
1101 built_java_source_files. Avoid long command lines.
1102 Don't change to $(srcdir) to invoke javac.
1103 (libgcj.la, libgcjx.la); Avoid long command lines.
1104 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1105 * Makefile.in: Rebuilt.
1107 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1109 * include/i386-signal.h: Don't do anything with unsigned divide
1110 overflow except throw an exception.
1112 2001-07-05 Tom Tromey <tromey@redhat.com>
1115 * java/lang/Class.h (Class(void)): Now private. Removed
1116 implementation. From dmorsberger@sensysdl.com.
1118 2001-07-02 Tom Tromey <tromey@redhat.com>
1120 Fix for PR bootstrap/3281:
1121 * aclocal.m4, configure: Rebuilt.
1122 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1123 Correctly compute libgcj_basedir.
1124 (mkinstalldirs): Define and subst.
1126 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1129 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1132 2001-06-27 Tom Tromey <tromey@redhat.com>
1134 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1137 2001-06-25 Tom Tromey <tromey@redhat.com>
1139 * scripts/encodings.pl: Generate lower-case names. Updated URL
1140 for `character-sets' file.
1141 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1143 Rebuilt list of aliases.
1145 2001-06-25 Tom Tromey <tromey@redhat.com>
1147 * java/io/natFileDescriptorPosix.cc (open): Change error message
1148 formatting. From David Brownell.
1150 2001-06-21 Tom Tromey <tromey@redhat.com>
1152 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1155 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1157 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1158 extraneous/malformed sign word.
1160 2001-06-15 Tom Tromey <tromey@redhat.com>
1162 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1164 2001-06-15 Tom Tromey <tromey@redhat.com>
1166 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1167 NULL if no library on the list has the symbol.
1168 (init): Call add_library on the program itself.
1169 * prims.cc (JvRunMain): Initialize Runtime before searching for
1171 (_Jv_RunMain): Likewise.
1173 2001-06-15 Tom Tromey <tromey@redhat.com>
1175 * jni.cc (ClassClass): Removed; updated all users.
1176 (ObjectClass): Likewise.
1177 (ThrowableClass): Likewise.
1178 (MethodClass): Likewise.
1179 (ThreadGroupClass): Likewise.
1180 (local_ref_table): Renamed from `ref_table'.
1181 (global_ref_table): New global.
1182 (_Jv_JNI_Init): Initialize both ref tables.
1183 (mark_for_gc): Added `ref_table' parameter.
1184 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1186 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1187 (_Jv_JNI_DeleteGlobalRef): Likewise.
1188 (_Jv_JNI_DeleteLocalRef): Likewise.
1189 (_Jv_JNI_NewLocalRef): Likewise.
1190 (_Jv_JNI_PopLocalFrame): Likewise.
1191 (_Jv_JNI_GetStringChars): Likewise.
1192 (_Jv_JNI_ReleaseStringChars): Likewise.
1193 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1194 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1196 2001-06-14 Tom Tromey <tromey@redhat.com>
1198 Fix for PR libgcj/3144:
1199 * java/util/Date.java: Merged with Classpath.
1201 2001-06-12 Tom Tromey <tromey@redhat.com>
1203 * aclocal.m4, configure: Rebuilt.
1204 * acinclude.m4: Find configure.host in srcdir.
1206 2001-06-07 Tom Tromey <tromey@redhat.com>
1208 Fix for PR libgcj/3059:
1209 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1210 * Makefile.in: Rebuilt.
1211 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1213 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1215 * exception.cc (cstdlib): Replaces stdlib.h.
1216 (_Jv_Throw): Use std::abort().
1217 (PERSONALITY_FUNCTION): Likewise.
1219 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1221 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1222 nothing, as in autoconf 2.50.
1223 * aclocal.m4, configure: Rebuilt.
1225 2001-06-08 Tom Tromey <tromey@redhat.com>
1227 * configure: Rebuilt.
1228 * configure.in: Compute new aux dir using `pwd'.
1230 2001-06-07 Tom Tromey <tromey@redhat.com>
1232 For PR bootstrap/3075:
1233 * configure, aclocal.m4, Makefile.am: Rebuilt.
1234 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1235 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1236 relative to libgcj_basedir.
1237 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1238 AC_CANONICAL_SYSTEM here.
1239 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1241 ($(extra_headers)): New target.
1243 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1244 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1246 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1247 table index is within allowed bounds. Ensure that we dont try to access
1248 class itable at a negative offset. Avoid an ancestor table lookup if
1249 source is a primitive type class.
1250 (isInstance): Remove redundant isPrimitive() check.
1252 2001-06-04 Tom Tromey <tromey@redhat.com>
1254 * java/security/PublicKey.java: Extend Key.
1255 * java/security/PrivateKey.java: Extend Key.
1257 2001-06-02 Anthony Green <green@redhat.com>
1259 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1260 alternate when USE_LTDL not defined.
1262 2001-06-02 Anthony Green <green@redhat.com>
1264 * configure: Rebuild.
1265 * configure.in: Remove data_start hack.
1266 * libgcj.spec.in: Ditto.
1267 * Makefile.in: Rebuild.
1268 * Makefile.am: Ditto.
1269 * libgcjdata.c: Remove.
1271 2001-06-02 Anthony Green <green@redhat.com>
1273 * configure: Rebuild.
1274 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1275 --without-libffi option. Tweak --disable-java-net processing.
1276 * Makefile.in: Rebuild.
1277 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1278 * include/config.h.in: Rebuild.
1279 * acconfig.h (USE_LIBFFI): Define.
1280 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1282 2001-06-02 Anthony Green <green@redhat.com>
1284 * configure: Rebuilt.
1285 * configure.in: Test for sigaction on native builds.
1286 * prims.cc: Check HAVE_SIGACTION.
1287 * include/config.h.in: Rebuilt.
1289 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1291 * natFile.cc (get_entry): Removed functions.
1292 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1293 Allocate enough storage for d_name if using readdir_r.
1295 2001-05-31 Tom Tromey <tromey@redhat.com>
1297 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1299 (write): Loop until write completes. From Corey Minyard.
1301 2001-05-29 Laurent Guerby <guerby@acm.org>
1303 * java/awt/geom/Rectangle2D.java: fix doc typo.
1305 2001-05-31 Tom Tromey <tromey@redhat.com>
1307 * java/sql/DriverManager.java (getDrivers): Handle case where
1308 driver's class loader is null. From Corey Minyard.
1310 2001-05-29 Tom Tromey <tromey@redhat.com>
1312 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1314 * configure: Rebuilt.
1315 * configure.in: Only add multilib support code if we just rebuilt
1318 2001-05-29 Andrew Haley <aph@redhat.com>
1320 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1321 pointer: the dwarf unwinder in libgcc will do everything that's
1323 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1324 more than we absolutely need to.
1325 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1326 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1328 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1330 * configure: Rebuilt.
1331 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1333 (SIGNAL_HANDLER): Use siginfo style handler.
1334 (INIT_SEGV): Likewise.
1335 (INIT_FPE): Likewise.
1336 * include/ppc-signal.h: Delete whole file.
1338 2001-05-24 Tom Tromey <tromey@redhat.com>
1340 * java/lang/natString.cc (init): Throw
1341 ArrayIndexOutOfBoundsException.
1342 (getChars): Likewise.
1343 (getBytes): Likewise.
1344 (valueOf): Likewise.
1346 * configure.in: Only allow hash synchronization when POSIX threads
1348 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1349 of sync info object.
1351 2001-05-23 Tom Tromey <tromey@redhat.com>
1353 * Makefile.in: Rebuilt.
1354 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1356 Revert patch of 2001-05-21:
1357 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1358 (libgcj_la_LIBADD): Likewise.
1359 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1360 (libgcjx_la_LIBADD): Likewise.
1362 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1363 * gcj/Makefile.in: Rebuilt.
1364 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1365 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1366 * gcj/libgcj-config.h.in: New file.
1367 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1368 * configure: Rebuilt.
1369 * configure.in: Enable hash synchronization by default on some
1371 (HASH_SYNC_SPEC): New subst.
1372 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1373 Correctly use `test -z' instead of `test -n' in a couple places.
1374 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1376 * configure.host (enable_java_net_default): Initialize.
1377 (enable_hash_synchronization_default): New variable.
1379 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1381 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1382 synchronization in use.
1383 (_Jv_MarkArray): Likewise.
1384 (_Jv_AllocBytes): Don't check return result.
1385 (handle_out_of_memory): New function.
1386 (_Jv_InitGC): Set GC_oom_fn.
1387 (trace_one_vtable): New global.
1388 (_Jv_AllocTraceOne): New function.
1389 * configure.in: Added --enable-hash-synchronization.
1390 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1391 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1392 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1393 (_Jv_AllocArray): Likewise.
1394 (_Jv_AllocBytes): Likewise.
1395 (_Jv_AllocPtrFreeObject): New function.
1396 (_Jv_AllocTraceOne): Likewise.
1397 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1399 (self_cache): New global.
1400 (_Jv_ThreadSelf_out_of_line): New function.
1401 * prims.cc (_Jv_AllocBytesChecked): Removed.
1402 (_Jv_ThrowNoMemory): New function.
1403 (_Jv_AllocObject): Don't check for null return from allocator.
1404 (_Jv_NewObjectArray): Likewise.
1405 (_Jv_AllocPtrFreeObject): New function.
1406 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1407 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1408 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1409 * include/boehm-gc.h (_Jv_AllocObj): Define.
1410 (_Jv_AllocPtrFreeObj): Define.
1411 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1412 (_Jv_ThrowNoMemory): Declare.
1413 (_Jv_AllocTraceOne): Declare.
1414 (_Jv_AllocBytesChecked): Removed.
1415 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1416 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1417 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1419 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1421 * java/lang/Object.h (sync_info): Conditional upon presence of
1422 hash synchronization.
1423 * java/lang/natObject.cc: Much new code to handle thin locks and
1424 hash synchronization.
1425 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1428 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1430 * gij.cc (version): Update copyright year.
1432 2001-05-22 Anthony Green <green@redhat.com>
1434 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1437 2001-05-21 Per Bothner <per@bothner.com>
1439 Implement invocation interface; don't create new thread for main.
1440 * java/lang/Thread.java (gen_name): Make native.
1441 (<init>(Thread,THreadGroup,Runnable,String)): New private
1442 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1443 * java/lang/natThread.cc (gen_name): New implementation.
1444 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1445 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1446 (_Jv_CreateJavaVM): New runtime initialization procedure.
1447 (runFirst): New proecdure - mostly code from old FirstThread::run.
1448 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1449 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1450 JvDetachCurrentThread): New inline wrappers.
1451 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1452 _Jv_DetachCurrentThread): New declarations.
1453 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1454 (getMain): new static method.
1455 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1456 by runFirst in prims.cc.
1457 (java/lang/Thread.h): Update for new invocation interface.
1458 * include/posix-threads.h (_Jv_ThreadRegister,
1459 _Jv_ThreadUnRegister): New declarations.
1460 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1461 (really_start): Use new _Jv_ThreadRegister.
1462 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1463 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1464 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1465 Complain of called when _Jv_OnlyThread already set.
1466 (_Jv_ThreadStart): Always JvFail.
1467 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1468 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1469 * win32-threads.cc (struct starter): Remove objet field -
1470 we use _Jv_Thread_t's new thread_obj field instead.
1471 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1472 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1473 (really_start): Use new _Jv_ThreadRegister.
1474 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1475 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1476 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1477 Removed - no longer needed with new invocation interface.
1478 * Makefile.am: Update for removed/added files.
1480 2001-05-21 Per Bothner <per@bothner.com>
1482 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1483 (libgcj_la_LIBADD): Likewise.
1484 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1486 2001-05-21 Per Bothner <per@bothner.com>
1488 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1489 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1490 taken from old Integer.toString code.
1491 (Integer::valueOf): Use _Jv_FormatInt.
1492 * java/lang/Integer.java (toString): Just use call String.valueOf.
1493 * java/lang/Long.java (toString): Fix typo in comment.
1494 * java/lang/String.java (valueOf(int)): Make native.
1495 * java/lang/StringBuffer.java (append(int)): Make native.
1496 * java/lang/natStringBuffer.cc: New file, for append(jint).
1497 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1499 2001-05-21 Tom Tromey <tromey@redhat.com>
1501 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1503 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1505 * include/dwarf2-signal.h: New file.
1506 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1507 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1508 * configure: Rebuilt.
1510 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1512 * configure.in: Update boehm-gc include dir for new GC version.
1513 * configure: Rebuilt.
1514 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1516 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1517 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1518 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1521 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1523 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1524 (_Jv_MutexInit): Likewise.
1526 2001-05-18 Tom Tromey <tromey@redhat.com>
1528 * Makefile.in: Rebuilt.
1529 * Makefile.am (awt_java_source_files): Added Polygon.java.
1531 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1533 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1534 * gcj/javaprims.h: ... here.
1535 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1537 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1539 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1540 with length of ioffset table.
1541 (_Jv_IsAssignableFrom): Likewise.
1543 2001-05-17 Per Bothner <per@bothner.com>
1545 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1547 2001-05-16 Tom Tromey <tromey@redhat.com>
1549 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1552 2001-05-15 Tom Tromey <tromey@redhat.com>
1554 * java/util/GregorianCalendar.java (computeTime): Only call
1557 2001-05-14 Tom Tromey <tromey@redhat.com>
1559 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1560 ZONE_OFFSET just before computing the time.
1562 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1564 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1565 * Makefile.in: Regenerate (by hand).
1566 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1567 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1569 2001-05-11 Richard Henderson <rth@redhat.com>
1571 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1572 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1574 2001-05-11 Richard Henderson <rth@redhat.com>
1576 * exception.cc: Include unwind-pe.h. Remove all pointer
1579 2001-05-10 Tom Tromey <tromey@redhat.com>
1581 * Makefile.in: Rebuilt.
1582 * Makefile.am (awt_java_source_files): Added Polygon.java.
1583 * java/awt/Polygon.java: New file.
1585 * java/awt/geom/AffineTransform.java
1586 (setToRotation(double,double,double)): New method.
1587 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1588 (setToShear): Likewise.
1590 2001-05-10 Tom Tromey <tromey@redhat.com>
1592 * java/util/GregorianCalendar.java: Imported from Classpath.
1593 * gnu/java/locale/LocaleInformation_nl.java: New file from
1595 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1596 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1597 * gnu/java/locale/LocaleInformation.java: Likewise.
1598 * natGregorianCalendar.cc: Removed.
1599 * Makefile.in: Rebuilt.
1600 * Makefile.am (nat_source_files): Removed
1601 natGregorianCalendar.cc.
1603 2001-05-10 Tom Tromey <tromey@redhat.com>
1605 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1607 (defaultCenturyStart): Use it.
1608 (readObject): Likewise.
1609 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1611 (parse): Copy the calendar before modifying it. Correctly handle
1614 * java/util/Calendar.java (clear): Set field value(s) to 0.
1616 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1618 * Calendar.java (get): Clear areFieldsSet if requested field
1620 (set): Unset fields that depend on new value.
1622 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1624 * java/lang/Class.h (_Jv_Self): New union type.
1625 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1626 Jeff Sturm and Fergus Henderson.
1628 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1630 * java/lang/ClassLoader.java: Remove dead code fragment.
1632 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1634 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1636 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1638 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1640 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1641 * configure.host (EXCEPTIONSPEC): New.
1642 * configure.in (EXCEPTIONSPEC): New.
1643 * configure: Rebuilt.
1645 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1647 * doc/*.texi: Remove generated documentation.
1649 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1651 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1652 (performDelete): Fix #endif placement.
1654 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1656 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1657 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1658 (_Jv_ThreadDestroyData): Use _Jv_Free.
1659 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1662 2001-04-27 Tom Tromey <tromey@redhat.com>
1664 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1666 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1668 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1670 * include/jni.h (struct JNINativeInterface): Fixed types in
1671 Get/Set*ArrayRegion declarations.
1672 (class _Jv_JNIEnv): Likewise.
1674 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1676 * configure.in: Obtain THREADS with `gcc -v'.
1677 * configure: Rebuilt.
1679 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1682 * java/io/ObjectStreamClass.java (setClass): Calculate
1683 serialVersionUID for local class and compare it against the UID
1684 from the Object Stream. Throw InvalidClassException upon mismatch.
1685 (setUID): Renamed to...
1686 (getClassUID): this. Return the calculated class UID rather than
1687 setting uid field directly.
1688 (getDefinedSUID): Removed.
1689 * java/io/ObjectInputStream.java (resolveClass): Use the
1690 three-argument Class.forName().
1691 * java/io/InvalidClassException (toString): Don't include classname in
1692 result if it is null.
1694 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1696 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1697 Wrap use of inet_pton in HAVE_INET6.
1699 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1701 java.security merge and ClassLoader compliance fixes.
1703 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1704 New protectionDomain field.
1705 (forName): Add initialize parameter. Fixes declaration to comply with
1707 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1708 variant. Honour "initialize" flag.
1709 (getProtectionDomain0): New method.
1710 * java/lang/Class.java: Fix forName() declaration.
1711 (getPackage): New method based on Classpath implementation.
1712 (getProtectionDomain0): New native method decl.
1713 (getProtectionDomain): New method.
1714 * java/lang/ClassLoader.java (getParent): Now final.
1715 (definedPackages): New field.
1717 (defineClass): New variant with protectionDomain argument.
1718 (definePackage): New.
1720 (findSystemClass): Now final.
1721 (getSystemResourceAsStream): Remove redundant "final" modifier.
1722 (getSystemResource): Remove redundant "final" modifier.
1723 (getResources): Now final.
1724 (protectionDomainPermission): New static field.
1725 (unknownProtectionDomain): Ditto.
1726 (defaultProtectionDomain): Ditto.
1727 (getSystemClassLoader): Now non-native.
1728 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1729 arguments for Class.forName().
1730 * java/lang/Package.java: New file.
1731 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1732 (instance): Static initialize singleton.
1733 (findClass): Override this, not findSystemClass.
1734 * java/lang/natClassLoader.cc (defineClass0): Set class's
1735 protectionDomain field as specified.
1736 (getSystemClassLoader): Removed.
1737 (findClass): Renamed from findSystemClass. Call the interpreter via
1738 URLClassLoader.findClass if loading class via dlopen fails.
1740 * java/security/*.java: java.security import/merge with Classpath.
1741 * java/security/acl/*.java: Likewise.
1742 * java/security/interfaces/*.java: Likewise.
1743 * java/security/spec/*.java: Likewise.
1744 * java/net/NetPermission.java: Likewise.
1745 * java/net/SocketPermission.java: Likewise.
1746 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1748 * Makefile.am: Add new classes.
1749 * Makefile.in: Rebuilt.
1750 * gcj/javaprims.h: CNI namespace rebuild.
1752 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1754 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1755 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1756 * configure: Rebuilt.
1758 2001-04-21 Tom Tromey <tromey@redhat.com>
1760 * Makefile.in: Rebuilt.
1761 * Makefile.am (awt_java_source_files): Added Line2D.java.
1762 * java/awt/geom/Line2D.java: Wrote.
1764 * java/awt/Menu.java (addNotify): Wrote.
1766 * java/awt/PopupMenu.java (addNotify): Implemented.
1769 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1770 * java/awt/List.java (addNotify): Call super.addNotify.
1771 * java/awt/Label.java (addNotify): Call super.addNotify.
1772 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1773 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1774 * java/awt/Choice.java (addNotify): Call super.addNotify.
1775 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1776 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1778 * java/awt/List.java (replaceItem): Notify peer.
1780 * java/awt/geom/Rectangle2D.java
1781 (Float.setRect(float,float,float,float)): New method.
1783 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1786 * java/awt/RenderingHints.java (Key): Class now public.
1788 * java/awt/Rectangle.java (Rectangle): Now implements
1790 (getPathIterator): Removed.
1792 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1795 * java/awt/FileDialog.java: Wrote.
1797 * java/awt/EventQueue.java (isDispatchThread): Now public.
1798 (invokeLater): Likewise.
1800 * java/awt/Component.java (setCursor): Update peer.
1801 (getFontMetrics): Use peer.
1803 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1806 2001-04-20 Tom Tromey <tromey@redhat.com>
1808 * java/awt/List.java: Wrote.
1809 * java/awt/Dialog.java: Wrote.
1811 2001-04-20 Warren Levy <warrenl@redhat.com>
1813 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1814 * java/text/SimpleDateFormat.java
1815 (indexInArray): Removed private method.
1816 (processYear): Removed private method.
1817 (parseLenient): Removed private method.
1818 (parseLeadingZeros): Removed private method.
1819 (parseStrict): Removed private method.
1820 (expect): Added new private method.
1821 (parse): Reverted to pre-Classpath merge version with minor fixes.
1822 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1825 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1827 * java/io/File.java (normalizePath): New private method.
1828 (File (String)): Use normalizePath().
1829 (File (String, String)): Likewise.
1831 * Makefile.am (libffi_files): Removed.
1832 (libgcj.la): Link libffi as a convenience library instead of
1833 refering to its object files directly.
1834 * Makefile.in: Rebuilt.
1836 2001-04-08 Per Bothner <per@bothner.com>
1838 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1839 Recalculate hash, since Utf8Const's hash is only 16 bits.
1841 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1842 bits of hash to calculate step for chaining.
1844 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1845 when 2/3 full, rather than 3/4 full.
1847 2001-04-06 Tom Tromey <tromey@redhat.com>
1849 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1850 (wrap_value<T*>): New specialization.
1851 (_Jv_JNI_PopLocalFrame): Update env->locals.
1853 2001-04-05 Tom Tromey <tromey@redhat.com>
1855 * libtool-version: Updated current.
1857 2001-04-04 Andreas Jaeger <aj@suse.de>
1859 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1860 * gcj/Makefile.in: Rebuilt.
1861 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1862 * Makefile.in: Rebuilt.
1863 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1864 * testsuite/Makefile.in: Rebuild.
1865 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1866 * include/Makefile.in: Rebuild.
1868 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1870 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1871 compiled test', not 'execution from source compiled test'.
1872 Use UNTESTED, not XFAIL, for tests which are not run because
1873 they depend on a previous test which failed.
1875 2001-04-02 Richard Henderson <rth@redhat.com>
1877 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1878 the same tree as gcc.
1879 * configure: Rebuilt.
1881 * exception.cc (_Jv_Throw): Clarify commentary.
1883 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1885 * jni.cc (wrap_value<jclass>): New specialization.
1887 2001-04-02 Tom Tromey <tromey@redhat.com>
1889 * java/io/PrintStream.java (out): Removed field. Fixes PR
1891 (write): Call flush, not out.flush, per spec.
1892 (close): Flush output stream, per spec. Handle
1893 InterruptedIOException.
1894 (checkError): Likewise.
1895 (flush, print, write): Handle InterruptedIOException per spec.
1896 (PrintStream): Don't create BufferedOutputStream.
1897 (work_bytes): New field.
1898 (writeChars): Use work_bytes. Don't assume `out' is a
1899 BufferedOutputStream.
1901 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1903 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1906 2001-03-30 Tom Tromey <tromey@redhat.com>
1908 * jni.cc (add_char): Correctly encode non-ascii characters.
1909 (add_char): Define even when INTERPRETER not defined.
1910 (mangled_name): Likewise.
1911 (_Jv_GetJNIEnvNewFrame): Likewise.
1912 (_Jv_LookupJNIMethod): Likewise.
1914 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1916 * configure.host: Enable interpreter for PPC.
1918 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1920 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1921 to "file.separator", "path.separator", and "java.io.tmpdir" property
1923 * java/io/File.java: Likewise.
1924 * java/io/natFile.cc (init_native): Likewise.
1925 * java/io/natFileWin32.cc (init_native): Likewise.
1927 2001-04-01 Per Bothner <per@bothner.com>
1929 * java/lang/natString.cc (intern): If string's data does not point to
1930 this String, make a fresh String that does.
1932 * java/lang/natString.cc (unintern): Replace by static function.
1933 * java/lang/String.java (unintern): Remove method.
1935 2001-04-01 Per Bothner <per@bothner.com>
1937 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1938 (finish): def.deflate needs to be called in a loop.
1939 (inbuf, inbufLength): New private fields.
1940 (write(int)): Use inbuf.
1941 (write(byte[],int,int): Check if pending output in inbuf.
1942 * ZipOutputStream.java: Don't use Deflater if stored.
1943 Use a Checksum object directly, not via a CheckedOutputStream.
1944 (uncompressed_size): New field,
1945 (closeEntry): Only write data_directory if needed.
1946 (write): If STORED, write directly.
1947 Always update crc, and uncompressed_size.
1948 (write_entry): Fix lots of protocol erors.
1950 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1952 1.3-Compliant Implementation of java.io.File.
1953 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1954 "path.separator", and "java.io.tmpdir" from the File class, instead
1955 of setting them explicitly.
1956 * java/io/File.java: Do not canonicalize paths for security manager
1957 checks. Call init_native() from static initializer. Do not pass path
1958 argument to native methods. New native method declarations. Some
1959 security manager checks moved to checkWrite().
1960 (equals): Check file system case sensitivity and act appropriatly.
1961 (hashCode): Likewise.
1962 (isHidden): New method implemented.
1963 (performList): Changed prototype. Now takes a class argument specifying
1964 the class of the returned array: Strings or File objects. Also added
1965 FileFilter argument.
1966 (listFiles): New variants with "File" return type implemented.
1967 (createTempFile): Use createNewFile(). Use maxPathLen.
1968 (setReadOnly): New method implemented.
1969 (listRoots): Likewise.
1970 (compareTo): Likewise.
1971 (setLastModified): Likewise.
1972 (checkWrite): New method.
1974 * java/io/natFile.cc: Various functions no longer take canonical path
1976 (stat): Handle ISHIDDEN query.
1977 (isAbsolute): Remove WIN32 cruft.
1978 (performList): New arguments. Handle returning either File[] or String[]
1979 arrays. Check with FileFilter or FilenameFilter arguments as
1980 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1981 (performSetReadOnly): New method implemented.
1982 (performListRoots): Likewise.
1983 (performSetLastModified): Likewise.
1984 (performCreate): Likewise.
1985 (init_native): New initialization function.
1986 * java/io/natFileWin32.cc: Various functions no longer take canonical
1988 (stat): Add FIXME about ISHIDDEN query.
1989 (performList): New arguments. Handle returning either File[] or String[]
1990 arrays. Check with FileFilter or FilenameFilter arguments as
1991 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1992 (performSetReadOnly): New. Stubbed.
1993 (performListRoots): Likewise.
1994 (performSetLastModified): Likewise.
1995 (performCreate): Likewise.
1996 (init_native) New initialization function.
1997 * configure.in: Check for utime() and chmod().
1998 * configure: Rebuilt.
1999 * include/config.h.in: Rebuilt.
2001 Resolves PR libgcj/1759.
2003 2001-03-28 Richard Henderson <rth@redhat.com>
2005 IA-64 ABI Exception Handling:
2006 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2007 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2008 Remove EXCEPTIONSPEC.
2009 * configure.host (libgcj_sjlj): Remove.
2010 * configure.in (EXCEPTIONSPEC): Remove.
2011 (enable-sjlj-exceptions): Detect if not specified.
2012 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2013 what header we're looking for.
2014 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2015 * Makefile.in, configure: Regenerate.
2016 * exception.cc: Don't declare libgcc2 stuff.
2017 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2018 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2019 (win32_get_restart_frame): Remove.
2020 (struct java_exception_header): New.
2021 (__gcj_exception_class): New.
2022 (get_exception_header_from_ue): New.
2023 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2024 (size_of_encoded_value, read_encoded_value): New.
2025 (read_uleb128, read_sleb128, parse_lsda_header): New.
2026 (get_ttype_entry, __gcj_personality_sj0): New.
2027 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2029 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2031 * javax/naming/InitialContext.java (init): Fix typo.
2032 (composeName): Remove unnecessary semicolon.
2033 (addToEnvironment): Remove unnecessary semicolon.
2034 (addToEnvironment): Use put() instead of add().
2036 * javax/naming/InitialContext.java (InitialContext):
2038 (destroySubcontext): Method doesn't return a result.
2039 * javax/naming/Context.java: Import java.util.Hashtable.
2040 * javax/naming/Name.java: Import java.util.Enumeration.
2042 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2044 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2045 objects in subdirectories.
2046 * Makefile.in: Rebuilt.
2048 2001-03-25 Richard Henderson <rth@redhat.com>
2050 * exception.cc (java_eh_info): Make value type jthrowable.
2051 (_Jv_type_matcher): Remove now unneeded cast.
2052 (_Jv_Throw): Make argument type jthrowable. Munge name
2053 for SJLJ_EXCEPTIONS here ...
2054 * gcj/cni.h: ... not here.
2056 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2058 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2059 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2060 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2061 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2062 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2063 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2064 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2065 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2066 java/lang/natDouble.cc, java/lang/natObject.cc,
2067 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2068 java/lang/natString.cc, java/lang/natSystem.cc,
2069 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2070 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2071 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2072 java/util/zip/natInflater.cc:
2073 Use throw, not JvThrow or _Jv_Throw.
2075 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2077 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2078 paramater, bump it to 1.
2079 * java/util/Hashtable.java (Hashtable): Likewise.
2081 2001-03-23 Per Bothner <per@bothner.com>
2083 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2084 check for errors, since we don't want to throw exception on
2085 overflow/underflow. Instead, trim whitespace, and then check that
2086 _strtod_r uses up all the rest of the string.
2088 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2089 ancestors array is invalid for interfaces, so do that *after*
2090 check that the target type is not an interface.
2092 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2094 * prims.cc (_Jv_FindClassFromSignature): Check return of
2095 recursive call. Do not abort on invalid signature; return NULL
2098 2001-03-22 Tom Tromey <tromey@redhat.com>
2100 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2101 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2103 * include/jvm.h (_Jv_ResolveField): Declare.
2104 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2105 * resolve.cc (_Jv_ResolveField): No longer conditional on
2108 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2110 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2111 for libtool hacking.
2112 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2113 to a temporary file, then invoke libtool with the -objectlist
2115 (libgcjx.la): Likewise.
2116 * Makefile.in: Rebuilt.
2118 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2120 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2122 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2124 * jni.cc (add_char): Handle `.' like `/'.
2126 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2128 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2129 initialize if exception_types is null.
2130 * java/lang/reflect/Constructor.java: Likewise.
2131 * java/lang/reflect/natConstructor.cc (getType): Initialize
2132 exception_types to an empty Object array.
2134 2001-03-21 Tom Tromey <tromey@redhat.com>
2136 * configure: Rebuilt.
2137 * configure.in (GCJFLAGS): Subst.
2138 * Makefile.in: Rebuilt.
2139 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2140 (gij_LDFLAGS): Likewise.
2141 (JC1FLAGS): Added GCJFLAGS and removed -g.
2143 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2144 read/write case. Fixes PR libgcj/2338.
2146 2001-03-20 Warren Levy <warrenl@redhat.com>
2148 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2149 and corrected SimpleTimeZone's for the timezones hash table.
2151 2001-03-19 Per Bothner <per@bothner.com>
2153 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2154 "canonicalize" "../../xxx" to "/xxx".
2156 2001-03-19 Mark Wielaard <mark@klomp.org>
2158 * java/util/ArrayList.java: Remove RCS keywords from comments
2159 * java/util/BasicMapEntry.java: idem
2160 * java/util/Dictionary.java: idem
2161 * java/util/HashSet.java: idem
2163 * java/util/EventObject.java: reindent
2164 * java/util/Properties.java: idem
2165 * java/util/SortedMap.java: idem
2167 * java/util/Enumeration.java: Merge with Classpath
2168 * java/util/EventListener.java: idem
2169 * java/util/Observable.java: idem
2170 * java/util/Observer.java: idem
2171 * java/util/Stack.java: idem
2173 2001-03-17 Tom Tromey <tromey@redhat.com>
2175 * java/lang/natString.cc (rehash): Don't bother with memset;
2176 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2178 (UNMASK_PTR): New macro.
2179 (intern): Unmask pointer before returning it. Register finalizer
2181 (unintern): Handle case where
2182 (MASK_PTR): New macro.
2183 (PTR_MAKSED): Likewise.
2184 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2186 2001-03-01 Andrew Haley <aph@redhat.com>
2188 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2189 stackTrace buffer to a correctly aligned pointer array.
2191 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2193 * java/lang/Runtime.java (_exit): Declare new package-private native.
2194 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2195 without a security manager check.
2196 (exit): Call _exit after security check.
2197 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2199 * java/lang/System.java (setSecurityManager): If a security manager
2200 is already in place, call checkPermission.
2201 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2202 throws an exception, try to deal with it gracefully.
2203 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2204 Only try to print the subordinate stack trace if "exception" is set.
2205 Print our class name first.
2207 2001-03-08 Tom Tromey <tromey@redhat.com>
2209 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2210 info for array classes.
2211 Fixes PR libgcj/1971.
2213 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2215 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2218 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2220 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2221 instead of the new JDK1.2 API. This is simpler and makes
2222 back-porting the classes to JDK1.1 trivial.
2223 (readObject): likewise.
2225 2001-03-01 Per Bothner <per@bothner.com>
2227 Changes merged from Kawa's gnu.math.
2228 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2229 (rshift(int[],int[],int,int): Removed - not needed.
2230 (gcd): Use rshift0 rather than rshift.
2231 * java/math/BigInteger.java (setShiftRight): Likewise.
2232 (divide): Simplify by using rshift0.
2233 (divide): Zero-extend results if high-order bit set.
2235 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2237 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2240 2001-02-23 Per Bothner <per@bothner.com>
2242 Change to sometimes include class name in ClassFormatError message.
2243 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2244 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2245 boolean instead of throwing ClassFormatError on failure.
2246 (throw_class_format_error): Change static function to method.
2247 (_Jv_ClassReader): New inline methods verify_identifier,
2248 two overloads of verify_classname, verify_field_signature, and
2249 verify_method_signature
2250 * include/java-interp.h: Update declarations to return bool.
2251 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2252 ClassFormatError since _Jv_VerifyClassName now returns bool.
2254 2001-02-23 Per Bothner <per@bothner.com>
2256 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2257 c++filt to select java-style output.
2259 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2261 Fix for PR java/2040:
2262 * java/util/HashMap.java (HashMap): Don't throw exception for
2263 loadFactor > 1. Add exception messages.
2264 * java/util/Hashtable.java (Hashtable): Likewise.
2266 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2268 Disable libgcjx by default.
2269 * configure.in: Add support for --enable-java-awt configure option.
2270 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2271 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2272 * Makefile.in: Rebuilt.
2273 * configure: Rebuilt.
2275 2001-02-20 Tom Tromey <tromey@redhat.com>
2277 * java/io/PipedWriter.java (flush): Throw exception if stream
2279 * java/io/OutputStreamWriter.java (write): Throw exception if
2281 (writeChars): Don't throw exception if stream closed.
2282 * java/io/CharArrayWriter.java (closed): New field.
2284 (flush): Throw exception if stream closed.
2285 (reset): Synchronize on correct lock. Allow stream to be
2287 (toCharArray, toString, writeTo): Synchronize.
2288 (write): Throwe exception if stream closed.
2289 * java/io/BufferedWriter.java (close): Clear `buffer'.
2290 (flush): Throw IOException if stream is closed.
2293 2001-02-16 Tom Tromey <tromey@cygnus.com>
2295 * java/lang/ThreadGroup.java (activeCount): Only include threads
2297 (enumerate): Likewise.
2299 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2301 * java/lang/Integer.java (getInteger): Return default argument if
2302 property is not set. Don't call decode with null argument.
2303 * java/lang/Long.java (getLong): Likewise.
2305 * java/io/CharArrayReader.java (CharArrayReader): Throw
2306 IllegalArgumentException if constructor arguments are illegal.
2307 (ready): Return false if no more characters can be read.
2308 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2310 2001-02-17 Mark Wielaard <mark@klomp.org>
2312 * java/util/TimerTask.java: New version from Classpath.
2314 2001-02-17 Mark Wielaard <mark@klomp.org>
2316 Remerge with Classpath
2317 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2318 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2319 (readByte): Use convertToByte().
2320 (readChar): Use convertToChar().
2321 (readInt): Use convertToInt().
2322 (readLong): Use convertToLong().
2323 (readShort): Use convertToShort().
2324 (readUnsignedByte): Use convertToUnsignedByte().
2325 (readUnsignedShort): Use convertToUnsignedShort().
2326 (readUTF): Use convertToUTF().
2328 (convertToBoolean): Resurrected.
2329 (convertToByte): Ditto.
2330 (convertToChar): Ditto.
2331 (convertToInt): Ditto.
2332 (convertToLong): Ditto.
2333 (convertToShort): Ditto.
2334 (convertToUnsignedByte): Ditto.
2335 (convertToUnsignedShort): Ditto.
2336 (convertToUTF): Ditto.
2338 2001-02-17 Mark Wielaard <mark@klomp.org>
2342 2001-02-17 Mark Wielaard <mark@klomp.org>
2344 * java/io/DataInputStream.java: update copyright notice
2345 * java/io/PrintWriter.java: idem
2346 * java/io/Reader.java: idem
2347 * java/io/StreamTokenizer.java: idem
2348 * java/io/StringReader.java: idem
2349 * java/lang/reflect/ReflectPermission.java: idem
2351 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2353 * java/util/TreeSet.java (clone): Made subclass safe, use
2354 super.clone(), not new.
2355 * java/util/TreeMap.java (clone): Likewise.
2357 * java/util/TreeMap.java (nil): Made non-final.
2358 (clone): Create new nil node for copy.
2360 * java/util/HashSet.java (clone): Made subclass safe, use
2361 super.clone(), not new.
2363 2001-02-14 Andrew Haley <aph@redhat.com>
2365 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2368 2001-02-15 Anthony Green <green@redhat.com>
2370 * defineclass.cc: Don't include alloca.h.
2371 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2372 * interpret.cc (run_normal): Ditto.
2374 * java/lang/natDouble.cc (parseDouble): Ditto.
2376 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2378 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2380 * java/util/Collections.java (ReverseComparator): New static class.
2381 (reverseOrder): Return static instance of ReverseComparator.
2383 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2384 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2385 Rectangle.clone(), not Object.clone().
2387 * java/util/HashSet.java (clone): Remove try/catch.
2389 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2390 * java/util/Collection.java: Likewise.
2391 * java/util/Comparator.java: Likewise.
2392 * java/util/Dictionary.java: Likewise.
2393 * java/util/Iterator.java: Likewise.
2394 * java/util/ListIterator.java: Likewise.
2395 * java/util/Map.java: Likewise.
2396 * java/util/Set.java: Likewise.
2398 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2400 * java/util/TreeMap.java: New file.
2401 * java/util/TreeSet.java: New file.
2402 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2403 * Makefile.in: Rebuilt.
2404 * java/util/HashSet.java (clone): Use constructor instead of calling
2406 * java/util/SortedSet.java: Sync with classpath.
2407 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2410 * java/lang/natClass.cc (getSignature): Don't try to dereference
2411 param_types if it is null. Instead, take this to mean "no parameters".
2412 * java/lang/TreeMap.java (TreeIterator.next): Throw
2413 NoSuchElementException in preference to ConcurrentModificationException.
2414 (TreeIterator.remove): Throw IllegalStateException in preference to
2415 ConcurrentModificationException.
2416 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2417 throw a NoSuchElementException.
2418 (SubMap.lastKey): Likewise.
2420 2001-02-13 Tom Tromey <tromey@redhat.com>
2422 * java/io/PipedReader.java (ready): Throw IOException if pipe
2424 * java/io/FilterReader.java (close): Don't clear `in'.
2425 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2427 (read, ready, reset, skip): Added exception message.
2428 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2429 Perform checkStatus check inside synchronized block.
2431 2001-02-13 Tom Tromey <tromey@redhat.com>
2433 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2435 2001-02-13 Tom Tromey <tromey@redhat.com>
2437 Fix for PR libgcj/1351:
2438 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2440 Include Thread.h and InterruptedIOException.h.
2442 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2444 * java/io/BlockDataException.java: Removed.
2445 * java/io/ObjectInputStream.java (readObject): Throw
2446 StreamCorruptedException, not BlockDataException.
2447 * Makefile.am: Remove BlockDataException.
2448 * Makefile.in: Rebuild.
2450 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2451 Tom Tromey <tromey@redhat.com>
2453 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2456 2001-02-09 Tom Tromey <tromey@redhat.com>
2458 * java/util/Timer.java: New version from Classpath.
2460 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2462 * java/lang/Double.java (doubleToRawLongBits): Now native.
2463 * java/lang/Float.java (floatToRawIntBits): Likewise.
2464 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2465 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2467 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2469 * java/io/File.java (java.net): Imported.
2470 (getAbsoluteFile): Added.
2471 (getCanonicalPath): Likewise.
2474 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2476 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2477 * java/lang/Integer.java: Likewise.
2478 * java/lang/Long.java: Likewise.
2479 * java/lang/Short.java: Likewise.
2480 * java/lang/Double.java: Likewise.
2481 (doubleToRawLongBits): New method.
2482 * java/lang/Float.java: As above.
2483 (floatToRawIntBits): New method.
2485 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2486 IOException if stream closed.
2488 2001-02-08 Tom Tromey <tromey@redhat.com>
2490 * java/lang/Float.java (parseFloat): New method.
2492 2001-02-08 Tom Tromey <tromey@redhat.com>
2494 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2495 * java/io/InputStreamReader.java (ready, read): Throw IOException
2496 if stream has been closed.
2498 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2500 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2501 Change sources.redhat.com and sourceware.cygnus.com references to
2504 2001-02-07 Tom Tromey <tromey@redhat.com>
2506 Fix for PR libgcj/1906:
2507 * java/text/MessageFormat.java (setLocale): Use named class
2510 (format(Object,StringBuffer,FieldPosition)): Special case if
2511 argument is an Object[].
2513 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2515 * java/util/Arrays.java: Removed "cmp" methods.
2516 (qsort): Don't use "cmp".
2519 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2521 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2522 sort. Fix for PR java/1895.
2524 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2526 * configure.host: Use sjlj-exceptions for Alpha.
2528 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2530 * libgcj.spec.in: Don't force static libgcc into the executable.
2531 * configure.in (FORCELIBGCCSPEC): Removed.
2532 * configure: Rebuilt.
2534 2001-01-31 Tom Tromey <tromey@redhat.com>
2536 * Makefile.in: Rebuilt.
2537 * Makefile.am (LTCXXCOMPILE): New macro.
2539 2001-01-26 Andrew Haley <aph@redhat.com>
2541 (INIT_FPE): Use a direct system call to set the handler.
2543 2001-01-27 Richard Henderson <rth@redhat.com>
2545 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2547 2001-01-27 Tom Tromey <tromey@redhat.com>
2549 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2550 native interface structure.
2552 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2554 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2556 (read (byte[], int, int)): Only call readNextBlock() if the block
2557 buffer would actually be overrun. Increment blockDataPosition.
2558 (callReadMethod): Propagate exceptions from invocation target.
2559 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2560 exceptions from invocation target.
2562 2001-01-26 Tom Tromey <tromey@redhat.com>
2564 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2565 to internal representation.
2566 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2567 _Jv_FindClassFromSignature.
2569 2001-01-26 Warren Levy <warrenl@redhat.com>
2571 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2572 and timezone if they are available on the system.
2574 2001-01-24 Tom Tromey <tromey@redhat.com>
2576 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2578 2001-01-24 Tom Tromey <tromey@redhat.com>
2580 * Makefile.in: Rebuilt.
2581 * Makefile.am (c_source_files): Added sf_fabs.c.
2582 * java/lang/sf_fabs.c: New file.
2584 2001-01-19 Warren Levy <warrenl@redhat.com>
2586 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2587 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2588 correctly. Adjust properly from 0-23 clock hour.
2590 2001-01-17 Mark Wielaard <mark@klomp.org>
2592 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2594 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2596 * java/lang/Class.h (isInterface): Move implementation from
2597 natClass.cc. Declare inline.
2598 (Class): Add default constructor.
2599 * java/lang/Object.h: Update comments.
2600 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2601 initialize superclass, saving a call if super is already initialized.
2603 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2605 * prims.cc (init_prim_class): Deleted.
2606 (DECLARE_PRIM_TYPE): Rewritten.
2607 * java/lang/Class.h (stdio.h): Include removed.
2608 (stddef.h): Included.
2609 (java/lang/reflect/Modifier.h): Likewise.
2610 (Class): Contructor now takes arguments, initializes fields.
2611 (initializePrim): Prototype deleted.
2612 * java/lang/natClass.cc (initializePrim): Deleted.
2614 2001-01-16 Warren Levy <warrenl@redhat.com>
2616 * java/math/BigInteger.java: Update Copyright year.
2618 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2620 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2623 2001-01-14 Mark Wielaard <mark@klomp.org>
2624 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2625 (decode): Merge comments with Classpath, don't throw Exception
2627 2001-01-12 Tom Tromey <tromey@redhat.com>
2629 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2633 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2634 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2635 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2636 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2637 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2639 * java/lang/natSystem.cc: Include locale.h if it exists.
2640 * configure: Rebuilt.
2641 * configure.in: Check for locale.h.
2643 2001-01-11 Tom Tromey <tromey@redhat.com>
2645 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2646 (Cursor(int), getPredefinedCursor): Throw exception if argument
2649 2001-01-03 Tom Tromey <tromey@redhat.com>
2651 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2652 (getLocationOnScreen): Wrote.
2654 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2656 * Makefile.am: Re-enable dependencies.
2657 * Makefile.in: Rebuilt.
2659 2001-01-10 Warren Levy <warrenl@redhat.com>
2661 * java/math/BigDecimal.java (divide): Fixed comment.
2663 2001-01-10 Warren Levy <warrenl@redhat.com>
2665 Fix for PR libgcj/1596:
2666 * java/math/BigDecimal.java (divide): Check newScale for validity.
2667 Ensure that BigInteger.pow() is called with a non-negative value.
2668 (setScale (int)): New public method.
2669 (setScale (int,int)): New public method.
2671 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2673 Fix for PR libgcj/1338:
2674 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2675 commentChar. Fixed typos in comments.
2677 2001-01-08 Warren Levy <warrenl@redhat.com>
2679 Fix for PR libgcj/1411:
2680 * Makefile.am: Removed java/util/natTimeZone.cc.
2681 * Makefile.in: Rebuilt.
2682 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2683 missing localized timezone names.
2684 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2685 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2686 (init_properties): Set user.timezone property.
2687 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2688 default timezone names; removed non-standard ones. Use standard
2690 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2692 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2694 (getDefaultTimeZoneId): Removed.
2696 * java/util/natTimeZone.cc: Removed.
2698 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2700 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2701 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2702 (_Jv_GetArrayClass): New inline function.
2703 (arrayclass): New field.
2704 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2705 _Jv_GetArrayElementFromElementType.
2706 (_Jv_NewPrimArray): Ditto.
2707 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2708 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2709 Set Modifier::ABSTRACT.
2710 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2711 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2712 Now synchronized. Array classes are now referenced from
2713 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2714 Set array classes' accessibility flags correctly. Optimize so that
2715 all array classes share the same IDT.
2716 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2717 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2718 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2719 in superclasses from overwriting classes own fields.
2720 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2721 Modifier::isAbstract().
2722 (null_idt): New static field.
2723 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2725 (_Jv_IndexOf): Made inline.
2726 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2728 2001-01-08 Tom Tromey <tromey@redhat.com>
2730 Fix for PR java/1586:
2731 * Makefile.in: Rebuilt.
2732 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2734 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2736 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2737 from the c++ compiler.
2738 * Makefile.in: Rebuilt.
2740 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2742 All files with updated copyright.
2743 * prims.cc (class _Jv_PrimClass): Removed.
2744 (init_prim_class): New function.
2745 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2746 `_Jv_PrimClass' in primitive type declarations. Assign to the
2747 value returned by `init_prim_class.'
2748 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2749 primitive type declarations.
2750 (JvPrimClass): Cast to `jclass' removed.
2751 * java/lang/Class.h (Class): New constructor.
2752 (Class): New copy constructor.
2753 (initializePrim): New prototype.
2754 (_Jv_PrimClass): Field removed.
2755 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2756 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2757 (class java::lang::Object): `finalize' moved up front.
2758 * java/lang/natClass.cc
2759 (isAssignableFrom): Turned outline.
2760 (isInstance): Likewise.
2761 (isInterface): Likewise, fixed indentation.
2762 (initializePrim): New function.
2764 2001-01-07 Anthony Green <green@redhat.com>
2766 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2768 * Makefile.in: Rebuilt.
2770 * scripts/TexinfoDoclet.java: New file.
2772 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2773 doc/java-awt-color.texi, doc/java-lang.texi,
2774 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2775 doc/java-awt-event.texi, doc/java-net.texi,
2776 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2777 doc/java-awt-image.texi, doc/java-security.texi,
2778 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2779 doc/java-text.texi, doc/java-beans-beancontext.texi,
2780 doc/java-util-jar.texi, doc/java-beans.texi,
2781 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2782 doc/java-lang-ref.texi: New files.
2784 2001-01-07 Anthony Green <green@redhat.com>
2786 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2787 be used for both input and output, so don't clear doInput.
2789 * java/lang/StringBuffer.java: Fix comments.
2791 2001-01-06 Anthony Green <green@redhat.com>
2793 * java/beans/PropertyDescriptor.java: Fix comment.
2794 * java/io/PushbackReader.java: Fix comment.
2795 * java/io/ObjectStreamClass.java: Fix comment.
2796 * java/io/DataInputStream.java: Fix comment.
2797 * java/io/PipedInputStream.java: Fix comments.
2798 * java/io/PipedReader.java: Fix comments.
2799 * java/sql/DatabaseMetaData.java: Fix comments.
2801 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2803 * java/io/PipedReader: Synchronize on "lock" instead of this.
2805 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2807 * java/lang/Thread.java: Update comment.
2809 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2810 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2811 * java/io/PipedReader: New implementation based on new
2813 * java/io/PipedWriter: Updated to match new PipedReader.
2815 2001-01-03 Tom Tromey <tromey@redhat.com>
2817 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2818 (getViewportSize): Insets include scrollbar size.
2819 (doLayout): Finished.
2820 (getScrollPosition): Wrote.
2821 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2823 2001-01-02 Tom Tromey <tromey@redhat.com>
2825 * java/awt/ScrollPane.java: Wrote.
2826 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2829 * java/awt/Panel.java (Panel()): Fixed.
2831 * java/awt/Component.java (isShowing): Return false if no peer
2832 exists, and true if component is visible and no parent exists.
2833 (getLocationOnScreen): Wrote.
2834 (getPreferredSize): Removed FIXME comment.
2835 (getMinimumSize): Likewise.
2836 (getAlignmentX, getAlignmentY): Wrote.
2838 (requestFocus): Wrote.
2839 (transferFocus): Wrote.
2840 (findNextFocusComponent): New method.
2841 (hasFocus()): Wrote.
2842 (checkImage): Wrote.
2843 (enableEvents): Call setEventMask on the peer.
2845 * java/awt/Container.java (list): Use super.list() to print self.
2846 (findNextFocusComponent): New method.
2847 (setLayout): Call invalidate.
2848 (findComponentAt): Wrote.
2850 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2852 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2853 the correct versions of various linuxthreads functions get linked.
2854 * Makefile.in: Rebuilt.
2855 * java/lang/natThread.cc (finalize_native): New static function. Call
2856 _Jv_ThreadDestroyData.
2857 (initialize_native): Register finalizer for "data".
2858 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2859 (_Jv_ThreadDestroyData): New prototype.
2860 * include/win32-threads.h: Ditto.
2861 * include/no-threads.h: Ditto.
2862 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2863 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2864 move mutex and condition variable destroy code from:
2865 (really_start): ...here.
2866 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2867 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2868 (_Jv_ThreadDestroyData): Implemented.
2869 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2870 (_Jv_AllocArray): Ditto.
2872 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2874 * java/sql/DriverManager.java (getConnection): Don't set user/password
2877 2000-12-27 Warren Levy <warrenl@redhat.com>
2879 Fix for PR libgcj/1358:
2880 * java/lang/System.java: Update Copyright date properly.
2881 * java/util/Calendar.java: Fix typo in comment.
2882 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2883 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2884 initialize times. Spec says to set H:M:S values to zero only if
2886 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2887 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2888 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2889 timezones and GMT offsets, being careful to account for units of
2890 milliseconds vs. seconds.
2892 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2894 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2895 not be assigned to Object.
2897 Fix for PR libgcj/1516:
2898 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2900 (can_widen): Declared inline. Remove redundant checks for void
2901 arguments and char->short conversion. Add special case for boolean
2903 (ffi_type): Declared inline.
2904 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2906 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2908 * java/sql/SQLWarning.java: Fixed typo in comment.
2910 2000-12-26 Tom Tromey <tromey@redhat.com>
2912 * java/awt/MenuItem.java (paramString): Now protected.
2914 * java/awt/MenuShortcut.java: Implements Serializable.
2916 * java/awt/MenuBar.java: Rewrote from scratch.
2918 * java/awt/MenuComponent.java (removeNotify): Wrote.
2919 Implements Serializable.
2921 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2924 * java/awt/CheckboxMenuItem.java: Wrote.
2926 2000-12-25 Tom Tromey <tromey@redhat.com>
2928 * java/awt/MenuContainer.java: Fixed typo.
2930 * Makefile.in: Rebuilt.
2931 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2932 * java/awt/SystemColor.java: New file.
2934 * java/awt/Color.java (rgba): Now package-private.
2936 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2938 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2941 * java/awt/MenuItem.java (addNotify): New method.
2942 (MenuItem(String,MenuShortcut)): New constructor.
2943 (setLabel): Notify peer of change.
2944 (setEnabled): Likewise.
2946 * java/awt/GridLayout.java (toString): New method.
2948 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2949 (FlowLayout): Check for LEADING and TRAILING.
2950 (setAlignment): Likewise.
2951 (layoutContainer): Handle component orientation.
2953 * java/awt/Component.java (orientatin): New field.
2954 (setComponentOrientation): Wrote.
2955 (getComponentOrientation): Wrote.
2957 * java/awt/Event.java (Event): Implements Serializable.
2958 (consumed): New field for serialization.
2959 * java/awt/Dimension.java (Dimension): Implements Serializable.
2960 * java/awt/Cursor.java (Cursor): Implements Serializable.
2961 * java/awt/Container.java (Container): No longer abstract.
2963 * java/awt/Choice.java: Wrote.
2964 * java/awt/Checkbox.java: Wrote.
2965 * java/awt/ItemSelectable.java: Documented.
2966 * java/awt/CheckboxGroup.java: Wrote.
2968 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2970 (getSize): Likewise.
2972 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2974 * java/io/FileDescriptor.java: Initialize fd to -1.
2975 Remove default constructor.
2977 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2979 * java/lang/mprec.h: Change C9X reference to refer to C99.
2981 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2983 * java/lang/Throwable.java (trace_enabled): New static field.
2984 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2985 trace_enabled not set.
2986 * prims.cc (main_init): Turn off trace_enabled while creating
2987 default exception objects.
2989 2000-12-21 Tom Tromey <tromey@redhat.com>
2991 * java/beans/PropertyChangeListener.java: Extends EventListener.
2992 * java/beans/VetoableChangeListener.java: Extends EventListener.
2994 * java/util/zip/Deflater.java (update, init): Now private.
2996 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2998 * java/util/BasicMapEntry.java: Re-added.
2999 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3000 (putAll): Test for BasicMapEntry.
3001 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3002 (putAll): Test for BasicMapEntry.
3003 Change references from `HashMap.Entry' to `Entry' in various places.
3004 * Makefile.am: Add BasicMapEntry.java.
3005 * Makefile.in: Rebuilt.
3007 2000-12-18 Warren Levy <warrenl@redhat.com>
3009 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3010 need to set timezone to a valid non-null value. Partial fix for
3013 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3015 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3017 * java/awt/Button.java (addNotify): Likewise.
3018 * java/awt/Label.java (addNotify): Likewise.
3019 * java/awt/Panel.java (addNotify): Likewise.
3020 * java/awt/Scrollbar.java (addNotify): Likewise.
3021 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3022 Remove redundant null checks.
3024 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3026 * COPYING: Update to current
3027 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3028 to 19yy as example year in copyright notice).
3030 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3032 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3033 end-of-stream if avail_in is 0.
3035 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3037 * java/util/ArrayList.java (data): Declare transient.
3038 (serialPersistantFields): Removed.
3039 (readObject): Use defaultReadObject(), not readFields().
3040 (writeObject): Use defaultWriteObject(), not writeFields().
3042 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3044 * java/util/Hashtable.java (put): Remove `last' variable.
3045 Link new entry to head of list.
3046 * java/util/HashMap.java (put): Ditto.
3048 2000-12-15 Tom Tromey <tromey@redhat.com>
3050 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3051 loader to Class.forName.
3053 2000-12-14 Tom Tromey <tromey@redhat.com>
3055 * java/util/ResourceBundle.java
3056 (getBundle(String,Locale,ClassLoader)): New method.
3057 (trySomeGetBundle): Added `loader' argument.
3058 (partialGetBundle): Likewise.
3060 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3061 maximumFractionDigits, maximumIntegerDigits,
3062 minimumFractionDigits, minimumIntegerDigits): Now
3065 * java/lang/Thread.java (checkAccess): Now final.
3067 * java/lang/RuntimePermission.java: Class now final.
3069 * java/io/StringWriter.java (StringWriter(int)): Now public.
3071 * java/io/SerializablePermission.java (legal_names): Now private.
3073 * java/lang/Character.java: Updated UnicodeBlock constants.
3074 * scripts/blocks.pl: Special case private use and surrogate
3077 2000-12-12 Tom Tromey <tromey@redhat.com>
3079 * Makefile.in: Rebuilt.
3080 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3082 (GCJCOMPILE): Use it.
3085 2000-12-11 Tom Tromey <tromey@redhat.com>
3087 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3088 New static final fields.
3090 * scripts/classes.pl (scan): Skip lines with leading `*'.
3091 Fix for PR libgcj/378.
3093 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3095 * configure.in: Remove check for -fuse-divide-subroutine.
3096 * configure: Rebuilt.
3098 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3100 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3102 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3104 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3105 Remove BasicMapEntry.java and Bucket.java.
3106 * Makefile.in: Rebuilt.
3107 * java/util/HashMap.java: Rewritten.
3108 * java/util/HashSet.java: Imported from classpath.
3109 * java/util/WeakHashMap.java: Imported from classpath.
3110 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3111 * java/util/Bucket.java: Deleted.
3112 * java/util/BasicMapEntry.java: Deleted.
3113 * java/util/Collections.java (search): Use a for-loop, not iterator
3115 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3116 of elements in source.
3117 (max): Use a for-loop.
3119 (reverse): Keep track of positions instead of using Iterator's
3120 nextIndex() and previousIndex().
3121 (shuffle(List)): Initialize defaultRandom if required using
3122 double-check thread safety idiom. Call two-argument shuffle method
3123 using defaultRandom.
3124 (defaultRandom): New field.
3125 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3126 using previousIndex() and nextIndex().
3127 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3128 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3129 * java/util/AbstractMap.java (toString): Use StringBuffer.
3130 * java/lang/ref/PhantomReference.java: Imported from classpath.
3131 * java/lang/ref/SoftReference.java: Ditto.
3132 * java/lang/ref/Reference.java: Ditto.
3133 * java/lang/ref/WeakReference.java: Ditto.
3134 * java/lang/ref/ReferenceQueue.java: Ditto.
3136 2000-12-10 Richard Henderson <rth@redhat.com>
3138 * configure.host: Recognize alpha*-*, not alphaev6-*.
3140 2000-12-09 Anthony Green <green@redhat.com>
3142 * configure.host: Enable interpreter for Alpha.
3144 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3146 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3147 (ZIP): Points at fastjar instead of zip.
3148 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3149 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3150 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3151 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3152 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3153 ($(x_java_source_files:.java=.class):): Likewise.
3154 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3156 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3157 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3158 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3159 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3160 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3161 gnu/gcj/runtime/VMClassLoader.h:,
3162 java/io/ObjectInputStream$$GetField.h:,
3163 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3164 (Makefile.in): Rebuilt.
3166 2000-12-08 Tom Tromey <tromey@redhat.com>
3169 * configure: Rebuilt.
3170 * configure.in: Use echo, not `:', to create .d files.
3172 2000-12-08 Warren Levy <warrenl@redhat.com>
3174 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3175 NullPointerException so proper check of offset can be done.
3177 2000-12-08 Warren Levy <warrenl@redhat.com>
3179 * java/io/FileInputStream.java (close): Check if the fd is valid.
3180 * java/io/RandomAccessFile.java (close): Ditto.
3181 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3182 * java/net/PlainSocketImpl.java (close): Ditto.
3184 2000-12-06 Tom Tromey <tromey@redhat.com>
3186 * java/awt/GridBagConstraints.java: Filled in values for static
3189 * java/util/BitSet.java: Updated copyright notice.
3191 * Makefile.in: Rebuilt.
3192 * Makefile.am (awt_java_source_files): Added new file.
3193 * java/awt/GridBagConstraints.java: New file.
3195 2000-12-05 Tom Tromey <tromey@redhat.com>
3197 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3198 Now package-private, not protected.
3199 * java/text/DateFormatSymbols.java (equals): Now private.
3200 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3201 * java/util/BitSet.java: Class no longer final.
3203 2000-12-04 Warren Levy <warrenl@redhat.com>
3205 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3206 out code dependent on compiler and library changes.
3208 2000-12-04 Warren Levy <warrenl@redhat.com>
3210 * java/io/FilePermission.java: Made class final per spec.
3211 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3212 method name to match spec (fixed typo).
3213 * java/util/LinkedList.java: Implements List.
3215 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3217 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3218 Edgar Villanueva <edgarvil@home.com>.
3220 2000-12-03 Tom Tromey <tromey@redhat.com>
3222 * java/awt/geom/Point2D.java: Added protected constructor.
3223 (equals): New method.
3224 (Float.setLocation(float,float)): New method.
3225 * java/awt/geom/Dimension2D.java: Added protected constructor.
3226 * java/awt/geom/AffineTransform.java: Made all constants public.
3227 (concatenate): Fixed typo in name.
3228 * java/awt/event/WindowAdapter.java: Class now abstract.
3229 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3230 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3233 * java/awt/AWTError.java: Extend Error, not
3234 IllegalStateException.
3236 * Makefile.in: Rebuilt.
3237 * Makefile.am (awt_java_source_files): Added new file.
3238 * java/awt/geom/RoundRectangle2D.java: New file.
3240 * Makefile.in: Rebuilt.
3241 * Makefile.am (awt_java_source_files): Added new file.
3242 * java/awt/FlowLayout.java: New file.
3244 * Makefile.in: Rebuilt.
3245 * Makefile.am (awt_java_source_files): Added new file.
3246 * java/awt/GridLayout.java: New file.
3248 2000-12-02 Tom Tromey <tromey@redhat.com>
3250 * Makefile.in: Rebuilt.
3251 * Makefile.am (awt_java_source_files): Added new files.
3252 * java/awt/CardLayout.java: New file.
3253 * java/awt/AWTPermission.java: New file.
3255 2000-12-01 Tom Tromey <tromey@redhat.com>
3257 * java/util/Vector.java (insertElementAt): Unconditionally
3258 increment elementCount.
3259 (removeRange): Clear unused slots in vector.
3261 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3263 * java/lang/natMath.cc: Declare fabsf() function.
3264 * java/lang/mprec.h: Don't include math.h.
3265 * java/lang/dtoa.c: Include string.h.
3266 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3269 From Adam Welc <welc@cs.purdue.edu>:
3270 * java/util/LinkedList.java (removeFirst): Update `first' field.
3271 Handle the last == first case.
3272 (removeLast): Update `last' field. Handle the last == first case.
3274 2000-12-01 Warren Levy <warrenl@cygnus.com>
3276 * Makefile.am: Added entries for new java.sql modules.
3277 * Makefile.in: Rebuilt.
3279 2000-12-01 Warren Levy <warrenl@cygnus.com>
3281 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3282 that aren't quite 1.2 compatible yet.
3284 2000-11-30 Warren Levy <warrenl@cygnus.com>
3286 * java/sql/Array.java: New file from classpath.
3287 * java/sql/BatchUpdateException.java: Ditto.
3288 * java/sql/Blob.java: Ditto.
3289 * java/sql/Clob.java: Ditto.
3290 * java/sql/Ref.java: Ditto.
3291 * java/sql/SQLData.java: Ditto.
3292 * java/sql/SQLInput.java: Ditto.
3293 * java/sql/SQLOutput.java: Ditto.
3294 * java/sql/Struct.java: Ditto.
3295 * java/sql/CallableStatement.java: Merged file from claspath.
3296 * java/sql/Connection.java: Ditto.
3297 * java/sql/DataTruncation.java: Ditto.
3298 * java/sql/DatabaseMetaData.java: Ditto.
3299 * java/sql/DriverManager.java: Ditto.
3300 * java/sql/PreparedStatement.java: Ditto.
3301 * java/sql/ResultSet.java: Ditto.
3302 * java/sql/ResultSetMetaData.java: Ditto.
3303 * java/sql/SQLException.java: Ditto.
3304 * java/sql/SQLWarning.java: Ditto.
3305 * java/sql/Statement.java: Ditto.
3306 * java/sql/Types.java: Ditto.
3308 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3310 * java/lang/natSystem.cc (init_properties): Set user.language and
3312 * configure.in: Check for setlocale.
3313 * configure: Rebuilt.
3314 * include/config.h.in: Rebuilt.
3316 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3317 the infate() call didn't deliver any output. Throw a ZipException if
3318 the needsDictionary() call returns true.
3319 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3320 * java/io/InputStreamReader: Use the default buffer size for the
3321 contained BufferedInputStream.
3323 2000-11-28 Warren Levy <warrenl@cygnus.com>
3325 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3326 more time zone entries.
3327 * java/text/SimpleDateFormat.java (format): Added case for
3330 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3332 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3333 directly rather than read() in all cases. Make primitive read
3334 implementations more efficient, as defined in JDK online docs.
3335 (skipBytes): Behave like the JDK's implementation.
3336 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3337 closed stream with checkStatus() whenever an IOException can be
3339 (checkStatus): New private method.
3341 2000-11-27 Warren Levy <warrenl@cygnus.com>
3343 * Makefile.am: Added natTimeZone.cc.
3344 * Makefile.in: Rebuilt.
3345 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3346 * java/text/DateFormatSymbols.java (ampms): Made package private.
3347 (eras): Made package private.
3348 (months): Made package private.
3349 (shortMonths): Made package private.
3350 (shortWeekdays): Made package private.
3351 (weekdays): Made package private.
3352 (formatPrefixes): New private field.
3353 (localPatternCharsDefault): Made private.
3354 (dateFormats): New package private field.
3355 (timeFormats): New package private field.
3356 (formatsForKey): New private method.
3357 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3358 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3359 * java/text/SimpleDateFormat.java: Merged with Classpath.
3360 * java/util/TimeZone.java: Merged with Classpath.
3361 * java/util/natTimeZone.cc: New file.
3363 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3365 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3366 (addElement): Don't increment elementCount twice. Doh.
3367 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3368 array needs to be expanded.
3370 * java/util/Collections.java (UnmodifiableCollection): Implement
3372 (UnmodifiableList): Throw UnsupportedOperationException from
3373 modification methods. Set `l' from the one-parameter constructor.
3374 (UnmodifiableMap): Implement toString().
3375 (SynchronizedCollection): Ditto.
3376 (SynchronizedList): Set `l' from the one-parameter constructor.
3377 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3378 (SynchronizedMap): Implement toString().
3380 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3382 * javax/naming/NameParser.java,
3383 javax/naming/directory/AttributeInUseException.java,
3384 javax/naming/directory/AttributeModificationException.java,
3385 javax/naming/directory/InvalidAttributeIdentifierException.java,
3386 javax/naming/directory/InvalidAttributesException.java,
3387 javax/naming/directory/InvalidAttributeValueException.java,
3388 javax/naming/directory/InvalidSearchControlsException.java,
3389 javax/naming/directory/InvalidSearchFilterException.java,
3390 javax/naming/directory/NoSuchAttributeException.java,
3391 javax/naming/directory/SchemaViolationException.java: New files.
3393 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3395 * javax/naming/InitialContext.java (rebind): Implement.
3396 (unbind): Implement.
3397 (rename): Implement.
3399 (listBindings): Implement.
3400 (destroySubcontext): Implement.
3401 (createSubcontext): Implement.
3402 (lookupLink): Implement.
3403 (getNameParser): Implement.
3404 (composeName): Implement.
3405 (addToEnvironment): Implement.
3407 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3409 * javax/naming/AuthenticationException.java,
3410 javax/naming/AuthenticationNotSupportedException.java,
3411 javax/naming/CannotProceedException.java,
3412 javax/naming/CommunicationException.java,
3413 javax/naming/ConfigurationException.java,
3414 javax/naming/ContextNotEmptyException.java,
3415 javax/naming/InsufficientResourcesException.java,
3416 javax/naming/InterruptedNamingException.java,
3417 javax/naming/InvalidNameException.java,
3418 javax/naming/LimitExceededException.java,
3419 javax/naming/LinkException.java,
3420 javax/naming/LinkLoopException.java,
3421 javax/naming/MalformedLinkException.java,
3422 javax/naming/NameAlreadyBoundException.java,
3423 javax/naming/NameNotFoundException.java,
3424 javax/naming/NamingSecurityException.java,
3425 javax/naming/NoPermissionException.java,
3426 javax/naming/NotContextException.java,
3427 javax/naming/PartialResultException.java,
3428 javax/naming/ReferralException.java,
3429 javax/naming/ServiceUnavailableException.java,
3430 javax/naming/SizeLimitExceededException.java,
3431 javax/naming/TimeLimitExceededException.java: New files.
3433 * javax/naming/Name.java (clone): New method.
3434 (compareTo): New method.
3435 (isEmpty): New method.
3436 (getAll): New method.
3437 (getPrefix): New method.
3438 (getSuffix): New method.
3439 (startsWith): New method.
3440 (endsWith): New method.
3441 (addAll): New method.
3442 (addAll): New method.
3445 (remove): New method.
3447 * javax/naming/Context.java (lookup): New method.
3448 (rebind): New method.
3449 (unbind): New method.
3450 (rename): New method.
3452 (listBindings): New method.
3453 (destroySubcontext): New method.
3454 (createSubcontext): New method.
3455 (lookupLink): New method.
3456 (getNameParser): New method.
3457 (composeName): New method.
3458 (addToEnvironment): New method.
3459 (removeFromEnvironment): New method.
3460 (getEnvironment): New method.
3461 (close): New method.
3462 (getNameInNamespace): New method.
3464 * javax/naming/InitialContext.java (lookup): New method.
3465 (rebind): New method.
3466 (unbind): New method.
3467 (rename): New method.
3469 (listBindings): New method.
3470 (destroySubcontext): New method.
3471 (createSubcontext): New method.
3472 (lookupLink): New method.
3473 (getNameParser): New method.
3474 (composeName): New method.
3475 (addToEnvironment): New method.
3476 (removeFromEnvironment): New method.
3477 (getEnvironment): New method.
3478 (close): New method.
3479 (getNameInNamespace): New method.
3481 2000-11-26 Tom Tromey <tromey@cygnus.com>
3483 * Makefile.in: Rebuilt.
3484 * Makefile.am (core_java_source_files): Added
3485 RuntimePermission.java.
3486 * java/lang/RuntimePermission.java: Imported from Classpath.
3487 * java/lang/Thread.java (getContextClassLoader): Now
3488 synchronized. Added security code.
3489 (setContextClassLoader): Likewise.
3491 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3492 length field of array.
3493 (_Jv_NewPrimArray): Likewise.
3494 * gcj/array.h (__JArray): `length' field now const. Added
3497 2000-11-26 Anthony Green <green@redhat.com>
3499 * javax/naming/spi/NamingManager.java,
3500 javax/naming/spi/ObjectFactory.java,
3501 javax/naming/spi/InitialContextFactory.java,
3502 javax/naming/spi/InitialContextFactoryBuilder.java,
3503 javax/naming/RefAddr.java, javax/naming/Reference.java,
3504 javax/naming/NamingException.java, javax/naming/Context.java,
3505 javax/naming/Referenceable.java,
3506 javax/naming/directory/InitialDirContext.java,
3507 javax/naming/directory/DirContext.java,
3508 javax/naming/directory/Attributes.java,
3509 javax/naming/directory/Attribute.java,
3510 javax/naming/StringRefAddr.java,
3511 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3512 javax/naming/InitialContext.java,
3513 javax/naming/NoInitialContextException.java: New files.
3515 2000-11-25 Anthony Green <green@redhat.com>
3517 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3518 (_Jv_NewPrimArray): Likewise.
3519 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3520 (class JArray): Removed constructor.
3522 * java/lang/Thread.java (context_class_loader): New private data.
3523 (getContextClassLoader): New method.
3524 (setContextClassLoader): New method.
3525 (Thread): Initialize context_class_loader.
3527 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3528 (getResource): Rename to findResource.
3529 (findResource): New method. Used to be getResource.
3530 (getResourceAsStream): Deleted.
3531 (jarFileize): Extracted logic from URLClassLoader constructor into
3532 this new private method.
3533 (addURL): New protected method.
3534 (URLClassLoader): Call jarFileize. Use addElement instead of
3536 (findResources): New method.
3538 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3539 (getResource): Implement correct logic.
3540 (findResource): New method.
3541 (getResources): New method.
3542 (findClass): Create a ClassNotFoundException with the name of the
3543 class rather than nothing at all.
3544 (defineClass) Only throw ClassFormatError.
3546 * java/lang/Class.java (forName): New method.
3547 * java/lang/Class.h (forName): New method.
3548 * java/lang/natClass.cc (forName): New method.
3550 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3552 * java/lang/System.java (setProperties): Only call init_properties()
3553 if properties is null.
3554 (getProperties): Ditto.
3555 (getProperty): Ditto.
3556 (setProperty): Call init_properties if properties are null.
3557 (prop_init): Remove field.
3558 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3559 method. Check for null properties after synchronizing instead of
3560 prop_init flag. Set the properties field last for thread safety.
3562 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3563 test for gcj.dumpobjects property and enable object stream dumping
3565 (dumpElement): No longer native.
3566 (dumpElementln): Ditto.
3567 (setDump): Do not define.
3568 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3569 (dumpElementln): Removed.
3572 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3574 * configure: Rebuilt.
3575 * Makefile.in: Rebuilt.
3576 * Makefile.am (built_java_source_files): Add Configuration.java.
3577 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3578 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3579 Create `gnu' directory in the build tree.
3580 * gnu/classpath/Configuration.java.in: New file.
3582 2000-11-24 Tom Tromey <tromey@cygnus.com>
3584 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3586 (_Jv_NewPrimArray): Likewise.
3588 * gcj/array.h (__JArray): `length' field now const. Added
3590 (class JArray): Added constructor.
3592 2000-11-23 Mark Wielaard <mark@klomp.org>
3594 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3597 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3599 * java/util/Vector.java: Improve exception messages.
3600 (Vector): Check initialCapacity for IllegalArgumentException.
3601 (tromToSize): Don't check for elementCount == elementData.length
3603 (toArray): Don't try to set null marker if target array is the same
3604 length as the vector.
3606 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3608 * Makefile.in: Rebuilt.
3609 * Makefile.am (core_java_source_files): Added Collections.java.
3610 * java/util/List.java: Merged from classpath.
3611 * java/util/Vector.java: Ditto.
3612 * java/util/Collections.java: From classpath.
3613 * java/util/ArrayList.java (addAll(Collection)): Call
3614 addAll(int,Collection) instead of duplicating code.
3615 (indexOf): Clean up int initialization.
3616 (clear): Set cleared array entries to null, to allow garbage
3618 * java/util/List.java: Minor formatting fixes.
3619 * java/util/SimpleTimeZone.java: ditto.
3621 2000-11-18 Tom Tromey <tromey@cygnus.com>
3623 * Makefile.in: Rebuilt.
3624 * Makefile.am (core_java_source_files): Added new files.
3625 * java/lang/reflect/ReflectPermission.java: New class.
3626 * java/io/FileFilter.java: From Classpath
3627 * java/io/FilePermission.java: From Classpath.
3629 2000-11-17 Tom Tromey <tromey@cygnus.com>
3631 * java/lang/reflect/AccessibleObject.java (isAccessible,
3632 setAccessible): Now public.
3634 * java/lang/natString.cc: Include Locale.h.
3635 (toUpperCase): Added `locale' argument. Handle locale
3637 (toLowerCase): Added `locale' argument. Handle locale
3639 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3640 CAPITAL_I): New defines.
3641 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3644 (toUpperCase, toLowerCase): New methods. Variants which accept
3647 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3650 * java/util/PropertyPermission.java: Re-merged from Classpath.
3652 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3654 * java/text/StringCharacterIterator.java: Reindented.
3655 (setText): New method.
3657 2000-11-17 Mark Wielaard <mark@klomp.org>
3659 Merge with Classpath (changes by Bryce McKinlay)
3660 * java/util/jar/*.java: Reformat all to unofficial standard coding
3661 style. No changes of substance.
3663 2000-11-17 Mark Wielaard <mark@klomp.org>
3665 * java/util/zip/*.java: Javadoc updates.
3667 2000-11-17 Tom Tromey <tromey@cygnus.com>
3669 * java/text/CollationKey.java: Implement Comparable.
3670 (compareTo(Object)): New method.
3671 * java/text/Collator.java (compare(Object,Object)): New method.
3672 Implement Comparator.
3674 * java/util/zip/InflaterInputStream.java (available): New method.
3675 (close): New method.
3676 (read, available, skip, fill): Throw exception if stream closed.
3677 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3678 getNextEntry): Throw exception if closed.
3680 2000-11-16 Tom Tromey <tromey@cygnus.com>
3682 * java/io/PushbackReader.java: Merged with Classpath.
3683 * java/util/Arrays.java: Updated from Classpath.
3685 * scripts/blocks.pl: New file.
3686 * java/lang/Character.java (Subset): New class.
3687 (UnicodeBlock): New class.
3689 * java/lang/Math.java (toDegrees, toRadians): New methods.
3691 * java/lang/Float.java: Implement Comparable.
3692 (compareTo): New methods.
3693 * java/lang/Double.java: Implement Comparable.
3694 (compareTo): New methods.
3696 2000-11-16 Warren Levy <warrenl@cygnus.com>
3698 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3700 (listeners): Made transient.
3701 (source): Renamed from 'bean'.
3702 (children): New field for serialization.
3703 (propertyChangeSupportSerializedDataVersion): Ditto.
3704 (serialVersionUID): Ditto.
3705 (writeObject): New serialization method.
3706 (readObject): New serialization method.
3707 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3709 (listeners): Made transient.
3710 (source): Renamed from 'bean'.
3711 (children): New field for serialization.
3712 (vetoableChangeSupportSerializedDataVersion): Ditto.
3713 (serialVersionUID): Ditto.
3714 (writeObject): New serialization method.
3715 (readObject): New serialization method.
3716 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3717 to allow constructor to have a return type (i.e. the class that the
3718 constructor constructs).
3720 2000-11-14 Tom Tromey <tromey@cygnus.com>
3722 * Makefile.in: Rebuilt.
3723 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3726 2000-11-02 Warren Levy <warrenl@cygnus.com>
3728 * java/io/ObjectInputStream.java (readObject): Added code to
3729 conditionally dump out the serialized data.
3730 Handle ENDBLOCKDATA case a bit more gracefully since the current
3731 behavior doesn't seem to work as expected.
3732 (readStreamHeader): Added code for serialized data dumper.
3733 (readNextBlock): Ditto.
3734 (readFields): Ditto.
3735 (dump): New private static field for turning on/off dumper.
3736 (setDump): New native method.
3737 (dumpElement): New native method.
3738 (dumpElementln): New native method.
3739 * java/io/natObjectInputStream.cc (setDump): New method.
3740 (dumpElement): New method.
3741 (dumpElementln): New method.
3743 2000-11-02 Warren Levy <warrenl@cygnus.com>
3745 * java/net/InetAddress.java (addr): Renamed from 'address'.
3746 (address): New field to match Serialized Form doc.
3747 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3748 (family): New serialization field.
3749 (serialVersionUID): New field.
3750 (readObject): New method.
3751 (writeObject): New method.
3752 (getFamily): New native method.
3753 (InetAddress): Set family.
3754 * java/net/natInetAddress.cc (getFamily): New method.
3755 (addr): Renamed from 'address'.
3756 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3757 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3758 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3760 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3762 * java/util/AbstractList.java (SubList): Make it a top-level private
3764 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3766 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3767 * Makefile.in: Rebuilt.
3769 2000-11-02 Tom Tromey <tromey@cygnus.com>
3771 * Makefile.in: Rebuilt.
3772 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3775 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3777 * java/util/AbstractList.java (remove): Comment out modCount increment
3778 to work around compiler bug.
3781 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3783 * java/util/AbstractList.java: Throw messages with
3784 IndexOutOfBoundsExceptions.
3785 (listIterator()): Call listIterator(0).
3786 (size): New field. Initialize to size().
3787 (hasNext): Test position against size, not size().
3788 (remove): Increment knownMod by one instead of resetting it from
3791 (SubList.upMod): Removed.
3792 (SubList.set): Don't call upMod() or update knownMod.
3793 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3794 (SubList.remove): Ditto.
3795 (SubList.addAll): Don't call backingList.size(). Increment size from
3797 (SubList.iterator): New method. Call listIterator(0).
3798 (SubList.listIterator): New method. Restore code to return an anonymous
3799 listIterator implementation (with some changes).
3800 * java/util/AbstractSequentialList.java: Throw messages with
3801 IndexOutOfBoundsExceptions.
3802 (addAll): Add a specnote.
3803 * java/util/ArrayList.java (removeRange): Get the math right.
3804 (addAll): Increment modCount _before_ creating iterator.
3805 * java/util/LinkedList.java: Rewritten, mostly.
3807 2000-11-01 Tom Tromey <tromey@cygnus.com>
3809 * scripts/encodings.pl: Added `ASCII' alias.
3810 * Makefile.in: Rebuilt.
3811 * Makefile.am (convert_source_files): Added new files.
3812 * gnu/gcj/convert/Input_ASCII.java: New file.
3813 * gnu/gcj/convert/Output_ASCII.java: New file.
3814 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3815 out-of-range characters.
3816 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3817 (read): Swap bytes if required. Treat `count' as character count,
3819 (write): Likewise. Also, handle case where iconv fails on a given
3821 (init): Put encoding into exception.
3822 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3823 (static): Call iconv_init. Rebuilt alias list.
3824 (iconv_init): New private method.
3826 2000-11-01 Tom Tromey <tromey@cygnus.com>
3828 * Makefile.in: Rebuilt.
3829 * Makefile.am (install-exec-hook): Only make a single symlink, and
3830 remove the destination before making the link.
3831 * configure: Rebuilt.
3832 * configure.in: Call AC_PROG_LN_S.
3834 2000-10-31 Warren Levy <warrenl@cygnus.com>
3836 * jni.cc: Added include of java/lang/ThreadGroup.h.
3837 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3838 per change of 2000-10-05.
3840 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3842 * java/util/BitSet.java: Updated @specnote.
3844 * java/io/Reader.java: Merge docs from classpath.
3845 (skip): Synchronize on `lock'.
3846 * java/io/FileReader.java: Import correct implementation from
3848 * java/io/StringReader.java: Merge docs from classpath.
3849 (ready): Throw IOException if stream is closed.
3851 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3853 * java/util/AbstractCollection.java (addAll): Use size() instead of
3854 hasNext() in iterator loop.
3856 (contains): Ditto. Simplify loop.
3857 (containsAll): Ditto.
3862 (toString): Ditto. Use string concatenation operators, not
3864 * java/util/AbstractList.java (addAll): Use size() instead of
3865 hasNext() in iterator loop.
3868 (indexOf): Ditto. Don't take null check outside of the loop.
3869 (iterator): Return an AbstractListItr instead of anonymous class.
3870 (lastIndexOf): Use a for loop bounded by size() instead of
3871 hasPrevious() in iterator loop.
3872 (listIterator): Return an AbstractListItr.
3873 (removeRange): Remove bounds checking code and docs.
3874 (AbstractListItr): New inner class. Code moved here from
3876 (SubList.iterator): Removed. Use default implementation from
3877 AbstractList instead.
3878 (SubList.listIterator): As above.
3879 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3880 instead of hasNext() in iterator loop.
3881 (containsValue): Ditto.
3887 (toString): Ditto. Use string concatenation operators, not
3889 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3890 bounded by size() instead of hasNext() in iterator loop.
3891 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3892 part of normal execution flow. Do an explicit null check instead.
3893 * java/util/ArrayList.java (_iSize): Rename to `size'.
3894 (_arData): Rename to `data'.
3895 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3898 (removeRange): Make protected. Don't check bounds.
3899 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3901 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3903 (addAll (int, Collection)): Check lower bounds. Simplify exception
3905 (clone): Clone the data array too.
3906 (indexOf): Inline doesEqual().
3907 (lastIndexOf): Ditto.
3908 (clear): Don't set array data to null.
3909 (set): Check lower bounds. Simplify exception string.
3910 (toArray): Correct comment.
3911 (trimToSize): Don't update modCount, this is not a structural change.
3914 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3916 (toString): Declare `bit' as long, not int.
3917 (data): Made package-private, not private.
3919 2000-10-27 Warren Levy <warrenl@cygnus.com>
3921 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3922 array elements to true.
3924 2000-10-27 Warren Levy <warrenl@cygnus.com>
3926 * Makefile.am: Added locale files from Classpath.
3927 * Makefile.in: Rebuilt.
3928 * gnu/java/locale/Calendar.java: New file.
3929 * gnu/java/locale/Calendar_de.java: New file.
3930 * gnu/java/locale/Calendar_en.java: New file.
3931 * gnu/java/locale/Calendar_nl.java: New file.
3932 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3933 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3934 serialization compatibility.
3935 (scale): Made private.
3936 (serialVersionUID): New field.
3937 * java/math/BigInteger.java (ival): Made transient.
3938 (words): Made transient.
3939 (bitCount): New serialization field.
3941 (firstNonzeroByteNum): Ditto.
3942 (lowestSetBit): Ditto.
3945 (serialVersionUID): New field.
3946 (readObject): New method.
3947 (writeObject): New method.
3948 * java/util/BitSet.java (serialVersionUID): New field.
3949 * java/util/Calendar.java: Replaced with Classpath file.
3950 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3951 of getDefault() for TimeZone or Locale instead of passing nulls.
3952 * java/util/Locale.java (serialVersionUID): New field.
3953 (writeObject): New method.
3954 (readObject): New method.
3955 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3957 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3959 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3960 (core_java_source_files): Put java.lang, java.io, and java.util here.
3961 (ordinary_java_source_files): Order so that core_java_source_files are
3963 (java_source_files): Reorder so that special_java_source_files are
3965 * configure.in: Don't pass -I flag to gcj.
3966 * Makefile.in: Rebuilt.
3967 * configure: Rebuilt.
3969 2000-10-25 Tom Tromey <tromey@cygnus.com>
3971 * Makefile.in: Rebuilt.
3972 * Makefile.am (install-exec-hook): New target.
3974 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3976 * java/util/EventObject.java: Merged from classpath.
3978 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3981 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3983 * java/util/AbstractSet.java (equals): Re-installed original code.
3985 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3987 * Makefile.am: Added rules for libgcjx library.
3988 * Makefile.in: Rebuilt.
3989 * configure.in: Added check for X.
3990 * configure: Rebuilt.
3991 * gnu/awt/LightweightRedirector.java: New file.
3992 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3993 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3994 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3995 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3996 * gnu/awt/j2d/MappedRaster.java: New file.
3997 * gnu/awt/xlib/XCanvasPeer.java: New file.
3998 * gnu/awt/xlib/XEventLoop.java: New file.
3999 * gnu/awt/xlib/XEventQueue.java: New file.
4000 * gnu/awt/xlib/XFontMetrics.java: New file.
4001 * gnu/awt/xlib/XFramePeer.java: New file.
4002 * gnu/awt/xlib/XGraphics.java: New file.
4003 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4004 * gnu/awt/xlib/XPanelPeer.java: New file.
4005 * gnu/awt/xlib/XToolkit.java: New file.
4006 * gnu/gcj/xlib/Clip.java: New file.
4007 * gnu/gcj/xlib/Colormap.java: New file.
4008 * gnu/gcj/xlib/Display.java: New file.
4009 * gnu/gcj/xlib/Drawable.java: New file.
4010 * gnu/gcj/xlib/Font.java: New file.
4011 * gnu/gcj/xlib/GC.java: New file.
4012 * gnu/gcj/xlib/Pixmap.java: New file.
4013 * gnu/gcj/xlib/Screen.java: New file.
4014 * gnu/gcj/xlib/Visual.java: New file.
4015 * gnu/gcj/xlib/WMSizeHints.java: New file.
4016 * gnu/gcj/xlib/Window.java: New file.
4017 * gnu/gcj/xlib/WindowAttributes.java: New file.
4018 * gnu/gcj/xlib/XAnyEvent.java: New file.
4019 * gnu/gcj/xlib/XButtonEvent.java: New file.
4020 * gnu/gcj/xlib/XColor.java: New file.
4021 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4022 * gnu/gcj/xlib/XConnectException.java: New file.
4023 * gnu/gcj/xlib/XEvent.java: New file.
4024 * gnu/gcj/xlib/XException.java: New file.
4025 * gnu/gcj/xlib/XExposeEvent.java: New file.
4026 * gnu/gcj/xlib/XID.java: New file.
4027 * gnu/gcj/xlib/XImage.java: New file.
4028 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4029 * gnu/gcj/xlib/natClip.cc: New file.
4030 * gnu/gcj/xlib/natColormap.cc: New file.
4031 * gnu/gcj/xlib/natDisplay.cc: New file.
4032 * gnu/gcj/xlib/natDrawable.cc: New file.
4033 * gnu/gcj/xlib/natFont.cc: New file.
4034 * gnu/gcj/xlib/natGC.cc: New file.
4035 * gnu/gcj/xlib/natPixmap.cc: New file.
4036 * gnu/gcj/xlib/natScreen.cc: New file.
4037 * gnu/gcj/xlib/natVisual.cc: New file.
4038 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4039 * gnu/gcj/xlib/natWindow.cc: New file.
4040 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4041 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4042 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4043 * gnu/gcj/xlib/natXColor.cc: New file.
4044 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4045 * gnu/gcj/xlib/natXException.cc: New file.
4046 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4047 * gnu/gcj/xlib/natXImage.cc: New file.
4048 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4049 * java/awt/EventDispatchThread.java: Start thead on creation.
4051 2000-10-20 Tom Tromey <tromey@cygnus.com>
4053 From Arno J. Klaassen:
4054 * interpret.cc: Include <stdlib.h> for alloca.
4055 * defineclass.cc: Include <stdlib.h> for alloca.
4057 * Makefile.in: Rebuilt.
4058 * Makefile.am: Include deps.mk.
4059 (GCJCOMPILE): Added -MD, -MT, and -MF.
4060 ($(javao_files)): Don't depend on libgcj.zip.
4061 (all-recursive): New target.
4062 (%.lo:%.cc): Do dependency tracking.
4063 ($(nat_headers)): Don't depend on libgcj.zip.
4064 * configure: Rebuilt.
4065 * configure.in: Make .d files and deps.mk.
4067 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4069 * exception.cc: Don't #include "exception".
4070 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4072 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4073 * Makefile.in: Updated.
4075 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4077 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4078 * java/awt/peer/ComponentPeer.java (disable): Removed.
4081 (minimumSize): Removed.
4082 (preferredSize): Removed.
4085 * java/awt/peer/ListPeer.java (addItem): Removed.
4087 (minimumSize): Removed.
4088 (preferredSize): Removed.
4089 (setMultipleSelections): Removed.
4090 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4091 (remove): Renamed from removeMenu.
4092 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4094 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4095 (remove): Renamed from removeItem.
4096 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4097 (getMinimumSize): Removed.
4098 (getPreferredSize): Removed.
4099 (minimumSize): Removed.
4100 (preferredSize): Removed.
4101 (replaceText): Removed.
4102 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4103 (preferredSize): Removed.
4104 (getMinimumSize): Removed.
4105 (getPreferredSize): Removed.
4106 (setEchoCharacter): Removed.
4108 2000-10-10 Warren Levy <warrenl@cygnus.com>
4110 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4111 * java/sql/Date.java (serialVersionUID): New field.
4112 * java/sql/Time.java (serialVersionUID): New field.
4113 * java/sql/Timestamp.java (serialVersionUID): New field.
4114 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4115 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4116 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4117 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4118 (readObject): New serialization method.
4119 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4120 (serialVersionOnStream): New field.
4121 (readObject): New serialization method.
4122 (getMonetaryDecimalSeparator): New method.
4123 (setMonetaryDecimalSeparator): New method.
4124 * java/text/NumberFormat.java (maxFractionDigits): New field.
4125 (maxIntegerDigits): New field.
4126 (minFractionDigits): New field.
4127 (minIntegerDigits): New field.
4128 (serialVersionOnStream): New field.
4129 (serialVersionUID): New field.
4130 (readObject): New serialization method.
4131 (writeObject): New serialization method.
4132 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4133 (serialVersionOnStream): New field.
4134 (serialVersionUID): New field.
4135 (readObject): New serialization method.
4137 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4139 * configure.in (GCJ): Avoid bogus error message when looking for
4140 (and not finding) gcj in the build tree.
4141 * configure: Rebuilt.
4143 2000-10-09 Tom Tromey <tromey@cygnus.com>
4145 * configure: Rebuilt.
4146 * configure.in: Include sys/types.h when checking for socklen_t.
4147 From Arno J. Klaassen.
4149 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4151 * include/jvm.h: Enable __builtin_expect().
4153 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4154 the main program. Fix for PR libgcj/341.
4156 2000-10-07 Tom Tromey <tromey@cygnus.com>
4158 * java/util/Properties.java: Merged with Classpath version.
4160 2000-10-05 Tom Tromey <tromey@cygnus.com>
4162 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4163 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4164 * java/lang/Class.h (Object): Added `class$' field.
4165 * java/lang/Object.h (Object): Added `class$' field.
4166 * defineclass.cc (ClassClass): Use `class$' form.
4167 (ClassObject): Likewise.
4168 * resolve.cc (ClassObject): Use `class$' form.
4169 (ObjectClass): Likewise.
4170 * interpret.cc (ClassError): Removed.
4171 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4173 (IntegerClass): Likewise.
4174 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4176 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4177 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4178 SerializableClass): Likewise.
4179 Include Serializable.h, Cloneable.h.
4180 * java/lang/natSystem.cc (SystemClass): Removed.
4181 (init_properties): Use `class$' form.
4182 * java/lang/natObject.cc (CloneableClass): Removed.
4183 (clone): Use `class$' form.
4184 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4185 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4186 ConstructorClass): Likewise.
4187 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4188 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4189 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4190 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4192 (ClassClass): Likewise.
4193 * include/jvm.h (StringClass): Use `class$' form.
4194 * prims.cc (ObjectClass): Removed.
4195 (_Jv_RunMain): Use `class$' form.
4196 (_Jv_AllocObject): Likewise.
4197 * jni.cc (ClassClass): Use `class$' form.
4198 (ThrowableClass): Likewise.
4199 (ObjectClass): Likewise.
4200 (MethodClass): Likewise.
4201 (ThreadGroupClass): Likewise.
4202 (NativeThreadClass): Likewise.
4203 * boehm.cc (ObjectClass): Removed.
4204 (ClassClass): Removed.
4205 (_Jv_MarkObj): Use `class$' form.
4206 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4209 2000-10-05 Warren Levy <warrenl@cygnus.com>
4211 * Makefile.am: Removed java/io/Replaceable.java and
4212 java/io/Resolvable.java.
4213 * Makefile.in: Rebuilt.
4214 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4216 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4218 (processResolution): Handle readResolve method via reflection with
4219 removal of Resolvable interface.
4220 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4221 method via reflection with removal of Replaceable interface.
4222 * java/io/Replaceable.java: Removed.
4223 * java/io/Resolvable.java: Removed.
4224 * java/security/Key.java (serialVersionUID): New field.
4225 * java/security/Provider.java (serialVersionUID): New field.
4226 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4228 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4230 * java/sql/DataTruncation.java (serialVersionUID): New field.
4231 * java/sql/SQLException.java (serialVersionUID): New field.
4232 * java/sql/SQLWarning.java (serialVersionUID): New field.
4233 * java/util/Date.java (serialVersionUID): New field.
4234 (millis): Made transient.
4235 (readObject): New method.
4236 (writeObject): New method.
4238 2000-10-05 Tom Tromey <tromey@cygnus.com>
4240 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4242 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4244 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4245 (JvRunMain): Set _Jv_argv and _Jv_argc.
4246 * java/awt/Component.java: Minor fixes.
4247 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4248 * java/awt/Toolkit.java (systemEventQueue): Removed.
4249 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4250 * java/awt/Window.java (getToolkit): Don't call super.
4251 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4252 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4253 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4254 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4255 * gnu/awt/gtk/GtkFramePeer.java: New file.
4256 * gnu/awt/gtk/GtkMainThread.java: New file.
4257 * gnu/awt/gtk/GtkToolkit.java: New file.
4258 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4259 * gnu/awt/gtk/gtkcommon.cc: New file.
4260 * gnu/awt/gtk/gtkcommon.h: New file.
4261 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4262 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4263 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4264 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4265 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4266 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4268 2000-09-30 Tom Tromey <tromey@cygnus.com>
4270 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4271 interrupted before modifying the cv's wait set.
4274 2000-09-30 Hans Boehm <boehm@acm.org>
4275 Bryce McKinlay <bryce@albatross.co.nz>
4277 Implement bitmap descriptor based marking for Boehm GC.
4279 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4280 * configure: Rebuilt.
4281 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4282 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4283 method get_finalizer().
4284 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4285 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4286 (_Jv_AllocObj): Add new jclass parameter.
4287 (_Jv_AllocArray): Ditto.
4288 (_Jv_BuildGCDescr): New prototype.
4289 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4290 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4291 get_finalizer() instead of direct finalizer vtable offset.
4292 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4293 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4294 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4295 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4296 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4297 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4298 (_Jv_DetermineVTableIndex): Ditto.
4299 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4300 calculations to account for new gc_descr field.
4301 * boehm.cc: #include gc_gcj.h.
4302 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4303 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4304 New commentary from HB. Mark the classes vtable.
4305 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4306 (GC_DEFAULT_DESCR): New #define.
4307 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4308 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4309 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4310 scan conservativly if size is less than min_heap_addr. Set vtable
4311 pointer of new object before returning.
4312 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4313 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4314 allocation for obj_kind_x.
4315 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4316 (_Jv_AllocObj): Set vtable on returned object.
4317 (_Jv_AllocArray): Ditto.
4318 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4319 (_Jv_NewPrimArray): Ditto.
4320 (_Jv_AllocObj): Declare as a friend.
4321 (_Jv_AllocArray): Ditto.
4322 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4323 from &ObjectClass into new array class. Remove offset-by-one
4324 adjustments from `method' size calculations to account for gc_descr
4327 2000-09-26 Tom Tromey <tromey@cygnus.com>
4329 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4330 `remove', not `add'.
4332 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4334 * java/lang/natSystem.cc (file_encoding): Added return statement.
4336 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4338 * Makefile.am: Re-work shell commands that exceeded command-line
4340 * Makefile.in: Rebuilt.
4342 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4344 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4345 * java/lang/natDouble.cc: Likewise.
4346 * java/lang/reflect/natMethod.cc: Likewise.
4347 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4349 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4351 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4353 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4354 * acinclude.m4: Arrange for automake to not bring in a new
4355 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4356 * Makefile.am: Leave it up to automake to subst GCJ.
4357 * aclocal.m4, configure, Makefile.in: Rebuilt.
4359 2000-09-13 Tom Tromey <tromey@cygnus.com>
4361 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4362 (get): Ensure Boolean class is initialized.
4363 * java/lang/reflect/natField.cc (BooleanClass): New define.
4364 (get): Ensure Boolean class is initialized.
4366 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4368 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4369 Initialize with anonymous class.
4370 (compareToIgnoreCase): New method.
4372 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4373 (uncaughtException): Set had_uncaught_exception.
4374 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4375 exit with error status if set.
4376 (_Jv_RunMain): Ditto.
4378 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4380 * configure: Rebuilt with new ../libtool.m4.
4382 2000-09-11 Tom Tromey <tromey@cygnus.com>
4384 * java/lang/reflect/Field.java (toString): Don't rely on
4387 2000-09-08 Tom Tromey <tromey@cygnus.com>
4389 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4390 default decoder use iconv.
4391 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4392 Let default encoder use iconv.
4393 * configure: Rebuilt.
4394 * configure.in: Check for nl_langinfo and <langinfo.h>.
4395 * java/lang/natSystem.cc (file_encoding): New function.
4396 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4398 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4400 * acinclude.m4: Simplify the tests for CC and CXX.
4401 * aclocal.m4, configure: Rebuilt.
4403 * acinclude.m4: Include libtool macros from the source tree.
4404 * aclocal.m4, configure: Rebuilt.
4406 2000-09-08 Warren Levy <warrenl@cygnus.com>
4408 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4409 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4410 * java/io/File.java (writeObject): Added.
4411 (readObject): Added.
4412 (serialVersionUID): Added.
4413 * java/io/ObjectOutputStream.java (writeObject): Initialized
4414 fieldsAlreadyWritten before recursion rather than after.
4415 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4416 * java/io/OptionalDataException.java (serialVersionUID): Added.
4417 (OptionalDataException): Made package private.
4418 * java/io/SyncFailedException.java (SyncFailedException): Removed
4419 default constructor to match spec.
4420 * java/lang/Boolean.java (serialVersionUID): Added.
4421 * java/lang/Byte.java (serialVersionUID): Added.
4422 * java/lang/Character.java (serialVersionUID): Added.
4423 * java/lang/Double.java (serialVersionUID): Added.
4424 * java/lang/Float.java (serialVersionUID): Added.
4425 * java/lang/Integer.java (serialVersionUID): Added.
4426 * java/lang/Long.java (serialVersionUID): Added.
4427 * java/lang/Number.java (serialVersionUID): Added.
4428 * java/lang/Short.java (serialVersionUID): Added.
4429 * java/lang/String.java (serialVersionUID): Added.
4430 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4432 * java/lang/reflect/InvocationTargetException.java
4433 (serialVersionUID): Added.
4434 * java/net/URL.java (handler): Made transient.
4435 (hashCode): Added field for serialization, per spec. and use
4436 cached value if available.
4437 (serialVersionUID): Added.
4438 (URL): Initialize hashCode.
4439 (set): Adjust hashCode.
4440 (readObject): New Method to initialize the protocol handler when
4442 (writeObject): New method.
4443 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4444 * java/text/Collator.java: Removed 'implements Serializable'.
4445 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4446 * java/util/Properties.java (serialVersionUID): Added.
4447 * java/util/Random.java (serialVersionUID): Added.
4448 (seed): Made private.
4449 (nextNextGaussian): Made private.
4450 (haveNextNextGaussian): Made private.
4451 * java/util/Stack.java (serialVersionUID): Added.
4452 * java/util/TimeZone.java (serialVersionUID): Added.
4453 * java/util/Vector.java (serialVersionUID): Added.
4455 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4457 * Makefile.am (Thread.h): Don't be friends with native threads
4459 * Makefile.in: Rebuilt.
4460 * java/lang/Thread.java (interrupt_flag): Make package-private.
4462 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4464 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4465 to avoid long long division.
4467 2000-09-06 Tom Tromey <tromey@cygnus.com>
4469 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4471 * java/lang/reflect/Method.java (toString): Use `getName' for
4474 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4475 `args' if method takes no parameters.
4477 Fix for PR java.lang/339:
4478 * java/lang/natPosixProcess.cc (fail): New function.
4479 (cleanup): New function.
4480 (startProcess): Use them. Create pipe so child can communicate
4481 exec failure back to parent.
4483 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4485 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4487 (send): Undo last patch. Remove the label only.
4489 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4491 * java/net/natInetAdress.cc: Ditto.
4493 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4495 2000-09-05 Tom Tromey <tromey@cygnus.com>
4497 * doc/cni.sgml: Updated from master copy.
4499 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4501 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4503 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4505 * java/lang/fdlibm.h: #undef __P if previously defined.
4506 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4507 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4511 2000-09-04 Tom Tromey <tromey@cygnus.com>
4513 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4516 2000-09-04 Anthony Green <green@redhat.com>
4518 Fix for PR java.io/203:
4519 * java/io/File.java (createTempFile): Obey directory argument.
4520 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4521 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4522 variable to set java.io.tmpdir on non-WIN32 systems.
4524 2000-09-04 Anthony Green <green@redhat.com>
4526 * java/io/File.java (deleteOnExit): New method.
4527 * gnu/gcj/runtime/FileDeleter.java: New class.
4528 * java/lang/natRuntime.cc (exit): Call
4529 FileDeleter.deleteOnExitNow()
4530 * Makefile.am: Add FileDeleter.java.
4531 * Makefile.in: Rebuilt.
4533 2000-09-02 Tom Tromey <tromey@cygnus.com>
4535 * Makefile.in: Rebuilt.
4536 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4537 environment variable.
4539 2000-09-01 Andrew Haley <aph@redhat.com>
4541 * java/io/StreamTokenizer.java: Don't throw a
4542 NumberFormatException if a field is numeric as far as the
4543 StreamTokenizer is concerned but not as far as Double.valueOf() is
4544 concerned: return a zero instead.
4546 2000-08-30 Tom Tromey <tromey@cygnus.com>
4548 * Makefile.in: Rebuilt.
4549 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4551 2000-08-28 Tom Tromey <tromey@cygnus.com>
4553 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4554 gnu/gcj/awt/ComponentDataBlitOp.java,
4555 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4556 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4557 java/awt/color/ICC_ColorSpace.java,
4558 java/awt/color/ICC_Profile.java,
4559 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4560 java/awt/image/ComponentColorModel.java,
4561 java/awt/image/ComponentSampleModel.java,
4562 java/awt/image/DataBuffer.java,
4563 java/awt/image/DataBufferByte.java,
4564 java/awt/image/DataBufferInt.java,
4565 java/awt/image/DataBufferUShort.java,
4566 java/awt/image/DirectColorModel.java,
4567 java/awt/image/IndexColorModel.java,
4568 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4569 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4570 java/awt/image/SinglePixelPackedSampleModel.java,
4571 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4572 Removed Latin-1 copyright symbols.
4573 * java/util/zip/ZipFile.java: Indentation fixes.
4575 2000-08-27 Mark Wielaard <mark@klomp.org>
4577 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4578 constructor, close can delete the file, finalize calls close.
4579 * java/util/jar/JarFile.java: Constructor that takes mode now
4582 2000-08-27 Anthony Green <green@redhat.com>
4584 * java/util/ArrayList.java, java/util/Timer.java,
4585 java/util/LinkedList.java, java/util/TimerTask.java,
4586 java/util/HashMap.java, java/util/AbstractMap.java,
4587 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4588 java/util/SortedSet.java: Imported from GNU Classpath.
4589 * Makefile.in: Rebuilt.
4590 * Makefile.am: Added new files.
4592 2000-08-26 Anthony Green <green@redhat.com>
4594 * Makefile.in: Rebuilt.
4595 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4598 * prims.cc: Include ClassLoader.h.
4599 (_Jv_RunMain): When executing jar files, classpath must be the jar
4600 file only. Lose our reference to the system ClassLoader in order
4601 to get a new one with the correct classpath.
4602 * java/lang/natSystem.cc (init_properties): When executing a jar
4603 file, only use the jar file for java.class.path.
4605 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4606 for bytecode archives.
4608 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4609 exists, but not Main-Class.
4611 2000-08-23 Mark Wielaard <mark@klomp.org>
4613 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4614 return -1 when fill() has no more data for the Inflater.
4616 2000-08-23 Mark Wielaard <mark@klomp.org>
4618 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4619 write(String) already does.
4621 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4623 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4624 to `alive_flag', call `init'.
4625 (init): New native method.
4626 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4629 2000-08-21 Mark Wielaard <mark@klomp.org>
4631 * Makefile.in: Rebuilt.
4632 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4634 (java/lang/reflect/Field.h): Likewise.
4635 (java/lang/reflect/Method.h): Likewise.
4636 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4639 2000-08-21 Tom Tromey <tromey@cygnus.com>
4641 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4644 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4646 * java/lang/natSystem.cc (init_properties): Change sourceware
4647 reference to sources.redhat.com.
4649 * include/java-props.h: Add _Jv_Jar_Class_Path.
4650 * prims.cc: Ditto. Set it from `gij -jar file' option.
4652 * java/lang/natSystem.cc (init_properties): Set java.class.path
4654 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4656 * java/util/PropertyPermission.java: Import from GNU Classpath.
4657 * Makefile.in: Rebuilt.
4658 * Makefile.am: Add java/util/PropertyPermission.java.
4659 * java/lang/System.java: Add setProperty method.
4661 * gij.cc (main): Add -jar option to execute jar files.
4662 (help): Describe -jar option.
4663 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4664 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4665 * gnu/gcj/runtime/FirstThread.java (main): New method.
4667 * java/util/jar/Attributes.java: Correct comment spelling.
4669 2000-08-20 Mark Wielaard <mark@klomp.org>
4671 * java/util/zip/Adler32.java: Make private variables really private
4672 * java/util/zip/CRC32.java: Make private variables really private
4673 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4675 * java/util/zip/InflaterInputStream.java: skip() could skip to
4677 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4678 * java/util/zip/ZipFile.java: size() new 1.2 method
4679 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4680 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4683 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4685 * java/util/jar/JarFile.java: Don't call
4686 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4689 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4691 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4692 Read the entire contents of the class file, not just what is
4695 * java/net/JarURLConnection.java: getEntry doesn't take any
4696 arguments. Return null if element is null.
4698 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4699 size from the archive, not the inflated size.
4701 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4702 java.util.zip.ZipFile.getEntry.
4704 * gij.cc (help): Change sourceware reference to
4707 2000-08-19 Tom Tromey <tromey@cygnus.com>
4709 * java/util/zip/ZipInputStream.java (createZipEntry):
4712 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4714 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4715 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4716 java/util/jar/JarInputStream.java,
4717 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4718 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4719 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4720 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4721 java/security/cert/Certificate.java,
4722 java/security/cert/CertificateEncodingException.java,
4723 java/security/cert/CertificateException.java,
4724 java/security/cert/CertificateExpiredException.java,
4725 java/security/cert/CertificateFactory.java,
4726 java/security/cert/CertificateFactorySpi.java,
4727 java/security/cert/CertificateNotYetValidException.java,
4728 java/security/cert/CertificateParsingException.java,
4729 java/security/cert/X509CRL.java,
4730 java/security/cert/X509CRLEntry.java,
4731 java/security/cert/X509Certificate.java,
4732 java/security/cert/X509Extension.java: Imported from Classpath.
4733 * java/util/Hashtable.java: Imported from Classpath.
4735 * java/util/zip/ZipInputStream.java: Create stub for
4738 * gcj/javaprims.h: Updated class list.
4740 * Makefile.in, gcj/Makefile.in: Rebuilt.
4741 * Makefile.am (ordinary_java_source_files): Add these new classes.
4743 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4745 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4746 * gnu/gcj/awt/GLightweightPeer.java: New file.
4747 * java/awt/BorderLayout.java: Implemented all methods.
4748 * java/awt/Button.java (actionListener, actionCommand): Renamed
4749 and modifier change.
4750 (addNotify): Call super.
4751 (dispatchEventImpl): New method.
4752 (getListeners): New method.
4753 (label): Made package-private, not private.
4754 * java/awt/Canvas.java: Implemented class body.
4755 * java/awt/Color.java (brighter): New method.
4756 (darker): New method.
4757 (hashCode): New method.
4758 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4759 (getGraphicsConfiguration): Delegate to
4760 getGraphicsConfigurationImpl().
4761 (getGraphicsConfigurationImpl): New method.
4762 (getToolkit): Only return value from peer if not null.
4763 (isDisplayable): Check with parent.
4764 (isShowing): No parent implies not showing.
4765 (getForeground): Check parent property if local is null.
4766 (getBackground): Likewise.
4767 (getFont): Likewise.
4768 (setForeground): Inform peer.
4769 (setBackground): Likewise
4770 (setLocale): Invalidate component.
4771 (getColorModel): Implemented.
4772 (setLocation): Invalidate, or ignore if no change.
4773 (setSize): Invalidate, or ignore if no change.
4774 (setBounds): Invalidate, or ignore if no change.
4775 (isOpaque): By default, heavyweight implies opaque.
4776 (isLightweight): Implemented.
4777 (getMaximumSize): Implemented.
4778 (doLayout): Implemented, NOP.
4779 (validate): Implemented, NOP.
4780 (invalidate): Only propagate to parent if parent was valid.
4781 (getGraphics): Implemented.
4782 (getFontMetrics): Implemented.
4783 (update): Implemented.
4784 (paintAll): Implemented.
4785 (repaint): Implemented all repaint methods.
4786 (print): Implemented.
4787 (printAll): Implemented.
4788 (createImage): Implemented.
4789 (dispatchEvent): Give the peer a chance to handle the event.
4790 (dispatchEventImpl): Dispatch paint events.
4791 (enableEvents): Lightweights enable events on parent component.
4792 (coalesceEvents): Coalesce paint events, and select event type
4794 (coalescePaintEvents): New method.
4795 (processEvent): Fix unfortunate ordering of statements, and call
4796 correct method for MOUSE_CLICKED.
4797 (processPaintEvent): New method.
4798 (addNotify): Allow container to notify children before event
4799 mask is set in peer.
4800 (addNotifyContainerChildren): New method.
4801 (removeNotify): Visibility should not change on removeNotify.
4802 (paramString): Implemented.
4803 (list): Implemented two of the list methods.
4804 * Container (myInsets): Removed, insets are managed by peer.
4805 (getInsets): Query peer.
4806 (addImpl): Fix reparenting, enable events for lightweights,
4807 initialize component array.
4808 (validate): Call doLayout in validateTree() instead.
4809 (validateTree): Do nothing if already valid. Call beginValidate(),
4810 endValidate() on peer. Call validateTree() instead of validate()
4811 for children that are containers. Mark valid after validation of
4813 (setFont): Partial implementation.
4814 (paint): Implemented.
4815 (visitChildren): New method.
4816 (visitChild): New method.
4817 (update): Implemented.
4818 (print): Implemented.
4819 (paintComponents): Implemented.
4820 (printComponents): Consider translation and clipping.
4821 (getComponentAt): Ignore invisible children. Return this if no
4823 (addNotify): Call super.
4824 (addNotifyContainerChildren): New method.
4825 (paramString): Implemented.
4826 (list): Implemented.
4827 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4829 (invokeLater): Likewise.
4830 (isDispatchThread): Likewise.
4831 * java/awt/FontMetrics (getLeading): Formula change.
4832 (getDescent): Consider leading also.
4833 (getMaxAscent): Default to getAscent().
4834 (getMaxDescent): Default to getDescent.
4835 (getMaxAdvance): Return value signifying unknown.
4836 (charWidth): Both methods implemented.
4837 (charsWidth): Implemented.
4838 (bytesWidth): Implemented.
4839 (getWidths): Implemented.
4840 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4842 (Frame): Rearragend constuctor chaining to disallow null being
4843 passed as a graphics configuration.
4844 (getTitle): Return empty string if null.
4846 (getIconImage): New method.
4847 (setIconImage): New method.
4848 (finalize): New method.
4849 (setMenuBar): Notify peer.
4850 (isResizable): New method.
4851 (setResizable): New method.
4852 (getState): New method.
4854 (remove): Implemented.
4855 (removeNotify): New method.
4856 (getFrames): New method.
4857 * java/awt/Graphics.java: Implemented body of class.
4858 * java/awt/Graphics2D.java: New file.
4859 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4860 * java/awt/Image.java: Implemented body of class.
4861 * java/awt/Panel.java (Panel): Call correct super constructor.
4862 (addNotify): Implemented.
4863 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4864 * java/awt/RenderingHints.java: New file.
4865 * java/awt/Toolkit.java (createComponent): Implemented.
4866 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4867 * java/awt/Window.java (Window): Two new constructors. Reordered
4868 constructor chaining.
4869 (getGraphicsConfigurationImpl): New method.
4870 (finalize): Call super.
4871 (addNotify): Call super.
4872 (pack): Do layout stuff.
4873 (show): Ensure that peer exists and that component is valid.
4874 (dispose): Dispose owned children.
4875 (getOwner): Simplify code, casting null pointers is valid.
4876 (getGraphicsConfiguration): Ask peer if local value is null.
4877 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4879 * java/awt/image/BufferedImage.java: New file.
4880 * java/awt/image/RasterOp.java: New file.
4881 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4882 More powerfull replacement for getColorModel().
4883 (getColorModel) Removed.
4884 (setEventMask) New method.
4885 * Makefile.am: Added new files.
4886 * Makefile.in: Rebuilt.
4888 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4890 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4891 (finit_leg_name): New global.
4892 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4893 `$finit$'. This is a backward compatibility hack.
4894 (java::lang::Class::_getMethods): Likewise.
4896 2000-08-15 Andrew Haley <aph@cygnus.com>
4898 * include/jvm.h (_Jv_HashCode): New hash code.
4900 2000-08-15 Tom Tromey <tromey@cygnus.com>
4902 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4904 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4906 * THANKS: More thanks.
4908 2000-08-10 Tom Tromey <tromey@cygnus.com>
4910 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4912 (connect): Likewise.
4914 (getOption): Likewise.
4915 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4916 case when errno not set.
4919 (receive): Likewise.
4920 (mcastGrp): Likewise.
4921 (setOption): Likewise.
4922 (getOption): Likewise.
4924 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4925 John Stracke <francis@ecal.com>
4927 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4928 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4930 (disconnect): Don't unset connected flag.
4931 (getHeaderField (String)): Call connect() if not connected.
4932 (getHeaderField (int)): Ditto.
4933 (getHeaderFieldKey): Ditto.
4934 (getHttpHeaders): Don't call connect().
4935 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4936 gotResponseVals): New fields.
4937 (getResponseCode): Call getResponseVals() conditionally.
4938 (getResponseMessage): Ditto.
4939 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4941 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4943 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4944 * Makefile.in: Rebuilt.
4945 * java/awt/Color.java (getTransparency): New method.
4946 * java/awt/Component.java: Various updates.
4947 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4948 after dealing with children.
4949 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4950 * java/awt/Window.java: Various new methods and updates.
4951 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4953 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4954 * java/awt/event/WindowEvent.java (paramString): Ditto.
4955 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4957 * java/awt/geom/Point2D.java (clone): Ditto.
4958 * java/awt/geom/RectangularShape.java (clone): Ditto.
4959 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4960 isAlphaPremultiplied): Make package-private, not private.
4962 2000-08-08 Tom Tromey <tromey@cygnus.com>
4964 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4965 surrogate characters.
4966 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4968 (write): Correct handling of surrogate characters.
4970 2000-08-07 Tom Tromey <tromey@cygnus.com>
4972 * java/lang/reflect/Method.java (hashCode): Use getName().
4973 (toString): Likewise.
4974 * java/lang/reflect/natMethod.cc (getType): Initialize
4977 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4979 * java/lang/reflect/Field.java (toString): Correct formatting.
4982 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4984 (receive): Streamlined.
4986 2000-08-05 Tom Tromey <tromey@cygnus.com>
4988 * java/io/PrintWriter.java: Merged comments from Classpath.
4989 (printlnUnsynchronized): Removed.
4990 (println()): Print the separator.
4991 (println): Call println(), not printlnUnsynchronized.
4992 (out): Now protected, to match spec.
4994 2000-08-04 Tom Tromey <tromey@cygnus.com>
4996 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4997 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5000 2000-08-03 Warren Levy <warrenl@cygnus.com>
5002 * java/io/ObjectInputStream.java (readFields): Turn off
5003 readDataFromBlock while reading via GetField.
5004 (GetField$1.get(String, Object)): Pass Class of default value to
5006 (getField): Allow for null default values.
5008 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5009 (PutField$1.put): Fixed calls of checkType in most of the put
5010 methods to pass the correct parameter.
5011 (PutField$1.put(String, Object)): Allow for null value arg.
5012 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5015 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5016 typo in spec'ed field name.
5017 (getSerialPersistentFields): Changed spelling of method to match
5018 the correct spelling of the spec'ed field name.
5020 2000-08-03 Tom Tromey <tromey@cygnus.com>
5022 * Makefile.in: Rebuilt.
5023 * Makefile.am (awt_java_source_files): Added new files.
5025 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5027 * Makefile.am: Add new AWT stubs.
5028 * java/awt/Canvas.java: New placeholder class.
5029 * java/awt/Checkbox.java: Ditto.
5030 * java/awt/CheckboxMenuItem.java: Ditto.
5031 * java/awt/Choice.java: Ditto.
5032 * java/awt/Dialog.java: Ditto.
5033 * java/awt/FileDialog.java: Ditto.
5034 * java/awt/List.java: Ditto.
5035 * java/awt/ScrollPane.java: Ditto.
5036 * java/awt/TextField.java: Ditto.
5037 * java/awt/datatransfer/Clipboard.java: Ditto.
5038 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5039 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5040 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5041 Some commented out. Partially implemented.
5042 * java/awt/natToolkit.cc: Removed file.
5044 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5046 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5047 Fixes "make -j" builds.
5048 * Makefile.in: Rebuild.
5050 2000-08-02 Tom Tromey <tromey@cygnus.com>
5052 * Makefile.in: Rebuilt.
5053 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5054 * java/net/natPlainSocketImpl.cc: Include posix.h.
5055 (accept): Use _Jv_select.
5056 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5057 (receive): Use _Jv_select.
5058 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5059 (available): Use _Jv_select.
5060 * java/lang/natSystem.cc: Include posix.h.
5061 (currentTimeMillis): Use _Jv_gettimeofday.
5062 * include/posix.h: New file.
5063 * posix.cc: New file.
5065 * scripts/encodings.pl: New file.
5066 * Makefile.in: Rebuilt.
5067 * Makefile.am (convert_source_files): Added IOConverter.java.
5068 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5070 (getDefaultDecodingClass): Canonicalize default encoding name.
5071 (getEncoder): Likewise.
5072 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5074 (getDefaultDecodingClass): Canonicalize default encoding name.
5075 (getDecoder): Likewise.
5076 * gnu/gcj/convert/IOConverter.java: New file.
5078 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5080 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5081 to match C declaration in ffi.h.
5082 * Makefile.am: Add java/awt/Button.java.
5083 * Makefile.in: Rebuilt.
5085 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5087 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5088 cast of the second argument to `ffi_raw_call' changed to match
5091 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5093 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5094 argument to `ffi_raw_call' changed to match prototype.
5096 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5098 * java/awt/Component.java (toString): Implemented.
5099 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5100 dispatchEvent() to dispatch the event.
5101 (removeImpl): Ditto.
5103 2000-07-30 Anthony Green <green@redhat.com>
5105 * java/awt/Component.java: Add treeLock object.
5106 (getTreeLock): Implement.
5107 (isShowing): Implement.
5109 2000-07-30 Tom Tromey <tromey@cygnus.com>
5111 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5113 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5115 * java/awt/Window.java (addNotify): Wrote.
5116 (addWindowListener): Wrote.
5118 (getWarningString): Wrote.
5119 (processEvent): Wrote.
5120 (processWindowEvent): Wrote.
5121 (removeWindowListener): Wrote.
5122 (show): Call validate(), setVisible().
5126 * java/awt/Toolkit.java (createWindow): Declare.
5128 * java/awt/Frame.java (addNotify): Use getToolkit to find
5131 * java/awt/Component.java (invalidate): Wrote.
5133 (getToolkit): Wrote.
5135 * java/awt/Container.java (addContainerListener): Removed
5137 (removeContainerListener): Likewise.
5139 (add(Component)): Use it.
5140 (add(String,Component)): Likewise.
5141 (add(Component,int)): Likewise.
5142 (add(Component,Object)): Likewise.
5143 (add(Component,Object,int)): Likewise.
5145 (getAlignmentX): Wrote.
5146 (getAlignmentY): Wrote.
5147 (getComponentAt): Wrote.
5148 (getMaximumSize): Wrote.
5149 (invalidate): Wrote.
5150 (list(PrintStream,int)): Wrote.
5151 (list(PrintWriter,int)): Wrote.
5152 (getMinimumSize): Wrote.
5153 (getPreferredSize): Wrote.
5154 (printComponents): Wrote.
5155 (processContainerEvent): Look at containerListener, not
5157 (remove): Added event processing and peer destruction.
5158 (removeAll): Use remove.
5159 (removeNotify): Wrote.
5161 (validateTree): Wrote.
5163 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5164 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5165 * java/awt/Container.java (addNotify): Don't create Container
5167 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5169 2000-07-30 Tom Tromey <tromey@cygnus.com>
5171 * java/awt/Container.java (remove(int)): Wrote.
5172 (remove(Component)): Wrote.
5173 (add(Component)): Wrote.
5174 (add(Component,int)): Wrote.
5176 (addNotify): Set our own peer.
5177 * java/awt/Scrollbar.java (listeners): Changed type.
5178 (Scrollbar): Don't initialize listeners.
5180 (setValue): Call setValues.
5181 (setMinimum): Likewise.
5182 (setMaxPriority): Likewise.
5183 (setVisibleAmount): Likewise.
5185 (setUnitIncrement): Forward to peer.
5186 (setLineIncrement): Call setUnitIncrement.
5187 (setPageIncrement): Call setBlockIncrement.
5188 (setBlockIncrement): Forward to peer.
5189 (addAdjustmentListener): Rewrote.
5190 (removeAdjustmentListener): Rewrote.
5191 (processAdjustmentEvent): Rewrote.
5192 (paramString): Wrote.
5193 * Makefile.in: Rebuilt.
5194 * Makefile.am (awt_java_source_files): Added Button.java.
5195 * java/awt/Button.java: New file.
5196 * java/awt/Toolkit.java (createLabel): Declare.
5197 (createButton): Likewise.
5198 (createScrollbar): Likewise.
5199 (createContainer): Likewise.
5200 * java/awt/Label.java (addNotify): Wrote.
5201 (setAlignment): Call setAlignment in the peer.
5202 (setText): Call setText in the peer.
5204 2000-07-28 Warren Levy <warrenl@cygnus.com>
5206 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5207 NotSerializableException with just the class name.
5209 2000-07-26 Andrew Haley <aph@cygnus.com>
5211 * interpret.cc (continue1): Insert missing break into switch.
5213 2000-07-28 Warren Levy <warrenl@cygnus.com>
5215 * java/io/ObjectStreamException.java: Made constructors protected.
5217 2000-07-27 Tom Tromey <tromey@cygnus.com>
5219 * java/io/OutputStreamWriter.java (close): Only flush if not
5222 2000-07-27 Warren Levy <warrenl@cygnus.com>
5224 * mauve-libgcj: Activated serialization tests.
5225 * gcj/field.h (getModifiers): Mask off unknown flags.
5226 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5227 spurious bits don't cause discrepancies.
5228 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5229 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5230 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5231 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5232 * java/lang/Throwable.java (serialVersionUID): New field.
5233 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5234 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5236 * java/lang/reflect/natMethod.cc: Ditto.
5237 * java/security/Key.java (serialVersionUID): Removed field for now.
5238 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5239 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5241 2000-07-22 Tom Tromey <tromey@cygnus.com>
5243 * java/awt/geom/RectangularShape.java (getPathIterator):
5246 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5248 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5249 stub libjava/java/awt/ColorModel.java which was located in the
5251 * libjava/java/awt/image/ComponentColorModel.java: New file.
5252 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5253 * libjava/java/awt/image/DataBuffer.java: New file.
5254 * libjava/java/awt/image/DataBufferByte.java: New file.
5255 * libjava/java/awt/image/DataBufferInt.java: New file.
5256 * libjava/java/awt/image/DataBufferUShort.java: New file.
5257 * libjava/java/awt/image/DirectColorModel.java: New file.
5258 * libjava/java/awt/image/PackedColorModel.java: New file.
5259 * libjava/java/awt/image/Raster.java: New file.
5260 * libjava/java/awt/image/SampleModel.java: New file.
5261 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5263 * libjava/java/awt/image/IndexColorModel.java: New file.
5264 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5265 java.awt.ColorModel stub.
5267 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5268 * gnu/gcj/util/Buffers.java: New file, utility class.
5270 * libjava/Makefile.am: Updated to include new files.
5271 * libjava/Makefile.in: Rebuilt.
5273 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5275 * java/io/StreamTokenizer.java: Merged with classpath.
5277 2000-07-20 Tom Tromey <tromey@cygnus.com>
5279 * Makefile.in: Rebuilt.
5280 * Makefile.am (awt_java_source_files): Updated for new files.
5281 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5282 * java/awt/Label.java: New file.
5283 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5284 (createIntersection, createUnion, getBounds2D): New methods.
5285 * java/awt/Scrollbar.java: New file.
5286 * java/awt/Shape.java: Updated to 1.2.
5287 * java/awt/geom/AffineTransform.java: New file.
5288 * java/awt/geom/Ellipse2D.java: New file.
5289 * java/awt/geom/NoninvertibleTransformException.java: New file.
5290 * java/awt/geom/PathIterator.java: New file.
5291 * java/awt/geom/Rectangle2D.java: New file.
5292 * java/awt/geom/RectangularShape.java: New file.
5293 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5294 * java/awt/geom/IllegalPathStateException.java: New file.
5296 * scripts/showval.java: New file.
5298 * scripts/classes.pl (scan): Print inner classes properly.
5299 * gcj/javaprims.h: Updated class list.
5301 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5302 initialize String fields for interpreted classes. Fixes bug
5303 reported by Hans Boehm.
5305 * java/io/File.java (getParentFile): New method, from Classpath
5306 via Oskar Liljeblad.
5308 * java/util/Vector.java (remove(Object)): Implemented.
5310 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5312 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5313 zero return from backtrace().
5315 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5317 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5319 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5320 before calling notifyAll().
5322 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5324 Add missing files from last check-in:
5325 * java/awt/image/ImageConsumer.java: New file.
5326 * java/awt/image/ImageProducer.java: New file.
5327 * java/awt/image/ImageObserver.java: New file.
5329 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5331 Merged implementation of java.applet from classpath:
5332 * java/applet/Applet.java: New file.
5333 * java/applet/AppletContext.java: New file.
5334 * java/applet/AppletStub.java: New file.
5335 * java/applet/AudioClip.java: New file.
5337 * Makefile.am: Added new java.applet classes.
5338 * Makefile.in: Rebuilt.
5340 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5343 * java/util/ResourceBundle.java (getLocale): stub.
5344 * Makefile.am: Added new AWT classes.
5345 * Makefile.in: Rebuilt.
5346 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5347 constructors. Fix toString() and paramString().
5348 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5349 * java/awt/CheckboxGroup.java: New class.
5350 * java/awt/ColorModel.java: New class.
5351 * java/awt/Component.java: Added stubs for most methods. Implemented
5353 * java/awt/Container.java: ditto.
5354 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5355 * java/awt/Cursor.java: ditto.
5356 * java/awt/Event.java: Fix paramString().
5357 * java/awt/EventQueue.java: New class. Implemented.
5358 * java/awt/Font.java: Added additional stub methods. Implemented
5360 * java/awt/FontMetrics.java: New class. Stubbed.
5361 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5363 * java/awt/Insets.java: New class. Implemented.
5364 * java/awt/Menu.java: Add new methods. Partially implemented.
5365 * java/awt/MenuItem.java: Add new methods and fields. Partially
5367 * java/awt/MenuShortcut.java: New class. Implemented.
5368 * java/awt/Panel.java: New class. Placeholder.
5369 * java/awt/PopupMenu.java: New class. Stubbed.
5370 * java/awt/Rectangle.java: New class. Implemented.
5371 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5372 * java/awt/event/ActionEvent.java: Implement paramString().
5373 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5374 * java/awt/event/ComponentEvent.java: Implement paramString().
5375 * java/awt/event/ContainerEvent.java: Implement paramString().
5376 * java/awt/event/FocusEvent.java: Implement paramString().
5377 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5378 * java/awt/event/HierarchyBoundsListener.java: New class.
5379 * java/awt/event/HierarchyEvent.java: New class.
5380 * java/awt/event/HierarchyListener.java: New class.
5381 * java/awt/event/InputMethodEvent.java: Implement paramString().
5382 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5383 exception if !catchExceptions.
5384 * java/awt/event/ItemEvent.java: Implement paramString().
5385 * java/awt/event/KeyEvent.java: Implement paramString().
5386 * java/awt/event/MouseEvent.java: Implement paramString().
5387 * java/awt/event/PaintEvent.java: Implement paramString().
5388 * java/awt/event/TextEvent.java: Implement paramString().
5389 * java/awt/event/WindowEvent.java: Implement paramString().
5391 AWT Peer interfaces:
5392 * java/awt/peer/ButtonPeer.java: New file.
5393 * java/awt/peer/ListPeer.java: New file.
5394 * java/awt/peer/CanvasPeer.java: New file.
5395 * java/awt/peer/MenuBarPeer.java: New file.
5396 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5397 * java/awt/peer/MenuComponentPeer.java: New file.
5398 * java/awt/peer/CheckboxPeer.java: New file.
5399 * java/awt/peer/MenuItemPeer.java: New file.
5400 * java/awt/peer/ChoicePeer.java: New file.
5401 * java/awt/peer/MenuPeer.java: New file.
5402 * java/awt/peer/ComponentPeer.java: Implemented.
5403 * java/awt/peer/PanelPeer.java: New file.
5404 * java/awt/peer/ContainerPeer.java: Implemented.
5405 * java/awt/peer/PopupMenuPeer.java: New file.
5406 * java/awt/peer/DialogPeer.java: New file.
5407 * java/awt/peer/ScrollPanePeer.java: New file.
5408 * java/awt/peer/FileDialogPeer.java: New file.
5409 * java/awt/peer/ScrollbarPeer.java: New file.
5410 * java/awt/peer/FontPeer.java: New file.
5411 * java/awt/peer/TextAreaPeer.java: New file.
5412 * java/awt/peer/FramePeer.java: Implemented.
5413 * java/awt/peer/TextComponentPeer.java: New file.
5414 * java/awt/peer/LabelPeer.java: New file.
5415 * java/awt/peer/TextFieldPeer.java: New file.
5416 * java/awt/peer/LightweightPeer.java: New file.
5417 * java/awt/peer/WindowPeer.java: Implemented.
5419 2000-07-06 Tom Tromey <tromey@cygnus.com>
5421 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5422 Initialize static final String fields.
5424 2000-07-03 Tom Tromey <tromey@cygnus.com>
5426 * java/io/PrintWriter.java (print): Call write(String), not
5427 print(String). See PR libgcj/277.
5428 (print(String)): Use write, not out.write.
5430 2000-06-30 Tom Tromey <tromey@cygnus.com>
5432 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5434 2000-06-27 Andrew Haley <aph@cygnus.com>
5436 * java/io/File.java (createTempFile): Close the FileDescriptor
5437 used to create a temp file. Fixes some of PR 203.
5438 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5439 collection if we run out of file handles.
5441 2000-06-28 Warren Levy <warrenl@cygnus.com>
5443 * gnu/java/security/provider/Gnu.java: New file.
5444 * gnu/java/security/provider/SHA.java: New file.
5445 * gnu/java/security/provider/SHA1PRNG.java: New file.
5446 * Makefile.am: Added the above files.
5447 * Makefile.in: Rebuilt.
5449 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5451 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5453 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5454 (destroyed_flag): Removed.
5455 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5456 (activeCount): Added spec note.
5458 2000-06-27 Warren Levy <warrenl@cygnus.com>
5460 * java/security/Principal.java: New file.
5461 * Makefile.am: Added Principal.java.
5462 * Makefile.in: Rebuilt.
5464 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5466 * java/awt/event/MouseEvent.java: Fixed coordinate space
5469 2000-06-27 Tom Tromey <tromey@cygnus.com>
5471 * java/io/PushbackInputStream.java (read): If there are characters
5472 in the buffer, don't also call super.read().
5473 * java/io/PushbackReader.java (read): If there are characters in
5474 the buffer, don't also call super.read().
5476 * java/lang/Double.java (valueOf): Call parseDouble().
5478 2000-06-26 Warren Levy <warrenl@cygnus.com>
5480 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5481 (newVal): Renamed to newValue.
5482 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5483 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5484 (revokeNow): Renamed to invalidateRefs.
5485 * java/io/OptionalDataException.java: Updated FIXME.
5486 (eof): New placeholder field.
5488 * java/io/WriteAbortedException.java (message): Made transient.
5489 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5490 * java/lang/Throwable.java (stackTrace): Made transient.
5491 * java/net/InetAddress.java: Made Serializable.
5492 * java/security/KeyPair.java: Made Serializable.
5493 * java/security/Provider.java: Replaced with Classpath version that
5494 implements serialization and proper methods.
5495 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5496 (limits): Renamed to choiceLimits.
5498 2000-06-24 Tom Tromey <tromey@cygnus.com>
5500 * java/lang/natDouble.cc (parseDouble): Renamed from
5502 * java/lang/Double.java (parseDouble): Renamed from
5503 doubleValueOf. Now public.
5505 2000-06-23 Andrew Haley <aph@cygnus.com>
5507 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5508 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5510 2000-06-23 Tom Tromey <tromey@cygnus.com>
5512 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5513 * java/lang/natDouble.cc: Always include <alloca.h>.
5514 Fix for PR libgcj/267.
5516 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5518 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5519 comply with classpath VM spec.
5520 (add(Group)): Rename to addGroup().
5521 * java/lang/Thread.java (Thread): Use addThread().
5522 * java/lang/natThread.cc (finish_): Use removeThread().
5524 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5526 * java/lang/ThreadGroup.java: Merged with classpath.
5527 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5528 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5530 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5531 ThreadGroup.root if Thread.currentThread is null. Honour the
5532 ThreadGroup's max priority setting.
5534 2000-06-18 Tom Tromey <tromey@cygnus.com>
5536 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5537 returned class. For PR gcj/260.
5539 2000-06-16 Tom Tromey <tromey@cygnus.com>
5541 Fix for PR libgcj/261:
5542 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5544 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5545 argument. (This is a patch from long ago that somehow went
5548 2000-06-15 Tom Tromey <tromey@cygnus.com>
5550 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5554 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5556 Fix for PR java.lang/258:
5557 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5558 JV_STATE_DONE, to prevent accidental initialization.
5559 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5560 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5561 interface or an abstract class. Remove redundant initializeClass calls.
5562 Remove duplicate if_idt test.
5563 (_Jv_InterfaceAssignableFrom): New function.
5564 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5566 2000-05-31 Tom Tromey <tromey@cygnus.com>
5568 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5569 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5570 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5571 (NUM_OBJECT_METHODS): New define.
5572 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5573 `array_vtable' parameter. Added assertion.
5574 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5577 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5579 * gcj/cni.h: Include <string.h>.
5580 * defineclass.cc: Include <alloca.h>.
5581 * interpret.cc: Ditto.
5582 * gij.cc: Include <stdlib.h>.
5584 2000-05-30 Tom Tromey <tromey@cygnus.com>
5586 * include/name-finder.h: Include <sys/wait.h>.
5587 (_Jv_name_finder::pid): Now of type `pid_t'.
5588 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5589 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5592 2000-05-24 Warren Levy <warrenl@cygnus.com>
5594 * java/io/ObjectOutputStream.java (writeObject): Use component type
5595 when writing arrays.
5598 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5600 Fix for PR libgcj/226:
5601 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5602 since this is an installed header.
5604 Fix for PR libgcj/228:
5605 * java/util/zip/ZipFile (getInputStream): Create inflater with
5608 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5609 with DataFormatException.
5611 2000-05-20 Tom Tromey <tromey@cygnus.com>
5613 * Makefile.in: Rebuilt.
5614 * Makefile.am (hack1): Removed.
5615 (awto_files): Likewise.
5616 (libgcjawt_la_SOURCES): Likewise.
5617 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5618 (libgcjawt_la_DEPENDENCIES): Likewise.
5619 (libgcjawt_la_LIBADD): Likewise.
5620 (libgcjawt_la_LDFLAGS): Likewise.
5621 (libgcjawt_la_LINK): Likewise.
5622 ($(awt_java_source_files:.java=.class)): Likewise.
5623 (libgcj.zip): Don't depend on AWT files.
5624 (MOSTLYCLEANFILES): Don't include AWT files.
5625 ($(awto_files)): Removed.
5626 (nat_headers): Removed AWT files.
5627 (cond_awt_java_source_files): Removed.
5628 (ordinary_java_source_files): Added awt_java_source_files.
5629 * libgcj.spec.in (*lib): Removed -lgcjawt.
5630 * configure: Rebuilt.
5631 * configure.in: Removed --enable-java-awt option.
5633 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5635 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5636 (ZipEntry): Copy the `name' field.
5637 (clone): Implement JDK1.2 method.
5638 (setCompressedSize): ditto.
5641 2000-05-19 Tom Tromey <tromey@cygnus.com>
5643 * java/io/BufferedWriter.java: Merged with Classpath.
5644 * java/io/BufferedOutputStream.java: Merged with Classpath.
5646 2000-05-16 Andrew Haley <aph@cygnus.com>
5648 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5649 build_ia64_frame_state.
5650 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5653 2000-05-15 Warren Levy <warrenl@cygnus.com>
5655 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5656 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5657 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5658 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5659 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5660 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5661 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5662 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5663 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5664 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5665 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5666 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5667 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5668 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5669 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5670 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5671 * gnu/gcj/io/NullOutputStream.java: Removed.
5672 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5673 * gnu/gcj/lang/ArrayHelper.java: Removed.
5674 * gnu/gcj/lang/ClassHelper.java: Removed.
5675 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5677 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5678 * gnu/java/beans/EmptyBeanInfo.java: New file.
5679 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5680 * gnu/java/beans/IntrospectionIncubator.java: New file.
5681 * gnu/java/beans/editors/ColorEditor.java: New file.
5682 * gnu/java/beans/editors/FontEditor.java: New file.
5683 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5684 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5685 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5686 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5687 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5688 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5689 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5690 * gnu/java/beans/editors/StringEditor.java: New file.
5691 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5692 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5693 * gnu/java/io/NullOutputStream.java: New file.
5694 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5695 * gnu/java/lang/ArrayHelper.java: New file.
5696 * gnu/java/lang/ClassHelper.java: New file.
5697 * gnu/java/lang/reflect/TypeSignature.java: New file.
5699 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5700 namespace back to the original Classpath gnu/java namespace.
5701 * Makefile.in: Rebuilt.
5703 * java/beans/Beans.java: Namespace change.
5704 * java/beans/EventSetDescriptor.java: Namespace change.
5705 * java/beans/Introspector.java: Namespace change.
5706 * java/beans/PropertyEditorManager.java: Namespace change.
5707 * java/io/ObjectInputStream.java: Namespace change.
5708 * java/io/ObjectOutputStream.java: Namespace change.
5709 * java/io/ObjectStreamClass.java: Namespace change.
5710 * java/io/ObjectStreamField.java: Namespace change.
5712 2000-04-21 Warren Levy <warrenl@cygnus.com>
5714 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5715 now that compiler patch is available.
5716 Removed unneeded System.loadLibrary.
5717 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5718 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5720 2000-04-19 Andrew Haley <aph@cygnus.com>
5722 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5723 and target classes have been initialized.
5725 2000-04-19 Andrew Haley <aph@cygnus.com>
5727 * java/lang/String.java: implement Serializable, Comparable.
5728 (compareTo (Object)): New method.
5730 2000-04-19 Warren Levy <warrenl@cygnus.com>
5732 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5733 instead of getField to retrieve non-public field.
5734 (getSerialPersistantFields): Ditto.
5736 2000-04-18 Warren Levy <warrenl@cygnus.com>
5738 * mauve-libgcj: Turned off object serialization tests temporarily
5739 due to compiler error.
5741 2000-04-17 Warren Levy <warrenl@cygnus.com>
5743 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5744 to avoid build problem.
5746 * mauve-libgcj: Turned on object serialization tests.
5748 2000-04-17 Tom Tromey <tromey@cygnus.com>
5750 * libgcj.spec.in (*lib): Added -lgcjawt.
5752 2000-04-17 Andrew Haley <aph@cygnus.com>
5754 * Makefile.am: Add new files:
5755 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5757 * Makefile.in: Rebuilt.
5759 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5760 interface that has no implementations.
5761 Check for an attempt to assign an abstract class to an interface.
5763 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5764 if we fail to find MessageDigest.getInstance ("SHA").
5766 * gnu/gcj/io/SimpleSHSStream.java: New file.
5767 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5768 * gnu/gcj/io/shs.cc: New file.
5769 * gnu/gcj/io/shs.h: new file.
5771 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5774 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5775 punctuation from the classname of an array element.
5777 * gcj/javaprims.h: Add SimpleDigestStream.
5779 2000-04-17 Andrew Haley <aph@cygnus.com>
5781 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5782 to getPrivateField for superclasses.
5784 2000-04-14 Andrew Haley <aph@cygnus.com>
5786 * Makefile.am: Add new files:
5787 java/io/ObjectOutputStream$PutField.h,
5788 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5789 java/io/natObjectOutputStream.cc
5790 * Makefile.in: Rebuilt.
5791 * gcj/Makefile.in: Rebuilt.
5792 * include/Makefile.in: Rebuilt.
5793 * java/lang/Class.h (getPrivateField): New method.
5794 (getPrivateMethod): Ditto.
5795 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5796 and java::io::ObjectStreamClass our friends.
5797 * java/lang/natClass.cc (getPrivateField): New method.
5798 (getPrivateMethod): Ditto.
5799 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5800 * gcj/javaprims.h: Add serialization classes.
5801 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5802 (setByteField): Ditto.
5803 (setCharField): Ditto.
5804 (setDoubleField): Ditto.
5805 (setFloatField): Ditto.
5806 (setIntField): Ditto.
5807 (setLongField): Ditto.
5808 (setShortField): Ditto.
5809 (setObjectField): Ditto.
5810 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5812 (getByteField): Ditto.
5813 (getCharField): Ditto.
5814 (getDoubleField): Ditto.
5815 (getFloatField): Ditto.
5816 (getIntField): Ditto.
5817 (getLongField): Ditto.
5818 (getShortField): Ditto.
5819 (getObjectField): Ditto.
5820 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5822 (getSerialPersistantFields): Ditto.
5823 (getDefinedSUID): Ditto.
5824 * java/io/natObjectOutputStream.cc: New file.
5825 * java/io/natObjectInputStream.cc: New file.
5827 2000-04-13 Warren Levy <warrenl@cygnus.com>
5829 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5830 problems. Revert to previous version to reproduce and when fixed.
5832 2000-04-13 Warren Levy <warrenl@cygnus.com>
5834 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5835 * gnu/gcj/io/NullOutputStream.java: New file.
5836 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5837 * java/io/BlockDataException.java: New file.
5838 * java/io/Externalizable.java: New file.
5839 * java/io/InvalidClassException.java: New file.
5840 * java/io/InvalidObjectException.java: New file.
5841 * java/io/NotActiveException.java: New file.
5842 * java/io/NotSerializableException.java: New file.
5843 * java/io/ObjectInput.java: New file.
5844 * java/io/ObjectInputStream.java: New file.
5845 * java/io/ObjectInputValidation.java: New file.
5846 * java/io/ObjectOutput.java: New file.
5847 * java/io/ObjectOutputStream.java: New file.
5848 * java/io/ObjectStreamClass.java: New file.
5849 * java/io/ObjectStreamConstants.java: New file.
5850 * java/io/ObjectStreamField.java: New file.
5851 * java/io/Replaceable.java: New file.
5852 * java/io/Resolvable.java: New file.
5853 * java/io/SerializablePermission.java: New file.
5854 * java/io/WriteAbortedException.java: New file.
5855 * java/security/BasicPermission.java: New file.
5856 * java/security/DigestOutputStream.java: New file.
5857 * java/security/Guard.java: New file.
5858 * java/security/Permission.java: New file.
5859 * java/security/PermissionCollection.java: New file.
5860 * Makefile.am: Added above files.
5861 * Makefile.in: Rebuilt.
5863 * java/beans/Beans.java (instantiate): Activated serialization code.
5864 * java/lang/SecurityManager.java (checkPermission): New method.
5866 2000-04-12 Warren Levy <warrenl@cygnus.com>
5868 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5869 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5870 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5871 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5872 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5873 * gnu/gcj/beans/editors/FontEditor.java: New file.
5874 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5875 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5876 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5877 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5878 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5879 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5880 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5881 * gnu/gcj/beans/editors/StringEditor.java: New file.
5882 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5883 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5884 * gnu/gcj/lang/ArrayHelper.java: New file.
5885 * gnu/gcj/lang/ClassHelper.java: New file.
5886 * java/beans/BeanDescriptor.java: New file.
5887 * java/beans/BeanInfo.java: New file.
5888 * java/beans/Beans.java: New file.
5889 * java/beans/Customizer.java: New file.
5890 * java/beans/DesignMode.java: New file.
5891 * java/beans/EventSetDescriptor.java: New file.
5892 * java/beans/FeatureDescriptor.java: New file.
5893 * java/beans/IndexedPropertyDescriptor.java: New file.
5894 * java/beans/IntrospectionException.java: New file.
5895 * java/beans/Introspector.java: New file.
5896 * java/beans/MethodDescriptor.java: New file.
5897 * java/beans/ParameterDescriptor.java: New file.
5898 * java/beans/PropertyChangeEvent.java: New file.
5899 * java/beans/PropertyChangeListener.java: New file.
5900 * java/beans/PropertyChangeSupport.java: New file.
5901 * java/beans/PropertyDescriptor.java: New file.
5902 * java/beans/PropertyEditor.java: New file.
5903 * java/beans/PropertyEditorManager.java: New file.
5904 * java/beans/PropertyEditorSupport.java: New file.
5905 * java/beans/PropertyVetoException.java: New file.
5906 * java/beans/SimpleBeanInfo.java: New file.
5907 * java/beans/VetoableChangeListener.java: New file.
5908 * java/beans/VetoableChangeSupport.java: New file.
5909 * java/beans/Visibility.java: New file.
5910 * java/beans/beancontext/BeanContext.java: New file.
5911 * java/beans/beancontext/BeanContextChild.java: New file.
5912 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5913 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5914 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5915 * java/beans/beancontext/BeanContextEvent.java: New file.
5916 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5917 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5918 * java/beans/beancontext/BeanContextProxy.java: New file.
5919 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5921 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5922 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5924 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5925 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5927 * java/beans/beancontext/BeanContextServices.java: New file.
5928 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5929 * java/util/AbstractCollection.java: New file.
5930 * java/util/AbstractList.java: New file.
5931 * java/util/Arrays.java: New file.
5932 * Makefile.am: Added above files.
5933 * Makefile.in: Rebuilt.
5935 2000-04-11 Warren Levy <warrenl@cygnus.com>
5937 * java/awt/AWTError.java: New file.
5938 * java/awt/AWTEvent.java: New file.
5939 * java/awt/AWTException.java: New file.
5940 * java/awt/ActiveEvent.java: New file.
5941 * java/awt/Adjustable.java: New file.
5942 * java/awt/BorderLayout.java: New file.
5943 * java/awt/Color.java: New file.
5944 * java/awt/Component.java: New file.
5945 * java/awt/Container.java: New file.
5946 * java/awt/Dimension.java: New file.
5947 * java/awt/Event.java: New file.
5948 * java/awt/Font.java: New file.
5949 * java/awt/Frame.java: New file.
5950 * java/awt/Graphics.java: New file.
5951 * java/awt/IllegalComponentStateException.java: New file.
5952 * java/awt/Image.java: New file.
5953 * java/awt/ItemSelectable.java: New file.
5954 * java/awt/LayoutManager.java: New file.
5955 * java/awt/LayoutManager2.java: New file.
5956 * java/awt/Menu.java: New file.
5957 * java/awt/MenuBar.java: New file.
5958 * java/awt/MenuComponent.java: New file.
5959 * java/awt/MenuContainer.java: New file.
5960 * java/awt/MenuItem.java: New file.
5961 * java/awt/Paint.java: New file.
5962 * java/awt/PaintContext.java: New file.
5963 * java/awt/Point.java: New file.
5964 * java/awt/Rectangle.java: New file.
5965 * java/awt/Shape.java: New file.
5966 * java/awt/TextArea.java: New file.
5967 * java/awt/TextComponent.java: New file.
5968 * java/awt/Toolkit.java: New file.
5969 * java/awt/Transparency.java: New file.
5970 * java/awt/Window.java: New file.
5971 * java/awt/natToolkit.cc: New file.
5972 * java/awt/event/AWTEventListener.java: New file.
5973 * java/awt/event/ActionEvent.java: New file.
5974 * java/awt/event/ActionListener.java: New file.
5975 * java/awt/event/AdjustmentEvent.java: New file.
5976 * java/awt/event/AdjustmentListener.java: New file.
5977 * java/awt/event/ComponentAdapter.java: New file.
5978 * java/awt/event/ComponentEvent.java: New file.
5979 * java/awt/event/ComponentListener.java: New file.
5980 * java/awt/event/ContainerAdapter.java: New file.
5981 * java/awt/event/ContainerEvent.java: New file.
5982 * java/awt/event/ContainerListener.java: New file.
5983 * java/awt/event/FocusAdapter.java: New file.
5984 * java/awt/event/FocusEvent.java: New file.
5985 * java/awt/event/FocusListener.java: New file.
5986 * java/awt/event/InputEvent.java: New file.
5987 * java/awt/event/InputMethodEvent.java: New file.
5988 * java/awt/event/InputMethodListener.java: New file.
5989 * java/awt/event/InvocationEvent.java: New file.
5990 * java/awt/event/ItemEvent.java: New file.
5991 * java/awt/event/ItemListener.java: New file.
5992 * java/awt/event/KeyAdapter.java: New file.
5993 * java/awt/event/KeyEvent.java: New file.
5994 * java/awt/event/KeyListener.java: New file.
5995 * java/awt/event/MouseAdapter.java: New file.
5996 * java/awt/event/MouseEvent.java: New file.
5997 * java/awt/event/MouseListener.java: New file.
5998 * java/awt/event/MouseMotionAdapter.java: New file.
5999 * java/awt/event/MouseMotionListener.java: New file.
6000 * java/awt/event/PaintEvent.java: New file.
6001 * java/awt/event/TextEvent.java: New file.
6002 * java/awt/event/TextListener.java: New file.
6003 * java/awt/event/WindowAdapter.java: New file.
6004 * java/awt/event/WindowEvent.java: New file.
6005 * java/awt/event/WindowListener.java: New file.
6006 * java/awt/geom/Dimension2D.java: New file.
6007 * java/awt/geom/Point2D.java: New file.
6008 * java/awt/peer/ComponentPeer.java: New file.
6009 * java/awt/peer/ContainerPeer.java: New file.
6010 * java/awt/peer/FramePeer.java: New file.
6011 * java/awt/peer/WindowPeer.java: New file.
6012 * java/util/Collection.java: New file.
6013 * java/util/Comparator.java: New file.
6014 * java/util/Iterator.java: New file.
6015 * java/util/List.java: New file.
6016 * java/util/ListIterator.java: New file.
6017 * Makefile.am: Added above files.
6018 * Makefile.in: Rebuilt.
6020 2000-04-10 Warren Levy <warrenl@cygnus.com>
6022 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6023 * java/lang/FirstThread.java: Ditto.
6024 * java/lang/StringBuffer.java: Ditto.
6025 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6027 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6028 Special case handled in java.math.BigInteger.
6029 * java/math/BigInteger.java (divide): Handle the special case when
6030 dividing by 1 and the high bit of the dividend is set.
6031 (setShiftRight): Handle case when count == 0.
6033 2000-04-05 Andrew Haley <aph@cygnus.com>
6035 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6038 2000-04-05 Andrew Haley <aph@cygnus.com>
6040 * sysdep/ia64.c (rse_address_add): Delete.
6041 (IS_NaT_COLLECTION_ADDR): Delete.
6042 (ia64_backtrace_helper): check for null unwind_info.
6044 * sysdep/ia64-frame.h: add calc_caller_bsp.
6046 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6049 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6050 (_Jv_remI): Likewise.
6051 (_Jv_divJ): Likewise.
6052 (_Jv_remJ): Likewise.
6054 * interpret.cc (continue1): Use divide subroutines to guarantee
6055 correct Java standard behaviour.
6056 Floating-point division should not abort; make it so.
6058 2000-03-29 Tom Tromey <tromey@cygnus.com>
6060 * configure: Rebuilt.
6061 * configure.in: Test against `libgcj_sjlj', not
6062 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6063 to be set even when using sjlj.
6065 2000-03-24 Andrew Haley <aph@cygnus.com>
6067 * Makefile.am: Add file addr2name.awk.
6068 * Makefile.in: Rebuilt.
6069 * addr2name.awk: New file.
6070 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6072 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6075 2000-03-22 Andrew Haley <aph@cygnus.com>
6077 * configure.host: Add -funwind-tables for IA64.
6078 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6079 * Makefile.in: Rebuilt.
6080 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6081 * sysdep/ia64.c: New file.
6082 * sysdep/ia64-frame.h: New file.
6083 * configure.in: Add sysdep/ia64.c for ia64.
6084 * configure: Rebuilt.
6086 2000-03-17 Andrew Haley <aph@cygnus.com>
6088 * java/lang/natString.cc: Remove `register' keyword.
6089 interpret.cc: ditto.
6091 2000-03-16 Andrew Haley <aph@cygnus.com>
6093 * configure.host (ia64): Enable interpreter.
6095 2000-03-14 Hans Boehm <boehm@acm.org>
6097 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6099 2000-03-14 Andrew Haley <aph@cygnus.com>
6101 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6104 2000-03-10 Andrew Haley <aph@cygnus.com>
6106 * java/lang/ieeefp.h: Import latest version from fdlibm.
6108 2000-03-14 Andrew Haley <aph@cygnus.com>
6110 * prims.cc (_Jv_ThrowSignal): New function.
6111 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6113 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6114 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6115 * include/ppc-signal.h: New file.
6117 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6119 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6120 * java/lang/natThread.java (initialize_native): Cast `data' to
6122 * gnu/gcj/RawData.java: Clarify documentation.
6124 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6125 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6126 `jarFile', not `jarFileURL'.
6128 2000-05-15 Andrew Haley <aph@cygnus.com>
6130 * include/ppc-signal.h: New file.
6132 2000-05-11 Tom Tromey <tromey@cygnus.com>
6134 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6135 file headers, don't include `size' in the skip call.
6137 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6139 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6140 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6142 (replace): Reimplemented. Fix javadoc.
6143 (reverse): Call ensureCapacity_unsynchronized().
6144 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6146 (replace): Calculate length for arraycopy() correctly.
6148 2000-05-09 Tom Tromey <tromey@cygnus.com>
6150 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6152 (insert(int,char[],int,int): New method.
6153 (delete): New method from Classpath.
6154 (deleteCharAt): Likewise.
6155 (substring): Likewise.
6156 (shared): No longer private.
6157 Added JavaDoc comments from Classpath.
6158 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6161 2000-05-07 Tom Tromey <tromey@cygnus.com>
6163 * Makefile.in: Rebuilt.
6164 * Makefile.am (LIBLINK): New macro.
6165 (libgcj_la_LINK): Use it.
6166 (libgcjawt_la_LINK): Likewise.
6168 2000-05-06 Tom Tromey <tromey@cygnus.com>
6170 * Makefile.in: Rebuilt.
6171 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6173 2000-05-05 Tom Tromey <tromey@cygnus.com>
6175 Fix for PR libgcj/220:
6176 * Makefile.in: Rebuilt.
6177 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6178 (jv_convert_LDFLAGS): Likewise.
6179 (libgcj_la_LDFLAGS): Likewise.
6180 (GCJLINK): New macro.
6181 (jv_convert_LINK): Use it.
6182 (gij_LINK): Likewise.
6183 (libgcj_la_LINK): New macro.
6184 (libgcjawt_la_LINK): Likewise.
6186 2000-05-04 Tom Tromey <tromey@cygnus.com>
6188 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6190 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6194 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6196 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6197 (_Jv_IsAssignableFrom): Ditto.
6198 (_Jv_IsInstanceOf): Ditto.
6199 (_Jv_CheckCast): Ditto.
6200 (_Jv_CheckArrayStore): Ditto.
6201 * java/lang/Class.h (_Jv_InitClass): Ditto.
6202 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6207 (_Jv_MonitorExit): Ditto.
6208 * boehm.cc (_Jv_MarkObj): Ditto.
6209 (_Jv_MarkObj): Ditto.
6210 (_Jv_MarkArray): Ditto.
6211 * prims.cc (_Jv_AllocObject): Ditto.
6212 (_Jv_NewObjectArray): Ditto.
6213 (_Jv_NewPrimArray): Ditto.
6214 (_Jv_Malloc): Ditto.
6215 (_Jv_Realloc): Ditto.
6216 (_Jv_MallocUnchecked): Ditto.
6222 2000-05-04 Tom Tromey <tromey@cygnus.com>
6224 * java/util/Locale.java (Locale): Don't explicitly check for
6226 * java/util/Hashtable.java (containsKey): Don't explicitly check
6229 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6231 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6233 * java/text/StringCharacterIterator.java
6234 (StringCharacterIterator): Don't check for null.
6235 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6237 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6238 check for null pointer.
6239 (leaveGroup): Likewise.
6240 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6242 (setData): Likewise.
6243 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6246 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6248 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6249 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6250 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6251 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6252 -rpath for in-gcc builds.
6253 * Makefile.in: Rebuilt.
6255 2000-04-28 Tom Tromey <tromey@cygnus.com>
6257 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6260 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6262 * libjava/java/lang/String.java (toString): Remove `final' hack.
6264 2000-04-05 Tom Tromey <tromey@cygnus.com>
6266 Runtime support for PR gcj/2:
6267 * prims.cc (_Jv_ThrowNullPointerException): New function.
6268 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6270 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6272 * prims.cc (_Jv_NewObjectArray): Fix typo.
6274 2000-04-26 Tom Tromey <tromey@cygnus.com>
6276 * Makefile.in: Rebuilt.
6277 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6279 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6281 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6284 2000-04-22 Anthony Green <green@cygnus.com>
6286 * include/jvm.h (__builtin_expect): Define as unused for now.
6287 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6291 (_Jv_MonitorExit): Ditto.
6292 * boehm.cc (_Jv_MarkObj): Ditto.
6293 (_Jv_MarkObj): Ditto.
6294 (_Jv_MarkArray): Ditto.
6295 (_Jv_AllocBytes): Ditto.
6296 * prims.cc (_Jv_AllocObject): Ditto.
6297 (_Jv_NewObjectArray): Ditto.
6298 (_Jv_NewPrimArray): Ditto.
6299 (_Jv_Malloc): Ditto.
6300 (_Jv_Realloc): Ditto.
6301 (_Jv_MallocUnchecked): Ditto.
6307 * include/Makefile.in: Rebuilt.
6308 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6310 2000-04-21 Tom Tromey <tromey@cygnus.com>
6312 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6313 Yet another new version from Classpath.
6315 Fix for PR libgcj/15:
6316 * java/util/natGregorianCalendar.cc (_REENTRANT,
6317 _POSIX_PTHREAD_SEMANTICS): Don't define.
6318 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6319 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6321 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6323 * configure: Rebuilt.
6324 * configure.in: If using POSIX threads, define _REENTRANT if
6325 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6326 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6328 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6329 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6330 version from Classpath.
6332 Fix for PR libgcj/213:
6333 * Makefile.in: Rebuilt.
6334 * Makefile.am (gij_SOURCES): Added gij.cc.
6335 (EXTRA_gij_SOURCES): Removed.
6336 (gij_LDADD): Removed gij.lo.
6337 (gij_DEPENDENCIES): Likewise.
6338 ($(gij_OBJECTS)): Depend on nat_headers.
6340 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6341 `setURL', not `url.set'.
6343 2000-04-20 Tom Tromey <tromey@cygnus.com>
6345 Fix for PR java.io/204:
6346 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6347 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6350 Fix for PR libgcj/212:
6351 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6352 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6353 * java/lang/Class.h (_Jv_word): Declare.
6355 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6357 2000-04-19 Tom Tromey <tromey@cygnus.com>
6359 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6360 doesn't have a loader.
6362 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6364 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6365 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6367 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6369 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6371 (available): Initialize `where' to prevent bogus compiler warning.
6373 2000-04-12 Tom Tromey <tromey@cygnus.com>
6375 * java/lang/natString.cc (intern): Temporarily disable finalizer
6378 * java/lang/natString.cc (unintern): Added `obj' argument.
6379 (intern): Register finalizer for string.
6380 * java/lang/String.java (unintern): Now static; added obj
6383 2000-04-11 Tom Tromey <tromey@cygnus.com>
6385 * java/util/Vector.java (VectorEnumeration): Now `final'.
6386 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6387 (HashtableEnumeration): Likewise.
6388 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6389 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6391 2000-04-10 Warren Levy <warrenl@cygnus.com>
6393 * java/io/ObjectStreamException.java: New file.
6394 * java/io/OptionalDataException.java: New file.
6395 * java/io/StreamCorruptedException.java: New file.
6396 * java/math/BigDecimal.java: New file.
6397 * java/sql/CallableStatement.java: New file.
6398 * java/sql/Connection.java: New file.
6399 * java/sql/DataTruncation.java: New file.
6400 * java/sql/DatabaseMetaData.java: New file.
6401 * java/sql/Date.java: New file.
6402 * java/sql/Driver.java: New file.
6403 * java/sql/DriverManager.java: New file.
6404 * java/sql/DriverPropertyInfo.java: New file.
6405 * java/sql/PreparedStatement.java: New file.
6406 * java/sql/ResultSet.java: New file.
6407 * java/sql/ResultSetMetaData.java: New file.
6408 * java/sql/SQLException.java: New file.
6409 * java/sql/SQLWarning.java: New file.
6410 * java/sql/Statement.java: New file.
6411 * java/sql/Time.java: New file.
6412 * java/sql/Timestamp.java: New file.
6413 * java/sql/Types.java: New file.
6414 * Makefile.am: Added above new files.
6415 * Makefile.in: Rebuilt.
6417 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6418 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6419 DatagramSocket constructor instead of null.
6421 2000-04-08 Anthony Green <green@cygnus.com>
6423 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6426 2000-04-08 Anthony Green <green@cygnus.com>
6428 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6429 (_Jv_MutexUnlock): Ditto.
6430 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6431 (_Jv_MutexUnlock): Ditto.
6433 2000-04-08 Anthony Green <green@cygnus.com>
6435 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6436 (ensureCapacity_unsynchronized): New private method.
6437 (append): Use ensureCapacity_unsynchronized.
6439 2000-04-08 Tom Tromey <tromey@cygnus.com>
6441 * Makefile.in: Rebuilt.
6442 * Makefile.am (awt_java_source_files): Added new files.
6443 * java/awt/IllegalComponentStateException.java: New file.
6444 * java/awt/ItemSelectable.java: New file.
6445 * java/awt/event/WindowEvent.java: Finished.
6446 * java/awt/event/TextEvent.java: Finished.
6447 * java/awt/event/ContainerEvent.java: New file.
6448 * java/awt/Component.java (getX, getY): New methods.
6449 * java/awt/event/PaintEvent.java: New file.
6450 * java/awt/event/MouseEvent.java: New file.
6451 * java/awt/ActiveEvent.java: New file.
6452 * java/awt/event/KeyEvent.java: Finished.
6453 * java/awt/event/ItemEvent.java: New file.
6454 * java/awt/Adjustable.java: New file.
6455 * java/awt/event/InputMethodEvent.java: New file.
6456 * java/awt/event/InputEvent.java: Finished.
6457 * java/awt/event/FocusEvent.java: New file.
6458 * java/awt/event/MouseMotionAdapter.java: New file.
6459 * java/awt/event/MouseAdapter.java: New file.
6460 * java/awt/event/KeyAdapter.java: New file.
6461 * java/awt/event/FocusAdapter.java: New file.
6462 * java/awt/event/ContainerAdapter.java: New file.
6463 * java/awt/event/ComponentEvent.java: Finished.
6464 * java/awt/event/AdjustmentEvent.java: New file.
6465 * java/awt/event/ComponentAdapter.java: New file.
6466 * java/awt/event/ActionEvent.java: Finished.
6467 * java/awt/event/MouseMotionListener.java: New file.
6468 * java/awt/event/MouseListener.java: New file.
6469 * java/awt/event/ItemListener.java: New file.
6470 * java/awt/event/InputMethodListener.java: New file.
6471 * java/awt/event/ContainerListener.java: New file.
6472 * java/awt/event/FocusListener.java: New file.
6473 * java/awt/event/ComponentListener.java: New file.
6474 * java/awt/event/AWTEventListener.java: New file.
6475 * java/awt/event/AdjustmentListener.java: New file.
6477 2000-04-08 Anthony Green <green@cygnus.com>
6479 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6480 check when we have to.
6482 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6485 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6488 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6489 inline hasMoreElements.
6491 2000-04-05 Tom Tromey <tromey@cygnus.com>
6493 * configure: Rebuilt.
6494 * configure.in: Recognize --enable-java-awt.
6495 (AWT): New conditional.
6496 * Makefile.in: Rebuilt.
6497 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6499 (libgcjawt_la_SOURCES): New macro.
6500 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6501 (libgcjawt_la_DEPENDENCIES): Likewise.
6502 (libgcjawt_la_LIBADD): Likewise.
6503 (libgcjawt_la_LDFLAGS): Likewise.
6504 (libgcj.zip): Depend on cond_java_awt_source_files
6505 (cond_awt_java_source_files): New macro.
6506 (MOSTLYCLEANFILES): Added awto_files.
6507 (awto_files): New macro. Use where javao_files used.
6508 (nat_headers): Use cond_awt_java_source_files.
6510 2000-04-04 Tom Tromey <tromey@cygnus.com>
6512 * Makefile.in: Rebuilt.
6513 * Makefile.am (awt_java_source_files): Added AWTException.java.
6514 * java/awt/AWTException.java: New file.
6516 2000-04-03 Tom Tromey <tromey@cygnus.com>
6518 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6519 commentary from Alex.
6521 * Makefile.in: Rebuilt.
6522 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6525 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6527 * configure: Rebuilt.
6528 * configure.in: Add --disable-jvmpi.
6529 * include/config.h.in: Rebuilt.
6530 * acconfig.h: Add ENABLE_JVMPI.
6532 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6533 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6534 (_Jv_JVMPI_Notify_THREAD_END): New define.
6535 (_Jv_JVMPI_Notify_THREAD_END): New define.
6536 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6537 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6538 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6540 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6543 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6544 (finish_): Generate JVMPI thread end events.
6545 (run_): Generate JVMPI thread start events.
6546 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6547 preloaded JNI library.
6548 Include JVMPI headers if necessary.
6549 (run): Generate JVMPI thread start events.
6551 * boehm.cc: Define GC_disable and GC_enable.
6552 (_Jv_DisableGC): New function.
6553 (_Jv_EnableGC): New function.
6554 (disable_gc_mutex): Declare.
6555 * nogc.cc (_Jv_DisableGC): New function.
6556 (_Jv_EnableGC): New function.
6558 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6559 (_Jv_JVMPI_Interface): Define.
6560 (jvmpiEnableEvent): New function.
6561 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6563 * include/jvmpi.h: New file.
6565 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6567 * Makefile.in: New #defines and friends for Thread.h.
6568 * Makefile.am: Ditto.
6569 * posix-threads.cc: (struct starter): Remove `object'.
6570 (_Jv_CondWait): Use interruptable condition variables and new
6571 recursive mutexes. New return codes on interrupt or non-ownership
6573 (_Jv_CondNotify): Ditto.
6574 (_Jv_CondNotifyAll): Ditto.
6575 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6576 the target thread by signaling its wait condition.
6577 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6578 not the starter struct. Initialize wait_mutex and wait_cond.
6579 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6581 (_Jv_MutexUnlock): Ditto.
6582 (really_start): Set info->data->thread from pthread_self() to work
6583 around a race condition. Destroy wait_mutex and wait_cond when run()
6585 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6586 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6588 startable_flag: New private field.
6589 (Thread): Initialize `startable_flag'.
6590 (toString): Check for null thread group.
6591 * java/lang/natThread.cc: (struct natThread): New fields
6592 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6593 (class locker): Removed.
6594 (initialize_native): Initialize `join_cond' and `join_mutex'.
6595 (interrupt): Now just calls _Jv_ThreadInterrupt().
6596 (join): Simplified. Just wait on the target thread's join condition.
6597 (finish_): Remove join list code. Unset thread group. Signal
6598 potential joiners by notifying the dying threads join_cond.
6599 (start): Check for illegal restarts.
6600 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6602 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6603 #defines and #ifdefs.
6604 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6605 `wait_mutex', `next'.
6606 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6607 directly mapping to pthread_cond_t.
6608 (struct _Jv_Mutex_t): New recursive implementation.
6609 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6610 _Jv_HaveCondDestroy: Never define this for posix-threads.
6611 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6612 (_Jv_CondNotifyAll): Ditto.
6613 (_Jv_MutexLock): Ditto.
6614 (_Jv_MutexUnlock): Ditto.
6615 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6616 (_Jv_MutexDestroy): Ditto.
6617 (_Jv_CondDestroy): Removed.
6618 (_Jv_PthreadGetMutex): Removed.
6619 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6620 error. Add a FIXME about this.
6621 (_Jv_CondNotifyAll): Ditto.
6622 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6623 _JV_NOT_OWNER on other errors. Add FIXME.
6625 2000-03-26 Tom Tromey <tromey@cygnus.com>
6627 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6629 (call): Don't throw exception here.
6631 2000-03-26 Tom Tromey <tromey@cygnus.com>
6633 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6634 * interpret.cc: Use SIZEOF_VOID_P.
6635 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6636 (_Jv_loadLong): Likewise.
6637 (_Jv_storeDouble): Likewise.
6638 * configure: Rebuilt.
6639 * configure.in: Check size of void*.
6641 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6643 2000-03-26 Hans Boehm <boehm@acm.org>
6645 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6646 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6648 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6649 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6650 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6651 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6653 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6654 (FFI_RAW_SIZE): Likewise.
6655 (_Jv_InterpMethod::ncode): Use them.
6656 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6657 STORED): Define differently on a 64 bit machine.
6658 (continue1): Use ffi_java_raw_call when appropriate.
6660 2000-03-24 Warren Levy <warrenl@cygnus.com>
6662 * java/math/BigInteger.java(divide): Handle the special case when
6663 dividing by 1 and the high bit of the dividend is set.
6664 (setShiftRight): Handle case when count == 0.
6666 2000-03-24 Warren Levy <warrenl@cygnus.com>
6668 * java/awt/Font.java(isBold): Fix syntax error.
6670 * java/awt/Frame.java(postEvent): ditto.
6671 * java/awt/Menu.java(postEvent): ditto.
6672 * java/awt/MenuBar.java(postEvent): ditto.
6673 * java/awt/Toolkit.java(init): Included a stub.
6675 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6677 * java/awt/Event.java: Add all the event type constants.
6678 (Event): Implemented constructors.
6679 (controlDown): Implemented.
6680 (metaDown): Implemented.
6681 (paramString): Stubbed.
6682 (shiftDown): Implemented.
6683 (toString): Implemented.
6684 (translate): Implemented.
6686 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6688 * java/lang/natClass.cc (isInstance): Initialize `this'.
6689 (isAssignableFrom): Initialize `this' and `klass'.
6690 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6691 implemented by any loaded class, so return false.
6692 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6693 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6695 2000-03-19 Warren Levy <warrenl@cygnus.com>
6697 * java/awt/Color.java: Specified java.io for Serializable.
6698 * java/awt/Toolkit.java: Imported java.net.URL.
6700 2000-03-19 Warren Levy <warrenl@cygnus.com>
6702 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6704 2000-03-16 Warren Levy <warrenl@cygnus.com>
6706 * java/awt/Color.java: New file.
6707 * java/awt/Graphics.java: New file.
6708 * java/awt/Image.java: New file.
6709 * java/awt/Paint.java: New file.
6710 * java/awt/PaintContext.java: New file.
6711 * java/awt/Transparency.java: New file.
6712 * java/util/Collection.java: New file.
6713 * java/util/Comparator.java: New file.
6714 * java/util/Iterator.java: New file.
6715 * java/util/List.java: New file.
6716 * java/util/ListIterator.java: New file.
6717 * Makefile.am: Added above new files.
6718 * Makefile.in: Rebuilt.
6720 * java/awt/Font.java (PLAIN): New field.
6722 (ITALIC): New field.
6723 (ROMAN_BASELINE): New field.
6724 (CENTER_BASELINE): New field.
6725 (HANGING_BASELINE): New field.
6729 (pointSize): New field.
6730 (Font): Implemented constructor.
6731 (isPlain): Implemented method.
6732 (isBold): Implemented method.
6733 (isItalic): Implemented method.
6734 (getName): Implemented method.
6735 (getStyle): Implemented method.
6736 (getSize): Implemented method.
6737 (getSize2D): Implemented method.
6739 * java/awt/Frame.java (getFont): Stubbed.
6740 (postEvent): Stubbed.
6742 * java/awt/Menu.java (postEvent): Stubbed.
6743 * java/awt/MenuBar.java (getFont): Stubbed.
6744 (postEvent): Stubbed.
6745 * java/awt/Toolkit.java (getImage): Added abstract method.
6747 2000-03-15 Tom Tromey <tromey@cygnus.com>
6749 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6751 * prims.cc (win32_exception_handler): Reformatted.
6753 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6754 (_Jv_HaveMutexDestroy): Likewise.
6756 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6758 * java/io/natFileDescriptorWin32.cc: New file.
6759 * java/io/natFileWin32.cc: New file.
6760 * java/net/natInetAddress.cc: Added conditional inclusion of
6761 Windows / Winsock headers.
6762 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6763 inclusion of Windows / Winsock headers.
6764 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6765 Windows / Winsock headers.
6766 * include/win32-signal.h: New file.
6767 * include/win32-threads.h: New file.
6768 * win32-threads.cc: New file.
6769 * exception.cc (win32_get_restart_frame): New function.
6770 * prims.cc (win32_exception_handler): New function.
6771 (main_init) Performs Winsock initialisation.
6772 (main_init) Installs exeception handler.
6774 2000-03-14 Tom Tromey <tromey@cygnus.com>
6776 * jni.cc (mangled_name): Fixed assertion.
6777 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6778 turned assert into actual failure.
6780 2000-03-09 Warren Levy <warrenl@cygnus.com>
6782 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6783 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6784 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6786 2000-03-09 Warren Levy <warrenl@cygnus.com>
6788 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6789 * java/security/DigestException.java: New file.
6790 * java/security/GeneralSecurityException.java: New file.
6791 * java/security/InvalidAlgorithmParameterException.java: New file.
6792 * java/security/InvalidKeyException.java: New file.
6793 * java/security/InvalidParameterException.java: New file.
6794 * java/security/Key.java: New file.
6795 * java/security/KeyException.java: New file.
6796 * java/security/KeyPair.java: New file.
6797 * java/security/KeyPairGenerator.java: New file.
6798 * java/security/KeyPairGeneratorSpi.java: New file.
6799 * java/security/NoSuchProviderException.java: New file.
6800 * java/security/PrivateKey.java: New file.
6801 * java/security/Provider.java: New file.
6802 * java/security/PublicKey.java: New file.
6803 * java/security/SecureRandom.java: New file.
6804 * java/security/Security.java: New file.
6805 * java/security/Signature.java: New file.
6806 * java/security/SignatureException.java: New file.
6807 * java/security/interfaces/DSAKey.java: New file.
6808 * java/security/interfaces/DSAParams.java: New file.
6809 * java/security/interfaces/DSAPrivateKey.java: New file.
6810 * java/security/interfaces/DSAPublicKey.java: New file.
6811 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6812 * java/security/interfaces/RSAPrivateKey.java: New file.
6813 * java/security/interfaces/RSAPublicKey.java: New file.
6814 * java/security/spec/AlgorithmParameterSpec.java: New file.
6815 * java/security/spec/InvalidKeySpecException.java: New file.
6816 * java/security/spec/InvalidParameterSpecException.java: New file.
6817 * java/security/spec/KeySpec.java: New file.
6818 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6819 * java/security/spec/RSAPrivateKeySpec.java: New file.
6820 * java/security/spec/RSAPublicKeySpec.java: New file.
6821 * Makefile.am: Added above java.security files.
6822 * Makefile.in: Rebuilt.
6824 * java/security/MessageDigest.java: Rewritten.
6825 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6827 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6831 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6833 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6834 _Jv_PrepareConstantTimeTables.
6835 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6836 classes should have an IDT, so don't return if klass is an array
6839 2000-03-08 Tom Tromey <tromey@cygnus.com>
6841 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6842 of `void' to be created.
6844 2000-03-08 Warren Levy <warrenl@cygnus.com>
6846 * java/math/BigInteger.java(signum): Handle zero properly.
6848 2000-03-07 Tom Tromey <tromey@cygnus.com>
6850 * All files: Updated copyright information.
6851 * COPYING: New file.
6852 * COPYING.LIB: Removed.
6853 * LIBGCJ_LICENSE: We now use GPL + special exception.
6855 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6857 * resolve.cc (_Jv_SearchMethodInClass): New function.
6858 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6859 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6861 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6863 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6864 (struct _Jv_ifaces): New declaration.
6865 JV_CLASS: New macro definition.
6866 (getComponentType): Relocate below isArray() for inlining.
6867 (getModifiers): Declare `inline'.
6868 (getSuperclass): Ditto.
6870 (isPrimitive): Ditto.
6871 (_Jv_IsAssignableFrom): New prototype.
6872 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6874 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6875 Check for JV_STATE_DONE before invoking initializeClass().
6876 (_Jv_PrepareConstantTimeTables): New prototype.
6877 (_Jv_GetInterfaces): Ditto.
6878 (_Jv_GenerateITable): Ditto.
6879 (_Jv_GetMethodString): Ditto.
6880 (_Jv_AppendPartialITable): Ditto.
6881 (_Jv_FindIIndex): Ditto.
6882 depth, ancestors, idt: New class fields.
6884 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6885 inline function `_Jv_IsAssignableFrom'. Use that function.
6886 (isInstance): Declare `inline'.
6887 (initializeClass): Get lock on class before checking `state'. Unlock
6888 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6890 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6891 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6892 class->depth and ancestor table.
6893 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6894 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6895 _Jv_IsAssignableFrom.
6896 (_Jv_CheckArrayStore): Ditto.
6897 (_Jv_LookupInterfaceMethodIdx): New function.
6898 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6899 (_Jv_PrepareConstantTimeTables): New function.
6900 (_Jv_IndexOf): Ditto.
6901 (_Jv_GetInterfaces): Ditto.
6902 (_Jv_GenerateITable): Ditto.
6903 (_Jv_GetMethodString): Ditto.
6904 (_Jv_AppendPartialITable): Ditto.
6905 iindex_mutex, iindex_mutex_initialized: New static fields.
6906 (_Jv_FindIIndex): New function.
6908 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6910 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6911 (_Jv_CheckArrayStore): Ditto.
6912 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6913 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6914 Moved to gcj/array.h.
6915 (_Jv_Realloc): New function.
6917 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6919 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6920 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6921 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6922 JvNewDoubleArray): Implementations moved from prims.cc and
6925 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6927 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6929 2000-03-06 Tom Tromey <tromey@cygnus.com>
6931 * jni.cc (MARK_NONE): New define.
6932 (MARK_USER): Likewise.
6933 (MARK_SYSTEM): Likewise.
6934 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6936 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6937 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6938 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6939 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6941 (call): Use MARK_SYSTEM.
6942 (_Jv_GetJNIEnvNewFrame): New function.
6943 (_Jv_LookupJNIMethod): New function.
6944 (_Jv_JNI_PopSystemFrame): New function.
6945 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6947 2000-03-05 Tom Tromey <tromey@cygnus.com>
6949 Fix for PR libgcj/43:
6950 * include/Makefile.in: Rebuilt.
6951 * include/Makefile.am (include_HEADERS): New define.
6953 2000-03-05 Anthony Green <green@redhat.com>
6955 * gcj/javaprims.h ("Java"): Remove FirstThread.
6957 * configure.host: Fix __NO_MATH_INLNES botch.
6959 * Makefile.in: Rebuilt.
6960 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6961 (gnu/gcj/runtime/FirstThread.h): Moved.
6962 (ordinary_java_source_files): Move FirstThread.java.
6963 * prims.cc: Deal with FirstThread movement.
6965 (_Jv_RunMain): Ditto.
6967 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6968 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6970 2000-03-05 Warren Levy <warrenl@cygnus.com>
6972 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6973 Handle null addresses.
6975 2000-03-04 Anthony Green <green@redhat.com>
6977 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6980 2000-03-04 Anthony Green <green@redhat.com>
6982 * configure: Rebuilt.
6983 * configure.in (ZLIBTESTSPEC): New macro.
6984 (GCTESTSPEC): New macro.
6985 (LIBGCJTESTSPEC): New macro.
6986 * libgcj-test.spec.in: New file.
6988 2000-03-02 Tom Tromey <tromey@cygnus.com>
6990 * include/java-interp.h: Don't include MethodInvocation.h.
6991 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6992 * Makefile.in: Rebuilt.
6993 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6994 (ordinary_java_source_files): Don't mention
6995 MethodInvocation.java.
6996 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6997 * interpret.cc (MethodInvocation::continue1): Removed.
6998 (run): Handle exceptions here.
6999 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7001 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7003 (defineClass2): Removed.
7005 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7007 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7009 (hack_call): Removed.
7011 * java/lang/Class.h (Class): Removed hackRunInitializers,
7013 * java/lang/natClass.cc (hackRunInitializers): Removed.
7014 (initializeClass): Catch exceptions here.
7015 Include ExceptionInInitializerError.h.
7016 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7019 * java/lang/Object.h (Object): Don't mention hack12_6.
7020 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7022 * java/lang/Object.java (hack12_6): Removed.
7024 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7025 (start): Use run_, not run__.
7026 * java/lang/Thread.java (run_): Renamed from run__; old run_
7029 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7030 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7031 (_Jv_JNI_DefineClass): Likewise.
7032 (_Jv_JNI_ThrowNew): Likewise.
7033 (_Jv_JNI_AllocObject): Likewise.
7034 (_Jv_JNI_GetAnyMethodID): Likewise.
7035 (_Jv_JNI_CallAnyMethodV): Likewise.
7036 (_Jv_JNI_CallAnyMethodA): Likewise.
7037 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7038 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7039 (_Jv_JNI_GetAnyFieldID): Likewise.
7040 (_Jv_JNI_NewString): Likewise.
7041 (_Jv_JNI_NewStringUTF): Likewise.
7042 (_Jv_JNI_GetStringUTFChars): Likewise.
7043 (_Jv_JNI_NewObjectArray): Likewise.
7044 (_Jv_JNI_NewPrimitiveArray): Likewise.
7045 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7046 (_Jv_JNI_GetStringRegion): Likewise.
7047 (_Jv_JNI_GetStringUTFRegion): Likewise.
7048 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7049 (_Jv_JNI_MonitorEnter): Likewise.
7050 (_Jv_JNI_MonitorExit): Likewise.
7051 (_Jv_JNI_ToReflectedField): Likewise.
7052 (_Jv_JNI_ToReflectedMethod): Likewise.
7053 (_Jv_JNI_RegisterNatives): Likewise.
7054 (_Jv_JNI_AttachCurrentThread): Likewise.
7055 (_Jv_JNI_DestroyJavaVM): Likewise.
7057 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7059 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7060 error caused by the incorrect casting of a long to an int.
7062 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7064 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7065 SIGSEV caused by use of the wrong instance variable.
7067 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7069 * java/io/File.java (File(String, String)): For dirPath, treat an
7070 empty String the same as `null'.
7072 2000-02-26 Anthony Green <green@cygnus.com>
7074 * gnu/gcj/io/MimeTypes.java: Test for null.
7076 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7077 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7079 * java/net/URLConnection.java: Update copyright notice.
7081 2000-02-25 Tom Tromey <tromey@cygnus.com>
7083 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7086 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7088 * java/net/URLConnection.java (initializeDateFormats): New
7090 (getHeaderFieldDate): Call initializeDateFormats if required.
7091 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7093 Fix for PR libgcj/38.
7095 2000-02-24 Warren Levy <warrenl@cygnus.com>
7097 * java/math/BigInteger.java(ival): Made private.
7101 2000-02-20 Anthony Green <green@cygnus.com>
7103 * Makefile.in: Rebuilt.
7104 * Makefile.am (ordinary_java_source_files): Add
7105 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7107 * scripts/MakeDefaultMimeTypes.java: New file.
7108 * scripts/mime.types: New file.
7109 * scripts/classes.pl: Moved from top level.
7110 * classes.pl: Moved to scripts directory.
7112 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7114 * gnu/gcj/io/MimeTypes.java: New file.
7115 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7117 2000-02-20 Tom Tromey <tromey@cygnus.com>
7119 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7121 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7123 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7126 2000-02-18 Tom Tromey <tromey@cygnus.com>
7128 * include/jvm.h (_Jv_GetJavaVM): Declare.
7129 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7130 (_Jv_MethodBase::get_method): New method.
7131 (_Jv_JNIMethod::set_function): New method.
7132 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7133 (_Jv_JNI_RegisterNatives): New function.
7134 (_Jv_JNIFunctions): Updated for new functions.
7135 (_Jv_GetJavaVM): New function.
7136 (_Jv_JNI_GetJavaVM): Use it. Now static.
7137 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7138 is already a Java thread but does not have a JNIEnv yet.
7140 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7143 2000-02-17 Tom Tromey <tromey@cygnus.com>
7145 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7148 2000-02-16 Tom Tromey <tromey@cygnus.com>
7150 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7152 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7153 (_Jv_JNI_NewObject): Likewise.
7154 (_Jv_JNI_NewObjectA): Likewise.
7155 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7156 as "return" type to _Jv_CallAnyMethodA.
7157 (_Jv_JNI_CallAnyMethodA): Likewise.
7158 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7160 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7163 2000-02-15 Tom Tromey <tromey@cygnus.com>
7165 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7167 (init_cif): Added `rtype_p' argument.
7168 * include/java-interp.h (class _Jv_MethodBase): Added
7170 (class _Jv_InterpMethod): Removed args_raw_size.
7171 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7172 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7173 class pointer as well as the ordinary arguments.
7175 * jni.cc (mangled_name): Skip leading `(' in signature.
7177 * jni.cc (add_char): Added missing `else'.
7179 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7182 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7186 * java/lang/natRuntime.cc (_load): Include library path with
7189 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7192 * java/lang/natThread.cc (dumpStack): Removed.
7193 * java/lang/Thread.java (dumpStack): Implemented.
7195 2000-02-15 Tom Tromey <tromey@cygnus.com>
7197 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7198 with `lib' for loadLibrary. Fixes PR gcj/150.
7200 2000-02-14 Warren Levy <warrenl@cygnus.com>
7202 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7204 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7208 (modPow): Rewritten to not use the naive, slow, brute force approach.
7209 (isProbablePrime): Implemented.
7210 (testBit): Implemented.
7211 (flipBit): Implemented.
7212 (getLowestSetBit): Implemented.
7214 2000-02-16 Anthony Green <green@redhat.com>
7216 * configure.host: Use the same options for i386 and i486 as we do
7219 2000-02-12 Tom Tromey <tromey@cygnus.com>
7221 * java/io/File.java (createTempFile): Use low bits from counter,
7224 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7226 * THANKS: More thanks.
7228 2000-02-11 Tom Tromey <tromey@cygnus.com>
7230 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7231 astore instruction. From Hans Boehm.
7233 2000-02-11 Warren Levy <warrenl@cygnus.com>
7235 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7236 (BigInteger(String)): New constructor.
7237 (not): Rewritten using version from Kawa's BitOps class.
7238 (valueOf): New private methods from Kawa's BitOps class.
7245 (andNot): Implemented.
7246 (clearBit): Implemented.
7247 (setBit): Implemented.
7248 (bitCount): Implemented.
7249 (toByteArray): Implemented.
7251 2000-02-11 Tom Tromey <tromey@cygnus.com>
7253 * java/io/File.java (nextValue): Now synchronized.
7255 2000-02-10 Tom Tromey <tromey@cygnus.com>
7257 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7258 * java/io/FileDescriptor.java (EXCL): New static field.
7259 * java/io/File.java (tmpdir): New static field.
7260 (createTempFile): New method.
7261 (nextValue): New method.
7262 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7265 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7266 (jboolean): Declare as an attributed int, not a bool.
7267 (_Jv_func): Declare differently for C.
7269 * gnu/gcj/jni/natNativeThread.cc: New file.
7270 * gnu/gcj/jni/NativeThread.java: New file.
7271 * java/lang/Thread.java (data): Now a RawData.
7272 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7274 * Makefile.in: Rebuilt.
7275 * Makefile.am (java/lang/Thread.h): New target.
7276 (ordinary_java_source_files): Added NativeThread.java.
7277 (nat_source_files): Added natNativeThread.cc.
7278 * java/lang/natThread.cc: Include <jni.h>
7279 (struct natThread): Added `jni_env' field.
7280 (_Jv_GetCurrentJNIEnv): New function.
7281 (_Jv_SetCurrentJNIEnv): Likewise.
7282 (initialize_native): Initialize jni_env.
7284 * jni.cc (ThreadGroupClass): New define.
7285 (_Jv_JNI_InvokeFunctions): New structure.
7286 (JNI_GetCreatedJavaVMs): New function.
7287 (the_vm): New global.
7288 (JNI_GetDefaultJavaVMInitArgs): New function.
7289 Include NativeThread.h.
7290 (NativeThreadClass): New define.
7291 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7292 (_Jv_JNI_DestroyJavaVM): New function.
7293 (_Jv_JNI_AttachCurrentThread): New function.
7294 (_Jv_JNI_DetachCurrentThread): New function.
7295 (_Jv_JNI_GetEnv): New function.
7296 (JNI_CreateJavaVM): New function.
7297 (_Jv_JNI_GetJavaVM): New function.
7298 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7299 * include/jni.h (JavaVMAttachArgs): New structure.
7300 (JNI_EDETACHED): New define.
7301 (JNI_EVERSION): Likewise.
7302 (JavaVM): Define properly.
7303 (struct JNIInvokeInterface): New structure.
7304 (class _Jv_JavaVM): New class.
7305 (JNI_OnLoad, JNI_OnUnload): Declare.
7306 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7307 JNI_GetCreatedJavaVMs): Declare.
7308 (JavaVMInitArgs): New typedef.
7309 (JavaVMOption): Likewise.
7310 (JNI_ERR): New define.
7313 2000-02-10 Andrew Haley <aph@cygnus.com>
7315 * interpret.cc: Don't include fdlibm.h.
7316 Replace #if with #ifdef throughout.
7317 Declare extern __ieee754_fmod.
7318 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7320 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7321 Search class hierarchy for superclass vtable.
7323 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7324 off the end of a pointer list.
7326 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7330 2000-02-09 Tom Tromey <tromey@cygnus.com>
7332 * java/lang/natRuntime.cc (_load): Call add_library.
7333 (loadLibraryInternal): Likewise.
7335 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7336 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7337 (Output_iconv::finalize): Likewise.
7339 2000-02-08 Tom Tromey <tromey@cygnus.com>
7341 * java/util/Properties.java (setProperty): New method.
7342 (store): New method.
7344 2000-02-07 Tom Tromey <tromey@cygnus.com>
7346 * java/lang/Runtime.java (_load): Declare.
7347 (load, loadLibrary): Wrote in terms of _load.
7348 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7350 (loadLibrary): Likewise.
7352 (_load): New method.
7353 (loadLibrary, load): Removed.
7355 * jni.cc (ThrowableClass): New define.
7356 (_Jv_JNI_Throw): Check argument.
7357 (_Jv_JNI_ThrowNew): Likewise.
7358 (wrap_value): Don't wrap object if it is NULL.
7359 (_Jv_JNI_DefineClass): Use wrap_value.
7360 (_Jv_JNI_FindClass): Likewise.
7361 (_Jv_JNI_GetSuperclass): Likewise.
7362 (_Jv_JNI_ExceptionOccurred): Likewise.
7363 (_Jv_JNI_AllocObject): Likewise.
7364 (_Jv_JNI_GetObjectClass): Likewise.
7365 (_Jv_JNI_NewString): Likewise.
7366 (_Jv_JNI_NewStringUTF): Likewise.
7367 (_Jv_JNI_NewObjectArray): Likewise.
7368 (_Jv_JNI_GetObjectArrayElement): Likewise.
7369 (_Jv_JNI_NewPrimitiveArray): Likewise.
7370 (_Jv_JNI_ToReflectedField): Likewise.
7371 (_Jv_JNI_ToReflectedMethod): Likewise.
7372 (_Jv_JNI_AllocObject): Check argument.
7373 (_Jv_JNI_NewObjectV): Likewise.
7374 (_Jv_JNI_NewObject): Likewise.
7375 (_Jv_JNI_NewObjectA): Likewise.
7376 (_Jv_JNI_GetObjectClass): Likewise.
7377 (_Jv_JNI_GetField): Likewise.
7378 (_Jv_JNI_SetField): Likewise.
7380 * interpret.cc (PUSHL): Don't use expression statement.
7385 * jni.cc (add_char): Conditional on INTERPRETER.
7386 (mangled_name): Likewise.
7388 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7390 (class _Jv_JNIMethod): Likewise.
7392 2000-02-04 Warren Levy <warrenl@cygnus.com>
7394 * Makefile.am: Added MPN.java and BigInteger.java.
7395 * Makefile.in: Rebuilt.
7396 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7398 * java/math/BigInteger.java: New file. Based primarily on
7399 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7401 2000-02-04 Tom Tromey <tromey@cygnus.com>
7403 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7405 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7406 if the method is native.
7407 * resolve.cc (ncode): Don't handle native methods.
7408 (_Jv_JNIMethod::ncode): New method.
7409 (_Jv_PrepareClass): Handle native methods.
7410 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7411 Include AbstractMethodError.h.
7412 (add_char): New function.
7413 (mangled_name): Likewise.
7414 * include/java-interp.h (class _Jv_JNIMethod): New class.
7415 (class _Jv_MethodBase): New class.
7416 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7417 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7420 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7421 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7422 libraries): New globals.
7423 (add_library): New function.
7424 (_Jv_FindSymbolInExecutable): New function.
7426 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7429 2000-02-04 Andrew Haley <aph@cygnus.com>
7431 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7432 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7433 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7434 printStackTrace to printRawStackTrace.
7436 2000-02-03 Tom Tromey <tromey@cygnus.com>
7438 * java/util/Calendar.java (toString): New method.
7439 * java/util/SimpleTimeZone.java (clone): New method.
7440 (toString): New method.
7441 * java/util/TimeZone.java (clone): New method.
7442 * java/text/SimpleDateFormat.java (clone): New method.
7443 * java/text/NumberFormat.java (clone): New method.
7444 (equals): New method.
7445 * java/text/Format.java (clone): New method.
7446 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7448 (clone): New method.
7449 * java/text/DateFormat.java (clone): New method.
7450 * java/text/Collator.java (clone): New method.
7452 2000-02-03 Tom Tromey <tromey@cygnus.com>
7454 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7457 2000-02-01 Tom Tromey <tromey@cygnus.com>
7459 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7460 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7461 constructing the closure if the function is native.
7462 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7463 a template function, #if'd out, or static.
7464 Include <java-interp.h>.
7466 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7468 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7470 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7471 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7473 (wrap_value): New function.
7474 (_Jv_JNI_CallAnyMethodV): Use it.
7475 (_Jv_JNI_CallAnyMethodA): Likewise.
7476 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7477 (_Jv_JNI_GetStaticField): Likewise.
7479 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7480 (_Jv_JNI_GetStaticField): Likewise.
7482 2000-01-31 Tom Tromey <tromey@cygnus.com>
7484 * prims.cc (_Jv_MallocUnchecked): New function.
7485 (main_init): Call _Jv_JNI_Init.
7486 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7487 (_Jv_JNI_Init): Declare.
7488 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7490 (_Jv_JNI_NewGlobalRef): New function.
7491 (_Jv_JNI_DeleteGlobalRef): New function.
7492 (_Jv_JNI_DeleteLocalRef): New function.
7493 (_Jv_JNI_conversion_call): Initialize and clear local reference
7495 (_Jv_JNI_NewLocalRef): New function.
7496 (struct _Jv_JNI_LocalFrame): New structure.
7497 (_Jv_JNI_PushLocalFrame): New function.
7498 (_Jv_JNI_EnsureLocalCapacity): New function.
7499 (FRAME_SIZE): New define.
7500 (_Jv_JNI_GetStringChars): Mark string, not characters.
7501 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7502 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7503 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7505 (_Jv_JNI_DefineClass): Make return value a local ref.
7506 (_Jv_JNI_FindClass): Likewise.
7507 (_Jv_JNI_GetSuperclass): Likewise.
7508 (_Jv_JNI_ExceptionOccurred): Likewise.
7509 (_Jv_JNI_AllocObject): Likewise.
7510 (_Jv_JNI_GetObjectClass): Likewise.
7511 (_Jv_JNI_CallAnyMethodV): Likewise.
7512 (_Jv_JNI_NewString): Likewise.
7513 (_Jv_JNI_NewStringUTF): Likewise.
7514 (_Jv_JNI_NewObjectArray): Likewise.
7515 (_Jv_JNI_GetObjectArrayElement): Likewise.
7516 (_Jv_JNI_ToReflectedField): Likewise.
7517 (_Jv_JNI_ToReflectedMethod): Likewise.
7518 (_Jv_JNIFunctions): Updated table for new functions.
7519 (_Jv_JNI_Init): New function.
7520 (mark_for_gc): Wrote.
7521 (unmark_for_gc): Wrote.
7522 * include/jni.h (struct JNINativeInterface): Removed name from
7523 PopLocalFrame parameter.
7524 (class _Jv_JNIEnv): Added `locals' field.
7526 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7528 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7531 2000-01-30 Tom Tromey <tromey@cygnus.com>
7533 * include/config.h.in: Rebuilt.
7534 * acconfig.h (HAVE_ICONV): Define.
7535 * configure: Rebuilt.
7536 * configure.in: Check for `iconv' function.
7537 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7538 no specific encoder exists.
7539 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7540 no specific encoder exists.
7541 * Makefile.in: Rebuilt.
7542 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7544 (nat_source_files): Added natIconv.cc.
7545 * gnu/gcj/convert/natIconv.cc: New file.
7546 * gnu/gcj/convert/Input_iconv.java: New file.
7547 * gnu/gcj/convert/Output_iconv.java: New file.
7549 2000-01-28 Tom Tromey <tromey@cygnus.com>
7551 * Makefile.in: Rebuilt.
7552 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7554 2000-01-26 Tom Tromey <tromey@cygnus.com>
7556 * gcj/method.h (JvNumMethods): Moved from Class.h.
7557 (JvGetFirstMethod): Likewise.
7558 * java/lang/Class.h (Object): Updated decl of
7559 _Jv_JNI_ToReflectedField.
7560 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7561 * Makefile.in: Rebuilt.
7562 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7563 argument of _Jv_JNI_ToReflectedField.
7564 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7566 (java/lang/reflect/Method.h): Likewise.
7567 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7569 (jweak): New typedef.
7570 (struct JNINativeInterface): Correctly declare remaining entries.
7571 * jni.cc: Include Class.h, ClassLoader.h.
7572 (_Jv_JNI_FindClass): New function.
7573 (_Jv_JNI_DefineClass): New function.
7574 (_Jv_JNI_conversion_call): New function.
7575 (_Jv_JNI_FindClass): Use current class loader to find class.
7576 (_Jv_JNI_ExceptionCheck): New function.
7577 (_Jv_JNI_FromReflectedField): Now static.
7578 (MethodClass): New define.
7579 (_Jv_JNI_FromReflectedMethod): New function.
7580 (_Jv_JNI_ToReflectedMethod): Likewise.
7582 (_Jv_JNI_IsAssignableFrom): Renamed.
7583 (_Jv_JNI_GetStringRegion): New function.
7584 Include StringIndexOutOfBoundsException.h.
7585 (_Jv_JNI_GetStringUTFRegion): New function.
7586 (_Jv_JNIFunctions): Updated for new functions.
7587 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7588 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7589 (_Jv_JNI_GetStringCritical): New function.
7590 (_Jv_JNI_ReleaseStringCritical): Likewise.
7591 (get_throwable): Removed.
7592 (GCJ_JV_JNIENV_FRIEND): Removed.
7593 (__GCJ_JNI_IMPL__): Define.
7596 * resolve.cc (get_ffi_type_from_signature): Handle case where
7599 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7601 * interpret.cc (run): Don't call println.
7602 Don't include PrintStream.h.
7604 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7605 nameIndex. Use "jint" as type for boffset.
7606 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7608 (Class): Likewise. Also changed type of method_count,
7609 vtable_method_count, size_in_bytes, field_count,
7610 static_field_count, interface_count.
7611 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7614 2000-01-21 Tom Tromey <tromey@cygnus.com>
7616 * java/lang/reflect/natConstructor.cc (newInstance): Use
7618 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7619 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7620 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7623 (invoke): Use _Jv_CallAnyMethodA.
7625 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7626 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7628 (struct _Jv_Method): Added getNextMethod method.
7629 (JvNumMethods): New function.
7630 (JvGetFirstMethod): Likewise.
7631 * gcj/field.h (JvGetFirstStaticField): New function.
7632 (JvNumStaticFields): Likewise.
7633 (getNextField): Renamed from getNextInstanceField.
7634 (struct _Jv_Field): New method getClass.
7635 * jni.cc: Wrote many new functions.
7636 * include/jni.h (JNI_TRUE): Define.
7637 (JNI_FALSE): Likewise.
7638 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7639 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7640 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7641 (jfieldID, jmethodID): Likewise.
7642 (JNI_COMMIT, JNI_ABORT): New defines.
7643 (JNINativeMethod): New struct.
7644 (struct JNINativeInterface): Correctly declared more entries.
7645 (class _Jv_JNIEnv): Added `ex' member.
7646 (JNI_VERSION_1_1): New define.
7647 (JNI_VERSION_1_2): Likewise.
7649 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7650 getNextInstanceField.
7652 2000-01-20 Tom Tromey <tromey@cygnus.com>
7654 * resolve.cc (StringClass): Removed.
7655 * defineclass.cc (StringClass): Removed.
7657 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7661 2000-01-19 Tom Tromey <tromey@cygnus.com>
7663 * interpret.cc (PC_REGISTER_ASM): Removed.
7665 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7666 From Bryce McKinlay.
7668 * All files: Updated copyright to reflect Cygnus purchase.
7670 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7672 * configure: Rebuilt.
7673 * configure.in: Recognize --disable-interpreter.
7675 2000-01-18 Andrew Haley <aph@cygnus.com>
7677 * name-finder.cc (lookup): Check for dladdr function.
7678 acconfig.h (HAVE_DLADDR): Add.
7679 configure.in: Check for HAVE_DLADDR
7681 include/config.h.in: Rebuilt.
7683 2000-01-17 Andrew Haley <aph@cygnus.com>
7685 * prims.cc (_Jv_RunMain): Set the name of this executable.
7687 2000-01-17 Tom Tromey <tromey@cygnus.com>
7689 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7690 when backtrace can't be computed.
7692 * configure: Rebuilt.
7693 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7695 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7696 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7697 (_Jv_FindClassInCache): Likewise.
7698 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7699 (findSystemClass): Try to load class from compiled module.
7701 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7702 (loadLibrary): Likewise.
7703 (lt_preloaded_symbols): Define.
7704 (loadLibraryInternal): New method.
7705 * include/config.h.in: Rebuilt.
7706 * acconfig.h (USE_LTDL): Added.
7707 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7708 (INCLUDES): Added $(INCLTDL).
7709 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7710 (libgcj_la_LIBADD): Likewise.
7711 * aclocal.m4, configure: Rebuilt.
7712 * configure.in: Added libltdl support.
7714 2000-01-15 Tom Tromey <tromey@cygnus.com>
7716 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7718 2000-01-14 Andrew Haley <aph@cygnus.com>
7720 * java/lang/natThrowable.cc: New file.
7722 * java/lang/Throwable.java (fillInStackTrace): Make native.
7723 (printStackTrace): Call native method to do this.
7724 (Throwable): Call fillInStackTrace.
7725 (stackTrace): New variable.
7727 * include/jvm.h: Add _Jv_ThisExecutable functions.
7729 * prims.cc: (_Jv_execName): New variable.
7730 (catch_segv): Call fillInStackTrace.
7732 (_Jv_ThisExecutable): New functions.
7733 (JvRunMain): Set the name of this executable.
7735 * Makefile.am: Add java/lang/natThrowable.cc.
7737 * Makefile.in: Rebuilt.
7739 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7741 * configure.in: Force link with __frame_state_for in
7742 FORCELIBGCCSPEC. Add new checks for backtrace.
7743 * include/config.h.in: Rebuilt.
7745 * name-finder.cc: New file.
7746 * include/name-finder.h: New file.
7748 2000-01-16 Anthony Green <green@cygnus.com>
7750 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7753 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7755 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7757 2000-01-13 Tom Tromey <tromey@cygnus.com>
7759 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7760 not system loader, as initiating loader.
7762 2000-01-11 Tom Tromey <tromey@cygnus.com>
7764 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7765 HP/UX. From David Scott Urban.
7767 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7769 * java/lang/natMath.cc (pow): Cast args to `double', not
7772 (IEEEremainder): Likewise.
7773 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7774 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7776 2000-01-09 Anthony Green <green@cygnus.com>
7778 * java/lang/natString.cc (init): Test for overflow condition
7779 during out of bounds check.
7780 (getChars): Throw StringIndexOutOfBoundsException, not
7781 ArrayIndexOutOfBoundsException.
7783 (regionMatches): Obey case option during string comparison.
7785 * configure.host (ligcj_interpreter): New variable. Enable
7786 interpreter by default on IA-32.
7787 * configure.in: Examine libgcj_interpreter.
7788 * configure: Rebuilt.
7790 2000-01-07 Tom Tromey <tromey@cygnus.com>
7792 * mauve-libgcj: Don't disable ClassTest.
7794 * java/lang/natClass.cc (getClasses): Wrote.
7796 2000-01-06 Tom Tromey <tromey@cygnus.com>
7798 * java/lang/natClass.cc (_getConstructors): Correctly check
7799 whether method name is the init name.
7800 (getMethod): Look at accflags on method in `klass', not `this'.
7802 2000-01-05 Tom Tromey <tromey@cygnus.com>
7804 * java/lang/natClass.cc (getMethod): Compute offset relative to
7805 `klass's methods table, not `this's table.
7807 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7808 In unwrapping/widening case, check whether `k' is null, not
7809 whether it is primitive. Initialize `num' from `argelts', not
7810 `paramelts'. Correct create and pass arguments to ffi_call.
7811 Don't let presence of `this' argument affect index used to look in
7813 (COPY): Set appropriate element in `values' vector.
7815 * java/lang/natClass.cc: Include <gcj/method.h>.
7817 * java/lang/Class.h (_getMethods): Correctly declare as private,
7820 * java/lang/Class.h (_getMethods): Declare.
7821 * java/lang/Class.java (_getMethods): Declare.
7822 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7823 (getDeclaredClasses): Always return empty array.
7824 (_getMethods): New method.
7825 (getMethods): Wrote.
7826 (getDeclaredMethod): Return `rmethod'.
7827 (finit_name): New global.
7828 (getDeclaredMethods): Check for finit_name.
7829 (_getMethods): Likewise.
7830 (getMethod): Only return public methods.
7832 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7833 jboolean and select correct ffi type on that basis.
7834 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7835 Constructor call always has `void' return type.
7837 2000-01-04 Tom Tromey <tromey@cygnus.com>
7839 * java/lang/Class.h (getSignature): Updated.
7840 * java/lang/Class.java (getSignature): Updated.
7841 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7843 (getConstructor): Ensure constructor is public.
7844 (_getConstructors): Check for public-ness of constructor when
7845 `declared' is false, not when it is true.
7847 2000-01-04 Warren Levy <warrenl@cygnus.com>
7849 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7851 (receive): Set the sender's address in the DatagramPacket.
7853 2000-01-04 Tom Tromey <tromey@cygnus.com>
7855 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7856 declaring class as return_type argument to
7857 _Jv_CallNonvirtualMethodA.
7858 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7859 constructor case, create object and use it as `this' argument.
7860 * java/lang/Class.h (_getConstructors): Declare.
7861 (_getFields): Declare.
7862 * java/lang/Class.java (getConstructors): Wrote.
7863 (_getConstructors): New native method.
7864 (getDeclaredConstructors): Wrote.
7865 (_getFields): Declare new native method.
7866 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7868 (getMethod): Work correctly when class is primitive.
7869 (getDeclaredMethods): Likewise. Compute offset using `method',
7871 (getDeclaredMethod): Likewise.
7872 (getConstructor): Wrote.
7873 (ConstructorClass): New define.
7874 (getDeclaredConstructor): Wrote.
7875 (_getConstructors): New method.
7876 (_getFields): New method.
7879 * Makefile.in: Rebuilt.
7880 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7882 * prims.cc: Remove `#pragma implementation'.
7883 * gcj/array.h: Remove `#pragma interface'.
7885 * prims.cc (_Jv_equaln): New function.
7886 * java/lang/Class.java (getSignature): Declare.
7887 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7888 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7890 (getSignature): New method.
7891 (getDeclaredMethod): Wrote.
7893 Include StringBuffer.h.
7894 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7895 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7897 (getSignature): Declare.
7898 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7899 (_Jv_equaln): Declare.
7900 (_Jv_CallNonvirtualMethodA): Declare.
7901 * Makefile.in: Rebuilt.
7902 * Makefile.am (nat_source_files): Added natConstructor.cc.
7903 (java/lang/reflect/Constructor.h): New target.
7904 * java/lang/reflect/natConstructor.cc: New file.
7905 * java/lang/reflect/Constructor.java (newInstance): Now native.
7906 (declaringClass): Renamed from decl_class.
7907 (offset): Renamed from index.
7908 (getType): New native method.
7909 (getModifiers): Now native.
7910 (getParameterTypes): Call getType if required.
7911 (hashCode): Include hash code from declaring class.
7912 (modifiers): Removed.
7913 (toString): Call getType if required.
7914 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7915 * java/lang/reflect/natMethod.cc (hack_call): New method.
7916 Removed `#if 0' around FFI code.
7917 Include <gnu/gcj/RawData.h>.
7918 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7919 IllegalArgumentException when argument object and class disagree.
7920 (_Jv_GetTypesFromSignature): New function.
7922 (ObjectClass): New define.
7923 (_Jv_CallNonvirtualMethodA): New function.
7924 * java/lang/reflect/Method.java (hack_trampoline): New method.
7925 (hack_call): New native method.