1 2001-10-05 Mark Wielaard <mark@klomp.org>
3 * java/util/zip/Adler32.java: Merge with Classpath
4 * java/util/zip/CRC32.java: Ditto
5 * java/util/zip/Checksum.java: Ditto
6 * java/util/zip/DataFormatException.java: Ditto
7 * java/util/zip/ZipException.java: Ditto
9 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
11 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
13 2001-10-04 Mark Wielaard <mark@klomp.org>
15 * java/lang/reflect/Modifier.java: Merge with Classpath
17 2001-10-03 Mark Wielaard <mark@klomp.org>
19 * java/io/SequenceInputStream.java: Merge with Classpath
20 * java/io/StringBufferInputStream.java: Ditto
21 * java/util/Collections.java: Remerge with Classpath
23 2001-10-03 Tom Tromey <tromey@redhat.com>
25 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
28 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
30 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
32 2001-10-02 Mark Wielaard <mark@klomp.org>
34 * Makefile.am (core_java_source_files): add InheritableThreadLocal
35 * Makefile.in: regenerate
36 * gcj/javaprims.h: ditto
37 * java/lang/InheritableThreadLocal.java: new class from Classpath
38 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
39 call InheritableThreadLocal.newChildThread()
41 2001-10-01 Mark Wielaard <mark@klomp.org>
43 * Makefile.am: Add new classes
44 (core_java_source_files): CharSequence
45 (ordinary_java_source_files): Authenticator, PasswordAuthentication
46 * Makefile.in: regenerate
47 * gcj/javaprims.h: ditto
48 * java/lang/CharSequence: new class from Classpath
49 * java/lang/String.java: implements CharSequence
50 (subSequence (int,int)): new method
51 * java/lang/SubString.java: implements CharSequence
52 (subSequence (int,int)): new method
53 remerge comments with Classpath
54 * java/net/Authenticator.java: new class from Classpath
55 * java/net/PasswordAuthentication.java: ditto
57 2001-10-01 Tom Tromey <tromey@redhat.com>
59 * gcj/javaprims.h: Rebuilt class list.
60 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
61 (_Jv_GCCanReclaimSoftReference): New function.
62 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
63 (_Jv_GCCanReclaimSoftReference): Declare.
64 * java/lang/ref/Reference.java (referent): Now a RawData.
65 (create): Renamed from `created'. Added object argument.
66 (Reference): Don't initialize `referent' here.
67 * Makefile.in: Rebuilt.
68 * Makefile.am (nat_source_files): Added new file.
69 * java/lang/ref/natReference.cc: New file.
71 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
72 (_Jv_NewMultiArray): Use it. Check each array dimension.
73 (_Jv_NewMultiArray): Likewise.
74 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
76 * java/lang/reflect/natArray.cc (newInstance): Throw
77 IllegalArgumentException if there are no dimensions.
79 2001-10-01 Mark Wielaard <mark@klomp.org>
81 * java/io/FileWriter.java: Merge with Classpath.
82 * java/io/FilterInputStream.java: Ditto.
83 (mark): no longer synchronized
85 * java/io/FilterOutputStream.java: Merge with Classpath.
86 * java/io/FilterReader.java: Ditto.
87 (mark): no longer synchronized
89 * java/io/FilterWriter.java: Merge with Classpath.
90 * java/io/Writer.java: Ditto.
91 * java/lang/Compiler.java: Ditto.
92 * java/lang/Process.java: Ditto.
93 * java/lang/Void.java: Ditto.
94 * java/net/ContentHandler.java: Ditto.
95 * java/net/DatagramPacket.java: Ditto.
96 * java/net/MulticastSocket.java: Merge comments with Classpath.
98 2001-09-30 Mark Wielaard <mark@klomp.org>
100 * java/io/DataInput.java: Merge with Classpath.
101 * java/io/DataOutput.java: Idem.
102 * java/io/FilenameFilter.java: Idem.
103 * java/io/Serializable.java: Idem.
104 * java/lang/Cloneable.java: Idem.
105 * java/lang/Comparable.java: Idem.
106 * java/lang/Runnable.java: Idem.
107 * java/lang/reflect/Member.java: Idem.
108 * java/net/ContentHandlerFactory.java: Idem.
109 * java/net/FileNameMap.java: Idem.
110 * java/net/SocketImplFactory.java: Idem.
111 * java/net/SocketOptions.java: Idem.
112 * java/net/URLStreamHandlerFactory.java: Idem.
114 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
116 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
117 an uninitialized target class.
119 * gnu/gcj/protocol/file/Connection.java (connect): Throw
120 FileNotFoundException if appropriate.
121 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
122 IOException if we got a file: url with a hostname. Comment out protocol
123 switch to ftp for now.
124 * java/net/URL.java (URL): Include protocol name in exception message
125 when handler can't be found.
127 2001-09-28 Per Bothner <per@bothner.com>
129 * gnu/gcj/runtime/SharedLibLoader.java: New class.
130 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
131 * Makefile.am: Update accordingly.
132 * configure.in: Add AC_CHECK_LIB for dlopen.
133 * include/config.h.in: Add HAVE_DLOPEN.
135 2001-09-29 Jeff Sturm <jsturm@one-point.com>
137 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
138 * Makefile.in: Rebuilt.
140 2001-09-27 Tom Tromey <tromey@redhat.com>
142 * java/util/IdentityHashMap.java (containsKey): Use getHash.
146 (getHash): New method.
147 (tombstone, emptyslot): Now static final.
148 (put): Correctly determine when to rehash, and correctly rehash.
149 (containsKey, remove): Test against table length with `>='.
151 2001-09-26 Tom Tromey <tromey@redhat.com>
153 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
155 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
156 Re-merged with Classpath.
158 * java/io/DataInputStream.java (readChar): Use readFully.
160 (readLong): Likewise.
161 (readShort): Likewise.
162 (readUnsignedShort): Likewise.
164 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
166 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
167 IllegalThreadStateException if process hasn't exited yet.
168 * java/lang/natPosixProcess.cc (exitValue): Removed.
169 (waitFor): Only check thread interrupted status if waitpid() returned
170 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
173 * java/security/cert/X509Extension.java: Merge from classpath.
175 2001-09-22 Anthony Green <green@redhat.com>
177 * java/security/DummyKeyPairGenerator.java (initialize): New
178 method (with AlgorithmParameterSpec argument).
180 2001-09-22 Anthony Green <green@redhat.com>
182 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
184 * gnu/java/security/provider/SHA1PRNG.java: Extend from
186 (engineNextBytes): Fix order of memory copies.
188 2001-09-21 Richard Henderson <rth@redhat.com>
190 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
191 add get_method, set_method, vtable_elt_size, new_vtable.
192 (_Jv_ArrayVTable): Derive from _Jv_VTable.
193 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
194 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
195 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
197 2001-09-21 Richard Henderson <rth@redhat.com>
199 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
200 * java/lang/mprec.c (lo0bits): Fix paren typo.
202 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
204 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
205 blocking IO via pthread_kill().
206 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
207 interrupted status flag only if ::write returned an error.
208 (write (jbyteArray, jint, jint): Likewise.
209 (read (jint)): Likewise.
210 (read (jbyteArray, jint, jint): Likewise.
212 2001-09-19 Anthony Green <green@redhat.com>
214 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
217 2001-09-17 Andreas Jaeger <aj@suse.de>
219 * jni.cc (array_from_valist): Use promoted types for va_arg.
221 2001-09-16 Anthony Green <green@redhat.com>
223 * gnu/java/locale/LocaleInformation.java: Extend
224 LocaleInformation_en_US, not LocaleInformation_en.
226 2001-09-16 Anthony Green <green@redhat.com>
228 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
230 2001-09-14 Tom Tromey <tromey@redhat.com>
232 * java/util/TimeZone.java: Updated list of timezones from
235 * java/lang/CloneNotSupportedException.java: Re-merged with
238 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
240 * java/io/File.java (normalizePath): Use equals() not '==' for string
243 * java/util/Hashtable.java (Enumerator): Ensure that if
244 hasMoreElements() returns true, nextElement() will always return
245 something even if the table has been modified.
247 2001-09-12 Tom Tromey <tromey@redhat.com>
249 * Makefile.in: Rebuilt.
250 * Makefile.am (class-check): New target.
252 2001-09-11 Tom Tromey <tromey@redhat.com>
254 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
256 2001-09-10 Tom Tromey <tromey@redhat.com>
258 * java/util/Properties.java (load): Correctly read \u sequences.
259 Report from Anthony Green.
261 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
263 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
264 and $(MULTIBUILDTOP).
265 * configure: Re-generate.
267 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
269 * include/jvm.h (_Jv_AllocRawObj): New prototype.
270 * boehm.cc (_Jv_AllocRawObj): Implement.
271 * nogc.cc (_Jv_AllocRawObj): Likewise.
272 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
274 2001-09-06 Anthony Green <green@redhat.com>
276 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
277 redundant method calls.
278 (emptyLocale): New private member.
279 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
282 2001-09-06 Tom Tromey <tromey@redhat.com>
284 * java/text/RuleBasedCollator.java (clone): Rewrote.
285 (RuleBasedCollator(RuleBasedCollator)): Removed.
286 * java/text/MessageFormat.java: Re-merged from Classpath.
287 * java/text/DecimalFormat.java: Re-merged from Classpath.
289 2001-09-06 Anthony Green <green@redhat.com>
291 * include/jvm.h: Declare _Jv_RegisterResource.
292 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
293 gnu/gcj/protocol/core/Connection.java,
294 gnu/gcj/protocol/core/Handler.java,
295 gnu/gcj/protocol/core/CoreInputStream.java,
296 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
297 * java/net/URL.java (setURLStreamHandler): Use
298 gnu.gcj.protocol.core.Handler for the core protocol.
299 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
300 end of java.class.path.
301 * Makefile.am (ordinary_java_source_files): Add new java files.
302 (nat_source_files): Add new native code files.
303 * Makefile.in: Rebuilt.
305 2001-09-05 Tom Tromey <tromey@redhat.com>
307 * java/util/Properties.java: Re-merged from Classpath.
309 From Eric Blake, via Classpath:
310 * java/lang/String.java (CaseInsensitiveComparator): New class.
311 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
313 * java/util/Date.java: Re-merged with Classpath.
315 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
317 2001-09-05 Corey Minyard <minyard@acm.org>
318 Tom Tromey <tromey@redhat.com>
320 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
321 (_Jv_RegisterClassHookDefault): Throw error if a class is
324 2001-09-05 Tom Tromey <tromey@redhat.com>
326 * java/lang/natSystem.cc (init_properties): Default locale is
329 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
331 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
332 here, DecimalFormat.applyPattern() does not throw it.
334 2001-09-04 Tom Tromey <tromey@redhat.com>
336 * java/util/AbstractMap.java: Re-merged with Classpath.
337 * java/util/IdentityHashMap.java: Re-merged with Classpath.
339 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
340 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
341 gnu/gcj/text/LocaleData_en_US.java: Removed.
342 * java/text/DateFormatSymbols.java (clone): Use Classpath
344 (equals): Simplified.
345 (DateFormatSymbols): Look in gnu.java.locale for information.
346 (DateFormatSymbols(DateFormatSymbols)): Removed.
347 (safeGetResource): Removed.
348 (DateFormatSymbols): Throws MissingResourceException.
349 (ampmsDefault, erasDefault, localPatternCharsDefault,
350 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
351 weekdaysDefault, zoneStringsDefault): Removed.
352 * java/text/Collator.java (getAvailableLocales): Use modified
353 Classpath implementation.
354 (getInstance): Look in gnu.java.locale for information.
356 * java/text/MessageFormat.java: Reindented.
358 * java/text/FieldPosition.java: Merged with Classpath.
359 * java/text/ParsePosition.java: Merged with Classpath.
360 * java/text/Format.java: Merged with Classpath.
361 * java/text/StringCharacterIterator.java
362 (StringCharacterIterator(StringCharacterIterator,int,int)): New
363 constructor from Classpath.
364 * java/text/Annotation.java,
365 java/text/AttributedCharacterIterator.java,
366 java/text/AttributedString.java,
367 java/text/AttributedStringIterator.java: New from Classpath.
368 * java/text/CharacterIterator.java: Copied from Classpath.
369 * java/text/ChoiceFormat.java: Reindented.
371 * gnu/java/text/BaseBreakIterator.java,
372 gnu/java/text/CharacterBreakIterator.java,
373 gnu/java/text/LineBreakIterator.java,
374 gnu/java/text/LocaleData_en.java,
375 gnu/java/text/LocaleData_en_US.java,
376 gnu/java/text/SentenceBreakIterator.java,
377 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
378 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
380 * java/text/BreakIterator.java (getAvailableLocales): Use
381 Classpath implementation.
382 (getInstance): Look in gnu.java.locale for information.
383 (getCharacterInstance, getLineInstance, getSentenceInstance,
384 getWordInstance): Look in gnu.java.text for implementations.
385 * java/text/DecimalFormatSymbols.java: Reindented
386 (clone): Use Classpath implementation.
387 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
388 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
390 * java/text/DateFormat.java: Merged with Classpath.
391 (getAvailableLocales): Use Classpath implementation.
392 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
393 (computeInstance): Look in gnu.java.locale for information.
394 * java/text/NumberFormat.java: Reindented.
395 (computeInstance): Look in gnu.java.locale for information.
396 (getAvailableLocales): Use implementation from Classpath.
397 (setMaximumIntegerDigits): Likewise.
398 (setMinimumIntegerDigits): Likewise.
399 (setMaximumFractionDigits): Likewise.
401 * java/text/DecimalFormat.java: Reindented.
402 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
403 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
404 * Makefile.in: Rebuilt.
405 * Makefile.am (ordinary_java_source_files): Added all new files.
406 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
407 * java/security/spec/AlgorithmParameterSpec.java,
408 java/security/spec/KeySpec.java: Re-merged with Classpath.
410 Fix for PR libgcj/4213:
411 * Makefile.am (ordinary_java_source_files): Added new file.
412 * gnu/gcj/text/LocaleData.java: New file.
414 2001-09-03 Tom Tromey <tromey@redhat.com>
416 * java/lang/reflect/natField.cc (set): Allow for case when the
417 value is null. Fixes PR libgcj/4208.
419 * gcj/javaprims.h: Regenerated class list.
420 * java/lang/IllegalThreadStateException.java,
421 java/lang/InstantiationException.java: Minor comment tweaks to
422 satisfy libgcj `classes.pl' script.
424 2001-09-01 Tom Tromey <tromey@redhat.com>
426 * Makefile.in: Rebuilt.
427 * Makefile.am (core_java_source_files): Added
428 UnsupportedClassVersionError.
429 * java/lang/UnsupportedClassVersionError.java: New file from
432 * java/io/CharConversionException.java, java/io/EOFException.java,
433 java/io/FileNotFoundException.java, java/io/IOException.java,
434 java/io/InterruptedIOException.java,
435 java/io/ObjectStreamException.java,
436 java/io/OptionalDataException.java,
437 java/io/StreamCorruptedException.java,
438 java/io/SyncFailedException.java,
439 java/io/UTFDataFormatException.java,
440 java/io/UnsupportedEncodingException.java,
441 java/lang/AbstractMethodError.java,
442 java/lang/ArithmeticException.java,
443 java/lang/ArrayIndexOutOfBoundsException.java,
444 java/lang/ArrayStoreException.java,
445 java/lang/ClassCastException.java,
446 java/lang/ClassCircularityError.java,
447 java/lang/ClassFormatError.java,
448 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
449 java/lang/Exception.java,
450 java/lang/ExceptionInInitializerError.java,
451 java/lang/IllegalAccessError.java,
452 java/lang/IllegalAccessException.java,
453 java/lang/IllegalArgumentException.java,
454 java/lang/IllegalMonitorStateException.java,
455 java/lang/IllegalStateException.java,
456 java/lang/IllegalThreadStateException.java,
457 java/lang/IncompatibleClassChangeError.java,
458 java/lang/IndexOutOfBoundsException.java,
459 java/lang/InstantiationError.java,
460 java/lang/InstantiationException.java,
461 java/lang/InternalError.java, java/lang/InterruptedException.java,
462 java/lang/LinkageError.java,
463 java/lang/NegativeArraySizeException.java,
464 java/lang/NoClassDefFoundError.java,
465 java/lang/NoSuchFieldError.java,
466 java/lang/NoSuchFieldException.java,
467 java/lang/NoSuchMethodError.java,
468 java/lang/NoSuchMethodException.java,
469 java/lang/NullPointerException.java,
470 java/lang/NumberFormatException.java,
471 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
472 java/lang/SecurityException.java,
473 java/lang/StackOverflowError.java,
474 java/lang/StringIndexOutOfBoundsException.java,
475 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
476 java/lang/UnsatisfiedLinkError.java,
477 java/lang/UnsupportedOperationException.java,
478 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
479 java/lang/reflect/InvocationTargetException.java,
480 java/net/BindException.java, java/net/ConnectException.java,
481 java/net/MalformedURLException.java,
482 java/net/NoRouteToHostException.java,
483 java/net/ProtocolException.java, java/net/SocketException.java,
484 java/net/UnknownHostException.java,
485 java/net/UnknownServiceException.java,
486 java/text/ParseException.java: Copied from Classpath, thanks to
487 Mark Wielaard who did the merge.
489 * java/lang/System.java (getProperty): Use single argument form of
490 SecurityManager.checkPropertyAccess.
491 * Makefile.in: Rebuilt.
492 * Makefile.am (core_java_source_files): Added VMSecurityManager.
493 * java/lang/VMSecurityManager.java: New file.
494 * java/lang/SecurityManager.java: Merged with Classpath.
496 2001-08-31 Per Bothner <per@bothner.com>
498 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
499 (_Jv_RegisterClassHookDefault): Likewise.
500 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
501 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
502 (_Jv_RegisterClassHookDefault): New.function.
503 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
505 * java/lang/ClassLoader.java (system): Remove static field.
506 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
507 directly instead of using it to set the system field.
508 (loadClass): Use VMClassLoader.instance instead of system field.
509 (findSystemClass): Similar.
510 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
511 than ClassLoader::system which no longer exists.
512 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
514 2001-08-31 Tom Tromey <tromey@redhat.com>
516 * java/io/BufferedReader.java, java/io/ObjectInput.java,
517 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
518 Re-merged with Classpath.
520 Re-merge with Classpath:
521 * java/util/Comparator (equals): Added.
522 * java/io/PipedWriter.java (write): Changed argument to `int'.
524 * java/io/FileDescriptor.java (FileDescriptor()): New
526 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
528 * Makefile.in: Rebuilt.
529 * Makefile.am (ordinary_java_source_files): Removed
530 EnumerationChain, added DoubleEnumeration.
531 (nat_source_files): Added natResourceBundle.cc.
532 * java/util/natResourceBundle.cc: New file.
533 * gnu/java/util/DoubleEnumeration.java: New file.
534 * gnu/gcj/util/EnumerationChain.java: Removed.
535 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
536 * java/util/ResourceBundle.java: Merged with Classpath.
537 * java/util/StringTokenizer.java: Merged with Classpath.
538 * java/util/Locale.java: Merged with Classpath.
539 * java/util/Random.java: Merged with Classpath.
540 * java/util/PropertyResourceBundle.java: Merged with Classpath.
541 * java/util/ListResourceBundle.java: Merged with Classpath.
542 * java/util/ConcurrentModificationException.java: Re-merged with
544 * java/util/EmptyStackException.java: Likewise.
545 * java/util/MissingResourceException.java: Likewise.
546 * java/util/NoSuchElementException.java: Likewise.
547 * java/util/TooManyListenersException.java: Likewise.
549 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
550 * java/io/OptionalDataException.java: Merged with Classpath.
552 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
554 * exception.cc (PERSONALITY_FUNCTION): Simplify
557 2001-08-31 Tom Tromey <tromey@redhat.com>
559 * java/io/ByteArrayInputStream.java: Merged with Classpath.
561 2001-08-30 Tom Tromey <tromey@redhat.com>
563 * java/io/BufferedReader.java: Re-merged with Classpath.
565 2001-08-28 Per Bothner <per@bothner.com>
567 * java/math/BigInteger.java (init(int,Random)): New method.
568 Move body of constructor <init>(int,Random)) here.
569 Re-write it to avoid constructing unneeded temporaries.
570 (<init>(int,int,Random)): Use new init method to avoid constructing
571 extra temporary BigIntegers.
573 2001-08-27 Tom Tromey <tromey@redhat.com>
575 * java/rmi/activation/Activatable.java,
576 java/rmi/activation/ActivateFailedException.java,
577 java/rmi/activation/ActivationDesc.java,
578 java/rmi/activation/ActivationException.java,
579 java/rmi/activation/ActivationGroup.java,
580 java/rmi/activation/ActivationGroupDesc.java,
581 java/rmi/activation/ActivationGroupID.java,
582 java/rmi/activation/ActivationID.java,
583 java/rmi/activation/ActivationInstantiator.java,
584 java/rmi/activation/ActivationMonitor.java,
585 java/rmi/activation/ActivationSystem.java,
586 java/rmi/activation/Activator.java,
587 java/rmi/activation/UnknownGroupException.java,
588 java/rmi/activation/UnknownObjectException.java,
589 java/rmi/AccessException.java,
590 java/rmi/AlreadyBoundException.java,
591 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
592 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
593 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
594 java/rmi/NotBoundException.java,
595 java/rmi/RMISecurityException.java,
596 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
597 java/rmi/RemoteException.java, java/rmi/ServerError.java,
598 java/rmi/ServerException.java,
599 java/rmi/ServerRuntimeException.java,
600 java/rmi/StubNotFoundException.java,
601 java/rmi/UnexpectedException.java,
602 java/rmi/UnknownHostException.java,
603 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
604 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
605 java/rmi/registry/LocateRegistry.java,
606 java/rmi/registry/Registry.java,
607 java/rmi/registry/RegistryHandler.java,
608 java/rmi/server/ExportException.java,
609 java/rmi/server/LoaderHandler.java,
610 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
611 java/rmi/server/Operation.java,
612 java/rmi/server/RMIClassLoader.java,
613 java/rmi/server/RMIClientSocketFactory.java,
614 java/rmi/server/RMIFailureHandler.java,
615 java/rmi/server/RMIServerSocketFactory.java,
616 java/rmi/server/RMISocketFactory.java,
617 java/rmi/server/RemoteCall.java,
618 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
619 java/rmi/server/RemoteServer.java,
620 java/rmi/server/RemoteStub.java,
621 java/rmi/server/ServerCloneException.java,
622 java/rmi/server/ServerNotActiveException.java,
623 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
624 java/rmi/server/SkeletonMismatchException.java,
625 java/rmi/server/SkeletonNotFoundException.java,
626 java/rmi/server/SocketSecurityException.java,
627 java/rmi/server/UID.java,
628 java/rmi/server/UnicastRemoteObject.java,
629 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
630 gnu/java/rmi/dgc/DGCImpl_Skel.java,
631 gnu/java/rmi/dgc/DGCImpl_Stub.java,
632 gnu/java/rmi/registry/RegistryImpl.java,
633 gnu/java/rmi/registry/RegistryImpl_Skel.java,
634 gnu/java/rmi/registry/RegistryImpl_Stub.java,
635 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
636 gnu/java/rmi/server/ProtocolConstants.java,
637 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
638 gnu/java/rmi/server/RMIHashes.java,
639 gnu/java/rmi/server/RMIObjectInputStream.java,
640 gnu/java/rmi/server/RMIObjectOutputStream.java,
641 gnu/java/rmi/server/UnicastConnection.java,
642 gnu/java/rmi/server/UnicastConnectionManager.java,
643 gnu/java/rmi/server/UnicastRef.java,
644 gnu/java/rmi/server/UnicastRemoteCall.java,
645 gnu/java/rmi/server/UnicastRemoteStub.java,
646 gnu/java/rmi/server/UnicastServer.java,
647 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
648 Kaffe. Relabelled classes to fit into Classpath tree.
649 * Makefile.in: Rebuilt.
650 * Makefile.am (rmi_java_source_files): New macro.
651 (ordinary_java_source_files): Reference it.
652 (bin_PROGRAMS): Added rmic and rmiregistry.
653 (rmic_SOURCES): New macro.
654 (EXTRA_rmic_SOURCES): Likewise.
655 (rmic_LDFLAGS): Likewise.
656 (rmic_LINK): Likewise.
657 (rmic_LDADD): Likewise.
658 (rmic_DEPENDENCIES): Likewise.
659 (rmiregistry_SOURCES): New macro.
660 (EXTRA_rmiregistry_SOURCES): Likewise.
661 (rmiregistry_LDFLAGS): Likewise.
662 (rmiregistry_LINK): Likewise.
663 (rmiregistry_LDADD): Likewise.
664 (rmiregistry_DEPENDENCIES): Likewise.
666 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
668 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
670 * Makefile.am: New friends for java/lang/Thread.h.
671 * prims.cc (runFirst): Removed.
672 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
673 (_Jv_RunMain): Now takes either a klass or class name parameter.
674 Create a gnu.gcj.runtime.FirstThread and attach the native thread
675 to that, then run it using _Jv_ThreadRun. Remove special handling of
676 jar files, instead pass is_jar parameter through to FirstThread.
677 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
678 of _Jv_AttachCurrentThread.
679 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
680 (run): New method. Take care of looking up main class manifest
681 attribute and calling forName if neccessary. Then call call_main.
682 (call_main): New native method.
683 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
684 relocated from prims.cc. Look up and call main method.
685 * java/lang/Thread.java (run_): Removed.
686 * java/lang/natThread.cc (run_): Renamed to...
687 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
688 (_Jv_NotifyThreadStart): here. New function.
689 (countStackFrames, destroy, resume, suspend, stop): Throw
690 UnsupportedOperationExceptions rather than JvFail'ing.
691 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
692 Existing version wraps new variant.
695 2001-08-23 Tom Tromey <tromey@redhat.com>
697 * java/lang/reflect/Field.java (toString): Use
698 Method.appendClassName.
699 * java/lang/reflect/Constructor.java (toString): Use
700 Method.appendClassName.
701 * java/lang/reflect/Method.java: Reindented.
702 (appendClassName): New method.
704 * defineclass.cc (handleMethod ): Initialize `throws' field of
706 (read_one_method_attribute): Handle Exceptions attribute.
707 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
708 (ObjectClass): Removed.
709 (getType): Compute `exception_types'.
710 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
712 2001-08-21 Anthony Green <green@redhat.com>
714 * java/lang/natClassLoader.cc (findClass): Search for
715 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
717 2001-08-21 Jeff Sturm <jsturm@one-point.com>
719 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
722 2001-08-20 Tom Tromey <tromey@redhat.com>
724 * java/awt/GridBagConstraints.java: Removed comment.
726 * jni.cc (nathash, nathash_count, nathash_size): New globals.
727 (DELETED_ENTRY): New define.
728 (hash): New function.
729 (nathash_find_slot): Likewise.
730 (natrehash): Likewise.
731 (nathash_add): Likewise.
732 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
734 (nathash_find): New function.
735 (_Jv_LookupJNIMethod): Use it. Synchronize body.
736 (call): Synchronize around assignment.
738 2001-08-17 Jeff Sturm <jsturm@one-point.com>
740 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
741 starting from zero offset.
743 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
745 * boehm.cc: Include gc_local_alloc.h if appropriate.
746 (GC_GENERIC_MALLOC): Don't define.
747 (MAYBE_MARK): Redefine for GC 6.0.
748 (_Jv_MarkObj): Mark class differently.
749 (_Jv_AllocArray): Use GC_generic_malloc.
751 2001-08-17 Mark J Roberts <mjr@anarcast.net>
753 * java/math/BigInteger.java (randBytes): New method.
754 (BigInteger(int,Random)): Use randBytes.
756 2001-08-17 Tom Tromey <tromey@redhat.com>
758 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
760 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
762 * BigInteger.java: fix right shifts by nonzero multiples of 32.
764 2001-08-15 Tom Tromey <tromey@redhat.com>
766 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
767 (local_ref_table, global_ref_table): Now IdentityHashMap.
768 (_Jv_JNI_Init): Updated for new types.
769 (mark_for_gc): Likewise.
770 (unmark_for_gc): Likewise.
771 * gcj/javaprims.h: Rebuilt class list.
772 * Makefile.in: Rebuilt.
773 * Makefile.am (core_java_source_files): Added new file.
774 * java/util/IdentityHashMap.java: New file.
776 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
779 2001-08-09 Tom Tromey <tromey@redhat.com>
781 * java/awt/image/SampleModel.java (getPixel): Set correct array
782 element. From Chris Meyer.
784 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
786 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
787 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
789 2001-08-06 Tom Tromey <tromey@redhat.com>
791 * java/io/InputStreamReader.java (refill): Only call refill on
792 BufferedInputStream when appropriate constraints are met.
794 2001-08-05 Tom Tromey <tromey@redhat.com>
796 * java/io/StringWriter.java: Merged with Classpath.
797 * java/io/InputStream.java: Merged with Classpath.
798 * java/io/OutputStream.java: Merged with Classpath.
799 * java/io/PushbackInputStream.java: Merged with Classpath.
800 * java/io/CharArrayReader.java: Merged with Classpath.
801 * java/io/CharArrayWriter.java: Merged with Classpath.
803 2001-08-02 Tom Tromey <tromey@redhat.com>
805 * prims.cc (JNI_OnLoad): Don't declare.
806 (_JNI_OnLoad): Don't define.
807 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
809 2001-08-02 Tom Tromey <tromey@redhat.com>
811 * java/io/RandomAccessFile.java (seek): Let seek go past end of
813 (skipBytes): Don't fail if seeking past end of file.
814 * java/io/FileInputStream.java (skip): Don't fail if seeking past
816 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
818 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
820 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
822 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
824 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
826 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
827 to initialize global_ref_table/local_ref_table.
829 2001-08-02 Tom Tromey <tromey@redhat.com>
831 * configure: Rebuilt.
832 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
835 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
837 * include/posix.h (_POSIX_PII_SOCKET): Define.
838 * configure.in (HAVE_SOCKLEN_T): Define.
839 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
841 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
842 (java::net::PlainSocketImpl::accept): Use it.
843 Fixes PRs libgcj/3694, libgcj/3696.
845 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
846 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
847 * configure, include/config.h.in: Regenerate.
848 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
849 (mcastGrp): Likewise.
850 (java::net::PlainDatagramSocketImpl::setOption): Guard against
851 missing IPV6_MULTICAST_IF.
852 Fixes PR libgcj/3694.
854 2001-08-01 Jeff Sturm <jsturm@one-point.com>
856 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
858 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
860 * Makefile.in: Rebuilt.
861 * Makefile.am (GCJLINK): Added --tag=GCJ.
864 2001-07-30 Tom Tromey <tromey@redhat.com>
866 * java/util/Date.java: Re-merged with Classpath.
868 2001-07-30 Jeff Sturm <jsturm@one-point.com>
870 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
871 (_Jv_bind): New static function.
872 (bind): Use _Jv_bind.
873 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
874 (_Jv_bind, _Jv_connect): New static functions.
875 (bind): Use _Jv_bind.
876 (connect): Use _Jv_connect.
878 2001-07-30 Tom Tromey <tromey@redhat.com>
879 Corey Minyard <minyard@acm.org>
881 * gnu/gcj/convert/natIconv.cc (done): New methods.
882 * gnu/gcj/convert/Output_iconv.java (done): New method.
883 * gnu/gcj/convert/Input_iconv.java (done): New method.
884 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
886 (getDefaultEncodingClass): Removed.
887 (getDefaultEncoder): Use getEncoder.
889 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
891 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
893 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
895 (getDefaultDecodingClass): Removed.
896 (getDefaultDecoder): Use getDecoder.
897 (getDecoder): Look up decoder in cache.
899 * java/lang/natString.cc (init): Call `done' on converter.
900 (getBytes): Likewise.
902 2001-07-30 Tom Tromey <tromey@redhat.com>
904 * java/lang/Integer.java: Merged with Classpath.
906 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
908 * java/util/GregorianCalendar.java (GregorianCalendar): Call
909 setTimeInMillis() to set the default/current time.
911 2001-07-29 Mark Wielaard <mark@klomp.org>
913 * HACKING: add description on updating namespace
915 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
917 * java/util/Calendar.java (set): Never recompute fields here. They
918 will already be set if someone set time explicitly, and it can cause
919 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
920 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
921 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
923 * java/text/SimpleDateFormat.java (defaultCentury): New field.
924 (readObject): Call set2DigitYearStart if appropriate so that
925 defaultCentury is calculated.
926 (SimpleDateFormat): Don't bother clearing calendar here. Call
927 computeCenturyStart().
928 (set2DigitYearStart): Calculate and set defaultCentury.
929 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
931 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
932 2 numeric digits, use the 80-20 heuristic to parse the value into a
933 default century based on defaultCenturyStart.
934 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
936 2001-07-25 Tom Tromey <tromey@redhat.com>
938 * Makefile.in: Rebuilt.
939 * Makefile.am (libgcj.jar): Correctly fail when bytecode
942 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
944 * prims.cc (_JNI_OnLoad): New function.
945 (JNI_OnLoad): Use it.
946 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
948 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
950 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
951 Makefile.in: Regenerate.
953 2001-07-24 Tom Tromey <tromey@redhat.com>
955 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
958 2001-07-23 Tom Tromey <tromey@redhat.com>
960 * gcj/javaprims.h: Rebuilt class list.
961 * Makefile.in: Rebuilt.
962 * Makefile.am (core_java_source_files): Added VMClassLoader.
963 * java/lang/VMClassLoader.java: New file.
964 * java/lang/Boolean.java: Merged with Classpath.
965 * java/lang/Byte.java: Merged with Classpath.
966 * java/lang/Integer.java: Merged with Classpath.
967 * java/lang/Long.java: Merged with Classpath.
968 * java/lang/Number.java: Merged with Classpath.
969 * java/lang/Short.java: Merged with Classpath.
971 2001-07-22 Jeff Sturm <jsturm@one-point.com>
973 * configure.host: Enable hash synchronization for alpha*-*.
974 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
976 * java/lang/natObject.cc (compare_and_swap, release_set,
977 compare_and_swap_release): Added inline functions for alpha.
979 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
981 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
982 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
983 back to old RFC 2133 variants if missing.
985 2001-07-18 Tom Tromey <tromey@redhat.com>
987 * java/io/natFileWin32.cc (_access): Renamed.
989 * java/io/natFile.cc (_access): Renamed.
991 * java/io/File.java (access, stat): Add leading `_' to name.
994 2001-07-18 Tom Tromey <tromey@redhat.com>
997 * libgcj.spec.in (*lib): Added LIBICONV.
998 * configure: Rebuilt.
999 * configure.in: Call AM_ICONV. Don't check for iconv function.
1000 Add parameters to JV_HASH_SYNCHRONIZATION define.
1001 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1003 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1005 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1006 not by setting its size field.
1008 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1010 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1013 2001-07-12 Tom Tromey <tromey@redhat.com>
1014 David Brownell <david-b@pacbell.net>
1016 Fix for PR libgcj/3426:
1017 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1019 (read): Throw exception if character conversion fails.
1020 * java/io/BufferedInputStream.java (refill): Now package-private.
1021 * java/io/InputStreamReader.java (ready): Simplified.
1022 (refill): New method.
1025 2001-07-12 Tom Tromey <tromey@redhat.com>
1027 Report from Henner Zeller:
1028 * java/io/FileOutputStream.java (FileOutputStream): Throw
1029 FileNotFoundException, not IOException.
1031 2001-07-10 Anthony Green <green@redhat.com>
1033 * Makefile.in: Rebuilt.
1034 * Makefile.am: Add new files.
1035 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1036 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1037 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1038 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1039 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1040 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1041 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1042 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1043 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1044 org/w3c/dom/ranges/DocumentRange.java,
1045 org/w3c/dom/ranges/Range.java,
1046 org/w3c/dom/ranges/RangeException.java,
1047 org/w3c/dom/traversal/DocumentTraversal.java,
1048 org/w3c/dom/traversal/NodeFilter.java,
1049 org/w3c/dom/traversal/NodeIterator.java,
1050 org/w3c/dom/traversal/TreeWalker.java,
1051 org/xml/sax/ext/DeclHandler.java,
1052 org/xml/sax/ext/LexicalHandler.java,
1053 org/xml/sax/helpers/AttributeListImpl.java,
1054 org/xml/sax/helpers/AttributesImpl.java,
1055 org/xml/sax/helpers/DefaultHandler.java,
1056 org/xml/sax/helpers/LocatorImpl.java,
1057 org/xml/sax/helpers/NamespaceSupport.java,
1058 org/xml/sax/helpers/ParserAdapter.java,
1059 org/xml/sax/helpers/ParserFactory.java,
1060 org/xml/sax/helpers/XMLFilterImpl.java,
1061 org/xml/sax/helpers/XMLReaderAdapter.java,
1062 org/xml/sax/helpers/XMLReaderFactory.java,
1063 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1064 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1065 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1066 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1067 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1068 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1069 org/xml/sax/SAXNotRecognizedException.java,
1070 org/xml/sax/SAXNotSupportedException.java,
1071 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1072 org/xml/sax/XMLReader.java: New files.
1074 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1076 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1077 * Makefile.in: Regenerate.
1078 * java/lang/ThreadLocal.java: Initial import.
1080 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1082 * Makefile.am (libgcj.jar): Don't recursively make
1083 built_java_source_files. Avoid long command lines.
1084 Don't change to $(srcdir) to invoke javac.
1085 (libgcj.la, libgcjx.la); Avoid long command lines.
1086 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1087 * Makefile.in: Rebuilt.
1089 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1091 * include/i386-signal.h: Don't do anything with unsigned divide
1092 overflow except throw an exception.
1094 2001-07-05 Tom Tromey <tromey@redhat.com>
1097 * java/lang/Class.h (Class(void)): Now private. Removed
1098 implementation. From dmorsberger@sensysdl.com.
1100 2001-07-02 Tom Tromey <tromey@redhat.com>
1102 Fix for PR bootstrap/3281:
1103 * aclocal.m4, configure: Rebuilt.
1104 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1105 Correctly compute libgcj_basedir.
1106 (mkinstalldirs): Define and subst.
1108 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1111 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1114 2001-06-27 Tom Tromey <tromey@redhat.com>
1116 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1119 2001-06-25 Tom Tromey <tromey@redhat.com>
1121 * scripts/encodings.pl: Generate lower-case names. Updated URL
1122 for `character-sets' file.
1123 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1125 Rebuilt list of aliases.
1127 2001-06-25 Tom Tromey <tromey@redhat.com>
1129 * java/io/natFileDescriptorPosix.cc (open): Change error message
1130 formatting. From David Brownell.
1132 2001-06-21 Tom Tromey <tromey@redhat.com>
1134 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1137 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1139 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1140 extraneous/malformed sign word.
1142 2001-06-15 Tom Tromey <tromey@redhat.com>
1144 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1146 2001-06-15 Tom Tromey <tromey@redhat.com>
1148 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1149 NULL if no library on the list has the symbol.
1150 (init): Call add_library on the program itself.
1151 * prims.cc (JvRunMain): Initialize Runtime before searching for
1153 (_Jv_RunMain): Likewise.
1155 2001-06-15 Tom Tromey <tromey@redhat.com>
1157 * jni.cc (ClassClass): Removed; updated all users.
1158 (ObjectClass): Likewise.
1159 (ThrowableClass): Likewise.
1160 (MethodClass): Likewise.
1161 (ThreadGroupClass): Likewise.
1162 (local_ref_table): Renamed from `ref_table'.
1163 (global_ref_table): New global.
1164 (_Jv_JNI_Init): Initialize both ref tables.
1165 (mark_for_gc): Added `ref_table' parameter.
1166 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1168 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1169 (_Jv_JNI_DeleteGlobalRef): Likewise.
1170 (_Jv_JNI_DeleteLocalRef): Likewise.
1171 (_Jv_JNI_NewLocalRef): Likewise.
1172 (_Jv_JNI_PopLocalFrame): Likewise.
1173 (_Jv_JNI_GetStringChars): Likewise.
1174 (_Jv_JNI_ReleaseStringChars): Likewise.
1175 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1176 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1178 2001-06-14 Tom Tromey <tromey@redhat.com>
1180 Fix for PR libgcj/3144:
1181 * java/util/Date.java: Merged with Classpath.
1183 2001-06-12 Tom Tromey <tromey@redhat.com>
1185 * aclocal.m4, configure: Rebuilt.
1186 * acinclude.m4: Find configure.host in srcdir.
1188 2001-06-07 Tom Tromey <tromey@redhat.com>
1190 Fix for PR libgcj/3059:
1191 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1192 * Makefile.in: Rebuilt.
1193 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1195 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1197 * exception.cc (cstdlib): Replaces stdlib.h.
1198 (_Jv_Throw): Use std::abort().
1199 (PERSONALITY_FUNCTION): Likewise.
1201 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1203 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1204 nothing, as in autoconf 2.50.
1205 * aclocal.m4, configure: Rebuilt.
1207 2001-06-08 Tom Tromey <tromey@redhat.com>
1209 * configure: Rebuilt.
1210 * configure.in: Compute new aux dir using `pwd'.
1212 2001-06-07 Tom Tromey <tromey@redhat.com>
1214 For PR bootstrap/3075:
1215 * configure, aclocal.m4, Makefile.am: Rebuilt.
1216 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1217 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1218 relative to libgcj_basedir.
1219 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1220 AC_CANONICAL_SYSTEM here.
1221 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1223 ($(extra_headers)): New target.
1225 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1226 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1228 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1229 table index is within allowed bounds. Ensure that we dont try to access
1230 class itable at a negative offset. Avoid an ancestor table lookup if
1231 source is a primitive type class.
1232 (isInstance): Remove redundant isPrimitive() check.
1234 2001-06-04 Tom Tromey <tromey@redhat.com>
1236 * java/security/PublicKey.java: Extend Key.
1237 * java/security/PrivateKey.java: Extend Key.
1239 2001-06-02 Anthony Green <green@redhat.com>
1241 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1242 alternate when USE_LTDL not defined.
1244 2001-06-02 Anthony Green <green@redhat.com>
1246 * configure: Rebuild.
1247 * configure.in: Remove data_start hack.
1248 * libgcj.spec.in: Ditto.
1249 * Makefile.in: Rebuild.
1250 * Makefile.am: Ditto.
1251 * libgcjdata.c: Remove.
1253 2001-06-02 Anthony Green <green@redhat.com>
1255 * configure: Rebuild.
1256 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1257 --without-libffi option. Tweak --disable-java-net processing.
1258 * Makefile.in: Rebuild.
1259 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1260 * include/config.h.in: Rebuild.
1261 * acconfig.h (USE_LIBFFI): Define.
1262 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1264 2001-06-02 Anthony Green <green@redhat.com>
1266 * configure: Rebuilt.
1267 * configure.in: Test for sigaction on native builds.
1268 * prims.cc: Check HAVE_SIGACTION.
1269 * include/config.h.in: Rebuilt.
1271 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1273 * natFile.cc (get_entry): Removed functions.
1274 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1275 Allocate enough storage for d_name if using readdir_r.
1277 2001-05-31 Tom Tromey <tromey@redhat.com>
1279 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1281 (write): Loop until write completes. From Corey Minyard.
1283 2001-05-29 Laurent Guerby <guerby@acm.org>
1285 * java/awt/geom/Rectangle2D.java: fix doc typo.
1287 2001-05-31 Tom Tromey <tromey@redhat.com>
1289 * java/sql/DriverManager.java (getDrivers): Handle case where
1290 driver's class loader is null. From Corey Minyard.
1292 2001-05-29 Tom Tromey <tromey@redhat.com>
1294 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1296 * configure: Rebuilt.
1297 * configure.in: Only add multilib support code if we just rebuilt
1300 2001-05-29 Andrew Haley <aph@redhat.com>
1302 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1303 pointer: the dwarf unwinder in libgcc will do everything that's
1305 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1306 more than we absolutely need to.
1307 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1308 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1310 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1312 * configure: Rebuilt.
1313 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1315 (SIGNAL_HANDLER): Use siginfo style handler.
1316 (INIT_SEGV): Likewise.
1317 (INIT_FPE): Likewise.
1318 * include/ppc-signal.h: Delete whole file.
1320 2001-05-24 Tom Tromey <tromey@redhat.com>
1322 * java/lang/natString.cc (init): Throw
1323 ArrayIndexOutOfBoundsException.
1324 (getChars): Likewise.
1325 (getBytes): Likewise.
1326 (valueOf): Likewise.
1328 * configure.in: Only allow hash synchronization when POSIX threads
1330 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1331 of sync info object.
1333 2001-05-23 Tom Tromey <tromey@redhat.com>
1335 * Makefile.in: Rebuilt.
1336 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1338 Revert patch of 2001-05-21:
1339 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1340 (libgcj_la_LIBADD): Likewise.
1341 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1342 (libgcjx_la_LIBADD): Likewise.
1344 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1345 * gcj/Makefile.in: Rebuilt.
1346 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1347 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1348 * gcj/libgcj-config.h.in: New file.
1349 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1350 * configure: Rebuilt.
1351 * configure.in: Enable hash synchronization by default on some
1353 (HASH_SYNC_SPEC): New subst.
1354 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1355 Correctly use `test -z' instead of `test -n' in a couple places.
1356 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1358 * configure.host (enable_java_net_default): Initialize.
1359 (enable_hash_synchronization_default): New variable.
1361 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1363 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1364 synchronization in use.
1365 (_Jv_MarkArray): Likewise.
1366 (_Jv_AllocBytes): Don't check return result.
1367 (handle_out_of_memory): New function.
1368 (_Jv_InitGC): Set GC_oom_fn.
1369 (trace_one_vtable): New global.
1370 (_Jv_AllocTraceOne): New function.
1371 * configure.in: Added --enable-hash-synchronization.
1372 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1373 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1374 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1375 (_Jv_AllocArray): Likewise.
1376 (_Jv_AllocBytes): Likewise.
1377 (_Jv_AllocPtrFreeObject): New function.
1378 (_Jv_AllocTraceOne): Likewise.
1379 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1381 (self_cache): New global.
1382 (_Jv_ThreadSelf_out_of_line): New function.
1383 * prims.cc (_Jv_AllocBytesChecked): Removed.
1384 (_Jv_ThrowNoMemory): New function.
1385 (_Jv_AllocObject): Don't check for null return from allocator.
1386 (_Jv_NewObjectArray): Likewise.
1387 (_Jv_AllocPtrFreeObject): New function.
1388 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1389 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1390 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1391 * include/boehm-gc.h (_Jv_AllocObj): Define.
1392 (_Jv_AllocPtrFreeObj): Define.
1393 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1394 (_Jv_ThrowNoMemory): Declare.
1395 (_Jv_AllocTraceOne): Declare.
1396 (_Jv_AllocBytesChecked): Removed.
1397 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1398 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1399 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1401 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1403 * java/lang/Object.h (sync_info): Conditional upon presence of
1404 hash synchronization.
1405 * java/lang/natObject.cc: Much new code to handle thin locks and
1406 hash synchronization.
1407 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1410 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1412 * gij.cc (version): Update copyright year.
1414 2001-05-22 Anthony Green <green@redhat.com>
1416 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1419 2001-05-21 Per Bothner <per@bothner.com>
1421 Implement invocation interface; don't create new thread for main.
1422 * java/lang/Thread.java (gen_name): Make native.
1423 (<init>(Thread,THreadGroup,Runnable,String)): New private
1424 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1425 * java/lang/natThread.cc (gen_name): New implementation.
1426 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1427 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1428 (_Jv_CreateJavaVM): New runtime initialization procedure.
1429 (runFirst): New proecdure - mostly code from old FirstThread::run.
1430 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1431 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1432 JvDetachCurrentThread): New inline wrappers.
1433 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1434 _Jv_DetachCurrentThread): New declarations.
1435 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1436 (getMain): new static method.
1437 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1438 by runFirst in prims.cc.
1439 (java/lang/Thread.h): Update for new invocation interface.
1440 * include/posix-threads.h (_Jv_ThreadRegister,
1441 _Jv_ThreadUnRegister): New declarations.
1442 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1443 (really_start): Use new _Jv_ThreadRegister.
1444 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1445 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1446 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1447 Complain of called when _Jv_OnlyThread already set.
1448 (_Jv_ThreadStart): Always JvFail.
1449 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1450 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1451 * win32-threads.cc (struct starter): Remove objet field -
1452 we use _Jv_Thread_t's new thread_obj field instead.
1453 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1454 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1455 (really_start): Use new _Jv_ThreadRegister.
1456 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1457 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1458 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1459 Removed - no longer needed with new invocation interface.
1460 * Makefile.am: Update for removed/added files.
1462 2001-05-21 Per Bothner <per@bothner.com>
1464 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1465 (libgcj_la_LIBADD): Likewise.
1466 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1468 2001-05-21 Per Bothner <per@bothner.com>
1470 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1471 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1472 taken from old Integer.toString code.
1473 (Integer::valueOf): Use _Jv_FormatInt.
1474 * java/lang/Integer.java (toString): Just use call String.valueOf.
1475 * java/lang/Long.java (toString): Fix typo in comment.
1476 * java/lang/String.java (valueOf(int)): Make native.
1477 * java/lang/StringBuffer.java (append(int)): Make native.
1478 * java/lang/natStringBuffer.cc: New file, for append(jint).
1479 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1481 2001-05-21 Tom Tromey <tromey@redhat.com>
1483 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1485 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1487 * include/dwarf2-signal.h: New file.
1488 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1489 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1490 * configure: Rebuilt.
1492 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1494 * configure.in: Update boehm-gc include dir for new GC version.
1495 * configure: Rebuilt.
1496 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1498 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1499 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1500 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1503 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1505 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1506 (_Jv_MutexInit): Likewise.
1508 2001-05-18 Tom Tromey <tromey@redhat.com>
1510 * Makefile.in: Rebuilt.
1511 * Makefile.am (awt_java_source_files): Added Polygon.java.
1513 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1515 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1516 * gcj/javaprims.h: ... here.
1517 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1519 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1521 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1522 with length of ioffset table.
1523 (_Jv_IsAssignableFrom): Likewise.
1525 2001-05-17 Per Bothner <per@bothner.com>
1527 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1529 2001-05-16 Tom Tromey <tromey@redhat.com>
1531 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1534 2001-05-15 Tom Tromey <tromey@redhat.com>
1536 * java/util/GregorianCalendar.java (computeTime): Only call
1539 2001-05-14 Tom Tromey <tromey@redhat.com>
1541 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1542 ZONE_OFFSET just before computing the time.
1544 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1546 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1547 * Makefile.in: Regenerate (by hand).
1548 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1549 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1551 2001-05-11 Richard Henderson <rth@redhat.com>
1553 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1554 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1556 2001-05-11 Richard Henderson <rth@redhat.com>
1558 * exception.cc: Include unwind-pe.h. Remove all pointer
1561 2001-05-10 Tom Tromey <tromey@redhat.com>
1563 * Makefile.in: Rebuilt.
1564 * Makefile.am (awt_java_source_files): Added Polygon.java.
1565 * java/awt/Polygon.java: New file.
1567 * java/awt/geom/AffineTransform.java
1568 (setToRotation(double,double,double)): New method.
1569 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1570 (setToShear): Likewise.
1572 2001-05-10 Tom Tromey <tromey@redhat.com>
1574 * java/util/GregorianCalendar.java: Imported from Classpath.
1575 * gnu/java/locale/LocaleInformation_nl.java: New file from
1577 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1578 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1579 * gnu/java/locale/LocaleInformation.java: Likewise.
1580 * natGregorianCalendar.cc: Removed.
1581 * Makefile.in: Rebuilt.
1582 * Makefile.am (nat_source_files): Removed
1583 natGregorianCalendar.cc.
1585 2001-05-10 Tom Tromey <tromey@redhat.com>
1587 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1589 (defaultCenturyStart): Use it.
1590 (readObject): Likewise.
1591 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1593 (parse): Copy the calendar before modifying it. Correctly handle
1596 * java/util/Calendar.java (clear): Set field value(s) to 0.
1598 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1600 * Calendar.java (get): Clear areFieldsSet if requested field
1602 (set): Unset fields that depend on new value.
1604 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1606 * java/lang/Class.h (_Jv_Self): New union type.
1607 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1608 Jeff Sturm and Fergus Henderson.
1610 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1612 * java/lang/ClassLoader.java: Remove dead code fragment.
1614 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1616 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1618 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1620 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1622 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1623 * configure.host (EXCEPTIONSPEC): New.
1624 * configure.in (EXCEPTIONSPEC): New.
1625 * configure: Rebuilt.
1627 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1629 * doc/*.texi: Remove generated documentation.
1631 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1633 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1634 (performDelete): Fix #endif placement.
1636 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1638 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1639 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1640 (_Jv_ThreadDestroyData): Use _Jv_Free.
1641 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1644 2001-04-27 Tom Tromey <tromey@redhat.com>
1646 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1648 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1650 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1652 * include/jni.h (struct JNINativeInterface): Fixed types in
1653 Get/Set*ArrayRegion declarations.
1654 (class _Jv_JNIEnv): Likewise.
1656 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1658 * configure.in: Obtain THREADS with `gcc -v'.
1659 * configure: Rebuilt.
1661 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1664 * java/io/ObjectStreamClass.java (setClass): Calculate
1665 serialVersionUID for local class and compare it against the UID
1666 from the Object Stream. Throw InvalidClassException upon mismatch.
1667 (setUID): Renamed to...
1668 (getClassUID): this. Return the calculated class UID rather than
1669 setting uid field directly.
1670 (getDefinedSUID): Removed.
1671 * java/io/ObjectInputStream.java (resolveClass): Use the
1672 three-argument Class.forName().
1673 * java/io/InvalidClassException (toString): Don't include classname in
1674 result if it is null.
1676 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1678 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1679 Wrap use of inet_pton in HAVE_INET6.
1681 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1683 java.security merge and ClassLoader compliance fixes.
1685 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1686 New protectionDomain field.
1687 (forName): Add initialize parameter. Fixes declaration to comply with
1689 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1690 variant. Honour "initialize" flag.
1691 (getProtectionDomain0): New method.
1692 * java/lang/Class.java: Fix forName() declaration.
1693 (getPackage): New method based on Classpath implementation.
1694 (getProtectionDomain0): New native method decl.
1695 (getProtectionDomain): New method.
1696 * java/lang/ClassLoader.java (getParent): Now final.
1697 (definedPackages): New field.
1699 (defineClass): New variant with protectionDomain argument.
1700 (definePackage): New.
1702 (findSystemClass): Now final.
1703 (getSystemResourceAsStream): Remove redundant "final" modifier.
1704 (getSystemResource): Remove redundant "final" modifier.
1705 (getResources): Now final.
1706 (protectionDomainPermission): New static field.
1707 (unknownProtectionDomain): Ditto.
1708 (defaultProtectionDomain): Ditto.
1709 (getSystemClassLoader): Now non-native.
1710 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1711 arguments for Class.forName().
1712 * java/lang/Package.java: New file.
1713 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1714 (instance): Static initialize singleton.
1715 (findClass): Override this, not findSystemClass.
1716 * java/lang/natClassLoader.cc (defineClass0): Set class's
1717 protectionDomain field as specified.
1718 (getSystemClassLoader): Removed.
1719 (findClass): Renamed from findSystemClass. Call the interpreter via
1720 URLClassLoader.findClass if loading class via dlopen fails.
1722 * java/security/*.java: java.security import/merge with Classpath.
1723 * java/security/acl/*.java: Likewise.
1724 * java/security/interfaces/*.java: Likewise.
1725 * java/security/spec/*.java: Likewise.
1726 * java/net/NetPermission.java: Likewise.
1727 * java/net/SocketPermission.java: Likewise.
1728 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1730 * Makefile.am: Add new classes.
1731 * Makefile.in: Rebuilt.
1732 * gcj/javaprims.h: CNI namespace rebuild.
1734 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1736 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1737 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1738 * configure: Rebuilt.
1740 2001-04-21 Tom Tromey <tromey@redhat.com>
1742 * Makefile.in: Rebuilt.
1743 * Makefile.am (awt_java_source_files): Added Line2D.java.
1744 * java/awt/geom/Line2D.java: Wrote.
1746 * java/awt/Menu.java (addNotify): Wrote.
1748 * java/awt/PopupMenu.java (addNotify): Implemented.
1751 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1752 * java/awt/List.java (addNotify): Call super.addNotify.
1753 * java/awt/Label.java (addNotify): Call super.addNotify.
1754 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1755 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1756 * java/awt/Choice.java (addNotify): Call super.addNotify.
1757 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1758 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1760 * java/awt/List.java (replaceItem): Notify peer.
1762 * java/awt/geom/Rectangle2D.java
1763 (Float.setRect(float,float,float,float)): New method.
1765 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1768 * java/awt/RenderingHints.java (Key): Class now public.
1770 * java/awt/Rectangle.java (Rectangle): Now implements
1772 (getPathIterator): Removed.
1774 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1777 * java/awt/FileDialog.java: Wrote.
1779 * java/awt/EventQueue.java (isDispatchThread): Now public.
1780 (invokeLater): Likewise.
1782 * java/awt/Component.java (setCursor): Update peer.
1783 (getFontMetrics): Use peer.
1785 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1788 2001-04-20 Tom Tromey <tromey@redhat.com>
1790 * java/awt/List.java: Wrote.
1791 * java/awt/Dialog.java: Wrote.
1793 2001-04-20 Warren Levy <warrenl@redhat.com>
1795 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1796 * java/text/SimpleDateFormat.java
1797 (indexInArray): Removed private method.
1798 (processYear): Removed private method.
1799 (parseLenient): Removed private method.
1800 (parseLeadingZeros): Removed private method.
1801 (parseStrict): Removed private method.
1802 (expect): Added new private method.
1803 (parse): Reverted to pre-Classpath merge version with minor fixes.
1804 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1807 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1809 * java/io/File.java (normalizePath): New private method.
1810 (File (String)): Use normalizePath().
1811 (File (String, String)): Likewise.
1813 * Makefile.am (libffi_files): Removed.
1814 (libgcj.la): Link libffi as a convenience library instead of
1815 refering to its object files directly.
1816 * Makefile.in: Rebuilt.
1818 2001-04-08 Per Bothner <per@bothner.com>
1820 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1821 Recalculate hash, since Utf8Const's hash is only 16 bits.
1823 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1824 bits of hash to calculate step for chaining.
1826 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1827 when 2/3 full, rather than 3/4 full.
1829 2001-04-06 Tom Tromey <tromey@redhat.com>
1831 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1832 (wrap_value<T*>): New specialization.
1833 (_Jv_JNI_PopLocalFrame): Update env->locals.
1835 2001-04-05 Tom Tromey <tromey@redhat.com>
1837 * libtool-version: Updated current.
1839 2001-04-04 Andreas Jaeger <aj@suse.de>
1841 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1842 * gcj/Makefile.in: Rebuilt.
1843 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1844 * Makefile.in: Rebuilt.
1845 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1846 * testsuite/Makefile.in: Rebuild.
1847 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1848 * include/Makefile.in: Rebuild.
1850 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1852 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1853 compiled test', not 'execution from source compiled test'.
1854 Use UNTESTED, not XFAIL, for tests which are not run because
1855 they depend on a previous test which failed.
1857 2001-04-02 Richard Henderson <rth@redhat.com>
1859 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1860 the same tree as gcc.
1861 * configure: Rebuilt.
1863 * exception.cc (_Jv_Throw): Clarify commentary.
1865 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1867 * jni.cc (wrap_value<jclass>): New specialization.
1869 2001-04-02 Tom Tromey <tromey@redhat.com>
1871 * java/io/PrintStream.java (out): Removed field. Fixes PR
1873 (write): Call flush, not out.flush, per spec.
1874 (close): Flush output stream, per spec. Handle
1875 InterruptedIOException.
1876 (checkError): Likewise.
1877 (flush, print, write): Handle InterruptedIOException per spec.
1878 (PrintStream): Don't create BufferedOutputStream.
1879 (work_bytes): New field.
1880 (writeChars): Use work_bytes. Don't assume `out' is a
1881 BufferedOutputStream.
1883 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1885 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1888 2001-03-30 Tom Tromey <tromey@redhat.com>
1890 * jni.cc (add_char): Correctly encode non-ascii characters.
1891 (add_char): Define even when INTERPRETER not defined.
1892 (mangled_name): Likewise.
1893 (_Jv_GetJNIEnvNewFrame): Likewise.
1894 (_Jv_LookupJNIMethod): Likewise.
1896 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1898 * configure.host: Enable interpreter for PPC.
1900 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1902 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1903 to "file.separator", "path.separator", and "java.io.tmpdir" property
1905 * java/io/File.java: Likewise.
1906 * java/io/natFile.cc (init_native): Likewise.
1907 * java/io/natFileWin32.cc (init_native): Likewise.
1909 2001-04-01 Per Bothner <per@bothner.com>
1911 * java/lang/natString.cc (intern): If string's data does not point to
1912 this String, make a fresh String that does.
1914 * java/lang/natString.cc (unintern): Replace by static function.
1915 * java/lang/String.java (unintern): Remove method.
1917 2001-04-01 Per Bothner <per@bothner.com>
1919 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1920 (finish): def.deflate needs to be called in a loop.
1921 (inbuf, inbufLength): New private fields.
1922 (write(int)): Use inbuf.
1923 (write(byte[],int,int): Check if pending output in inbuf.
1924 * ZipOutputStream.java: Don't use Deflater if stored.
1925 Use a Checksum object directly, not via a CheckedOutputStream.
1926 (uncompressed_size): New field,
1927 (closeEntry): Only write data_directory if needed.
1928 (write): If STORED, write directly.
1929 Always update crc, and uncompressed_size.
1930 (write_entry): Fix lots of protocol erors.
1932 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1934 1.3-Compliant Implementation of java.io.File.
1935 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1936 "path.separator", and "java.io.tmpdir" from the File class, instead
1937 of setting them explicitly.
1938 * java/io/File.java: Do not canonicalize paths for security manager
1939 checks. Call init_native() from static initializer. Do not pass path
1940 argument to native methods. New native method declarations. Some
1941 security manager checks moved to checkWrite().
1942 (equals): Check file system case sensitivity and act appropriatly.
1943 (hashCode): Likewise.
1944 (isHidden): New method implemented.
1945 (performList): Changed prototype. Now takes a class argument specifying
1946 the class of the returned array: Strings or File objects. Also added
1947 FileFilter argument.
1948 (listFiles): New variants with "File" return type implemented.
1949 (createTempFile): Use createNewFile(). Use maxPathLen.
1950 (setReadOnly): New method implemented.
1951 (listRoots): Likewise.
1952 (compareTo): Likewise.
1953 (setLastModified): Likewise.
1954 (checkWrite): New method.
1956 * java/io/natFile.cc: Various functions no longer take canonical path
1958 (stat): Handle ISHIDDEN query.
1959 (isAbsolute): Remove WIN32 cruft.
1960 (performList): New arguments. Handle returning either File[] or String[]
1961 arrays. Check with FileFilter or FilenameFilter arguments as
1962 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1963 (performSetReadOnly): New method implemented.
1964 (performListRoots): Likewise.
1965 (performSetLastModified): Likewise.
1966 (performCreate): Likewise.
1967 (init_native): New initialization function.
1968 * java/io/natFileWin32.cc: Various functions no longer take canonical
1970 (stat): Add FIXME about ISHIDDEN query.
1971 (performList): New arguments. Handle returning either File[] or String[]
1972 arrays. Check with FileFilter or FilenameFilter arguments as
1973 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1974 (performSetReadOnly): New. Stubbed.
1975 (performListRoots): Likewise.
1976 (performSetLastModified): Likewise.
1977 (performCreate): Likewise.
1978 (init_native) New initialization function.
1979 * configure.in: Check for utime() and chmod().
1980 * configure: Rebuilt.
1981 * include/config.h.in: Rebuilt.
1983 Resolves PR libgcj/1759.
1985 2001-03-28 Richard Henderson <rth@redhat.com>
1987 IA-64 ABI Exception Handling:
1988 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1989 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1990 Remove EXCEPTIONSPEC.
1991 * configure.host (libgcj_sjlj): Remove.
1992 * configure.in (EXCEPTIONSPEC): Remove.
1993 (enable-sjlj-exceptions): Detect if not specified.
1994 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1995 what header we're looking for.
1996 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1997 * Makefile.in, configure: Regenerate.
1998 * exception.cc: Don't declare libgcc2 stuff.
1999 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2000 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2001 (win32_get_restart_frame): Remove.
2002 (struct java_exception_header): New.
2003 (__gcj_exception_class): New.
2004 (get_exception_header_from_ue): New.
2005 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2006 (size_of_encoded_value, read_encoded_value): New.
2007 (read_uleb128, read_sleb128, parse_lsda_header): New.
2008 (get_ttype_entry, __gcj_personality_sj0): New.
2009 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2011 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2013 * javax/naming/InitialContext.java (init): Fix typo.
2014 (composeName): Remove unnecessary semicolon.
2015 (addToEnvironment): Remove unnecessary semicolon.
2016 (addToEnvironment): Use put() instead of add().
2018 * javax/naming/InitialContext.java (InitialContext):
2020 (destroySubcontext): Method doesn't return a result.
2021 * javax/naming/Context.java: Import java.util.Hashtable.
2022 * javax/naming/Name.java: Import java.util.Enumeration.
2024 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2026 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2027 objects in subdirectories.
2028 * Makefile.in: Rebuilt.
2030 2001-03-25 Richard Henderson <rth@redhat.com>
2032 * exception.cc (java_eh_info): Make value type jthrowable.
2033 (_Jv_type_matcher): Remove now unneeded cast.
2034 (_Jv_Throw): Make argument type jthrowable. Munge name
2035 for SJLJ_EXCEPTIONS here ...
2036 * gcj/cni.h: ... not here.
2038 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2040 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2041 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2042 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2043 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2044 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2045 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2046 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2047 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2048 java/lang/natDouble.cc, java/lang/natObject.cc,
2049 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2050 java/lang/natString.cc, java/lang/natSystem.cc,
2051 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2052 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2053 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2054 java/util/zip/natInflater.cc:
2055 Use throw, not JvThrow or _Jv_Throw.
2057 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2059 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2060 paramater, bump it to 1.
2061 * java/util/Hashtable.java (Hashtable): Likewise.
2063 2001-03-23 Per Bothner <per@bothner.com>
2065 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2066 check for errors, since we don't want to throw exception on
2067 overflow/underflow. Instead, trim whitespace, and then check that
2068 _strtod_r uses up all the rest of the string.
2070 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2071 ancestors array is invalid for interfaces, so do that *after*
2072 check that the target type is not an interface.
2074 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2076 * prims.cc (_Jv_FindClassFromSignature): Check return of
2077 recursive call. Do not abort on invalid signature; return NULL
2080 2001-03-22 Tom Tromey <tromey@redhat.com>
2082 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2083 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2085 * include/jvm.h (_Jv_ResolveField): Declare.
2086 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2087 * resolve.cc (_Jv_ResolveField): No longer conditional on
2090 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2092 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2093 for libtool hacking.
2094 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2095 to a temporary file, then invoke libtool with the -objectlist
2097 (libgcjx.la): Likewise.
2098 * Makefile.in: Rebuilt.
2100 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2102 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2104 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2106 * jni.cc (add_char): Handle `.' like `/'.
2108 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2110 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2111 initialize if exception_types is null.
2112 * java/lang/reflect/Constructor.java: Likewise.
2113 * java/lang/reflect/natConstructor.cc (getType): Initialize
2114 exception_types to an empty Object array.
2116 2001-03-21 Tom Tromey <tromey@redhat.com>
2118 * configure: Rebuilt.
2119 * configure.in (GCJFLAGS): Subst.
2120 * Makefile.in: Rebuilt.
2121 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2122 (gij_LDFLAGS): Likewise.
2123 (JC1FLAGS): Added GCJFLAGS and removed -g.
2125 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2126 read/write case. Fixes PR libgcj/2338.
2128 2001-03-20 Warren Levy <warrenl@redhat.com>
2130 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2131 and corrected SimpleTimeZone's for the timezones hash table.
2133 2001-03-19 Per Bothner <per@bothner.com>
2135 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2136 "canonicalize" "../../xxx" to "/xxx".
2138 2001-03-19 Mark Wielaard <mark@klomp.org>
2140 * java/util/ArrayList.java: Remove RCS keywords from comments
2141 * java/util/BasicMapEntry.java: idem
2142 * java/util/Dictionary.java: idem
2143 * java/util/HashSet.java: idem
2145 * java/util/EventObject.java: reindent
2146 * java/util/Properties.java: idem
2147 * java/util/SortedMap.java: idem
2149 * java/util/Enumeration.java: Merge with Classpath
2150 * java/util/EventListener.java: idem
2151 * java/util/Observable.java: idem
2152 * java/util/Observer.java: idem
2153 * java/util/Stack.java: idem
2155 2001-03-17 Tom Tromey <tromey@redhat.com>
2157 * java/lang/natString.cc (rehash): Don't bother with memset;
2158 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2160 (UNMASK_PTR): New macro.
2161 (intern): Unmask pointer before returning it. Register finalizer
2163 (unintern): Handle case where
2164 (MASK_PTR): New macro.
2165 (PTR_MAKSED): Likewise.
2166 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2168 2001-03-01 Andrew Haley <aph@redhat.com>
2170 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2171 stackTrace buffer to a correctly aligned pointer array.
2173 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2175 * java/lang/Runtime.java (_exit): Declare new package-private native.
2176 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2177 without a security manager check.
2178 (exit): Call _exit after security check.
2179 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2181 * java/lang/System.java (setSecurityManager): If a security manager
2182 is already in place, call checkPermission.
2183 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2184 throws an exception, try to deal with it gracefully.
2185 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2186 Only try to print the subordinate stack trace if "exception" is set.
2187 Print our class name first.
2189 2001-03-08 Tom Tromey <tromey@redhat.com>
2191 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2192 info for array classes.
2193 Fixes PR libgcj/1971.
2195 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2197 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2200 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2202 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2203 instead of the new JDK1.2 API. This is simpler and makes
2204 back-porting the classes to JDK1.1 trivial.
2205 (readObject): likewise.
2207 2001-03-01 Per Bothner <per@bothner.com>
2209 Changes merged from Kawa's gnu.math.
2210 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2211 (rshift(int[],int[],int,int): Removed - not needed.
2212 (gcd): Use rshift0 rather than rshift.
2213 * java/math/BigInteger.java (setShiftRight): Likewise.
2214 (divide): Simplify by using rshift0.
2215 (divide): Zero-extend results if high-order bit set.
2217 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2219 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2222 2001-02-23 Per Bothner <per@bothner.com>
2224 Change to sometimes include class name in ClassFormatError message.
2225 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2226 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2227 boolean instead of throwing ClassFormatError on failure.
2228 (throw_class_format_error): Change static function to method.
2229 (_Jv_ClassReader): New inline methods verify_identifier,
2230 two overloads of verify_classname, verify_field_signature, and
2231 verify_method_signature
2232 * include/java-interp.h: Update declarations to return bool.
2233 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2234 ClassFormatError since _Jv_VerifyClassName now returns bool.
2236 2001-02-23 Per Bothner <per@bothner.com>
2238 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2239 c++filt to select java-style output.
2241 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2243 Fix for PR java/2040:
2244 * java/util/HashMap.java (HashMap): Don't throw exception for
2245 loadFactor > 1. Add exception messages.
2246 * java/util/Hashtable.java (Hashtable): Likewise.
2248 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2250 Disable libgcjx by default.
2251 * configure.in: Add support for --enable-java-awt configure option.
2252 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2253 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2254 * Makefile.in: Rebuilt.
2255 * configure: Rebuilt.
2257 2001-02-20 Tom Tromey <tromey@redhat.com>
2259 * java/io/PipedWriter.java (flush): Throw exception if stream
2261 * java/io/OutputStreamWriter.java (write): Throw exception if
2263 (writeChars): Don't throw exception if stream closed.
2264 * java/io/CharArrayWriter.java (closed): New field.
2266 (flush): Throw exception if stream closed.
2267 (reset): Synchronize on correct lock. Allow stream to be
2269 (toCharArray, toString, writeTo): Synchronize.
2270 (write): Throwe exception if stream closed.
2271 * java/io/BufferedWriter.java (close): Clear `buffer'.
2272 (flush): Throw IOException if stream is closed.
2275 2001-02-16 Tom Tromey <tromey@cygnus.com>
2277 * java/lang/ThreadGroup.java (activeCount): Only include threads
2279 (enumerate): Likewise.
2281 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2283 * java/lang/Integer.java (getInteger): Return default argument if
2284 property is not set. Don't call decode with null argument.
2285 * java/lang/Long.java (getLong): Likewise.
2287 * java/io/CharArrayReader.java (CharArrayReader): Throw
2288 IllegalArgumentException if constructor arguments are illegal.
2289 (ready): Return false if no more characters can be read.
2290 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2292 2001-02-17 Mark Wielaard <mark@klomp.org>
2294 * java/util/TimerTask.java: New version from Classpath.
2296 2001-02-17 Mark Wielaard <mark@klomp.org>
2298 Remerge with Classpath
2299 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2300 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2301 (readByte): Use convertToByte().
2302 (readChar): Use convertToChar().
2303 (readInt): Use convertToInt().
2304 (readLong): Use convertToLong().
2305 (readShort): Use convertToShort().
2306 (readUnsignedByte): Use convertToUnsignedByte().
2307 (readUnsignedShort): Use convertToUnsignedShort().
2308 (readUTF): Use convertToUTF().
2310 (convertToBoolean): Resurrected.
2311 (convertToByte): Ditto.
2312 (convertToChar): Ditto.
2313 (convertToInt): Ditto.
2314 (convertToLong): Ditto.
2315 (convertToShort): Ditto.
2316 (convertToUnsignedByte): Ditto.
2317 (convertToUnsignedShort): Ditto.
2318 (convertToUTF): Ditto.
2320 2001-02-17 Mark Wielaard <mark@klomp.org>
2324 2001-02-17 Mark Wielaard <mark@klomp.org>
2326 * java/io/DataInputStream.java: update copyright notice
2327 * java/io/PrintWriter.java: idem
2328 * java/io/Reader.java: idem
2329 * java/io/StreamTokenizer.java: idem
2330 * java/io/StringReader.java: idem
2331 * java/lang/reflect/ReflectPermission.java: idem
2333 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2335 * java/util/TreeSet.java (clone): Made subclass safe, use
2336 super.clone(), not new.
2337 * java/util/TreeMap.java (clone): Likewise.
2339 * java/util/TreeMap.java (nil): Made non-final.
2340 (clone): Create new nil node for copy.
2342 * java/util/HashSet.java (clone): Made subclass safe, use
2343 super.clone(), not new.
2345 2001-02-14 Andrew Haley <aph@redhat.com>
2347 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2350 2001-02-15 Anthony Green <green@redhat.com>
2352 * defineclass.cc: Don't include alloca.h.
2353 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2354 * interpret.cc (run_normal): Ditto.
2356 * java/lang/natDouble.cc (parseDouble): Ditto.
2358 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2360 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2362 * java/util/Collections.java (ReverseComparator): New static class.
2363 (reverseOrder): Return static instance of ReverseComparator.
2365 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2366 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2367 Rectangle.clone(), not Object.clone().
2369 * java/util/HashSet.java (clone): Remove try/catch.
2371 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2372 * java/util/Collection.java: Likewise.
2373 * java/util/Comparator.java: Likewise.
2374 * java/util/Dictionary.java: Likewise.
2375 * java/util/Iterator.java: Likewise.
2376 * java/util/ListIterator.java: Likewise.
2377 * java/util/Map.java: Likewise.
2378 * java/util/Set.java: Likewise.
2380 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2382 * java/util/TreeMap.java: New file.
2383 * java/util/TreeSet.java: New file.
2384 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2385 * Makefile.in: Rebuilt.
2386 * java/util/HashSet.java (clone): Use constructor instead of calling
2388 * java/util/SortedSet.java: Sync with classpath.
2389 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2392 * java/lang/natClass.cc (getSignature): Don't try to dereference
2393 param_types if it is null. Instead, take this to mean "no parameters".
2394 * java/lang/TreeMap.java (TreeIterator.next): Throw
2395 NoSuchElementException in preference to ConcurrentModificationException.
2396 (TreeIterator.remove): Throw IllegalStateException in preference to
2397 ConcurrentModificationException.
2398 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2399 throw a NoSuchElementException.
2400 (SubMap.lastKey): Likewise.
2402 2001-02-13 Tom Tromey <tromey@redhat.com>
2404 * java/io/PipedReader.java (ready): Throw IOException if pipe
2406 * java/io/FilterReader.java (close): Don't clear `in'.
2407 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2409 (read, ready, reset, skip): Added exception message.
2410 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2411 Perform checkStatus check inside synchronized block.
2413 2001-02-13 Tom Tromey <tromey@redhat.com>
2415 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2417 2001-02-13 Tom Tromey <tromey@redhat.com>
2419 Fix for PR libgcj/1351:
2420 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2422 Include Thread.h and InterruptedIOException.h.
2424 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2426 * java/io/BlockDataException.java: Removed.
2427 * java/io/ObjectInputStream.java (readObject): Throw
2428 StreamCorruptedException, not BlockDataException.
2429 * Makefile.am: Remove BlockDataException.
2430 * Makefile.in: Rebuild.
2432 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2433 Tom Tromey <tromey@redhat.com>
2435 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2438 2001-02-09 Tom Tromey <tromey@redhat.com>
2440 * java/util/Timer.java: New version from Classpath.
2442 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2444 * java/lang/Double.java (doubleToRawLongBits): Now native.
2445 * java/lang/Float.java (floatToRawIntBits): Likewise.
2446 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2447 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2449 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2451 * java/io/File.java (java.net): Imported.
2452 (getAbsoluteFile): Added.
2453 (getCanonicalPath): Likewise.
2456 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2458 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2459 * java/lang/Integer.java: Likewise.
2460 * java/lang/Long.java: Likewise.
2461 * java/lang/Short.java: Likewise.
2462 * java/lang/Double.java: Likewise.
2463 (doubleToRawLongBits): New method.
2464 * java/lang/Float.java: As above.
2465 (floatToRawIntBits): New method.
2467 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2468 IOException if stream closed.
2470 2001-02-08 Tom Tromey <tromey@redhat.com>
2472 * java/lang/Float.java (parseFloat): New method.
2474 2001-02-08 Tom Tromey <tromey@redhat.com>
2476 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2477 * java/io/InputStreamReader.java (ready, read): Throw IOException
2478 if stream has been closed.
2480 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2482 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2483 Change sources.redhat.com and sourceware.cygnus.com references to
2486 2001-02-07 Tom Tromey <tromey@redhat.com>
2488 Fix for PR libgcj/1906:
2489 * java/text/MessageFormat.java (setLocale): Use named class
2492 (format(Object,StringBuffer,FieldPosition)): Special case if
2493 argument is an Object[].
2495 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2497 * java/util/Arrays.java: Removed "cmp" methods.
2498 (qsort): Don't use "cmp".
2501 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2503 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2504 sort. Fix for PR java/1895.
2506 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2508 * configure.host: Use sjlj-exceptions for Alpha.
2510 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2512 * libgcj.spec.in: Don't force static libgcc into the executable.
2513 * configure.in (FORCELIBGCCSPEC): Removed.
2514 * configure: Rebuilt.
2516 2001-01-31 Tom Tromey <tromey@redhat.com>
2518 * Makefile.in: Rebuilt.
2519 * Makefile.am (LTCXXCOMPILE): New macro.
2521 2001-01-26 Andrew Haley <aph@redhat.com>
2523 (INIT_FPE): Use a direct system call to set the handler.
2525 2001-01-27 Richard Henderson <rth@redhat.com>
2527 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2529 2001-01-27 Tom Tromey <tromey@redhat.com>
2531 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2532 native interface structure.
2534 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2536 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2538 (read (byte[], int, int)): Only call readNextBlock() if the block
2539 buffer would actually be overrun. Increment blockDataPosition.
2540 (callReadMethod): Propagate exceptions from invocation target.
2541 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2542 exceptions from invocation target.
2544 2001-01-26 Tom Tromey <tromey@redhat.com>
2546 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2547 to internal representation.
2548 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2549 _Jv_FindClassFromSignature.
2551 2001-01-26 Warren Levy <warrenl@redhat.com>
2553 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2554 and timezone if they are available on the system.
2556 2001-01-24 Tom Tromey <tromey@redhat.com>
2558 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2560 2001-01-24 Tom Tromey <tromey@redhat.com>
2562 * Makefile.in: Rebuilt.
2563 * Makefile.am (c_source_files): Added sf_fabs.c.
2564 * java/lang/sf_fabs.c: New file.
2566 2001-01-19 Warren Levy <warrenl@redhat.com>
2568 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2569 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2570 correctly. Adjust properly from 0-23 clock hour.
2572 2001-01-17 Mark Wielaard <mark@klomp.org>
2574 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2576 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2578 * java/lang/Class.h (isInterface): Move implementation from
2579 natClass.cc. Declare inline.
2580 (Class): Add default constructor.
2581 * java/lang/Object.h: Update comments.
2582 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2583 initialize superclass, saving a call if super is already initialized.
2585 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2587 * prims.cc (init_prim_class): Deleted.
2588 (DECLARE_PRIM_TYPE): Rewritten.
2589 * java/lang/Class.h (stdio.h): Include removed.
2590 (stddef.h): Included.
2591 (java/lang/reflect/Modifier.h): Likewise.
2592 (Class): Contructor now takes arguments, initializes fields.
2593 (initializePrim): Prototype deleted.
2594 * java/lang/natClass.cc (initializePrim): Deleted.
2596 2001-01-16 Warren Levy <warrenl@redhat.com>
2598 * java/math/BigInteger.java: Update Copyright year.
2600 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2602 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2605 2001-01-14 Mark Wielaard <mark@klomp.org>
2606 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2607 (decode): Merge comments with Classpath, don't throw Exception
2609 2001-01-12 Tom Tromey <tromey@redhat.com>
2611 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2615 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2616 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2617 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2618 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2619 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2621 * java/lang/natSystem.cc: Include locale.h if it exists.
2622 * configure: Rebuilt.
2623 * configure.in: Check for locale.h.
2625 2001-01-11 Tom Tromey <tromey@redhat.com>
2627 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2628 (Cursor(int), getPredefinedCursor): Throw exception if argument
2631 2001-01-03 Tom Tromey <tromey@redhat.com>
2633 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2634 (getLocationOnScreen): Wrote.
2636 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2638 * Makefile.am: Re-enable dependencies.
2639 * Makefile.in: Rebuilt.
2641 2001-01-10 Warren Levy <warrenl@redhat.com>
2643 * java/math/BigDecimal.java (divide): Fixed comment.
2645 2001-01-10 Warren Levy <warrenl@redhat.com>
2647 Fix for PR libgcj/1596:
2648 * java/math/BigDecimal.java (divide): Check newScale for validity.
2649 Ensure that BigInteger.pow() is called with a non-negative value.
2650 (setScale (int)): New public method.
2651 (setScale (int,int)): New public method.
2653 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2655 Fix for PR libgcj/1338:
2656 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2657 commentChar. Fixed typos in comments.
2659 2001-01-08 Warren Levy <warrenl@redhat.com>
2661 Fix for PR libgcj/1411:
2662 * Makefile.am: Removed java/util/natTimeZone.cc.
2663 * Makefile.in: Rebuilt.
2664 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2665 missing localized timezone names.
2666 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2667 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2668 (init_properties): Set user.timezone property.
2669 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2670 default timezone names; removed non-standard ones. Use standard
2672 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2674 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2676 (getDefaultTimeZoneId): Removed.
2678 * java/util/natTimeZone.cc: Removed.
2680 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2682 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2683 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2684 (_Jv_GetArrayClass): New inline function.
2685 (arrayclass): New field.
2686 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2687 _Jv_GetArrayElementFromElementType.
2688 (_Jv_NewPrimArray): Ditto.
2689 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2690 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2691 Set Modifier::ABSTRACT.
2692 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2693 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2694 Now synchronized. Array classes are now referenced from
2695 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2696 Set array classes' accessibility flags correctly. Optimize so that
2697 all array classes share the same IDT.
2698 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2699 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2700 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2701 in superclasses from overwriting classes own fields.
2702 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2703 Modifier::isAbstract().
2704 (null_idt): New static field.
2705 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2707 (_Jv_IndexOf): Made inline.
2708 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2710 2001-01-08 Tom Tromey <tromey@redhat.com>
2712 Fix for PR java/1586:
2713 * Makefile.in: Rebuilt.
2714 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2716 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2718 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2719 from the c++ compiler.
2720 * Makefile.in: Rebuilt.
2722 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2724 All files with updated copyright.
2725 * prims.cc (class _Jv_PrimClass): Removed.
2726 (init_prim_class): New function.
2727 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2728 `_Jv_PrimClass' in primitive type declarations. Assign to the
2729 value returned by `init_prim_class.'
2730 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2731 primitive type declarations.
2732 (JvPrimClass): Cast to `jclass' removed.
2733 * java/lang/Class.h (Class): New constructor.
2734 (Class): New copy constructor.
2735 (initializePrim): New prototype.
2736 (_Jv_PrimClass): Field removed.
2737 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2738 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2739 (class java::lang::Object): `finalize' moved up front.
2740 * java/lang/natClass.cc
2741 (isAssignableFrom): Turned outline.
2742 (isInstance): Likewise.
2743 (isInterface): Likewise, fixed indentation.
2744 (initializePrim): New function.
2746 2001-01-07 Anthony Green <green@redhat.com>
2748 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2750 * Makefile.in: Rebuilt.
2752 * scripts/TexinfoDoclet.java: New file.
2754 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2755 doc/java-awt-color.texi, doc/java-lang.texi,
2756 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2757 doc/java-awt-event.texi, doc/java-net.texi,
2758 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2759 doc/java-awt-image.texi, doc/java-security.texi,
2760 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2761 doc/java-text.texi, doc/java-beans-beancontext.texi,
2762 doc/java-util-jar.texi, doc/java-beans.texi,
2763 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2764 doc/java-lang-ref.texi: New files.
2766 2001-01-07 Anthony Green <green@redhat.com>
2768 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2769 be used for both input and output, so don't clear doInput.
2771 * java/lang/StringBuffer.java: Fix comments.
2773 2001-01-06 Anthony Green <green@redhat.com>
2775 * java/beans/PropertyDescriptor.java: Fix comment.
2776 * java/io/PushbackReader.java: Fix comment.
2777 * java/io/ObjectStreamClass.java: Fix comment.
2778 * java/io/DataInputStream.java: Fix comment.
2779 * java/io/PipedInputStream.java: Fix comments.
2780 * java/io/PipedReader.java: Fix comments.
2781 * java/sql/DatabaseMetaData.java: Fix comments.
2783 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2785 * java/io/PipedReader: Synchronize on "lock" instead of this.
2787 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2789 * java/lang/Thread.java: Update comment.
2791 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2792 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2793 * java/io/PipedReader: New implementation based on new
2795 * java/io/PipedWriter: Updated to match new PipedReader.
2797 2001-01-03 Tom Tromey <tromey@redhat.com>
2799 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2800 (getViewportSize): Insets include scrollbar size.
2801 (doLayout): Finished.
2802 (getScrollPosition): Wrote.
2803 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2805 2001-01-02 Tom Tromey <tromey@redhat.com>
2807 * java/awt/ScrollPane.java: Wrote.
2808 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2811 * java/awt/Panel.java (Panel()): Fixed.
2813 * java/awt/Component.java (isShowing): Return false if no peer
2814 exists, and true if component is visible and no parent exists.
2815 (getLocationOnScreen): Wrote.
2816 (getPreferredSize): Removed FIXME comment.
2817 (getMinimumSize): Likewise.
2818 (getAlignmentX, getAlignmentY): Wrote.
2820 (requestFocus): Wrote.
2821 (transferFocus): Wrote.
2822 (findNextFocusComponent): New method.
2823 (hasFocus()): Wrote.
2824 (checkImage): Wrote.
2825 (enableEvents): Call setEventMask on the peer.
2827 * java/awt/Container.java (list): Use super.list() to print self.
2828 (findNextFocusComponent): New method.
2829 (setLayout): Call invalidate.
2830 (findComponentAt): Wrote.
2832 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2834 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2835 the correct versions of various linuxthreads functions get linked.
2836 * Makefile.in: Rebuilt.
2837 * java/lang/natThread.cc (finalize_native): New static function. Call
2838 _Jv_ThreadDestroyData.
2839 (initialize_native): Register finalizer for "data".
2840 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2841 (_Jv_ThreadDestroyData): New prototype.
2842 * include/win32-threads.h: Ditto.
2843 * include/no-threads.h: Ditto.
2844 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2845 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2846 move mutex and condition variable destroy code from:
2847 (really_start): ...here.
2848 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2849 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2850 (_Jv_ThreadDestroyData): Implemented.
2851 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2852 (_Jv_AllocArray): Ditto.
2854 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2856 * java/sql/DriverManager.java (getConnection): Don't set user/password
2859 2000-12-27 Warren Levy <warrenl@redhat.com>
2861 Fix for PR libgcj/1358:
2862 * java/lang/System.java: Update Copyright date properly.
2863 * java/util/Calendar.java: Fix typo in comment.
2864 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2865 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2866 initialize times. Spec says to set H:M:S values to zero only if
2868 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2869 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2870 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2871 timezones and GMT offsets, being careful to account for units of
2872 milliseconds vs. seconds.
2874 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2876 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2877 not be assigned to Object.
2879 Fix for PR libgcj/1516:
2880 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2882 (can_widen): Declared inline. Remove redundant checks for void
2883 arguments and char->short conversion. Add special case for boolean
2885 (ffi_type): Declared inline.
2886 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2888 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2890 * java/sql/SQLWarning.java: Fixed typo in comment.
2892 2000-12-26 Tom Tromey <tromey@redhat.com>
2894 * java/awt/MenuItem.java (paramString): Now protected.
2896 * java/awt/MenuShortcut.java: Implements Serializable.
2898 * java/awt/MenuBar.java: Rewrote from scratch.
2900 * java/awt/MenuComponent.java (removeNotify): Wrote.
2901 Implements Serializable.
2903 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2906 * java/awt/CheckboxMenuItem.java: Wrote.
2908 2000-12-25 Tom Tromey <tromey@redhat.com>
2910 * java/awt/MenuContainer.java: Fixed typo.
2912 * Makefile.in: Rebuilt.
2913 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2914 * java/awt/SystemColor.java: New file.
2916 * java/awt/Color.java (rgba): Now package-private.
2918 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2920 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2923 * java/awt/MenuItem.java (addNotify): New method.
2924 (MenuItem(String,MenuShortcut)): New constructor.
2925 (setLabel): Notify peer of change.
2926 (setEnabled): Likewise.
2928 * java/awt/GridLayout.java (toString): New method.
2930 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2931 (FlowLayout): Check for LEADING and TRAILING.
2932 (setAlignment): Likewise.
2933 (layoutContainer): Handle component orientation.
2935 * java/awt/Component.java (orientatin): New field.
2936 (setComponentOrientation): Wrote.
2937 (getComponentOrientation): Wrote.
2939 * java/awt/Event.java (Event): Implements Serializable.
2940 (consumed): New field for serialization.
2941 * java/awt/Dimension.java (Dimension): Implements Serializable.
2942 * java/awt/Cursor.java (Cursor): Implements Serializable.
2943 * java/awt/Container.java (Container): No longer abstract.
2945 * java/awt/Choice.java: Wrote.
2946 * java/awt/Checkbox.java: Wrote.
2947 * java/awt/ItemSelectable.java: Documented.
2948 * java/awt/CheckboxGroup.java: Wrote.
2950 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2952 (getSize): Likewise.
2954 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2956 * java/io/FileDescriptor.java: Initialize fd to -1.
2957 Remove default constructor.
2959 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2961 * java/lang/mprec.h: Change C9X reference to refer to C99.
2963 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2965 * java/lang/Throwable.java (trace_enabled): New static field.
2966 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2967 trace_enabled not set.
2968 * prims.cc (main_init): Turn off trace_enabled while creating
2969 default exception objects.
2971 2000-12-21 Tom Tromey <tromey@redhat.com>
2973 * java/beans/PropertyChangeListener.java: Extends EventListener.
2974 * java/beans/VetoableChangeListener.java: Extends EventListener.
2976 * java/util/zip/Deflater.java (update, init): Now private.
2978 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2980 * java/util/BasicMapEntry.java: Re-added.
2981 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2982 (putAll): Test for BasicMapEntry.
2983 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2984 (putAll): Test for BasicMapEntry.
2985 Change references from `HashMap.Entry' to `Entry' in various places.
2986 * Makefile.am: Add BasicMapEntry.java.
2987 * Makefile.in: Rebuilt.
2989 2000-12-18 Warren Levy <warrenl@redhat.com>
2991 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2992 need to set timezone to a valid non-null value. Partial fix for
2995 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2997 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2999 * java/awt/Button.java (addNotify): Likewise.
3000 * java/awt/Label.java (addNotify): Likewise.
3001 * java/awt/Panel.java (addNotify): Likewise.
3002 * java/awt/Scrollbar.java (addNotify): Likewise.
3003 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3004 Remove redundant null checks.
3006 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3008 * COPYING: Update to current
3009 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3010 to 19yy as example year in copyright notice).
3012 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3014 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3015 end-of-stream if avail_in is 0.
3017 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3019 * java/util/ArrayList.java (data): Declare transient.
3020 (serialPersistantFields): Removed.
3021 (readObject): Use defaultReadObject(), not readFields().
3022 (writeObject): Use defaultWriteObject(), not writeFields().
3024 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3026 * java/util/Hashtable.java (put): Remove `last' variable.
3027 Link new entry to head of list.
3028 * java/util/HashMap.java (put): Ditto.
3030 2000-12-15 Tom Tromey <tromey@redhat.com>
3032 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3033 loader to Class.forName.
3035 2000-12-14 Tom Tromey <tromey@redhat.com>
3037 * java/util/ResourceBundle.java
3038 (getBundle(String,Locale,ClassLoader)): New method.
3039 (trySomeGetBundle): Added `loader' argument.
3040 (partialGetBundle): Likewise.
3042 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3043 maximumFractionDigits, maximumIntegerDigits,
3044 minimumFractionDigits, minimumIntegerDigits): Now
3047 * java/lang/Thread.java (checkAccess): Now final.
3049 * java/lang/RuntimePermission.java: Class now final.
3051 * java/io/StringWriter.java (StringWriter(int)): Now public.
3053 * java/io/SerializablePermission.java (legal_names): Now private.
3055 * java/lang/Character.java: Updated UnicodeBlock constants.
3056 * scripts/blocks.pl: Special case private use and surrogate
3059 2000-12-12 Tom Tromey <tromey@redhat.com>
3061 * Makefile.in: Rebuilt.
3062 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3064 (GCJCOMPILE): Use it.
3067 2000-12-11 Tom Tromey <tromey@redhat.com>
3069 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3070 New static final fields.
3072 * scripts/classes.pl (scan): Skip lines with leading `*'.
3073 Fix for PR libgcj/378.
3075 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3077 * configure.in: Remove check for -fuse-divide-subroutine.
3078 * configure: Rebuilt.
3080 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3082 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3084 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3086 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3087 Remove BasicMapEntry.java and Bucket.java.
3088 * Makefile.in: Rebuilt.
3089 * java/util/HashMap.java: Rewritten.
3090 * java/util/HashSet.java: Imported from classpath.
3091 * java/util/WeakHashMap.java: Imported from classpath.
3092 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3093 * java/util/Bucket.java: Deleted.
3094 * java/util/BasicMapEntry.java: Deleted.
3095 * java/util/Collections.java (search): Use a for-loop, not iterator
3097 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3098 of elements in source.
3099 (max): Use a for-loop.
3101 (reverse): Keep track of positions instead of using Iterator's
3102 nextIndex() and previousIndex().
3103 (shuffle(List)): Initialize defaultRandom if required using
3104 double-check thread safety idiom. Call two-argument shuffle method
3105 using defaultRandom.
3106 (defaultRandom): New field.
3107 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3108 using previousIndex() and nextIndex().
3109 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3110 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3111 * java/util/AbstractMap.java (toString): Use StringBuffer.
3112 * java/lang/ref/PhantomReference.java: Imported from classpath.
3113 * java/lang/ref/SoftReference.java: Ditto.
3114 * java/lang/ref/Reference.java: Ditto.
3115 * java/lang/ref/WeakReference.java: Ditto.
3116 * java/lang/ref/ReferenceQueue.java: Ditto.
3118 2000-12-10 Richard Henderson <rth@redhat.com>
3120 * configure.host: Recognize alpha*-*, not alphaev6-*.
3122 2000-12-09 Anthony Green <green@redhat.com>
3124 * configure.host: Enable interpreter for Alpha.
3126 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3128 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3129 (ZIP): Points at fastjar instead of zip.
3130 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3131 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3132 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3133 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3134 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3135 ($(x_java_source_files:.java=.class):): Likewise.
3136 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3138 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3139 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3140 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3141 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3142 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3143 gnu/gcj/runtime/VMClassLoader.h:,
3144 java/io/ObjectInputStream$$GetField.h:,
3145 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3146 (Makefile.in): Rebuilt.
3148 2000-12-08 Tom Tromey <tromey@redhat.com>
3151 * configure: Rebuilt.
3152 * configure.in: Use echo, not `:', to create .d files.
3154 2000-12-08 Warren Levy <warrenl@redhat.com>
3156 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3157 NullPointerException so proper check of offset can be done.
3159 2000-12-08 Warren Levy <warrenl@redhat.com>
3161 * java/io/FileInputStream.java (close): Check if the fd is valid.
3162 * java/io/RandomAccessFile.java (close): Ditto.
3163 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3164 * java/net/PlainSocketImpl.java (close): Ditto.
3166 2000-12-06 Tom Tromey <tromey@redhat.com>
3168 * java/awt/GridBagConstraints.java: Filled in values for static
3171 * java/util/BitSet.java: Updated copyright notice.
3173 * Makefile.in: Rebuilt.
3174 * Makefile.am (awt_java_source_files): Added new file.
3175 * java/awt/GridBagConstraints.java: New file.
3177 2000-12-05 Tom Tromey <tromey@redhat.com>
3179 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3180 Now package-private, not protected.
3181 * java/text/DateFormatSymbols.java (equals): Now private.
3182 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3183 * java/util/BitSet.java: Class no longer final.
3185 2000-12-04 Warren Levy <warrenl@redhat.com>
3187 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3188 out code dependent on compiler and library changes.
3190 2000-12-04 Warren Levy <warrenl@redhat.com>
3192 * java/io/FilePermission.java: Made class final per spec.
3193 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3194 method name to match spec (fixed typo).
3195 * java/util/LinkedList.java: Implements List.
3197 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3199 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3200 Edgar Villanueva <edgarvil@home.com>.
3202 2000-12-03 Tom Tromey <tromey@redhat.com>
3204 * java/awt/geom/Point2D.java: Added protected constructor.
3205 (equals): New method.
3206 (Float.setLocation(float,float)): New method.
3207 * java/awt/geom/Dimension2D.java: Added protected constructor.
3208 * java/awt/geom/AffineTransform.java: Made all constants public.
3209 (concatenate): Fixed typo in name.
3210 * java/awt/event/WindowAdapter.java: Class now abstract.
3211 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3212 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3215 * java/awt/AWTError.java: Extend Error, not
3216 IllegalStateException.
3218 * Makefile.in: Rebuilt.
3219 * Makefile.am (awt_java_source_files): Added new file.
3220 * java/awt/geom/RoundRectangle2D.java: New file.
3222 * Makefile.in: Rebuilt.
3223 * Makefile.am (awt_java_source_files): Added new file.
3224 * java/awt/FlowLayout.java: New file.
3226 * Makefile.in: Rebuilt.
3227 * Makefile.am (awt_java_source_files): Added new file.
3228 * java/awt/GridLayout.java: New file.
3230 2000-12-02 Tom Tromey <tromey@redhat.com>
3232 * Makefile.in: Rebuilt.
3233 * Makefile.am (awt_java_source_files): Added new files.
3234 * java/awt/CardLayout.java: New file.
3235 * java/awt/AWTPermission.java: New file.
3237 2000-12-01 Tom Tromey <tromey@redhat.com>
3239 * java/util/Vector.java (insertElementAt): Unconditionally
3240 increment elementCount.
3241 (removeRange): Clear unused slots in vector.
3243 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3245 * java/lang/natMath.cc: Declare fabsf() function.
3246 * java/lang/mprec.h: Don't include math.h.
3247 * java/lang/dtoa.c: Include string.h.
3248 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3251 From Adam Welc <welc@cs.purdue.edu>:
3252 * java/util/LinkedList.java (removeFirst): Update `first' field.
3253 Handle the last == first case.
3254 (removeLast): Update `last' field. Handle the last == first case.
3256 2000-12-01 Warren Levy <warrenl@cygnus.com>
3258 * Makefile.am: Added entries for new java.sql modules.
3259 * Makefile.in: Rebuilt.
3261 2000-12-01 Warren Levy <warrenl@cygnus.com>
3263 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3264 that aren't quite 1.2 compatible yet.
3266 2000-11-30 Warren Levy <warrenl@cygnus.com>
3268 * java/sql/Array.java: New file from classpath.
3269 * java/sql/BatchUpdateException.java: Ditto.
3270 * java/sql/Blob.java: Ditto.
3271 * java/sql/Clob.java: Ditto.
3272 * java/sql/Ref.java: Ditto.
3273 * java/sql/SQLData.java: Ditto.
3274 * java/sql/SQLInput.java: Ditto.
3275 * java/sql/SQLOutput.java: Ditto.
3276 * java/sql/Struct.java: Ditto.
3277 * java/sql/CallableStatement.java: Merged file from claspath.
3278 * java/sql/Connection.java: Ditto.
3279 * java/sql/DataTruncation.java: Ditto.
3280 * java/sql/DatabaseMetaData.java: Ditto.
3281 * java/sql/DriverManager.java: Ditto.
3282 * java/sql/PreparedStatement.java: Ditto.
3283 * java/sql/ResultSet.java: Ditto.
3284 * java/sql/ResultSetMetaData.java: Ditto.
3285 * java/sql/SQLException.java: Ditto.
3286 * java/sql/SQLWarning.java: Ditto.
3287 * java/sql/Statement.java: Ditto.
3288 * java/sql/Types.java: Ditto.
3290 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3292 * java/lang/natSystem.cc (init_properties): Set user.language and
3294 * configure.in: Check for setlocale.
3295 * configure: Rebuilt.
3296 * include/config.h.in: Rebuilt.
3298 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3299 the infate() call didn't deliver any output. Throw a ZipException if
3300 the needsDictionary() call returns true.
3301 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3302 * java/io/InputStreamReader: Use the default buffer size for the
3303 contained BufferedInputStream.
3305 2000-11-28 Warren Levy <warrenl@cygnus.com>
3307 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3308 more time zone entries.
3309 * java/text/SimpleDateFormat.java (format): Added case for
3312 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3314 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3315 directly rather than read() in all cases. Make primitive read
3316 implementations more efficient, as defined in JDK online docs.
3317 (skipBytes): Behave like the JDK's implementation.
3318 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3319 closed stream with checkStatus() whenever an IOException can be
3321 (checkStatus): New private method.
3323 2000-11-27 Warren Levy <warrenl@cygnus.com>
3325 * Makefile.am: Added natTimeZone.cc.
3326 * Makefile.in: Rebuilt.
3327 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3328 * java/text/DateFormatSymbols.java (ampms): Made package private.
3329 (eras): Made package private.
3330 (months): Made package private.
3331 (shortMonths): Made package private.
3332 (shortWeekdays): Made package private.
3333 (weekdays): Made package private.
3334 (formatPrefixes): New private field.
3335 (localPatternCharsDefault): Made private.
3336 (dateFormats): New package private field.
3337 (timeFormats): New package private field.
3338 (formatsForKey): New private method.
3339 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3340 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3341 * java/text/SimpleDateFormat.java: Merged with Classpath.
3342 * java/util/TimeZone.java: Merged with Classpath.
3343 * java/util/natTimeZone.cc: New file.
3345 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3347 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3348 (addElement): Don't increment elementCount twice. Doh.
3349 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3350 array needs to be expanded.
3352 * java/util/Collections.java (UnmodifiableCollection): Implement
3354 (UnmodifiableList): Throw UnsupportedOperationException from
3355 modification methods. Set `l' from the one-parameter constructor.
3356 (UnmodifiableMap): Implement toString().
3357 (SynchronizedCollection): Ditto.
3358 (SynchronizedList): Set `l' from the one-parameter constructor.
3359 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3360 (SynchronizedMap): Implement toString().
3362 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3364 * javax/naming/NameParser.java,
3365 javax/naming/directory/AttributeInUseException.java,
3366 javax/naming/directory/AttributeModificationException.java,
3367 javax/naming/directory/InvalidAttributeIdentifierException.java,
3368 javax/naming/directory/InvalidAttributesException.java,
3369 javax/naming/directory/InvalidAttributeValueException.java,
3370 javax/naming/directory/InvalidSearchControlsException.java,
3371 javax/naming/directory/InvalidSearchFilterException.java,
3372 javax/naming/directory/NoSuchAttributeException.java,
3373 javax/naming/directory/SchemaViolationException.java: New files.
3375 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3377 * javax/naming/InitialContext.java (rebind): Implement.
3378 (unbind): Implement.
3379 (rename): Implement.
3381 (listBindings): Implement.
3382 (destroySubcontext): Implement.
3383 (createSubcontext): Implement.
3384 (lookupLink): Implement.
3385 (getNameParser): Implement.
3386 (composeName): Implement.
3387 (addToEnvironment): Implement.
3389 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3391 * javax/naming/AuthenticationException.java,
3392 javax/naming/AuthenticationNotSupportedException.java,
3393 javax/naming/CannotProceedException.java,
3394 javax/naming/CommunicationException.java,
3395 javax/naming/ConfigurationException.java,
3396 javax/naming/ContextNotEmptyException.java,
3397 javax/naming/InsufficientResourcesException.java,
3398 javax/naming/InterruptedNamingException.java,
3399 javax/naming/InvalidNameException.java,
3400 javax/naming/LimitExceededException.java,
3401 javax/naming/LinkException.java,
3402 javax/naming/LinkLoopException.java,
3403 javax/naming/MalformedLinkException.java,
3404 javax/naming/NameAlreadyBoundException.java,
3405 javax/naming/NameNotFoundException.java,
3406 javax/naming/NamingSecurityException.java,
3407 javax/naming/NoPermissionException.java,
3408 javax/naming/NotContextException.java,
3409 javax/naming/PartialResultException.java,
3410 javax/naming/ReferralException.java,
3411 javax/naming/ServiceUnavailableException.java,
3412 javax/naming/SizeLimitExceededException.java,
3413 javax/naming/TimeLimitExceededException.java: New files.
3415 * javax/naming/Name.java (clone): New method.
3416 (compareTo): New method.
3417 (isEmpty): New method.
3418 (getAll): New method.
3419 (getPrefix): New method.
3420 (getSuffix): New method.
3421 (startsWith): New method.
3422 (endsWith): New method.
3423 (addAll): New method.
3424 (addAll): New method.
3427 (remove): New method.
3429 * javax/naming/Context.java (lookup): New method.
3430 (rebind): New method.
3431 (unbind): New method.
3432 (rename): New method.
3434 (listBindings): New method.
3435 (destroySubcontext): New method.
3436 (createSubcontext): New method.
3437 (lookupLink): New method.
3438 (getNameParser): New method.
3439 (composeName): New method.
3440 (addToEnvironment): New method.
3441 (removeFromEnvironment): New method.
3442 (getEnvironment): New method.
3443 (close): New method.
3444 (getNameInNamespace): New method.
3446 * javax/naming/InitialContext.java (lookup): New method.
3447 (rebind): New method.
3448 (unbind): New method.
3449 (rename): New method.
3451 (listBindings): New method.
3452 (destroySubcontext): New method.
3453 (createSubcontext): New method.
3454 (lookupLink): New method.
3455 (getNameParser): New method.
3456 (composeName): New method.
3457 (addToEnvironment): New method.
3458 (removeFromEnvironment): New method.
3459 (getEnvironment): New method.
3460 (close): New method.
3461 (getNameInNamespace): New method.
3463 2000-11-26 Tom Tromey <tromey@cygnus.com>
3465 * Makefile.in: Rebuilt.
3466 * Makefile.am (core_java_source_files): Added
3467 RuntimePermission.java.
3468 * java/lang/RuntimePermission.java: Imported from Classpath.
3469 * java/lang/Thread.java (getContextClassLoader): Now
3470 synchronized. Added security code.
3471 (setContextClassLoader): Likewise.
3473 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3474 length field of array.
3475 (_Jv_NewPrimArray): Likewise.
3476 * gcj/array.h (__JArray): `length' field now const. Added
3479 2000-11-26 Anthony Green <green@redhat.com>
3481 * javax/naming/spi/NamingManager.java,
3482 javax/naming/spi/ObjectFactory.java,
3483 javax/naming/spi/InitialContextFactory.java,
3484 javax/naming/spi/InitialContextFactoryBuilder.java,
3485 javax/naming/RefAddr.java, javax/naming/Reference.java,
3486 javax/naming/NamingException.java, javax/naming/Context.java,
3487 javax/naming/Referenceable.java,
3488 javax/naming/directory/InitialDirContext.java,
3489 javax/naming/directory/DirContext.java,
3490 javax/naming/directory/Attributes.java,
3491 javax/naming/directory/Attribute.java,
3492 javax/naming/StringRefAddr.java,
3493 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3494 javax/naming/InitialContext.java,
3495 javax/naming/NoInitialContextException.java: New files.
3497 2000-11-25 Anthony Green <green@redhat.com>
3499 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3500 (_Jv_NewPrimArray): Likewise.
3501 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3502 (class JArray): Removed constructor.
3504 * java/lang/Thread.java (context_class_loader): New private data.
3505 (getContextClassLoader): New method.
3506 (setContextClassLoader): New method.
3507 (Thread): Initialize context_class_loader.
3509 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3510 (getResource): Rename to findResource.
3511 (findResource): New method. Used to be getResource.
3512 (getResourceAsStream): Deleted.
3513 (jarFileize): Extracted logic from URLClassLoader constructor into
3514 this new private method.
3515 (addURL): New protected method.
3516 (URLClassLoader): Call jarFileize. Use addElement instead of
3518 (findResources): New method.
3520 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3521 (getResource): Implement correct logic.
3522 (findResource): New method.
3523 (getResources): New method.
3524 (findClass): Create a ClassNotFoundException with the name of the
3525 class rather than nothing at all.
3526 (defineClass) Only throw ClassFormatError.
3528 * java/lang/Class.java (forName): New method.
3529 * java/lang/Class.h (forName): New method.
3530 * java/lang/natClass.cc (forName): New method.
3532 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3534 * java/lang/System.java (setProperties): Only call init_properties()
3535 if properties is null.
3536 (getProperties): Ditto.
3537 (getProperty): Ditto.
3538 (setProperty): Call init_properties if properties are null.
3539 (prop_init): Remove field.
3540 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3541 method. Check for null properties after synchronizing instead of
3542 prop_init flag. Set the properties field last for thread safety.
3544 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3545 test for gcj.dumpobjects property and enable object stream dumping
3547 (dumpElement): No longer native.
3548 (dumpElementln): Ditto.
3549 (setDump): Do not define.
3550 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3551 (dumpElementln): Removed.
3554 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3556 * configure: Rebuilt.
3557 * Makefile.in: Rebuilt.
3558 * Makefile.am (built_java_source_files): Add Configuration.java.
3559 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3560 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3561 Create `gnu' directory in the build tree.
3562 * gnu/classpath/Configuration.java.in: New file.
3564 2000-11-24 Tom Tromey <tromey@cygnus.com>
3566 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3568 (_Jv_NewPrimArray): Likewise.
3570 * gcj/array.h (__JArray): `length' field now const. Added
3572 (class JArray): Added constructor.
3574 2000-11-23 Mark Wielaard <mark@klomp.org>
3576 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3579 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3581 * java/util/Vector.java: Improve exception messages.
3582 (Vector): Check initialCapacity for IllegalArgumentException.
3583 (tromToSize): Don't check for elementCount == elementData.length
3585 (toArray): Don't try to set null marker if target array is the same
3586 length as the vector.
3588 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3590 * Makefile.in: Rebuilt.
3591 * Makefile.am (core_java_source_files): Added Collections.java.
3592 * java/util/List.java: Merged from classpath.
3593 * java/util/Vector.java: Ditto.
3594 * java/util/Collections.java: From classpath.
3595 * java/util/ArrayList.java (addAll(Collection)): Call
3596 addAll(int,Collection) instead of duplicating code.
3597 (indexOf): Clean up int initialization.
3598 (clear): Set cleared array entries to null, to allow garbage
3600 * java/util/List.java: Minor formatting fixes.
3601 * java/util/SimpleTimeZone.java: ditto.
3603 2000-11-18 Tom Tromey <tromey@cygnus.com>
3605 * Makefile.in: Rebuilt.
3606 * Makefile.am (core_java_source_files): Added new files.
3607 * java/lang/reflect/ReflectPermission.java: New class.
3608 * java/io/FileFilter.java: From Classpath
3609 * java/io/FilePermission.java: From Classpath.
3611 2000-11-17 Tom Tromey <tromey@cygnus.com>
3613 * java/lang/reflect/AccessibleObject.java (isAccessible,
3614 setAccessible): Now public.
3616 * java/lang/natString.cc: Include Locale.h.
3617 (toUpperCase): Added `locale' argument. Handle locale
3619 (toLowerCase): Added `locale' argument. Handle locale
3621 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3622 CAPITAL_I): New defines.
3623 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3626 (toUpperCase, toLowerCase): New methods. Variants which accept
3629 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3632 * java/util/PropertyPermission.java: Re-merged from Classpath.
3634 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3636 * java/text/StringCharacterIterator.java: Reindented.
3637 (setText): New method.
3639 2000-11-17 Mark Wielaard <mark@klomp.org>
3641 Merge with Classpath (changes by Bryce McKinlay)
3642 * java/util/jar/*.java: Reformat all to unofficial standard coding
3643 style. No changes of substance.
3645 2000-11-17 Mark Wielaard <mark@klomp.org>
3647 * java/util/zip/*.java: Javadoc updates.
3649 2000-11-17 Tom Tromey <tromey@cygnus.com>
3651 * java/text/CollationKey.java: Implement Comparable.
3652 (compareTo(Object)): New method.
3653 * java/text/Collator.java (compare(Object,Object)): New method.
3654 Implement Comparator.
3656 * java/util/zip/InflaterInputStream.java (available): New method.
3657 (close): New method.
3658 (read, available, skip, fill): Throw exception if stream closed.
3659 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3660 getNextEntry): Throw exception if closed.
3662 2000-11-16 Tom Tromey <tromey@cygnus.com>
3664 * java/io/PushbackReader.java: Merged with Classpath.
3665 * java/util/Arrays.java: Updated from Classpath.
3667 * scripts/blocks.pl: New file.
3668 * java/lang/Character.java (Subset): New class.
3669 (UnicodeBlock): New class.
3671 * java/lang/Math.java (toDegrees, toRadians): New methods.
3673 * java/lang/Float.java: Implement Comparable.
3674 (compareTo): New methods.
3675 * java/lang/Double.java: Implement Comparable.
3676 (compareTo): New methods.
3678 2000-11-16 Warren Levy <warrenl@cygnus.com>
3680 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3682 (listeners): Made transient.
3683 (source): Renamed from 'bean'.
3684 (children): New field for serialization.
3685 (propertyChangeSupportSerializedDataVersion): Ditto.
3686 (serialVersionUID): Ditto.
3687 (writeObject): New serialization method.
3688 (readObject): New serialization method.
3689 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3691 (listeners): Made transient.
3692 (source): Renamed from 'bean'.
3693 (children): New field for serialization.
3694 (vetoableChangeSupportSerializedDataVersion): Ditto.
3695 (serialVersionUID): Ditto.
3696 (writeObject): New serialization method.
3697 (readObject): New serialization method.
3698 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3699 to allow constructor to have a return type (i.e. the class that the
3700 constructor constructs).
3702 2000-11-14 Tom Tromey <tromey@cygnus.com>
3704 * Makefile.in: Rebuilt.
3705 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3708 2000-11-02 Warren Levy <warrenl@cygnus.com>
3710 * java/io/ObjectInputStream.java (readObject): Added code to
3711 conditionally dump out the serialized data.
3712 Handle ENDBLOCKDATA case a bit more gracefully since the current
3713 behavior doesn't seem to work as expected.
3714 (readStreamHeader): Added code for serialized data dumper.
3715 (readNextBlock): Ditto.
3716 (readFields): Ditto.
3717 (dump): New private static field for turning on/off dumper.
3718 (setDump): New native method.
3719 (dumpElement): New native method.
3720 (dumpElementln): New native method.
3721 * java/io/natObjectInputStream.cc (setDump): New method.
3722 (dumpElement): New method.
3723 (dumpElementln): New method.
3725 2000-11-02 Warren Levy <warrenl@cygnus.com>
3727 * java/net/InetAddress.java (addr): Renamed from 'address'.
3728 (address): New field to match Serialized Form doc.
3729 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3730 (family): New serialization field.
3731 (serialVersionUID): New field.
3732 (readObject): New method.
3733 (writeObject): New method.
3734 (getFamily): New native method.
3735 (InetAddress): Set family.
3736 * java/net/natInetAddress.cc (getFamily): New method.
3737 (addr): Renamed from 'address'.
3738 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3739 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3740 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3742 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3744 * java/util/AbstractList.java (SubList): Make it a top-level private
3746 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3748 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3749 * Makefile.in: Rebuilt.
3751 2000-11-02 Tom Tromey <tromey@cygnus.com>
3753 * Makefile.in: Rebuilt.
3754 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3757 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3759 * java/util/AbstractList.java (remove): Comment out modCount increment
3760 to work around compiler bug.
3763 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3765 * java/util/AbstractList.java: Throw messages with
3766 IndexOutOfBoundsExceptions.
3767 (listIterator()): Call listIterator(0).
3768 (size): New field. Initialize to size().
3769 (hasNext): Test position against size, not size().
3770 (remove): Increment knownMod by one instead of resetting it from
3773 (SubList.upMod): Removed.
3774 (SubList.set): Don't call upMod() or update knownMod.
3775 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3776 (SubList.remove): Ditto.
3777 (SubList.addAll): Don't call backingList.size(). Increment size from
3779 (SubList.iterator): New method. Call listIterator(0).
3780 (SubList.listIterator): New method. Restore code to return an anonymous
3781 listIterator implementation (with some changes).
3782 * java/util/AbstractSequentialList.java: Throw messages with
3783 IndexOutOfBoundsExceptions.
3784 (addAll): Add a specnote.
3785 * java/util/ArrayList.java (removeRange): Get the math right.
3786 (addAll): Increment modCount _before_ creating iterator.
3787 * java/util/LinkedList.java: Rewritten, mostly.
3789 2000-11-01 Tom Tromey <tromey@cygnus.com>
3791 * scripts/encodings.pl: Added `ASCII' alias.
3792 * Makefile.in: Rebuilt.
3793 * Makefile.am (convert_source_files): Added new files.
3794 * gnu/gcj/convert/Input_ASCII.java: New file.
3795 * gnu/gcj/convert/Output_ASCII.java: New file.
3796 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3797 out-of-range characters.
3798 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3799 (read): Swap bytes if required. Treat `count' as character count,
3801 (write): Likewise. Also, handle case where iconv fails on a given
3803 (init): Put encoding into exception.
3804 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3805 (static): Call iconv_init. Rebuilt alias list.
3806 (iconv_init): New private method.
3808 2000-11-01 Tom Tromey <tromey@cygnus.com>
3810 * Makefile.in: Rebuilt.
3811 * Makefile.am (install-exec-hook): Only make a single symlink, and
3812 remove the destination before making the link.
3813 * configure: Rebuilt.
3814 * configure.in: Call AC_PROG_LN_S.
3816 2000-10-31 Warren Levy <warrenl@cygnus.com>
3818 * jni.cc: Added include of java/lang/ThreadGroup.h.
3819 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3820 per change of 2000-10-05.
3822 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3824 * java/util/BitSet.java: Updated @specnote.
3826 * java/io/Reader.java: Merge docs from classpath.
3827 (skip): Synchronize on `lock'.
3828 * java/io/FileReader.java: Import correct implementation from
3830 * java/io/StringReader.java: Merge docs from classpath.
3831 (ready): Throw IOException if stream is closed.
3833 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3835 * java/util/AbstractCollection.java (addAll): Use size() instead of
3836 hasNext() in iterator loop.
3838 (contains): Ditto. Simplify loop.
3839 (containsAll): Ditto.
3844 (toString): Ditto. Use string concatenation operators, not
3846 * java/util/AbstractList.java (addAll): Use size() instead of
3847 hasNext() in iterator loop.
3850 (indexOf): Ditto. Don't take null check outside of the loop.
3851 (iterator): Return an AbstractListItr instead of anonymous class.
3852 (lastIndexOf): Use a for loop bounded by size() instead of
3853 hasPrevious() in iterator loop.
3854 (listIterator): Return an AbstractListItr.
3855 (removeRange): Remove bounds checking code and docs.
3856 (AbstractListItr): New inner class. Code moved here from
3858 (SubList.iterator): Removed. Use default implementation from
3859 AbstractList instead.
3860 (SubList.listIterator): As above.
3861 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3862 instead of hasNext() in iterator loop.
3863 (containsValue): Ditto.
3869 (toString): Ditto. Use string concatenation operators, not
3871 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3872 bounded by size() instead of hasNext() in iterator loop.
3873 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3874 part of normal execution flow. Do an explicit null check instead.
3875 * java/util/ArrayList.java (_iSize): Rename to `size'.
3876 (_arData): Rename to `data'.
3877 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3880 (removeRange): Make protected. Don't check bounds.
3881 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3883 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3885 (addAll (int, Collection)): Check lower bounds. Simplify exception
3887 (clone): Clone the data array too.
3888 (indexOf): Inline doesEqual().
3889 (lastIndexOf): Ditto.
3890 (clear): Don't set array data to null.
3891 (set): Check lower bounds. Simplify exception string.
3892 (toArray): Correct comment.
3893 (trimToSize): Don't update modCount, this is not a structural change.
3896 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3898 (toString): Declare `bit' as long, not int.
3899 (data): Made package-private, not private.
3901 2000-10-27 Warren Levy <warrenl@cygnus.com>
3903 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3904 array elements to true.
3906 2000-10-27 Warren Levy <warrenl@cygnus.com>
3908 * Makefile.am: Added locale files from Classpath.
3909 * Makefile.in: Rebuilt.
3910 * gnu/java/locale/Calendar.java: New file.
3911 * gnu/java/locale/Calendar_de.java: New file.
3912 * gnu/java/locale/Calendar_en.java: New file.
3913 * gnu/java/locale/Calendar_nl.java: New file.
3914 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3915 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3916 serialization compatibility.
3917 (scale): Made private.
3918 (serialVersionUID): New field.
3919 * java/math/BigInteger.java (ival): Made transient.
3920 (words): Made transient.
3921 (bitCount): New serialization field.
3923 (firstNonzeroByteNum): Ditto.
3924 (lowestSetBit): Ditto.
3927 (serialVersionUID): New field.
3928 (readObject): New method.
3929 (writeObject): New method.
3930 * java/util/BitSet.java (serialVersionUID): New field.
3931 * java/util/Calendar.java: Replaced with Classpath file.
3932 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3933 of getDefault() for TimeZone or Locale instead of passing nulls.
3934 * java/util/Locale.java (serialVersionUID): New field.
3935 (writeObject): New method.
3936 (readObject): New method.
3937 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3939 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3941 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3942 (core_java_source_files): Put java.lang, java.io, and java.util here.
3943 (ordinary_java_source_files): Order so that core_java_source_files are
3945 (java_source_files): Reorder so that special_java_source_files are
3947 * configure.in: Don't pass -I flag to gcj.
3948 * Makefile.in: Rebuilt.
3949 * configure: Rebuilt.
3951 2000-10-25 Tom Tromey <tromey@cygnus.com>
3953 * Makefile.in: Rebuilt.
3954 * Makefile.am (install-exec-hook): New target.
3956 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3958 * java/util/EventObject.java: Merged from classpath.
3960 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3963 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3965 * java/util/AbstractSet.java (equals): Re-installed original code.
3967 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3969 * Makefile.am: Added rules for libgcjx library.
3970 * Makefile.in: Rebuilt.
3971 * configure.in: Added check for X.
3972 * configure: Rebuilt.
3973 * gnu/awt/LightweightRedirector.java: New file.
3974 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3975 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3976 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3977 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3978 * gnu/awt/j2d/MappedRaster.java: New file.
3979 * gnu/awt/xlib/XCanvasPeer.java: New file.
3980 * gnu/awt/xlib/XEventLoop.java: New file.
3981 * gnu/awt/xlib/XEventQueue.java: New file.
3982 * gnu/awt/xlib/XFontMetrics.java: New file.
3983 * gnu/awt/xlib/XFramePeer.java: New file.
3984 * gnu/awt/xlib/XGraphics.java: New file.
3985 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3986 * gnu/awt/xlib/XPanelPeer.java: New file.
3987 * gnu/awt/xlib/XToolkit.java: New file.
3988 * gnu/gcj/xlib/Clip.java: New file.
3989 * gnu/gcj/xlib/Colormap.java: New file.
3990 * gnu/gcj/xlib/Display.java: New file.
3991 * gnu/gcj/xlib/Drawable.java: New file.
3992 * gnu/gcj/xlib/Font.java: New file.
3993 * gnu/gcj/xlib/GC.java: New file.
3994 * gnu/gcj/xlib/Pixmap.java: New file.
3995 * gnu/gcj/xlib/Screen.java: New file.
3996 * gnu/gcj/xlib/Visual.java: New file.
3997 * gnu/gcj/xlib/WMSizeHints.java: New file.
3998 * gnu/gcj/xlib/Window.java: New file.
3999 * gnu/gcj/xlib/WindowAttributes.java: New file.
4000 * gnu/gcj/xlib/XAnyEvent.java: New file.
4001 * gnu/gcj/xlib/XButtonEvent.java: New file.
4002 * gnu/gcj/xlib/XColor.java: New file.
4003 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4004 * gnu/gcj/xlib/XConnectException.java: New file.
4005 * gnu/gcj/xlib/XEvent.java: New file.
4006 * gnu/gcj/xlib/XException.java: New file.
4007 * gnu/gcj/xlib/XExposeEvent.java: New file.
4008 * gnu/gcj/xlib/XID.java: New file.
4009 * gnu/gcj/xlib/XImage.java: New file.
4010 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4011 * gnu/gcj/xlib/natClip.cc: New file.
4012 * gnu/gcj/xlib/natColormap.cc: New file.
4013 * gnu/gcj/xlib/natDisplay.cc: New file.
4014 * gnu/gcj/xlib/natDrawable.cc: New file.
4015 * gnu/gcj/xlib/natFont.cc: New file.
4016 * gnu/gcj/xlib/natGC.cc: New file.
4017 * gnu/gcj/xlib/natPixmap.cc: New file.
4018 * gnu/gcj/xlib/natScreen.cc: New file.
4019 * gnu/gcj/xlib/natVisual.cc: New file.
4020 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4021 * gnu/gcj/xlib/natWindow.cc: New file.
4022 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4023 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4024 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4025 * gnu/gcj/xlib/natXColor.cc: New file.
4026 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4027 * gnu/gcj/xlib/natXException.cc: New file.
4028 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4029 * gnu/gcj/xlib/natXImage.cc: New file.
4030 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4031 * java/awt/EventDispatchThread.java: Start thead on creation.
4033 2000-10-20 Tom Tromey <tromey@cygnus.com>
4035 From Arno J. Klaassen:
4036 * interpret.cc: Include <stdlib.h> for alloca.
4037 * defineclass.cc: Include <stdlib.h> for alloca.
4039 * Makefile.in: Rebuilt.
4040 * Makefile.am: Include deps.mk.
4041 (GCJCOMPILE): Added -MD, -MT, and -MF.
4042 ($(javao_files)): Don't depend on libgcj.zip.
4043 (all-recursive): New target.
4044 (%.lo:%.cc): Do dependency tracking.
4045 ($(nat_headers)): Don't depend on libgcj.zip.
4046 * configure: Rebuilt.
4047 * configure.in: Make .d files and deps.mk.
4049 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4051 * exception.cc: Don't #include "exception".
4052 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4054 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4055 * Makefile.in: Updated.
4057 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4059 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4060 * java/awt/peer/ComponentPeer.java (disable): Removed.
4063 (minimumSize): Removed.
4064 (preferredSize): Removed.
4067 * java/awt/peer/ListPeer.java (addItem): Removed.
4069 (minimumSize): Removed.
4070 (preferredSize): Removed.
4071 (setMultipleSelections): Removed.
4072 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4073 (remove): Renamed from removeMenu.
4074 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4076 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4077 (remove): Renamed from removeItem.
4078 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4079 (getMinimumSize): Removed.
4080 (getPreferredSize): Removed.
4081 (minimumSize): Removed.
4082 (preferredSize): Removed.
4083 (replaceText): Removed.
4084 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4085 (preferredSize): Removed.
4086 (getMinimumSize): Removed.
4087 (getPreferredSize): Removed.
4088 (setEchoCharacter): Removed.
4090 2000-10-10 Warren Levy <warrenl@cygnus.com>
4092 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4093 * java/sql/Date.java (serialVersionUID): New field.
4094 * java/sql/Time.java (serialVersionUID): New field.
4095 * java/sql/Timestamp.java (serialVersionUID): New field.
4096 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4097 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4098 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4099 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4100 (readObject): New serialization method.
4101 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4102 (serialVersionOnStream): New field.
4103 (readObject): New serialization method.
4104 (getMonetaryDecimalSeparator): New method.
4105 (setMonetaryDecimalSeparator): New method.
4106 * java/text/NumberFormat.java (maxFractionDigits): New field.
4107 (maxIntegerDigits): New field.
4108 (minFractionDigits): New field.
4109 (minIntegerDigits): New field.
4110 (serialVersionOnStream): New field.
4111 (serialVersionUID): New field.
4112 (readObject): New serialization method.
4113 (writeObject): New serialization method.
4114 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4115 (serialVersionOnStream): New field.
4116 (serialVersionUID): New field.
4117 (readObject): New serialization method.
4119 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4121 * configure.in (GCJ): Avoid bogus error message when looking for
4122 (and not finding) gcj in the build tree.
4123 * configure: Rebuilt.
4125 2000-10-09 Tom Tromey <tromey@cygnus.com>
4127 * configure: Rebuilt.
4128 * configure.in: Include sys/types.h when checking for socklen_t.
4129 From Arno J. Klaassen.
4131 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4133 * include/jvm.h: Enable __builtin_expect().
4135 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4136 the main program. Fix for PR libgcj/341.
4138 2000-10-07 Tom Tromey <tromey@cygnus.com>
4140 * java/util/Properties.java: Merged with Classpath version.
4142 2000-10-05 Tom Tromey <tromey@cygnus.com>
4144 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4145 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4146 * java/lang/Class.h (Object): Added `class$' field.
4147 * java/lang/Object.h (Object): Added `class$' field.
4148 * defineclass.cc (ClassClass): Use `class$' form.
4149 (ClassObject): Likewise.
4150 * resolve.cc (ClassObject): Use `class$' form.
4151 (ObjectClass): Likewise.
4152 * interpret.cc (ClassError): Removed.
4153 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4155 (IntegerClass): Likewise.
4156 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4158 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4159 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4160 SerializableClass): Likewise.
4161 Include Serializable.h, Cloneable.h.
4162 * java/lang/natSystem.cc (SystemClass): Removed.
4163 (init_properties): Use `class$' form.
4164 * java/lang/natObject.cc (CloneableClass): Removed.
4165 (clone): Use `class$' form.
4166 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4167 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4168 ConstructorClass): Likewise.
4169 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4170 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4171 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4172 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4174 (ClassClass): Likewise.
4175 * include/jvm.h (StringClass): Use `class$' form.
4176 * prims.cc (ObjectClass): Removed.
4177 (_Jv_RunMain): Use `class$' form.
4178 (_Jv_AllocObject): Likewise.
4179 * jni.cc (ClassClass): Use `class$' form.
4180 (ThrowableClass): Likewise.
4181 (ObjectClass): Likewise.
4182 (MethodClass): Likewise.
4183 (ThreadGroupClass): Likewise.
4184 (NativeThreadClass): Likewise.
4185 * boehm.cc (ObjectClass): Removed.
4186 (ClassClass): Removed.
4187 (_Jv_MarkObj): Use `class$' form.
4188 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4191 2000-10-05 Warren Levy <warrenl@cygnus.com>
4193 * Makefile.am: Removed java/io/Replaceable.java and
4194 java/io/Resolvable.java.
4195 * Makefile.in: Rebuilt.
4196 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4198 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4200 (processResolution): Handle readResolve method via reflection with
4201 removal of Resolvable interface.
4202 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4203 method via reflection with removal of Replaceable interface.
4204 * java/io/Replaceable.java: Removed.
4205 * java/io/Resolvable.java: Removed.
4206 * java/security/Key.java (serialVersionUID): New field.
4207 * java/security/Provider.java (serialVersionUID): New field.
4208 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4210 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4212 * java/sql/DataTruncation.java (serialVersionUID): New field.
4213 * java/sql/SQLException.java (serialVersionUID): New field.
4214 * java/sql/SQLWarning.java (serialVersionUID): New field.
4215 * java/util/Date.java (serialVersionUID): New field.
4216 (millis): Made transient.
4217 (readObject): New method.
4218 (writeObject): New method.
4220 2000-10-05 Tom Tromey <tromey@cygnus.com>
4222 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4224 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4226 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4227 (JvRunMain): Set _Jv_argv and _Jv_argc.
4228 * java/awt/Component.java: Minor fixes.
4229 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4230 * java/awt/Toolkit.java (systemEventQueue): Removed.
4231 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4232 * java/awt/Window.java (getToolkit): Don't call super.
4233 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4234 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4235 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4236 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4237 * gnu/awt/gtk/GtkFramePeer.java: New file.
4238 * gnu/awt/gtk/GtkMainThread.java: New file.
4239 * gnu/awt/gtk/GtkToolkit.java: New file.
4240 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4241 * gnu/awt/gtk/gtkcommon.cc: New file.
4242 * gnu/awt/gtk/gtkcommon.h: New file.
4243 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4244 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4245 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4246 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4247 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4248 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4250 2000-09-30 Tom Tromey <tromey@cygnus.com>
4252 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4253 interrupted before modifying the cv's wait set.
4256 2000-09-30 Hans Boehm <boehm@acm.org>
4257 Bryce McKinlay <bryce@albatross.co.nz>
4259 Implement bitmap descriptor based marking for Boehm GC.
4261 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4262 * configure: Rebuilt.
4263 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4264 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4265 method get_finalizer().
4266 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4267 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4268 (_Jv_AllocObj): Add new jclass parameter.
4269 (_Jv_AllocArray): Ditto.
4270 (_Jv_BuildGCDescr): New prototype.
4271 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4272 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4273 get_finalizer() instead of direct finalizer vtable offset.
4274 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4275 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4276 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4277 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4278 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4279 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4280 (_Jv_DetermineVTableIndex): Ditto.
4281 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4282 calculations to account for new gc_descr field.
4283 * boehm.cc: #include gc_gcj.h.
4284 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4285 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4286 New commentary from HB. Mark the classes vtable.
4287 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4288 (GC_DEFAULT_DESCR): New #define.
4289 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4290 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4291 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4292 scan conservativly if size is less than min_heap_addr. Set vtable
4293 pointer of new object before returning.
4294 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4295 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4296 allocation for obj_kind_x.
4297 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4298 (_Jv_AllocObj): Set vtable on returned object.
4299 (_Jv_AllocArray): Ditto.
4300 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4301 (_Jv_NewPrimArray): Ditto.
4302 (_Jv_AllocObj): Declare as a friend.
4303 (_Jv_AllocArray): Ditto.
4304 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4305 from &ObjectClass into new array class. Remove offset-by-one
4306 adjustments from `method' size calculations to account for gc_descr
4309 2000-09-26 Tom Tromey <tromey@cygnus.com>
4311 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4312 `remove', not `add'.
4314 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4316 * java/lang/natSystem.cc (file_encoding): Added return statement.
4318 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4320 * Makefile.am: Re-work shell commands that exceeded command-line
4322 * Makefile.in: Rebuilt.
4324 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4326 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4327 * java/lang/natDouble.cc: Likewise.
4328 * java/lang/reflect/natMethod.cc: Likewise.
4329 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4331 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4333 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4335 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4336 * acinclude.m4: Arrange for automake to not bring in a new
4337 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4338 * Makefile.am: Leave it up to automake to subst GCJ.
4339 * aclocal.m4, configure, Makefile.in: Rebuilt.
4341 2000-09-13 Tom Tromey <tromey@cygnus.com>
4343 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4344 (get): Ensure Boolean class is initialized.
4345 * java/lang/reflect/natField.cc (BooleanClass): New define.
4346 (get): Ensure Boolean class is initialized.
4348 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4350 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4351 Initialize with anonymous class.
4352 (compareToIgnoreCase): New method.
4354 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4355 (uncaughtException): Set had_uncaught_exception.
4356 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4357 exit with error status if set.
4358 (_Jv_RunMain): Ditto.
4360 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4362 * configure: Rebuilt with new ../libtool.m4.
4364 2000-09-11 Tom Tromey <tromey@cygnus.com>
4366 * java/lang/reflect/Field.java (toString): Don't rely on
4369 2000-09-08 Tom Tromey <tromey@cygnus.com>
4371 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4372 default decoder use iconv.
4373 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4374 Let default encoder use iconv.
4375 * configure: Rebuilt.
4376 * configure.in: Check for nl_langinfo and <langinfo.h>.
4377 * java/lang/natSystem.cc (file_encoding): New function.
4378 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4380 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4382 * acinclude.m4: Simplify the tests for CC and CXX.
4383 * aclocal.m4, configure: Rebuilt.
4385 * acinclude.m4: Include libtool macros from the source tree.
4386 * aclocal.m4, configure: Rebuilt.
4388 2000-09-08 Warren Levy <warrenl@cygnus.com>
4390 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4391 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4392 * java/io/File.java (writeObject): Added.
4393 (readObject): Added.
4394 (serialVersionUID): Added.
4395 * java/io/ObjectOutputStream.java (writeObject): Initialized
4396 fieldsAlreadyWritten before recursion rather than after.
4397 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4398 * java/io/OptionalDataException.java (serialVersionUID): Added.
4399 (OptionalDataException): Made package private.
4400 * java/io/SyncFailedException.java (SyncFailedException): Removed
4401 default constructor to match spec.
4402 * java/lang/Boolean.java (serialVersionUID): Added.
4403 * java/lang/Byte.java (serialVersionUID): Added.
4404 * java/lang/Character.java (serialVersionUID): Added.
4405 * java/lang/Double.java (serialVersionUID): Added.
4406 * java/lang/Float.java (serialVersionUID): Added.
4407 * java/lang/Integer.java (serialVersionUID): Added.
4408 * java/lang/Long.java (serialVersionUID): Added.
4409 * java/lang/Number.java (serialVersionUID): Added.
4410 * java/lang/Short.java (serialVersionUID): Added.
4411 * java/lang/String.java (serialVersionUID): Added.
4412 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4414 * java/lang/reflect/InvocationTargetException.java
4415 (serialVersionUID): Added.
4416 * java/net/URL.java (handler): Made transient.
4417 (hashCode): Added field for serialization, per spec. and use
4418 cached value if available.
4419 (serialVersionUID): Added.
4420 (URL): Initialize hashCode.
4421 (set): Adjust hashCode.
4422 (readObject): New Method to initialize the protocol handler when
4424 (writeObject): New method.
4425 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4426 * java/text/Collator.java: Removed 'implements Serializable'.
4427 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4428 * java/util/Properties.java (serialVersionUID): Added.
4429 * java/util/Random.java (serialVersionUID): Added.
4430 (seed): Made private.
4431 (nextNextGaussian): Made private.
4432 (haveNextNextGaussian): Made private.
4433 * java/util/Stack.java (serialVersionUID): Added.
4434 * java/util/TimeZone.java (serialVersionUID): Added.
4435 * java/util/Vector.java (serialVersionUID): Added.
4437 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4439 * Makefile.am (Thread.h): Don't be friends with native threads
4441 * Makefile.in: Rebuilt.
4442 * java/lang/Thread.java (interrupt_flag): Make package-private.
4444 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4446 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4447 to avoid long long division.
4449 2000-09-06 Tom Tromey <tromey@cygnus.com>
4451 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4453 * java/lang/reflect/Method.java (toString): Use `getName' for
4456 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4457 `args' if method takes no parameters.
4459 Fix for PR java.lang/339:
4460 * java/lang/natPosixProcess.cc (fail): New function.
4461 (cleanup): New function.
4462 (startProcess): Use them. Create pipe so child can communicate
4463 exec failure back to parent.
4465 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4467 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4469 (send): Undo last patch. Remove the label only.
4471 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4473 * java/net/natInetAdress.cc: Ditto.
4475 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4477 2000-09-05 Tom Tromey <tromey@cygnus.com>
4479 * doc/cni.sgml: Updated from master copy.
4481 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4483 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4485 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4487 * java/lang/fdlibm.h: #undef __P if previously defined.
4488 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4489 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4493 2000-09-04 Tom Tromey <tromey@cygnus.com>
4495 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4498 2000-09-04 Anthony Green <green@redhat.com>
4500 Fix for PR java.io/203:
4501 * java/io/File.java (createTempFile): Obey directory argument.
4502 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4503 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4504 variable to set java.io.tmpdir on non-WIN32 systems.
4506 2000-09-04 Anthony Green <green@redhat.com>
4508 * java/io/File.java (deleteOnExit): New method.
4509 * gnu/gcj/runtime/FileDeleter.java: New class.
4510 * java/lang/natRuntime.cc (exit): Call
4511 FileDeleter.deleteOnExitNow()
4512 * Makefile.am: Add FileDeleter.java.
4513 * Makefile.in: Rebuilt.
4515 2000-09-02 Tom Tromey <tromey@cygnus.com>
4517 * Makefile.in: Rebuilt.
4518 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4519 environment variable.
4521 2000-09-01 Andrew Haley <aph@redhat.com>
4523 * java/io/StreamTokenizer.java: Don't throw a
4524 NumberFormatException if a field is numeric as far as the
4525 StreamTokenizer is concerned but not as far as Double.valueOf() is
4526 concerned: return a zero instead.
4528 2000-08-30 Tom Tromey <tromey@cygnus.com>
4530 * Makefile.in: Rebuilt.
4531 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4533 2000-08-28 Tom Tromey <tromey@cygnus.com>
4535 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4536 gnu/gcj/awt/ComponentDataBlitOp.java,
4537 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4538 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4539 java/awt/color/ICC_ColorSpace.java,
4540 java/awt/color/ICC_Profile.java,
4541 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4542 java/awt/image/ComponentColorModel.java,
4543 java/awt/image/ComponentSampleModel.java,
4544 java/awt/image/DataBuffer.java,
4545 java/awt/image/DataBufferByte.java,
4546 java/awt/image/DataBufferInt.java,
4547 java/awt/image/DataBufferUShort.java,
4548 java/awt/image/DirectColorModel.java,
4549 java/awt/image/IndexColorModel.java,
4550 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4551 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4552 java/awt/image/SinglePixelPackedSampleModel.java,
4553 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4554 Removed Latin-1 copyright symbols.
4555 * java/util/zip/ZipFile.java: Indentation fixes.
4557 2000-08-27 Mark Wielaard <mark@klomp.org>
4559 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4560 constructor, close can delete the file, finalize calls close.
4561 * java/util/jar/JarFile.java: Constructor that takes mode now
4564 2000-08-27 Anthony Green <green@redhat.com>
4566 * java/util/ArrayList.java, java/util/Timer.java,
4567 java/util/LinkedList.java, java/util/TimerTask.java,
4568 java/util/HashMap.java, java/util/AbstractMap.java,
4569 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4570 java/util/SortedSet.java: Imported from GNU Classpath.
4571 * Makefile.in: Rebuilt.
4572 * Makefile.am: Added new files.
4574 2000-08-26 Anthony Green <green@redhat.com>
4576 * Makefile.in: Rebuilt.
4577 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4580 * prims.cc: Include ClassLoader.h.
4581 (_Jv_RunMain): When executing jar files, classpath must be the jar
4582 file only. Lose our reference to the system ClassLoader in order
4583 to get a new one with the correct classpath.
4584 * java/lang/natSystem.cc (init_properties): When executing a jar
4585 file, only use the jar file for java.class.path.
4587 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4588 for bytecode archives.
4590 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4591 exists, but not Main-Class.
4593 2000-08-23 Mark Wielaard <mark@klomp.org>
4595 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4596 return -1 when fill() has no more data for the Inflater.
4598 2000-08-23 Mark Wielaard <mark@klomp.org>
4600 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4601 write(String) already does.
4603 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4605 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4606 to `alive_flag', call `init'.
4607 (init): New native method.
4608 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4611 2000-08-21 Mark Wielaard <mark@klomp.org>
4613 * Makefile.in: Rebuilt.
4614 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4616 (java/lang/reflect/Field.h): Likewise.
4617 (java/lang/reflect/Method.h): Likewise.
4618 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4621 2000-08-21 Tom Tromey <tromey@cygnus.com>
4623 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4626 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4628 * java/lang/natSystem.cc (init_properties): Change sourceware
4629 reference to sources.redhat.com.
4631 * include/java-props.h: Add _Jv_Jar_Class_Path.
4632 * prims.cc: Ditto. Set it from `gij -jar file' option.
4634 * java/lang/natSystem.cc (init_properties): Set java.class.path
4636 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4638 * java/util/PropertyPermission.java: Import from GNU Classpath.
4639 * Makefile.in: Rebuilt.
4640 * Makefile.am: Add java/util/PropertyPermission.java.
4641 * java/lang/System.java: Add setProperty method.
4643 * gij.cc (main): Add -jar option to execute jar files.
4644 (help): Describe -jar option.
4645 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4646 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4647 * gnu/gcj/runtime/FirstThread.java (main): New method.
4649 * java/util/jar/Attributes.java: Correct comment spelling.
4651 2000-08-20 Mark Wielaard <mark@klomp.org>
4653 * java/util/zip/Adler32.java: Make private variables really private
4654 * java/util/zip/CRC32.java: Make private variables really private
4655 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4657 * java/util/zip/InflaterInputStream.java: skip() could skip to
4659 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4660 * java/util/zip/ZipFile.java: size() new 1.2 method
4661 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4662 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4665 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4667 * java/util/jar/JarFile.java: Don't call
4668 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4671 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4673 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4674 Read the entire contents of the class file, not just what is
4677 * java/net/JarURLConnection.java: getEntry doesn't take any
4678 arguments. Return null if element is null.
4680 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4681 size from the archive, not the inflated size.
4683 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4684 java.util.zip.ZipFile.getEntry.
4686 * gij.cc (help): Change sourceware reference to
4689 2000-08-19 Tom Tromey <tromey@cygnus.com>
4691 * java/util/zip/ZipInputStream.java (createZipEntry):
4694 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4696 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4697 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4698 java/util/jar/JarInputStream.java,
4699 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4700 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4701 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4702 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4703 java/security/cert/Certificate.java,
4704 java/security/cert/CertificateEncodingException.java,
4705 java/security/cert/CertificateException.java,
4706 java/security/cert/CertificateExpiredException.java,
4707 java/security/cert/CertificateFactory.java,
4708 java/security/cert/CertificateFactorySpi.java,
4709 java/security/cert/CertificateNotYetValidException.java,
4710 java/security/cert/CertificateParsingException.java,
4711 java/security/cert/X509CRL.java,
4712 java/security/cert/X509CRLEntry.java,
4713 java/security/cert/X509Certificate.java,
4714 java/security/cert/X509Extension.java: Imported from Classpath.
4715 * java/util/Hashtable.java: Imported from Classpath.
4717 * java/util/zip/ZipInputStream.java: Create stub for
4720 * gcj/javaprims.h: Updated class list.
4722 * Makefile.in, gcj/Makefile.in: Rebuilt.
4723 * Makefile.am (ordinary_java_source_files): Add these new classes.
4725 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4727 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4728 * gnu/gcj/awt/GLightweightPeer.java: New file.
4729 * java/awt/BorderLayout.java: Implemented all methods.
4730 * java/awt/Button.java (actionListener, actionCommand): Renamed
4731 and modifier change.
4732 (addNotify): Call super.
4733 (dispatchEventImpl): New method.
4734 (getListeners): New method.
4735 (label): Made package-private, not private.
4736 * java/awt/Canvas.java: Implemented class body.
4737 * java/awt/Color.java (brighter): New method.
4738 (darker): New method.
4739 (hashCode): New method.
4740 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4741 (getGraphicsConfiguration): Delegate to
4742 getGraphicsConfigurationImpl().
4743 (getGraphicsConfigurationImpl): New method.
4744 (getToolkit): Only return value from peer if not null.
4745 (isDisplayable): Check with parent.
4746 (isShowing): No parent implies not showing.
4747 (getForeground): Check parent property if local is null.
4748 (getBackground): Likewise.
4749 (getFont): Likewise.
4750 (setForeground): Inform peer.
4751 (setBackground): Likewise
4752 (setLocale): Invalidate component.
4753 (getColorModel): Implemented.
4754 (setLocation): Invalidate, or ignore if no change.
4755 (setSize): Invalidate, or ignore if no change.
4756 (setBounds): Invalidate, or ignore if no change.
4757 (isOpaque): By default, heavyweight implies opaque.
4758 (isLightweight): Implemented.
4759 (getMaximumSize): Implemented.
4760 (doLayout): Implemented, NOP.
4761 (validate): Implemented, NOP.
4762 (invalidate): Only propagate to parent if parent was valid.
4763 (getGraphics): Implemented.
4764 (getFontMetrics): Implemented.
4765 (update): Implemented.
4766 (paintAll): Implemented.
4767 (repaint): Implemented all repaint methods.
4768 (print): Implemented.
4769 (printAll): Implemented.
4770 (createImage): Implemented.
4771 (dispatchEvent): Give the peer a chance to handle the event.
4772 (dispatchEventImpl): Dispatch paint events.
4773 (enableEvents): Lightweights enable events on parent component.
4774 (coalesceEvents): Coalesce paint events, and select event type
4776 (coalescePaintEvents): New method.
4777 (processEvent): Fix unfortunate ordering of statements, and call
4778 correct method for MOUSE_CLICKED.
4779 (processPaintEvent): New method.
4780 (addNotify): Allow container to notify children before event
4781 mask is set in peer.
4782 (addNotifyContainerChildren): New method.
4783 (removeNotify): Visibility should not change on removeNotify.
4784 (paramString): Implemented.
4785 (list): Implemented two of the list methods.
4786 * Container (myInsets): Removed, insets are managed by peer.
4787 (getInsets): Query peer.
4788 (addImpl): Fix reparenting, enable events for lightweights,
4789 initialize component array.
4790 (validate): Call doLayout in validateTree() instead.
4791 (validateTree): Do nothing if already valid. Call beginValidate(),
4792 endValidate() on peer. Call validateTree() instead of validate()
4793 for children that are containers. Mark valid after validation of
4795 (setFont): Partial implementation.
4796 (paint): Implemented.
4797 (visitChildren): New method.
4798 (visitChild): New method.
4799 (update): Implemented.
4800 (print): Implemented.
4801 (paintComponents): Implemented.
4802 (printComponents): Consider translation and clipping.
4803 (getComponentAt): Ignore invisible children. Return this if no
4805 (addNotify): Call super.
4806 (addNotifyContainerChildren): New method.
4807 (paramString): Implemented.
4808 (list): Implemented.
4809 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4811 (invokeLater): Likewise.
4812 (isDispatchThread): Likewise.
4813 * java/awt/FontMetrics (getLeading): Formula change.
4814 (getDescent): Consider leading also.
4815 (getMaxAscent): Default to getAscent().
4816 (getMaxDescent): Default to getDescent.
4817 (getMaxAdvance): Return value signifying unknown.
4818 (charWidth): Both methods implemented.
4819 (charsWidth): Implemented.
4820 (bytesWidth): Implemented.
4821 (getWidths): Implemented.
4822 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4824 (Frame): Rearragend constuctor chaining to disallow null being
4825 passed as a graphics configuration.
4826 (getTitle): Return empty string if null.
4828 (getIconImage): New method.
4829 (setIconImage): New method.
4830 (finalize): New method.
4831 (setMenuBar): Notify peer.
4832 (isResizable): New method.
4833 (setResizable): New method.
4834 (getState): New method.
4836 (remove): Implemented.
4837 (removeNotify): New method.
4838 (getFrames): New method.
4839 * java/awt/Graphics.java: Implemented body of class.
4840 * java/awt/Graphics2D.java: New file.
4841 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4842 * java/awt/Image.java: Implemented body of class.
4843 * java/awt/Panel.java (Panel): Call correct super constructor.
4844 (addNotify): Implemented.
4845 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4846 * java/awt/RenderingHints.java: New file.
4847 * java/awt/Toolkit.java (createComponent): Implemented.
4848 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4849 * java/awt/Window.java (Window): Two new constructors. Reordered
4850 constructor chaining.
4851 (getGraphicsConfigurationImpl): New method.
4852 (finalize): Call super.
4853 (addNotify): Call super.
4854 (pack): Do layout stuff.
4855 (show): Ensure that peer exists and that component is valid.
4856 (dispose): Dispose owned children.
4857 (getOwner): Simplify code, casting null pointers is valid.
4858 (getGraphicsConfiguration): Ask peer if local value is null.
4859 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4861 * java/awt/image/BufferedImage.java: New file.
4862 * java/awt/image/RasterOp.java: New file.
4863 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4864 More powerfull replacement for getColorModel().
4865 (getColorModel) Removed.
4866 (setEventMask) New method.
4867 * Makefile.am: Added new files.
4868 * Makefile.in: Rebuilt.
4870 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4872 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4873 (finit_leg_name): New global.
4874 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4875 `$finit$'. This is a backward compatibility hack.
4876 (java::lang::Class::_getMethods): Likewise.
4878 2000-08-15 Andrew Haley <aph@cygnus.com>
4880 * include/jvm.h (_Jv_HashCode): New hash code.
4882 2000-08-15 Tom Tromey <tromey@cygnus.com>
4884 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4886 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4888 * THANKS: More thanks.
4890 2000-08-10 Tom Tromey <tromey@cygnus.com>
4892 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4894 (connect): Likewise.
4896 (getOption): Likewise.
4897 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4898 case when errno not set.
4901 (receive): Likewise.
4902 (mcastGrp): Likewise.
4903 (setOption): Likewise.
4904 (getOption): Likewise.
4906 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4907 John Stracke <francis@ecal.com>
4909 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4910 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4912 (disconnect): Don't unset connected flag.
4913 (getHeaderField (String)): Call connect() if not connected.
4914 (getHeaderField (int)): Ditto.
4915 (getHeaderFieldKey): Ditto.
4916 (getHttpHeaders): Don't call connect().
4917 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4918 gotResponseVals): New fields.
4919 (getResponseCode): Call getResponseVals() conditionally.
4920 (getResponseMessage): Ditto.
4921 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4923 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4925 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4926 * Makefile.in: Rebuilt.
4927 * java/awt/Color.java (getTransparency): New method.
4928 * java/awt/Component.java: Various updates.
4929 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4930 after dealing with children.
4931 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4932 * java/awt/Window.java: Various new methods and updates.
4933 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4935 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4936 * java/awt/event/WindowEvent.java (paramString): Ditto.
4937 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4939 * java/awt/geom/Point2D.java (clone): Ditto.
4940 * java/awt/geom/RectangularShape.java (clone): Ditto.
4941 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4942 isAlphaPremultiplied): Make package-private, not private.
4944 2000-08-08 Tom Tromey <tromey@cygnus.com>
4946 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4947 surrogate characters.
4948 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4950 (write): Correct handling of surrogate characters.
4952 2000-08-07 Tom Tromey <tromey@cygnus.com>
4954 * java/lang/reflect/Method.java (hashCode): Use getName().
4955 (toString): Likewise.
4956 * java/lang/reflect/natMethod.cc (getType): Initialize
4959 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4961 * java/lang/reflect/Field.java (toString): Correct formatting.
4964 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4966 (receive): Streamlined.
4968 2000-08-05 Tom Tromey <tromey@cygnus.com>
4970 * java/io/PrintWriter.java: Merged comments from Classpath.
4971 (printlnUnsynchronized): Removed.
4972 (println()): Print the separator.
4973 (println): Call println(), not printlnUnsynchronized.
4974 (out): Now protected, to match spec.
4976 2000-08-04 Tom Tromey <tromey@cygnus.com>
4978 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4979 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4982 2000-08-03 Warren Levy <warrenl@cygnus.com>
4984 * java/io/ObjectInputStream.java (readFields): Turn off
4985 readDataFromBlock while reading via GetField.
4986 (GetField$1.get(String, Object)): Pass Class of default value to
4988 (getField): Allow for null default values.
4990 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4991 (PutField$1.put): Fixed calls of checkType in most of the put
4992 methods to pass the correct parameter.
4993 (PutField$1.put(String, Object)): Allow for null value arg.
4994 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4997 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4998 typo in spec'ed field name.
4999 (getSerialPersistentFields): Changed spelling of method to match
5000 the correct spelling of the spec'ed field name.
5002 2000-08-03 Tom Tromey <tromey@cygnus.com>
5004 * Makefile.in: Rebuilt.
5005 * Makefile.am (awt_java_source_files): Added new files.
5007 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5009 * Makefile.am: Add new AWT stubs.
5010 * java/awt/Canvas.java: New placeholder class.
5011 * java/awt/Checkbox.java: Ditto.
5012 * java/awt/CheckboxMenuItem.java: Ditto.
5013 * java/awt/Choice.java: Ditto.
5014 * java/awt/Dialog.java: Ditto.
5015 * java/awt/FileDialog.java: Ditto.
5016 * java/awt/List.java: Ditto.
5017 * java/awt/ScrollPane.java: Ditto.
5018 * java/awt/TextField.java: Ditto.
5019 * java/awt/datatransfer/Clipboard.java: Ditto.
5020 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5021 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5022 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5023 Some commented out. Partially implemented.
5024 * java/awt/natToolkit.cc: Removed file.
5026 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5028 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5029 Fixes "make -j" builds.
5030 * Makefile.in: Rebuild.
5032 2000-08-02 Tom Tromey <tromey@cygnus.com>
5034 * Makefile.in: Rebuilt.
5035 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5036 * java/net/natPlainSocketImpl.cc: Include posix.h.
5037 (accept): Use _Jv_select.
5038 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5039 (receive): Use _Jv_select.
5040 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5041 (available): Use _Jv_select.
5042 * java/lang/natSystem.cc: Include posix.h.
5043 (currentTimeMillis): Use _Jv_gettimeofday.
5044 * include/posix.h: New file.
5045 * posix.cc: New file.
5047 * scripts/encodings.pl: New file.
5048 * Makefile.in: Rebuilt.
5049 * Makefile.am (convert_source_files): Added IOConverter.java.
5050 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5052 (getDefaultDecodingClass): Canonicalize default encoding name.
5053 (getEncoder): Likewise.
5054 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5056 (getDefaultDecodingClass): Canonicalize default encoding name.
5057 (getDecoder): Likewise.
5058 * gnu/gcj/convert/IOConverter.java: New file.
5060 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5062 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5063 to match C declaration in ffi.h.
5064 * Makefile.am: Add java/awt/Button.java.
5065 * Makefile.in: Rebuilt.
5067 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5069 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5070 cast of the second argument to `ffi_raw_call' changed to match
5073 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5075 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5076 argument to `ffi_raw_call' changed to match prototype.
5078 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5080 * java/awt/Component.java (toString): Implemented.
5081 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5082 dispatchEvent() to dispatch the event.
5083 (removeImpl): Ditto.
5085 2000-07-30 Anthony Green <green@redhat.com>
5087 * java/awt/Component.java: Add treeLock object.
5088 (getTreeLock): Implement.
5089 (isShowing): Implement.
5091 2000-07-30 Tom Tromey <tromey@cygnus.com>
5093 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5095 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5097 * java/awt/Window.java (addNotify): Wrote.
5098 (addWindowListener): Wrote.
5100 (getWarningString): Wrote.
5101 (processEvent): Wrote.
5102 (processWindowEvent): Wrote.
5103 (removeWindowListener): Wrote.
5104 (show): Call validate(), setVisible().
5108 * java/awt/Toolkit.java (createWindow): Declare.
5110 * java/awt/Frame.java (addNotify): Use getToolkit to find
5113 * java/awt/Component.java (invalidate): Wrote.
5115 (getToolkit): Wrote.
5117 * java/awt/Container.java (addContainerListener): Removed
5119 (removeContainerListener): Likewise.
5121 (add(Component)): Use it.
5122 (add(String,Component)): Likewise.
5123 (add(Component,int)): Likewise.
5124 (add(Component,Object)): Likewise.
5125 (add(Component,Object,int)): Likewise.
5127 (getAlignmentX): Wrote.
5128 (getAlignmentY): Wrote.
5129 (getComponentAt): Wrote.
5130 (getMaximumSize): Wrote.
5131 (invalidate): Wrote.
5132 (list(PrintStream,int)): Wrote.
5133 (list(PrintWriter,int)): Wrote.
5134 (getMinimumSize): Wrote.
5135 (getPreferredSize): Wrote.
5136 (printComponents): Wrote.
5137 (processContainerEvent): Look at containerListener, not
5139 (remove): Added event processing and peer destruction.
5140 (removeAll): Use remove.
5141 (removeNotify): Wrote.
5143 (validateTree): Wrote.
5145 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5146 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5147 * java/awt/Container.java (addNotify): Don't create Container
5149 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5151 2000-07-30 Tom Tromey <tromey@cygnus.com>
5153 * java/awt/Container.java (remove(int)): Wrote.
5154 (remove(Component)): Wrote.
5155 (add(Component)): Wrote.
5156 (add(Component,int)): Wrote.
5158 (addNotify): Set our own peer.
5159 * java/awt/Scrollbar.java (listeners): Changed type.
5160 (Scrollbar): Don't initialize listeners.
5162 (setValue): Call setValues.
5163 (setMinimum): Likewise.
5164 (setMaxPriority): Likewise.
5165 (setVisibleAmount): Likewise.
5167 (setUnitIncrement): Forward to peer.
5168 (setLineIncrement): Call setUnitIncrement.
5169 (setPageIncrement): Call setBlockIncrement.
5170 (setBlockIncrement): Forward to peer.
5171 (addAdjustmentListener): Rewrote.
5172 (removeAdjustmentListener): Rewrote.
5173 (processAdjustmentEvent): Rewrote.
5174 (paramString): Wrote.
5175 * Makefile.in: Rebuilt.
5176 * Makefile.am (awt_java_source_files): Added Button.java.
5177 * java/awt/Button.java: New file.
5178 * java/awt/Toolkit.java (createLabel): Declare.
5179 (createButton): Likewise.
5180 (createScrollbar): Likewise.
5181 (createContainer): Likewise.
5182 * java/awt/Label.java (addNotify): Wrote.
5183 (setAlignment): Call setAlignment in the peer.
5184 (setText): Call setText in the peer.
5186 2000-07-28 Warren Levy <warrenl@cygnus.com>
5188 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5189 NotSerializableException with just the class name.
5191 2000-07-26 Andrew Haley <aph@cygnus.com>
5193 * interpret.cc (continue1): Insert missing break into switch.
5195 2000-07-28 Warren Levy <warrenl@cygnus.com>
5197 * java/io/ObjectStreamException.java: Made constructors protected.
5199 2000-07-27 Tom Tromey <tromey@cygnus.com>
5201 * java/io/OutputStreamWriter.java (close): Only flush if not
5204 2000-07-27 Warren Levy <warrenl@cygnus.com>
5206 * mauve-libgcj: Activated serialization tests.
5207 * gcj/field.h (getModifiers): Mask off unknown flags.
5208 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5209 spurious bits don't cause discrepancies.
5210 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5211 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5212 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5213 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5214 * java/lang/Throwable.java (serialVersionUID): New field.
5215 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5216 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5218 * java/lang/reflect/natMethod.cc: Ditto.
5219 * java/security/Key.java (serialVersionUID): Removed field for now.
5220 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5221 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5223 2000-07-22 Tom Tromey <tromey@cygnus.com>
5225 * java/awt/geom/RectangularShape.java (getPathIterator):
5228 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5230 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5231 stub libjava/java/awt/ColorModel.java which was located in the
5233 * libjava/java/awt/image/ComponentColorModel.java: New file.
5234 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5235 * libjava/java/awt/image/DataBuffer.java: New file.
5236 * libjava/java/awt/image/DataBufferByte.java: New file.
5237 * libjava/java/awt/image/DataBufferInt.java: New file.
5238 * libjava/java/awt/image/DataBufferUShort.java: New file.
5239 * libjava/java/awt/image/DirectColorModel.java: New file.
5240 * libjava/java/awt/image/PackedColorModel.java: New file.
5241 * libjava/java/awt/image/Raster.java: New file.
5242 * libjava/java/awt/image/SampleModel.java: New file.
5243 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5245 * libjava/java/awt/image/IndexColorModel.java: New file.
5246 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5247 java.awt.ColorModel stub.
5249 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5250 * gnu/gcj/util/Buffers.java: New file, utility class.
5252 * libjava/Makefile.am: Updated to include new files.
5253 * libjava/Makefile.in: Rebuilt.
5255 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5257 * java/io/StreamTokenizer.java: Merged with classpath.
5259 2000-07-20 Tom Tromey <tromey@cygnus.com>
5261 * Makefile.in: Rebuilt.
5262 * Makefile.am (awt_java_source_files): Updated for new files.
5263 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5264 * java/awt/Label.java: New file.
5265 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5266 (createIntersection, createUnion, getBounds2D): New methods.
5267 * java/awt/Scrollbar.java: New file.
5268 * java/awt/Shape.java: Updated to 1.2.
5269 * java/awt/geom/AffineTransform.java: New file.
5270 * java/awt/geom/Ellipse2D.java: New file.
5271 * java/awt/geom/NoninvertibleTransformException.java: New file.
5272 * java/awt/geom/PathIterator.java: New file.
5273 * java/awt/geom/Rectangle2D.java: New file.
5274 * java/awt/geom/RectangularShape.java: New file.
5275 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5276 * java/awt/geom/IllegalPathStateException.java: New file.
5278 * scripts/showval.java: New file.
5280 * scripts/classes.pl (scan): Print inner classes properly.
5281 * gcj/javaprims.h: Updated class list.
5283 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5284 initialize String fields for interpreted classes. Fixes bug
5285 reported by Hans Boehm.
5287 * java/io/File.java (getParentFile): New method, from Classpath
5288 via Oskar Liljeblad.
5290 * java/util/Vector.java (remove(Object)): Implemented.
5292 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5294 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5295 zero return from backtrace().
5297 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5299 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5301 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5302 before calling notifyAll().
5304 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5306 Add missing files from last check-in:
5307 * java/awt/image/ImageConsumer.java: New file.
5308 * java/awt/image/ImageProducer.java: New file.
5309 * java/awt/image/ImageObserver.java: New file.
5311 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5313 Merged implementation of java.applet from classpath:
5314 * java/applet/Applet.java: New file.
5315 * java/applet/AppletContext.java: New file.
5316 * java/applet/AppletStub.java: New file.
5317 * java/applet/AudioClip.java: New file.
5319 * Makefile.am: Added new java.applet classes.
5320 * Makefile.in: Rebuilt.
5322 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5325 * java/util/ResourceBundle.java (getLocale): stub.
5326 * Makefile.am: Added new AWT classes.
5327 * Makefile.in: Rebuilt.
5328 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5329 constructors. Fix toString() and paramString().
5330 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5331 * java/awt/CheckboxGroup.java: New class.
5332 * java/awt/ColorModel.java: New class.
5333 * java/awt/Component.java: Added stubs for most methods. Implemented
5335 * java/awt/Container.java: ditto.
5336 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5337 * java/awt/Cursor.java: ditto.
5338 * java/awt/Event.java: Fix paramString().
5339 * java/awt/EventQueue.java: New class. Implemented.
5340 * java/awt/Font.java: Added additional stub methods. Implemented
5342 * java/awt/FontMetrics.java: New class. Stubbed.
5343 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5345 * java/awt/Insets.java: New class. Implemented.
5346 * java/awt/Menu.java: Add new methods. Partially implemented.
5347 * java/awt/MenuItem.java: Add new methods and fields. Partially
5349 * java/awt/MenuShortcut.java: New class. Implemented.
5350 * java/awt/Panel.java: New class. Placeholder.
5351 * java/awt/PopupMenu.java: New class. Stubbed.
5352 * java/awt/Rectangle.java: New class. Implemented.
5353 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5354 * java/awt/event/ActionEvent.java: Implement paramString().
5355 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5356 * java/awt/event/ComponentEvent.java: Implement paramString().
5357 * java/awt/event/ContainerEvent.java: Implement paramString().
5358 * java/awt/event/FocusEvent.java: Implement paramString().
5359 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5360 * java/awt/event/HierarchyBoundsListener.java: New class.
5361 * java/awt/event/HierarchyEvent.java: New class.
5362 * java/awt/event/HierarchyListener.java: New class.
5363 * java/awt/event/InputMethodEvent.java: Implement paramString().
5364 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5365 exception if !catchExceptions.
5366 * java/awt/event/ItemEvent.java: Implement paramString().
5367 * java/awt/event/KeyEvent.java: Implement paramString().
5368 * java/awt/event/MouseEvent.java: Implement paramString().
5369 * java/awt/event/PaintEvent.java: Implement paramString().
5370 * java/awt/event/TextEvent.java: Implement paramString().
5371 * java/awt/event/WindowEvent.java: Implement paramString().
5373 AWT Peer interfaces:
5374 * java/awt/peer/ButtonPeer.java: New file.
5375 * java/awt/peer/ListPeer.java: New file.
5376 * java/awt/peer/CanvasPeer.java: New file.
5377 * java/awt/peer/MenuBarPeer.java: New file.
5378 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5379 * java/awt/peer/MenuComponentPeer.java: New file.
5380 * java/awt/peer/CheckboxPeer.java: New file.
5381 * java/awt/peer/MenuItemPeer.java: New file.
5382 * java/awt/peer/ChoicePeer.java: New file.
5383 * java/awt/peer/MenuPeer.java: New file.
5384 * java/awt/peer/ComponentPeer.java: Implemented.
5385 * java/awt/peer/PanelPeer.java: New file.
5386 * java/awt/peer/ContainerPeer.java: Implemented.
5387 * java/awt/peer/PopupMenuPeer.java: New file.
5388 * java/awt/peer/DialogPeer.java: New file.
5389 * java/awt/peer/ScrollPanePeer.java: New file.
5390 * java/awt/peer/FileDialogPeer.java: New file.
5391 * java/awt/peer/ScrollbarPeer.java: New file.
5392 * java/awt/peer/FontPeer.java: New file.
5393 * java/awt/peer/TextAreaPeer.java: New file.
5394 * java/awt/peer/FramePeer.java: Implemented.
5395 * java/awt/peer/TextComponentPeer.java: New file.
5396 * java/awt/peer/LabelPeer.java: New file.
5397 * java/awt/peer/TextFieldPeer.java: New file.
5398 * java/awt/peer/LightweightPeer.java: New file.
5399 * java/awt/peer/WindowPeer.java: Implemented.
5401 2000-07-06 Tom Tromey <tromey@cygnus.com>
5403 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5404 Initialize static final String fields.
5406 2000-07-03 Tom Tromey <tromey@cygnus.com>
5408 * java/io/PrintWriter.java (print): Call write(String), not
5409 print(String). See PR libgcj/277.
5410 (print(String)): Use write, not out.write.
5412 2000-06-30 Tom Tromey <tromey@cygnus.com>
5414 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5416 2000-06-27 Andrew Haley <aph@cygnus.com>
5418 * java/io/File.java (createTempFile): Close the FileDescriptor
5419 used to create a temp file. Fixes some of PR 203.
5420 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5421 collection if we run out of file handles.
5423 2000-06-28 Warren Levy <warrenl@cygnus.com>
5425 * gnu/java/security/provider/Gnu.java: New file.
5426 * gnu/java/security/provider/SHA.java: New file.
5427 * gnu/java/security/provider/SHA1PRNG.java: New file.
5428 * Makefile.am: Added the above files.
5429 * Makefile.in: Rebuilt.
5431 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5433 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5435 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5436 (destroyed_flag): Removed.
5437 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5438 (activeCount): Added spec note.
5440 2000-06-27 Warren Levy <warrenl@cygnus.com>
5442 * java/security/Principal.java: New file.
5443 * Makefile.am: Added Principal.java.
5444 * Makefile.in: Rebuilt.
5446 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5448 * java/awt/event/MouseEvent.java: Fixed coordinate space
5451 2000-06-27 Tom Tromey <tromey@cygnus.com>
5453 * java/io/PushbackInputStream.java (read): If there are characters
5454 in the buffer, don't also call super.read().
5455 * java/io/PushbackReader.java (read): If there are characters in
5456 the buffer, don't also call super.read().
5458 * java/lang/Double.java (valueOf): Call parseDouble().
5460 2000-06-26 Warren Levy <warrenl@cygnus.com>
5462 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5463 (newVal): Renamed to newValue.
5464 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5465 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5466 (revokeNow): Renamed to invalidateRefs.
5467 * java/io/OptionalDataException.java: Updated FIXME.
5468 (eof): New placeholder field.
5470 * java/io/WriteAbortedException.java (message): Made transient.
5471 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5472 * java/lang/Throwable.java (stackTrace): Made transient.
5473 * java/net/InetAddress.java: Made Serializable.
5474 * java/security/KeyPair.java: Made Serializable.
5475 * java/security/Provider.java: Replaced with Classpath version that
5476 implements serialization and proper methods.
5477 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5478 (limits): Renamed to choiceLimits.
5480 2000-06-24 Tom Tromey <tromey@cygnus.com>
5482 * java/lang/natDouble.cc (parseDouble): Renamed from
5484 * java/lang/Double.java (parseDouble): Renamed from
5485 doubleValueOf. Now public.
5487 2000-06-23 Andrew Haley <aph@cygnus.com>
5489 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5490 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5492 2000-06-23 Tom Tromey <tromey@cygnus.com>
5494 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5495 * java/lang/natDouble.cc: Always include <alloca.h>.
5496 Fix for PR libgcj/267.
5498 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5500 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5501 comply with classpath VM spec.
5502 (add(Group)): Rename to addGroup().
5503 * java/lang/Thread.java (Thread): Use addThread().
5504 * java/lang/natThread.cc (finish_): Use removeThread().
5506 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5508 * java/lang/ThreadGroup.java: Merged with classpath.
5509 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5510 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5512 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5513 ThreadGroup.root if Thread.currentThread is null. Honour the
5514 ThreadGroup's max priority setting.
5516 2000-06-18 Tom Tromey <tromey@cygnus.com>
5518 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5519 returned class. For PR gcj/260.
5521 2000-06-16 Tom Tromey <tromey@cygnus.com>
5523 Fix for PR libgcj/261:
5524 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5526 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5527 argument. (This is a patch from long ago that somehow went
5530 2000-06-15 Tom Tromey <tromey@cygnus.com>
5532 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5536 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5538 Fix for PR java.lang/258:
5539 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5540 JV_STATE_DONE, to prevent accidental initialization.
5541 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5542 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5543 interface or an abstract class. Remove redundant initializeClass calls.
5544 Remove duplicate if_idt test.
5545 (_Jv_InterfaceAssignableFrom): New function.
5546 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5548 2000-05-31 Tom Tromey <tromey@cygnus.com>
5550 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5551 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5552 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5553 (NUM_OBJECT_METHODS): New define.
5554 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5555 `array_vtable' parameter. Added assertion.
5556 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5559 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5561 * gcj/cni.h: Include <string.h>.
5562 * defineclass.cc: Include <alloca.h>.
5563 * interpret.cc: Ditto.
5564 * gij.cc: Include <stdlib.h>.
5566 2000-05-30 Tom Tromey <tromey@cygnus.com>
5568 * include/name-finder.h: Include <sys/wait.h>.
5569 (_Jv_name_finder::pid): Now of type `pid_t'.
5570 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5571 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5574 2000-05-24 Warren Levy <warrenl@cygnus.com>
5576 * java/io/ObjectOutputStream.java (writeObject): Use component type
5577 when writing arrays.
5580 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5582 Fix for PR libgcj/226:
5583 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5584 since this is an installed header.
5586 Fix for PR libgcj/228:
5587 * java/util/zip/ZipFile (getInputStream): Create inflater with
5590 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5591 with DataFormatException.
5593 2000-05-20 Tom Tromey <tromey@cygnus.com>
5595 * Makefile.in: Rebuilt.
5596 * Makefile.am (hack1): Removed.
5597 (awto_files): Likewise.
5598 (libgcjawt_la_SOURCES): Likewise.
5599 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5600 (libgcjawt_la_DEPENDENCIES): Likewise.
5601 (libgcjawt_la_LIBADD): Likewise.
5602 (libgcjawt_la_LDFLAGS): Likewise.
5603 (libgcjawt_la_LINK): Likewise.
5604 ($(awt_java_source_files:.java=.class)): Likewise.
5605 (libgcj.zip): Don't depend on AWT files.
5606 (MOSTLYCLEANFILES): Don't include AWT files.
5607 ($(awto_files)): Removed.
5608 (nat_headers): Removed AWT files.
5609 (cond_awt_java_source_files): Removed.
5610 (ordinary_java_source_files): Added awt_java_source_files.
5611 * libgcj.spec.in (*lib): Removed -lgcjawt.
5612 * configure: Rebuilt.
5613 * configure.in: Removed --enable-java-awt option.
5615 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5617 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5618 (ZipEntry): Copy the `name' field.
5619 (clone): Implement JDK1.2 method.
5620 (setCompressedSize): ditto.
5623 2000-05-19 Tom Tromey <tromey@cygnus.com>
5625 * java/io/BufferedWriter.java: Merged with Classpath.
5626 * java/io/BufferedOutputStream.java: Merged with Classpath.
5628 2000-05-16 Andrew Haley <aph@cygnus.com>
5630 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5631 build_ia64_frame_state.
5632 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5635 2000-05-15 Warren Levy <warrenl@cygnus.com>
5637 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5638 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5639 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5640 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5641 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5642 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5643 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5644 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5645 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5646 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5647 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5648 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5649 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5650 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5651 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5652 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5653 * gnu/gcj/io/NullOutputStream.java: Removed.
5654 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5655 * gnu/gcj/lang/ArrayHelper.java: Removed.
5656 * gnu/gcj/lang/ClassHelper.java: Removed.
5657 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5659 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5660 * gnu/java/beans/EmptyBeanInfo.java: New file.
5661 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5662 * gnu/java/beans/IntrospectionIncubator.java: New file.
5663 * gnu/java/beans/editors/ColorEditor.java: New file.
5664 * gnu/java/beans/editors/FontEditor.java: New file.
5665 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5666 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5667 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5668 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5669 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5670 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5671 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5672 * gnu/java/beans/editors/StringEditor.java: New file.
5673 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5674 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5675 * gnu/java/io/NullOutputStream.java: New file.
5676 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5677 * gnu/java/lang/ArrayHelper.java: New file.
5678 * gnu/java/lang/ClassHelper.java: New file.
5679 * gnu/java/lang/reflect/TypeSignature.java: New file.
5681 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5682 namespace back to the original Classpath gnu/java namespace.
5683 * Makefile.in: Rebuilt.
5685 * java/beans/Beans.java: Namespace change.
5686 * java/beans/EventSetDescriptor.java: Namespace change.
5687 * java/beans/Introspector.java: Namespace change.
5688 * java/beans/PropertyEditorManager.java: Namespace change.
5689 * java/io/ObjectInputStream.java: Namespace change.
5690 * java/io/ObjectOutputStream.java: Namespace change.
5691 * java/io/ObjectStreamClass.java: Namespace change.
5692 * java/io/ObjectStreamField.java: Namespace change.
5694 2000-04-21 Warren Levy <warrenl@cygnus.com>
5696 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5697 now that compiler patch is available.
5698 Removed unneeded System.loadLibrary.
5699 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5700 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5702 2000-04-19 Andrew Haley <aph@cygnus.com>
5704 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5705 and target classes have been initialized.
5707 2000-04-19 Andrew Haley <aph@cygnus.com>
5709 * java/lang/String.java: implement Serializable, Comparable.
5710 (compareTo (Object)): New method.
5712 2000-04-19 Warren Levy <warrenl@cygnus.com>
5714 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5715 instead of getField to retrieve non-public field.
5716 (getSerialPersistantFields): Ditto.
5718 2000-04-18 Warren Levy <warrenl@cygnus.com>
5720 * mauve-libgcj: Turned off object serialization tests temporarily
5721 due to compiler error.
5723 2000-04-17 Warren Levy <warrenl@cygnus.com>
5725 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5726 to avoid build problem.
5728 * mauve-libgcj: Turned on object serialization tests.
5730 2000-04-17 Tom Tromey <tromey@cygnus.com>
5732 * libgcj.spec.in (*lib): Added -lgcjawt.
5734 2000-04-17 Andrew Haley <aph@cygnus.com>
5736 * Makefile.am: Add new files:
5737 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5739 * Makefile.in: Rebuilt.
5741 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5742 interface that has no implementations.
5743 Check for an attempt to assign an abstract class to an interface.
5745 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5746 if we fail to find MessageDigest.getInstance ("SHA").
5748 * gnu/gcj/io/SimpleSHSStream.java: New file.
5749 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5750 * gnu/gcj/io/shs.cc: New file.
5751 * gnu/gcj/io/shs.h: new file.
5753 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5756 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5757 punctuation from the classname of an array element.
5759 * gcj/javaprims.h: Add SimpleDigestStream.
5761 2000-04-17 Andrew Haley <aph@cygnus.com>
5763 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5764 to getPrivateField for superclasses.
5766 2000-04-14 Andrew Haley <aph@cygnus.com>
5768 * Makefile.am: Add new files:
5769 java/io/ObjectOutputStream$PutField.h,
5770 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5771 java/io/natObjectOutputStream.cc
5772 * Makefile.in: Rebuilt.
5773 * gcj/Makefile.in: Rebuilt.
5774 * include/Makefile.in: Rebuilt.
5775 * java/lang/Class.h (getPrivateField): New method.
5776 (getPrivateMethod): Ditto.
5777 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5778 and java::io::ObjectStreamClass our friends.
5779 * java/lang/natClass.cc (getPrivateField): New method.
5780 (getPrivateMethod): Ditto.
5781 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5782 * gcj/javaprims.h: Add serialization classes.
5783 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5784 (setByteField): Ditto.
5785 (setCharField): Ditto.
5786 (setDoubleField): Ditto.
5787 (setFloatField): Ditto.
5788 (setIntField): Ditto.
5789 (setLongField): Ditto.
5790 (setShortField): Ditto.
5791 (setObjectField): Ditto.
5792 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5794 (getByteField): Ditto.
5795 (getCharField): Ditto.
5796 (getDoubleField): Ditto.
5797 (getFloatField): Ditto.
5798 (getIntField): Ditto.
5799 (getLongField): Ditto.
5800 (getShortField): Ditto.
5801 (getObjectField): Ditto.
5802 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5804 (getSerialPersistantFields): Ditto.
5805 (getDefinedSUID): Ditto.
5806 * java/io/natObjectOutputStream.cc: New file.
5807 * java/io/natObjectInputStream.cc: New file.
5809 2000-04-13 Warren Levy <warrenl@cygnus.com>
5811 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5812 problems. Revert to previous version to reproduce and when fixed.
5814 2000-04-13 Warren Levy <warrenl@cygnus.com>
5816 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5817 * gnu/gcj/io/NullOutputStream.java: New file.
5818 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5819 * java/io/BlockDataException.java: New file.
5820 * java/io/Externalizable.java: New file.
5821 * java/io/InvalidClassException.java: New file.
5822 * java/io/InvalidObjectException.java: New file.
5823 * java/io/NotActiveException.java: New file.
5824 * java/io/NotSerializableException.java: New file.
5825 * java/io/ObjectInput.java: New file.
5826 * java/io/ObjectInputStream.java: New file.
5827 * java/io/ObjectInputValidation.java: New file.
5828 * java/io/ObjectOutput.java: New file.
5829 * java/io/ObjectOutputStream.java: New file.
5830 * java/io/ObjectStreamClass.java: New file.
5831 * java/io/ObjectStreamConstants.java: New file.
5832 * java/io/ObjectStreamField.java: New file.
5833 * java/io/Replaceable.java: New file.
5834 * java/io/Resolvable.java: New file.
5835 * java/io/SerializablePermission.java: New file.
5836 * java/io/WriteAbortedException.java: New file.
5837 * java/security/BasicPermission.java: New file.
5838 * java/security/DigestOutputStream.java: New file.
5839 * java/security/Guard.java: New file.
5840 * java/security/Permission.java: New file.
5841 * java/security/PermissionCollection.java: New file.
5842 * Makefile.am: Added above files.
5843 * Makefile.in: Rebuilt.
5845 * java/beans/Beans.java (instantiate): Activated serialization code.
5846 * java/lang/SecurityManager.java (checkPermission): New method.
5848 2000-04-12 Warren Levy <warrenl@cygnus.com>
5850 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5851 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5852 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5853 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5854 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5855 * gnu/gcj/beans/editors/FontEditor.java: New file.
5856 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5857 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5858 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5859 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5860 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5861 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5862 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5863 * gnu/gcj/beans/editors/StringEditor.java: New file.
5864 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5865 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5866 * gnu/gcj/lang/ArrayHelper.java: New file.
5867 * gnu/gcj/lang/ClassHelper.java: New file.
5868 * java/beans/BeanDescriptor.java: New file.
5869 * java/beans/BeanInfo.java: New file.
5870 * java/beans/Beans.java: New file.
5871 * java/beans/Customizer.java: New file.
5872 * java/beans/DesignMode.java: New file.
5873 * java/beans/EventSetDescriptor.java: New file.
5874 * java/beans/FeatureDescriptor.java: New file.
5875 * java/beans/IndexedPropertyDescriptor.java: New file.
5876 * java/beans/IntrospectionException.java: New file.
5877 * java/beans/Introspector.java: New file.
5878 * java/beans/MethodDescriptor.java: New file.
5879 * java/beans/ParameterDescriptor.java: New file.
5880 * java/beans/PropertyChangeEvent.java: New file.
5881 * java/beans/PropertyChangeListener.java: New file.
5882 * java/beans/PropertyChangeSupport.java: New file.
5883 * java/beans/PropertyDescriptor.java: New file.
5884 * java/beans/PropertyEditor.java: New file.
5885 * java/beans/PropertyEditorManager.java: New file.
5886 * java/beans/PropertyEditorSupport.java: New file.
5887 * java/beans/PropertyVetoException.java: New file.
5888 * java/beans/SimpleBeanInfo.java: New file.
5889 * java/beans/VetoableChangeListener.java: New file.
5890 * java/beans/VetoableChangeSupport.java: New file.
5891 * java/beans/Visibility.java: New file.
5892 * java/beans/beancontext/BeanContext.java: New file.
5893 * java/beans/beancontext/BeanContextChild.java: New file.
5894 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5895 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5896 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5897 * java/beans/beancontext/BeanContextEvent.java: New file.
5898 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5899 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5900 * java/beans/beancontext/BeanContextProxy.java: New file.
5901 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5903 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5904 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5906 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5907 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5909 * java/beans/beancontext/BeanContextServices.java: New file.
5910 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5911 * java/util/AbstractCollection.java: New file.
5912 * java/util/AbstractList.java: New file.
5913 * java/util/Arrays.java: New file.
5914 * Makefile.am: Added above files.
5915 * Makefile.in: Rebuilt.
5917 2000-04-11 Warren Levy <warrenl@cygnus.com>
5919 * java/awt/AWTError.java: New file.
5920 * java/awt/AWTEvent.java: New file.
5921 * java/awt/AWTException.java: New file.
5922 * java/awt/ActiveEvent.java: New file.
5923 * java/awt/Adjustable.java: New file.
5924 * java/awt/BorderLayout.java: New file.
5925 * java/awt/Color.java: New file.
5926 * java/awt/Component.java: New file.
5927 * java/awt/Container.java: New file.
5928 * java/awt/Dimension.java: New file.
5929 * java/awt/Event.java: New file.
5930 * java/awt/Font.java: New file.
5931 * java/awt/Frame.java: New file.
5932 * java/awt/Graphics.java: New file.
5933 * java/awt/IllegalComponentStateException.java: New file.
5934 * java/awt/Image.java: New file.
5935 * java/awt/ItemSelectable.java: New file.
5936 * java/awt/LayoutManager.java: New file.
5937 * java/awt/LayoutManager2.java: New file.
5938 * java/awt/Menu.java: New file.
5939 * java/awt/MenuBar.java: New file.
5940 * java/awt/MenuComponent.java: New file.
5941 * java/awt/MenuContainer.java: New file.
5942 * java/awt/MenuItem.java: New file.
5943 * java/awt/Paint.java: New file.
5944 * java/awt/PaintContext.java: New file.
5945 * java/awt/Point.java: New file.
5946 * java/awt/Rectangle.java: New file.
5947 * java/awt/Shape.java: New file.
5948 * java/awt/TextArea.java: New file.
5949 * java/awt/TextComponent.java: New file.
5950 * java/awt/Toolkit.java: New file.
5951 * java/awt/Transparency.java: New file.
5952 * java/awt/Window.java: New file.
5953 * java/awt/natToolkit.cc: New file.
5954 * java/awt/event/AWTEventListener.java: New file.
5955 * java/awt/event/ActionEvent.java: New file.
5956 * java/awt/event/ActionListener.java: New file.
5957 * java/awt/event/AdjustmentEvent.java: New file.
5958 * java/awt/event/AdjustmentListener.java: New file.
5959 * java/awt/event/ComponentAdapter.java: New file.
5960 * java/awt/event/ComponentEvent.java: New file.
5961 * java/awt/event/ComponentListener.java: New file.
5962 * java/awt/event/ContainerAdapter.java: New file.
5963 * java/awt/event/ContainerEvent.java: New file.
5964 * java/awt/event/ContainerListener.java: New file.
5965 * java/awt/event/FocusAdapter.java: New file.
5966 * java/awt/event/FocusEvent.java: New file.
5967 * java/awt/event/FocusListener.java: New file.
5968 * java/awt/event/InputEvent.java: New file.
5969 * java/awt/event/InputMethodEvent.java: New file.
5970 * java/awt/event/InputMethodListener.java: New file.
5971 * java/awt/event/InvocationEvent.java: New file.
5972 * java/awt/event/ItemEvent.java: New file.
5973 * java/awt/event/ItemListener.java: New file.
5974 * java/awt/event/KeyAdapter.java: New file.
5975 * java/awt/event/KeyEvent.java: New file.
5976 * java/awt/event/KeyListener.java: New file.
5977 * java/awt/event/MouseAdapter.java: New file.
5978 * java/awt/event/MouseEvent.java: New file.
5979 * java/awt/event/MouseListener.java: New file.
5980 * java/awt/event/MouseMotionAdapter.java: New file.
5981 * java/awt/event/MouseMotionListener.java: New file.
5982 * java/awt/event/PaintEvent.java: New file.
5983 * java/awt/event/TextEvent.java: New file.
5984 * java/awt/event/TextListener.java: New file.
5985 * java/awt/event/WindowAdapter.java: New file.
5986 * java/awt/event/WindowEvent.java: New file.
5987 * java/awt/event/WindowListener.java: New file.
5988 * java/awt/geom/Dimension2D.java: New file.
5989 * java/awt/geom/Point2D.java: New file.
5990 * java/awt/peer/ComponentPeer.java: New file.
5991 * java/awt/peer/ContainerPeer.java: New file.
5992 * java/awt/peer/FramePeer.java: New file.
5993 * java/awt/peer/WindowPeer.java: New file.
5994 * java/util/Collection.java: New file.
5995 * java/util/Comparator.java: New file.
5996 * java/util/Iterator.java: New file.
5997 * java/util/List.java: New file.
5998 * java/util/ListIterator.java: New file.
5999 * Makefile.am: Added above files.
6000 * Makefile.in: Rebuilt.
6002 2000-04-10 Warren Levy <warrenl@cygnus.com>
6004 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6005 * java/lang/FirstThread.java: Ditto.
6006 * java/lang/StringBuffer.java: Ditto.
6007 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6009 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6010 Special case handled in java.math.BigInteger.
6011 * java/math/BigInteger.java (divide): Handle the special case when
6012 dividing by 1 and the high bit of the dividend is set.
6013 (setShiftRight): Handle case when count == 0.
6015 2000-04-05 Andrew Haley <aph@cygnus.com>
6017 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6020 2000-04-05 Andrew Haley <aph@cygnus.com>
6022 * sysdep/ia64.c (rse_address_add): Delete.
6023 (IS_NaT_COLLECTION_ADDR): Delete.
6024 (ia64_backtrace_helper): check for null unwind_info.
6026 * sysdep/ia64-frame.h: add calc_caller_bsp.
6028 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6031 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6032 (_Jv_remI): Likewise.
6033 (_Jv_divJ): Likewise.
6034 (_Jv_remJ): Likewise.
6036 * interpret.cc (continue1): Use divide subroutines to guarantee
6037 correct Java standard behaviour.
6038 Floating-point division should not abort; make it so.
6040 2000-03-29 Tom Tromey <tromey@cygnus.com>
6042 * configure: Rebuilt.
6043 * configure.in: Test against `libgcj_sjlj', not
6044 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6045 to be set even when using sjlj.
6047 2000-03-24 Andrew Haley <aph@cygnus.com>
6049 * Makefile.am: Add file addr2name.awk.
6050 * Makefile.in: Rebuilt.
6051 * addr2name.awk: New file.
6052 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6054 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6057 2000-03-22 Andrew Haley <aph@cygnus.com>
6059 * configure.host: Add -funwind-tables for IA64.
6060 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6061 * Makefile.in: Rebuilt.
6062 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6063 * sysdep/ia64.c: New file.
6064 * sysdep/ia64-frame.h: New file.
6065 * configure.in: Add sysdep/ia64.c for ia64.
6066 * configure: Rebuilt.
6068 2000-03-17 Andrew Haley <aph@cygnus.com>
6070 * java/lang/natString.cc: Remove `register' keyword.
6071 interpret.cc: ditto.
6073 2000-03-16 Andrew Haley <aph@cygnus.com>
6075 * configure.host (ia64): Enable interpreter.
6077 2000-03-14 Hans Boehm <boehm@acm.org>
6079 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6081 2000-03-14 Andrew Haley <aph@cygnus.com>
6083 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6086 2000-03-10 Andrew Haley <aph@cygnus.com>
6088 * java/lang/ieeefp.h: Import latest version from fdlibm.
6090 2000-03-14 Andrew Haley <aph@cygnus.com>
6092 * prims.cc (_Jv_ThrowSignal): New function.
6093 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6095 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6096 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6097 * include/ppc-signal.h: New file.
6099 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6101 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6102 * java/lang/natThread.java (initialize_native): Cast `data' to
6104 * gnu/gcj/RawData.java: Clarify documentation.
6106 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6107 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6108 `jarFile', not `jarFileURL'.
6110 2000-05-15 Andrew Haley <aph@cygnus.com>
6112 * include/ppc-signal.h: New file.
6114 2000-05-11 Tom Tromey <tromey@cygnus.com>
6116 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6117 file headers, don't include `size' in the skip call.
6119 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6121 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6122 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6124 (replace): Reimplemented. Fix javadoc.
6125 (reverse): Call ensureCapacity_unsynchronized().
6126 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6128 (replace): Calculate length for arraycopy() correctly.
6130 2000-05-09 Tom Tromey <tromey@cygnus.com>
6132 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6134 (insert(int,char[],int,int): New method.
6135 (delete): New method from Classpath.
6136 (deleteCharAt): Likewise.
6137 (substring): Likewise.
6138 (shared): No longer private.
6139 Added JavaDoc comments from Classpath.
6140 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6143 2000-05-07 Tom Tromey <tromey@cygnus.com>
6145 * Makefile.in: Rebuilt.
6146 * Makefile.am (LIBLINK): New macro.
6147 (libgcj_la_LINK): Use it.
6148 (libgcjawt_la_LINK): Likewise.
6150 2000-05-06 Tom Tromey <tromey@cygnus.com>
6152 * Makefile.in: Rebuilt.
6153 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6155 2000-05-05 Tom Tromey <tromey@cygnus.com>
6157 Fix for PR libgcj/220:
6158 * Makefile.in: Rebuilt.
6159 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6160 (jv_convert_LDFLAGS): Likewise.
6161 (libgcj_la_LDFLAGS): Likewise.
6162 (GCJLINK): New macro.
6163 (jv_convert_LINK): Use it.
6164 (gij_LINK): Likewise.
6165 (libgcj_la_LINK): New macro.
6166 (libgcjawt_la_LINK): Likewise.
6168 2000-05-04 Tom Tromey <tromey@cygnus.com>
6170 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6172 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6176 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6178 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6179 (_Jv_IsAssignableFrom): Ditto.
6180 (_Jv_IsInstanceOf): Ditto.
6181 (_Jv_CheckCast): Ditto.
6182 (_Jv_CheckArrayStore): Ditto.
6183 * java/lang/Class.h (_Jv_InitClass): Ditto.
6184 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6189 (_Jv_MonitorExit): Ditto.
6190 * boehm.cc (_Jv_MarkObj): Ditto.
6191 (_Jv_MarkObj): Ditto.
6192 (_Jv_MarkArray): Ditto.
6193 * prims.cc (_Jv_AllocObject): Ditto.
6194 (_Jv_NewObjectArray): Ditto.
6195 (_Jv_NewPrimArray): Ditto.
6196 (_Jv_Malloc): Ditto.
6197 (_Jv_Realloc): Ditto.
6198 (_Jv_MallocUnchecked): Ditto.
6204 2000-05-04 Tom Tromey <tromey@cygnus.com>
6206 * java/util/Locale.java (Locale): Don't explicitly check for
6208 * java/util/Hashtable.java (containsKey): Don't explicitly check
6211 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6213 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6215 * java/text/StringCharacterIterator.java
6216 (StringCharacterIterator): Don't check for null.
6217 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6219 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6220 check for null pointer.
6221 (leaveGroup): Likewise.
6222 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6224 (setData): Likewise.
6225 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6228 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6230 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6231 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6232 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6233 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6234 -rpath for in-gcc builds.
6235 * Makefile.in: Rebuilt.
6237 2000-04-28 Tom Tromey <tromey@cygnus.com>
6239 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6242 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6244 * libjava/java/lang/String.java (toString): Remove `final' hack.
6246 2000-04-05 Tom Tromey <tromey@cygnus.com>
6248 Runtime support for PR gcj/2:
6249 * prims.cc (_Jv_ThrowNullPointerException): New function.
6250 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6252 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6254 * prims.cc (_Jv_NewObjectArray): Fix typo.
6256 2000-04-26 Tom Tromey <tromey@cygnus.com>
6258 * Makefile.in: Rebuilt.
6259 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6261 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6263 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6266 2000-04-22 Anthony Green <green@cygnus.com>
6268 * include/jvm.h (__builtin_expect): Define as unused for now.
6269 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6273 (_Jv_MonitorExit): Ditto.
6274 * boehm.cc (_Jv_MarkObj): Ditto.
6275 (_Jv_MarkObj): Ditto.
6276 (_Jv_MarkArray): Ditto.
6277 (_Jv_AllocBytes): Ditto.
6278 * prims.cc (_Jv_AllocObject): Ditto.
6279 (_Jv_NewObjectArray): Ditto.
6280 (_Jv_NewPrimArray): Ditto.
6281 (_Jv_Malloc): Ditto.
6282 (_Jv_Realloc): Ditto.
6283 (_Jv_MallocUnchecked): Ditto.
6289 * include/Makefile.in: Rebuilt.
6290 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6292 2000-04-21 Tom Tromey <tromey@cygnus.com>
6294 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6295 Yet another new version from Classpath.
6297 Fix for PR libgcj/15:
6298 * java/util/natGregorianCalendar.cc (_REENTRANT,
6299 _POSIX_PTHREAD_SEMANTICS): Don't define.
6300 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6301 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6303 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6305 * configure: Rebuilt.
6306 * configure.in: If using POSIX threads, define _REENTRANT if
6307 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6308 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6310 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6311 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6312 version from Classpath.
6314 Fix for PR libgcj/213:
6315 * Makefile.in: Rebuilt.
6316 * Makefile.am (gij_SOURCES): Added gij.cc.
6317 (EXTRA_gij_SOURCES): Removed.
6318 (gij_LDADD): Removed gij.lo.
6319 (gij_DEPENDENCIES): Likewise.
6320 ($(gij_OBJECTS)): Depend on nat_headers.
6322 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6323 `setURL', not `url.set'.
6325 2000-04-20 Tom Tromey <tromey@cygnus.com>
6327 Fix for PR java.io/204:
6328 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6329 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6332 Fix for PR libgcj/212:
6333 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6334 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6335 * java/lang/Class.h (_Jv_word): Declare.
6337 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6339 2000-04-19 Tom Tromey <tromey@cygnus.com>
6341 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6342 doesn't have a loader.
6344 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6346 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6347 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6349 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6351 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6353 (available): Initialize `where' to prevent bogus compiler warning.
6355 2000-04-12 Tom Tromey <tromey@cygnus.com>
6357 * java/lang/natString.cc (intern): Temporarily disable finalizer
6360 * java/lang/natString.cc (unintern): Added `obj' argument.
6361 (intern): Register finalizer for string.
6362 * java/lang/String.java (unintern): Now static; added obj
6365 2000-04-11 Tom Tromey <tromey@cygnus.com>
6367 * java/util/Vector.java (VectorEnumeration): Now `final'.
6368 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6369 (HashtableEnumeration): Likewise.
6370 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6371 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6373 2000-04-10 Warren Levy <warrenl@cygnus.com>
6375 * java/io/ObjectStreamException.java: New file.
6376 * java/io/OptionalDataException.java: New file.
6377 * java/io/StreamCorruptedException.java: New file.
6378 * java/math/BigDecimal.java: New file.
6379 * java/sql/CallableStatement.java: New file.
6380 * java/sql/Connection.java: New file.
6381 * java/sql/DataTruncation.java: New file.
6382 * java/sql/DatabaseMetaData.java: New file.
6383 * java/sql/Date.java: New file.
6384 * java/sql/Driver.java: New file.
6385 * java/sql/DriverManager.java: New file.
6386 * java/sql/DriverPropertyInfo.java: New file.
6387 * java/sql/PreparedStatement.java: New file.
6388 * java/sql/ResultSet.java: New file.
6389 * java/sql/ResultSetMetaData.java: New file.
6390 * java/sql/SQLException.java: New file.
6391 * java/sql/SQLWarning.java: New file.
6392 * java/sql/Statement.java: New file.
6393 * java/sql/Time.java: New file.
6394 * java/sql/Timestamp.java: New file.
6395 * java/sql/Types.java: New file.
6396 * Makefile.am: Added above new files.
6397 * Makefile.in: Rebuilt.
6399 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6400 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6401 DatagramSocket constructor instead of null.
6403 2000-04-08 Anthony Green <green@cygnus.com>
6405 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6408 2000-04-08 Anthony Green <green@cygnus.com>
6410 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6411 (_Jv_MutexUnlock): Ditto.
6412 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6413 (_Jv_MutexUnlock): Ditto.
6415 2000-04-08 Anthony Green <green@cygnus.com>
6417 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6418 (ensureCapacity_unsynchronized): New private method.
6419 (append): Use ensureCapacity_unsynchronized.
6421 2000-04-08 Tom Tromey <tromey@cygnus.com>
6423 * Makefile.in: Rebuilt.
6424 * Makefile.am (awt_java_source_files): Added new files.
6425 * java/awt/IllegalComponentStateException.java: New file.
6426 * java/awt/ItemSelectable.java: New file.
6427 * java/awt/event/WindowEvent.java: Finished.
6428 * java/awt/event/TextEvent.java: Finished.
6429 * java/awt/event/ContainerEvent.java: New file.
6430 * java/awt/Component.java (getX, getY): New methods.
6431 * java/awt/event/PaintEvent.java: New file.
6432 * java/awt/event/MouseEvent.java: New file.
6433 * java/awt/ActiveEvent.java: New file.
6434 * java/awt/event/KeyEvent.java: Finished.
6435 * java/awt/event/ItemEvent.java: New file.
6436 * java/awt/Adjustable.java: New file.
6437 * java/awt/event/InputMethodEvent.java: New file.
6438 * java/awt/event/InputEvent.java: Finished.
6439 * java/awt/event/FocusEvent.java: New file.
6440 * java/awt/event/MouseMotionAdapter.java: New file.
6441 * java/awt/event/MouseAdapter.java: New file.
6442 * java/awt/event/KeyAdapter.java: New file.
6443 * java/awt/event/FocusAdapter.java: New file.
6444 * java/awt/event/ContainerAdapter.java: New file.
6445 * java/awt/event/ComponentEvent.java: Finished.
6446 * java/awt/event/AdjustmentEvent.java: New file.
6447 * java/awt/event/ComponentAdapter.java: New file.
6448 * java/awt/event/ActionEvent.java: Finished.
6449 * java/awt/event/MouseMotionListener.java: New file.
6450 * java/awt/event/MouseListener.java: New file.
6451 * java/awt/event/ItemListener.java: New file.
6452 * java/awt/event/InputMethodListener.java: New file.
6453 * java/awt/event/ContainerListener.java: New file.
6454 * java/awt/event/FocusListener.java: New file.
6455 * java/awt/event/ComponentListener.java: New file.
6456 * java/awt/event/AWTEventListener.java: New file.
6457 * java/awt/event/AdjustmentListener.java: New file.
6459 2000-04-08 Anthony Green <green@cygnus.com>
6461 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6462 check when we have to.
6464 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6467 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6470 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6471 inline hasMoreElements.
6473 2000-04-05 Tom Tromey <tromey@cygnus.com>
6475 * configure: Rebuilt.
6476 * configure.in: Recognize --enable-java-awt.
6477 (AWT): New conditional.
6478 * Makefile.in: Rebuilt.
6479 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6481 (libgcjawt_la_SOURCES): New macro.
6482 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6483 (libgcjawt_la_DEPENDENCIES): Likewise.
6484 (libgcjawt_la_LIBADD): Likewise.
6485 (libgcjawt_la_LDFLAGS): Likewise.
6486 (libgcj.zip): Depend on cond_java_awt_source_files
6487 (cond_awt_java_source_files): New macro.
6488 (MOSTLYCLEANFILES): Added awto_files.
6489 (awto_files): New macro. Use where javao_files used.
6490 (nat_headers): Use cond_awt_java_source_files.
6492 2000-04-04 Tom Tromey <tromey@cygnus.com>
6494 * Makefile.in: Rebuilt.
6495 * Makefile.am (awt_java_source_files): Added AWTException.java.
6496 * java/awt/AWTException.java: New file.
6498 2000-04-03 Tom Tromey <tromey@cygnus.com>
6500 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6501 commentary from Alex.
6503 * Makefile.in: Rebuilt.
6504 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6507 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6509 * configure: Rebuilt.
6510 * configure.in: Add --disable-jvmpi.
6511 * include/config.h.in: Rebuilt.
6512 * acconfig.h: Add ENABLE_JVMPI.
6514 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6515 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6516 (_Jv_JVMPI_Notify_THREAD_END): New define.
6517 (_Jv_JVMPI_Notify_THREAD_END): New define.
6518 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6519 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6520 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6522 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6525 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6526 (finish_): Generate JVMPI thread end events.
6527 (run_): Generate JVMPI thread start events.
6528 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6529 preloaded JNI library.
6530 Include JVMPI headers if necessary.
6531 (run): Generate JVMPI thread start events.
6533 * boehm.cc: Define GC_disable and GC_enable.
6534 (_Jv_DisableGC): New function.
6535 (_Jv_EnableGC): New function.
6536 (disable_gc_mutex): Declare.
6537 * nogc.cc (_Jv_DisableGC): New function.
6538 (_Jv_EnableGC): New function.
6540 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6541 (_Jv_JVMPI_Interface): Define.
6542 (jvmpiEnableEvent): New function.
6543 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6545 * include/jvmpi.h: New file.
6547 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6549 * Makefile.in: New #defines and friends for Thread.h.
6550 * Makefile.am: Ditto.
6551 * posix-threads.cc: (struct starter): Remove `object'.
6552 (_Jv_CondWait): Use interruptable condition variables and new
6553 recursive mutexes. New return codes on interrupt or non-ownership
6555 (_Jv_CondNotify): Ditto.
6556 (_Jv_CondNotifyAll): Ditto.
6557 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6558 the target thread by signaling its wait condition.
6559 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6560 not the starter struct. Initialize wait_mutex and wait_cond.
6561 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6563 (_Jv_MutexUnlock): Ditto.
6564 (really_start): Set info->data->thread from pthread_self() to work
6565 around a race condition. Destroy wait_mutex and wait_cond when run()
6567 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6568 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6570 startable_flag: New private field.
6571 (Thread): Initialize `startable_flag'.
6572 (toString): Check for null thread group.
6573 * java/lang/natThread.cc: (struct natThread): New fields
6574 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6575 (class locker): Removed.
6576 (initialize_native): Initialize `join_cond' and `join_mutex'.
6577 (interrupt): Now just calls _Jv_ThreadInterrupt().
6578 (join): Simplified. Just wait on the target thread's join condition.
6579 (finish_): Remove join list code. Unset thread group. Signal
6580 potential joiners by notifying the dying threads join_cond.
6581 (start): Check for illegal restarts.
6582 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6584 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6585 #defines and #ifdefs.
6586 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6587 `wait_mutex', `next'.
6588 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6589 directly mapping to pthread_cond_t.
6590 (struct _Jv_Mutex_t): New recursive implementation.
6591 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6592 _Jv_HaveCondDestroy: Never define this for posix-threads.
6593 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6594 (_Jv_CondNotifyAll): Ditto.
6595 (_Jv_MutexLock): Ditto.
6596 (_Jv_MutexUnlock): Ditto.
6597 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6598 (_Jv_MutexDestroy): Ditto.
6599 (_Jv_CondDestroy): Removed.
6600 (_Jv_PthreadGetMutex): Removed.
6601 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6602 error. Add a FIXME about this.
6603 (_Jv_CondNotifyAll): Ditto.
6604 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6605 _JV_NOT_OWNER on other errors. Add FIXME.
6607 2000-03-26 Tom Tromey <tromey@cygnus.com>
6609 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6611 (call): Don't throw exception here.
6613 2000-03-26 Tom Tromey <tromey@cygnus.com>
6615 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6616 * interpret.cc: Use SIZEOF_VOID_P.
6617 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6618 (_Jv_loadLong): Likewise.
6619 (_Jv_storeDouble): Likewise.
6620 * configure: Rebuilt.
6621 * configure.in: Check size of void*.
6623 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6625 2000-03-26 Hans Boehm <boehm@acm.org>
6627 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6628 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6630 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6631 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6632 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6633 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6635 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6636 (FFI_RAW_SIZE): Likewise.
6637 (_Jv_InterpMethod::ncode): Use them.
6638 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6639 STORED): Define differently on a 64 bit machine.
6640 (continue1): Use ffi_java_raw_call when appropriate.
6642 2000-03-24 Warren Levy <warrenl@cygnus.com>
6644 * java/math/BigInteger.java(divide): Handle the special case when
6645 dividing by 1 and the high bit of the dividend is set.
6646 (setShiftRight): Handle case when count == 0.
6648 2000-03-24 Warren Levy <warrenl@cygnus.com>
6650 * java/awt/Font.java(isBold): Fix syntax error.
6652 * java/awt/Frame.java(postEvent): ditto.
6653 * java/awt/Menu.java(postEvent): ditto.
6654 * java/awt/MenuBar.java(postEvent): ditto.
6655 * java/awt/Toolkit.java(init): Included a stub.
6657 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6659 * java/awt/Event.java: Add all the event type constants.
6660 (Event): Implemented constructors.
6661 (controlDown): Implemented.
6662 (metaDown): Implemented.
6663 (paramString): Stubbed.
6664 (shiftDown): Implemented.
6665 (toString): Implemented.
6666 (translate): Implemented.
6668 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6670 * java/lang/natClass.cc (isInstance): Initialize `this'.
6671 (isAssignableFrom): Initialize `this' and `klass'.
6672 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6673 implemented by any loaded class, so return false.
6674 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6675 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6677 2000-03-19 Warren Levy <warrenl@cygnus.com>
6679 * java/awt/Color.java: Specified java.io for Serializable.
6680 * java/awt/Toolkit.java: Imported java.net.URL.
6682 2000-03-19 Warren Levy <warrenl@cygnus.com>
6684 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6686 2000-03-16 Warren Levy <warrenl@cygnus.com>
6688 * java/awt/Color.java: New file.
6689 * java/awt/Graphics.java: New file.
6690 * java/awt/Image.java: New file.
6691 * java/awt/Paint.java: New file.
6692 * java/awt/PaintContext.java: New file.
6693 * java/awt/Transparency.java: New file.
6694 * java/util/Collection.java: New file.
6695 * java/util/Comparator.java: New file.
6696 * java/util/Iterator.java: New file.
6697 * java/util/List.java: New file.
6698 * java/util/ListIterator.java: New file.
6699 * Makefile.am: Added above new files.
6700 * Makefile.in: Rebuilt.
6702 * java/awt/Font.java (PLAIN): New field.
6704 (ITALIC): New field.
6705 (ROMAN_BASELINE): New field.
6706 (CENTER_BASELINE): New field.
6707 (HANGING_BASELINE): New field.
6711 (pointSize): New field.
6712 (Font): Implemented constructor.
6713 (isPlain): Implemented method.
6714 (isBold): Implemented method.
6715 (isItalic): Implemented method.
6716 (getName): Implemented method.
6717 (getStyle): Implemented method.
6718 (getSize): Implemented method.
6719 (getSize2D): Implemented method.
6721 * java/awt/Frame.java (getFont): Stubbed.
6722 (postEvent): Stubbed.
6724 * java/awt/Menu.java (postEvent): Stubbed.
6725 * java/awt/MenuBar.java (getFont): Stubbed.
6726 (postEvent): Stubbed.
6727 * java/awt/Toolkit.java (getImage): Added abstract method.
6729 2000-03-15 Tom Tromey <tromey@cygnus.com>
6731 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6733 * prims.cc (win32_exception_handler): Reformatted.
6735 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6736 (_Jv_HaveMutexDestroy): Likewise.
6738 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6740 * java/io/natFileDescriptorWin32.cc: New file.
6741 * java/io/natFileWin32.cc: New file.
6742 * java/net/natInetAddress.cc: Added conditional inclusion of
6743 Windows / Winsock headers.
6744 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6745 inclusion of Windows / Winsock headers.
6746 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6747 Windows / Winsock headers.
6748 * include/win32-signal.h: New file.
6749 * include/win32-threads.h: New file.
6750 * win32-threads.cc: New file.
6751 * exception.cc (win32_get_restart_frame): New function.
6752 * prims.cc (win32_exception_handler): New function.
6753 (main_init) Performs Winsock initialisation.
6754 (main_init) Installs exeception handler.
6756 2000-03-14 Tom Tromey <tromey@cygnus.com>
6758 * jni.cc (mangled_name): Fixed assertion.
6759 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6760 turned assert into actual failure.
6762 2000-03-09 Warren Levy <warrenl@cygnus.com>
6764 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6765 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6766 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6768 2000-03-09 Warren Levy <warrenl@cygnus.com>
6770 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6771 * java/security/DigestException.java: New file.
6772 * java/security/GeneralSecurityException.java: New file.
6773 * java/security/InvalidAlgorithmParameterException.java: New file.
6774 * java/security/InvalidKeyException.java: New file.
6775 * java/security/InvalidParameterException.java: New file.
6776 * java/security/Key.java: New file.
6777 * java/security/KeyException.java: New file.
6778 * java/security/KeyPair.java: New file.
6779 * java/security/KeyPairGenerator.java: New file.
6780 * java/security/KeyPairGeneratorSpi.java: New file.
6781 * java/security/NoSuchProviderException.java: New file.
6782 * java/security/PrivateKey.java: New file.
6783 * java/security/Provider.java: New file.
6784 * java/security/PublicKey.java: New file.
6785 * java/security/SecureRandom.java: New file.
6786 * java/security/Security.java: New file.
6787 * java/security/Signature.java: New file.
6788 * java/security/SignatureException.java: New file.
6789 * java/security/interfaces/DSAKey.java: New file.
6790 * java/security/interfaces/DSAParams.java: New file.
6791 * java/security/interfaces/DSAPrivateKey.java: New file.
6792 * java/security/interfaces/DSAPublicKey.java: New file.
6793 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6794 * java/security/interfaces/RSAPrivateKey.java: New file.
6795 * java/security/interfaces/RSAPublicKey.java: New file.
6796 * java/security/spec/AlgorithmParameterSpec.java: New file.
6797 * java/security/spec/InvalidKeySpecException.java: New file.
6798 * java/security/spec/InvalidParameterSpecException.java: New file.
6799 * java/security/spec/KeySpec.java: New file.
6800 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6801 * java/security/spec/RSAPrivateKeySpec.java: New file.
6802 * java/security/spec/RSAPublicKeySpec.java: New file.
6803 * Makefile.am: Added above java.security files.
6804 * Makefile.in: Rebuilt.
6806 * java/security/MessageDigest.java: Rewritten.
6807 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6809 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6813 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6815 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6816 _Jv_PrepareConstantTimeTables.
6817 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6818 classes should have an IDT, so don't return if klass is an array
6821 2000-03-08 Tom Tromey <tromey@cygnus.com>
6823 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6824 of `void' to be created.
6826 2000-03-08 Warren Levy <warrenl@cygnus.com>
6828 * java/math/BigInteger.java(signum): Handle zero properly.
6830 2000-03-07 Tom Tromey <tromey@cygnus.com>
6832 * All files: Updated copyright information.
6833 * COPYING: New file.
6834 * COPYING.LIB: Removed.
6835 * LIBGCJ_LICENSE: We now use GPL + special exception.
6837 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6839 * resolve.cc (_Jv_SearchMethodInClass): New function.
6840 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6841 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6843 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6845 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6846 (struct _Jv_ifaces): New declaration.
6847 JV_CLASS: New macro definition.
6848 (getComponentType): Relocate below isArray() for inlining.
6849 (getModifiers): Declare `inline'.
6850 (getSuperclass): Ditto.
6852 (isPrimitive): Ditto.
6853 (_Jv_IsAssignableFrom): New prototype.
6854 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6856 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6857 Check for JV_STATE_DONE before invoking initializeClass().
6858 (_Jv_PrepareConstantTimeTables): New prototype.
6859 (_Jv_GetInterfaces): Ditto.
6860 (_Jv_GenerateITable): Ditto.
6861 (_Jv_GetMethodString): Ditto.
6862 (_Jv_AppendPartialITable): Ditto.
6863 (_Jv_FindIIndex): Ditto.
6864 depth, ancestors, idt: New class fields.
6866 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6867 inline function `_Jv_IsAssignableFrom'. Use that function.
6868 (isInstance): Declare `inline'.
6869 (initializeClass): Get lock on class before checking `state'. Unlock
6870 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6872 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6873 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6874 class->depth and ancestor table.
6875 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6876 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6877 _Jv_IsAssignableFrom.
6878 (_Jv_CheckArrayStore): Ditto.
6879 (_Jv_LookupInterfaceMethodIdx): New function.
6880 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6881 (_Jv_PrepareConstantTimeTables): New function.
6882 (_Jv_IndexOf): Ditto.
6883 (_Jv_GetInterfaces): Ditto.
6884 (_Jv_GenerateITable): Ditto.
6885 (_Jv_GetMethodString): Ditto.
6886 (_Jv_AppendPartialITable): Ditto.
6887 iindex_mutex, iindex_mutex_initialized: New static fields.
6888 (_Jv_FindIIndex): New function.
6890 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6892 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6893 (_Jv_CheckArrayStore): Ditto.
6894 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6895 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6896 Moved to gcj/array.h.
6897 (_Jv_Realloc): New function.
6899 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6901 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6902 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6903 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6904 JvNewDoubleArray): Implementations moved from prims.cc and
6907 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6909 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6911 2000-03-06 Tom Tromey <tromey@cygnus.com>
6913 * jni.cc (MARK_NONE): New define.
6914 (MARK_USER): Likewise.
6915 (MARK_SYSTEM): Likewise.
6916 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6918 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6919 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6920 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6921 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6923 (call): Use MARK_SYSTEM.
6924 (_Jv_GetJNIEnvNewFrame): New function.
6925 (_Jv_LookupJNIMethod): New function.
6926 (_Jv_JNI_PopSystemFrame): New function.
6927 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6929 2000-03-05 Tom Tromey <tromey@cygnus.com>
6931 Fix for PR libgcj/43:
6932 * include/Makefile.in: Rebuilt.
6933 * include/Makefile.am (include_HEADERS): New define.
6935 2000-03-05 Anthony Green <green@redhat.com>
6937 * gcj/javaprims.h ("Java"): Remove FirstThread.
6939 * configure.host: Fix __NO_MATH_INLNES botch.
6941 * Makefile.in: Rebuilt.
6942 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6943 (gnu/gcj/runtime/FirstThread.h): Moved.
6944 (ordinary_java_source_files): Move FirstThread.java.
6945 * prims.cc: Deal with FirstThread movement.
6947 (_Jv_RunMain): Ditto.
6949 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6950 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6952 2000-03-05 Warren Levy <warrenl@cygnus.com>
6954 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6955 Handle null addresses.
6957 2000-03-04 Anthony Green <green@redhat.com>
6959 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6962 2000-03-04 Anthony Green <green@redhat.com>
6964 * configure: Rebuilt.
6965 * configure.in (ZLIBTESTSPEC): New macro.
6966 (GCTESTSPEC): New macro.
6967 (LIBGCJTESTSPEC): New macro.
6968 * libgcj-test.spec.in: New file.
6970 2000-03-02 Tom Tromey <tromey@cygnus.com>
6972 * include/java-interp.h: Don't include MethodInvocation.h.
6973 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6974 * Makefile.in: Rebuilt.
6975 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6976 (ordinary_java_source_files): Don't mention
6977 MethodInvocation.java.
6978 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6979 * interpret.cc (MethodInvocation::continue1): Removed.
6980 (run): Handle exceptions here.
6981 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6983 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6985 (defineClass2): Removed.
6987 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6989 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6991 (hack_call): Removed.
6993 * java/lang/Class.h (Class): Removed hackRunInitializers,
6995 * java/lang/natClass.cc (hackRunInitializers): Removed.
6996 (initializeClass): Catch exceptions here.
6997 Include ExceptionInInitializerError.h.
6998 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7001 * java/lang/Object.h (Object): Don't mention hack12_6.
7002 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7004 * java/lang/Object.java (hack12_6): Removed.
7006 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7007 (start): Use run_, not run__.
7008 * java/lang/Thread.java (run_): Renamed from run__; old run_
7011 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7012 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7013 (_Jv_JNI_DefineClass): Likewise.
7014 (_Jv_JNI_ThrowNew): Likewise.
7015 (_Jv_JNI_AllocObject): Likewise.
7016 (_Jv_JNI_GetAnyMethodID): Likewise.
7017 (_Jv_JNI_CallAnyMethodV): Likewise.
7018 (_Jv_JNI_CallAnyMethodA): Likewise.
7019 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7020 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7021 (_Jv_JNI_GetAnyFieldID): Likewise.
7022 (_Jv_JNI_NewString): Likewise.
7023 (_Jv_JNI_NewStringUTF): Likewise.
7024 (_Jv_JNI_GetStringUTFChars): Likewise.
7025 (_Jv_JNI_NewObjectArray): Likewise.
7026 (_Jv_JNI_NewPrimitiveArray): Likewise.
7027 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7028 (_Jv_JNI_GetStringRegion): Likewise.
7029 (_Jv_JNI_GetStringUTFRegion): Likewise.
7030 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7031 (_Jv_JNI_MonitorEnter): Likewise.
7032 (_Jv_JNI_MonitorExit): Likewise.
7033 (_Jv_JNI_ToReflectedField): Likewise.
7034 (_Jv_JNI_ToReflectedMethod): Likewise.
7035 (_Jv_JNI_RegisterNatives): Likewise.
7036 (_Jv_JNI_AttachCurrentThread): Likewise.
7037 (_Jv_JNI_DestroyJavaVM): Likewise.
7039 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7041 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7042 error caused by the incorrect casting of a long to an int.
7044 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7046 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7047 SIGSEV caused by use of the wrong instance variable.
7049 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7051 * java/io/File.java (File(String, String)): For dirPath, treat an
7052 empty String the same as `null'.
7054 2000-02-26 Anthony Green <green@cygnus.com>
7056 * gnu/gcj/io/MimeTypes.java: Test for null.
7058 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7059 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7061 * java/net/URLConnection.java: Update copyright notice.
7063 2000-02-25 Tom Tromey <tromey@cygnus.com>
7065 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7068 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7070 * java/net/URLConnection.java (initializeDateFormats): New
7072 (getHeaderFieldDate): Call initializeDateFormats if required.
7073 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7075 Fix for PR libgcj/38.
7077 2000-02-24 Warren Levy <warrenl@cygnus.com>
7079 * java/math/BigInteger.java(ival): Made private.
7083 2000-02-20 Anthony Green <green@cygnus.com>
7085 * Makefile.in: Rebuilt.
7086 * Makefile.am (ordinary_java_source_files): Add
7087 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7089 * scripts/MakeDefaultMimeTypes.java: New file.
7090 * scripts/mime.types: New file.
7091 * scripts/classes.pl: Moved from top level.
7092 * classes.pl: Moved to scripts directory.
7094 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7096 * gnu/gcj/io/MimeTypes.java: New file.
7097 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7099 2000-02-20 Tom Tromey <tromey@cygnus.com>
7101 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7103 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7105 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7108 2000-02-18 Tom Tromey <tromey@cygnus.com>
7110 * include/jvm.h (_Jv_GetJavaVM): Declare.
7111 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7112 (_Jv_MethodBase::get_method): New method.
7113 (_Jv_JNIMethod::set_function): New method.
7114 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7115 (_Jv_JNI_RegisterNatives): New function.
7116 (_Jv_JNIFunctions): Updated for new functions.
7117 (_Jv_GetJavaVM): New function.
7118 (_Jv_JNI_GetJavaVM): Use it. Now static.
7119 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7120 is already a Java thread but does not have a JNIEnv yet.
7122 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7125 2000-02-17 Tom Tromey <tromey@cygnus.com>
7127 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7130 2000-02-16 Tom Tromey <tromey@cygnus.com>
7132 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7134 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7135 (_Jv_JNI_NewObject): Likewise.
7136 (_Jv_JNI_NewObjectA): Likewise.
7137 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7138 as "return" type to _Jv_CallAnyMethodA.
7139 (_Jv_JNI_CallAnyMethodA): Likewise.
7140 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7142 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7145 2000-02-15 Tom Tromey <tromey@cygnus.com>
7147 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7149 (init_cif): Added `rtype_p' argument.
7150 * include/java-interp.h (class _Jv_MethodBase): Added
7152 (class _Jv_InterpMethod): Removed args_raw_size.
7153 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7154 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7155 class pointer as well as the ordinary arguments.
7157 * jni.cc (mangled_name): Skip leading `(' in signature.
7159 * jni.cc (add_char): Added missing `else'.
7161 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7164 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7168 * java/lang/natRuntime.cc (_load): Include library path with
7171 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7174 * java/lang/natThread.cc (dumpStack): Removed.
7175 * java/lang/Thread.java (dumpStack): Implemented.
7177 2000-02-15 Tom Tromey <tromey@cygnus.com>
7179 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7180 with `lib' for loadLibrary. Fixes PR gcj/150.
7182 2000-02-14 Warren Levy <warrenl@cygnus.com>
7184 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7186 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7190 (modPow): Rewritten to not use the naive, slow, brute force approach.
7191 (isProbablePrime): Implemented.
7192 (testBit): Implemented.
7193 (flipBit): Implemented.
7194 (getLowestSetBit): Implemented.
7196 2000-02-16 Anthony Green <green@redhat.com>
7198 * configure.host: Use the same options for i386 and i486 as we do
7201 2000-02-12 Tom Tromey <tromey@cygnus.com>
7203 * java/io/File.java (createTempFile): Use low bits from counter,
7206 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7208 * THANKS: More thanks.
7210 2000-02-11 Tom Tromey <tromey@cygnus.com>
7212 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7213 astore instruction. From Hans Boehm.
7215 2000-02-11 Warren Levy <warrenl@cygnus.com>
7217 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7218 (BigInteger(String)): New constructor.
7219 (not): Rewritten using version from Kawa's BitOps class.
7220 (valueOf): New private methods from Kawa's BitOps class.
7227 (andNot): Implemented.
7228 (clearBit): Implemented.
7229 (setBit): Implemented.
7230 (bitCount): Implemented.
7231 (toByteArray): Implemented.
7233 2000-02-11 Tom Tromey <tromey@cygnus.com>
7235 * java/io/File.java (nextValue): Now synchronized.
7237 2000-02-10 Tom Tromey <tromey@cygnus.com>
7239 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7240 * java/io/FileDescriptor.java (EXCL): New static field.
7241 * java/io/File.java (tmpdir): New static field.
7242 (createTempFile): New method.
7243 (nextValue): New method.
7244 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7247 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7248 (jboolean): Declare as an attributed int, not a bool.
7249 (_Jv_func): Declare differently for C.
7251 * gnu/gcj/jni/natNativeThread.cc: New file.
7252 * gnu/gcj/jni/NativeThread.java: New file.
7253 * java/lang/Thread.java (data): Now a RawData.
7254 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7256 * Makefile.in: Rebuilt.
7257 * Makefile.am (java/lang/Thread.h): New target.
7258 (ordinary_java_source_files): Added NativeThread.java.
7259 (nat_source_files): Added natNativeThread.cc.
7260 * java/lang/natThread.cc: Include <jni.h>
7261 (struct natThread): Added `jni_env' field.
7262 (_Jv_GetCurrentJNIEnv): New function.
7263 (_Jv_SetCurrentJNIEnv): Likewise.
7264 (initialize_native): Initialize jni_env.
7266 * jni.cc (ThreadGroupClass): New define.
7267 (_Jv_JNI_InvokeFunctions): New structure.
7268 (JNI_GetCreatedJavaVMs): New function.
7269 (the_vm): New global.
7270 (JNI_GetDefaultJavaVMInitArgs): New function.
7271 Include NativeThread.h.
7272 (NativeThreadClass): New define.
7273 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7274 (_Jv_JNI_DestroyJavaVM): New function.
7275 (_Jv_JNI_AttachCurrentThread): New function.
7276 (_Jv_JNI_DetachCurrentThread): New function.
7277 (_Jv_JNI_GetEnv): New function.
7278 (JNI_CreateJavaVM): New function.
7279 (_Jv_JNI_GetJavaVM): New function.
7280 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7281 * include/jni.h (JavaVMAttachArgs): New structure.
7282 (JNI_EDETACHED): New define.
7283 (JNI_EVERSION): Likewise.
7284 (JavaVM): Define properly.
7285 (struct JNIInvokeInterface): New structure.
7286 (class _Jv_JavaVM): New class.
7287 (JNI_OnLoad, JNI_OnUnload): Declare.
7288 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7289 JNI_GetCreatedJavaVMs): Declare.
7290 (JavaVMInitArgs): New typedef.
7291 (JavaVMOption): Likewise.
7292 (JNI_ERR): New define.
7295 2000-02-10 Andrew Haley <aph@cygnus.com>
7297 * interpret.cc: Don't include fdlibm.h.
7298 Replace #if with #ifdef throughout.
7299 Declare extern __ieee754_fmod.
7300 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7302 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7303 Search class hierarchy for superclass vtable.
7305 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7306 off the end of a pointer list.
7308 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7312 2000-02-09 Tom Tromey <tromey@cygnus.com>
7314 * java/lang/natRuntime.cc (_load): Call add_library.
7315 (loadLibraryInternal): Likewise.
7317 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7318 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7319 (Output_iconv::finalize): Likewise.
7321 2000-02-08 Tom Tromey <tromey@cygnus.com>
7323 * java/util/Properties.java (setProperty): New method.
7324 (store): New method.
7326 2000-02-07 Tom Tromey <tromey@cygnus.com>
7328 * java/lang/Runtime.java (_load): Declare.
7329 (load, loadLibrary): Wrote in terms of _load.
7330 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7332 (loadLibrary): Likewise.
7334 (_load): New method.
7335 (loadLibrary, load): Removed.
7337 * jni.cc (ThrowableClass): New define.
7338 (_Jv_JNI_Throw): Check argument.
7339 (_Jv_JNI_ThrowNew): Likewise.
7340 (wrap_value): Don't wrap object if it is NULL.
7341 (_Jv_JNI_DefineClass): Use wrap_value.
7342 (_Jv_JNI_FindClass): Likewise.
7343 (_Jv_JNI_GetSuperclass): Likewise.
7344 (_Jv_JNI_ExceptionOccurred): Likewise.
7345 (_Jv_JNI_AllocObject): Likewise.
7346 (_Jv_JNI_GetObjectClass): Likewise.
7347 (_Jv_JNI_NewString): Likewise.
7348 (_Jv_JNI_NewStringUTF): Likewise.
7349 (_Jv_JNI_NewObjectArray): Likewise.
7350 (_Jv_JNI_GetObjectArrayElement): Likewise.
7351 (_Jv_JNI_NewPrimitiveArray): Likewise.
7352 (_Jv_JNI_ToReflectedField): Likewise.
7353 (_Jv_JNI_ToReflectedMethod): Likewise.
7354 (_Jv_JNI_AllocObject): Check argument.
7355 (_Jv_JNI_NewObjectV): Likewise.
7356 (_Jv_JNI_NewObject): Likewise.
7357 (_Jv_JNI_NewObjectA): Likewise.
7358 (_Jv_JNI_GetObjectClass): Likewise.
7359 (_Jv_JNI_GetField): Likewise.
7360 (_Jv_JNI_SetField): Likewise.
7362 * interpret.cc (PUSHL): Don't use expression statement.
7367 * jni.cc (add_char): Conditional on INTERPRETER.
7368 (mangled_name): Likewise.
7370 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7372 (class _Jv_JNIMethod): Likewise.
7374 2000-02-04 Warren Levy <warrenl@cygnus.com>
7376 * Makefile.am: Added MPN.java and BigInteger.java.
7377 * Makefile.in: Rebuilt.
7378 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7380 * java/math/BigInteger.java: New file. Based primarily on
7381 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7383 2000-02-04 Tom Tromey <tromey@cygnus.com>
7385 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7387 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7388 if the method is native.
7389 * resolve.cc (ncode): Don't handle native methods.
7390 (_Jv_JNIMethod::ncode): New method.
7391 (_Jv_PrepareClass): Handle native methods.
7392 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7393 Include AbstractMethodError.h.
7394 (add_char): New function.
7395 (mangled_name): Likewise.
7396 * include/java-interp.h (class _Jv_JNIMethod): New class.
7397 (class _Jv_MethodBase): New class.
7398 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7399 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7402 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7403 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7404 libraries): New globals.
7405 (add_library): New function.
7406 (_Jv_FindSymbolInExecutable): New function.
7408 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7411 2000-02-04 Andrew Haley <aph@cygnus.com>
7413 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7414 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7415 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7416 printStackTrace to printRawStackTrace.
7418 2000-02-03 Tom Tromey <tromey@cygnus.com>
7420 * java/util/Calendar.java (toString): New method.
7421 * java/util/SimpleTimeZone.java (clone): New method.
7422 (toString): New method.
7423 * java/util/TimeZone.java (clone): New method.
7424 * java/text/SimpleDateFormat.java (clone): New method.
7425 * java/text/NumberFormat.java (clone): New method.
7426 (equals): New method.
7427 * java/text/Format.java (clone): New method.
7428 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7430 (clone): New method.
7431 * java/text/DateFormat.java (clone): New method.
7432 * java/text/Collator.java (clone): New method.
7434 2000-02-03 Tom Tromey <tromey@cygnus.com>
7436 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7439 2000-02-01 Tom Tromey <tromey@cygnus.com>
7441 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7442 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7443 constructing the closure if the function is native.
7444 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7445 a template function, #if'd out, or static.
7446 Include <java-interp.h>.
7448 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7450 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7452 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7453 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7455 (wrap_value): New function.
7456 (_Jv_JNI_CallAnyMethodV): Use it.
7457 (_Jv_JNI_CallAnyMethodA): Likewise.
7458 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7459 (_Jv_JNI_GetStaticField): Likewise.
7461 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7462 (_Jv_JNI_GetStaticField): Likewise.
7464 2000-01-31 Tom Tromey <tromey@cygnus.com>
7466 * prims.cc (_Jv_MallocUnchecked): New function.
7467 (main_init): Call _Jv_JNI_Init.
7468 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7469 (_Jv_JNI_Init): Declare.
7470 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7472 (_Jv_JNI_NewGlobalRef): New function.
7473 (_Jv_JNI_DeleteGlobalRef): New function.
7474 (_Jv_JNI_DeleteLocalRef): New function.
7475 (_Jv_JNI_conversion_call): Initialize and clear local reference
7477 (_Jv_JNI_NewLocalRef): New function.
7478 (struct _Jv_JNI_LocalFrame): New structure.
7479 (_Jv_JNI_PushLocalFrame): New function.
7480 (_Jv_JNI_EnsureLocalCapacity): New function.
7481 (FRAME_SIZE): New define.
7482 (_Jv_JNI_GetStringChars): Mark string, not characters.
7483 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7484 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7485 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7487 (_Jv_JNI_DefineClass): Make return value a local ref.
7488 (_Jv_JNI_FindClass): Likewise.
7489 (_Jv_JNI_GetSuperclass): Likewise.
7490 (_Jv_JNI_ExceptionOccurred): Likewise.
7491 (_Jv_JNI_AllocObject): Likewise.
7492 (_Jv_JNI_GetObjectClass): Likewise.
7493 (_Jv_JNI_CallAnyMethodV): Likewise.
7494 (_Jv_JNI_NewString): Likewise.
7495 (_Jv_JNI_NewStringUTF): Likewise.
7496 (_Jv_JNI_NewObjectArray): Likewise.
7497 (_Jv_JNI_GetObjectArrayElement): Likewise.
7498 (_Jv_JNI_ToReflectedField): Likewise.
7499 (_Jv_JNI_ToReflectedMethod): Likewise.
7500 (_Jv_JNIFunctions): Updated table for new functions.
7501 (_Jv_JNI_Init): New function.
7502 (mark_for_gc): Wrote.
7503 (unmark_for_gc): Wrote.
7504 * include/jni.h (struct JNINativeInterface): Removed name from
7505 PopLocalFrame parameter.
7506 (class _Jv_JNIEnv): Added `locals' field.
7508 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7510 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7513 2000-01-30 Tom Tromey <tromey@cygnus.com>
7515 * include/config.h.in: Rebuilt.
7516 * acconfig.h (HAVE_ICONV): Define.
7517 * configure: Rebuilt.
7518 * configure.in: Check for `iconv' function.
7519 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7520 no specific encoder exists.
7521 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7522 no specific encoder exists.
7523 * Makefile.in: Rebuilt.
7524 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7526 (nat_source_files): Added natIconv.cc.
7527 * gnu/gcj/convert/natIconv.cc: New file.
7528 * gnu/gcj/convert/Input_iconv.java: New file.
7529 * gnu/gcj/convert/Output_iconv.java: New file.
7531 2000-01-28 Tom Tromey <tromey@cygnus.com>
7533 * Makefile.in: Rebuilt.
7534 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7536 2000-01-26 Tom Tromey <tromey@cygnus.com>
7538 * gcj/method.h (JvNumMethods): Moved from Class.h.
7539 (JvGetFirstMethod): Likewise.
7540 * java/lang/Class.h (Object): Updated decl of
7541 _Jv_JNI_ToReflectedField.
7542 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7543 * Makefile.in: Rebuilt.
7544 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7545 argument of _Jv_JNI_ToReflectedField.
7546 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7548 (java/lang/reflect/Method.h): Likewise.
7549 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7551 (jweak): New typedef.
7552 (struct JNINativeInterface): Correctly declare remaining entries.
7553 * jni.cc: Include Class.h, ClassLoader.h.
7554 (_Jv_JNI_FindClass): New function.
7555 (_Jv_JNI_DefineClass): New function.
7556 (_Jv_JNI_conversion_call): New function.
7557 (_Jv_JNI_FindClass): Use current class loader to find class.
7558 (_Jv_JNI_ExceptionCheck): New function.
7559 (_Jv_JNI_FromReflectedField): Now static.
7560 (MethodClass): New define.
7561 (_Jv_JNI_FromReflectedMethod): New function.
7562 (_Jv_JNI_ToReflectedMethod): Likewise.
7564 (_Jv_JNI_IsAssignableFrom): Renamed.
7565 (_Jv_JNI_GetStringRegion): New function.
7566 Include StringIndexOutOfBoundsException.h.
7567 (_Jv_JNI_GetStringUTFRegion): New function.
7568 (_Jv_JNIFunctions): Updated for new functions.
7569 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7570 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7571 (_Jv_JNI_GetStringCritical): New function.
7572 (_Jv_JNI_ReleaseStringCritical): Likewise.
7573 (get_throwable): Removed.
7574 (GCJ_JV_JNIENV_FRIEND): Removed.
7575 (__GCJ_JNI_IMPL__): Define.
7578 * resolve.cc (get_ffi_type_from_signature): Handle case where
7581 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7583 * interpret.cc (run): Don't call println.
7584 Don't include PrintStream.h.
7586 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7587 nameIndex. Use "jint" as type for boffset.
7588 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7590 (Class): Likewise. Also changed type of method_count,
7591 vtable_method_count, size_in_bytes, field_count,
7592 static_field_count, interface_count.
7593 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7596 2000-01-21 Tom Tromey <tromey@cygnus.com>
7598 * java/lang/reflect/natConstructor.cc (newInstance): Use
7600 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7601 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7602 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7605 (invoke): Use _Jv_CallAnyMethodA.
7607 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7608 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7610 (struct _Jv_Method): Added getNextMethod method.
7611 (JvNumMethods): New function.
7612 (JvGetFirstMethod): Likewise.
7613 * gcj/field.h (JvGetFirstStaticField): New function.
7614 (JvNumStaticFields): Likewise.
7615 (getNextField): Renamed from getNextInstanceField.
7616 (struct _Jv_Field): New method getClass.
7617 * jni.cc: Wrote many new functions.
7618 * include/jni.h (JNI_TRUE): Define.
7619 (JNI_FALSE): Likewise.
7620 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7621 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7622 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7623 (jfieldID, jmethodID): Likewise.
7624 (JNI_COMMIT, JNI_ABORT): New defines.
7625 (JNINativeMethod): New struct.
7626 (struct JNINativeInterface): Correctly declared more entries.
7627 (class _Jv_JNIEnv): Added `ex' member.
7628 (JNI_VERSION_1_1): New define.
7629 (JNI_VERSION_1_2): Likewise.
7631 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7632 getNextInstanceField.
7634 2000-01-20 Tom Tromey <tromey@cygnus.com>
7636 * resolve.cc (StringClass): Removed.
7637 * defineclass.cc (StringClass): Removed.
7639 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7643 2000-01-19 Tom Tromey <tromey@cygnus.com>
7645 * interpret.cc (PC_REGISTER_ASM): Removed.
7647 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7648 From Bryce McKinlay.
7650 * All files: Updated copyright to reflect Cygnus purchase.
7652 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7654 * configure: Rebuilt.
7655 * configure.in: Recognize --disable-interpreter.
7657 2000-01-18 Andrew Haley <aph@cygnus.com>
7659 * name-finder.cc (lookup): Check for dladdr function.
7660 acconfig.h (HAVE_DLADDR): Add.
7661 configure.in: Check for HAVE_DLADDR
7663 include/config.h.in: Rebuilt.
7665 2000-01-17 Andrew Haley <aph@cygnus.com>
7667 * prims.cc (_Jv_RunMain): Set the name of this executable.
7669 2000-01-17 Tom Tromey <tromey@cygnus.com>
7671 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7672 when backtrace can't be computed.
7674 * configure: Rebuilt.
7675 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7677 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7678 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7679 (_Jv_FindClassInCache): Likewise.
7680 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7681 (findSystemClass): Try to load class from compiled module.
7683 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7684 (loadLibrary): Likewise.
7685 (lt_preloaded_symbols): Define.
7686 (loadLibraryInternal): New method.
7687 * include/config.h.in: Rebuilt.
7688 * acconfig.h (USE_LTDL): Added.
7689 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7690 (INCLUDES): Added $(INCLTDL).
7691 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7692 (libgcj_la_LIBADD): Likewise.
7693 * aclocal.m4, configure: Rebuilt.
7694 * configure.in: Added libltdl support.
7696 2000-01-15 Tom Tromey <tromey@cygnus.com>
7698 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7700 2000-01-14 Andrew Haley <aph@cygnus.com>
7702 * java/lang/natThrowable.cc: New file.
7704 * java/lang/Throwable.java (fillInStackTrace): Make native.
7705 (printStackTrace): Call native method to do this.
7706 (Throwable): Call fillInStackTrace.
7707 (stackTrace): New variable.
7709 * include/jvm.h: Add _Jv_ThisExecutable functions.
7711 * prims.cc: (_Jv_execName): New variable.
7712 (catch_segv): Call fillInStackTrace.
7714 (_Jv_ThisExecutable): New functions.
7715 (JvRunMain): Set the name of this executable.
7717 * Makefile.am: Add java/lang/natThrowable.cc.
7719 * Makefile.in: Rebuilt.
7721 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7723 * configure.in: Force link with __frame_state_for in
7724 FORCELIBGCCSPEC. Add new checks for backtrace.
7725 * include/config.h.in: Rebuilt.
7727 * name-finder.cc: New file.
7728 * include/name-finder.h: New file.
7730 2000-01-16 Anthony Green <green@cygnus.com>
7732 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7735 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7737 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7739 2000-01-13 Tom Tromey <tromey@cygnus.com>
7741 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7742 not system loader, as initiating loader.
7744 2000-01-11 Tom Tromey <tromey@cygnus.com>
7746 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7747 HP/UX. From David Scott Urban.
7749 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7751 * java/lang/natMath.cc (pow): Cast args to `double', not
7754 (IEEEremainder): Likewise.
7755 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7756 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7758 2000-01-09 Anthony Green <green@cygnus.com>
7760 * java/lang/natString.cc (init): Test for overflow condition
7761 during out of bounds check.
7762 (getChars): Throw StringIndexOutOfBoundsException, not
7763 ArrayIndexOutOfBoundsException.
7765 (regionMatches): Obey case option during string comparison.
7767 * configure.host (ligcj_interpreter): New variable. Enable
7768 interpreter by default on IA-32.
7769 * configure.in: Examine libgcj_interpreter.
7770 * configure: Rebuilt.
7772 2000-01-07 Tom Tromey <tromey@cygnus.com>
7774 * mauve-libgcj: Don't disable ClassTest.
7776 * java/lang/natClass.cc (getClasses): Wrote.
7778 2000-01-06 Tom Tromey <tromey@cygnus.com>
7780 * java/lang/natClass.cc (_getConstructors): Correctly check
7781 whether method name is the init name.
7782 (getMethod): Look at accflags on method in `klass', not `this'.
7784 2000-01-05 Tom Tromey <tromey@cygnus.com>
7786 * java/lang/natClass.cc (getMethod): Compute offset relative to
7787 `klass's methods table, not `this's table.
7789 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7790 In unwrapping/widening case, check whether `k' is null, not
7791 whether it is primitive. Initialize `num' from `argelts', not
7792 `paramelts'. Correct create and pass arguments to ffi_call.
7793 Don't let presence of `this' argument affect index used to look in
7795 (COPY): Set appropriate element in `values' vector.
7797 * java/lang/natClass.cc: Include <gcj/method.h>.
7799 * java/lang/Class.h (_getMethods): Correctly declare as private,
7802 * java/lang/Class.h (_getMethods): Declare.
7803 * java/lang/Class.java (_getMethods): Declare.
7804 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7805 (getDeclaredClasses): Always return empty array.
7806 (_getMethods): New method.
7807 (getMethods): Wrote.
7808 (getDeclaredMethod): Return `rmethod'.
7809 (finit_name): New global.
7810 (getDeclaredMethods): Check for finit_name.
7811 (_getMethods): Likewise.
7812 (getMethod): Only return public methods.
7814 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7815 jboolean and select correct ffi type on that basis.
7816 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7817 Constructor call always has `void' return type.
7819 2000-01-04 Tom Tromey <tromey@cygnus.com>
7821 * java/lang/Class.h (getSignature): Updated.
7822 * java/lang/Class.java (getSignature): Updated.
7823 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7825 (getConstructor): Ensure constructor is public.
7826 (_getConstructors): Check for public-ness of constructor when
7827 `declared' is false, not when it is true.
7829 2000-01-04 Warren Levy <warrenl@cygnus.com>
7831 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7833 (receive): Set the sender's address in the DatagramPacket.
7835 2000-01-04 Tom Tromey <tromey@cygnus.com>
7837 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7838 declaring class as return_type argument to
7839 _Jv_CallNonvirtualMethodA.
7840 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7841 constructor case, create object and use it as `this' argument.
7842 * java/lang/Class.h (_getConstructors): Declare.
7843 (_getFields): Declare.
7844 * java/lang/Class.java (getConstructors): Wrote.
7845 (_getConstructors): New native method.
7846 (getDeclaredConstructors): Wrote.
7847 (_getFields): Declare new native method.
7848 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7850 (getMethod): Work correctly when class is primitive.
7851 (getDeclaredMethods): Likewise. Compute offset using `method',
7853 (getDeclaredMethod): Likewise.
7854 (getConstructor): Wrote.
7855 (ConstructorClass): New define.
7856 (getDeclaredConstructor): Wrote.
7857 (_getConstructors): New method.
7858 (_getFields): New method.
7861 * Makefile.in: Rebuilt.
7862 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7864 * prims.cc: Remove `#pragma implementation'.
7865 * gcj/array.h: Remove `#pragma interface'.
7867 * prims.cc (_Jv_equaln): New function.
7868 * java/lang/Class.java (getSignature): Declare.
7869 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7870 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7872 (getSignature): New method.
7873 (getDeclaredMethod): Wrote.
7875 Include StringBuffer.h.
7876 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7877 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7879 (getSignature): Declare.
7880 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7881 (_Jv_equaln): Declare.
7882 (_Jv_CallNonvirtualMethodA): Declare.
7883 * Makefile.in: Rebuilt.
7884 * Makefile.am (nat_source_files): Added natConstructor.cc.
7885 (java/lang/reflect/Constructor.h): New target.
7886 * java/lang/reflect/natConstructor.cc: New file.
7887 * java/lang/reflect/Constructor.java (newInstance): Now native.
7888 (declaringClass): Renamed from decl_class.
7889 (offset): Renamed from index.
7890 (getType): New native method.
7891 (getModifiers): Now native.
7892 (getParameterTypes): Call getType if required.
7893 (hashCode): Include hash code from declaring class.
7894 (modifiers): Removed.
7895 (toString): Call getType if required.
7896 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7897 * java/lang/reflect/natMethod.cc (hack_call): New method.
7898 Removed `#if 0' around FFI code.
7899 Include <gnu/gcj/RawData.h>.
7900 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7901 IllegalArgumentException when argument object and class disagree.
7902 (_Jv_GetTypesFromSignature): New function.
7904 (ObjectClass): New define.
7905 (_Jv_CallNonvirtualMethodA): New function.
7906 * java/lang/reflect/Method.java (hack_trampoline): New method.
7907 (hack_call): New native method.