1 2001-10-03 Mark Wielaard <mark@klomp.org>
3 * java/io/SequenceInputStream.java: Merge with Classpath
4 * java/io/StringBufferInputStream.java: Ditto
5 * java/util/Collections.java: Remerge with Classpath
7 2001-10-03 Tom Tromey <tromey@redhat.com>
9 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
12 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
16 2001-10-02 Mark Wielaard <mark@klomp.org>
18 * Makefile.am (core_java_source_files): add InheritableThreadLocal
19 * Makefile.in: regenerate
20 * gcj/javaprims.h: ditto
21 * java/lang/InheritableThreadLocal.java: new class from Classpath
22 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
23 call InheritableThreadLocal.newChildThread()
25 2001-10-01 Mark Wielaard <mark@klomp.org>
27 * Makefile.am: Add new classes
28 (core_java_source_files): CharSequence
29 (ordinary_java_source_files): Authenticator, PasswordAuthentication
30 * Makefile.in: regenerate
31 * gcj/javaprims.h: ditto
32 * java/lang/CharSequence: new class from Classpath
33 * java/lang/String.java: implements CharSequence
34 (subSequence (int,int)): new method
35 * java/lang/SubString.java: implements CharSequence
36 (subSequence (int,int)): new method
37 remerge comments with Classpath
38 * java/net/Authenticator.java: new class from Classpath
39 * java/net/PasswordAuthentication.java: ditto
41 2001-10-01 Tom Tromey <tromey@redhat.com>
43 * gcj/javaprims.h: Rebuilt class list.
44 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
45 (_Jv_GCCanReclaimSoftReference): New function.
46 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
47 (_Jv_GCCanReclaimSoftReference): Declare.
48 * java/lang/ref/Reference.java (referent): Now a RawData.
49 (create): Renamed from `created'. Added object argument.
50 (Reference): Don't initialize `referent' here.
51 * Makefile.in: Rebuilt.
52 * Makefile.am (nat_source_files): Added new file.
53 * java/lang/ref/natReference.cc: New file.
55 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
56 (_Jv_NewMultiArray): Use it. Check each array dimension.
57 (_Jv_NewMultiArray): Likewise.
58 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
60 * java/lang/reflect/natArray.cc (newInstance): Throw
61 IllegalArgumentException if there are no dimensions.
63 2001-10-01 Mark Wielaard <mark@klomp.org>
65 * java/io/FileWriter.java: Merge with Classpath.
66 * java/io/FilterInputStream.java: Ditto.
67 (mark): no longer synchronized
69 * java/io/FilterOutputStream.java: Merge with Classpath.
70 * java/io/FilterReader.java: Ditto.
71 (mark): no longer synchronized
73 * java/io/FilterWriter.java: Merge with Classpath.
74 * java/io/Writer.java: Ditto.
75 * java/lang/Compiler.java: Ditto.
76 * java/lang/Process.java: Ditto.
77 * java/lang/Void.java: Ditto.
78 * java/net/ContentHandler.java: Ditto.
79 * java/net/DatagramPacket.java: Ditto.
80 * java/net/MulticastSocket.java: Merge comments with Classpath.
82 2001-09-30 Mark Wielaard <mark@klomp.org>
84 * java/io/DataInput.java: Merge with Classpath.
85 * java/io/DataOutput.java: Idem.
86 * java/io/FilenameFilter.java: Idem.
87 * java/io/Serializable.java: Idem.
88 * java/lang/Cloneable.java: Idem.
89 * java/lang/Comparable.java: Idem.
90 * java/lang/Runnable.java: Idem.
91 * java/lang/reflect/Member.java: Idem.
92 * java/net/ContentHandlerFactory.java: Idem.
93 * java/net/FileNameMap.java: Idem.
94 * java/net/SocketImplFactory.java: Idem.
95 * java/net/SocketOptions.java: Idem.
96 * java/net/URLStreamHandlerFactory.java: Idem.
98 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
100 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
101 an uninitialized target class.
103 * gnu/gcj/protocol/file/Connection.java (connect): Throw
104 FileNotFoundException if appropriate.
105 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
106 IOException if we got a file: url with a hostname. Comment out protocol
107 switch to ftp for now.
108 * java/net/URL.java (URL): Include protocol name in exception message
109 when handler can't be found.
111 2001-09-28 Per Bothner <per@bothner.com>
113 * gnu/gcj/runtime/SharedLibLoader.java: New class.
114 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
115 * Makefile.am: Update accordingly.
116 * configure.in: Add AC_CHECK_LIB for dlopen.
117 * include/config.h.in: Add HAVE_DLOPEN.
119 2001-09-29 Jeff Sturm <jsturm@one-point.com>
121 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
122 * Makefile.in: Rebuilt.
124 2001-09-27 Tom Tromey <tromey@redhat.com>
126 * java/util/IdentityHashMap.java (containsKey): Use getHash.
130 (getHash): New method.
131 (tombstone, emptyslot): Now static final.
132 (put): Correctly determine when to rehash, and correctly rehash.
133 (containsKey, remove): Test against table length with `>='.
135 2001-09-26 Tom Tromey <tromey@redhat.com>
137 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
139 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
140 Re-merged with Classpath.
142 * java/io/DataInputStream.java (readChar): Use readFully.
144 (readLong): Likewise.
145 (readShort): Likewise.
146 (readUnsignedShort): Likewise.
148 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
150 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
151 IllegalThreadStateException if process hasn't exited yet.
152 * java/lang/natPosixProcess.cc (exitValue): Removed.
153 (waitFor): Only check thread interrupted status if waitpid() returned
154 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
157 * java/security/cert/X509Extension.java: Merge from classpath.
159 2001-09-22 Anthony Green <green@redhat.com>
161 * java/security/DummyKeyPairGenerator.java (initialize): New
162 method (with AlgorithmParameterSpec argument).
164 2001-09-22 Anthony Green <green@redhat.com>
166 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
168 * gnu/java/security/provider/SHA1PRNG.java: Extend from
170 (engineNextBytes): Fix order of memory copies.
172 2001-09-21 Richard Henderson <rth@redhat.com>
174 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
175 add get_method, set_method, vtable_elt_size, new_vtable.
176 (_Jv_ArrayVTable): Derive from _Jv_VTable.
177 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
178 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
179 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
181 2001-09-21 Richard Henderson <rth@redhat.com>
183 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
184 * java/lang/mprec.c (lo0bits): Fix paren typo.
186 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
188 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
189 blocking IO via pthread_kill().
190 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
191 interrupted status flag only if ::write returned an error.
192 (write (jbyteArray, jint, jint): Likewise.
193 (read (jint)): Likewise.
194 (read (jbyteArray, jint, jint): Likewise.
196 2001-09-19 Anthony Green <green@redhat.com>
198 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
201 2001-09-17 Andreas Jaeger <aj@suse.de>
203 * jni.cc (array_from_valist): Use promoted types for va_arg.
205 2001-09-16 Anthony Green <green@redhat.com>
207 * gnu/java/locale/LocaleInformation.java: Extend
208 LocaleInformation_en_US, not LocaleInformation_en.
210 2001-09-16 Anthony Green <green@redhat.com>
212 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
214 2001-09-14 Tom Tromey <tromey@redhat.com>
216 * java/util/TimeZone.java: Updated list of timezones from
219 * java/lang/CloneNotSupportedException.java: Re-merged with
222 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
224 * java/io/File.java (normalizePath): Use equals() not '==' for string
227 * java/util/Hashtable.java (Enumerator): Ensure that if
228 hasMoreElements() returns true, nextElement() will always return
229 something even if the table has been modified.
231 2001-09-12 Tom Tromey <tromey@redhat.com>
233 * Makefile.in: Rebuilt.
234 * Makefile.am (class-check): New target.
236 2001-09-11 Tom Tromey <tromey@redhat.com>
238 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
240 2001-09-10 Tom Tromey <tromey@redhat.com>
242 * java/util/Properties.java (load): Correctly read \u sequences.
243 Report from Anthony Green.
245 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
247 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
248 and $(MULTIBUILDTOP).
249 * configure: Re-generate.
251 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
253 * include/jvm.h (_Jv_AllocRawObj): New prototype.
254 * boehm.cc (_Jv_AllocRawObj): Implement.
255 * nogc.cc (_Jv_AllocRawObj): Likewise.
256 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
258 2001-09-06 Anthony Green <green@redhat.com>
260 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
261 redundant method calls.
262 (emptyLocale): New private member.
263 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
266 2001-09-06 Tom Tromey <tromey@redhat.com>
268 * java/text/RuleBasedCollator.java (clone): Rewrote.
269 (RuleBasedCollator(RuleBasedCollator)): Removed.
270 * java/text/MessageFormat.java: Re-merged from Classpath.
271 * java/text/DecimalFormat.java: Re-merged from Classpath.
273 2001-09-06 Anthony Green <green@redhat.com>
275 * include/jvm.h: Declare _Jv_RegisterResource.
276 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
277 gnu/gcj/protocol/core/Connection.java,
278 gnu/gcj/protocol/core/Handler.java,
279 gnu/gcj/protocol/core/CoreInputStream.java,
280 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
281 * java/net/URL.java (setURLStreamHandler): Use
282 gnu.gcj.protocol.core.Handler for the core protocol.
283 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
284 end of java.class.path.
285 * Makefile.am (ordinary_java_source_files): Add new java files.
286 (nat_source_files): Add new native code files.
287 * Makefile.in: Rebuilt.
289 2001-09-05 Tom Tromey <tromey@redhat.com>
291 * java/util/Properties.java: Re-merged from Classpath.
293 From Eric Blake, via Classpath:
294 * java/lang/String.java (CaseInsensitiveComparator): New class.
295 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
297 * java/util/Date.java: Re-merged with Classpath.
299 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
301 2001-09-05 Corey Minyard <minyard@acm.org>
302 Tom Tromey <tromey@redhat.com>
304 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
305 (_Jv_RegisterClassHookDefault): Throw error if a class is
308 2001-09-05 Tom Tromey <tromey@redhat.com>
310 * java/lang/natSystem.cc (init_properties): Default locale is
313 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
315 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
316 here, DecimalFormat.applyPattern() does not throw it.
318 2001-09-04 Tom Tromey <tromey@redhat.com>
320 * java/util/AbstractMap.java: Re-merged with Classpath.
321 * java/util/IdentityHashMap.java: Re-merged with Classpath.
323 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
324 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
325 gnu/gcj/text/LocaleData_en_US.java: Removed.
326 * java/text/DateFormatSymbols.java (clone): Use Classpath
328 (equals): Simplified.
329 (DateFormatSymbols): Look in gnu.java.locale for information.
330 (DateFormatSymbols(DateFormatSymbols)): Removed.
331 (safeGetResource): Removed.
332 (DateFormatSymbols): Throws MissingResourceException.
333 (ampmsDefault, erasDefault, localPatternCharsDefault,
334 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
335 weekdaysDefault, zoneStringsDefault): Removed.
336 * java/text/Collator.java (getAvailableLocales): Use modified
337 Classpath implementation.
338 (getInstance): Look in gnu.java.locale for information.
340 * java/text/MessageFormat.java: Reindented.
342 * java/text/FieldPosition.java: Merged with Classpath.
343 * java/text/ParsePosition.java: Merged with Classpath.
344 * java/text/Format.java: Merged with Classpath.
345 * java/text/StringCharacterIterator.java
346 (StringCharacterIterator(StringCharacterIterator,int,int)): New
347 constructor from Classpath.
348 * java/text/Annotation.java,
349 java/text/AttributedCharacterIterator.java,
350 java/text/AttributedString.java,
351 java/text/AttributedStringIterator.java: New from Classpath.
352 * java/text/CharacterIterator.java: Copied from Classpath.
353 * java/text/ChoiceFormat.java: Reindented.
355 * gnu/java/text/BaseBreakIterator.java,
356 gnu/java/text/CharacterBreakIterator.java,
357 gnu/java/text/LineBreakIterator.java,
358 gnu/java/text/LocaleData_en.java,
359 gnu/java/text/LocaleData_en_US.java,
360 gnu/java/text/SentenceBreakIterator.java,
361 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
362 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
364 * java/text/BreakIterator.java (getAvailableLocales): Use
365 Classpath implementation.
366 (getInstance): Look in gnu.java.locale for information.
367 (getCharacterInstance, getLineInstance, getSentenceInstance,
368 getWordInstance): Look in gnu.java.text for implementations.
369 * java/text/DecimalFormatSymbols.java: Reindented
370 (clone): Use Classpath implementation.
371 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
372 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
374 * java/text/DateFormat.java: Merged with Classpath.
375 (getAvailableLocales): Use Classpath implementation.
376 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
377 (computeInstance): Look in gnu.java.locale for information.
378 * java/text/NumberFormat.java: Reindented.
379 (computeInstance): Look in gnu.java.locale for information.
380 (getAvailableLocales): Use implementation from Classpath.
381 (setMaximumIntegerDigits): Likewise.
382 (setMinimumIntegerDigits): Likewise.
383 (setMaximumFractionDigits): Likewise.
385 * java/text/DecimalFormat.java: Reindented.
386 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
387 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
388 * Makefile.in: Rebuilt.
389 * Makefile.am (ordinary_java_source_files): Added all new files.
390 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
391 * java/security/spec/AlgorithmParameterSpec.java,
392 java/security/spec/KeySpec.java: Re-merged with Classpath.
394 Fix for PR libgcj/4213:
395 * Makefile.am (ordinary_java_source_files): Added new file.
396 * gnu/gcj/text/LocaleData.java: New file.
398 2001-09-03 Tom Tromey <tromey@redhat.com>
400 * java/lang/reflect/natField.cc (set): Allow for case when the
401 value is null. Fixes PR libgcj/4208.
403 * gcj/javaprims.h: Regenerated class list.
404 * java/lang/IllegalThreadStateException.java,
405 java/lang/InstantiationException.java: Minor comment tweaks to
406 satisfy libgcj `classes.pl' script.
408 2001-09-01 Tom Tromey <tromey@redhat.com>
410 * Makefile.in: Rebuilt.
411 * Makefile.am (core_java_source_files): Added
412 UnsupportedClassVersionError.
413 * java/lang/UnsupportedClassVersionError.java: New file from
416 * java/io/CharConversionException.java, java/io/EOFException.java,
417 java/io/FileNotFoundException.java, java/io/IOException.java,
418 java/io/InterruptedIOException.java,
419 java/io/ObjectStreamException.java,
420 java/io/OptionalDataException.java,
421 java/io/StreamCorruptedException.java,
422 java/io/SyncFailedException.java,
423 java/io/UTFDataFormatException.java,
424 java/io/UnsupportedEncodingException.java,
425 java/lang/AbstractMethodError.java,
426 java/lang/ArithmeticException.java,
427 java/lang/ArrayIndexOutOfBoundsException.java,
428 java/lang/ArrayStoreException.java,
429 java/lang/ClassCastException.java,
430 java/lang/ClassCircularityError.java,
431 java/lang/ClassFormatError.java,
432 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
433 java/lang/Exception.java,
434 java/lang/ExceptionInInitializerError.java,
435 java/lang/IllegalAccessError.java,
436 java/lang/IllegalAccessException.java,
437 java/lang/IllegalArgumentException.java,
438 java/lang/IllegalMonitorStateException.java,
439 java/lang/IllegalStateException.java,
440 java/lang/IllegalThreadStateException.java,
441 java/lang/IncompatibleClassChangeError.java,
442 java/lang/IndexOutOfBoundsException.java,
443 java/lang/InstantiationError.java,
444 java/lang/InstantiationException.java,
445 java/lang/InternalError.java, java/lang/InterruptedException.java,
446 java/lang/LinkageError.java,
447 java/lang/NegativeArraySizeException.java,
448 java/lang/NoClassDefFoundError.java,
449 java/lang/NoSuchFieldError.java,
450 java/lang/NoSuchFieldException.java,
451 java/lang/NoSuchMethodError.java,
452 java/lang/NoSuchMethodException.java,
453 java/lang/NullPointerException.java,
454 java/lang/NumberFormatException.java,
455 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
456 java/lang/SecurityException.java,
457 java/lang/StackOverflowError.java,
458 java/lang/StringIndexOutOfBoundsException.java,
459 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
460 java/lang/UnsatisfiedLinkError.java,
461 java/lang/UnsupportedOperationException.java,
462 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
463 java/lang/reflect/InvocationTargetException.java,
464 java/net/BindException.java, java/net/ConnectException.java,
465 java/net/MalformedURLException.java,
466 java/net/NoRouteToHostException.java,
467 java/net/ProtocolException.java, java/net/SocketException.java,
468 java/net/UnknownHostException.java,
469 java/net/UnknownServiceException.java,
470 java/text/ParseException.java: Copied from Classpath, thanks to
471 Mark Wielaard who did the merge.
473 * java/lang/System.java (getProperty): Use single argument form of
474 SecurityManager.checkPropertyAccess.
475 * Makefile.in: Rebuilt.
476 * Makefile.am (core_java_source_files): Added VMSecurityManager.
477 * java/lang/VMSecurityManager.java: New file.
478 * java/lang/SecurityManager.java: Merged with Classpath.
480 2001-08-31 Per Bothner <per@bothner.com>
482 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
483 (_Jv_RegisterClassHookDefault): Likewise.
484 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
485 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
486 (_Jv_RegisterClassHookDefault): New.function.
487 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
489 * java/lang/ClassLoader.java (system): Remove static field.
490 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
491 directly instead of using it to set the system field.
492 (loadClass): Use VMClassLoader.instance instead of system field.
493 (findSystemClass): Similar.
494 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
495 than ClassLoader::system which no longer exists.
496 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
498 2001-08-31 Tom Tromey <tromey@redhat.com>
500 * java/io/BufferedReader.java, java/io/ObjectInput.java,
501 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
502 Re-merged with Classpath.
504 Re-merge with Classpath:
505 * java/util/Comparator (equals): Added.
506 * java/io/PipedWriter.java (write): Changed argument to `int'.
508 * java/io/FileDescriptor.java (FileDescriptor()): New
510 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
512 * Makefile.in: Rebuilt.
513 * Makefile.am (ordinary_java_source_files): Removed
514 EnumerationChain, added DoubleEnumeration.
515 (nat_source_files): Added natResourceBundle.cc.
516 * java/util/natResourceBundle.cc: New file.
517 * gnu/java/util/DoubleEnumeration.java: New file.
518 * gnu/gcj/util/EnumerationChain.java: Removed.
519 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
520 * java/util/ResourceBundle.java: Merged with Classpath.
521 * java/util/StringTokenizer.java: Merged with Classpath.
522 * java/util/Locale.java: Merged with Classpath.
523 * java/util/Random.java: Merged with Classpath.
524 * java/util/PropertyResourceBundle.java: Merged with Classpath.
525 * java/util/ListResourceBundle.java: Merged with Classpath.
526 * java/util/ConcurrentModificationException.java: Re-merged with
528 * java/util/EmptyStackException.java: Likewise.
529 * java/util/MissingResourceException.java: Likewise.
530 * java/util/NoSuchElementException.java: Likewise.
531 * java/util/TooManyListenersException.java: Likewise.
533 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
534 * java/io/OptionalDataException.java: Merged with Classpath.
536 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
538 * exception.cc (PERSONALITY_FUNCTION): Simplify
541 2001-08-31 Tom Tromey <tromey@redhat.com>
543 * java/io/ByteArrayInputStream.java: Merged with Classpath.
545 2001-08-30 Tom Tromey <tromey@redhat.com>
547 * java/io/BufferedReader.java: Re-merged with Classpath.
549 2001-08-28 Per Bothner <per@bothner.com>
551 * java/math/BigInteger.java (init(int,Random)): New method.
552 Move body of constructor <init>(int,Random)) here.
553 Re-write it to avoid constructing unneeded temporaries.
554 (<init>(int,int,Random)): Use new init method to avoid constructing
555 extra temporary BigIntegers.
557 2001-08-27 Tom Tromey <tromey@redhat.com>
559 * java/rmi/activation/Activatable.java,
560 java/rmi/activation/ActivateFailedException.java,
561 java/rmi/activation/ActivationDesc.java,
562 java/rmi/activation/ActivationException.java,
563 java/rmi/activation/ActivationGroup.java,
564 java/rmi/activation/ActivationGroupDesc.java,
565 java/rmi/activation/ActivationGroupID.java,
566 java/rmi/activation/ActivationID.java,
567 java/rmi/activation/ActivationInstantiator.java,
568 java/rmi/activation/ActivationMonitor.java,
569 java/rmi/activation/ActivationSystem.java,
570 java/rmi/activation/Activator.java,
571 java/rmi/activation/UnknownGroupException.java,
572 java/rmi/activation/UnknownObjectException.java,
573 java/rmi/AccessException.java,
574 java/rmi/AlreadyBoundException.java,
575 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
576 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
577 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
578 java/rmi/NotBoundException.java,
579 java/rmi/RMISecurityException.java,
580 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
581 java/rmi/RemoteException.java, java/rmi/ServerError.java,
582 java/rmi/ServerException.java,
583 java/rmi/ServerRuntimeException.java,
584 java/rmi/StubNotFoundException.java,
585 java/rmi/UnexpectedException.java,
586 java/rmi/UnknownHostException.java,
587 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
588 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
589 java/rmi/registry/LocateRegistry.java,
590 java/rmi/registry/Registry.java,
591 java/rmi/registry/RegistryHandler.java,
592 java/rmi/server/ExportException.java,
593 java/rmi/server/LoaderHandler.java,
594 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
595 java/rmi/server/Operation.java,
596 java/rmi/server/RMIClassLoader.java,
597 java/rmi/server/RMIClientSocketFactory.java,
598 java/rmi/server/RMIFailureHandler.java,
599 java/rmi/server/RMIServerSocketFactory.java,
600 java/rmi/server/RMISocketFactory.java,
601 java/rmi/server/RemoteCall.java,
602 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
603 java/rmi/server/RemoteServer.java,
604 java/rmi/server/RemoteStub.java,
605 java/rmi/server/ServerCloneException.java,
606 java/rmi/server/ServerNotActiveException.java,
607 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
608 java/rmi/server/SkeletonMismatchException.java,
609 java/rmi/server/SkeletonNotFoundException.java,
610 java/rmi/server/SocketSecurityException.java,
611 java/rmi/server/UID.java,
612 java/rmi/server/UnicastRemoteObject.java,
613 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
614 gnu/java/rmi/dgc/DGCImpl_Skel.java,
615 gnu/java/rmi/dgc/DGCImpl_Stub.java,
616 gnu/java/rmi/registry/RegistryImpl.java,
617 gnu/java/rmi/registry/RegistryImpl_Skel.java,
618 gnu/java/rmi/registry/RegistryImpl_Stub.java,
619 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
620 gnu/java/rmi/server/ProtocolConstants.java,
621 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
622 gnu/java/rmi/server/RMIHashes.java,
623 gnu/java/rmi/server/RMIObjectInputStream.java,
624 gnu/java/rmi/server/RMIObjectOutputStream.java,
625 gnu/java/rmi/server/UnicastConnection.java,
626 gnu/java/rmi/server/UnicastConnectionManager.java,
627 gnu/java/rmi/server/UnicastRef.java,
628 gnu/java/rmi/server/UnicastRemoteCall.java,
629 gnu/java/rmi/server/UnicastRemoteStub.java,
630 gnu/java/rmi/server/UnicastServer.java,
631 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
632 Kaffe. Relabelled classes to fit into Classpath tree.
633 * Makefile.in: Rebuilt.
634 * Makefile.am (rmi_java_source_files): New macro.
635 (ordinary_java_source_files): Reference it.
636 (bin_PROGRAMS): Added rmic and rmiregistry.
637 (rmic_SOURCES): New macro.
638 (EXTRA_rmic_SOURCES): Likewise.
639 (rmic_LDFLAGS): Likewise.
640 (rmic_LINK): Likewise.
641 (rmic_LDADD): Likewise.
642 (rmic_DEPENDENCIES): Likewise.
643 (rmiregistry_SOURCES): New macro.
644 (EXTRA_rmiregistry_SOURCES): Likewise.
645 (rmiregistry_LDFLAGS): Likewise.
646 (rmiregistry_LINK): Likewise.
647 (rmiregistry_LDADD): Likewise.
648 (rmiregistry_DEPENDENCIES): Likewise.
650 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
652 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
654 * Makefile.am: New friends for java/lang/Thread.h.
655 * prims.cc (runFirst): Removed.
656 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
657 (_Jv_RunMain): Now takes either a klass or class name parameter.
658 Create a gnu.gcj.runtime.FirstThread and attach the native thread
659 to that, then run it using _Jv_ThreadRun. Remove special handling of
660 jar files, instead pass is_jar parameter through to FirstThread.
661 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
662 of _Jv_AttachCurrentThread.
663 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
664 (run): New method. Take care of looking up main class manifest
665 attribute and calling forName if neccessary. Then call call_main.
666 (call_main): New native method.
667 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
668 relocated from prims.cc. Look up and call main method.
669 * java/lang/Thread.java (run_): Removed.
670 * java/lang/natThread.cc (run_): Renamed to...
671 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
672 (_Jv_NotifyThreadStart): here. New function.
673 (countStackFrames, destroy, resume, suspend, stop): Throw
674 UnsupportedOperationExceptions rather than JvFail'ing.
675 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
676 Existing version wraps new variant.
679 2001-08-23 Tom Tromey <tromey@redhat.com>
681 * java/lang/reflect/Field.java (toString): Use
682 Method.appendClassName.
683 * java/lang/reflect/Constructor.java (toString): Use
684 Method.appendClassName.
685 * java/lang/reflect/Method.java: Reindented.
686 (appendClassName): New method.
688 * defineclass.cc (handleMethod ): Initialize `throws' field of
690 (read_one_method_attribute): Handle Exceptions attribute.
691 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
692 (ObjectClass): Removed.
693 (getType): Compute `exception_types'.
694 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
696 2001-08-21 Anthony Green <green@redhat.com>
698 * java/lang/natClassLoader.cc (findClass): Search for
699 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
701 2001-08-21 Jeff Sturm <jsturm@one-point.com>
703 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
706 2001-08-20 Tom Tromey <tromey@redhat.com>
708 * java/awt/GridBagConstraints.java: Removed comment.
710 * jni.cc (nathash, nathash_count, nathash_size): New globals.
711 (DELETED_ENTRY): New define.
712 (hash): New function.
713 (nathash_find_slot): Likewise.
714 (natrehash): Likewise.
715 (nathash_add): Likewise.
716 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
718 (nathash_find): New function.
719 (_Jv_LookupJNIMethod): Use it. Synchronize body.
720 (call): Synchronize around assignment.
722 2001-08-17 Jeff Sturm <jsturm@one-point.com>
724 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
725 starting from zero offset.
727 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
729 * boehm.cc: Include gc_local_alloc.h if appropriate.
730 (GC_GENERIC_MALLOC): Don't define.
731 (MAYBE_MARK): Redefine for GC 6.0.
732 (_Jv_MarkObj): Mark class differently.
733 (_Jv_AllocArray): Use GC_generic_malloc.
735 2001-08-17 Mark J Roberts <mjr@anarcast.net>
737 * java/math/BigInteger.java (randBytes): New method.
738 (BigInteger(int,Random)): Use randBytes.
740 2001-08-17 Tom Tromey <tromey@redhat.com>
742 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
744 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
746 * BigInteger.java: fix right shifts by nonzero multiples of 32.
748 2001-08-15 Tom Tromey <tromey@redhat.com>
750 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
751 (local_ref_table, global_ref_table): Now IdentityHashMap.
752 (_Jv_JNI_Init): Updated for new types.
753 (mark_for_gc): Likewise.
754 (unmark_for_gc): Likewise.
755 * gcj/javaprims.h: Rebuilt class list.
756 * Makefile.in: Rebuilt.
757 * Makefile.am (core_java_source_files): Added new file.
758 * java/util/IdentityHashMap.java: New file.
760 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
763 2001-08-09 Tom Tromey <tromey@redhat.com>
765 * java/awt/image/SampleModel.java (getPixel): Set correct array
766 element. From Chris Meyer.
768 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
770 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
771 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
773 2001-08-06 Tom Tromey <tromey@redhat.com>
775 * java/io/InputStreamReader.java (refill): Only call refill on
776 BufferedInputStream when appropriate constraints are met.
778 2001-08-05 Tom Tromey <tromey@redhat.com>
780 * java/io/StringWriter.java: Merged with Classpath.
781 * java/io/InputStream.java: Merged with Classpath.
782 * java/io/OutputStream.java: Merged with Classpath.
783 * java/io/PushbackInputStream.java: Merged with Classpath.
784 * java/io/CharArrayReader.java: Merged with Classpath.
785 * java/io/CharArrayWriter.java: Merged with Classpath.
787 2001-08-02 Tom Tromey <tromey@redhat.com>
789 * prims.cc (JNI_OnLoad): Don't declare.
790 (_JNI_OnLoad): Don't define.
791 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
793 2001-08-02 Tom Tromey <tromey@redhat.com>
795 * java/io/RandomAccessFile.java (seek): Let seek go past end of
797 (skipBytes): Don't fail if seeking past end of file.
798 * java/io/FileInputStream.java (skip): Don't fail if seeking past
800 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
802 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
804 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
806 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
808 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
810 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
811 to initialize global_ref_table/local_ref_table.
813 2001-08-02 Tom Tromey <tromey@redhat.com>
815 * configure: Rebuilt.
816 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
819 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
821 * include/posix.h (_POSIX_PII_SOCKET): Define.
822 * configure.in (HAVE_SOCKLEN_T): Define.
823 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
825 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
826 (java::net::PlainSocketImpl::accept): Use it.
827 Fixes PRs libgcj/3694, libgcj/3696.
829 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
830 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
831 * configure, include/config.h.in: Regenerate.
832 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
833 (mcastGrp): Likewise.
834 (java::net::PlainDatagramSocketImpl::setOption): Guard against
835 missing IPV6_MULTICAST_IF.
836 Fixes PR libgcj/3694.
838 2001-08-01 Jeff Sturm <jsturm@one-point.com>
840 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
842 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
844 * Makefile.in: Rebuilt.
845 * Makefile.am (GCJLINK): Added --tag=GCJ.
848 2001-07-30 Tom Tromey <tromey@redhat.com>
850 * java/util/Date.java: Re-merged with Classpath.
852 2001-07-30 Jeff Sturm <jsturm@one-point.com>
854 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
855 (_Jv_bind): New static function.
856 (bind): Use _Jv_bind.
857 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
858 (_Jv_bind, _Jv_connect): New static functions.
859 (bind): Use _Jv_bind.
860 (connect): Use _Jv_connect.
862 2001-07-30 Tom Tromey <tromey@redhat.com>
863 Corey Minyard <minyard@acm.org>
865 * gnu/gcj/convert/natIconv.cc (done): New methods.
866 * gnu/gcj/convert/Output_iconv.java (done): New method.
867 * gnu/gcj/convert/Input_iconv.java (done): New method.
868 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
870 (getDefaultEncodingClass): Removed.
871 (getDefaultEncoder): Use getEncoder.
873 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
875 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
877 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
879 (getDefaultDecodingClass): Removed.
880 (getDefaultDecoder): Use getDecoder.
881 (getDecoder): Look up decoder in cache.
883 * java/lang/natString.cc (init): Call `done' on converter.
884 (getBytes): Likewise.
886 2001-07-30 Tom Tromey <tromey@redhat.com>
888 * java/lang/Integer.java: Merged with Classpath.
890 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
892 * java/util/GregorianCalendar.java (GregorianCalendar): Call
893 setTimeInMillis() to set the default/current time.
895 2001-07-29 Mark Wielaard <mark@klomp.org>
897 * HACKING: add description on updating namespace
899 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
901 * java/util/Calendar.java (set): Never recompute fields here. They
902 will already be set if someone set time explicitly, and it can cause
903 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
904 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
905 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
907 * java/text/SimpleDateFormat.java (defaultCentury): New field.
908 (readObject): Call set2DigitYearStart if appropriate so that
909 defaultCentury is calculated.
910 (SimpleDateFormat): Don't bother clearing calendar here. Call
911 computeCenturyStart().
912 (set2DigitYearStart): Calculate and set defaultCentury.
913 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
915 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
916 2 numeric digits, use the 80-20 heuristic to parse the value into a
917 default century based on defaultCenturyStart.
918 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
920 2001-07-25 Tom Tromey <tromey@redhat.com>
922 * Makefile.in: Rebuilt.
923 * Makefile.am (libgcj.jar): Correctly fail when bytecode
926 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
928 * prims.cc (_JNI_OnLoad): New function.
929 (JNI_OnLoad): Use it.
930 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
932 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
934 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
935 Makefile.in: Regenerate.
937 2001-07-24 Tom Tromey <tromey@redhat.com>
939 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
942 2001-07-23 Tom Tromey <tromey@redhat.com>
944 * gcj/javaprims.h: Rebuilt class list.
945 * Makefile.in: Rebuilt.
946 * Makefile.am (core_java_source_files): Added VMClassLoader.
947 * java/lang/VMClassLoader.java: New file.
948 * java/lang/Boolean.java: Merged with Classpath.
949 * java/lang/Byte.java: Merged with Classpath.
950 * java/lang/Integer.java: Merged with Classpath.
951 * java/lang/Long.java: Merged with Classpath.
952 * java/lang/Number.java: Merged with Classpath.
953 * java/lang/Short.java: Merged with Classpath.
955 2001-07-22 Jeff Sturm <jsturm@one-point.com>
957 * configure.host: Enable hash synchronization for alpha*-*.
958 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
960 * java/lang/natObject.cc (compare_and_swap, release_set,
961 compare_and_swap_release): Added inline functions for alpha.
963 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
965 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
966 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
967 back to old RFC 2133 variants if missing.
969 2001-07-18 Tom Tromey <tromey@redhat.com>
971 * java/io/natFileWin32.cc (_access): Renamed.
973 * java/io/natFile.cc (_access): Renamed.
975 * java/io/File.java (access, stat): Add leading `_' to name.
978 2001-07-18 Tom Tromey <tromey@redhat.com>
981 * libgcj.spec.in (*lib): Added LIBICONV.
982 * configure: Rebuilt.
983 * configure.in: Call AM_ICONV. Don't check for iconv function.
984 Add parameters to JV_HASH_SYNCHRONIZATION define.
985 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
987 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
989 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
990 not by setting its size field.
992 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
994 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
997 2001-07-12 Tom Tromey <tromey@redhat.com>
998 David Brownell <david-b@pacbell.net>
1000 Fix for PR libgcj/3426:
1001 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1003 (read): Throw exception if character conversion fails.
1004 * java/io/BufferedInputStream.java (refill): Now package-private.
1005 * java/io/InputStreamReader.java (ready): Simplified.
1006 (refill): New method.
1009 2001-07-12 Tom Tromey <tromey@redhat.com>
1011 Report from Henner Zeller:
1012 * java/io/FileOutputStream.java (FileOutputStream): Throw
1013 FileNotFoundException, not IOException.
1015 2001-07-10 Anthony Green <green@redhat.com>
1017 * Makefile.in: Rebuilt.
1018 * Makefile.am: Add new files.
1019 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1020 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1021 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1022 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1023 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1024 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1025 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1026 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1027 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1028 org/w3c/dom/ranges/DocumentRange.java,
1029 org/w3c/dom/ranges/Range.java,
1030 org/w3c/dom/ranges/RangeException.java,
1031 org/w3c/dom/traversal/DocumentTraversal.java,
1032 org/w3c/dom/traversal/NodeFilter.java,
1033 org/w3c/dom/traversal/NodeIterator.java,
1034 org/w3c/dom/traversal/TreeWalker.java,
1035 org/xml/sax/ext/DeclHandler.java,
1036 org/xml/sax/ext/LexicalHandler.java,
1037 org/xml/sax/helpers/AttributeListImpl.java,
1038 org/xml/sax/helpers/AttributesImpl.java,
1039 org/xml/sax/helpers/DefaultHandler.java,
1040 org/xml/sax/helpers/LocatorImpl.java,
1041 org/xml/sax/helpers/NamespaceSupport.java,
1042 org/xml/sax/helpers/ParserAdapter.java,
1043 org/xml/sax/helpers/ParserFactory.java,
1044 org/xml/sax/helpers/XMLFilterImpl.java,
1045 org/xml/sax/helpers/XMLReaderAdapter.java,
1046 org/xml/sax/helpers/XMLReaderFactory.java,
1047 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1048 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1049 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1050 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1051 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1052 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1053 org/xml/sax/SAXNotRecognizedException.java,
1054 org/xml/sax/SAXNotSupportedException.java,
1055 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1056 org/xml/sax/XMLReader.java: New files.
1058 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1060 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1061 * Makefile.in: Regenerate.
1062 * java/lang/ThreadLocal.java: Initial import.
1064 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1066 * Makefile.am (libgcj.jar): Don't recursively make
1067 built_java_source_files. Avoid long command lines.
1068 Don't change to $(srcdir) to invoke javac.
1069 (libgcj.la, libgcjx.la); Avoid long command lines.
1070 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1071 * Makefile.in: Rebuilt.
1073 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1075 * include/i386-signal.h: Don't do anything with unsigned divide
1076 overflow except throw an exception.
1078 2001-07-05 Tom Tromey <tromey@redhat.com>
1081 * java/lang/Class.h (Class(void)): Now private. Removed
1082 implementation. From dmorsberger@sensysdl.com.
1084 2001-07-02 Tom Tromey <tromey@redhat.com>
1086 Fix for PR bootstrap/3281:
1087 * aclocal.m4, configure: Rebuilt.
1088 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1089 Correctly compute libgcj_basedir.
1090 (mkinstalldirs): Define and subst.
1092 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1095 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1098 2001-06-27 Tom Tromey <tromey@redhat.com>
1100 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1103 2001-06-25 Tom Tromey <tromey@redhat.com>
1105 * scripts/encodings.pl: Generate lower-case names. Updated URL
1106 for `character-sets' file.
1107 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1109 Rebuilt list of aliases.
1111 2001-06-25 Tom Tromey <tromey@redhat.com>
1113 * java/io/natFileDescriptorPosix.cc (open): Change error message
1114 formatting. From David Brownell.
1116 2001-06-21 Tom Tromey <tromey@redhat.com>
1118 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1121 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1123 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1124 extraneous/malformed sign word.
1126 2001-06-15 Tom Tromey <tromey@redhat.com>
1128 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1130 2001-06-15 Tom Tromey <tromey@redhat.com>
1132 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1133 NULL if no library on the list has the symbol.
1134 (init): Call add_library on the program itself.
1135 * prims.cc (JvRunMain): Initialize Runtime before searching for
1137 (_Jv_RunMain): Likewise.
1139 2001-06-15 Tom Tromey <tromey@redhat.com>
1141 * jni.cc (ClassClass): Removed; updated all users.
1142 (ObjectClass): Likewise.
1143 (ThrowableClass): Likewise.
1144 (MethodClass): Likewise.
1145 (ThreadGroupClass): Likewise.
1146 (local_ref_table): Renamed from `ref_table'.
1147 (global_ref_table): New global.
1148 (_Jv_JNI_Init): Initialize both ref tables.
1149 (mark_for_gc): Added `ref_table' parameter.
1150 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1152 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1153 (_Jv_JNI_DeleteGlobalRef): Likewise.
1154 (_Jv_JNI_DeleteLocalRef): Likewise.
1155 (_Jv_JNI_NewLocalRef): Likewise.
1156 (_Jv_JNI_PopLocalFrame): Likewise.
1157 (_Jv_JNI_GetStringChars): Likewise.
1158 (_Jv_JNI_ReleaseStringChars): Likewise.
1159 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1160 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1162 2001-06-14 Tom Tromey <tromey@redhat.com>
1164 Fix for PR libgcj/3144:
1165 * java/util/Date.java: Merged with Classpath.
1167 2001-06-12 Tom Tromey <tromey@redhat.com>
1169 * aclocal.m4, configure: Rebuilt.
1170 * acinclude.m4: Find configure.host in srcdir.
1172 2001-06-07 Tom Tromey <tromey@redhat.com>
1174 Fix for PR libgcj/3059:
1175 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1176 * Makefile.in: Rebuilt.
1177 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1179 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1181 * exception.cc (cstdlib): Replaces stdlib.h.
1182 (_Jv_Throw): Use std::abort().
1183 (PERSONALITY_FUNCTION): Likewise.
1185 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1187 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1188 nothing, as in autoconf 2.50.
1189 * aclocal.m4, configure: Rebuilt.
1191 2001-06-08 Tom Tromey <tromey@redhat.com>
1193 * configure: Rebuilt.
1194 * configure.in: Compute new aux dir using `pwd'.
1196 2001-06-07 Tom Tromey <tromey@redhat.com>
1198 For PR bootstrap/3075:
1199 * configure, aclocal.m4, Makefile.am: Rebuilt.
1200 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1201 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1202 relative to libgcj_basedir.
1203 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1204 AC_CANONICAL_SYSTEM here.
1205 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1207 ($(extra_headers)): New target.
1209 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1210 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1212 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1213 table index is within allowed bounds. Ensure that we dont try to access
1214 class itable at a negative offset. Avoid an ancestor table lookup if
1215 source is a primitive type class.
1216 (isInstance): Remove redundant isPrimitive() check.
1218 2001-06-04 Tom Tromey <tromey@redhat.com>
1220 * java/security/PublicKey.java: Extend Key.
1221 * java/security/PrivateKey.java: Extend Key.
1223 2001-06-02 Anthony Green <green@redhat.com>
1225 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1226 alternate when USE_LTDL not defined.
1228 2001-06-02 Anthony Green <green@redhat.com>
1230 * configure: Rebuild.
1231 * configure.in: Remove data_start hack.
1232 * libgcj.spec.in: Ditto.
1233 * Makefile.in: Rebuild.
1234 * Makefile.am: Ditto.
1235 * libgcjdata.c: Remove.
1237 2001-06-02 Anthony Green <green@redhat.com>
1239 * configure: Rebuild.
1240 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1241 --without-libffi option. Tweak --disable-java-net processing.
1242 * Makefile.in: Rebuild.
1243 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1244 * include/config.h.in: Rebuild.
1245 * acconfig.h (USE_LIBFFI): Define.
1246 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1248 2001-06-02 Anthony Green <green@redhat.com>
1250 * configure: Rebuilt.
1251 * configure.in: Test for sigaction on native builds.
1252 * prims.cc: Check HAVE_SIGACTION.
1253 * include/config.h.in: Rebuilt.
1255 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1257 * natFile.cc (get_entry): Removed functions.
1258 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1259 Allocate enough storage for d_name if using readdir_r.
1261 2001-05-31 Tom Tromey <tromey@redhat.com>
1263 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1265 (write): Loop until write completes. From Corey Minyard.
1267 2001-05-29 Laurent Guerby <guerby@acm.org>
1269 * java/awt/geom/Rectangle2D.java: fix doc typo.
1271 2001-05-31 Tom Tromey <tromey@redhat.com>
1273 * java/sql/DriverManager.java (getDrivers): Handle case where
1274 driver's class loader is null. From Corey Minyard.
1276 2001-05-29 Tom Tromey <tromey@redhat.com>
1278 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1280 * configure: Rebuilt.
1281 * configure.in: Only add multilib support code if we just rebuilt
1284 2001-05-29 Andrew Haley <aph@redhat.com>
1286 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1287 pointer: the dwarf unwinder in libgcc will do everything that's
1289 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1290 more than we absolutely need to.
1291 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1292 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1294 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1296 * configure: Rebuilt.
1297 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1299 (SIGNAL_HANDLER): Use siginfo style handler.
1300 (INIT_SEGV): Likewise.
1301 (INIT_FPE): Likewise.
1302 * include/ppc-signal.h: Delete whole file.
1304 2001-05-24 Tom Tromey <tromey@redhat.com>
1306 * java/lang/natString.cc (init): Throw
1307 ArrayIndexOutOfBoundsException.
1308 (getChars): Likewise.
1309 (getBytes): Likewise.
1310 (valueOf): Likewise.
1312 * configure.in: Only allow hash synchronization when POSIX threads
1314 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1315 of sync info object.
1317 2001-05-23 Tom Tromey <tromey@redhat.com>
1319 * Makefile.in: Rebuilt.
1320 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1322 Revert patch of 2001-05-21:
1323 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1324 (libgcj_la_LIBADD): Likewise.
1325 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1326 (libgcjx_la_LIBADD): Likewise.
1328 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1329 * gcj/Makefile.in: Rebuilt.
1330 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1331 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1332 * gcj/libgcj-config.h.in: New file.
1333 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1334 * configure: Rebuilt.
1335 * configure.in: Enable hash synchronization by default on some
1337 (HASH_SYNC_SPEC): New subst.
1338 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1339 Correctly use `test -z' instead of `test -n' in a couple places.
1340 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1342 * configure.host (enable_java_net_default): Initialize.
1343 (enable_hash_synchronization_default): New variable.
1345 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1347 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1348 synchronization in use.
1349 (_Jv_MarkArray): Likewise.
1350 (_Jv_AllocBytes): Don't check return result.
1351 (handle_out_of_memory): New function.
1352 (_Jv_InitGC): Set GC_oom_fn.
1353 (trace_one_vtable): New global.
1354 (_Jv_AllocTraceOne): New function.
1355 * configure.in: Added --enable-hash-synchronization.
1356 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1357 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1358 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1359 (_Jv_AllocArray): Likewise.
1360 (_Jv_AllocBytes): Likewise.
1361 (_Jv_AllocPtrFreeObject): New function.
1362 (_Jv_AllocTraceOne): Likewise.
1363 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1365 (self_cache): New global.
1366 (_Jv_ThreadSelf_out_of_line): New function.
1367 * prims.cc (_Jv_AllocBytesChecked): Removed.
1368 (_Jv_ThrowNoMemory): New function.
1369 (_Jv_AllocObject): Don't check for null return from allocator.
1370 (_Jv_NewObjectArray): Likewise.
1371 (_Jv_AllocPtrFreeObject): New function.
1372 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1373 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1374 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1375 * include/boehm-gc.h (_Jv_AllocObj): Define.
1376 (_Jv_AllocPtrFreeObj): Define.
1377 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1378 (_Jv_ThrowNoMemory): Declare.
1379 (_Jv_AllocTraceOne): Declare.
1380 (_Jv_AllocBytesChecked): Removed.
1381 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1382 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1383 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1385 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1387 * java/lang/Object.h (sync_info): Conditional upon presence of
1388 hash synchronization.
1389 * java/lang/natObject.cc: Much new code to handle thin locks and
1390 hash synchronization.
1391 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1394 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1396 * gij.cc (version): Update copyright year.
1398 2001-05-22 Anthony Green <green@redhat.com>
1400 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1403 2001-05-21 Per Bothner <per@bothner.com>
1405 Implement invocation interface; don't create new thread for main.
1406 * java/lang/Thread.java (gen_name): Make native.
1407 (<init>(Thread,THreadGroup,Runnable,String)): New private
1408 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1409 * java/lang/natThread.cc (gen_name): New implementation.
1410 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1411 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1412 (_Jv_CreateJavaVM): New runtime initialization procedure.
1413 (runFirst): New proecdure - mostly code from old FirstThread::run.
1414 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1415 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1416 JvDetachCurrentThread): New inline wrappers.
1417 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1418 _Jv_DetachCurrentThread): New declarations.
1419 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1420 (getMain): new static method.
1421 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1422 by runFirst in prims.cc.
1423 (java/lang/Thread.h): Update for new invocation interface.
1424 * include/posix-threads.h (_Jv_ThreadRegister,
1425 _Jv_ThreadUnRegister): New declarations.
1426 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1427 (really_start): Use new _Jv_ThreadRegister.
1428 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1429 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1430 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1431 Complain of called when _Jv_OnlyThread already set.
1432 (_Jv_ThreadStart): Always JvFail.
1433 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1434 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1435 * win32-threads.cc (struct starter): Remove objet field -
1436 we use _Jv_Thread_t's new thread_obj field instead.
1437 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1438 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1439 (really_start): Use new _Jv_ThreadRegister.
1440 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1441 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1442 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1443 Removed - no longer needed with new invocation interface.
1444 * Makefile.am: Update for removed/added files.
1446 2001-05-21 Per Bothner <per@bothner.com>
1448 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1449 (libgcj_la_LIBADD): Likewise.
1450 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1452 2001-05-21 Per Bothner <per@bothner.com>
1454 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1455 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1456 taken from old Integer.toString code.
1457 (Integer::valueOf): Use _Jv_FormatInt.
1458 * java/lang/Integer.java (toString): Just use call String.valueOf.
1459 * java/lang/Long.java (toString): Fix typo in comment.
1460 * java/lang/String.java (valueOf(int)): Make native.
1461 * java/lang/StringBuffer.java (append(int)): Make native.
1462 * java/lang/natStringBuffer.cc: New file, for append(jint).
1463 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1465 2001-05-21 Tom Tromey <tromey@redhat.com>
1467 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1469 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1471 * include/dwarf2-signal.h: New file.
1472 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1473 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1474 * configure: Rebuilt.
1476 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1478 * configure.in: Update boehm-gc include dir for new GC version.
1479 * configure: Rebuilt.
1480 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1482 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1483 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1484 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1487 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1489 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1490 (_Jv_MutexInit): Likewise.
1492 2001-05-18 Tom Tromey <tromey@redhat.com>
1494 * Makefile.in: Rebuilt.
1495 * Makefile.am (awt_java_source_files): Added Polygon.java.
1497 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1499 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1500 * gcj/javaprims.h: ... here.
1501 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1503 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1505 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1506 with length of ioffset table.
1507 (_Jv_IsAssignableFrom): Likewise.
1509 2001-05-17 Per Bothner <per@bothner.com>
1511 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1513 2001-05-16 Tom Tromey <tromey@redhat.com>
1515 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1518 2001-05-15 Tom Tromey <tromey@redhat.com>
1520 * java/util/GregorianCalendar.java (computeTime): Only call
1523 2001-05-14 Tom Tromey <tromey@redhat.com>
1525 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1526 ZONE_OFFSET just before computing the time.
1528 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1530 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1531 * Makefile.in: Regenerate (by hand).
1532 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1533 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1535 2001-05-11 Richard Henderson <rth@redhat.com>
1537 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1538 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1540 2001-05-11 Richard Henderson <rth@redhat.com>
1542 * exception.cc: Include unwind-pe.h. Remove all pointer
1545 2001-05-10 Tom Tromey <tromey@redhat.com>
1547 * Makefile.in: Rebuilt.
1548 * Makefile.am (awt_java_source_files): Added Polygon.java.
1549 * java/awt/Polygon.java: New file.
1551 * java/awt/geom/AffineTransform.java
1552 (setToRotation(double,double,double)): New method.
1553 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1554 (setToShear): Likewise.
1556 2001-05-10 Tom Tromey <tromey@redhat.com>
1558 * java/util/GregorianCalendar.java: Imported from Classpath.
1559 * gnu/java/locale/LocaleInformation_nl.java: New file from
1561 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1562 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1563 * gnu/java/locale/LocaleInformation.java: Likewise.
1564 * natGregorianCalendar.cc: Removed.
1565 * Makefile.in: Rebuilt.
1566 * Makefile.am (nat_source_files): Removed
1567 natGregorianCalendar.cc.
1569 2001-05-10 Tom Tromey <tromey@redhat.com>
1571 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1573 (defaultCenturyStart): Use it.
1574 (readObject): Likewise.
1575 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1577 (parse): Copy the calendar before modifying it. Correctly handle
1580 * java/util/Calendar.java (clear): Set field value(s) to 0.
1582 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1584 * Calendar.java (get): Clear areFieldsSet if requested field
1586 (set): Unset fields that depend on new value.
1588 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1590 * java/lang/Class.h (_Jv_Self): New union type.
1591 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1592 Jeff Sturm and Fergus Henderson.
1594 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1596 * java/lang/ClassLoader.java: Remove dead code fragment.
1598 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1600 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1602 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1604 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1606 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1607 * configure.host (EXCEPTIONSPEC): New.
1608 * configure.in (EXCEPTIONSPEC): New.
1609 * configure: Rebuilt.
1611 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1613 * doc/*.texi: Remove generated documentation.
1615 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1617 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1618 (performDelete): Fix #endif placement.
1620 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1622 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1623 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1624 (_Jv_ThreadDestroyData): Use _Jv_Free.
1625 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1628 2001-04-27 Tom Tromey <tromey@redhat.com>
1630 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1632 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1634 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1636 * include/jni.h (struct JNINativeInterface): Fixed types in
1637 Get/Set*ArrayRegion declarations.
1638 (class _Jv_JNIEnv): Likewise.
1640 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1642 * configure.in: Obtain THREADS with `gcc -v'.
1643 * configure: Rebuilt.
1645 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1648 * java/io/ObjectStreamClass.java (setClass): Calculate
1649 serialVersionUID for local class and compare it against the UID
1650 from the Object Stream. Throw InvalidClassException upon mismatch.
1651 (setUID): Renamed to...
1652 (getClassUID): this. Return the calculated class UID rather than
1653 setting uid field directly.
1654 (getDefinedSUID): Removed.
1655 * java/io/ObjectInputStream.java (resolveClass): Use the
1656 three-argument Class.forName().
1657 * java/io/InvalidClassException (toString): Don't include classname in
1658 result if it is null.
1660 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1662 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1663 Wrap use of inet_pton in HAVE_INET6.
1665 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1667 java.security merge and ClassLoader compliance fixes.
1669 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1670 New protectionDomain field.
1671 (forName): Add initialize parameter. Fixes declaration to comply with
1673 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1674 variant. Honour "initialize" flag.
1675 (getProtectionDomain0): New method.
1676 * java/lang/Class.java: Fix forName() declaration.
1677 (getPackage): New method based on Classpath implementation.
1678 (getProtectionDomain0): New native method decl.
1679 (getProtectionDomain): New method.
1680 * java/lang/ClassLoader.java (getParent): Now final.
1681 (definedPackages): New field.
1683 (defineClass): New variant with protectionDomain argument.
1684 (definePackage): New.
1686 (findSystemClass): Now final.
1687 (getSystemResourceAsStream): Remove redundant "final" modifier.
1688 (getSystemResource): Remove redundant "final" modifier.
1689 (getResources): Now final.
1690 (protectionDomainPermission): New static field.
1691 (unknownProtectionDomain): Ditto.
1692 (defaultProtectionDomain): Ditto.
1693 (getSystemClassLoader): Now non-native.
1694 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1695 arguments for Class.forName().
1696 * java/lang/Package.java: New file.
1697 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1698 (instance): Static initialize singleton.
1699 (findClass): Override this, not findSystemClass.
1700 * java/lang/natClassLoader.cc (defineClass0): Set class's
1701 protectionDomain field as specified.
1702 (getSystemClassLoader): Removed.
1703 (findClass): Renamed from findSystemClass. Call the interpreter via
1704 URLClassLoader.findClass if loading class via dlopen fails.
1706 * java/security/*.java: java.security import/merge with Classpath.
1707 * java/security/acl/*.java: Likewise.
1708 * java/security/interfaces/*.java: Likewise.
1709 * java/security/spec/*.java: Likewise.
1710 * java/net/NetPermission.java: Likewise.
1711 * java/net/SocketPermission.java: Likewise.
1712 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1714 * Makefile.am: Add new classes.
1715 * Makefile.in: Rebuilt.
1716 * gcj/javaprims.h: CNI namespace rebuild.
1718 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1720 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1721 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1722 * configure: Rebuilt.
1724 2001-04-21 Tom Tromey <tromey@redhat.com>
1726 * Makefile.in: Rebuilt.
1727 * Makefile.am (awt_java_source_files): Added Line2D.java.
1728 * java/awt/geom/Line2D.java: Wrote.
1730 * java/awt/Menu.java (addNotify): Wrote.
1732 * java/awt/PopupMenu.java (addNotify): Implemented.
1735 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1736 * java/awt/List.java (addNotify): Call super.addNotify.
1737 * java/awt/Label.java (addNotify): Call super.addNotify.
1738 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1739 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1740 * java/awt/Choice.java (addNotify): Call super.addNotify.
1741 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1742 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1744 * java/awt/List.java (replaceItem): Notify peer.
1746 * java/awt/geom/Rectangle2D.java
1747 (Float.setRect(float,float,float,float)): New method.
1749 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1752 * java/awt/RenderingHints.java (Key): Class now public.
1754 * java/awt/Rectangle.java (Rectangle): Now implements
1756 (getPathIterator): Removed.
1758 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1761 * java/awt/FileDialog.java: Wrote.
1763 * java/awt/EventQueue.java (isDispatchThread): Now public.
1764 (invokeLater): Likewise.
1766 * java/awt/Component.java (setCursor): Update peer.
1767 (getFontMetrics): Use peer.
1769 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1772 2001-04-20 Tom Tromey <tromey@redhat.com>
1774 * java/awt/List.java: Wrote.
1775 * java/awt/Dialog.java: Wrote.
1777 2001-04-20 Warren Levy <warrenl@redhat.com>
1779 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1780 * java/text/SimpleDateFormat.java
1781 (indexInArray): Removed private method.
1782 (processYear): Removed private method.
1783 (parseLenient): Removed private method.
1784 (parseLeadingZeros): Removed private method.
1785 (parseStrict): Removed private method.
1786 (expect): Added new private method.
1787 (parse): Reverted to pre-Classpath merge version with minor fixes.
1788 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1791 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1793 * java/io/File.java (normalizePath): New private method.
1794 (File (String)): Use normalizePath().
1795 (File (String, String)): Likewise.
1797 * Makefile.am (libffi_files): Removed.
1798 (libgcj.la): Link libffi as a convenience library instead of
1799 refering to its object files directly.
1800 * Makefile.in: Rebuilt.
1802 2001-04-08 Per Bothner <per@bothner.com>
1804 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1805 Recalculate hash, since Utf8Const's hash is only 16 bits.
1807 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1808 bits of hash to calculate step for chaining.
1810 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1811 when 2/3 full, rather than 3/4 full.
1813 2001-04-06 Tom Tromey <tromey@redhat.com>
1815 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1816 (wrap_value<T*>): New specialization.
1817 (_Jv_JNI_PopLocalFrame): Update env->locals.
1819 2001-04-05 Tom Tromey <tromey@redhat.com>
1821 * libtool-version: Updated current.
1823 2001-04-04 Andreas Jaeger <aj@suse.de>
1825 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1826 * gcj/Makefile.in: Rebuilt.
1827 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1828 * Makefile.in: Rebuilt.
1829 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1830 * testsuite/Makefile.in: Rebuild.
1831 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1832 * include/Makefile.in: Rebuild.
1834 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1836 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1837 compiled test', not 'execution from source compiled test'.
1838 Use UNTESTED, not XFAIL, for tests which are not run because
1839 they depend on a previous test which failed.
1841 2001-04-02 Richard Henderson <rth@redhat.com>
1843 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1844 the same tree as gcc.
1845 * configure: Rebuilt.
1847 * exception.cc (_Jv_Throw): Clarify commentary.
1849 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1851 * jni.cc (wrap_value<jclass>): New specialization.
1853 2001-04-02 Tom Tromey <tromey@redhat.com>
1855 * java/io/PrintStream.java (out): Removed field. Fixes PR
1857 (write): Call flush, not out.flush, per spec.
1858 (close): Flush output stream, per spec. Handle
1859 InterruptedIOException.
1860 (checkError): Likewise.
1861 (flush, print, write): Handle InterruptedIOException per spec.
1862 (PrintStream): Don't create BufferedOutputStream.
1863 (work_bytes): New field.
1864 (writeChars): Use work_bytes. Don't assume `out' is a
1865 BufferedOutputStream.
1867 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1869 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1872 2001-03-30 Tom Tromey <tromey@redhat.com>
1874 * jni.cc (add_char): Correctly encode non-ascii characters.
1875 (add_char): Define even when INTERPRETER not defined.
1876 (mangled_name): Likewise.
1877 (_Jv_GetJNIEnvNewFrame): Likewise.
1878 (_Jv_LookupJNIMethod): Likewise.
1880 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1882 * configure.host: Enable interpreter for PPC.
1884 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1886 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1887 to "file.separator", "path.separator", and "java.io.tmpdir" property
1889 * java/io/File.java: Likewise.
1890 * java/io/natFile.cc (init_native): Likewise.
1891 * java/io/natFileWin32.cc (init_native): Likewise.
1893 2001-04-01 Per Bothner <per@bothner.com>
1895 * java/lang/natString.cc (intern): If string's data does not point to
1896 this String, make a fresh String that does.
1898 * java/lang/natString.cc (unintern): Replace by static function.
1899 * java/lang/String.java (unintern): Remove method.
1901 2001-04-01 Per Bothner <per@bothner.com>
1903 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1904 (finish): def.deflate needs to be called in a loop.
1905 (inbuf, inbufLength): New private fields.
1906 (write(int)): Use inbuf.
1907 (write(byte[],int,int): Check if pending output in inbuf.
1908 * ZipOutputStream.java: Don't use Deflater if stored.
1909 Use a Checksum object directly, not via a CheckedOutputStream.
1910 (uncompressed_size): New field,
1911 (closeEntry): Only write data_directory if needed.
1912 (write): If STORED, write directly.
1913 Always update crc, and uncompressed_size.
1914 (write_entry): Fix lots of protocol erors.
1916 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1918 1.3-Compliant Implementation of java.io.File.
1919 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1920 "path.separator", and "java.io.tmpdir" from the File class, instead
1921 of setting them explicitly.
1922 * java/io/File.java: Do not canonicalize paths for security manager
1923 checks. Call init_native() from static initializer. Do not pass path
1924 argument to native methods. New native method declarations. Some
1925 security manager checks moved to checkWrite().
1926 (equals): Check file system case sensitivity and act appropriatly.
1927 (hashCode): Likewise.
1928 (isHidden): New method implemented.
1929 (performList): Changed prototype. Now takes a class argument specifying
1930 the class of the returned array: Strings or File objects. Also added
1931 FileFilter argument.
1932 (listFiles): New variants with "File" return type implemented.
1933 (createTempFile): Use createNewFile(). Use maxPathLen.
1934 (setReadOnly): New method implemented.
1935 (listRoots): Likewise.
1936 (compareTo): Likewise.
1937 (setLastModified): Likewise.
1938 (checkWrite): New method.
1940 * java/io/natFile.cc: Various functions no longer take canonical path
1942 (stat): Handle ISHIDDEN query.
1943 (isAbsolute): Remove WIN32 cruft.
1944 (performList): New arguments. Handle returning either File[] or String[]
1945 arrays. Check with FileFilter or FilenameFilter arguments as
1946 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1947 (performSetReadOnly): New method implemented.
1948 (performListRoots): Likewise.
1949 (performSetLastModified): Likewise.
1950 (performCreate): Likewise.
1951 (init_native): New initialization function.
1952 * java/io/natFileWin32.cc: Various functions no longer take canonical
1954 (stat): Add FIXME about ISHIDDEN query.
1955 (performList): New arguments. Handle returning either File[] or String[]
1956 arrays. Check with FileFilter or FilenameFilter arguments as
1957 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1958 (performSetReadOnly): New. Stubbed.
1959 (performListRoots): Likewise.
1960 (performSetLastModified): Likewise.
1961 (performCreate): Likewise.
1962 (init_native) New initialization function.
1963 * configure.in: Check for utime() and chmod().
1964 * configure: Rebuilt.
1965 * include/config.h.in: Rebuilt.
1967 Resolves PR libgcj/1759.
1969 2001-03-28 Richard Henderson <rth@redhat.com>
1971 IA-64 ABI Exception Handling:
1972 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1973 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1974 Remove EXCEPTIONSPEC.
1975 * configure.host (libgcj_sjlj): Remove.
1976 * configure.in (EXCEPTIONSPEC): Remove.
1977 (enable-sjlj-exceptions): Detect if not specified.
1978 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1979 what header we're looking for.
1980 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1981 * Makefile.in, configure: Regenerate.
1982 * exception.cc: Don't declare libgcc2 stuff.
1983 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1984 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1985 (win32_get_restart_frame): Remove.
1986 (struct java_exception_header): New.
1987 (__gcj_exception_class): New.
1988 (get_exception_header_from_ue): New.
1989 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1990 (size_of_encoded_value, read_encoded_value): New.
1991 (read_uleb128, read_sleb128, parse_lsda_header): New.
1992 (get_ttype_entry, __gcj_personality_sj0): New.
1993 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1995 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1997 * javax/naming/InitialContext.java (init): Fix typo.
1998 (composeName): Remove unnecessary semicolon.
1999 (addToEnvironment): Remove unnecessary semicolon.
2000 (addToEnvironment): Use put() instead of add().
2002 * javax/naming/InitialContext.java (InitialContext):
2004 (destroySubcontext): Method doesn't return a result.
2005 * javax/naming/Context.java: Import java.util.Hashtable.
2006 * javax/naming/Name.java: Import java.util.Enumeration.
2008 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2010 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2011 objects in subdirectories.
2012 * Makefile.in: Rebuilt.
2014 2001-03-25 Richard Henderson <rth@redhat.com>
2016 * exception.cc (java_eh_info): Make value type jthrowable.
2017 (_Jv_type_matcher): Remove now unneeded cast.
2018 (_Jv_Throw): Make argument type jthrowable. Munge name
2019 for SJLJ_EXCEPTIONS here ...
2020 * gcj/cni.h: ... not here.
2022 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2024 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2025 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2026 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2027 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2028 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2029 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2030 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2031 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2032 java/lang/natDouble.cc, java/lang/natObject.cc,
2033 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2034 java/lang/natString.cc, java/lang/natSystem.cc,
2035 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2036 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2037 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2038 java/util/zip/natInflater.cc:
2039 Use throw, not JvThrow or _Jv_Throw.
2041 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2043 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2044 paramater, bump it to 1.
2045 * java/util/Hashtable.java (Hashtable): Likewise.
2047 2001-03-23 Per Bothner <per@bothner.com>
2049 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2050 check for errors, since we don't want to throw exception on
2051 overflow/underflow. Instead, trim whitespace, and then check that
2052 _strtod_r uses up all the rest of the string.
2054 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2055 ancestors array is invalid for interfaces, so do that *after*
2056 check that the target type is not an interface.
2058 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2060 * prims.cc (_Jv_FindClassFromSignature): Check return of
2061 recursive call. Do not abort on invalid signature; return NULL
2064 2001-03-22 Tom Tromey <tromey@redhat.com>
2066 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2067 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2069 * include/jvm.h (_Jv_ResolveField): Declare.
2070 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2071 * resolve.cc (_Jv_ResolveField): No longer conditional on
2074 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2076 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2077 for libtool hacking.
2078 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2079 to a temporary file, then invoke libtool with the -objectlist
2081 (libgcjx.la): Likewise.
2082 * Makefile.in: Rebuilt.
2084 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2086 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2088 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2090 * jni.cc (add_char): Handle `.' like `/'.
2092 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2094 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2095 initialize if exception_types is null.
2096 * java/lang/reflect/Constructor.java: Likewise.
2097 * java/lang/reflect/natConstructor.cc (getType): Initialize
2098 exception_types to an empty Object array.
2100 2001-03-21 Tom Tromey <tromey@redhat.com>
2102 * configure: Rebuilt.
2103 * configure.in (GCJFLAGS): Subst.
2104 * Makefile.in: Rebuilt.
2105 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2106 (gij_LDFLAGS): Likewise.
2107 (JC1FLAGS): Added GCJFLAGS and removed -g.
2109 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2110 read/write case. Fixes PR libgcj/2338.
2112 2001-03-20 Warren Levy <warrenl@redhat.com>
2114 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2115 and corrected SimpleTimeZone's for the timezones hash table.
2117 2001-03-19 Per Bothner <per@bothner.com>
2119 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2120 "canonicalize" "../../xxx" to "/xxx".
2122 2001-03-19 Mark Wielaard <mark@klomp.org>
2124 * java/util/ArrayList.java: Remove RCS keywords from comments
2125 * java/util/BasicMapEntry.java: idem
2126 * java/util/Dictionary.java: idem
2127 * java/util/HashSet.java: idem
2129 * java/util/EventObject.java: reindent
2130 * java/util/Properties.java: idem
2131 * java/util/SortedMap.java: idem
2133 * java/util/Enumeration.java: Merge with Classpath
2134 * java/util/EventListener.java: idem
2135 * java/util/Observable.java: idem
2136 * java/util/Observer.java: idem
2137 * java/util/Stack.java: idem
2139 2001-03-17 Tom Tromey <tromey@redhat.com>
2141 * java/lang/natString.cc (rehash): Don't bother with memset;
2142 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2144 (UNMASK_PTR): New macro.
2145 (intern): Unmask pointer before returning it. Register finalizer
2147 (unintern): Handle case where
2148 (MASK_PTR): New macro.
2149 (PTR_MAKSED): Likewise.
2150 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2152 2001-03-01 Andrew Haley <aph@redhat.com>
2154 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2155 stackTrace buffer to a correctly aligned pointer array.
2157 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2159 * java/lang/Runtime.java (_exit): Declare new package-private native.
2160 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2161 without a security manager check.
2162 (exit): Call _exit after security check.
2163 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2165 * java/lang/System.java (setSecurityManager): If a security manager
2166 is already in place, call checkPermission.
2167 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2168 throws an exception, try to deal with it gracefully.
2169 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2170 Only try to print the subordinate stack trace if "exception" is set.
2171 Print our class name first.
2173 2001-03-08 Tom Tromey <tromey@redhat.com>
2175 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2176 info for array classes.
2177 Fixes PR libgcj/1971.
2179 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2181 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2184 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2186 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2187 instead of the new JDK1.2 API. This is simpler and makes
2188 back-porting the classes to JDK1.1 trivial.
2189 (readObject): likewise.
2191 2001-03-01 Per Bothner <per@bothner.com>
2193 Changes merged from Kawa's gnu.math.
2194 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2195 (rshift(int[],int[],int,int): Removed - not needed.
2196 (gcd): Use rshift0 rather than rshift.
2197 * java/math/BigInteger.java (setShiftRight): Likewise.
2198 (divide): Simplify by using rshift0.
2199 (divide): Zero-extend results if high-order bit set.
2201 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2203 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2206 2001-02-23 Per Bothner <per@bothner.com>
2208 Change to sometimes include class name in ClassFormatError message.
2209 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2210 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2211 boolean instead of throwing ClassFormatError on failure.
2212 (throw_class_format_error): Change static function to method.
2213 (_Jv_ClassReader): New inline methods verify_identifier,
2214 two overloads of verify_classname, verify_field_signature, and
2215 verify_method_signature
2216 * include/java-interp.h: Update declarations to return bool.
2217 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2218 ClassFormatError since _Jv_VerifyClassName now returns bool.
2220 2001-02-23 Per Bothner <per@bothner.com>
2222 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2223 c++filt to select java-style output.
2225 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2227 Fix for PR java/2040:
2228 * java/util/HashMap.java (HashMap): Don't throw exception for
2229 loadFactor > 1. Add exception messages.
2230 * java/util/Hashtable.java (Hashtable): Likewise.
2232 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2234 Disable libgcjx by default.
2235 * configure.in: Add support for --enable-java-awt configure option.
2236 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2237 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2238 * Makefile.in: Rebuilt.
2239 * configure: Rebuilt.
2241 2001-02-20 Tom Tromey <tromey@redhat.com>
2243 * java/io/PipedWriter.java (flush): Throw exception if stream
2245 * java/io/OutputStreamWriter.java (write): Throw exception if
2247 (writeChars): Don't throw exception if stream closed.
2248 * java/io/CharArrayWriter.java (closed): New field.
2250 (flush): Throw exception if stream closed.
2251 (reset): Synchronize on correct lock. Allow stream to be
2253 (toCharArray, toString, writeTo): Synchronize.
2254 (write): Throwe exception if stream closed.
2255 * java/io/BufferedWriter.java (close): Clear `buffer'.
2256 (flush): Throw IOException if stream is closed.
2259 2001-02-16 Tom Tromey <tromey@cygnus.com>
2261 * java/lang/ThreadGroup.java (activeCount): Only include threads
2263 (enumerate): Likewise.
2265 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2267 * java/lang/Integer.java (getInteger): Return default argument if
2268 property is not set. Don't call decode with null argument.
2269 * java/lang/Long.java (getLong): Likewise.
2271 * java/io/CharArrayReader.java (CharArrayReader): Throw
2272 IllegalArgumentException if constructor arguments are illegal.
2273 (ready): Return false if no more characters can be read.
2274 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2276 2001-02-17 Mark Wielaard <mark@klomp.org>
2278 * java/util/TimerTask.java: New version from Classpath.
2280 2001-02-17 Mark Wielaard <mark@klomp.org>
2282 Remerge with Classpath
2283 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2284 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2285 (readByte): Use convertToByte().
2286 (readChar): Use convertToChar().
2287 (readInt): Use convertToInt().
2288 (readLong): Use convertToLong().
2289 (readShort): Use convertToShort().
2290 (readUnsignedByte): Use convertToUnsignedByte().
2291 (readUnsignedShort): Use convertToUnsignedShort().
2292 (readUTF): Use convertToUTF().
2294 (convertToBoolean): Resurrected.
2295 (convertToByte): Ditto.
2296 (convertToChar): Ditto.
2297 (convertToInt): Ditto.
2298 (convertToLong): Ditto.
2299 (convertToShort): Ditto.
2300 (convertToUnsignedByte): Ditto.
2301 (convertToUnsignedShort): Ditto.
2302 (convertToUTF): Ditto.
2304 2001-02-17 Mark Wielaard <mark@klomp.org>
2308 2001-02-17 Mark Wielaard <mark@klomp.org>
2310 * java/io/DataInputStream.java: update copyright notice
2311 * java/io/PrintWriter.java: idem
2312 * java/io/Reader.java: idem
2313 * java/io/StreamTokenizer.java: idem
2314 * java/io/StringReader.java: idem
2315 * java/lang/reflect/ReflectPermission.java: idem
2317 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2319 * java/util/TreeSet.java (clone): Made subclass safe, use
2320 super.clone(), not new.
2321 * java/util/TreeMap.java (clone): Likewise.
2323 * java/util/TreeMap.java (nil): Made non-final.
2324 (clone): Create new nil node for copy.
2326 * java/util/HashSet.java (clone): Made subclass safe, use
2327 super.clone(), not new.
2329 2001-02-14 Andrew Haley <aph@redhat.com>
2331 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2334 2001-02-15 Anthony Green <green@redhat.com>
2336 * defineclass.cc: Don't include alloca.h.
2337 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2338 * interpret.cc (run_normal): Ditto.
2340 * java/lang/natDouble.cc (parseDouble): Ditto.
2342 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2344 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2346 * java/util/Collections.java (ReverseComparator): New static class.
2347 (reverseOrder): Return static instance of ReverseComparator.
2349 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2350 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2351 Rectangle.clone(), not Object.clone().
2353 * java/util/HashSet.java (clone): Remove try/catch.
2355 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2356 * java/util/Collection.java: Likewise.
2357 * java/util/Comparator.java: Likewise.
2358 * java/util/Dictionary.java: Likewise.
2359 * java/util/Iterator.java: Likewise.
2360 * java/util/ListIterator.java: Likewise.
2361 * java/util/Map.java: Likewise.
2362 * java/util/Set.java: Likewise.
2364 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2366 * java/util/TreeMap.java: New file.
2367 * java/util/TreeSet.java: New file.
2368 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2369 * Makefile.in: Rebuilt.
2370 * java/util/HashSet.java (clone): Use constructor instead of calling
2372 * java/util/SortedSet.java: Sync with classpath.
2373 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2376 * java/lang/natClass.cc (getSignature): Don't try to dereference
2377 param_types if it is null. Instead, take this to mean "no parameters".
2378 * java/lang/TreeMap.java (TreeIterator.next): Throw
2379 NoSuchElementException in preference to ConcurrentModificationException.
2380 (TreeIterator.remove): Throw IllegalStateException in preference to
2381 ConcurrentModificationException.
2382 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2383 throw a NoSuchElementException.
2384 (SubMap.lastKey): Likewise.
2386 2001-02-13 Tom Tromey <tromey@redhat.com>
2388 * java/io/PipedReader.java (ready): Throw IOException if pipe
2390 * java/io/FilterReader.java (close): Don't clear `in'.
2391 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2393 (read, ready, reset, skip): Added exception message.
2394 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2395 Perform checkStatus check inside synchronized block.
2397 2001-02-13 Tom Tromey <tromey@redhat.com>
2399 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2401 2001-02-13 Tom Tromey <tromey@redhat.com>
2403 Fix for PR libgcj/1351:
2404 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2406 Include Thread.h and InterruptedIOException.h.
2408 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2410 * java/io/BlockDataException.java: Removed.
2411 * java/io/ObjectInputStream.java (readObject): Throw
2412 StreamCorruptedException, not BlockDataException.
2413 * Makefile.am: Remove BlockDataException.
2414 * Makefile.in: Rebuild.
2416 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2417 Tom Tromey <tromey@redhat.com>
2419 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2422 2001-02-09 Tom Tromey <tromey@redhat.com>
2424 * java/util/Timer.java: New version from Classpath.
2426 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2428 * java/lang/Double.java (doubleToRawLongBits): Now native.
2429 * java/lang/Float.java (floatToRawIntBits): Likewise.
2430 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2431 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2433 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2435 * java/io/File.java (java.net): Imported.
2436 (getAbsoluteFile): Added.
2437 (getCanonicalPath): Likewise.
2440 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2442 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2443 * java/lang/Integer.java: Likewise.
2444 * java/lang/Long.java: Likewise.
2445 * java/lang/Short.java: Likewise.
2446 * java/lang/Double.java: Likewise.
2447 (doubleToRawLongBits): New method.
2448 * java/lang/Float.java: As above.
2449 (floatToRawIntBits): New method.
2451 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2452 IOException if stream closed.
2454 2001-02-08 Tom Tromey <tromey@redhat.com>
2456 * java/lang/Float.java (parseFloat): New method.
2458 2001-02-08 Tom Tromey <tromey@redhat.com>
2460 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2461 * java/io/InputStreamReader.java (ready, read): Throw IOException
2462 if stream has been closed.
2464 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2466 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2467 Change sources.redhat.com and sourceware.cygnus.com references to
2470 2001-02-07 Tom Tromey <tromey@redhat.com>
2472 Fix for PR libgcj/1906:
2473 * java/text/MessageFormat.java (setLocale): Use named class
2476 (format(Object,StringBuffer,FieldPosition)): Special case if
2477 argument is an Object[].
2479 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2481 * java/util/Arrays.java: Removed "cmp" methods.
2482 (qsort): Don't use "cmp".
2485 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2487 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2488 sort. Fix for PR java/1895.
2490 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2492 * configure.host: Use sjlj-exceptions for Alpha.
2494 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2496 * libgcj.spec.in: Don't force static libgcc into the executable.
2497 * configure.in (FORCELIBGCCSPEC): Removed.
2498 * configure: Rebuilt.
2500 2001-01-31 Tom Tromey <tromey@redhat.com>
2502 * Makefile.in: Rebuilt.
2503 * Makefile.am (LTCXXCOMPILE): New macro.
2505 2001-01-26 Andrew Haley <aph@redhat.com>
2507 (INIT_FPE): Use a direct system call to set the handler.
2509 2001-01-27 Richard Henderson <rth@redhat.com>
2511 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2513 2001-01-27 Tom Tromey <tromey@redhat.com>
2515 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2516 native interface structure.
2518 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2520 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2522 (read (byte[], int, int)): Only call readNextBlock() if the block
2523 buffer would actually be overrun. Increment blockDataPosition.
2524 (callReadMethod): Propagate exceptions from invocation target.
2525 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2526 exceptions from invocation target.
2528 2001-01-26 Tom Tromey <tromey@redhat.com>
2530 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2531 to internal representation.
2532 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2533 _Jv_FindClassFromSignature.
2535 2001-01-26 Warren Levy <warrenl@redhat.com>
2537 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2538 and timezone if they are available on the system.
2540 2001-01-24 Tom Tromey <tromey@redhat.com>
2542 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2544 2001-01-24 Tom Tromey <tromey@redhat.com>
2546 * Makefile.in: Rebuilt.
2547 * Makefile.am (c_source_files): Added sf_fabs.c.
2548 * java/lang/sf_fabs.c: New file.
2550 2001-01-19 Warren Levy <warrenl@redhat.com>
2552 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2553 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2554 correctly. Adjust properly from 0-23 clock hour.
2556 2001-01-17 Mark Wielaard <mark@klomp.org>
2558 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2560 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2562 * java/lang/Class.h (isInterface): Move implementation from
2563 natClass.cc. Declare inline.
2564 (Class): Add default constructor.
2565 * java/lang/Object.h: Update comments.
2566 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2567 initialize superclass, saving a call if super is already initialized.
2569 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2571 * prims.cc (init_prim_class): Deleted.
2572 (DECLARE_PRIM_TYPE): Rewritten.
2573 * java/lang/Class.h (stdio.h): Include removed.
2574 (stddef.h): Included.
2575 (java/lang/reflect/Modifier.h): Likewise.
2576 (Class): Contructor now takes arguments, initializes fields.
2577 (initializePrim): Prototype deleted.
2578 * java/lang/natClass.cc (initializePrim): Deleted.
2580 2001-01-16 Warren Levy <warrenl@redhat.com>
2582 * java/math/BigInteger.java: Update Copyright year.
2584 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2586 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2589 2001-01-14 Mark Wielaard <mark@klomp.org>
2590 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2591 (decode): Merge comments with Classpath, don't throw Exception
2593 2001-01-12 Tom Tromey <tromey@redhat.com>
2595 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2599 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2600 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2601 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2602 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2603 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2605 * java/lang/natSystem.cc: Include locale.h if it exists.
2606 * configure: Rebuilt.
2607 * configure.in: Check for locale.h.
2609 2001-01-11 Tom Tromey <tromey@redhat.com>
2611 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2612 (Cursor(int), getPredefinedCursor): Throw exception if argument
2615 2001-01-03 Tom Tromey <tromey@redhat.com>
2617 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2618 (getLocationOnScreen): Wrote.
2620 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2622 * Makefile.am: Re-enable dependencies.
2623 * Makefile.in: Rebuilt.
2625 2001-01-10 Warren Levy <warrenl@redhat.com>
2627 * java/math/BigDecimal.java (divide): Fixed comment.
2629 2001-01-10 Warren Levy <warrenl@redhat.com>
2631 Fix for PR libgcj/1596:
2632 * java/math/BigDecimal.java (divide): Check newScale for validity.
2633 Ensure that BigInteger.pow() is called with a non-negative value.
2634 (setScale (int)): New public method.
2635 (setScale (int,int)): New public method.
2637 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2639 Fix for PR libgcj/1338:
2640 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2641 commentChar. Fixed typos in comments.
2643 2001-01-08 Warren Levy <warrenl@redhat.com>
2645 Fix for PR libgcj/1411:
2646 * Makefile.am: Removed java/util/natTimeZone.cc.
2647 * Makefile.in: Rebuilt.
2648 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2649 missing localized timezone names.
2650 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2651 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2652 (init_properties): Set user.timezone property.
2653 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2654 default timezone names; removed non-standard ones. Use standard
2656 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2658 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2660 (getDefaultTimeZoneId): Removed.
2662 * java/util/natTimeZone.cc: Removed.
2664 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2666 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2667 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2668 (_Jv_GetArrayClass): New inline function.
2669 (arrayclass): New field.
2670 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2671 _Jv_GetArrayElementFromElementType.
2672 (_Jv_NewPrimArray): Ditto.
2673 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2674 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2675 Set Modifier::ABSTRACT.
2676 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2677 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2678 Now synchronized. Array classes are now referenced from
2679 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2680 Set array classes' accessibility flags correctly. Optimize so that
2681 all array classes share the same IDT.
2682 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2683 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2684 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2685 in superclasses from overwriting classes own fields.
2686 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2687 Modifier::isAbstract().
2688 (null_idt): New static field.
2689 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2691 (_Jv_IndexOf): Made inline.
2692 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2694 2001-01-08 Tom Tromey <tromey@redhat.com>
2696 Fix for PR java/1586:
2697 * Makefile.in: Rebuilt.
2698 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2700 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2702 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2703 from the c++ compiler.
2704 * Makefile.in: Rebuilt.
2706 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2708 All files with updated copyright.
2709 * prims.cc (class _Jv_PrimClass): Removed.
2710 (init_prim_class): New function.
2711 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2712 `_Jv_PrimClass' in primitive type declarations. Assign to the
2713 value returned by `init_prim_class.'
2714 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2715 primitive type declarations.
2716 (JvPrimClass): Cast to `jclass' removed.
2717 * java/lang/Class.h (Class): New constructor.
2718 (Class): New copy constructor.
2719 (initializePrim): New prototype.
2720 (_Jv_PrimClass): Field removed.
2721 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2722 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2723 (class java::lang::Object): `finalize' moved up front.
2724 * java/lang/natClass.cc
2725 (isAssignableFrom): Turned outline.
2726 (isInstance): Likewise.
2727 (isInterface): Likewise, fixed indentation.
2728 (initializePrim): New function.
2730 2001-01-07 Anthony Green <green@redhat.com>
2732 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2734 * Makefile.in: Rebuilt.
2736 * scripts/TexinfoDoclet.java: New file.
2738 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2739 doc/java-awt-color.texi, doc/java-lang.texi,
2740 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2741 doc/java-awt-event.texi, doc/java-net.texi,
2742 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2743 doc/java-awt-image.texi, doc/java-security.texi,
2744 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2745 doc/java-text.texi, doc/java-beans-beancontext.texi,
2746 doc/java-util-jar.texi, doc/java-beans.texi,
2747 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2748 doc/java-lang-ref.texi: New files.
2750 2001-01-07 Anthony Green <green@redhat.com>
2752 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2753 be used for both input and output, so don't clear doInput.
2755 * java/lang/StringBuffer.java: Fix comments.
2757 2001-01-06 Anthony Green <green@redhat.com>
2759 * java/beans/PropertyDescriptor.java: Fix comment.
2760 * java/io/PushbackReader.java: Fix comment.
2761 * java/io/ObjectStreamClass.java: Fix comment.
2762 * java/io/DataInputStream.java: Fix comment.
2763 * java/io/PipedInputStream.java: Fix comments.
2764 * java/io/PipedReader.java: Fix comments.
2765 * java/sql/DatabaseMetaData.java: Fix comments.
2767 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2769 * java/io/PipedReader: Synchronize on "lock" instead of this.
2771 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2773 * java/lang/Thread.java: Update comment.
2775 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2776 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2777 * java/io/PipedReader: New implementation based on new
2779 * java/io/PipedWriter: Updated to match new PipedReader.
2781 2001-01-03 Tom Tromey <tromey@redhat.com>
2783 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2784 (getViewportSize): Insets include scrollbar size.
2785 (doLayout): Finished.
2786 (getScrollPosition): Wrote.
2787 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2789 2001-01-02 Tom Tromey <tromey@redhat.com>
2791 * java/awt/ScrollPane.java: Wrote.
2792 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2795 * java/awt/Panel.java (Panel()): Fixed.
2797 * java/awt/Component.java (isShowing): Return false if no peer
2798 exists, and true if component is visible and no parent exists.
2799 (getLocationOnScreen): Wrote.
2800 (getPreferredSize): Removed FIXME comment.
2801 (getMinimumSize): Likewise.
2802 (getAlignmentX, getAlignmentY): Wrote.
2804 (requestFocus): Wrote.
2805 (transferFocus): Wrote.
2806 (findNextFocusComponent): New method.
2807 (hasFocus()): Wrote.
2808 (checkImage): Wrote.
2809 (enableEvents): Call setEventMask on the peer.
2811 * java/awt/Container.java (list): Use super.list() to print self.
2812 (findNextFocusComponent): New method.
2813 (setLayout): Call invalidate.
2814 (findComponentAt): Wrote.
2816 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2818 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2819 the correct versions of various linuxthreads functions get linked.
2820 * Makefile.in: Rebuilt.
2821 * java/lang/natThread.cc (finalize_native): New static function. Call
2822 _Jv_ThreadDestroyData.
2823 (initialize_native): Register finalizer for "data".
2824 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2825 (_Jv_ThreadDestroyData): New prototype.
2826 * include/win32-threads.h: Ditto.
2827 * include/no-threads.h: Ditto.
2828 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2829 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2830 move mutex and condition variable destroy code from:
2831 (really_start): ...here.
2832 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2833 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2834 (_Jv_ThreadDestroyData): Implemented.
2835 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2836 (_Jv_AllocArray): Ditto.
2838 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2840 * java/sql/DriverManager.java (getConnection): Don't set user/password
2843 2000-12-27 Warren Levy <warrenl@redhat.com>
2845 Fix for PR libgcj/1358:
2846 * java/lang/System.java: Update Copyright date properly.
2847 * java/util/Calendar.java: Fix typo in comment.
2848 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2849 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2850 initialize times. Spec says to set H:M:S values to zero only if
2852 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2853 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2854 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2855 timezones and GMT offsets, being careful to account for units of
2856 milliseconds vs. seconds.
2858 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2860 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2861 not be assigned to Object.
2863 Fix for PR libgcj/1516:
2864 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2866 (can_widen): Declared inline. Remove redundant checks for void
2867 arguments and char->short conversion. Add special case for boolean
2869 (ffi_type): Declared inline.
2870 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2872 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2874 * java/sql/SQLWarning.java: Fixed typo in comment.
2876 2000-12-26 Tom Tromey <tromey@redhat.com>
2878 * java/awt/MenuItem.java (paramString): Now protected.
2880 * java/awt/MenuShortcut.java: Implements Serializable.
2882 * java/awt/MenuBar.java: Rewrote from scratch.
2884 * java/awt/MenuComponent.java (removeNotify): Wrote.
2885 Implements Serializable.
2887 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2890 * java/awt/CheckboxMenuItem.java: Wrote.
2892 2000-12-25 Tom Tromey <tromey@redhat.com>
2894 * java/awt/MenuContainer.java: Fixed typo.
2896 * Makefile.in: Rebuilt.
2897 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2898 * java/awt/SystemColor.java: New file.
2900 * java/awt/Color.java (rgba): Now package-private.
2902 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2904 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2907 * java/awt/MenuItem.java (addNotify): New method.
2908 (MenuItem(String,MenuShortcut)): New constructor.
2909 (setLabel): Notify peer of change.
2910 (setEnabled): Likewise.
2912 * java/awt/GridLayout.java (toString): New method.
2914 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2915 (FlowLayout): Check for LEADING and TRAILING.
2916 (setAlignment): Likewise.
2917 (layoutContainer): Handle component orientation.
2919 * java/awt/Component.java (orientatin): New field.
2920 (setComponentOrientation): Wrote.
2921 (getComponentOrientation): Wrote.
2923 * java/awt/Event.java (Event): Implements Serializable.
2924 (consumed): New field for serialization.
2925 * java/awt/Dimension.java (Dimension): Implements Serializable.
2926 * java/awt/Cursor.java (Cursor): Implements Serializable.
2927 * java/awt/Container.java (Container): No longer abstract.
2929 * java/awt/Choice.java: Wrote.
2930 * java/awt/Checkbox.java: Wrote.
2931 * java/awt/ItemSelectable.java: Documented.
2932 * java/awt/CheckboxGroup.java: Wrote.
2934 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2936 (getSize): Likewise.
2938 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2940 * java/io/FileDescriptor.java: Initialize fd to -1.
2941 Remove default constructor.
2943 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2945 * java/lang/mprec.h: Change C9X reference to refer to C99.
2947 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2949 * java/lang/Throwable.java (trace_enabled): New static field.
2950 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2951 trace_enabled not set.
2952 * prims.cc (main_init): Turn off trace_enabled while creating
2953 default exception objects.
2955 2000-12-21 Tom Tromey <tromey@redhat.com>
2957 * java/beans/PropertyChangeListener.java: Extends EventListener.
2958 * java/beans/VetoableChangeListener.java: Extends EventListener.
2960 * java/util/zip/Deflater.java (update, init): Now private.
2962 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2964 * java/util/BasicMapEntry.java: Re-added.
2965 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2966 (putAll): Test for BasicMapEntry.
2967 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2968 (putAll): Test for BasicMapEntry.
2969 Change references from `HashMap.Entry' to `Entry' in various places.
2970 * Makefile.am: Add BasicMapEntry.java.
2971 * Makefile.in: Rebuilt.
2973 2000-12-18 Warren Levy <warrenl@redhat.com>
2975 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2976 need to set timezone to a valid non-null value. Partial fix for
2979 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2981 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2983 * java/awt/Button.java (addNotify): Likewise.
2984 * java/awt/Label.java (addNotify): Likewise.
2985 * java/awt/Panel.java (addNotify): Likewise.
2986 * java/awt/Scrollbar.java (addNotify): Likewise.
2987 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2988 Remove redundant null checks.
2990 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2992 * COPYING: Update to current
2993 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2994 to 19yy as example year in copyright notice).
2996 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2998 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2999 end-of-stream if avail_in is 0.
3001 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3003 * java/util/ArrayList.java (data): Declare transient.
3004 (serialPersistantFields): Removed.
3005 (readObject): Use defaultReadObject(), not readFields().
3006 (writeObject): Use defaultWriteObject(), not writeFields().
3008 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3010 * java/util/Hashtable.java (put): Remove `last' variable.
3011 Link new entry to head of list.
3012 * java/util/HashMap.java (put): Ditto.
3014 2000-12-15 Tom Tromey <tromey@redhat.com>
3016 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3017 loader to Class.forName.
3019 2000-12-14 Tom Tromey <tromey@redhat.com>
3021 * java/util/ResourceBundle.java
3022 (getBundle(String,Locale,ClassLoader)): New method.
3023 (trySomeGetBundle): Added `loader' argument.
3024 (partialGetBundle): Likewise.
3026 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3027 maximumFractionDigits, maximumIntegerDigits,
3028 minimumFractionDigits, minimumIntegerDigits): Now
3031 * java/lang/Thread.java (checkAccess): Now final.
3033 * java/lang/RuntimePermission.java: Class now final.
3035 * java/io/StringWriter.java (StringWriter(int)): Now public.
3037 * java/io/SerializablePermission.java (legal_names): Now private.
3039 * java/lang/Character.java: Updated UnicodeBlock constants.
3040 * scripts/blocks.pl: Special case private use and surrogate
3043 2000-12-12 Tom Tromey <tromey@redhat.com>
3045 * Makefile.in: Rebuilt.
3046 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3048 (GCJCOMPILE): Use it.
3051 2000-12-11 Tom Tromey <tromey@redhat.com>
3053 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3054 New static final fields.
3056 * scripts/classes.pl (scan): Skip lines with leading `*'.
3057 Fix for PR libgcj/378.
3059 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3061 * configure.in: Remove check for -fuse-divide-subroutine.
3062 * configure: Rebuilt.
3064 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3066 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3068 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3070 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3071 Remove BasicMapEntry.java and Bucket.java.
3072 * Makefile.in: Rebuilt.
3073 * java/util/HashMap.java: Rewritten.
3074 * java/util/HashSet.java: Imported from classpath.
3075 * java/util/WeakHashMap.java: Imported from classpath.
3076 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3077 * java/util/Bucket.java: Deleted.
3078 * java/util/BasicMapEntry.java: Deleted.
3079 * java/util/Collections.java (search): Use a for-loop, not iterator
3081 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3082 of elements in source.
3083 (max): Use a for-loop.
3085 (reverse): Keep track of positions instead of using Iterator's
3086 nextIndex() and previousIndex().
3087 (shuffle(List)): Initialize defaultRandom if required using
3088 double-check thread safety idiom. Call two-argument shuffle method
3089 using defaultRandom.
3090 (defaultRandom): New field.
3091 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3092 using previousIndex() and nextIndex().
3093 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3094 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3095 * java/util/AbstractMap.java (toString): Use StringBuffer.
3096 * java/lang/ref/PhantomReference.java: Imported from classpath.
3097 * java/lang/ref/SoftReference.java: Ditto.
3098 * java/lang/ref/Reference.java: Ditto.
3099 * java/lang/ref/WeakReference.java: Ditto.
3100 * java/lang/ref/ReferenceQueue.java: Ditto.
3102 2000-12-10 Richard Henderson <rth@redhat.com>
3104 * configure.host: Recognize alpha*-*, not alphaev6-*.
3106 2000-12-09 Anthony Green <green@redhat.com>
3108 * configure.host: Enable interpreter for Alpha.
3110 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3112 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3113 (ZIP): Points at fastjar instead of zip.
3114 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3115 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3116 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3117 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3118 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3119 ($(x_java_source_files:.java=.class):): Likewise.
3120 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3122 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3123 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3124 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3125 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3126 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3127 gnu/gcj/runtime/VMClassLoader.h:,
3128 java/io/ObjectInputStream$$GetField.h:,
3129 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3130 (Makefile.in): Rebuilt.
3132 2000-12-08 Tom Tromey <tromey@redhat.com>
3135 * configure: Rebuilt.
3136 * configure.in: Use echo, not `:', to create .d files.
3138 2000-12-08 Warren Levy <warrenl@redhat.com>
3140 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3141 NullPointerException so proper check of offset can be done.
3143 2000-12-08 Warren Levy <warrenl@redhat.com>
3145 * java/io/FileInputStream.java (close): Check if the fd is valid.
3146 * java/io/RandomAccessFile.java (close): Ditto.
3147 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3148 * java/net/PlainSocketImpl.java (close): Ditto.
3150 2000-12-06 Tom Tromey <tromey@redhat.com>
3152 * java/awt/GridBagConstraints.java: Filled in values for static
3155 * java/util/BitSet.java: Updated copyright notice.
3157 * Makefile.in: Rebuilt.
3158 * Makefile.am (awt_java_source_files): Added new file.
3159 * java/awt/GridBagConstraints.java: New file.
3161 2000-12-05 Tom Tromey <tromey@redhat.com>
3163 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3164 Now package-private, not protected.
3165 * java/text/DateFormatSymbols.java (equals): Now private.
3166 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3167 * java/util/BitSet.java: Class no longer final.
3169 2000-12-04 Warren Levy <warrenl@redhat.com>
3171 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3172 out code dependent on compiler and library changes.
3174 2000-12-04 Warren Levy <warrenl@redhat.com>
3176 * java/io/FilePermission.java: Made class final per spec.
3177 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3178 method name to match spec (fixed typo).
3179 * java/util/LinkedList.java: Implements List.
3181 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3183 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3184 Edgar Villanueva <edgarvil@home.com>.
3186 2000-12-03 Tom Tromey <tromey@redhat.com>
3188 * java/awt/geom/Point2D.java: Added protected constructor.
3189 (equals): New method.
3190 (Float.setLocation(float,float)): New method.
3191 * java/awt/geom/Dimension2D.java: Added protected constructor.
3192 * java/awt/geom/AffineTransform.java: Made all constants public.
3193 (concatenate): Fixed typo in name.
3194 * java/awt/event/WindowAdapter.java: Class now abstract.
3195 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3196 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3199 * java/awt/AWTError.java: Extend Error, not
3200 IllegalStateException.
3202 * Makefile.in: Rebuilt.
3203 * Makefile.am (awt_java_source_files): Added new file.
3204 * java/awt/geom/RoundRectangle2D.java: New file.
3206 * Makefile.in: Rebuilt.
3207 * Makefile.am (awt_java_source_files): Added new file.
3208 * java/awt/FlowLayout.java: New file.
3210 * Makefile.in: Rebuilt.
3211 * Makefile.am (awt_java_source_files): Added new file.
3212 * java/awt/GridLayout.java: New file.
3214 2000-12-02 Tom Tromey <tromey@redhat.com>
3216 * Makefile.in: Rebuilt.
3217 * Makefile.am (awt_java_source_files): Added new files.
3218 * java/awt/CardLayout.java: New file.
3219 * java/awt/AWTPermission.java: New file.
3221 2000-12-01 Tom Tromey <tromey@redhat.com>
3223 * java/util/Vector.java (insertElementAt): Unconditionally
3224 increment elementCount.
3225 (removeRange): Clear unused slots in vector.
3227 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3229 * java/lang/natMath.cc: Declare fabsf() function.
3230 * java/lang/mprec.h: Don't include math.h.
3231 * java/lang/dtoa.c: Include string.h.
3232 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3235 From Adam Welc <welc@cs.purdue.edu>:
3236 * java/util/LinkedList.java (removeFirst): Update `first' field.
3237 Handle the last == first case.
3238 (removeLast): Update `last' field. Handle the last == first case.
3240 2000-12-01 Warren Levy <warrenl@cygnus.com>
3242 * Makefile.am: Added entries for new java.sql modules.
3243 * Makefile.in: Rebuilt.
3245 2000-12-01 Warren Levy <warrenl@cygnus.com>
3247 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3248 that aren't quite 1.2 compatible yet.
3250 2000-11-30 Warren Levy <warrenl@cygnus.com>
3252 * java/sql/Array.java: New file from classpath.
3253 * java/sql/BatchUpdateException.java: Ditto.
3254 * java/sql/Blob.java: Ditto.
3255 * java/sql/Clob.java: Ditto.
3256 * java/sql/Ref.java: Ditto.
3257 * java/sql/SQLData.java: Ditto.
3258 * java/sql/SQLInput.java: Ditto.
3259 * java/sql/SQLOutput.java: Ditto.
3260 * java/sql/Struct.java: Ditto.
3261 * java/sql/CallableStatement.java: Merged file from claspath.
3262 * java/sql/Connection.java: Ditto.
3263 * java/sql/DataTruncation.java: Ditto.
3264 * java/sql/DatabaseMetaData.java: Ditto.
3265 * java/sql/DriverManager.java: Ditto.
3266 * java/sql/PreparedStatement.java: Ditto.
3267 * java/sql/ResultSet.java: Ditto.
3268 * java/sql/ResultSetMetaData.java: Ditto.
3269 * java/sql/SQLException.java: Ditto.
3270 * java/sql/SQLWarning.java: Ditto.
3271 * java/sql/Statement.java: Ditto.
3272 * java/sql/Types.java: Ditto.
3274 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3276 * java/lang/natSystem.cc (init_properties): Set user.language and
3278 * configure.in: Check for setlocale.
3279 * configure: Rebuilt.
3280 * include/config.h.in: Rebuilt.
3282 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3283 the infate() call didn't deliver any output. Throw a ZipException if
3284 the needsDictionary() call returns true.
3285 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3286 * java/io/InputStreamReader: Use the default buffer size for the
3287 contained BufferedInputStream.
3289 2000-11-28 Warren Levy <warrenl@cygnus.com>
3291 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3292 more time zone entries.
3293 * java/text/SimpleDateFormat.java (format): Added case for
3296 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3298 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3299 directly rather than read() in all cases. Make primitive read
3300 implementations more efficient, as defined in JDK online docs.
3301 (skipBytes): Behave like the JDK's implementation.
3302 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3303 closed stream with checkStatus() whenever an IOException can be
3305 (checkStatus): New private method.
3307 2000-11-27 Warren Levy <warrenl@cygnus.com>
3309 * Makefile.am: Added natTimeZone.cc.
3310 * Makefile.in: Rebuilt.
3311 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3312 * java/text/DateFormatSymbols.java (ampms): Made package private.
3313 (eras): Made package private.
3314 (months): Made package private.
3315 (shortMonths): Made package private.
3316 (shortWeekdays): Made package private.
3317 (weekdays): Made package private.
3318 (formatPrefixes): New private field.
3319 (localPatternCharsDefault): Made private.
3320 (dateFormats): New package private field.
3321 (timeFormats): New package private field.
3322 (formatsForKey): New private method.
3323 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3324 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3325 * java/text/SimpleDateFormat.java: Merged with Classpath.
3326 * java/util/TimeZone.java: Merged with Classpath.
3327 * java/util/natTimeZone.cc: New file.
3329 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3331 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3332 (addElement): Don't increment elementCount twice. Doh.
3333 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3334 array needs to be expanded.
3336 * java/util/Collections.java (UnmodifiableCollection): Implement
3338 (UnmodifiableList): Throw UnsupportedOperationException from
3339 modification methods. Set `l' from the one-parameter constructor.
3340 (UnmodifiableMap): Implement toString().
3341 (SynchronizedCollection): Ditto.
3342 (SynchronizedList): Set `l' from the one-parameter constructor.
3343 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3344 (SynchronizedMap): Implement toString().
3346 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3348 * javax/naming/NameParser.java,
3349 javax/naming/directory/AttributeInUseException.java,
3350 javax/naming/directory/AttributeModificationException.java,
3351 javax/naming/directory/InvalidAttributeIdentifierException.java,
3352 javax/naming/directory/InvalidAttributesException.java,
3353 javax/naming/directory/InvalidAttributeValueException.java,
3354 javax/naming/directory/InvalidSearchControlsException.java,
3355 javax/naming/directory/InvalidSearchFilterException.java,
3356 javax/naming/directory/NoSuchAttributeException.java,
3357 javax/naming/directory/SchemaViolationException.java: New files.
3359 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3361 * javax/naming/InitialContext.java (rebind): Implement.
3362 (unbind): Implement.
3363 (rename): Implement.
3365 (listBindings): Implement.
3366 (destroySubcontext): Implement.
3367 (createSubcontext): Implement.
3368 (lookupLink): Implement.
3369 (getNameParser): Implement.
3370 (composeName): Implement.
3371 (addToEnvironment): Implement.
3373 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3375 * javax/naming/AuthenticationException.java,
3376 javax/naming/AuthenticationNotSupportedException.java,
3377 javax/naming/CannotProceedException.java,
3378 javax/naming/CommunicationException.java,
3379 javax/naming/ConfigurationException.java,
3380 javax/naming/ContextNotEmptyException.java,
3381 javax/naming/InsufficientResourcesException.java,
3382 javax/naming/InterruptedNamingException.java,
3383 javax/naming/InvalidNameException.java,
3384 javax/naming/LimitExceededException.java,
3385 javax/naming/LinkException.java,
3386 javax/naming/LinkLoopException.java,
3387 javax/naming/MalformedLinkException.java,
3388 javax/naming/NameAlreadyBoundException.java,
3389 javax/naming/NameNotFoundException.java,
3390 javax/naming/NamingSecurityException.java,
3391 javax/naming/NoPermissionException.java,
3392 javax/naming/NotContextException.java,
3393 javax/naming/PartialResultException.java,
3394 javax/naming/ReferralException.java,
3395 javax/naming/ServiceUnavailableException.java,
3396 javax/naming/SizeLimitExceededException.java,
3397 javax/naming/TimeLimitExceededException.java: New files.
3399 * javax/naming/Name.java (clone): New method.
3400 (compareTo): New method.
3401 (isEmpty): New method.
3402 (getAll): New method.
3403 (getPrefix): New method.
3404 (getSuffix): New method.
3405 (startsWith): New method.
3406 (endsWith): New method.
3407 (addAll): New method.
3408 (addAll): New method.
3411 (remove): New method.
3413 * javax/naming/Context.java (lookup): New method.
3414 (rebind): New method.
3415 (unbind): New method.
3416 (rename): New method.
3418 (listBindings): New method.
3419 (destroySubcontext): New method.
3420 (createSubcontext): New method.
3421 (lookupLink): New method.
3422 (getNameParser): New method.
3423 (composeName): New method.
3424 (addToEnvironment): New method.
3425 (removeFromEnvironment): New method.
3426 (getEnvironment): New method.
3427 (close): New method.
3428 (getNameInNamespace): New method.
3430 * javax/naming/InitialContext.java (lookup): New method.
3431 (rebind): New method.
3432 (unbind): New method.
3433 (rename): New method.
3435 (listBindings): New method.
3436 (destroySubcontext): New method.
3437 (createSubcontext): New method.
3438 (lookupLink): New method.
3439 (getNameParser): New method.
3440 (composeName): New method.
3441 (addToEnvironment): New method.
3442 (removeFromEnvironment): New method.
3443 (getEnvironment): New method.
3444 (close): New method.
3445 (getNameInNamespace): New method.
3447 2000-11-26 Tom Tromey <tromey@cygnus.com>
3449 * Makefile.in: Rebuilt.
3450 * Makefile.am (core_java_source_files): Added
3451 RuntimePermission.java.
3452 * java/lang/RuntimePermission.java: Imported from Classpath.
3453 * java/lang/Thread.java (getContextClassLoader): Now
3454 synchronized. Added security code.
3455 (setContextClassLoader): Likewise.
3457 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3458 length field of array.
3459 (_Jv_NewPrimArray): Likewise.
3460 * gcj/array.h (__JArray): `length' field now const. Added
3463 2000-11-26 Anthony Green <green@redhat.com>
3465 * javax/naming/spi/NamingManager.java,
3466 javax/naming/spi/ObjectFactory.java,
3467 javax/naming/spi/InitialContextFactory.java,
3468 javax/naming/spi/InitialContextFactoryBuilder.java,
3469 javax/naming/RefAddr.java, javax/naming/Reference.java,
3470 javax/naming/NamingException.java, javax/naming/Context.java,
3471 javax/naming/Referenceable.java,
3472 javax/naming/directory/InitialDirContext.java,
3473 javax/naming/directory/DirContext.java,
3474 javax/naming/directory/Attributes.java,
3475 javax/naming/directory/Attribute.java,
3476 javax/naming/StringRefAddr.java,
3477 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3478 javax/naming/InitialContext.java,
3479 javax/naming/NoInitialContextException.java: New files.
3481 2000-11-25 Anthony Green <green@redhat.com>
3483 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3484 (_Jv_NewPrimArray): Likewise.
3485 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3486 (class JArray): Removed constructor.
3488 * java/lang/Thread.java (context_class_loader): New private data.
3489 (getContextClassLoader): New method.
3490 (setContextClassLoader): New method.
3491 (Thread): Initialize context_class_loader.
3493 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3494 (getResource): Rename to findResource.
3495 (findResource): New method. Used to be getResource.
3496 (getResourceAsStream): Deleted.
3497 (jarFileize): Extracted logic from URLClassLoader constructor into
3498 this new private method.
3499 (addURL): New protected method.
3500 (URLClassLoader): Call jarFileize. Use addElement instead of
3502 (findResources): New method.
3504 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3505 (getResource): Implement correct logic.
3506 (findResource): New method.
3507 (getResources): New method.
3508 (findClass): Create a ClassNotFoundException with the name of the
3509 class rather than nothing at all.
3510 (defineClass) Only throw ClassFormatError.
3512 * java/lang/Class.java (forName): New method.
3513 * java/lang/Class.h (forName): New method.
3514 * java/lang/natClass.cc (forName): New method.
3516 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3518 * java/lang/System.java (setProperties): Only call init_properties()
3519 if properties is null.
3520 (getProperties): Ditto.
3521 (getProperty): Ditto.
3522 (setProperty): Call init_properties if properties are null.
3523 (prop_init): Remove field.
3524 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3525 method. Check for null properties after synchronizing instead of
3526 prop_init flag. Set the properties field last for thread safety.
3528 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3529 test for gcj.dumpobjects property and enable object stream dumping
3531 (dumpElement): No longer native.
3532 (dumpElementln): Ditto.
3533 (setDump): Do not define.
3534 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3535 (dumpElementln): Removed.
3538 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3540 * configure: Rebuilt.
3541 * Makefile.in: Rebuilt.
3542 * Makefile.am (built_java_source_files): Add Configuration.java.
3543 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3544 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3545 Create `gnu' directory in the build tree.
3546 * gnu/classpath/Configuration.java.in: New file.
3548 2000-11-24 Tom Tromey <tromey@cygnus.com>
3550 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3552 (_Jv_NewPrimArray): Likewise.
3554 * gcj/array.h (__JArray): `length' field now const. Added
3556 (class JArray): Added constructor.
3558 2000-11-23 Mark Wielaard <mark@klomp.org>
3560 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3563 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3565 * java/util/Vector.java: Improve exception messages.
3566 (Vector): Check initialCapacity for IllegalArgumentException.
3567 (tromToSize): Don't check for elementCount == elementData.length
3569 (toArray): Don't try to set null marker if target array is the same
3570 length as the vector.
3572 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3574 * Makefile.in: Rebuilt.
3575 * Makefile.am (core_java_source_files): Added Collections.java.
3576 * java/util/List.java: Merged from classpath.
3577 * java/util/Vector.java: Ditto.
3578 * java/util/Collections.java: From classpath.
3579 * java/util/ArrayList.java (addAll(Collection)): Call
3580 addAll(int,Collection) instead of duplicating code.
3581 (indexOf): Clean up int initialization.
3582 (clear): Set cleared array entries to null, to allow garbage
3584 * java/util/List.java: Minor formatting fixes.
3585 * java/util/SimpleTimeZone.java: ditto.
3587 2000-11-18 Tom Tromey <tromey@cygnus.com>
3589 * Makefile.in: Rebuilt.
3590 * Makefile.am (core_java_source_files): Added new files.
3591 * java/lang/reflect/ReflectPermission.java: New class.
3592 * java/io/FileFilter.java: From Classpath
3593 * java/io/FilePermission.java: From Classpath.
3595 2000-11-17 Tom Tromey <tromey@cygnus.com>
3597 * java/lang/reflect/AccessibleObject.java (isAccessible,
3598 setAccessible): Now public.
3600 * java/lang/natString.cc: Include Locale.h.
3601 (toUpperCase): Added `locale' argument. Handle locale
3603 (toLowerCase): Added `locale' argument. Handle locale
3605 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3606 CAPITAL_I): New defines.
3607 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3610 (toUpperCase, toLowerCase): New methods. Variants which accept
3613 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3616 * java/util/PropertyPermission.java: Re-merged from Classpath.
3618 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3620 * java/text/StringCharacterIterator.java: Reindented.
3621 (setText): New method.
3623 2000-11-17 Mark Wielaard <mark@klomp.org>
3625 Merge with Classpath (changes by Bryce McKinlay)
3626 * java/util/jar/*.java: Reformat all to unofficial standard coding
3627 style. No changes of substance.
3629 2000-11-17 Mark Wielaard <mark@klomp.org>
3631 * java/util/zip/*.java: Javadoc updates.
3633 2000-11-17 Tom Tromey <tromey@cygnus.com>
3635 * java/text/CollationKey.java: Implement Comparable.
3636 (compareTo(Object)): New method.
3637 * java/text/Collator.java (compare(Object,Object)): New method.
3638 Implement Comparator.
3640 * java/util/zip/InflaterInputStream.java (available): New method.
3641 (close): New method.
3642 (read, available, skip, fill): Throw exception if stream closed.
3643 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3644 getNextEntry): Throw exception if closed.
3646 2000-11-16 Tom Tromey <tromey@cygnus.com>
3648 * java/io/PushbackReader.java: Merged with Classpath.
3649 * java/util/Arrays.java: Updated from Classpath.
3651 * scripts/blocks.pl: New file.
3652 * java/lang/Character.java (Subset): New class.
3653 (UnicodeBlock): New class.
3655 * java/lang/Math.java (toDegrees, toRadians): New methods.
3657 * java/lang/Float.java: Implement Comparable.
3658 (compareTo): New methods.
3659 * java/lang/Double.java: Implement Comparable.
3660 (compareTo): New methods.
3662 2000-11-16 Warren Levy <warrenl@cygnus.com>
3664 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3666 (listeners): Made transient.
3667 (source): Renamed from 'bean'.
3668 (children): New field for serialization.
3669 (propertyChangeSupportSerializedDataVersion): Ditto.
3670 (serialVersionUID): Ditto.
3671 (writeObject): New serialization method.
3672 (readObject): New serialization method.
3673 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3675 (listeners): Made transient.
3676 (source): Renamed from 'bean'.
3677 (children): New field for serialization.
3678 (vetoableChangeSupportSerializedDataVersion): Ditto.
3679 (serialVersionUID): Ditto.
3680 (writeObject): New serialization method.
3681 (readObject): New serialization method.
3682 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3683 to allow constructor to have a return type (i.e. the class that the
3684 constructor constructs).
3686 2000-11-14 Tom Tromey <tromey@cygnus.com>
3688 * Makefile.in: Rebuilt.
3689 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3692 2000-11-02 Warren Levy <warrenl@cygnus.com>
3694 * java/io/ObjectInputStream.java (readObject): Added code to
3695 conditionally dump out the serialized data.
3696 Handle ENDBLOCKDATA case a bit more gracefully since the current
3697 behavior doesn't seem to work as expected.
3698 (readStreamHeader): Added code for serialized data dumper.
3699 (readNextBlock): Ditto.
3700 (readFields): Ditto.
3701 (dump): New private static field for turning on/off dumper.
3702 (setDump): New native method.
3703 (dumpElement): New native method.
3704 (dumpElementln): New native method.
3705 * java/io/natObjectInputStream.cc (setDump): New method.
3706 (dumpElement): New method.
3707 (dumpElementln): New method.
3709 2000-11-02 Warren Levy <warrenl@cygnus.com>
3711 * java/net/InetAddress.java (addr): Renamed from 'address'.
3712 (address): New field to match Serialized Form doc.
3713 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3714 (family): New serialization field.
3715 (serialVersionUID): New field.
3716 (readObject): New method.
3717 (writeObject): New method.
3718 (getFamily): New native method.
3719 (InetAddress): Set family.
3720 * java/net/natInetAddress.cc (getFamily): New method.
3721 (addr): Renamed from 'address'.
3722 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3723 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3724 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3726 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3728 * java/util/AbstractList.java (SubList): Make it a top-level private
3730 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3732 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3733 * Makefile.in: Rebuilt.
3735 2000-11-02 Tom Tromey <tromey@cygnus.com>
3737 * Makefile.in: Rebuilt.
3738 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3741 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3743 * java/util/AbstractList.java (remove): Comment out modCount increment
3744 to work around compiler bug.
3747 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3749 * java/util/AbstractList.java: Throw messages with
3750 IndexOutOfBoundsExceptions.
3751 (listIterator()): Call listIterator(0).
3752 (size): New field. Initialize to size().
3753 (hasNext): Test position against size, not size().
3754 (remove): Increment knownMod by one instead of resetting it from
3757 (SubList.upMod): Removed.
3758 (SubList.set): Don't call upMod() or update knownMod.
3759 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3760 (SubList.remove): Ditto.
3761 (SubList.addAll): Don't call backingList.size(). Increment size from
3763 (SubList.iterator): New method. Call listIterator(0).
3764 (SubList.listIterator): New method. Restore code to return an anonymous
3765 listIterator implementation (with some changes).
3766 * java/util/AbstractSequentialList.java: Throw messages with
3767 IndexOutOfBoundsExceptions.
3768 (addAll): Add a specnote.
3769 * java/util/ArrayList.java (removeRange): Get the math right.
3770 (addAll): Increment modCount _before_ creating iterator.
3771 * java/util/LinkedList.java: Rewritten, mostly.
3773 2000-11-01 Tom Tromey <tromey@cygnus.com>
3775 * scripts/encodings.pl: Added `ASCII' alias.
3776 * Makefile.in: Rebuilt.
3777 * Makefile.am (convert_source_files): Added new files.
3778 * gnu/gcj/convert/Input_ASCII.java: New file.
3779 * gnu/gcj/convert/Output_ASCII.java: New file.
3780 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3781 out-of-range characters.
3782 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3783 (read): Swap bytes if required. Treat `count' as character count,
3785 (write): Likewise. Also, handle case where iconv fails on a given
3787 (init): Put encoding into exception.
3788 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3789 (static): Call iconv_init. Rebuilt alias list.
3790 (iconv_init): New private method.
3792 2000-11-01 Tom Tromey <tromey@cygnus.com>
3794 * Makefile.in: Rebuilt.
3795 * Makefile.am (install-exec-hook): Only make a single symlink, and
3796 remove the destination before making the link.
3797 * configure: Rebuilt.
3798 * configure.in: Call AC_PROG_LN_S.
3800 2000-10-31 Warren Levy <warrenl@cygnus.com>
3802 * jni.cc: Added include of java/lang/ThreadGroup.h.
3803 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3804 per change of 2000-10-05.
3806 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3808 * java/util/BitSet.java: Updated @specnote.
3810 * java/io/Reader.java: Merge docs from classpath.
3811 (skip): Synchronize on `lock'.
3812 * java/io/FileReader.java: Import correct implementation from
3814 * java/io/StringReader.java: Merge docs from classpath.
3815 (ready): Throw IOException if stream is closed.
3817 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3819 * java/util/AbstractCollection.java (addAll): Use size() instead of
3820 hasNext() in iterator loop.
3822 (contains): Ditto. Simplify loop.
3823 (containsAll): Ditto.
3828 (toString): Ditto. Use string concatenation operators, not
3830 * java/util/AbstractList.java (addAll): Use size() instead of
3831 hasNext() in iterator loop.
3834 (indexOf): Ditto. Don't take null check outside of the loop.
3835 (iterator): Return an AbstractListItr instead of anonymous class.
3836 (lastIndexOf): Use a for loop bounded by size() instead of
3837 hasPrevious() in iterator loop.
3838 (listIterator): Return an AbstractListItr.
3839 (removeRange): Remove bounds checking code and docs.
3840 (AbstractListItr): New inner class. Code moved here from
3842 (SubList.iterator): Removed. Use default implementation from
3843 AbstractList instead.
3844 (SubList.listIterator): As above.
3845 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3846 instead of hasNext() in iterator loop.
3847 (containsValue): Ditto.
3853 (toString): Ditto. Use string concatenation operators, not
3855 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3856 bounded by size() instead of hasNext() in iterator loop.
3857 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3858 part of normal execution flow. Do an explicit null check instead.
3859 * java/util/ArrayList.java (_iSize): Rename to `size'.
3860 (_arData): Rename to `data'.
3861 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3864 (removeRange): Make protected. Don't check bounds.
3865 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3867 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3869 (addAll (int, Collection)): Check lower bounds. Simplify exception
3871 (clone): Clone the data array too.
3872 (indexOf): Inline doesEqual().
3873 (lastIndexOf): Ditto.
3874 (clear): Don't set array data to null.
3875 (set): Check lower bounds. Simplify exception string.
3876 (toArray): Correct comment.
3877 (trimToSize): Don't update modCount, this is not a structural change.
3880 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3882 (toString): Declare `bit' as long, not int.
3883 (data): Made package-private, not private.
3885 2000-10-27 Warren Levy <warrenl@cygnus.com>
3887 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3888 array elements to true.
3890 2000-10-27 Warren Levy <warrenl@cygnus.com>
3892 * Makefile.am: Added locale files from Classpath.
3893 * Makefile.in: Rebuilt.
3894 * gnu/java/locale/Calendar.java: New file.
3895 * gnu/java/locale/Calendar_de.java: New file.
3896 * gnu/java/locale/Calendar_en.java: New file.
3897 * gnu/java/locale/Calendar_nl.java: New file.
3898 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3899 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3900 serialization compatibility.
3901 (scale): Made private.
3902 (serialVersionUID): New field.
3903 * java/math/BigInteger.java (ival): Made transient.
3904 (words): Made transient.
3905 (bitCount): New serialization field.
3907 (firstNonzeroByteNum): Ditto.
3908 (lowestSetBit): Ditto.
3911 (serialVersionUID): New field.
3912 (readObject): New method.
3913 (writeObject): New method.
3914 * java/util/BitSet.java (serialVersionUID): New field.
3915 * java/util/Calendar.java: Replaced with Classpath file.
3916 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3917 of getDefault() for TimeZone or Locale instead of passing nulls.
3918 * java/util/Locale.java (serialVersionUID): New field.
3919 (writeObject): New method.
3920 (readObject): New method.
3921 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3923 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3925 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3926 (core_java_source_files): Put java.lang, java.io, and java.util here.
3927 (ordinary_java_source_files): Order so that core_java_source_files are
3929 (java_source_files): Reorder so that special_java_source_files are
3931 * configure.in: Don't pass -I flag to gcj.
3932 * Makefile.in: Rebuilt.
3933 * configure: Rebuilt.
3935 2000-10-25 Tom Tromey <tromey@cygnus.com>
3937 * Makefile.in: Rebuilt.
3938 * Makefile.am (install-exec-hook): New target.
3940 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3942 * java/util/EventObject.java: Merged from classpath.
3944 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3947 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3949 * java/util/AbstractSet.java (equals): Re-installed original code.
3951 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3953 * Makefile.am: Added rules for libgcjx library.
3954 * Makefile.in: Rebuilt.
3955 * configure.in: Added check for X.
3956 * configure: Rebuilt.
3957 * gnu/awt/LightweightRedirector.java: New file.
3958 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3959 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3960 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3961 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3962 * gnu/awt/j2d/MappedRaster.java: New file.
3963 * gnu/awt/xlib/XCanvasPeer.java: New file.
3964 * gnu/awt/xlib/XEventLoop.java: New file.
3965 * gnu/awt/xlib/XEventQueue.java: New file.
3966 * gnu/awt/xlib/XFontMetrics.java: New file.
3967 * gnu/awt/xlib/XFramePeer.java: New file.
3968 * gnu/awt/xlib/XGraphics.java: New file.
3969 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3970 * gnu/awt/xlib/XPanelPeer.java: New file.
3971 * gnu/awt/xlib/XToolkit.java: New file.
3972 * gnu/gcj/xlib/Clip.java: New file.
3973 * gnu/gcj/xlib/Colormap.java: New file.
3974 * gnu/gcj/xlib/Display.java: New file.
3975 * gnu/gcj/xlib/Drawable.java: New file.
3976 * gnu/gcj/xlib/Font.java: New file.
3977 * gnu/gcj/xlib/GC.java: New file.
3978 * gnu/gcj/xlib/Pixmap.java: New file.
3979 * gnu/gcj/xlib/Screen.java: New file.
3980 * gnu/gcj/xlib/Visual.java: New file.
3981 * gnu/gcj/xlib/WMSizeHints.java: New file.
3982 * gnu/gcj/xlib/Window.java: New file.
3983 * gnu/gcj/xlib/WindowAttributes.java: New file.
3984 * gnu/gcj/xlib/XAnyEvent.java: New file.
3985 * gnu/gcj/xlib/XButtonEvent.java: New file.
3986 * gnu/gcj/xlib/XColor.java: New file.
3987 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3988 * gnu/gcj/xlib/XConnectException.java: New file.
3989 * gnu/gcj/xlib/XEvent.java: New file.
3990 * gnu/gcj/xlib/XException.java: New file.
3991 * gnu/gcj/xlib/XExposeEvent.java: New file.
3992 * gnu/gcj/xlib/XID.java: New file.
3993 * gnu/gcj/xlib/XImage.java: New file.
3994 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3995 * gnu/gcj/xlib/natClip.cc: New file.
3996 * gnu/gcj/xlib/natColormap.cc: New file.
3997 * gnu/gcj/xlib/natDisplay.cc: New file.
3998 * gnu/gcj/xlib/natDrawable.cc: New file.
3999 * gnu/gcj/xlib/natFont.cc: New file.
4000 * gnu/gcj/xlib/natGC.cc: New file.
4001 * gnu/gcj/xlib/natPixmap.cc: New file.
4002 * gnu/gcj/xlib/natScreen.cc: New file.
4003 * gnu/gcj/xlib/natVisual.cc: New file.
4004 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4005 * gnu/gcj/xlib/natWindow.cc: New file.
4006 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4007 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4008 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4009 * gnu/gcj/xlib/natXColor.cc: New file.
4010 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4011 * gnu/gcj/xlib/natXException.cc: New file.
4012 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4013 * gnu/gcj/xlib/natXImage.cc: New file.
4014 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4015 * java/awt/EventDispatchThread.java: Start thead on creation.
4017 2000-10-20 Tom Tromey <tromey@cygnus.com>
4019 From Arno J. Klaassen:
4020 * interpret.cc: Include <stdlib.h> for alloca.
4021 * defineclass.cc: Include <stdlib.h> for alloca.
4023 * Makefile.in: Rebuilt.
4024 * Makefile.am: Include deps.mk.
4025 (GCJCOMPILE): Added -MD, -MT, and -MF.
4026 ($(javao_files)): Don't depend on libgcj.zip.
4027 (all-recursive): New target.
4028 (%.lo:%.cc): Do dependency tracking.
4029 ($(nat_headers)): Don't depend on libgcj.zip.
4030 * configure: Rebuilt.
4031 * configure.in: Make .d files and deps.mk.
4033 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4035 * exception.cc: Don't #include "exception".
4036 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4038 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4039 * Makefile.in: Updated.
4041 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4043 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4044 * java/awt/peer/ComponentPeer.java (disable): Removed.
4047 (minimumSize): Removed.
4048 (preferredSize): Removed.
4051 * java/awt/peer/ListPeer.java (addItem): Removed.
4053 (minimumSize): Removed.
4054 (preferredSize): Removed.
4055 (setMultipleSelections): Removed.
4056 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4057 (remove): Renamed from removeMenu.
4058 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4060 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4061 (remove): Renamed from removeItem.
4062 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4063 (getMinimumSize): Removed.
4064 (getPreferredSize): Removed.
4065 (minimumSize): Removed.
4066 (preferredSize): Removed.
4067 (replaceText): Removed.
4068 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4069 (preferredSize): Removed.
4070 (getMinimumSize): Removed.
4071 (getPreferredSize): Removed.
4072 (setEchoCharacter): Removed.
4074 2000-10-10 Warren Levy <warrenl@cygnus.com>
4076 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4077 * java/sql/Date.java (serialVersionUID): New field.
4078 * java/sql/Time.java (serialVersionUID): New field.
4079 * java/sql/Timestamp.java (serialVersionUID): New field.
4080 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4081 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4082 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4083 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4084 (readObject): New serialization method.
4085 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4086 (serialVersionOnStream): New field.
4087 (readObject): New serialization method.
4088 (getMonetaryDecimalSeparator): New method.
4089 (setMonetaryDecimalSeparator): New method.
4090 * java/text/NumberFormat.java (maxFractionDigits): New field.
4091 (maxIntegerDigits): New field.
4092 (minFractionDigits): New field.
4093 (minIntegerDigits): New field.
4094 (serialVersionOnStream): New field.
4095 (serialVersionUID): New field.
4096 (readObject): New serialization method.
4097 (writeObject): New serialization method.
4098 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4099 (serialVersionOnStream): New field.
4100 (serialVersionUID): New field.
4101 (readObject): New serialization method.
4103 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4105 * configure.in (GCJ): Avoid bogus error message when looking for
4106 (and not finding) gcj in the build tree.
4107 * configure: Rebuilt.
4109 2000-10-09 Tom Tromey <tromey@cygnus.com>
4111 * configure: Rebuilt.
4112 * configure.in: Include sys/types.h when checking for socklen_t.
4113 From Arno J. Klaassen.
4115 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4117 * include/jvm.h: Enable __builtin_expect().
4119 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4120 the main program. Fix for PR libgcj/341.
4122 2000-10-07 Tom Tromey <tromey@cygnus.com>
4124 * java/util/Properties.java: Merged with Classpath version.
4126 2000-10-05 Tom Tromey <tromey@cygnus.com>
4128 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4129 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4130 * java/lang/Class.h (Object): Added `class$' field.
4131 * java/lang/Object.h (Object): Added `class$' field.
4132 * defineclass.cc (ClassClass): Use `class$' form.
4133 (ClassObject): Likewise.
4134 * resolve.cc (ClassObject): Use `class$' form.
4135 (ObjectClass): Likewise.
4136 * interpret.cc (ClassError): Removed.
4137 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4139 (IntegerClass): Likewise.
4140 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4142 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4143 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4144 SerializableClass): Likewise.
4145 Include Serializable.h, Cloneable.h.
4146 * java/lang/natSystem.cc (SystemClass): Removed.
4147 (init_properties): Use `class$' form.
4148 * java/lang/natObject.cc (CloneableClass): Removed.
4149 (clone): Use `class$' form.
4150 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4151 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4152 ConstructorClass): Likewise.
4153 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4154 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4155 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4156 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4158 (ClassClass): Likewise.
4159 * include/jvm.h (StringClass): Use `class$' form.
4160 * prims.cc (ObjectClass): Removed.
4161 (_Jv_RunMain): Use `class$' form.
4162 (_Jv_AllocObject): Likewise.
4163 * jni.cc (ClassClass): Use `class$' form.
4164 (ThrowableClass): Likewise.
4165 (ObjectClass): Likewise.
4166 (MethodClass): Likewise.
4167 (ThreadGroupClass): Likewise.
4168 (NativeThreadClass): Likewise.
4169 * boehm.cc (ObjectClass): Removed.
4170 (ClassClass): Removed.
4171 (_Jv_MarkObj): Use `class$' form.
4172 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4175 2000-10-05 Warren Levy <warrenl@cygnus.com>
4177 * Makefile.am: Removed java/io/Replaceable.java and
4178 java/io/Resolvable.java.
4179 * Makefile.in: Rebuilt.
4180 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4182 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4184 (processResolution): Handle readResolve method via reflection with
4185 removal of Resolvable interface.
4186 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4187 method via reflection with removal of Replaceable interface.
4188 * java/io/Replaceable.java: Removed.
4189 * java/io/Resolvable.java: Removed.
4190 * java/security/Key.java (serialVersionUID): New field.
4191 * java/security/Provider.java (serialVersionUID): New field.
4192 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4194 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4196 * java/sql/DataTruncation.java (serialVersionUID): New field.
4197 * java/sql/SQLException.java (serialVersionUID): New field.
4198 * java/sql/SQLWarning.java (serialVersionUID): New field.
4199 * java/util/Date.java (serialVersionUID): New field.
4200 (millis): Made transient.
4201 (readObject): New method.
4202 (writeObject): New method.
4204 2000-10-05 Tom Tromey <tromey@cygnus.com>
4206 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4208 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4210 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4211 (JvRunMain): Set _Jv_argv and _Jv_argc.
4212 * java/awt/Component.java: Minor fixes.
4213 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4214 * java/awt/Toolkit.java (systemEventQueue): Removed.
4215 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4216 * java/awt/Window.java (getToolkit): Don't call super.
4217 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4218 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4219 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4220 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4221 * gnu/awt/gtk/GtkFramePeer.java: New file.
4222 * gnu/awt/gtk/GtkMainThread.java: New file.
4223 * gnu/awt/gtk/GtkToolkit.java: New file.
4224 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4225 * gnu/awt/gtk/gtkcommon.cc: New file.
4226 * gnu/awt/gtk/gtkcommon.h: New file.
4227 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4228 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4229 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4230 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4231 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4232 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4234 2000-09-30 Tom Tromey <tromey@cygnus.com>
4236 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4237 interrupted before modifying the cv's wait set.
4240 2000-09-30 Hans Boehm <boehm@acm.org>
4241 Bryce McKinlay <bryce@albatross.co.nz>
4243 Implement bitmap descriptor based marking for Boehm GC.
4245 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4246 * configure: Rebuilt.
4247 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4248 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4249 method get_finalizer().
4250 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4251 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4252 (_Jv_AllocObj): Add new jclass parameter.
4253 (_Jv_AllocArray): Ditto.
4254 (_Jv_BuildGCDescr): New prototype.
4255 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4256 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4257 get_finalizer() instead of direct finalizer vtable offset.
4258 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4259 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4260 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4261 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4262 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4263 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4264 (_Jv_DetermineVTableIndex): Ditto.
4265 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4266 calculations to account for new gc_descr field.
4267 * boehm.cc: #include gc_gcj.h.
4268 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4269 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4270 New commentary from HB. Mark the classes vtable.
4271 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4272 (GC_DEFAULT_DESCR): New #define.
4273 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4274 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4275 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4276 scan conservativly if size is less than min_heap_addr. Set vtable
4277 pointer of new object before returning.
4278 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4279 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4280 allocation for obj_kind_x.
4281 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4282 (_Jv_AllocObj): Set vtable on returned object.
4283 (_Jv_AllocArray): Ditto.
4284 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4285 (_Jv_NewPrimArray): Ditto.
4286 (_Jv_AllocObj): Declare as a friend.
4287 (_Jv_AllocArray): Ditto.
4288 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4289 from &ObjectClass into new array class. Remove offset-by-one
4290 adjustments from `method' size calculations to account for gc_descr
4293 2000-09-26 Tom Tromey <tromey@cygnus.com>
4295 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4296 `remove', not `add'.
4298 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4300 * java/lang/natSystem.cc (file_encoding): Added return statement.
4302 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4304 * Makefile.am: Re-work shell commands that exceeded command-line
4306 * Makefile.in: Rebuilt.
4308 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4310 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4311 * java/lang/natDouble.cc: Likewise.
4312 * java/lang/reflect/natMethod.cc: Likewise.
4313 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4315 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4317 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4319 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4320 * acinclude.m4: Arrange for automake to not bring in a new
4321 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4322 * Makefile.am: Leave it up to automake to subst GCJ.
4323 * aclocal.m4, configure, Makefile.in: Rebuilt.
4325 2000-09-13 Tom Tromey <tromey@cygnus.com>
4327 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4328 (get): Ensure Boolean class is initialized.
4329 * java/lang/reflect/natField.cc (BooleanClass): New define.
4330 (get): Ensure Boolean class is initialized.
4332 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4334 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4335 Initialize with anonymous class.
4336 (compareToIgnoreCase): New method.
4338 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4339 (uncaughtException): Set had_uncaught_exception.
4340 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4341 exit with error status if set.
4342 (_Jv_RunMain): Ditto.
4344 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4346 * configure: Rebuilt with new ../libtool.m4.
4348 2000-09-11 Tom Tromey <tromey@cygnus.com>
4350 * java/lang/reflect/Field.java (toString): Don't rely on
4353 2000-09-08 Tom Tromey <tromey@cygnus.com>
4355 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4356 default decoder use iconv.
4357 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4358 Let default encoder use iconv.
4359 * configure: Rebuilt.
4360 * configure.in: Check for nl_langinfo and <langinfo.h>.
4361 * java/lang/natSystem.cc (file_encoding): New function.
4362 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4364 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4366 * acinclude.m4: Simplify the tests for CC and CXX.
4367 * aclocal.m4, configure: Rebuilt.
4369 * acinclude.m4: Include libtool macros from the source tree.
4370 * aclocal.m4, configure: Rebuilt.
4372 2000-09-08 Warren Levy <warrenl@cygnus.com>
4374 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4375 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4376 * java/io/File.java (writeObject): Added.
4377 (readObject): Added.
4378 (serialVersionUID): Added.
4379 * java/io/ObjectOutputStream.java (writeObject): Initialized
4380 fieldsAlreadyWritten before recursion rather than after.
4381 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4382 * java/io/OptionalDataException.java (serialVersionUID): Added.
4383 (OptionalDataException): Made package private.
4384 * java/io/SyncFailedException.java (SyncFailedException): Removed
4385 default constructor to match spec.
4386 * java/lang/Boolean.java (serialVersionUID): Added.
4387 * java/lang/Byte.java (serialVersionUID): Added.
4388 * java/lang/Character.java (serialVersionUID): Added.
4389 * java/lang/Double.java (serialVersionUID): Added.
4390 * java/lang/Float.java (serialVersionUID): Added.
4391 * java/lang/Integer.java (serialVersionUID): Added.
4392 * java/lang/Long.java (serialVersionUID): Added.
4393 * java/lang/Number.java (serialVersionUID): Added.
4394 * java/lang/Short.java (serialVersionUID): Added.
4395 * java/lang/String.java (serialVersionUID): Added.
4396 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4398 * java/lang/reflect/InvocationTargetException.java
4399 (serialVersionUID): Added.
4400 * java/net/URL.java (handler): Made transient.
4401 (hashCode): Added field for serialization, per spec. and use
4402 cached value if available.
4403 (serialVersionUID): Added.
4404 (URL): Initialize hashCode.
4405 (set): Adjust hashCode.
4406 (readObject): New Method to initialize the protocol handler when
4408 (writeObject): New method.
4409 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4410 * java/text/Collator.java: Removed 'implements Serializable'.
4411 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4412 * java/util/Properties.java (serialVersionUID): Added.
4413 * java/util/Random.java (serialVersionUID): Added.
4414 (seed): Made private.
4415 (nextNextGaussian): Made private.
4416 (haveNextNextGaussian): Made private.
4417 * java/util/Stack.java (serialVersionUID): Added.
4418 * java/util/TimeZone.java (serialVersionUID): Added.
4419 * java/util/Vector.java (serialVersionUID): Added.
4421 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4423 * Makefile.am (Thread.h): Don't be friends with native threads
4425 * Makefile.in: Rebuilt.
4426 * java/lang/Thread.java (interrupt_flag): Make package-private.
4428 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4430 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4431 to avoid long long division.
4433 2000-09-06 Tom Tromey <tromey@cygnus.com>
4435 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4437 * java/lang/reflect/Method.java (toString): Use `getName' for
4440 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4441 `args' if method takes no parameters.
4443 Fix for PR java.lang/339:
4444 * java/lang/natPosixProcess.cc (fail): New function.
4445 (cleanup): New function.
4446 (startProcess): Use them. Create pipe so child can communicate
4447 exec failure back to parent.
4449 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4451 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4453 (send): Undo last patch. Remove the label only.
4455 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4457 * java/net/natInetAdress.cc: Ditto.
4459 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4461 2000-09-05 Tom Tromey <tromey@cygnus.com>
4463 * doc/cni.sgml: Updated from master copy.
4465 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4467 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4469 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4471 * java/lang/fdlibm.h: #undef __P if previously defined.
4472 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4473 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4477 2000-09-04 Tom Tromey <tromey@cygnus.com>
4479 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4482 2000-09-04 Anthony Green <green@redhat.com>
4484 Fix for PR java.io/203:
4485 * java/io/File.java (createTempFile): Obey directory argument.
4486 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4487 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4488 variable to set java.io.tmpdir on non-WIN32 systems.
4490 2000-09-04 Anthony Green <green@redhat.com>
4492 * java/io/File.java (deleteOnExit): New method.
4493 * gnu/gcj/runtime/FileDeleter.java: New class.
4494 * java/lang/natRuntime.cc (exit): Call
4495 FileDeleter.deleteOnExitNow()
4496 * Makefile.am: Add FileDeleter.java.
4497 * Makefile.in: Rebuilt.
4499 2000-09-02 Tom Tromey <tromey@cygnus.com>
4501 * Makefile.in: Rebuilt.
4502 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4503 environment variable.
4505 2000-09-01 Andrew Haley <aph@redhat.com>
4507 * java/io/StreamTokenizer.java: Don't throw a
4508 NumberFormatException if a field is numeric as far as the
4509 StreamTokenizer is concerned but not as far as Double.valueOf() is
4510 concerned: return a zero instead.
4512 2000-08-30 Tom Tromey <tromey@cygnus.com>
4514 * Makefile.in: Rebuilt.
4515 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4517 2000-08-28 Tom Tromey <tromey@cygnus.com>
4519 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4520 gnu/gcj/awt/ComponentDataBlitOp.java,
4521 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4522 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4523 java/awt/color/ICC_ColorSpace.java,
4524 java/awt/color/ICC_Profile.java,
4525 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4526 java/awt/image/ComponentColorModel.java,
4527 java/awt/image/ComponentSampleModel.java,
4528 java/awt/image/DataBuffer.java,
4529 java/awt/image/DataBufferByte.java,
4530 java/awt/image/DataBufferInt.java,
4531 java/awt/image/DataBufferUShort.java,
4532 java/awt/image/DirectColorModel.java,
4533 java/awt/image/IndexColorModel.java,
4534 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4535 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4536 java/awt/image/SinglePixelPackedSampleModel.java,
4537 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4538 Removed Latin-1 copyright symbols.
4539 * java/util/zip/ZipFile.java: Indentation fixes.
4541 2000-08-27 Mark Wielaard <mark@klomp.org>
4543 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4544 constructor, close can delete the file, finalize calls close.
4545 * java/util/jar/JarFile.java: Constructor that takes mode now
4548 2000-08-27 Anthony Green <green@redhat.com>
4550 * java/util/ArrayList.java, java/util/Timer.java,
4551 java/util/LinkedList.java, java/util/TimerTask.java,
4552 java/util/HashMap.java, java/util/AbstractMap.java,
4553 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4554 java/util/SortedSet.java: Imported from GNU Classpath.
4555 * Makefile.in: Rebuilt.
4556 * Makefile.am: Added new files.
4558 2000-08-26 Anthony Green <green@redhat.com>
4560 * Makefile.in: Rebuilt.
4561 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4564 * prims.cc: Include ClassLoader.h.
4565 (_Jv_RunMain): When executing jar files, classpath must be the jar
4566 file only. Lose our reference to the system ClassLoader in order
4567 to get a new one with the correct classpath.
4568 * java/lang/natSystem.cc (init_properties): When executing a jar
4569 file, only use the jar file for java.class.path.
4571 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4572 for bytecode archives.
4574 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4575 exists, but not Main-Class.
4577 2000-08-23 Mark Wielaard <mark@klomp.org>
4579 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4580 return -1 when fill() has no more data for the Inflater.
4582 2000-08-23 Mark Wielaard <mark@klomp.org>
4584 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4585 write(String) already does.
4587 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4589 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4590 to `alive_flag', call `init'.
4591 (init): New native method.
4592 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4595 2000-08-21 Mark Wielaard <mark@klomp.org>
4597 * Makefile.in: Rebuilt.
4598 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4600 (java/lang/reflect/Field.h): Likewise.
4601 (java/lang/reflect/Method.h): Likewise.
4602 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4605 2000-08-21 Tom Tromey <tromey@cygnus.com>
4607 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4610 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4612 * java/lang/natSystem.cc (init_properties): Change sourceware
4613 reference to sources.redhat.com.
4615 * include/java-props.h: Add _Jv_Jar_Class_Path.
4616 * prims.cc: Ditto. Set it from `gij -jar file' option.
4618 * java/lang/natSystem.cc (init_properties): Set java.class.path
4620 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4622 * java/util/PropertyPermission.java: Import from GNU Classpath.
4623 * Makefile.in: Rebuilt.
4624 * Makefile.am: Add java/util/PropertyPermission.java.
4625 * java/lang/System.java: Add setProperty method.
4627 * gij.cc (main): Add -jar option to execute jar files.
4628 (help): Describe -jar option.
4629 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4630 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4631 * gnu/gcj/runtime/FirstThread.java (main): New method.
4633 * java/util/jar/Attributes.java: Correct comment spelling.
4635 2000-08-20 Mark Wielaard <mark@klomp.org>
4637 * java/util/zip/Adler32.java: Make private variables really private
4638 * java/util/zip/CRC32.java: Make private variables really private
4639 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4641 * java/util/zip/InflaterInputStream.java: skip() could skip to
4643 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4644 * java/util/zip/ZipFile.java: size() new 1.2 method
4645 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4646 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4649 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4651 * java/util/jar/JarFile.java: Don't call
4652 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4655 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4657 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4658 Read the entire contents of the class file, not just what is
4661 * java/net/JarURLConnection.java: getEntry doesn't take any
4662 arguments. Return null if element is null.
4664 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4665 size from the archive, not the inflated size.
4667 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4668 java.util.zip.ZipFile.getEntry.
4670 * gij.cc (help): Change sourceware reference to
4673 2000-08-19 Tom Tromey <tromey@cygnus.com>
4675 * java/util/zip/ZipInputStream.java (createZipEntry):
4678 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4680 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4681 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4682 java/util/jar/JarInputStream.java,
4683 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4684 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4685 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4686 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4687 java/security/cert/Certificate.java,
4688 java/security/cert/CertificateEncodingException.java,
4689 java/security/cert/CertificateException.java,
4690 java/security/cert/CertificateExpiredException.java,
4691 java/security/cert/CertificateFactory.java,
4692 java/security/cert/CertificateFactorySpi.java,
4693 java/security/cert/CertificateNotYetValidException.java,
4694 java/security/cert/CertificateParsingException.java,
4695 java/security/cert/X509CRL.java,
4696 java/security/cert/X509CRLEntry.java,
4697 java/security/cert/X509Certificate.java,
4698 java/security/cert/X509Extension.java: Imported from Classpath.
4699 * java/util/Hashtable.java: Imported from Classpath.
4701 * java/util/zip/ZipInputStream.java: Create stub for
4704 * gcj/javaprims.h: Updated class list.
4706 * Makefile.in, gcj/Makefile.in: Rebuilt.
4707 * Makefile.am (ordinary_java_source_files): Add these new classes.
4709 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4711 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4712 * gnu/gcj/awt/GLightweightPeer.java: New file.
4713 * java/awt/BorderLayout.java: Implemented all methods.
4714 * java/awt/Button.java (actionListener, actionCommand): Renamed
4715 and modifier change.
4716 (addNotify): Call super.
4717 (dispatchEventImpl): New method.
4718 (getListeners): New method.
4719 (label): Made package-private, not private.
4720 * java/awt/Canvas.java: Implemented class body.
4721 * java/awt/Color.java (brighter): New method.
4722 (darker): New method.
4723 (hashCode): New method.
4724 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4725 (getGraphicsConfiguration): Delegate to
4726 getGraphicsConfigurationImpl().
4727 (getGraphicsConfigurationImpl): New method.
4728 (getToolkit): Only return value from peer if not null.
4729 (isDisplayable): Check with parent.
4730 (isShowing): No parent implies not showing.
4731 (getForeground): Check parent property if local is null.
4732 (getBackground): Likewise.
4733 (getFont): Likewise.
4734 (setForeground): Inform peer.
4735 (setBackground): Likewise
4736 (setLocale): Invalidate component.
4737 (getColorModel): Implemented.
4738 (setLocation): Invalidate, or ignore if no change.
4739 (setSize): Invalidate, or ignore if no change.
4740 (setBounds): Invalidate, or ignore if no change.
4741 (isOpaque): By default, heavyweight implies opaque.
4742 (isLightweight): Implemented.
4743 (getMaximumSize): Implemented.
4744 (doLayout): Implemented, NOP.
4745 (validate): Implemented, NOP.
4746 (invalidate): Only propagate to parent if parent was valid.
4747 (getGraphics): Implemented.
4748 (getFontMetrics): Implemented.
4749 (update): Implemented.
4750 (paintAll): Implemented.
4751 (repaint): Implemented all repaint methods.
4752 (print): Implemented.
4753 (printAll): Implemented.
4754 (createImage): Implemented.
4755 (dispatchEvent): Give the peer a chance to handle the event.
4756 (dispatchEventImpl): Dispatch paint events.
4757 (enableEvents): Lightweights enable events on parent component.
4758 (coalesceEvents): Coalesce paint events, and select event type
4760 (coalescePaintEvents): New method.
4761 (processEvent): Fix unfortunate ordering of statements, and call
4762 correct method for MOUSE_CLICKED.
4763 (processPaintEvent): New method.
4764 (addNotify): Allow container to notify children before event
4765 mask is set in peer.
4766 (addNotifyContainerChildren): New method.
4767 (removeNotify): Visibility should not change on removeNotify.
4768 (paramString): Implemented.
4769 (list): Implemented two of the list methods.
4770 * Container (myInsets): Removed, insets are managed by peer.
4771 (getInsets): Query peer.
4772 (addImpl): Fix reparenting, enable events for lightweights,
4773 initialize component array.
4774 (validate): Call doLayout in validateTree() instead.
4775 (validateTree): Do nothing if already valid. Call beginValidate(),
4776 endValidate() on peer. Call validateTree() instead of validate()
4777 for children that are containers. Mark valid after validation of
4779 (setFont): Partial implementation.
4780 (paint): Implemented.
4781 (visitChildren): New method.
4782 (visitChild): New method.
4783 (update): Implemented.
4784 (print): Implemented.
4785 (paintComponents): Implemented.
4786 (printComponents): Consider translation and clipping.
4787 (getComponentAt): Ignore invisible children. Return this if no
4789 (addNotify): Call super.
4790 (addNotifyContainerChildren): New method.
4791 (paramString): Implemented.
4792 (list): Implemented.
4793 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4795 (invokeLater): Likewise.
4796 (isDispatchThread): Likewise.
4797 * java/awt/FontMetrics (getLeading): Formula change.
4798 (getDescent): Consider leading also.
4799 (getMaxAscent): Default to getAscent().
4800 (getMaxDescent): Default to getDescent.
4801 (getMaxAdvance): Return value signifying unknown.
4802 (charWidth): Both methods implemented.
4803 (charsWidth): Implemented.
4804 (bytesWidth): Implemented.
4805 (getWidths): Implemented.
4806 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4808 (Frame): Rearragend constuctor chaining to disallow null being
4809 passed as a graphics configuration.
4810 (getTitle): Return empty string if null.
4812 (getIconImage): New method.
4813 (setIconImage): New method.
4814 (finalize): New method.
4815 (setMenuBar): Notify peer.
4816 (isResizable): New method.
4817 (setResizable): New method.
4818 (getState): New method.
4820 (remove): Implemented.
4821 (removeNotify): New method.
4822 (getFrames): New method.
4823 * java/awt/Graphics.java: Implemented body of class.
4824 * java/awt/Graphics2D.java: New file.
4825 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4826 * java/awt/Image.java: Implemented body of class.
4827 * java/awt/Panel.java (Panel): Call correct super constructor.
4828 (addNotify): Implemented.
4829 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4830 * java/awt/RenderingHints.java: New file.
4831 * java/awt/Toolkit.java (createComponent): Implemented.
4832 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4833 * java/awt/Window.java (Window): Two new constructors. Reordered
4834 constructor chaining.
4835 (getGraphicsConfigurationImpl): New method.
4836 (finalize): Call super.
4837 (addNotify): Call super.
4838 (pack): Do layout stuff.
4839 (show): Ensure that peer exists and that component is valid.
4840 (dispose): Dispose owned children.
4841 (getOwner): Simplify code, casting null pointers is valid.
4842 (getGraphicsConfiguration): Ask peer if local value is null.
4843 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4845 * java/awt/image/BufferedImage.java: New file.
4846 * java/awt/image/RasterOp.java: New file.
4847 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4848 More powerfull replacement for getColorModel().
4849 (getColorModel) Removed.
4850 (setEventMask) New method.
4851 * Makefile.am: Added new files.
4852 * Makefile.in: Rebuilt.
4854 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4856 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4857 (finit_leg_name): New global.
4858 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4859 `$finit$'. This is a backward compatibility hack.
4860 (java::lang::Class::_getMethods): Likewise.
4862 2000-08-15 Andrew Haley <aph@cygnus.com>
4864 * include/jvm.h (_Jv_HashCode): New hash code.
4866 2000-08-15 Tom Tromey <tromey@cygnus.com>
4868 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4870 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4872 * THANKS: More thanks.
4874 2000-08-10 Tom Tromey <tromey@cygnus.com>
4876 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4878 (connect): Likewise.
4880 (getOption): Likewise.
4881 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4882 case when errno not set.
4885 (receive): Likewise.
4886 (mcastGrp): Likewise.
4887 (setOption): Likewise.
4888 (getOption): Likewise.
4890 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4891 John Stracke <francis@ecal.com>
4893 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4894 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4896 (disconnect): Don't unset connected flag.
4897 (getHeaderField (String)): Call connect() if not connected.
4898 (getHeaderField (int)): Ditto.
4899 (getHeaderFieldKey): Ditto.
4900 (getHttpHeaders): Don't call connect().
4901 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4902 gotResponseVals): New fields.
4903 (getResponseCode): Call getResponseVals() conditionally.
4904 (getResponseMessage): Ditto.
4905 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4907 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4909 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4910 * Makefile.in: Rebuilt.
4911 * java/awt/Color.java (getTransparency): New method.
4912 * java/awt/Component.java: Various updates.
4913 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4914 after dealing with children.
4915 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4916 * java/awt/Window.java: Various new methods and updates.
4917 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4919 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4920 * java/awt/event/WindowEvent.java (paramString): Ditto.
4921 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4923 * java/awt/geom/Point2D.java (clone): Ditto.
4924 * java/awt/geom/RectangularShape.java (clone): Ditto.
4925 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4926 isAlphaPremultiplied): Make package-private, not private.
4928 2000-08-08 Tom Tromey <tromey@cygnus.com>
4930 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4931 surrogate characters.
4932 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4934 (write): Correct handling of surrogate characters.
4936 2000-08-07 Tom Tromey <tromey@cygnus.com>
4938 * java/lang/reflect/Method.java (hashCode): Use getName().
4939 (toString): Likewise.
4940 * java/lang/reflect/natMethod.cc (getType): Initialize
4943 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4945 * java/lang/reflect/Field.java (toString): Correct formatting.
4948 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4950 (receive): Streamlined.
4952 2000-08-05 Tom Tromey <tromey@cygnus.com>
4954 * java/io/PrintWriter.java: Merged comments from Classpath.
4955 (printlnUnsynchronized): Removed.
4956 (println()): Print the separator.
4957 (println): Call println(), not printlnUnsynchronized.
4958 (out): Now protected, to match spec.
4960 2000-08-04 Tom Tromey <tromey@cygnus.com>
4962 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4963 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4966 2000-08-03 Warren Levy <warrenl@cygnus.com>
4968 * java/io/ObjectInputStream.java (readFields): Turn off
4969 readDataFromBlock while reading via GetField.
4970 (GetField$1.get(String, Object)): Pass Class of default value to
4972 (getField): Allow for null default values.
4974 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4975 (PutField$1.put): Fixed calls of checkType in most of the put
4976 methods to pass the correct parameter.
4977 (PutField$1.put(String, Object)): Allow for null value arg.
4978 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4981 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4982 typo in spec'ed field name.
4983 (getSerialPersistentFields): Changed spelling of method to match
4984 the correct spelling of the spec'ed field name.
4986 2000-08-03 Tom Tromey <tromey@cygnus.com>
4988 * Makefile.in: Rebuilt.
4989 * Makefile.am (awt_java_source_files): Added new files.
4991 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4993 * Makefile.am: Add new AWT stubs.
4994 * java/awt/Canvas.java: New placeholder class.
4995 * java/awt/Checkbox.java: Ditto.
4996 * java/awt/CheckboxMenuItem.java: Ditto.
4997 * java/awt/Choice.java: Ditto.
4998 * java/awt/Dialog.java: Ditto.
4999 * java/awt/FileDialog.java: Ditto.
5000 * java/awt/List.java: Ditto.
5001 * java/awt/ScrollPane.java: Ditto.
5002 * java/awt/TextField.java: Ditto.
5003 * java/awt/datatransfer/Clipboard.java: Ditto.
5004 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5005 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5006 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5007 Some commented out. Partially implemented.
5008 * java/awt/natToolkit.cc: Removed file.
5010 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5012 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5013 Fixes "make -j" builds.
5014 * Makefile.in: Rebuild.
5016 2000-08-02 Tom Tromey <tromey@cygnus.com>
5018 * Makefile.in: Rebuilt.
5019 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5020 * java/net/natPlainSocketImpl.cc: Include posix.h.
5021 (accept): Use _Jv_select.
5022 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5023 (receive): Use _Jv_select.
5024 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5025 (available): Use _Jv_select.
5026 * java/lang/natSystem.cc: Include posix.h.
5027 (currentTimeMillis): Use _Jv_gettimeofday.
5028 * include/posix.h: New file.
5029 * posix.cc: New file.
5031 * scripts/encodings.pl: New file.
5032 * Makefile.in: Rebuilt.
5033 * Makefile.am (convert_source_files): Added IOConverter.java.
5034 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5036 (getDefaultDecodingClass): Canonicalize default encoding name.
5037 (getEncoder): Likewise.
5038 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5040 (getDefaultDecodingClass): Canonicalize default encoding name.
5041 (getDecoder): Likewise.
5042 * gnu/gcj/convert/IOConverter.java: New file.
5044 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5046 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5047 to match C declaration in ffi.h.
5048 * Makefile.am: Add java/awt/Button.java.
5049 * Makefile.in: Rebuilt.
5051 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5053 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5054 cast of the second argument to `ffi_raw_call' changed to match
5057 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5059 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5060 argument to `ffi_raw_call' changed to match prototype.
5062 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5064 * java/awt/Component.java (toString): Implemented.
5065 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5066 dispatchEvent() to dispatch the event.
5067 (removeImpl): Ditto.
5069 2000-07-30 Anthony Green <green@redhat.com>
5071 * java/awt/Component.java: Add treeLock object.
5072 (getTreeLock): Implement.
5073 (isShowing): Implement.
5075 2000-07-30 Tom Tromey <tromey@cygnus.com>
5077 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5079 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5081 * java/awt/Window.java (addNotify): Wrote.
5082 (addWindowListener): Wrote.
5084 (getWarningString): Wrote.
5085 (processEvent): Wrote.
5086 (processWindowEvent): Wrote.
5087 (removeWindowListener): Wrote.
5088 (show): Call validate(), setVisible().
5092 * java/awt/Toolkit.java (createWindow): Declare.
5094 * java/awt/Frame.java (addNotify): Use getToolkit to find
5097 * java/awt/Component.java (invalidate): Wrote.
5099 (getToolkit): Wrote.
5101 * java/awt/Container.java (addContainerListener): Removed
5103 (removeContainerListener): Likewise.
5105 (add(Component)): Use it.
5106 (add(String,Component)): Likewise.
5107 (add(Component,int)): Likewise.
5108 (add(Component,Object)): Likewise.
5109 (add(Component,Object,int)): Likewise.
5111 (getAlignmentX): Wrote.
5112 (getAlignmentY): Wrote.
5113 (getComponentAt): Wrote.
5114 (getMaximumSize): Wrote.
5115 (invalidate): Wrote.
5116 (list(PrintStream,int)): Wrote.
5117 (list(PrintWriter,int)): Wrote.
5118 (getMinimumSize): Wrote.
5119 (getPreferredSize): Wrote.
5120 (printComponents): Wrote.
5121 (processContainerEvent): Look at containerListener, not
5123 (remove): Added event processing and peer destruction.
5124 (removeAll): Use remove.
5125 (removeNotify): Wrote.
5127 (validateTree): Wrote.
5129 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5130 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5131 * java/awt/Container.java (addNotify): Don't create Container
5133 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5135 2000-07-30 Tom Tromey <tromey@cygnus.com>
5137 * java/awt/Container.java (remove(int)): Wrote.
5138 (remove(Component)): Wrote.
5139 (add(Component)): Wrote.
5140 (add(Component,int)): Wrote.
5142 (addNotify): Set our own peer.
5143 * java/awt/Scrollbar.java (listeners): Changed type.
5144 (Scrollbar): Don't initialize listeners.
5146 (setValue): Call setValues.
5147 (setMinimum): Likewise.
5148 (setMaxPriority): Likewise.
5149 (setVisibleAmount): Likewise.
5151 (setUnitIncrement): Forward to peer.
5152 (setLineIncrement): Call setUnitIncrement.
5153 (setPageIncrement): Call setBlockIncrement.
5154 (setBlockIncrement): Forward to peer.
5155 (addAdjustmentListener): Rewrote.
5156 (removeAdjustmentListener): Rewrote.
5157 (processAdjustmentEvent): Rewrote.
5158 (paramString): Wrote.
5159 * Makefile.in: Rebuilt.
5160 * Makefile.am (awt_java_source_files): Added Button.java.
5161 * java/awt/Button.java: New file.
5162 * java/awt/Toolkit.java (createLabel): Declare.
5163 (createButton): Likewise.
5164 (createScrollbar): Likewise.
5165 (createContainer): Likewise.
5166 * java/awt/Label.java (addNotify): Wrote.
5167 (setAlignment): Call setAlignment in the peer.
5168 (setText): Call setText in the peer.
5170 2000-07-28 Warren Levy <warrenl@cygnus.com>
5172 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5173 NotSerializableException with just the class name.
5175 2000-07-26 Andrew Haley <aph@cygnus.com>
5177 * interpret.cc (continue1): Insert missing break into switch.
5179 2000-07-28 Warren Levy <warrenl@cygnus.com>
5181 * java/io/ObjectStreamException.java: Made constructors protected.
5183 2000-07-27 Tom Tromey <tromey@cygnus.com>
5185 * java/io/OutputStreamWriter.java (close): Only flush if not
5188 2000-07-27 Warren Levy <warrenl@cygnus.com>
5190 * mauve-libgcj: Activated serialization tests.
5191 * gcj/field.h (getModifiers): Mask off unknown flags.
5192 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5193 spurious bits don't cause discrepancies.
5194 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5195 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5196 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5197 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5198 * java/lang/Throwable.java (serialVersionUID): New field.
5199 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5200 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5202 * java/lang/reflect/natMethod.cc: Ditto.
5203 * java/security/Key.java (serialVersionUID): Removed field for now.
5204 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5205 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5207 2000-07-22 Tom Tromey <tromey@cygnus.com>
5209 * java/awt/geom/RectangularShape.java (getPathIterator):
5212 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5214 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5215 stub libjava/java/awt/ColorModel.java which was located in the
5217 * libjava/java/awt/image/ComponentColorModel.java: New file.
5218 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5219 * libjava/java/awt/image/DataBuffer.java: New file.
5220 * libjava/java/awt/image/DataBufferByte.java: New file.
5221 * libjava/java/awt/image/DataBufferInt.java: New file.
5222 * libjava/java/awt/image/DataBufferUShort.java: New file.
5223 * libjava/java/awt/image/DirectColorModel.java: New file.
5224 * libjava/java/awt/image/PackedColorModel.java: New file.
5225 * libjava/java/awt/image/Raster.java: New file.
5226 * libjava/java/awt/image/SampleModel.java: New file.
5227 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5229 * libjava/java/awt/image/IndexColorModel.java: New file.
5230 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5231 java.awt.ColorModel stub.
5233 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5234 * gnu/gcj/util/Buffers.java: New file, utility class.
5236 * libjava/Makefile.am: Updated to include new files.
5237 * libjava/Makefile.in: Rebuilt.
5239 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5241 * java/io/StreamTokenizer.java: Merged with classpath.
5243 2000-07-20 Tom Tromey <tromey@cygnus.com>
5245 * Makefile.in: Rebuilt.
5246 * Makefile.am (awt_java_source_files): Updated for new files.
5247 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5248 * java/awt/Label.java: New file.
5249 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5250 (createIntersection, createUnion, getBounds2D): New methods.
5251 * java/awt/Scrollbar.java: New file.
5252 * java/awt/Shape.java: Updated to 1.2.
5253 * java/awt/geom/AffineTransform.java: New file.
5254 * java/awt/geom/Ellipse2D.java: New file.
5255 * java/awt/geom/NoninvertibleTransformException.java: New file.
5256 * java/awt/geom/PathIterator.java: New file.
5257 * java/awt/geom/Rectangle2D.java: New file.
5258 * java/awt/geom/RectangularShape.java: New file.
5259 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5260 * java/awt/geom/IllegalPathStateException.java: New file.
5262 * scripts/showval.java: New file.
5264 * scripts/classes.pl (scan): Print inner classes properly.
5265 * gcj/javaprims.h: Updated class list.
5267 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5268 initialize String fields for interpreted classes. Fixes bug
5269 reported by Hans Boehm.
5271 * java/io/File.java (getParentFile): New method, from Classpath
5272 via Oskar Liljeblad.
5274 * java/util/Vector.java (remove(Object)): Implemented.
5276 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5278 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5279 zero return from backtrace().
5281 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5283 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5285 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5286 before calling notifyAll().
5288 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5290 Add missing files from last check-in:
5291 * java/awt/image/ImageConsumer.java: New file.
5292 * java/awt/image/ImageProducer.java: New file.
5293 * java/awt/image/ImageObserver.java: New file.
5295 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5297 Merged implementation of java.applet from classpath:
5298 * java/applet/Applet.java: New file.
5299 * java/applet/AppletContext.java: New file.
5300 * java/applet/AppletStub.java: New file.
5301 * java/applet/AudioClip.java: New file.
5303 * Makefile.am: Added new java.applet classes.
5304 * Makefile.in: Rebuilt.
5306 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5309 * java/util/ResourceBundle.java (getLocale): stub.
5310 * Makefile.am: Added new AWT classes.
5311 * Makefile.in: Rebuilt.
5312 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5313 constructors. Fix toString() and paramString().
5314 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5315 * java/awt/CheckboxGroup.java: New class.
5316 * java/awt/ColorModel.java: New class.
5317 * java/awt/Component.java: Added stubs for most methods. Implemented
5319 * java/awt/Container.java: ditto.
5320 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5321 * java/awt/Cursor.java: ditto.
5322 * java/awt/Event.java: Fix paramString().
5323 * java/awt/EventQueue.java: New class. Implemented.
5324 * java/awt/Font.java: Added additional stub methods. Implemented
5326 * java/awt/FontMetrics.java: New class. Stubbed.
5327 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5329 * java/awt/Insets.java: New class. Implemented.
5330 * java/awt/Menu.java: Add new methods. Partially implemented.
5331 * java/awt/MenuItem.java: Add new methods and fields. Partially
5333 * java/awt/MenuShortcut.java: New class. Implemented.
5334 * java/awt/Panel.java: New class. Placeholder.
5335 * java/awt/PopupMenu.java: New class. Stubbed.
5336 * java/awt/Rectangle.java: New class. Implemented.
5337 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5338 * java/awt/event/ActionEvent.java: Implement paramString().
5339 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5340 * java/awt/event/ComponentEvent.java: Implement paramString().
5341 * java/awt/event/ContainerEvent.java: Implement paramString().
5342 * java/awt/event/FocusEvent.java: Implement paramString().
5343 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5344 * java/awt/event/HierarchyBoundsListener.java: New class.
5345 * java/awt/event/HierarchyEvent.java: New class.
5346 * java/awt/event/HierarchyListener.java: New class.
5347 * java/awt/event/InputMethodEvent.java: Implement paramString().
5348 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5349 exception if !catchExceptions.
5350 * java/awt/event/ItemEvent.java: Implement paramString().
5351 * java/awt/event/KeyEvent.java: Implement paramString().
5352 * java/awt/event/MouseEvent.java: Implement paramString().
5353 * java/awt/event/PaintEvent.java: Implement paramString().
5354 * java/awt/event/TextEvent.java: Implement paramString().
5355 * java/awt/event/WindowEvent.java: Implement paramString().
5357 AWT Peer interfaces:
5358 * java/awt/peer/ButtonPeer.java: New file.
5359 * java/awt/peer/ListPeer.java: New file.
5360 * java/awt/peer/CanvasPeer.java: New file.
5361 * java/awt/peer/MenuBarPeer.java: New file.
5362 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5363 * java/awt/peer/MenuComponentPeer.java: New file.
5364 * java/awt/peer/CheckboxPeer.java: New file.
5365 * java/awt/peer/MenuItemPeer.java: New file.
5366 * java/awt/peer/ChoicePeer.java: New file.
5367 * java/awt/peer/MenuPeer.java: New file.
5368 * java/awt/peer/ComponentPeer.java: Implemented.
5369 * java/awt/peer/PanelPeer.java: New file.
5370 * java/awt/peer/ContainerPeer.java: Implemented.
5371 * java/awt/peer/PopupMenuPeer.java: New file.
5372 * java/awt/peer/DialogPeer.java: New file.
5373 * java/awt/peer/ScrollPanePeer.java: New file.
5374 * java/awt/peer/FileDialogPeer.java: New file.
5375 * java/awt/peer/ScrollbarPeer.java: New file.
5376 * java/awt/peer/FontPeer.java: New file.
5377 * java/awt/peer/TextAreaPeer.java: New file.
5378 * java/awt/peer/FramePeer.java: Implemented.
5379 * java/awt/peer/TextComponentPeer.java: New file.
5380 * java/awt/peer/LabelPeer.java: New file.
5381 * java/awt/peer/TextFieldPeer.java: New file.
5382 * java/awt/peer/LightweightPeer.java: New file.
5383 * java/awt/peer/WindowPeer.java: Implemented.
5385 2000-07-06 Tom Tromey <tromey@cygnus.com>
5387 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5388 Initialize static final String fields.
5390 2000-07-03 Tom Tromey <tromey@cygnus.com>
5392 * java/io/PrintWriter.java (print): Call write(String), not
5393 print(String). See PR libgcj/277.
5394 (print(String)): Use write, not out.write.
5396 2000-06-30 Tom Tromey <tromey@cygnus.com>
5398 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5400 2000-06-27 Andrew Haley <aph@cygnus.com>
5402 * java/io/File.java (createTempFile): Close the FileDescriptor
5403 used to create a temp file. Fixes some of PR 203.
5404 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5405 collection if we run out of file handles.
5407 2000-06-28 Warren Levy <warrenl@cygnus.com>
5409 * gnu/java/security/provider/Gnu.java: New file.
5410 * gnu/java/security/provider/SHA.java: New file.
5411 * gnu/java/security/provider/SHA1PRNG.java: New file.
5412 * Makefile.am: Added the above files.
5413 * Makefile.in: Rebuilt.
5415 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5417 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5419 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5420 (destroyed_flag): Removed.
5421 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5422 (activeCount): Added spec note.
5424 2000-06-27 Warren Levy <warrenl@cygnus.com>
5426 * java/security/Principal.java: New file.
5427 * Makefile.am: Added Principal.java.
5428 * Makefile.in: Rebuilt.
5430 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5432 * java/awt/event/MouseEvent.java: Fixed coordinate space
5435 2000-06-27 Tom Tromey <tromey@cygnus.com>
5437 * java/io/PushbackInputStream.java (read): If there are characters
5438 in the buffer, don't also call super.read().
5439 * java/io/PushbackReader.java (read): If there are characters in
5440 the buffer, don't also call super.read().
5442 * java/lang/Double.java (valueOf): Call parseDouble().
5444 2000-06-26 Warren Levy <warrenl@cygnus.com>
5446 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5447 (newVal): Renamed to newValue.
5448 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5449 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5450 (revokeNow): Renamed to invalidateRefs.
5451 * java/io/OptionalDataException.java: Updated FIXME.
5452 (eof): New placeholder field.
5454 * java/io/WriteAbortedException.java (message): Made transient.
5455 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5456 * java/lang/Throwable.java (stackTrace): Made transient.
5457 * java/net/InetAddress.java: Made Serializable.
5458 * java/security/KeyPair.java: Made Serializable.
5459 * java/security/Provider.java: Replaced with Classpath version that
5460 implements serialization and proper methods.
5461 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5462 (limits): Renamed to choiceLimits.
5464 2000-06-24 Tom Tromey <tromey@cygnus.com>
5466 * java/lang/natDouble.cc (parseDouble): Renamed from
5468 * java/lang/Double.java (parseDouble): Renamed from
5469 doubleValueOf. Now public.
5471 2000-06-23 Andrew Haley <aph@cygnus.com>
5473 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5474 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5476 2000-06-23 Tom Tromey <tromey@cygnus.com>
5478 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5479 * java/lang/natDouble.cc: Always include <alloca.h>.
5480 Fix for PR libgcj/267.
5482 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5484 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5485 comply with classpath VM spec.
5486 (add(Group)): Rename to addGroup().
5487 * java/lang/Thread.java (Thread): Use addThread().
5488 * java/lang/natThread.cc (finish_): Use removeThread().
5490 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5492 * java/lang/ThreadGroup.java: Merged with classpath.
5493 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5494 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5496 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5497 ThreadGroup.root if Thread.currentThread is null. Honour the
5498 ThreadGroup's max priority setting.
5500 2000-06-18 Tom Tromey <tromey@cygnus.com>
5502 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5503 returned class. For PR gcj/260.
5505 2000-06-16 Tom Tromey <tromey@cygnus.com>
5507 Fix for PR libgcj/261:
5508 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5510 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5511 argument. (This is a patch from long ago that somehow went
5514 2000-06-15 Tom Tromey <tromey@cygnus.com>
5516 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5520 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5522 Fix for PR java.lang/258:
5523 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5524 JV_STATE_DONE, to prevent accidental initialization.
5525 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5526 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5527 interface or an abstract class. Remove redundant initializeClass calls.
5528 Remove duplicate if_idt test.
5529 (_Jv_InterfaceAssignableFrom): New function.
5530 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5532 2000-05-31 Tom Tromey <tromey@cygnus.com>
5534 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5535 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5536 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5537 (NUM_OBJECT_METHODS): New define.
5538 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5539 `array_vtable' parameter. Added assertion.
5540 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5543 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5545 * gcj/cni.h: Include <string.h>.
5546 * defineclass.cc: Include <alloca.h>.
5547 * interpret.cc: Ditto.
5548 * gij.cc: Include <stdlib.h>.
5550 2000-05-30 Tom Tromey <tromey@cygnus.com>
5552 * include/name-finder.h: Include <sys/wait.h>.
5553 (_Jv_name_finder::pid): Now of type `pid_t'.
5554 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5555 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5558 2000-05-24 Warren Levy <warrenl@cygnus.com>
5560 * java/io/ObjectOutputStream.java (writeObject): Use component type
5561 when writing arrays.
5564 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5566 Fix for PR libgcj/226:
5567 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5568 since this is an installed header.
5570 Fix for PR libgcj/228:
5571 * java/util/zip/ZipFile (getInputStream): Create inflater with
5574 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5575 with DataFormatException.
5577 2000-05-20 Tom Tromey <tromey@cygnus.com>
5579 * Makefile.in: Rebuilt.
5580 * Makefile.am (hack1): Removed.
5581 (awto_files): Likewise.
5582 (libgcjawt_la_SOURCES): Likewise.
5583 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5584 (libgcjawt_la_DEPENDENCIES): Likewise.
5585 (libgcjawt_la_LIBADD): Likewise.
5586 (libgcjawt_la_LDFLAGS): Likewise.
5587 (libgcjawt_la_LINK): Likewise.
5588 ($(awt_java_source_files:.java=.class)): Likewise.
5589 (libgcj.zip): Don't depend on AWT files.
5590 (MOSTLYCLEANFILES): Don't include AWT files.
5591 ($(awto_files)): Removed.
5592 (nat_headers): Removed AWT files.
5593 (cond_awt_java_source_files): Removed.
5594 (ordinary_java_source_files): Added awt_java_source_files.
5595 * libgcj.spec.in (*lib): Removed -lgcjawt.
5596 * configure: Rebuilt.
5597 * configure.in: Removed --enable-java-awt option.
5599 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5601 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5602 (ZipEntry): Copy the `name' field.
5603 (clone): Implement JDK1.2 method.
5604 (setCompressedSize): ditto.
5607 2000-05-19 Tom Tromey <tromey@cygnus.com>
5609 * java/io/BufferedWriter.java: Merged with Classpath.
5610 * java/io/BufferedOutputStream.java: Merged with Classpath.
5612 2000-05-16 Andrew Haley <aph@cygnus.com>
5614 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5615 build_ia64_frame_state.
5616 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5619 2000-05-15 Warren Levy <warrenl@cygnus.com>
5621 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5622 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5623 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5624 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5625 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5626 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5627 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5628 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5629 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5630 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5631 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5632 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5633 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5634 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5635 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5636 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5637 * gnu/gcj/io/NullOutputStream.java: Removed.
5638 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5639 * gnu/gcj/lang/ArrayHelper.java: Removed.
5640 * gnu/gcj/lang/ClassHelper.java: Removed.
5641 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5643 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5644 * gnu/java/beans/EmptyBeanInfo.java: New file.
5645 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5646 * gnu/java/beans/IntrospectionIncubator.java: New file.
5647 * gnu/java/beans/editors/ColorEditor.java: New file.
5648 * gnu/java/beans/editors/FontEditor.java: New file.
5649 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5650 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5651 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5652 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5653 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5654 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5655 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5656 * gnu/java/beans/editors/StringEditor.java: New file.
5657 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5658 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5659 * gnu/java/io/NullOutputStream.java: New file.
5660 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5661 * gnu/java/lang/ArrayHelper.java: New file.
5662 * gnu/java/lang/ClassHelper.java: New file.
5663 * gnu/java/lang/reflect/TypeSignature.java: New file.
5665 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5666 namespace back to the original Classpath gnu/java namespace.
5667 * Makefile.in: Rebuilt.
5669 * java/beans/Beans.java: Namespace change.
5670 * java/beans/EventSetDescriptor.java: Namespace change.
5671 * java/beans/Introspector.java: Namespace change.
5672 * java/beans/PropertyEditorManager.java: Namespace change.
5673 * java/io/ObjectInputStream.java: Namespace change.
5674 * java/io/ObjectOutputStream.java: Namespace change.
5675 * java/io/ObjectStreamClass.java: Namespace change.
5676 * java/io/ObjectStreamField.java: Namespace change.
5678 2000-04-21 Warren Levy <warrenl@cygnus.com>
5680 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5681 now that compiler patch is available.
5682 Removed unneeded System.loadLibrary.
5683 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5684 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5686 2000-04-19 Andrew Haley <aph@cygnus.com>
5688 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5689 and target classes have been initialized.
5691 2000-04-19 Andrew Haley <aph@cygnus.com>
5693 * java/lang/String.java: implement Serializable, Comparable.
5694 (compareTo (Object)): New method.
5696 2000-04-19 Warren Levy <warrenl@cygnus.com>
5698 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5699 instead of getField to retrieve non-public field.
5700 (getSerialPersistantFields): Ditto.
5702 2000-04-18 Warren Levy <warrenl@cygnus.com>
5704 * mauve-libgcj: Turned off object serialization tests temporarily
5705 due to compiler error.
5707 2000-04-17 Warren Levy <warrenl@cygnus.com>
5709 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5710 to avoid build problem.
5712 * mauve-libgcj: Turned on object serialization tests.
5714 2000-04-17 Tom Tromey <tromey@cygnus.com>
5716 * libgcj.spec.in (*lib): Added -lgcjawt.
5718 2000-04-17 Andrew Haley <aph@cygnus.com>
5720 * Makefile.am: Add new files:
5721 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5723 * Makefile.in: Rebuilt.
5725 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5726 interface that has no implementations.
5727 Check for an attempt to assign an abstract class to an interface.
5729 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5730 if we fail to find MessageDigest.getInstance ("SHA").
5732 * gnu/gcj/io/SimpleSHSStream.java: New file.
5733 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5734 * gnu/gcj/io/shs.cc: New file.
5735 * gnu/gcj/io/shs.h: new file.
5737 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5740 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5741 punctuation from the classname of an array element.
5743 * gcj/javaprims.h: Add SimpleDigestStream.
5745 2000-04-17 Andrew Haley <aph@cygnus.com>
5747 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5748 to getPrivateField for superclasses.
5750 2000-04-14 Andrew Haley <aph@cygnus.com>
5752 * Makefile.am: Add new files:
5753 java/io/ObjectOutputStream$PutField.h,
5754 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5755 java/io/natObjectOutputStream.cc
5756 * Makefile.in: Rebuilt.
5757 * gcj/Makefile.in: Rebuilt.
5758 * include/Makefile.in: Rebuilt.
5759 * java/lang/Class.h (getPrivateField): New method.
5760 (getPrivateMethod): Ditto.
5761 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5762 and java::io::ObjectStreamClass our friends.
5763 * java/lang/natClass.cc (getPrivateField): New method.
5764 (getPrivateMethod): Ditto.
5765 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5766 * gcj/javaprims.h: Add serialization classes.
5767 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5768 (setByteField): Ditto.
5769 (setCharField): Ditto.
5770 (setDoubleField): Ditto.
5771 (setFloatField): Ditto.
5772 (setIntField): Ditto.
5773 (setLongField): Ditto.
5774 (setShortField): Ditto.
5775 (setObjectField): Ditto.
5776 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5778 (getByteField): Ditto.
5779 (getCharField): Ditto.
5780 (getDoubleField): Ditto.
5781 (getFloatField): Ditto.
5782 (getIntField): Ditto.
5783 (getLongField): Ditto.
5784 (getShortField): Ditto.
5785 (getObjectField): Ditto.
5786 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5788 (getSerialPersistantFields): Ditto.
5789 (getDefinedSUID): Ditto.
5790 * java/io/natObjectOutputStream.cc: New file.
5791 * java/io/natObjectInputStream.cc: New file.
5793 2000-04-13 Warren Levy <warrenl@cygnus.com>
5795 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5796 problems. Revert to previous version to reproduce and when fixed.
5798 2000-04-13 Warren Levy <warrenl@cygnus.com>
5800 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5801 * gnu/gcj/io/NullOutputStream.java: New file.
5802 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5803 * java/io/BlockDataException.java: New file.
5804 * java/io/Externalizable.java: New file.
5805 * java/io/InvalidClassException.java: New file.
5806 * java/io/InvalidObjectException.java: New file.
5807 * java/io/NotActiveException.java: New file.
5808 * java/io/NotSerializableException.java: New file.
5809 * java/io/ObjectInput.java: New file.
5810 * java/io/ObjectInputStream.java: New file.
5811 * java/io/ObjectInputValidation.java: New file.
5812 * java/io/ObjectOutput.java: New file.
5813 * java/io/ObjectOutputStream.java: New file.
5814 * java/io/ObjectStreamClass.java: New file.
5815 * java/io/ObjectStreamConstants.java: New file.
5816 * java/io/ObjectStreamField.java: New file.
5817 * java/io/Replaceable.java: New file.
5818 * java/io/Resolvable.java: New file.
5819 * java/io/SerializablePermission.java: New file.
5820 * java/io/WriteAbortedException.java: New file.
5821 * java/security/BasicPermission.java: New file.
5822 * java/security/DigestOutputStream.java: New file.
5823 * java/security/Guard.java: New file.
5824 * java/security/Permission.java: New file.
5825 * java/security/PermissionCollection.java: New file.
5826 * Makefile.am: Added above files.
5827 * Makefile.in: Rebuilt.
5829 * java/beans/Beans.java (instantiate): Activated serialization code.
5830 * java/lang/SecurityManager.java (checkPermission): New method.
5832 2000-04-12 Warren Levy <warrenl@cygnus.com>
5834 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5835 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5836 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5837 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5838 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5839 * gnu/gcj/beans/editors/FontEditor.java: New file.
5840 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5841 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5842 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5843 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5844 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5845 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5846 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5847 * gnu/gcj/beans/editors/StringEditor.java: New file.
5848 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5849 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5850 * gnu/gcj/lang/ArrayHelper.java: New file.
5851 * gnu/gcj/lang/ClassHelper.java: New file.
5852 * java/beans/BeanDescriptor.java: New file.
5853 * java/beans/BeanInfo.java: New file.
5854 * java/beans/Beans.java: New file.
5855 * java/beans/Customizer.java: New file.
5856 * java/beans/DesignMode.java: New file.
5857 * java/beans/EventSetDescriptor.java: New file.
5858 * java/beans/FeatureDescriptor.java: New file.
5859 * java/beans/IndexedPropertyDescriptor.java: New file.
5860 * java/beans/IntrospectionException.java: New file.
5861 * java/beans/Introspector.java: New file.
5862 * java/beans/MethodDescriptor.java: New file.
5863 * java/beans/ParameterDescriptor.java: New file.
5864 * java/beans/PropertyChangeEvent.java: New file.
5865 * java/beans/PropertyChangeListener.java: New file.
5866 * java/beans/PropertyChangeSupport.java: New file.
5867 * java/beans/PropertyDescriptor.java: New file.
5868 * java/beans/PropertyEditor.java: New file.
5869 * java/beans/PropertyEditorManager.java: New file.
5870 * java/beans/PropertyEditorSupport.java: New file.
5871 * java/beans/PropertyVetoException.java: New file.
5872 * java/beans/SimpleBeanInfo.java: New file.
5873 * java/beans/VetoableChangeListener.java: New file.
5874 * java/beans/VetoableChangeSupport.java: New file.
5875 * java/beans/Visibility.java: New file.
5876 * java/beans/beancontext/BeanContext.java: New file.
5877 * java/beans/beancontext/BeanContextChild.java: New file.
5878 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5879 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5880 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5881 * java/beans/beancontext/BeanContextEvent.java: New file.
5882 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5883 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5884 * java/beans/beancontext/BeanContextProxy.java: New file.
5885 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5887 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5888 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5890 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5891 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5893 * java/beans/beancontext/BeanContextServices.java: New file.
5894 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5895 * java/util/AbstractCollection.java: New file.
5896 * java/util/AbstractList.java: New file.
5897 * java/util/Arrays.java: New file.
5898 * Makefile.am: Added above files.
5899 * Makefile.in: Rebuilt.
5901 2000-04-11 Warren Levy <warrenl@cygnus.com>
5903 * java/awt/AWTError.java: New file.
5904 * java/awt/AWTEvent.java: New file.
5905 * java/awt/AWTException.java: New file.
5906 * java/awt/ActiveEvent.java: New file.
5907 * java/awt/Adjustable.java: New file.
5908 * java/awt/BorderLayout.java: New file.
5909 * java/awt/Color.java: New file.
5910 * java/awt/Component.java: New file.
5911 * java/awt/Container.java: New file.
5912 * java/awt/Dimension.java: New file.
5913 * java/awt/Event.java: New file.
5914 * java/awt/Font.java: New file.
5915 * java/awt/Frame.java: New file.
5916 * java/awt/Graphics.java: New file.
5917 * java/awt/IllegalComponentStateException.java: New file.
5918 * java/awt/Image.java: New file.
5919 * java/awt/ItemSelectable.java: New file.
5920 * java/awt/LayoutManager.java: New file.
5921 * java/awt/LayoutManager2.java: New file.
5922 * java/awt/Menu.java: New file.
5923 * java/awt/MenuBar.java: New file.
5924 * java/awt/MenuComponent.java: New file.
5925 * java/awt/MenuContainer.java: New file.
5926 * java/awt/MenuItem.java: New file.
5927 * java/awt/Paint.java: New file.
5928 * java/awt/PaintContext.java: New file.
5929 * java/awt/Point.java: New file.
5930 * java/awt/Rectangle.java: New file.
5931 * java/awt/Shape.java: New file.
5932 * java/awt/TextArea.java: New file.
5933 * java/awt/TextComponent.java: New file.
5934 * java/awt/Toolkit.java: New file.
5935 * java/awt/Transparency.java: New file.
5936 * java/awt/Window.java: New file.
5937 * java/awt/natToolkit.cc: New file.
5938 * java/awt/event/AWTEventListener.java: New file.
5939 * java/awt/event/ActionEvent.java: New file.
5940 * java/awt/event/ActionListener.java: New file.
5941 * java/awt/event/AdjustmentEvent.java: New file.
5942 * java/awt/event/AdjustmentListener.java: New file.
5943 * java/awt/event/ComponentAdapter.java: New file.
5944 * java/awt/event/ComponentEvent.java: New file.
5945 * java/awt/event/ComponentListener.java: New file.
5946 * java/awt/event/ContainerAdapter.java: New file.
5947 * java/awt/event/ContainerEvent.java: New file.
5948 * java/awt/event/ContainerListener.java: New file.
5949 * java/awt/event/FocusAdapter.java: New file.
5950 * java/awt/event/FocusEvent.java: New file.
5951 * java/awt/event/FocusListener.java: New file.
5952 * java/awt/event/InputEvent.java: New file.
5953 * java/awt/event/InputMethodEvent.java: New file.
5954 * java/awt/event/InputMethodListener.java: New file.
5955 * java/awt/event/InvocationEvent.java: New file.
5956 * java/awt/event/ItemEvent.java: New file.
5957 * java/awt/event/ItemListener.java: New file.
5958 * java/awt/event/KeyAdapter.java: New file.
5959 * java/awt/event/KeyEvent.java: New file.
5960 * java/awt/event/KeyListener.java: New file.
5961 * java/awt/event/MouseAdapter.java: New file.
5962 * java/awt/event/MouseEvent.java: New file.
5963 * java/awt/event/MouseListener.java: New file.
5964 * java/awt/event/MouseMotionAdapter.java: New file.
5965 * java/awt/event/MouseMotionListener.java: New file.
5966 * java/awt/event/PaintEvent.java: New file.
5967 * java/awt/event/TextEvent.java: New file.
5968 * java/awt/event/TextListener.java: New file.
5969 * java/awt/event/WindowAdapter.java: New file.
5970 * java/awt/event/WindowEvent.java: New file.
5971 * java/awt/event/WindowListener.java: New file.
5972 * java/awt/geom/Dimension2D.java: New file.
5973 * java/awt/geom/Point2D.java: New file.
5974 * java/awt/peer/ComponentPeer.java: New file.
5975 * java/awt/peer/ContainerPeer.java: New file.
5976 * java/awt/peer/FramePeer.java: New file.
5977 * java/awt/peer/WindowPeer.java: New file.
5978 * java/util/Collection.java: New file.
5979 * java/util/Comparator.java: New file.
5980 * java/util/Iterator.java: New file.
5981 * java/util/List.java: New file.
5982 * java/util/ListIterator.java: New file.
5983 * Makefile.am: Added above files.
5984 * Makefile.in: Rebuilt.
5986 2000-04-10 Warren Levy <warrenl@cygnus.com>
5988 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5989 * java/lang/FirstThread.java: Ditto.
5990 * java/lang/StringBuffer.java: Ditto.
5991 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5993 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5994 Special case handled in java.math.BigInteger.
5995 * java/math/BigInteger.java (divide): Handle the special case when
5996 dividing by 1 and the high bit of the dividend is set.
5997 (setShiftRight): Handle case when count == 0.
5999 2000-04-05 Andrew Haley <aph@cygnus.com>
6001 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6004 2000-04-05 Andrew Haley <aph@cygnus.com>
6006 * sysdep/ia64.c (rse_address_add): Delete.
6007 (IS_NaT_COLLECTION_ADDR): Delete.
6008 (ia64_backtrace_helper): check for null unwind_info.
6010 * sysdep/ia64-frame.h: add calc_caller_bsp.
6012 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6015 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6016 (_Jv_remI): Likewise.
6017 (_Jv_divJ): Likewise.
6018 (_Jv_remJ): Likewise.
6020 * interpret.cc (continue1): Use divide subroutines to guarantee
6021 correct Java standard behaviour.
6022 Floating-point division should not abort; make it so.
6024 2000-03-29 Tom Tromey <tromey@cygnus.com>
6026 * configure: Rebuilt.
6027 * configure.in: Test against `libgcj_sjlj', not
6028 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6029 to be set even when using sjlj.
6031 2000-03-24 Andrew Haley <aph@cygnus.com>
6033 * Makefile.am: Add file addr2name.awk.
6034 * Makefile.in: Rebuilt.
6035 * addr2name.awk: New file.
6036 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6038 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6041 2000-03-22 Andrew Haley <aph@cygnus.com>
6043 * configure.host: Add -funwind-tables for IA64.
6044 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6045 * Makefile.in: Rebuilt.
6046 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6047 * sysdep/ia64.c: New file.
6048 * sysdep/ia64-frame.h: New file.
6049 * configure.in: Add sysdep/ia64.c for ia64.
6050 * configure: Rebuilt.
6052 2000-03-17 Andrew Haley <aph@cygnus.com>
6054 * java/lang/natString.cc: Remove `register' keyword.
6055 interpret.cc: ditto.
6057 2000-03-16 Andrew Haley <aph@cygnus.com>
6059 * configure.host (ia64): Enable interpreter.
6061 2000-03-14 Hans Boehm <boehm@acm.org>
6063 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6065 2000-03-14 Andrew Haley <aph@cygnus.com>
6067 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6070 2000-03-10 Andrew Haley <aph@cygnus.com>
6072 * java/lang/ieeefp.h: Import latest version from fdlibm.
6074 2000-03-14 Andrew Haley <aph@cygnus.com>
6076 * prims.cc (_Jv_ThrowSignal): New function.
6077 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6079 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6080 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6081 * include/ppc-signal.h: New file.
6083 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6085 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6086 * java/lang/natThread.java (initialize_native): Cast `data' to
6088 * gnu/gcj/RawData.java: Clarify documentation.
6090 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6091 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6092 `jarFile', not `jarFileURL'.
6094 2000-05-15 Andrew Haley <aph@cygnus.com>
6096 * include/ppc-signal.h: New file.
6098 2000-05-11 Tom Tromey <tromey@cygnus.com>
6100 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6101 file headers, don't include `size' in the skip call.
6103 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6105 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6106 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6108 (replace): Reimplemented. Fix javadoc.
6109 (reverse): Call ensureCapacity_unsynchronized().
6110 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6112 (replace): Calculate length for arraycopy() correctly.
6114 2000-05-09 Tom Tromey <tromey@cygnus.com>
6116 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6118 (insert(int,char[],int,int): New method.
6119 (delete): New method from Classpath.
6120 (deleteCharAt): Likewise.
6121 (substring): Likewise.
6122 (shared): No longer private.
6123 Added JavaDoc comments from Classpath.
6124 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6127 2000-05-07 Tom Tromey <tromey@cygnus.com>
6129 * Makefile.in: Rebuilt.
6130 * Makefile.am (LIBLINK): New macro.
6131 (libgcj_la_LINK): Use it.
6132 (libgcjawt_la_LINK): Likewise.
6134 2000-05-06 Tom Tromey <tromey@cygnus.com>
6136 * Makefile.in: Rebuilt.
6137 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6139 2000-05-05 Tom Tromey <tromey@cygnus.com>
6141 Fix for PR libgcj/220:
6142 * Makefile.in: Rebuilt.
6143 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6144 (jv_convert_LDFLAGS): Likewise.
6145 (libgcj_la_LDFLAGS): Likewise.
6146 (GCJLINK): New macro.
6147 (jv_convert_LINK): Use it.
6148 (gij_LINK): Likewise.
6149 (libgcj_la_LINK): New macro.
6150 (libgcjawt_la_LINK): Likewise.
6152 2000-05-04 Tom Tromey <tromey@cygnus.com>
6154 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6156 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6160 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6162 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6163 (_Jv_IsAssignableFrom): Ditto.
6164 (_Jv_IsInstanceOf): Ditto.
6165 (_Jv_CheckCast): Ditto.
6166 (_Jv_CheckArrayStore): Ditto.
6167 * java/lang/Class.h (_Jv_InitClass): Ditto.
6168 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6173 (_Jv_MonitorExit): Ditto.
6174 * boehm.cc (_Jv_MarkObj): Ditto.
6175 (_Jv_MarkObj): Ditto.
6176 (_Jv_MarkArray): Ditto.
6177 * prims.cc (_Jv_AllocObject): Ditto.
6178 (_Jv_NewObjectArray): Ditto.
6179 (_Jv_NewPrimArray): Ditto.
6180 (_Jv_Malloc): Ditto.
6181 (_Jv_Realloc): Ditto.
6182 (_Jv_MallocUnchecked): Ditto.
6188 2000-05-04 Tom Tromey <tromey@cygnus.com>
6190 * java/util/Locale.java (Locale): Don't explicitly check for
6192 * java/util/Hashtable.java (containsKey): Don't explicitly check
6195 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6197 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6199 * java/text/StringCharacterIterator.java
6200 (StringCharacterIterator): Don't check for null.
6201 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6203 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6204 check for null pointer.
6205 (leaveGroup): Likewise.
6206 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6208 (setData): Likewise.
6209 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6212 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6214 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6215 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6216 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6217 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6218 -rpath for in-gcc builds.
6219 * Makefile.in: Rebuilt.
6221 2000-04-28 Tom Tromey <tromey@cygnus.com>
6223 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6226 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6228 * libjava/java/lang/String.java (toString): Remove `final' hack.
6230 2000-04-05 Tom Tromey <tromey@cygnus.com>
6232 Runtime support for PR gcj/2:
6233 * prims.cc (_Jv_ThrowNullPointerException): New function.
6234 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6236 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6238 * prims.cc (_Jv_NewObjectArray): Fix typo.
6240 2000-04-26 Tom Tromey <tromey@cygnus.com>
6242 * Makefile.in: Rebuilt.
6243 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6245 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6247 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6250 2000-04-22 Anthony Green <green@cygnus.com>
6252 * include/jvm.h (__builtin_expect): Define as unused for now.
6253 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6257 (_Jv_MonitorExit): Ditto.
6258 * boehm.cc (_Jv_MarkObj): Ditto.
6259 (_Jv_MarkObj): Ditto.
6260 (_Jv_MarkArray): Ditto.
6261 (_Jv_AllocBytes): Ditto.
6262 * prims.cc (_Jv_AllocObject): Ditto.
6263 (_Jv_NewObjectArray): Ditto.
6264 (_Jv_NewPrimArray): Ditto.
6265 (_Jv_Malloc): Ditto.
6266 (_Jv_Realloc): Ditto.
6267 (_Jv_MallocUnchecked): Ditto.
6273 * include/Makefile.in: Rebuilt.
6274 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6276 2000-04-21 Tom Tromey <tromey@cygnus.com>
6278 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6279 Yet another new version from Classpath.
6281 Fix for PR libgcj/15:
6282 * java/util/natGregorianCalendar.cc (_REENTRANT,
6283 _POSIX_PTHREAD_SEMANTICS): Don't define.
6284 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6285 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6287 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6289 * configure: Rebuilt.
6290 * configure.in: If using POSIX threads, define _REENTRANT if
6291 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6292 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6294 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6295 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6296 version from Classpath.
6298 Fix for PR libgcj/213:
6299 * Makefile.in: Rebuilt.
6300 * Makefile.am (gij_SOURCES): Added gij.cc.
6301 (EXTRA_gij_SOURCES): Removed.
6302 (gij_LDADD): Removed gij.lo.
6303 (gij_DEPENDENCIES): Likewise.
6304 ($(gij_OBJECTS)): Depend on nat_headers.
6306 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6307 `setURL', not `url.set'.
6309 2000-04-20 Tom Tromey <tromey@cygnus.com>
6311 Fix for PR java.io/204:
6312 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6313 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6316 Fix for PR libgcj/212:
6317 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6318 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6319 * java/lang/Class.h (_Jv_word): Declare.
6321 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6323 2000-04-19 Tom Tromey <tromey@cygnus.com>
6325 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6326 doesn't have a loader.
6328 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6330 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6331 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6333 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6335 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6337 (available): Initialize `where' to prevent bogus compiler warning.
6339 2000-04-12 Tom Tromey <tromey@cygnus.com>
6341 * java/lang/natString.cc (intern): Temporarily disable finalizer
6344 * java/lang/natString.cc (unintern): Added `obj' argument.
6345 (intern): Register finalizer for string.
6346 * java/lang/String.java (unintern): Now static; added obj
6349 2000-04-11 Tom Tromey <tromey@cygnus.com>
6351 * java/util/Vector.java (VectorEnumeration): Now `final'.
6352 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6353 (HashtableEnumeration): Likewise.
6354 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6355 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6357 2000-04-10 Warren Levy <warrenl@cygnus.com>
6359 * java/io/ObjectStreamException.java: New file.
6360 * java/io/OptionalDataException.java: New file.
6361 * java/io/StreamCorruptedException.java: New file.
6362 * java/math/BigDecimal.java: New file.
6363 * java/sql/CallableStatement.java: New file.
6364 * java/sql/Connection.java: New file.
6365 * java/sql/DataTruncation.java: New file.
6366 * java/sql/DatabaseMetaData.java: New file.
6367 * java/sql/Date.java: New file.
6368 * java/sql/Driver.java: New file.
6369 * java/sql/DriverManager.java: New file.
6370 * java/sql/DriverPropertyInfo.java: New file.
6371 * java/sql/PreparedStatement.java: New file.
6372 * java/sql/ResultSet.java: New file.
6373 * java/sql/ResultSetMetaData.java: New file.
6374 * java/sql/SQLException.java: New file.
6375 * java/sql/SQLWarning.java: New file.
6376 * java/sql/Statement.java: New file.
6377 * java/sql/Time.java: New file.
6378 * java/sql/Timestamp.java: New file.
6379 * java/sql/Types.java: New file.
6380 * Makefile.am: Added above new files.
6381 * Makefile.in: Rebuilt.
6383 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6384 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6385 DatagramSocket constructor instead of null.
6387 2000-04-08 Anthony Green <green@cygnus.com>
6389 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6392 2000-04-08 Anthony Green <green@cygnus.com>
6394 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6395 (_Jv_MutexUnlock): Ditto.
6396 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6397 (_Jv_MutexUnlock): Ditto.
6399 2000-04-08 Anthony Green <green@cygnus.com>
6401 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6402 (ensureCapacity_unsynchronized): New private method.
6403 (append): Use ensureCapacity_unsynchronized.
6405 2000-04-08 Tom Tromey <tromey@cygnus.com>
6407 * Makefile.in: Rebuilt.
6408 * Makefile.am (awt_java_source_files): Added new files.
6409 * java/awt/IllegalComponentStateException.java: New file.
6410 * java/awt/ItemSelectable.java: New file.
6411 * java/awt/event/WindowEvent.java: Finished.
6412 * java/awt/event/TextEvent.java: Finished.
6413 * java/awt/event/ContainerEvent.java: New file.
6414 * java/awt/Component.java (getX, getY): New methods.
6415 * java/awt/event/PaintEvent.java: New file.
6416 * java/awt/event/MouseEvent.java: New file.
6417 * java/awt/ActiveEvent.java: New file.
6418 * java/awt/event/KeyEvent.java: Finished.
6419 * java/awt/event/ItemEvent.java: New file.
6420 * java/awt/Adjustable.java: New file.
6421 * java/awt/event/InputMethodEvent.java: New file.
6422 * java/awt/event/InputEvent.java: Finished.
6423 * java/awt/event/FocusEvent.java: New file.
6424 * java/awt/event/MouseMotionAdapter.java: New file.
6425 * java/awt/event/MouseAdapter.java: New file.
6426 * java/awt/event/KeyAdapter.java: New file.
6427 * java/awt/event/FocusAdapter.java: New file.
6428 * java/awt/event/ContainerAdapter.java: New file.
6429 * java/awt/event/ComponentEvent.java: Finished.
6430 * java/awt/event/AdjustmentEvent.java: New file.
6431 * java/awt/event/ComponentAdapter.java: New file.
6432 * java/awt/event/ActionEvent.java: Finished.
6433 * java/awt/event/MouseMotionListener.java: New file.
6434 * java/awt/event/MouseListener.java: New file.
6435 * java/awt/event/ItemListener.java: New file.
6436 * java/awt/event/InputMethodListener.java: New file.
6437 * java/awt/event/ContainerListener.java: New file.
6438 * java/awt/event/FocusListener.java: New file.
6439 * java/awt/event/ComponentListener.java: New file.
6440 * java/awt/event/AWTEventListener.java: New file.
6441 * java/awt/event/AdjustmentListener.java: New file.
6443 2000-04-08 Anthony Green <green@cygnus.com>
6445 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6446 check when we have to.
6448 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6451 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6454 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6455 inline hasMoreElements.
6457 2000-04-05 Tom Tromey <tromey@cygnus.com>
6459 * configure: Rebuilt.
6460 * configure.in: Recognize --enable-java-awt.
6461 (AWT): New conditional.
6462 * Makefile.in: Rebuilt.
6463 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6465 (libgcjawt_la_SOURCES): New macro.
6466 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6467 (libgcjawt_la_DEPENDENCIES): Likewise.
6468 (libgcjawt_la_LIBADD): Likewise.
6469 (libgcjawt_la_LDFLAGS): Likewise.
6470 (libgcj.zip): Depend on cond_java_awt_source_files
6471 (cond_awt_java_source_files): New macro.
6472 (MOSTLYCLEANFILES): Added awto_files.
6473 (awto_files): New macro. Use where javao_files used.
6474 (nat_headers): Use cond_awt_java_source_files.
6476 2000-04-04 Tom Tromey <tromey@cygnus.com>
6478 * Makefile.in: Rebuilt.
6479 * Makefile.am (awt_java_source_files): Added AWTException.java.
6480 * java/awt/AWTException.java: New file.
6482 2000-04-03 Tom Tromey <tromey@cygnus.com>
6484 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6485 commentary from Alex.
6487 * Makefile.in: Rebuilt.
6488 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6491 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6493 * configure: Rebuilt.
6494 * configure.in: Add --disable-jvmpi.
6495 * include/config.h.in: Rebuilt.
6496 * acconfig.h: Add ENABLE_JVMPI.
6498 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6499 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6500 (_Jv_JVMPI_Notify_THREAD_END): New define.
6501 (_Jv_JVMPI_Notify_THREAD_END): New define.
6502 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6503 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6504 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6506 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6509 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6510 (finish_): Generate JVMPI thread end events.
6511 (run_): Generate JVMPI thread start events.
6512 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6513 preloaded JNI library.
6514 Include JVMPI headers if necessary.
6515 (run): Generate JVMPI thread start events.
6517 * boehm.cc: Define GC_disable and GC_enable.
6518 (_Jv_DisableGC): New function.
6519 (_Jv_EnableGC): New function.
6520 (disable_gc_mutex): Declare.
6521 * nogc.cc (_Jv_DisableGC): New function.
6522 (_Jv_EnableGC): New function.
6524 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6525 (_Jv_JVMPI_Interface): Define.
6526 (jvmpiEnableEvent): New function.
6527 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6529 * include/jvmpi.h: New file.
6531 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6533 * Makefile.in: New #defines and friends for Thread.h.
6534 * Makefile.am: Ditto.
6535 * posix-threads.cc: (struct starter): Remove `object'.
6536 (_Jv_CondWait): Use interruptable condition variables and new
6537 recursive mutexes. New return codes on interrupt or non-ownership
6539 (_Jv_CondNotify): Ditto.
6540 (_Jv_CondNotifyAll): Ditto.
6541 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6542 the target thread by signaling its wait condition.
6543 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6544 not the starter struct. Initialize wait_mutex and wait_cond.
6545 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6547 (_Jv_MutexUnlock): Ditto.
6548 (really_start): Set info->data->thread from pthread_self() to work
6549 around a race condition. Destroy wait_mutex and wait_cond when run()
6551 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6552 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6554 startable_flag: New private field.
6555 (Thread): Initialize `startable_flag'.
6556 (toString): Check for null thread group.
6557 * java/lang/natThread.cc: (struct natThread): New fields
6558 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6559 (class locker): Removed.
6560 (initialize_native): Initialize `join_cond' and `join_mutex'.
6561 (interrupt): Now just calls _Jv_ThreadInterrupt().
6562 (join): Simplified. Just wait on the target thread's join condition.
6563 (finish_): Remove join list code. Unset thread group. Signal
6564 potential joiners by notifying the dying threads join_cond.
6565 (start): Check for illegal restarts.
6566 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6568 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6569 #defines and #ifdefs.
6570 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6571 `wait_mutex', `next'.
6572 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6573 directly mapping to pthread_cond_t.
6574 (struct _Jv_Mutex_t): New recursive implementation.
6575 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6576 _Jv_HaveCondDestroy: Never define this for posix-threads.
6577 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6578 (_Jv_CondNotifyAll): Ditto.
6579 (_Jv_MutexLock): Ditto.
6580 (_Jv_MutexUnlock): Ditto.
6581 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6582 (_Jv_MutexDestroy): Ditto.
6583 (_Jv_CondDestroy): Removed.
6584 (_Jv_PthreadGetMutex): Removed.
6585 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6586 error. Add a FIXME about this.
6587 (_Jv_CondNotifyAll): Ditto.
6588 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6589 _JV_NOT_OWNER on other errors. Add FIXME.
6591 2000-03-26 Tom Tromey <tromey@cygnus.com>
6593 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6595 (call): Don't throw exception here.
6597 2000-03-26 Tom Tromey <tromey@cygnus.com>
6599 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6600 * interpret.cc: Use SIZEOF_VOID_P.
6601 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6602 (_Jv_loadLong): Likewise.
6603 (_Jv_storeDouble): Likewise.
6604 * configure: Rebuilt.
6605 * configure.in: Check size of void*.
6607 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6609 2000-03-26 Hans Boehm <boehm@acm.org>
6611 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6612 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6614 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6615 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6616 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6617 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6619 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6620 (FFI_RAW_SIZE): Likewise.
6621 (_Jv_InterpMethod::ncode): Use them.
6622 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6623 STORED): Define differently on a 64 bit machine.
6624 (continue1): Use ffi_java_raw_call when appropriate.
6626 2000-03-24 Warren Levy <warrenl@cygnus.com>
6628 * java/math/BigInteger.java(divide): Handle the special case when
6629 dividing by 1 and the high bit of the dividend is set.
6630 (setShiftRight): Handle case when count == 0.
6632 2000-03-24 Warren Levy <warrenl@cygnus.com>
6634 * java/awt/Font.java(isBold): Fix syntax error.
6636 * java/awt/Frame.java(postEvent): ditto.
6637 * java/awt/Menu.java(postEvent): ditto.
6638 * java/awt/MenuBar.java(postEvent): ditto.
6639 * java/awt/Toolkit.java(init): Included a stub.
6641 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6643 * java/awt/Event.java: Add all the event type constants.
6644 (Event): Implemented constructors.
6645 (controlDown): Implemented.
6646 (metaDown): Implemented.
6647 (paramString): Stubbed.
6648 (shiftDown): Implemented.
6649 (toString): Implemented.
6650 (translate): Implemented.
6652 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6654 * java/lang/natClass.cc (isInstance): Initialize `this'.
6655 (isAssignableFrom): Initialize `this' and `klass'.
6656 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6657 implemented by any loaded class, so return false.
6658 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6659 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6661 2000-03-19 Warren Levy <warrenl@cygnus.com>
6663 * java/awt/Color.java: Specified java.io for Serializable.
6664 * java/awt/Toolkit.java: Imported java.net.URL.
6666 2000-03-19 Warren Levy <warrenl@cygnus.com>
6668 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6670 2000-03-16 Warren Levy <warrenl@cygnus.com>
6672 * java/awt/Color.java: New file.
6673 * java/awt/Graphics.java: New file.
6674 * java/awt/Image.java: New file.
6675 * java/awt/Paint.java: New file.
6676 * java/awt/PaintContext.java: New file.
6677 * java/awt/Transparency.java: New file.
6678 * java/util/Collection.java: New file.
6679 * java/util/Comparator.java: New file.
6680 * java/util/Iterator.java: New file.
6681 * java/util/List.java: New file.
6682 * java/util/ListIterator.java: New file.
6683 * Makefile.am: Added above new files.
6684 * Makefile.in: Rebuilt.
6686 * java/awt/Font.java (PLAIN): New field.
6688 (ITALIC): New field.
6689 (ROMAN_BASELINE): New field.
6690 (CENTER_BASELINE): New field.
6691 (HANGING_BASELINE): New field.
6695 (pointSize): New field.
6696 (Font): Implemented constructor.
6697 (isPlain): Implemented method.
6698 (isBold): Implemented method.
6699 (isItalic): Implemented method.
6700 (getName): Implemented method.
6701 (getStyle): Implemented method.
6702 (getSize): Implemented method.
6703 (getSize2D): Implemented method.
6705 * java/awt/Frame.java (getFont): Stubbed.
6706 (postEvent): Stubbed.
6708 * java/awt/Menu.java (postEvent): Stubbed.
6709 * java/awt/MenuBar.java (getFont): Stubbed.
6710 (postEvent): Stubbed.
6711 * java/awt/Toolkit.java (getImage): Added abstract method.
6713 2000-03-15 Tom Tromey <tromey@cygnus.com>
6715 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6717 * prims.cc (win32_exception_handler): Reformatted.
6719 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6720 (_Jv_HaveMutexDestroy): Likewise.
6722 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6724 * java/io/natFileDescriptorWin32.cc: New file.
6725 * java/io/natFileWin32.cc: New file.
6726 * java/net/natInetAddress.cc: Added conditional inclusion of
6727 Windows / Winsock headers.
6728 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6729 inclusion of Windows / Winsock headers.
6730 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6731 Windows / Winsock headers.
6732 * include/win32-signal.h: New file.
6733 * include/win32-threads.h: New file.
6734 * win32-threads.cc: New file.
6735 * exception.cc (win32_get_restart_frame): New function.
6736 * prims.cc (win32_exception_handler): New function.
6737 (main_init) Performs Winsock initialisation.
6738 (main_init) Installs exeception handler.
6740 2000-03-14 Tom Tromey <tromey@cygnus.com>
6742 * jni.cc (mangled_name): Fixed assertion.
6743 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6744 turned assert into actual failure.
6746 2000-03-09 Warren Levy <warrenl@cygnus.com>
6748 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6749 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6750 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6752 2000-03-09 Warren Levy <warrenl@cygnus.com>
6754 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6755 * java/security/DigestException.java: New file.
6756 * java/security/GeneralSecurityException.java: New file.
6757 * java/security/InvalidAlgorithmParameterException.java: New file.
6758 * java/security/InvalidKeyException.java: New file.
6759 * java/security/InvalidParameterException.java: New file.
6760 * java/security/Key.java: New file.
6761 * java/security/KeyException.java: New file.
6762 * java/security/KeyPair.java: New file.
6763 * java/security/KeyPairGenerator.java: New file.
6764 * java/security/KeyPairGeneratorSpi.java: New file.
6765 * java/security/NoSuchProviderException.java: New file.
6766 * java/security/PrivateKey.java: New file.
6767 * java/security/Provider.java: New file.
6768 * java/security/PublicKey.java: New file.
6769 * java/security/SecureRandom.java: New file.
6770 * java/security/Security.java: New file.
6771 * java/security/Signature.java: New file.
6772 * java/security/SignatureException.java: New file.
6773 * java/security/interfaces/DSAKey.java: New file.
6774 * java/security/interfaces/DSAParams.java: New file.
6775 * java/security/interfaces/DSAPrivateKey.java: New file.
6776 * java/security/interfaces/DSAPublicKey.java: New file.
6777 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6778 * java/security/interfaces/RSAPrivateKey.java: New file.
6779 * java/security/interfaces/RSAPublicKey.java: New file.
6780 * java/security/spec/AlgorithmParameterSpec.java: New file.
6781 * java/security/spec/InvalidKeySpecException.java: New file.
6782 * java/security/spec/InvalidParameterSpecException.java: New file.
6783 * java/security/spec/KeySpec.java: New file.
6784 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6785 * java/security/spec/RSAPrivateKeySpec.java: New file.
6786 * java/security/spec/RSAPublicKeySpec.java: New file.
6787 * Makefile.am: Added above java.security files.
6788 * Makefile.in: Rebuilt.
6790 * java/security/MessageDigest.java: Rewritten.
6791 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6793 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6797 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6799 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6800 _Jv_PrepareConstantTimeTables.
6801 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6802 classes should have an IDT, so don't return if klass is an array
6805 2000-03-08 Tom Tromey <tromey@cygnus.com>
6807 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6808 of `void' to be created.
6810 2000-03-08 Warren Levy <warrenl@cygnus.com>
6812 * java/math/BigInteger.java(signum): Handle zero properly.
6814 2000-03-07 Tom Tromey <tromey@cygnus.com>
6816 * All files: Updated copyright information.
6817 * COPYING: New file.
6818 * COPYING.LIB: Removed.
6819 * LIBGCJ_LICENSE: We now use GPL + special exception.
6821 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6823 * resolve.cc (_Jv_SearchMethodInClass): New function.
6824 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6825 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6827 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6829 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6830 (struct _Jv_ifaces): New declaration.
6831 JV_CLASS: New macro definition.
6832 (getComponentType): Relocate below isArray() for inlining.
6833 (getModifiers): Declare `inline'.
6834 (getSuperclass): Ditto.
6836 (isPrimitive): Ditto.
6837 (_Jv_IsAssignableFrom): New prototype.
6838 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6840 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6841 Check for JV_STATE_DONE before invoking initializeClass().
6842 (_Jv_PrepareConstantTimeTables): New prototype.
6843 (_Jv_GetInterfaces): Ditto.
6844 (_Jv_GenerateITable): Ditto.
6845 (_Jv_GetMethodString): Ditto.
6846 (_Jv_AppendPartialITable): Ditto.
6847 (_Jv_FindIIndex): Ditto.
6848 depth, ancestors, idt: New class fields.
6850 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6851 inline function `_Jv_IsAssignableFrom'. Use that function.
6852 (isInstance): Declare `inline'.
6853 (initializeClass): Get lock on class before checking `state'. Unlock
6854 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6856 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6857 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6858 class->depth and ancestor table.
6859 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6860 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6861 _Jv_IsAssignableFrom.
6862 (_Jv_CheckArrayStore): Ditto.
6863 (_Jv_LookupInterfaceMethodIdx): New function.
6864 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6865 (_Jv_PrepareConstantTimeTables): New function.
6866 (_Jv_IndexOf): Ditto.
6867 (_Jv_GetInterfaces): Ditto.
6868 (_Jv_GenerateITable): Ditto.
6869 (_Jv_GetMethodString): Ditto.
6870 (_Jv_AppendPartialITable): Ditto.
6871 iindex_mutex, iindex_mutex_initialized: New static fields.
6872 (_Jv_FindIIndex): New function.
6874 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6876 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6877 (_Jv_CheckArrayStore): Ditto.
6878 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6879 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6880 Moved to gcj/array.h.
6881 (_Jv_Realloc): New function.
6883 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6885 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6886 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6887 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6888 JvNewDoubleArray): Implementations moved from prims.cc and
6891 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6893 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6895 2000-03-06 Tom Tromey <tromey@cygnus.com>
6897 * jni.cc (MARK_NONE): New define.
6898 (MARK_USER): Likewise.
6899 (MARK_SYSTEM): Likewise.
6900 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6902 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6903 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6904 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6905 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6907 (call): Use MARK_SYSTEM.
6908 (_Jv_GetJNIEnvNewFrame): New function.
6909 (_Jv_LookupJNIMethod): New function.
6910 (_Jv_JNI_PopSystemFrame): New function.
6911 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6913 2000-03-05 Tom Tromey <tromey@cygnus.com>
6915 Fix for PR libgcj/43:
6916 * include/Makefile.in: Rebuilt.
6917 * include/Makefile.am (include_HEADERS): New define.
6919 2000-03-05 Anthony Green <green@redhat.com>
6921 * gcj/javaprims.h ("Java"): Remove FirstThread.
6923 * configure.host: Fix __NO_MATH_INLNES botch.
6925 * Makefile.in: Rebuilt.
6926 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6927 (gnu/gcj/runtime/FirstThread.h): Moved.
6928 (ordinary_java_source_files): Move FirstThread.java.
6929 * prims.cc: Deal with FirstThread movement.
6931 (_Jv_RunMain): Ditto.
6933 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6934 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6936 2000-03-05 Warren Levy <warrenl@cygnus.com>
6938 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6939 Handle null addresses.
6941 2000-03-04 Anthony Green <green@redhat.com>
6943 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6946 2000-03-04 Anthony Green <green@redhat.com>
6948 * configure: Rebuilt.
6949 * configure.in (ZLIBTESTSPEC): New macro.
6950 (GCTESTSPEC): New macro.
6951 (LIBGCJTESTSPEC): New macro.
6952 * libgcj-test.spec.in: New file.
6954 2000-03-02 Tom Tromey <tromey@cygnus.com>
6956 * include/java-interp.h: Don't include MethodInvocation.h.
6957 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6958 * Makefile.in: Rebuilt.
6959 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6960 (ordinary_java_source_files): Don't mention
6961 MethodInvocation.java.
6962 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6963 * interpret.cc (MethodInvocation::continue1): Removed.
6964 (run): Handle exceptions here.
6965 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6967 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6969 (defineClass2): Removed.
6971 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6973 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6975 (hack_call): Removed.
6977 * java/lang/Class.h (Class): Removed hackRunInitializers,
6979 * java/lang/natClass.cc (hackRunInitializers): Removed.
6980 (initializeClass): Catch exceptions here.
6981 Include ExceptionInInitializerError.h.
6982 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6985 * java/lang/Object.h (Object): Don't mention hack12_6.
6986 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6988 * java/lang/Object.java (hack12_6): Removed.
6990 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6991 (start): Use run_, not run__.
6992 * java/lang/Thread.java (run_): Renamed from run__; old run_
6995 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6996 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6997 (_Jv_JNI_DefineClass): Likewise.
6998 (_Jv_JNI_ThrowNew): Likewise.
6999 (_Jv_JNI_AllocObject): Likewise.
7000 (_Jv_JNI_GetAnyMethodID): Likewise.
7001 (_Jv_JNI_CallAnyMethodV): Likewise.
7002 (_Jv_JNI_CallAnyMethodA): Likewise.
7003 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7004 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7005 (_Jv_JNI_GetAnyFieldID): Likewise.
7006 (_Jv_JNI_NewString): Likewise.
7007 (_Jv_JNI_NewStringUTF): Likewise.
7008 (_Jv_JNI_GetStringUTFChars): Likewise.
7009 (_Jv_JNI_NewObjectArray): Likewise.
7010 (_Jv_JNI_NewPrimitiveArray): Likewise.
7011 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7012 (_Jv_JNI_GetStringRegion): Likewise.
7013 (_Jv_JNI_GetStringUTFRegion): Likewise.
7014 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7015 (_Jv_JNI_MonitorEnter): Likewise.
7016 (_Jv_JNI_MonitorExit): Likewise.
7017 (_Jv_JNI_ToReflectedField): Likewise.
7018 (_Jv_JNI_ToReflectedMethod): Likewise.
7019 (_Jv_JNI_RegisterNatives): Likewise.
7020 (_Jv_JNI_AttachCurrentThread): Likewise.
7021 (_Jv_JNI_DestroyJavaVM): Likewise.
7023 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7025 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7026 error caused by the incorrect casting of a long to an int.
7028 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7030 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7031 SIGSEV caused by use of the wrong instance variable.
7033 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7035 * java/io/File.java (File(String, String)): For dirPath, treat an
7036 empty String the same as `null'.
7038 2000-02-26 Anthony Green <green@cygnus.com>
7040 * gnu/gcj/io/MimeTypes.java: Test for null.
7042 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7043 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7045 * java/net/URLConnection.java: Update copyright notice.
7047 2000-02-25 Tom Tromey <tromey@cygnus.com>
7049 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7052 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7054 * java/net/URLConnection.java (initializeDateFormats): New
7056 (getHeaderFieldDate): Call initializeDateFormats if required.
7057 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7059 Fix for PR libgcj/38.
7061 2000-02-24 Warren Levy <warrenl@cygnus.com>
7063 * java/math/BigInteger.java(ival): Made private.
7067 2000-02-20 Anthony Green <green@cygnus.com>
7069 * Makefile.in: Rebuilt.
7070 * Makefile.am (ordinary_java_source_files): Add
7071 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7073 * scripts/MakeDefaultMimeTypes.java: New file.
7074 * scripts/mime.types: New file.
7075 * scripts/classes.pl: Moved from top level.
7076 * classes.pl: Moved to scripts directory.
7078 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7080 * gnu/gcj/io/MimeTypes.java: New file.
7081 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7083 2000-02-20 Tom Tromey <tromey@cygnus.com>
7085 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7087 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7089 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7092 2000-02-18 Tom Tromey <tromey@cygnus.com>
7094 * include/jvm.h (_Jv_GetJavaVM): Declare.
7095 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7096 (_Jv_MethodBase::get_method): New method.
7097 (_Jv_JNIMethod::set_function): New method.
7098 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7099 (_Jv_JNI_RegisterNatives): New function.
7100 (_Jv_JNIFunctions): Updated for new functions.
7101 (_Jv_GetJavaVM): New function.
7102 (_Jv_JNI_GetJavaVM): Use it. Now static.
7103 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7104 is already a Java thread but does not have a JNIEnv yet.
7106 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7109 2000-02-17 Tom Tromey <tromey@cygnus.com>
7111 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7114 2000-02-16 Tom Tromey <tromey@cygnus.com>
7116 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7118 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7119 (_Jv_JNI_NewObject): Likewise.
7120 (_Jv_JNI_NewObjectA): Likewise.
7121 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7122 as "return" type to _Jv_CallAnyMethodA.
7123 (_Jv_JNI_CallAnyMethodA): Likewise.
7124 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7126 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7129 2000-02-15 Tom Tromey <tromey@cygnus.com>
7131 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7133 (init_cif): Added `rtype_p' argument.
7134 * include/java-interp.h (class _Jv_MethodBase): Added
7136 (class _Jv_InterpMethod): Removed args_raw_size.
7137 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7138 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7139 class pointer as well as the ordinary arguments.
7141 * jni.cc (mangled_name): Skip leading `(' in signature.
7143 * jni.cc (add_char): Added missing `else'.
7145 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7148 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7152 * java/lang/natRuntime.cc (_load): Include library path with
7155 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7158 * java/lang/natThread.cc (dumpStack): Removed.
7159 * java/lang/Thread.java (dumpStack): Implemented.
7161 2000-02-15 Tom Tromey <tromey@cygnus.com>
7163 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7164 with `lib' for loadLibrary. Fixes PR gcj/150.
7166 2000-02-14 Warren Levy <warrenl@cygnus.com>
7168 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7170 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7174 (modPow): Rewritten to not use the naive, slow, brute force approach.
7175 (isProbablePrime): Implemented.
7176 (testBit): Implemented.
7177 (flipBit): Implemented.
7178 (getLowestSetBit): Implemented.
7180 2000-02-16 Anthony Green <green@redhat.com>
7182 * configure.host: Use the same options for i386 and i486 as we do
7185 2000-02-12 Tom Tromey <tromey@cygnus.com>
7187 * java/io/File.java (createTempFile): Use low bits from counter,
7190 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7192 * THANKS: More thanks.
7194 2000-02-11 Tom Tromey <tromey@cygnus.com>
7196 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7197 astore instruction. From Hans Boehm.
7199 2000-02-11 Warren Levy <warrenl@cygnus.com>
7201 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7202 (BigInteger(String)): New constructor.
7203 (not): Rewritten using version from Kawa's BitOps class.
7204 (valueOf): New private methods from Kawa's BitOps class.
7211 (andNot): Implemented.
7212 (clearBit): Implemented.
7213 (setBit): Implemented.
7214 (bitCount): Implemented.
7215 (toByteArray): Implemented.
7217 2000-02-11 Tom Tromey <tromey@cygnus.com>
7219 * java/io/File.java (nextValue): Now synchronized.
7221 2000-02-10 Tom Tromey <tromey@cygnus.com>
7223 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7224 * java/io/FileDescriptor.java (EXCL): New static field.
7225 * java/io/File.java (tmpdir): New static field.
7226 (createTempFile): New method.
7227 (nextValue): New method.
7228 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7231 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7232 (jboolean): Declare as an attributed int, not a bool.
7233 (_Jv_func): Declare differently for C.
7235 * gnu/gcj/jni/natNativeThread.cc: New file.
7236 * gnu/gcj/jni/NativeThread.java: New file.
7237 * java/lang/Thread.java (data): Now a RawData.
7238 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7240 * Makefile.in: Rebuilt.
7241 * Makefile.am (java/lang/Thread.h): New target.
7242 (ordinary_java_source_files): Added NativeThread.java.
7243 (nat_source_files): Added natNativeThread.cc.
7244 * java/lang/natThread.cc: Include <jni.h>
7245 (struct natThread): Added `jni_env' field.
7246 (_Jv_GetCurrentJNIEnv): New function.
7247 (_Jv_SetCurrentJNIEnv): Likewise.
7248 (initialize_native): Initialize jni_env.
7250 * jni.cc (ThreadGroupClass): New define.
7251 (_Jv_JNI_InvokeFunctions): New structure.
7252 (JNI_GetCreatedJavaVMs): New function.
7253 (the_vm): New global.
7254 (JNI_GetDefaultJavaVMInitArgs): New function.
7255 Include NativeThread.h.
7256 (NativeThreadClass): New define.
7257 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7258 (_Jv_JNI_DestroyJavaVM): New function.
7259 (_Jv_JNI_AttachCurrentThread): New function.
7260 (_Jv_JNI_DetachCurrentThread): New function.
7261 (_Jv_JNI_GetEnv): New function.
7262 (JNI_CreateJavaVM): New function.
7263 (_Jv_JNI_GetJavaVM): New function.
7264 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7265 * include/jni.h (JavaVMAttachArgs): New structure.
7266 (JNI_EDETACHED): New define.
7267 (JNI_EVERSION): Likewise.
7268 (JavaVM): Define properly.
7269 (struct JNIInvokeInterface): New structure.
7270 (class _Jv_JavaVM): New class.
7271 (JNI_OnLoad, JNI_OnUnload): Declare.
7272 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7273 JNI_GetCreatedJavaVMs): Declare.
7274 (JavaVMInitArgs): New typedef.
7275 (JavaVMOption): Likewise.
7276 (JNI_ERR): New define.
7279 2000-02-10 Andrew Haley <aph@cygnus.com>
7281 * interpret.cc: Don't include fdlibm.h.
7282 Replace #if with #ifdef throughout.
7283 Declare extern __ieee754_fmod.
7284 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7286 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7287 Search class hierarchy for superclass vtable.
7289 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7290 off the end of a pointer list.
7292 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7296 2000-02-09 Tom Tromey <tromey@cygnus.com>
7298 * java/lang/natRuntime.cc (_load): Call add_library.
7299 (loadLibraryInternal): Likewise.
7301 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7302 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7303 (Output_iconv::finalize): Likewise.
7305 2000-02-08 Tom Tromey <tromey@cygnus.com>
7307 * java/util/Properties.java (setProperty): New method.
7308 (store): New method.
7310 2000-02-07 Tom Tromey <tromey@cygnus.com>
7312 * java/lang/Runtime.java (_load): Declare.
7313 (load, loadLibrary): Wrote in terms of _load.
7314 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7316 (loadLibrary): Likewise.
7318 (_load): New method.
7319 (loadLibrary, load): Removed.
7321 * jni.cc (ThrowableClass): New define.
7322 (_Jv_JNI_Throw): Check argument.
7323 (_Jv_JNI_ThrowNew): Likewise.
7324 (wrap_value): Don't wrap object if it is NULL.
7325 (_Jv_JNI_DefineClass): Use wrap_value.
7326 (_Jv_JNI_FindClass): Likewise.
7327 (_Jv_JNI_GetSuperclass): Likewise.
7328 (_Jv_JNI_ExceptionOccurred): Likewise.
7329 (_Jv_JNI_AllocObject): Likewise.
7330 (_Jv_JNI_GetObjectClass): Likewise.
7331 (_Jv_JNI_NewString): Likewise.
7332 (_Jv_JNI_NewStringUTF): Likewise.
7333 (_Jv_JNI_NewObjectArray): Likewise.
7334 (_Jv_JNI_GetObjectArrayElement): Likewise.
7335 (_Jv_JNI_NewPrimitiveArray): Likewise.
7336 (_Jv_JNI_ToReflectedField): Likewise.
7337 (_Jv_JNI_ToReflectedMethod): Likewise.
7338 (_Jv_JNI_AllocObject): Check argument.
7339 (_Jv_JNI_NewObjectV): Likewise.
7340 (_Jv_JNI_NewObject): Likewise.
7341 (_Jv_JNI_NewObjectA): Likewise.
7342 (_Jv_JNI_GetObjectClass): Likewise.
7343 (_Jv_JNI_GetField): Likewise.
7344 (_Jv_JNI_SetField): Likewise.
7346 * interpret.cc (PUSHL): Don't use expression statement.
7351 * jni.cc (add_char): Conditional on INTERPRETER.
7352 (mangled_name): Likewise.
7354 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7356 (class _Jv_JNIMethod): Likewise.
7358 2000-02-04 Warren Levy <warrenl@cygnus.com>
7360 * Makefile.am: Added MPN.java and BigInteger.java.
7361 * Makefile.in: Rebuilt.
7362 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7364 * java/math/BigInteger.java: New file. Based primarily on
7365 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7367 2000-02-04 Tom Tromey <tromey@cygnus.com>
7369 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7371 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7372 if the method is native.
7373 * resolve.cc (ncode): Don't handle native methods.
7374 (_Jv_JNIMethod::ncode): New method.
7375 (_Jv_PrepareClass): Handle native methods.
7376 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7377 Include AbstractMethodError.h.
7378 (add_char): New function.
7379 (mangled_name): Likewise.
7380 * include/java-interp.h (class _Jv_JNIMethod): New class.
7381 (class _Jv_MethodBase): New class.
7382 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7383 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7386 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7387 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7388 libraries): New globals.
7389 (add_library): New function.
7390 (_Jv_FindSymbolInExecutable): New function.
7392 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7395 2000-02-04 Andrew Haley <aph@cygnus.com>
7397 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7398 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7399 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7400 printStackTrace to printRawStackTrace.
7402 2000-02-03 Tom Tromey <tromey@cygnus.com>
7404 * java/util/Calendar.java (toString): New method.
7405 * java/util/SimpleTimeZone.java (clone): New method.
7406 (toString): New method.
7407 * java/util/TimeZone.java (clone): New method.
7408 * java/text/SimpleDateFormat.java (clone): New method.
7409 * java/text/NumberFormat.java (clone): New method.
7410 (equals): New method.
7411 * java/text/Format.java (clone): New method.
7412 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7414 (clone): New method.
7415 * java/text/DateFormat.java (clone): New method.
7416 * java/text/Collator.java (clone): New method.
7418 2000-02-03 Tom Tromey <tromey@cygnus.com>
7420 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7423 2000-02-01 Tom Tromey <tromey@cygnus.com>
7425 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7426 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7427 constructing the closure if the function is native.
7428 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7429 a template function, #if'd out, or static.
7430 Include <java-interp.h>.
7432 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7434 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7436 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7437 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7439 (wrap_value): New function.
7440 (_Jv_JNI_CallAnyMethodV): Use it.
7441 (_Jv_JNI_CallAnyMethodA): Likewise.
7442 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7443 (_Jv_JNI_GetStaticField): Likewise.
7445 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7446 (_Jv_JNI_GetStaticField): Likewise.
7448 2000-01-31 Tom Tromey <tromey@cygnus.com>
7450 * prims.cc (_Jv_MallocUnchecked): New function.
7451 (main_init): Call _Jv_JNI_Init.
7452 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7453 (_Jv_JNI_Init): Declare.
7454 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7456 (_Jv_JNI_NewGlobalRef): New function.
7457 (_Jv_JNI_DeleteGlobalRef): New function.
7458 (_Jv_JNI_DeleteLocalRef): New function.
7459 (_Jv_JNI_conversion_call): Initialize and clear local reference
7461 (_Jv_JNI_NewLocalRef): New function.
7462 (struct _Jv_JNI_LocalFrame): New structure.
7463 (_Jv_JNI_PushLocalFrame): New function.
7464 (_Jv_JNI_EnsureLocalCapacity): New function.
7465 (FRAME_SIZE): New define.
7466 (_Jv_JNI_GetStringChars): Mark string, not characters.
7467 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7468 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7469 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7471 (_Jv_JNI_DefineClass): Make return value a local ref.
7472 (_Jv_JNI_FindClass): Likewise.
7473 (_Jv_JNI_GetSuperclass): Likewise.
7474 (_Jv_JNI_ExceptionOccurred): Likewise.
7475 (_Jv_JNI_AllocObject): Likewise.
7476 (_Jv_JNI_GetObjectClass): Likewise.
7477 (_Jv_JNI_CallAnyMethodV): Likewise.
7478 (_Jv_JNI_NewString): Likewise.
7479 (_Jv_JNI_NewStringUTF): Likewise.
7480 (_Jv_JNI_NewObjectArray): Likewise.
7481 (_Jv_JNI_GetObjectArrayElement): Likewise.
7482 (_Jv_JNI_ToReflectedField): Likewise.
7483 (_Jv_JNI_ToReflectedMethod): Likewise.
7484 (_Jv_JNIFunctions): Updated table for new functions.
7485 (_Jv_JNI_Init): New function.
7486 (mark_for_gc): Wrote.
7487 (unmark_for_gc): Wrote.
7488 * include/jni.h (struct JNINativeInterface): Removed name from
7489 PopLocalFrame parameter.
7490 (class _Jv_JNIEnv): Added `locals' field.
7492 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7494 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7497 2000-01-30 Tom Tromey <tromey@cygnus.com>
7499 * include/config.h.in: Rebuilt.
7500 * acconfig.h (HAVE_ICONV): Define.
7501 * configure: Rebuilt.
7502 * configure.in: Check for `iconv' function.
7503 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7504 no specific encoder exists.
7505 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7506 no specific encoder exists.
7507 * Makefile.in: Rebuilt.
7508 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7510 (nat_source_files): Added natIconv.cc.
7511 * gnu/gcj/convert/natIconv.cc: New file.
7512 * gnu/gcj/convert/Input_iconv.java: New file.
7513 * gnu/gcj/convert/Output_iconv.java: New file.
7515 2000-01-28 Tom Tromey <tromey@cygnus.com>
7517 * Makefile.in: Rebuilt.
7518 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7520 2000-01-26 Tom Tromey <tromey@cygnus.com>
7522 * gcj/method.h (JvNumMethods): Moved from Class.h.
7523 (JvGetFirstMethod): Likewise.
7524 * java/lang/Class.h (Object): Updated decl of
7525 _Jv_JNI_ToReflectedField.
7526 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7527 * Makefile.in: Rebuilt.
7528 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7529 argument of _Jv_JNI_ToReflectedField.
7530 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7532 (java/lang/reflect/Method.h): Likewise.
7533 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7535 (jweak): New typedef.
7536 (struct JNINativeInterface): Correctly declare remaining entries.
7537 * jni.cc: Include Class.h, ClassLoader.h.
7538 (_Jv_JNI_FindClass): New function.
7539 (_Jv_JNI_DefineClass): New function.
7540 (_Jv_JNI_conversion_call): New function.
7541 (_Jv_JNI_FindClass): Use current class loader to find class.
7542 (_Jv_JNI_ExceptionCheck): New function.
7543 (_Jv_JNI_FromReflectedField): Now static.
7544 (MethodClass): New define.
7545 (_Jv_JNI_FromReflectedMethod): New function.
7546 (_Jv_JNI_ToReflectedMethod): Likewise.
7548 (_Jv_JNI_IsAssignableFrom): Renamed.
7549 (_Jv_JNI_GetStringRegion): New function.
7550 Include StringIndexOutOfBoundsException.h.
7551 (_Jv_JNI_GetStringUTFRegion): New function.
7552 (_Jv_JNIFunctions): Updated for new functions.
7553 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7554 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7555 (_Jv_JNI_GetStringCritical): New function.
7556 (_Jv_JNI_ReleaseStringCritical): Likewise.
7557 (get_throwable): Removed.
7558 (GCJ_JV_JNIENV_FRIEND): Removed.
7559 (__GCJ_JNI_IMPL__): Define.
7562 * resolve.cc (get_ffi_type_from_signature): Handle case where
7565 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7567 * interpret.cc (run): Don't call println.
7568 Don't include PrintStream.h.
7570 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7571 nameIndex. Use "jint" as type for boffset.
7572 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7574 (Class): Likewise. Also changed type of method_count,
7575 vtable_method_count, size_in_bytes, field_count,
7576 static_field_count, interface_count.
7577 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7580 2000-01-21 Tom Tromey <tromey@cygnus.com>
7582 * java/lang/reflect/natConstructor.cc (newInstance): Use
7584 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7585 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7586 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7589 (invoke): Use _Jv_CallAnyMethodA.
7591 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7592 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7594 (struct _Jv_Method): Added getNextMethod method.
7595 (JvNumMethods): New function.
7596 (JvGetFirstMethod): Likewise.
7597 * gcj/field.h (JvGetFirstStaticField): New function.
7598 (JvNumStaticFields): Likewise.
7599 (getNextField): Renamed from getNextInstanceField.
7600 (struct _Jv_Field): New method getClass.
7601 * jni.cc: Wrote many new functions.
7602 * include/jni.h (JNI_TRUE): Define.
7603 (JNI_FALSE): Likewise.
7604 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7605 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7606 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7607 (jfieldID, jmethodID): Likewise.
7608 (JNI_COMMIT, JNI_ABORT): New defines.
7609 (JNINativeMethod): New struct.
7610 (struct JNINativeInterface): Correctly declared more entries.
7611 (class _Jv_JNIEnv): Added `ex' member.
7612 (JNI_VERSION_1_1): New define.
7613 (JNI_VERSION_1_2): Likewise.
7615 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7616 getNextInstanceField.
7618 2000-01-20 Tom Tromey <tromey@cygnus.com>
7620 * resolve.cc (StringClass): Removed.
7621 * defineclass.cc (StringClass): Removed.
7623 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7627 2000-01-19 Tom Tromey <tromey@cygnus.com>
7629 * interpret.cc (PC_REGISTER_ASM): Removed.
7631 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7632 From Bryce McKinlay.
7634 * All files: Updated copyright to reflect Cygnus purchase.
7636 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7638 * configure: Rebuilt.
7639 * configure.in: Recognize --disable-interpreter.
7641 2000-01-18 Andrew Haley <aph@cygnus.com>
7643 * name-finder.cc (lookup): Check for dladdr function.
7644 acconfig.h (HAVE_DLADDR): Add.
7645 configure.in: Check for HAVE_DLADDR
7647 include/config.h.in: Rebuilt.
7649 2000-01-17 Andrew Haley <aph@cygnus.com>
7651 * prims.cc (_Jv_RunMain): Set the name of this executable.
7653 2000-01-17 Tom Tromey <tromey@cygnus.com>
7655 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7656 when backtrace can't be computed.
7658 * configure: Rebuilt.
7659 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7661 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7662 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7663 (_Jv_FindClassInCache): Likewise.
7664 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7665 (findSystemClass): Try to load class from compiled module.
7667 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7668 (loadLibrary): Likewise.
7669 (lt_preloaded_symbols): Define.
7670 (loadLibraryInternal): New method.
7671 * include/config.h.in: Rebuilt.
7672 * acconfig.h (USE_LTDL): Added.
7673 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7674 (INCLUDES): Added $(INCLTDL).
7675 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7676 (libgcj_la_LIBADD): Likewise.
7677 * aclocal.m4, configure: Rebuilt.
7678 * configure.in: Added libltdl support.
7680 2000-01-15 Tom Tromey <tromey@cygnus.com>
7682 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7684 2000-01-14 Andrew Haley <aph@cygnus.com>
7686 * java/lang/natThrowable.cc: New file.
7688 * java/lang/Throwable.java (fillInStackTrace): Make native.
7689 (printStackTrace): Call native method to do this.
7690 (Throwable): Call fillInStackTrace.
7691 (stackTrace): New variable.
7693 * include/jvm.h: Add _Jv_ThisExecutable functions.
7695 * prims.cc: (_Jv_execName): New variable.
7696 (catch_segv): Call fillInStackTrace.
7698 (_Jv_ThisExecutable): New functions.
7699 (JvRunMain): Set the name of this executable.
7701 * Makefile.am: Add java/lang/natThrowable.cc.
7703 * Makefile.in: Rebuilt.
7705 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7707 * configure.in: Force link with __frame_state_for in
7708 FORCELIBGCCSPEC. Add new checks for backtrace.
7709 * include/config.h.in: Rebuilt.
7711 * name-finder.cc: New file.
7712 * include/name-finder.h: New file.
7714 2000-01-16 Anthony Green <green@cygnus.com>
7716 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7719 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7721 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7723 2000-01-13 Tom Tromey <tromey@cygnus.com>
7725 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7726 not system loader, as initiating loader.
7728 2000-01-11 Tom Tromey <tromey@cygnus.com>
7730 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7731 HP/UX. From David Scott Urban.
7733 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7735 * java/lang/natMath.cc (pow): Cast args to `double', not
7738 (IEEEremainder): Likewise.
7739 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7740 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7742 2000-01-09 Anthony Green <green@cygnus.com>
7744 * java/lang/natString.cc (init): Test for overflow condition
7745 during out of bounds check.
7746 (getChars): Throw StringIndexOutOfBoundsException, not
7747 ArrayIndexOutOfBoundsException.
7749 (regionMatches): Obey case option during string comparison.
7751 * configure.host (ligcj_interpreter): New variable. Enable
7752 interpreter by default on IA-32.
7753 * configure.in: Examine libgcj_interpreter.
7754 * configure: Rebuilt.
7756 2000-01-07 Tom Tromey <tromey@cygnus.com>
7758 * mauve-libgcj: Don't disable ClassTest.
7760 * java/lang/natClass.cc (getClasses): Wrote.
7762 2000-01-06 Tom Tromey <tromey@cygnus.com>
7764 * java/lang/natClass.cc (_getConstructors): Correctly check
7765 whether method name is the init name.
7766 (getMethod): Look at accflags on method in `klass', not `this'.
7768 2000-01-05 Tom Tromey <tromey@cygnus.com>
7770 * java/lang/natClass.cc (getMethod): Compute offset relative to
7771 `klass's methods table, not `this's table.
7773 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7774 In unwrapping/widening case, check whether `k' is null, not
7775 whether it is primitive. Initialize `num' from `argelts', not
7776 `paramelts'. Correct create and pass arguments to ffi_call.
7777 Don't let presence of `this' argument affect index used to look in
7779 (COPY): Set appropriate element in `values' vector.
7781 * java/lang/natClass.cc: Include <gcj/method.h>.
7783 * java/lang/Class.h (_getMethods): Correctly declare as private,
7786 * java/lang/Class.h (_getMethods): Declare.
7787 * java/lang/Class.java (_getMethods): Declare.
7788 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7789 (getDeclaredClasses): Always return empty array.
7790 (_getMethods): New method.
7791 (getMethods): Wrote.
7792 (getDeclaredMethod): Return `rmethod'.
7793 (finit_name): New global.
7794 (getDeclaredMethods): Check for finit_name.
7795 (_getMethods): Likewise.
7796 (getMethod): Only return public methods.
7798 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7799 jboolean and select correct ffi type on that basis.
7800 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7801 Constructor call always has `void' return type.
7803 2000-01-04 Tom Tromey <tromey@cygnus.com>
7805 * java/lang/Class.h (getSignature): Updated.
7806 * java/lang/Class.java (getSignature): Updated.
7807 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7809 (getConstructor): Ensure constructor is public.
7810 (_getConstructors): Check for public-ness of constructor when
7811 `declared' is false, not when it is true.
7813 2000-01-04 Warren Levy <warrenl@cygnus.com>
7815 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7817 (receive): Set the sender's address in the DatagramPacket.
7819 2000-01-04 Tom Tromey <tromey@cygnus.com>
7821 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7822 declaring class as return_type argument to
7823 _Jv_CallNonvirtualMethodA.
7824 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7825 constructor case, create object and use it as `this' argument.
7826 * java/lang/Class.h (_getConstructors): Declare.
7827 (_getFields): Declare.
7828 * java/lang/Class.java (getConstructors): Wrote.
7829 (_getConstructors): New native method.
7830 (getDeclaredConstructors): Wrote.
7831 (_getFields): Declare new native method.
7832 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7834 (getMethod): Work correctly when class is primitive.
7835 (getDeclaredMethods): Likewise. Compute offset using `method',
7837 (getDeclaredMethod): Likewise.
7838 (getConstructor): Wrote.
7839 (ConstructorClass): New define.
7840 (getDeclaredConstructor): Wrote.
7841 (_getConstructors): New method.
7842 (_getFields): New method.
7845 * Makefile.in: Rebuilt.
7846 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7848 * prims.cc: Remove `#pragma implementation'.
7849 * gcj/array.h: Remove `#pragma interface'.
7851 * prims.cc (_Jv_equaln): New function.
7852 * java/lang/Class.java (getSignature): Declare.
7853 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7854 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7856 (getSignature): New method.
7857 (getDeclaredMethod): Wrote.
7859 Include StringBuffer.h.
7860 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7861 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7863 (getSignature): Declare.
7864 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7865 (_Jv_equaln): Declare.
7866 (_Jv_CallNonvirtualMethodA): Declare.
7867 * Makefile.in: Rebuilt.
7868 * Makefile.am (nat_source_files): Added natConstructor.cc.
7869 (java/lang/reflect/Constructor.h): New target.
7870 * java/lang/reflect/natConstructor.cc: New file.
7871 * java/lang/reflect/Constructor.java (newInstance): Now native.
7872 (declaringClass): Renamed from decl_class.
7873 (offset): Renamed from index.
7874 (getType): New native method.
7875 (getModifiers): Now native.
7876 (getParameterTypes): Call getType if required.
7877 (hashCode): Include hash code from declaring class.
7878 (modifiers): Removed.
7879 (toString): Call getType if required.
7880 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7881 * java/lang/reflect/natMethod.cc (hack_call): New method.
7882 Removed `#if 0' around FFI code.
7883 Include <gnu/gcj/RawData.h>.
7884 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7885 IllegalArgumentException when argument object and class disagree.
7886 (_Jv_GetTypesFromSignature): New function.
7888 (ObjectClass): New define.
7889 (_Jv_CallNonvirtualMethodA): New function.
7890 * java/lang/reflect/Method.java (hack_trampoline): New method.
7891 (hack_call): New native method.