1 2001-10-04 Mark Wielaard <mark@klomp.org>
3 * java/lang/reflect/Modifier.java: Merge with Classpath
5 2001-10-03 Mark Wielaard <mark@klomp.org>
7 * java/io/SequenceInputStream.java: Merge with Classpath
8 * java/io/StringBufferInputStream.java: Ditto
9 * java/util/Collections.java: Remerge with Classpath
11 2001-10-03 Tom Tromey <tromey@redhat.com>
13 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
16 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
20 2001-10-02 Mark Wielaard <mark@klomp.org>
22 * Makefile.am (core_java_source_files): add InheritableThreadLocal
23 * Makefile.in: regenerate
24 * gcj/javaprims.h: ditto
25 * java/lang/InheritableThreadLocal.java: new class from Classpath
26 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
27 call InheritableThreadLocal.newChildThread()
29 2001-10-01 Mark Wielaard <mark@klomp.org>
31 * Makefile.am: Add new classes
32 (core_java_source_files): CharSequence
33 (ordinary_java_source_files): Authenticator, PasswordAuthentication
34 * Makefile.in: regenerate
35 * gcj/javaprims.h: ditto
36 * java/lang/CharSequence: new class from Classpath
37 * java/lang/String.java: implements CharSequence
38 (subSequence (int,int)): new method
39 * java/lang/SubString.java: implements CharSequence
40 (subSequence (int,int)): new method
41 remerge comments with Classpath
42 * java/net/Authenticator.java: new class from Classpath
43 * java/net/PasswordAuthentication.java: ditto
45 2001-10-01 Tom Tromey <tromey@redhat.com>
47 * gcj/javaprims.h: Rebuilt class list.
48 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
49 (_Jv_GCCanReclaimSoftReference): New function.
50 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
51 (_Jv_GCCanReclaimSoftReference): Declare.
52 * java/lang/ref/Reference.java (referent): Now a RawData.
53 (create): Renamed from `created'. Added object argument.
54 (Reference): Don't initialize `referent' here.
55 * Makefile.in: Rebuilt.
56 * Makefile.am (nat_source_files): Added new file.
57 * java/lang/ref/natReference.cc: New file.
59 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
60 (_Jv_NewMultiArray): Use it. Check each array dimension.
61 (_Jv_NewMultiArray): Likewise.
62 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
64 * java/lang/reflect/natArray.cc (newInstance): Throw
65 IllegalArgumentException if there are no dimensions.
67 2001-10-01 Mark Wielaard <mark@klomp.org>
69 * java/io/FileWriter.java: Merge with Classpath.
70 * java/io/FilterInputStream.java: Ditto.
71 (mark): no longer synchronized
73 * java/io/FilterOutputStream.java: Merge with Classpath.
74 * java/io/FilterReader.java: Ditto.
75 (mark): no longer synchronized
77 * java/io/FilterWriter.java: Merge with Classpath.
78 * java/io/Writer.java: Ditto.
79 * java/lang/Compiler.java: Ditto.
80 * java/lang/Process.java: Ditto.
81 * java/lang/Void.java: Ditto.
82 * java/net/ContentHandler.java: Ditto.
83 * java/net/DatagramPacket.java: Ditto.
84 * java/net/MulticastSocket.java: Merge comments with Classpath.
86 2001-09-30 Mark Wielaard <mark@klomp.org>
88 * java/io/DataInput.java: Merge with Classpath.
89 * java/io/DataOutput.java: Idem.
90 * java/io/FilenameFilter.java: Idem.
91 * java/io/Serializable.java: Idem.
92 * java/lang/Cloneable.java: Idem.
93 * java/lang/Comparable.java: Idem.
94 * java/lang/Runnable.java: Idem.
95 * java/lang/reflect/Member.java: Idem.
96 * java/net/ContentHandlerFactory.java: Idem.
97 * java/net/FileNameMap.java: Idem.
98 * java/net/SocketImplFactory.java: Idem.
99 * java/net/SocketOptions.java: Idem.
100 * java/net/URLStreamHandlerFactory.java: Idem.
102 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
104 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
105 an uninitialized target class.
107 * gnu/gcj/protocol/file/Connection.java (connect): Throw
108 FileNotFoundException if appropriate.
109 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
110 IOException if we got a file: url with a hostname. Comment out protocol
111 switch to ftp for now.
112 * java/net/URL.java (URL): Include protocol name in exception message
113 when handler can't be found.
115 2001-09-28 Per Bothner <per@bothner.com>
117 * gnu/gcj/runtime/SharedLibLoader.java: New class.
118 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
119 * Makefile.am: Update accordingly.
120 * configure.in: Add AC_CHECK_LIB for dlopen.
121 * include/config.h.in: Add HAVE_DLOPEN.
123 2001-09-29 Jeff Sturm <jsturm@one-point.com>
125 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
126 * Makefile.in: Rebuilt.
128 2001-09-27 Tom Tromey <tromey@redhat.com>
130 * java/util/IdentityHashMap.java (containsKey): Use getHash.
134 (getHash): New method.
135 (tombstone, emptyslot): Now static final.
136 (put): Correctly determine when to rehash, and correctly rehash.
137 (containsKey, remove): Test against table length with `>='.
139 2001-09-26 Tom Tromey <tromey@redhat.com>
141 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
143 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
144 Re-merged with Classpath.
146 * java/io/DataInputStream.java (readChar): Use readFully.
148 (readLong): Likewise.
149 (readShort): Likewise.
150 (readUnsignedShort): Likewise.
152 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
154 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
155 IllegalThreadStateException if process hasn't exited yet.
156 * java/lang/natPosixProcess.cc (exitValue): Removed.
157 (waitFor): Only check thread interrupted status if waitpid() returned
158 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
161 * java/security/cert/X509Extension.java: Merge from classpath.
163 2001-09-22 Anthony Green <green@redhat.com>
165 * java/security/DummyKeyPairGenerator.java (initialize): New
166 method (with AlgorithmParameterSpec argument).
168 2001-09-22 Anthony Green <green@redhat.com>
170 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
172 * gnu/java/security/provider/SHA1PRNG.java: Extend from
174 (engineNextBytes): Fix order of memory copies.
176 2001-09-21 Richard Henderson <rth@redhat.com>
178 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
179 add get_method, set_method, vtable_elt_size, new_vtable.
180 (_Jv_ArrayVTable): Derive from _Jv_VTable.
181 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
182 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
183 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
185 2001-09-21 Richard Henderson <rth@redhat.com>
187 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
188 * java/lang/mprec.c (lo0bits): Fix paren typo.
190 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
192 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
193 blocking IO via pthread_kill().
194 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
195 interrupted status flag only if ::write returned an error.
196 (write (jbyteArray, jint, jint): Likewise.
197 (read (jint)): Likewise.
198 (read (jbyteArray, jint, jint): Likewise.
200 2001-09-19 Anthony Green <green@redhat.com>
202 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
205 2001-09-17 Andreas Jaeger <aj@suse.de>
207 * jni.cc (array_from_valist): Use promoted types for va_arg.
209 2001-09-16 Anthony Green <green@redhat.com>
211 * gnu/java/locale/LocaleInformation.java: Extend
212 LocaleInformation_en_US, not LocaleInformation_en.
214 2001-09-16 Anthony Green <green@redhat.com>
216 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
218 2001-09-14 Tom Tromey <tromey@redhat.com>
220 * java/util/TimeZone.java: Updated list of timezones from
223 * java/lang/CloneNotSupportedException.java: Re-merged with
226 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
228 * java/io/File.java (normalizePath): Use equals() not '==' for string
231 * java/util/Hashtable.java (Enumerator): Ensure that if
232 hasMoreElements() returns true, nextElement() will always return
233 something even if the table has been modified.
235 2001-09-12 Tom Tromey <tromey@redhat.com>
237 * Makefile.in: Rebuilt.
238 * Makefile.am (class-check): New target.
240 2001-09-11 Tom Tromey <tromey@redhat.com>
242 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
244 2001-09-10 Tom Tromey <tromey@redhat.com>
246 * java/util/Properties.java (load): Correctly read \u sequences.
247 Report from Anthony Green.
249 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
251 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
252 and $(MULTIBUILDTOP).
253 * configure: Re-generate.
255 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
257 * include/jvm.h (_Jv_AllocRawObj): New prototype.
258 * boehm.cc (_Jv_AllocRawObj): Implement.
259 * nogc.cc (_Jv_AllocRawObj): Likewise.
260 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
262 2001-09-06 Anthony Green <green@redhat.com>
264 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
265 redundant method calls.
266 (emptyLocale): New private member.
267 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
270 2001-09-06 Tom Tromey <tromey@redhat.com>
272 * java/text/RuleBasedCollator.java (clone): Rewrote.
273 (RuleBasedCollator(RuleBasedCollator)): Removed.
274 * java/text/MessageFormat.java: Re-merged from Classpath.
275 * java/text/DecimalFormat.java: Re-merged from Classpath.
277 2001-09-06 Anthony Green <green@redhat.com>
279 * include/jvm.h: Declare _Jv_RegisterResource.
280 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
281 gnu/gcj/protocol/core/Connection.java,
282 gnu/gcj/protocol/core/Handler.java,
283 gnu/gcj/protocol/core/CoreInputStream.java,
284 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
285 * java/net/URL.java (setURLStreamHandler): Use
286 gnu.gcj.protocol.core.Handler for the core protocol.
287 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
288 end of java.class.path.
289 * Makefile.am (ordinary_java_source_files): Add new java files.
290 (nat_source_files): Add new native code files.
291 * Makefile.in: Rebuilt.
293 2001-09-05 Tom Tromey <tromey@redhat.com>
295 * java/util/Properties.java: Re-merged from Classpath.
297 From Eric Blake, via Classpath:
298 * java/lang/String.java (CaseInsensitiveComparator): New class.
299 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
301 * java/util/Date.java: Re-merged with Classpath.
303 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
305 2001-09-05 Corey Minyard <minyard@acm.org>
306 Tom Tromey <tromey@redhat.com>
308 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
309 (_Jv_RegisterClassHookDefault): Throw error if a class is
312 2001-09-05 Tom Tromey <tromey@redhat.com>
314 * java/lang/natSystem.cc (init_properties): Default locale is
317 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
319 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
320 here, DecimalFormat.applyPattern() does not throw it.
322 2001-09-04 Tom Tromey <tromey@redhat.com>
324 * java/util/AbstractMap.java: Re-merged with Classpath.
325 * java/util/IdentityHashMap.java: Re-merged with Classpath.
327 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
328 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
329 gnu/gcj/text/LocaleData_en_US.java: Removed.
330 * java/text/DateFormatSymbols.java (clone): Use Classpath
332 (equals): Simplified.
333 (DateFormatSymbols): Look in gnu.java.locale for information.
334 (DateFormatSymbols(DateFormatSymbols)): Removed.
335 (safeGetResource): Removed.
336 (DateFormatSymbols): Throws MissingResourceException.
337 (ampmsDefault, erasDefault, localPatternCharsDefault,
338 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
339 weekdaysDefault, zoneStringsDefault): Removed.
340 * java/text/Collator.java (getAvailableLocales): Use modified
341 Classpath implementation.
342 (getInstance): Look in gnu.java.locale for information.
344 * java/text/MessageFormat.java: Reindented.
346 * java/text/FieldPosition.java: Merged with Classpath.
347 * java/text/ParsePosition.java: Merged with Classpath.
348 * java/text/Format.java: Merged with Classpath.
349 * java/text/StringCharacterIterator.java
350 (StringCharacterIterator(StringCharacterIterator,int,int)): New
351 constructor from Classpath.
352 * java/text/Annotation.java,
353 java/text/AttributedCharacterIterator.java,
354 java/text/AttributedString.java,
355 java/text/AttributedStringIterator.java: New from Classpath.
356 * java/text/CharacterIterator.java: Copied from Classpath.
357 * java/text/ChoiceFormat.java: Reindented.
359 * gnu/java/text/BaseBreakIterator.java,
360 gnu/java/text/CharacterBreakIterator.java,
361 gnu/java/text/LineBreakIterator.java,
362 gnu/java/text/LocaleData_en.java,
363 gnu/java/text/LocaleData_en_US.java,
364 gnu/java/text/SentenceBreakIterator.java,
365 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
366 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
368 * java/text/BreakIterator.java (getAvailableLocales): Use
369 Classpath implementation.
370 (getInstance): Look in gnu.java.locale for information.
371 (getCharacterInstance, getLineInstance, getSentenceInstance,
372 getWordInstance): Look in gnu.java.text for implementations.
373 * java/text/DecimalFormatSymbols.java: Reindented
374 (clone): Use Classpath implementation.
375 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
376 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
378 * java/text/DateFormat.java: Merged with Classpath.
379 (getAvailableLocales): Use Classpath implementation.
380 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
381 (computeInstance): Look in gnu.java.locale for information.
382 * java/text/NumberFormat.java: Reindented.
383 (computeInstance): Look in gnu.java.locale for information.
384 (getAvailableLocales): Use implementation from Classpath.
385 (setMaximumIntegerDigits): Likewise.
386 (setMinimumIntegerDigits): Likewise.
387 (setMaximumFractionDigits): Likewise.
389 * java/text/DecimalFormat.java: Reindented.
390 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
391 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
392 * Makefile.in: Rebuilt.
393 * Makefile.am (ordinary_java_source_files): Added all new files.
394 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
395 * java/security/spec/AlgorithmParameterSpec.java,
396 java/security/spec/KeySpec.java: Re-merged with Classpath.
398 Fix for PR libgcj/4213:
399 * Makefile.am (ordinary_java_source_files): Added new file.
400 * gnu/gcj/text/LocaleData.java: New file.
402 2001-09-03 Tom Tromey <tromey@redhat.com>
404 * java/lang/reflect/natField.cc (set): Allow for case when the
405 value is null. Fixes PR libgcj/4208.
407 * gcj/javaprims.h: Regenerated class list.
408 * java/lang/IllegalThreadStateException.java,
409 java/lang/InstantiationException.java: Minor comment tweaks to
410 satisfy libgcj `classes.pl' script.
412 2001-09-01 Tom Tromey <tromey@redhat.com>
414 * Makefile.in: Rebuilt.
415 * Makefile.am (core_java_source_files): Added
416 UnsupportedClassVersionError.
417 * java/lang/UnsupportedClassVersionError.java: New file from
420 * java/io/CharConversionException.java, java/io/EOFException.java,
421 java/io/FileNotFoundException.java, java/io/IOException.java,
422 java/io/InterruptedIOException.java,
423 java/io/ObjectStreamException.java,
424 java/io/OptionalDataException.java,
425 java/io/StreamCorruptedException.java,
426 java/io/SyncFailedException.java,
427 java/io/UTFDataFormatException.java,
428 java/io/UnsupportedEncodingException.java,
429 java/lang/AbstractMethodError.java,
430 java/lang/ArithmeticException.java,
431 java/lang/ArrayIndexOutOfBoundsException.java,
432 java/lang/ArrayStoreException.java,
433 java/lang/ClassCastException.java,
434 java/lang/ClassCircularityError.java,
435 java/lang/ClassFormatError.java,
436 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
437 java/lang/Exception.java,
438 java/lang/ExceptionInInitializerError.java,
439 java/lang/IllegalAccessError.java,
440 java/lang/IllegalAccessException.java,
441 java/lang/IllegalArgumentException.java,
442 java/lang/IllegalMonitorStateException.java,
443 java/lang/IllegalStateException.java,
444 java/lang/IllegalThreadStateException.java,
445 java/lang/IncompatibleClassChangeError.java,
446 java/lang/IndexOutOfBoundsException.java,
447 java/lang/InstantiationError.java,
448 java/lang/InstantiationException.java,
449 java/lang/InternalError.java, java/lang/InterruptedException.java,
450 java/lang/LinkageError.java,
451 java/lang/NegativeArraySizeException.java,
452 java/lang/NoClassDefFoundError.java,
453 java/lang/NoSuchFieldError.java,
454 java/lang/NoSuchFieldException.java,
455 java/lang/NoSuchMethodError.java,
456 java/lang/NoSuchMethodException.java,
457 java/lang/NullPointerException.java,
458 java/lang/NumberFormatException.java,
459 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
460 java/lang/SecurityException.java,
461 java/lang/StackOverflowError.java,
462 java/lang/StringIndexOutOfBoundsException.java,
463 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
464 java/lang/UnsatisfiedLinkError.java,
465 java/lang/UnsupportedOperationException.java,
466 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
467 java/lang/reflect/InvocationTargetException.java,
468 java/net/BindException.java, java/net/ConnectException.java,
469 java/net/MalformedURLException.java,
470 java/net/NoRouteToHostException.java,
471 java/net/ProtocolException.java, java/net/SocketException.java,
472 java/net/UnknownHostException.java,
473 java/net/UnknownServiceException.java,
474 java/text/ParseException.java: Copied from Classpath, thanks to
475 Mark Wielaard who did the merge.
477 * java/lang/System.java (getProperty): Use single argument form of
478 SecurityManager.checkPropertyAccess.
479 * Makefile.in: Rebuilt.
480 * Makefile.am (core_java_source_files): Added VMSecurityManager.
481 * java/lang/VMSecurityManager.java: New file.
482 * java/lang/SecurityManager.java: Merged with Classpath.
484 2001-08-31 Per Bothner <per@bothner.com>
486 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
487 (_Jv_RegisterClassHookDefault): Likewise.
488 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
489 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
490 (_Jv_RegisterClassHookDefault): New.function.
491 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
493 * java/lang/ClassLoader.java (system): Remove static field.
494 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
495 directly instead of using it to set the system field.
496 (loadClass): Use VMClassLoader.instance instead of system field.
497 (findSystemClass): Similar.
498 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
499 than ClassLoader::system which no longer exists.
500 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
502 2001-08-31 Tom Tromey <tromey@redhat.com>
504 * java/io/BufferedReader.java, java/io/ObjectInput.java,
505 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
506 Re-merged with Classpath.
508 Re-merge with Classpath:
509 * java/util/Comparator (equals): Added.
510 * java/io/PipedWriter.java (write): Changed argument to `int'.
512 * java/io/FileDescriptor.java (FileDescriptor()): New
514 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
516 * Makefile.in: Rebuilt.
517 * Makefile.am (ordinary_java_source_files): Removed
518 EnumerationChain, added DoubleEnumeration.
519 (nat_source_files): Added natResourceBundle.cc.
520 * java/util/natResourceBundle.cc: New file.
521 * gnu/java/util/DoubleEnumeration.java: New file.
522 * gnu/gcj/util/EnumerationChain.java: Removed.
523 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
524 * java/util/ResourceBundle.java: Merged with Classpath.
525 * java/util/StringTokenizer.java: Merged with Classpath.
526 * java/util/Locale.java: Merged with Classpath.
527 * java/util/Random.java: Merged with Classpath.
528 * java/util/PropertyResourceBundle.java: Merged with Classpath.
529 * java/util/ListResourceBundle.java: Merged with Classpath.
530 * java/util/ConcurrentModificationException.java: Re-merged with
532 * java/util/EmptyStackException.java: Likewise.
533 * java/util/MissingResourceException.java: Likewise.
534 * java/util/NoSuchElementException.java: Likewise.
535 * java/util/TooManyListenersException.java: Likewise.
537 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
538 * java/io/OptionalDataException.java: Merged with Classpath.
540 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
542 * exception.cc (PERSONALITY_FUNCTION): Simplify
545 2001-08-31 Tom Tromey <tromey@redhat.com>
547 * java/io/ByteArrayInputStream.java: Merged with Classpath.
549 2001-08-30 Tom Tromey <tromey@redhat.com>
551 * java/io/BufferedReader.java: Re-merged with Classpath.
553 2001-08-28 Per Bothner <per@bothner.com>
555 * java/math/BigInteger.java (init(int,Random)): New method.
556 Move body of constructor <init>(int,Random)) here.
557 Re-write it to avoid constructing unneeded temporaries.
558 (<init>(int,int,Random)): Use new init method to avoid constructing
559 extra temporary BigIntegers.
561 2001-08-27 Tom Tromey <tromey@redhat.com>
563 * java/rmi/activation/Activatable.java,
564 java/rmi/activation/ActivateFailedException.java,
565 java/rmi/activation/ActivationDesc.java,
566 java/rmi/activation/ActivationException.java,
567 java/rmi/activation/ActivationGroup.java,
568 java/rmi/activation/ActivationGroupDesc.java,
569 java/rmi/activation/ActivationGroupID.java,
570 java/rmi/activation/ActivationID.java,
571 java/rmi/activation/ActivationInstantiator.java,
572 java/rmi/activation/ActivationMonitor.java,
573 java/rmi/activation/ActivationSystem.java,
574 java/rmi/activation/Activator.java,
575 java/rmi/activation/UnknownGroupException.java,
576 java/rmi/activation/UnknownObjectException.java,
577 java/rmi/AccessException.java,
578 java/rmi/AlreadyBoundException.java,
579 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
580 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
581 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
582 java/rmi/NotBoundException.java,
583 java/rmi/RMISecurityException.java,
584 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
585 java/rmi/RemoteException.java, java/rmi/ServerError.java,
586 java/rmi/ServerException.java,
587 java/rmi/ServerRuntimeException.java,
588 java/rmi/StubNotFoundException.java,
589 java/rmi/UnexpectedException.java,
590 java/rmi/UnknownHostException.java,
591 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
592 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
593 java/rmi/registry/LocateRegistry.java,
594 java/rmi/registry/Registry.java,
595 java/rmi/registry/RegistryHandler.java,
596 java/rmi/server/ExportException.java,
597 java/rmi/server/LoaderHandler.java,
598 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
599 java/rmi/server/Operation.java,
600 java/rmi/server/RMIClassLoader.java,
601 java/rmi/server/RMIClientSocketFactory.java,
602 java/rmi/server/RMIFailureHandler.java,
603 java/rmi/server/RMIServerSocketFactory.java,
604 java/rmi/server/RMISocketFactory.java,
605 java/rmi/server/RemoteCall.java,
606 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
607 java/rmi/server/RemoteServer.java,
608 java/rmi/server/RemoteStub.java,
609 java/rmi/server/ServerCloneException.java,
610 java/rmi/server/ServerNotActiveException.java,
611 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
612 java/rmi/server/SkeletonMismatchException.java,
613 java/rmi/server/SkeletonNotFoundException.java,
614 java/rmi/server/SocketSecurityException.java,
615 java/rmi/server/UID.java,
616 java/rmi/server/UnicastRemoteObject.java,
617 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
618 gnu/java/rmi/dgc/DGCImpl_Skel.java,
619 gnu/java/rmi/dgc/DGCImpl_Stub.java,
620 gnu/java/rmi/registry/RegistryImpl.java,
621 gnu/java/rmi/registry/RegistryImpl_Skel.java,
622 gnu/java/rmi/registry/RegistryImpl_Stub.java,
623 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
624 gnu/java/rmi/server/ProtocolConstants.java,
625 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
626 gnu/java/rmi/server/RMIHashes.java,
627 gnu/java/rmi/server/RMIObjectInputStream.java,
628 gnu/java/rmi/server/RMIObjectOutputStream.java,
629 gnu/java/rmi/server/UnicastConnection.java,
630 gnu/java/rmi/server/UnicastConnectionManager.java,
631 gnu/java/rmi/server/UnicastRef.java,
632 gnu/java/rmi/server/UnicastRemoteCall.java,
633 gnu/java/rmi/server/UnicastRemoteStub.java,
634 gnu/java/rmi/server/UnicastServer.java,
635 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
636 Kaffe. Relabelled classes to fit into Classpath tree.
637 * Makefile.in: Rebuilt.
638 * Makefile.am (rmi_java_source_files): New macro.
639 (ordinary_java_source_files): Reference it.
640 (bin_PROGRAMS): Added rmic and rmiregistry.
641 (rmic_SOURCES): New macro.
642 (EXTRA_rmic_SOURCES): Likewise.
643 (rmic_LDFLAGS): Likewise.
644 (rmic_LINK): Likewise.
645 (rmic_LDADD): Likewise.
646 (rmic_DEPENDENCIES): Likewise.
647 (rmiregistry_SOURCES): New macro.
648 (EXTRA_rmiregistry_SOURCES): Likewise.
649 (rmiregistry_LDFLAGS): Likewise.
650 (rmiregistry_LINK): Likewise.
651 (rmiregistry_LDADD): Likewise.
652 (rmiregistry_DEPENDENCIES): Likewise.
654 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
656 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
658 * Makefile.am: New friends for java/lang/Thread.h.
659 * prims.cc (runFirst): Removed.
660 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
661 (_Jv_RunMain): Now takes either a klass or class name parameter.
662 Create a gnu.gcj.runtime.FirstThread and attach the native thread
663 to that, then run it using _Jv_ThreadRun. Remove special handling of
664 jar files, instead pass is_jar parameter through to FirstThread.
665 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
666 of _Jv_AttachCurrentThread.
667 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
668 (run): New method. Take care of looking up main class manifest
669 attribute and calling forName if neccessary. Then call call_main.
670 (call_main): New native method.
671 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
672 relocated from prims.cc. Look up and call main method.
673 * java/lang/Thread.java (run_): Removed.
674 * java/lang/natThread.cc (run_): Renamed to...
675 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
676 (_Jv_NotifyThreadStart): here. New function.
677 (countStackFrames, destroy, resume, suspend, stop): Throw
678 UnsupportedOperationExceptions rather than JvFail'ing.
679 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
680 Existing version wraps new variant.
683 2001-08-23 Tom Tromey <tromey@redhat.com>
685 * java/lang/reflect/Field.java (toString): Use
686 Method.appendClassName.
687 * java/lang/reflect/Constructor.java (toString): Use
688 Method.appendClassName.
689 * java/lang/reflect/Method.java: Reindented.
690 (appendClassName): New method.
692 * defineclass.cc (handleMethod ): Initialize `throws' field of
694 (read_one_method_attribute): Handle Exceptions attribute.
695 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
696 (ObjectClass): Removed.
697 (getType): Compute `exception_types'.
698 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
700 2001-08-21 Anthony Green <green@redhat.com>
702 * java/lang/natClassLoader.cc (findClass): Search for
703 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
705 2001-08-21 Jeff Sturm <jsturm@one-point.com>
707 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
710 2001-08-20 Tom Tromey <tromey@redhat.com>
712 * java/awt/GridBagConstraints.java: Removed comment.
714 * jni.cc (nathash, nathash_count, nathash_size): New globals.
715 (DELETED_ENTRY): New define.
716 (hash): New function.
717 (nathash_find_slot): Likewise.
718 (natrehash): Likewise.
719 (nathash_add): Likewise.
720 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
722 (nathash_find): New function.
723 (_Jv_LookupJNIMethod): Use it. Synchronize body.
724 (call): Synchronize around assignment.
726 2001-08-17 Jeff Sturm <jsturm@one-point.com>
728 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
729 starting from zero offset.
731 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
733 * boehm.cc: Include gc_local_alloc.h if appropriate.
734 (GC_GENERIC_MALLOC): Don't define.
735 (MAYBE_MARK): Redefine for GC 6.0.
736 (_Jv_MarkObj): Mark class differently.
737 (_Jv_AllocArray): Use GC_generic_malloc.
739 2001-08-17 Mark J Roberts <mjr@anarcast.net>
741 * java/math/BigInteger.java (randBytes): New method.
742 (BigInteger(int,Random)): Use randBytes.
744 2001-08-17 Tom Tromey <tromey@redhat.com>
746 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
748 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
750 * BigInteger.java: fix right shifts by nonzero multiples of 32.
752 2001-08-15 Tom Tromey <tromey@redhat.com>
754 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
755 (local_ref_table, global_ref_table): Now IdentityHashMap.
756 (_Jv_JNI_Init): Updated for new types.
757 (mark_for_gc): Likewise.
758 (unmark_for_gc): Likewise.
759 * gcj/javaprims.h: Rebuilt class list.
760 * Makefile.in: Rebuilt.
761 * Makefile.am (core_java_source_files): Added new file.
762 * java/util/IdentityHashMap.java: New file.
764 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
767 2001-08-09 Tom Tromey <tromey@redhat.com>
769 * java/awt/image/SampleModel.java (getPixel): Set correct array
770 element. From Chris Meyer.
772 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
774 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
775 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
777 2001-08-06 Tom Tromey <tromey@redhat.com>
779 * java/io/InputStreamReader.java (refill): Only call refill on
780 BufferedInputStream when appropriate constraints are met.
782 2001-08-05 Tom Tromey <tromey@redhat.com>
784 * java/io/StringWriter.java: Merged with Classpath.
785 * java/io/InputStream.java: Merged with Classpath.
786 * java/io/OutputStream.java: Merged with Classpath.
787 * java/io/PushbackInputStream.java: Merged with Classpath.
788 * java/io/CharArrayReader.java: Merged with Classpath.
789 * java/io/CharArrayWriter.java: Merged with Classpath.
791 2001-08-02 Tom Tromey <tromey@redhat.com>
793 * prims.cc (JNI_OnLoad): Don't declare.
794 (_JNI_OnLoad): Don't define.
795 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
797 2001-08-02 Tom Tromey <tromey@redhat.com>
799 * java/io/RandomAccessFile.java (seek): Let seek go past end of
801 (skipBytes): Don't fail if seeking past end of file.
802 * java/io/FileInputStream.java (skip): Don't fail if seeking past
804 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
806 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
808 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
810 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
812 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
814 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
815 to initialize global_ref_table/local_ref_table.
817 2001-08-02 Tom Tromey <tromey@redhat.com>
819 * configure: Rebuilt.
820 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
823 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
825 * include/posix.h (_POSIX_PII_SOCKET): Define.
826 * configure.in (HAVE_SOCKLEN_T): Define.
827 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
829 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
830 (java::net::PlainSocketImpl::accept): Use it.
831 Fixes PRs libgcj/3694, libgcj/3696.
833 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
834 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
835 * configure, include/config.h.in: Regenerate.
836 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
837 (mcastGrp): Likewise.
838 (java::net::PlainDatagramSocketImpl::setOption): Guard against
839 missing IPV6_MULTICAST_IF.
840 Fixes PR libgcj/3694.
842 2001-08-01 Jeff Sturm <jsturm@one-point.com>
844 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
846 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
848 * Makefile.in: Rebuilt.
849 * Makefile.am (GCJLINK): Added --tag=GCJ.
852 2001-07-30 Tom Tromey <tromey@redhat.com>
854 * java/util/Date.java: Re-merged with Classpath.
856 2001-07-30 Jeff Sturm <jsturm@one-point.com>
858 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
859 (_Jv_bind): New static function.
860 (bind): Use _Jv_bind.
861 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
862 (_Jv_bind, _Jv_connect): New static functions.
863 (bind): Use _Jv_bind.
864 (connect): Use _Jv_connect.
866 2001-07-30 Tom Tromey <tromey@redhat.com>
867 Corey Minyard <minyard@acm.org>
869 * gnu/gcj/convert/natIconv.cc (done): New methods.
870 * gnu/gcj/convert/Output_iconv.java (done): New method.
871 * gnu/gcj/convert/Input_iconv.java (done): New method.
872 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
874 (getDefaultEncodingClass): Removed.
875 (getDefaultEncoder): Use getEncoder.
877 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
879 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
881 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
883 (getDefaultDecodingClass): Removed.
884 (getDefaultDecoder): Use getDecoder.
885 (getDecoder): Look up decoder in cache.
887 * java/lang/natString.cc (init): Call `done' on converter.
888 (getBytes): Likewise.
890 2001-07-30 Tom Tromey <tromey@redhat.com>
892 * java/lang/Integer.java: Merged with Classpath.
894 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
896 * java/util/GregorianCalendar.java (GregorianCalendar): Call
897 setTimeInMillis() to set the default/current time.
899 2001-07-29 Mark Wielaard <mark@klomp.org>
901 * HACKING: add description on updating namespace
903 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
905 * java/util/Calendar.java (set): Never recompute fields here. They
906 will already be set if someone set time explicitly, and it can cause
907 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
908 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
909 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
911 * java/text/SimpleDateFormat.java (defaultCentury): New field.
912 (readObject): Call set2DigitYearStart if appropriate so that
913 defaultCentury is calculated.
914 (SimpleDateFormat): Don't bother clearing calendar here. Call
915 computeCenturyStart().
916 (set2DigitYearStart): Calculate and set defaultCentury.
917 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
919 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
920 2 numeric digits, use the 80-20 heuristic to parse the value into a
921 default century based on defaultCenturyStart.
922 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
924 2001-07-25 Tom Tromey <tromey@redhat.com>
926 * Makefile.in: Rebuilt.
927 * Makefile.am (libgcj.jar): Correctly fail when bytecode
930 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
932 * prims.cc (_JNI_OnLoad): New function.
933 (JNI_OnLoad): Use it.
934 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
936 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
938 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
939 Makefile.in: Regenerate.
941 2001-07-24 Tom Tromey <tromey@redhat.com>
943 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
946 2001-07-23 Tom Tromey <tromey@redhat.com>
948 * gcj/javaprims.h: Rebuilt class list.
949 * Makefile.in: Rebuilt.
950 * Makefile.am (core_java_source_files): Added VMClassLoader.
951 * java/lang/VMClassLoader.java: New file.
952 * java/lang/Boolean.java: Merged with Classpath.
953 * java/lang/Byte.java: Merged with Classpath.
954 * java/lang/Integer.java: Merged with Classpath.
955 * java/lang/Long.java: Merged with Classpath.
956 * java/lang/Number.java: Merged with Classpath.
957 * java/lang/Short.java: Merged with Classpath.
959 2001-07-22 Jeff Sturm <jsturm@one-point.com>
961 * configure.host: Enable hash synchronization for alpha*-*.
962 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
964 * java/lang/natObject.cc (compare_and_swap, release_set,
965 compare_and_swap_release): Added inline functions for alpha.
967 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
969 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
970 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
971 back to old RFC 2133 variants if missing.
973 2001-07-18 Tom Tromey <tromey@redhat.com>
975 * java/io/natFileWin32.cc (_access): Renamed.
977 * java/io/natFile.cc (_access): Renamed.
979 * java/io/File.java (access, stat): Add leading `_' to name.
982 2001-07-18 Tom Tromey <tromey@redhat.com>
985 * libgcj.spec.in (*lib): Added LIBICONV.
986 * configure: Rebuilt.
987 * configure.in: Call AM_ICONV. Don't check for iconv function.
988 Add parameters to JV_HASH_SYNCHRONIZATION define.
989 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
991 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
993 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
994 not by setting its size field.
996 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
998 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1001 2001-07-12 Tom Tromey <tromey@redhat.com>
1002 David Brownell <david-b@pacbell.net>
1004 Fix for PR libgcj/3426:
1005 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1007 (read): Throw exception if character conversion fails.
1008 * java/io/BufferedInputStream.java (refill): Now package-private.
1009 * java/io/InputStreamReader.java (ready): Simplified.
1010 (refill): New method.
1013 2001-07-12 Tom Tromey <tromey@redhat.com>
1015 Report from Henner Zeller:
1016 * java/io/FileOutputStream.java (FileOutputStream): Throw
1017 FileNotFoundException, not IOException.
1019 2001-07-10 Anthony Green <green@redhat.com>
1021 * Makefile.in: Rebuilt.
1022 * Makefile.am: Add new files.
1023 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1024 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1025 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1026 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1027 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1028 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1029 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1030 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1031 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1032 org/w3c/dom/ranges/DocumentRange.java,
1033 org/w3c/dom/ranges/Range.java,
1034 org/w3c/dom/ranges/RangeException.java,
1035 org/w3c/dom/traversal/DocumentTraversal.java,
1036 org/w3c/dom/traversal/NodeFilter.java,
1037 org/w3c/dom/traversal/NodeIterator.java,
1038 org/w3c/dom/traversal/TreeWalker.java,
1039 org/xml/sax/ext/DeclHandler.java,
1040 org/xml/sax/ext/LexicalHandler.java,
1041 org/xml/sax/helpers/AttributeListImpl.java,
1042 org/xml/sax/helpers/AttributesImpl.java,
1043 org/xml/sax/helpers/DefaultHandler.java,
1044 org/xml/sax/helpers/LocatorImpl.java,
1045 org/xml/sax/helpers/NamespaceSupport.java,
1046 org/xml/sax/helpers/ParserAdapter.java,
1047 org/xml/sax/helpers/ParserFactory.java,
1048 org/xml/sax/helpers/XMLFilterImpl.java,
1049 org/xml/sax/helpers/XMLReaderAdapter.java,
1050 org/xml/sax/helpers/XMLReaderFactory.java,
1051 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1052 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1053 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1054 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1055 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1056 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1057 org/xml/sax/SAXNotRecognizedException.java,
1058 org/xml/sax/SAXNotSupportedException.java,
1059 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1060 org/xml/sax/XMLReader.java: New files.
1062 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1064 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1065 * Makefile.in: Regenerate.
1066 * java/lang/ThreadLocal.java: Initial import.
1068 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1070 * Makefile.am (libgcj.jar): Don't recursively make
1071 built_java_source_files. Avoid long command lines.
1072 Don't change to $(srcdir) to invoke javac.
1073 (libgcj.la, libgcjx.la); Avoid long command lines.
1074 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1075 * Makefile.in: Rebuilt.
1077 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1079 * include/i386-signal.h: Don't do anything with unsigned divide
1080 overflow except throw an exception.
1082 2001-07-05 Tom Tromey <tromey@redhat.com>
1085 * java/lang/Class.h (Class(void)): Now private. Removed
1086 implementation. From dmorsberger@sensysdl.com.
1088 2001-07-02 Tom Tromey <tromey@redhat.com>
1090 Fix for PR bootstrap/3281:
1091 * aclocal.m4, configure: Rebuilt.
1092 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1093 Correctly compute libgcj_basedir.
1094 (mkinstalldirs): Define and subst.
1096 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1099 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1102 2001-06-27 Tom Tromey <tromey@redhat.com>
1104 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1107 2001-06-25 Tom Tromey <tromey@redhat.com>
1109 * scripts/encodings.pl: Generate lower-case names. Updated URL
1110 for `character-sets' file.
1111 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1113 Rebuilt list of aliases.
1115 2001-06-25 Tom Tromey <tromey@redhat.com>
1117 * java/io/natFileDescriptorPosix.cc (open): Change error message
1118 formatting. From David Brownell.
1120 2001-06-21 Tom Tromey <tromey@redhat.com>
1122 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1125 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1127 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1128 extraneous/malformed sign word.
1130 2001-06-15 Tom Tromey <tromey@redhat.com>
1132 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1134 2001-06-15 Tom Tromey <tromey@redhat.com>
1136 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1137 NULL if no library on the list has the symbol.
1138 (init): Call add_library on the program itself.
1139 * prims.cc (JvRunMain): Initialize Runtime before searching for
1141 (_Jv_RunMain): Likewise.
1143 2001-06-15 Tom Tromey <tromey@redhat.com>
1145 * jni.cc (ClassClass): Removed; updated all users.
1146 (ObjectClass): Likewise.
1147 (ThrowableClass): Likewise.
1148 (MethodClass): Likewise.
1149 (ThreadGroupClass): Likewise.
1150 (local_ref_table): Renamed from `ref_table'.
1151 (global_ref_table): New global.
1152 (_Jv_JNI_Init): Initialize both ref tables.
1153 (mark_for_gc): Added `ref_table' parameter.
1154 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1156 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1157 (_Jv_JNI_DeleteGlobalRef): Likewise.
1158 (_Jv_JNI_DeleteLocalRef): Likewise.
1159 (_Jv_JNI_NewLocalRef): Likewise.
1160 (_Jv_JNI_PopLocalFrame): Likewise.
1161 (_Jv_JNI_GetStringChars): Likewise.
1162 (_Jv_JNI_ReleaseStringChars): Likewise.
1163 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1164 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1166 2001-06-14 Tom Tromey <tromey@redhat.com>
1168 Fix for PR libgcj/3144:
1169 * java/util/Date.java: Merged with Classpath.
1171 2001-06-12 Tom Tromey <tromey@redhat.com>
1173 * aclocal.m4, configure: Rebuilt.
1174 * acinclude.m4: Find configure.host in srcdir.
1176 2001-06-07 Tom Tromey <tromey@redhat.com>
1178 Fix for PR libgcj/3059:
1179 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1180 * Makefile.in: Rebuilt.
1181 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1183 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1185 * exception.cc (cstdlib): Replaces stdlib.h.
1186 (_Jv_Throw): Use std::abort().
1187 (PERSONALITY_FUNCTION): Likewise.
1189 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1191 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1192 nothing, as in autoconf 2.50.
1193 * aclocal.m4, configure: Rebuilt.
1195 2001-06-08 Tom Tromey <tromey@redhat.com>
1197 * configure: Rebuilt.
1198 * configure.in: Compute new aux dir using `pwd'.
1200 2001-06-07 Tom Tromey <tromey@redhat.com>
1202 For PR bootstrap/3075:
1203 * configure, aclocal.m4, Makefile.am: Rebuilt.
1204 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1205 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1206 relative to libgcj_basedir.
1207 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1208 AC_CANONICAL_SYSTEM here.
1209 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1211 ($(extra_headers)): New target.
1213 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1214 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1216 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1217 table index is within allowed bounds. Ensure that we dont try to access
1218 class itable at a negative offset. Avoid an ancestor table lookup if
1219 source is a primitive type class.
1220 (isInstance): Remove redundant isPrimitive() check.
1222 2001-06-04 Tom Tromey <tromey@redhat.com>
1224 * java/security/PublicKey.java: Extend Key.
1225 * java/security/PrivateKey.java: Extend Key.
1227 2001-06-02 Anthony Green <green@redhat.com>
1229 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1230 alternate when USE_LTDL not defined.
1232 2001-06-02 Anthony Green <green@redhat.com>
1234 * configure: Rebuild.
1235 * configure.in: Remove data_start hack.
1236 * libgcj.spec.in: Ditto.
1237 * Makefile.in: Rebuild.
1238 * Makefile.am: Ditto.
1239 * libgcjdata.c: Remove.
1241 2001-06-02 Anthony Green <green@redhat.com>
1243 * configure: Rebuild.
1244 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1245 --without-libffi option. Tweak --disable-java-net processing.
1246 * Makefile.in: Rebuild.
1247 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1248 * include/config.h.in: Rebuild.
1249 * acconfig.h (USE_LIBFFI): Define.
1250 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1252 2001-06-02 Anthony Green <green@redhat.com>
1254 * configure: Rebuilt.
1255 * configure.in: Test for sigaction on native builds.
1256 * prims.cc: Check HAVE_SIGACTION.
1257 * include/config.h.in: Rebuilt.
1259 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1261 * natFile.cc (get_entry): Removed functions.
1262 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1263 Allocate enough storage for d_name if using readdir_r.
1265 2001-05-31 Tom Tromey <tromey@redhat.com>
1267 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1269 (write): Loop until write completes. From Corey Minyard.
1271 2001-05-29 Laurent Guerby <guerby@acm.org>
1273 * java/awt/geom/Rectangle2D.java: fix doc typo.
1275 2001-05-31 Tom Tromey <tromey@redhat.com>
1277 * java/sql/DriverManager.java (getDrivers): Handle case where
1278 driver's class loader is null. From Corey Minyard.
1280 2001-05-29 Tom Tromey <tromey@redhat.com>
1282 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1284 * configure: Rebuilt.
1285 * configure.in: Only add multilib support code if we just rebuilt
1288 2001-05-29 Andrew Haley <aph@redhat.com>
1290 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1291 pointer: the dwarf unwinder in libgcc will do everything that's
1293 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1294 more than we absolutely need to.
1295 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1296 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1298 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1300 * configure: Rebuilt.
1301 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1303 (SIGNAL_HANDLER): Use siginfo style handler.
1304 (INIT_SEGV): Likewise.
1305 (INIT_FPE): Likewise.
1306 * include/ppc-signal.h: Delete whole file.
1308 2001-05-24 Tom Tromey <tromey@redhat.com>
1310 * java/lang/natString.cc (init): Throw
1311 ArrayIndexOutOfBoundsException.
1312 (getChars): Likewise.
1313 (getBytes): Likewise.
1314 (valueOf): Likewise.
1316 * configure.in: Only allow hash synchronization when POSIX threads
1318 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1319 of sync info object.
1321 2001-05-23 Tom Tromey <tromey@redhat.com>
1323 * Makefile.in: Rebuilt.
1324 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1326 Revert patch of 2001-05-21:
1327 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1328 (libgcj_la_LIBADD): Likewise.
1329 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1330 (libgcjx_la_LIBADD): Likewise.
1332 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1333 * gcj/Makefile.in: Rebuilt.
1334 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1335 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1336 * gcj/libgcj-config.h.in: New file.
1337 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1338 * configure: Rebuilt.
1339 * configure.in: Enable hash synchronization by default on some
1341 (HASH_SYNC_SPEC): New subst.
1342 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1343 Correctly use `test -z' instead of `test -n' in a couple places.
1344 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1346 * configure.host (enable_java_net_default): Initialize.
1347 (enable_hash_synchronization_default): New variable.
1349 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1351 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1352 synchronization in use.
1353 (_Jv_MarkArray): Likewise.
1354 (_Jv_AllocBytes): Don't check return result.
1355 (handle_out_of_memory): New function.
1356 (_Jv_InitGC): Set GC_oom_fn.
1357 (trace_one_vtable): New global.
1358 (_Jv_AllocTraceOne): New function.
1359 * configure.in: Added --enable-hash-synchronization.
1360 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1361 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1362 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1363 (_Jv_AllocArray): Likewise.
1364 (_Jv_AllocBytes): Likewise.
1365 (_Jv_AllocPtrFreeObject): New function.
1366 (_Jv_AllocTraceOne): Likewise.
1367 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1369 (self_cache): New global.
1370 (_Jv_ThreadSelf_out_of_line): New function.
1371 * prims.cc (_Jv_AllocBytesChecked): Removed.
1372 (_Jv_ThrowNoMemory): New function.
1373 (_Jv_AllocObject): Don't check for null return from allocator.
1374 (_Jv_NewObjectArray): Likewise.
1375 (_Jv_AllocPtrFreeObject): New function.
1376 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1377 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1378 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1379 * include/boehm-gc.h (_Jv_AllocObj): Define.
1380 (_Jv_AllocPtrFreeObj): Define.
1381 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1382 (_Jv_ThrowNoMemory): Declare.
1383 (_Jv_AllocTraceOne): Declare.
1384 (_Jv_AllocBytesChecked): Removed.
1385 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1386 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1387 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1389 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1391 * java/lang/Object.h (sync_info): Conditional upon presence of
1392 hash synchronization.
1393 * java/lang/natObject.cc: Much new code to handle thin locks and
1394 hash synchronization.
1395 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1398 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1400 * gij.cc (version): Update copyright year.
1402 2001-05-22 Anthony Green <green@redhat.com>
1404 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1407 2001-05-21 Per Bothner <per@bothner.com>
1409 Implement invocation interface; don't create new thread for main.
1410 * java/lang/Thread.java (gen_name): Make native.
1411 (<init>(Thread,THreadGroup,Runnable,String)): New private
1412 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1413 * java/lang/natThread.cc (gen_name): New implementation.
1414 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1415 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1416 (_Jv_CreateJavaVM): New runtime initialization procedure.
1417 (runFirst): New proecdure - mostly code from old FirstThread::run.
1418 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1419 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1420 JvDetachCurrentThread): New inline wrappers.
1421 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1422 _Jv_DetachCurrentThread): New declarations.
1423 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1424 (getMain): new static method.
1425 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1426 by runFirst in prims.cc.
1427 (java/lang/Thread.h): Update for new invocation interface.
1428 * include/posix-threads.h (_Jv_ThreadRegister,
1429 _Jv_ThreadUnRegister): New declarations.
1430 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1431 (really_start): Use new _Jv_ThreadRegister.
1432 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1433 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1434 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1435 Complain of called when _Jv_OnlyThread already set.
1436 (_Jv_ThreadStart): Always JvFail.
1437 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1438 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1439 * win32-threads.cc (struct starter): Remove objet field -
1440 we use _Jv_Thread_t's new thread_obj field instead.
1441 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1442 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1443 (really_start): Use new _Jv_ThreadRegister.
1444 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1445 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1446 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1447 Removed - no longer needed with new invocation interface.
1448 * Makefile.am: Update for removed/added files.
1450 2001-05-21 Per Bothner <per@bothner.com>
1452 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1453 (libgcj_la_LIBADD): Likewise.
1454 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1456 2001-05-21 Per Bothner <per@bothner.com>
1458 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1459 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1460 taken from old Integer.toString code.
1461 (Integer::valueOf): Use _Jv_FormatInt.
1462 * java/lang/Integer.java (toString): Just use call String.valueOf.
1463 * java/lang/Long.java (toString): Fix typo in comment.
1464 * java/lang/String.java (valueOf(int)): Make native.
1465 * java/lang/StringBuffer.java (append(int)): Make native.
1466 * java/lang/natStringBuffer.cc: New file, for append(jint).
1467 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1469 2001-05-21 Tom Tromey <tromey@redhat.com>
1471 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1473 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1475 * include/dwarf2-signal.h: New file.
1476 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1477 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1478 * configure: Rebuilt.
1480 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1482 * configure.in: Update boehm-gc include dir for new GC version.
1483 * configure: Rebuilt.
1484 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1486 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1487 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1488 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1491 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1493 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1494 (_Jv_MutexInit): Likewise.
1496 2001-05-18 Tom Tromey <tromey@redhat.com>
1498 * Makefile.in: Rebuilt.
1499 * Makefile.am (awt_java_source_files): Added Polygon.java.
1501 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1503 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1504 * gcj/javaprims.h: ... here.
1505 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1507 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1509 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1510 with length of ioffset table.
1511 (_Jv_IsAssignableFrom): Likewise.
1513 2001-05-17 Per Bothner <per@bothner.com>
1515 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1517 2001-05-16 Tom Tromey <tromey@redhat.com>
1519 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1522 2001-05-15 Tom Tromey <tromey@redhat.com>
1524 * java/util/GregorianCalendar.java (computeTime): Only call
1527 2001-05-14 Tom Tromey <tromey@redhat.com>
1529 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1530 ZONE_OFFSET just before computing the time.
1532 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1534 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1535 * Makefile.in: Regenerate (by hand).
1536 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1537 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1539 2001-05-11 Richard Henderson <rth@redhat.com>
1541 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1542 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1544 2001-05-11 Richard Henderson <rth@redhat.com>
1546 * exception.cc: Include unwind-pe.h. Remove all pointer
1549 2001-05-10 Tom Tromey <tromey@redhat.com>
1551 * Makefile.in: Rebuilt.
1552 * Makefile.am (awt_java_source_files): Added Polygon.java.
1553 * java/awt/Polygon.java: New file.
1555 * java/awt/geom/AffineTransform.java
1556 (setToRotation(double,double,double)): New method.
1557 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1558 (setToShear): Likewise.
1560 2001-05-10 Tom Tromey <tromey@redhat.com>
1562 * java/util/GregorianCalendar.java: Imported from Classpath.
1563 * gnu/java/locale/LocaleInformation_nl.java: New file from
1565 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1566 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1567 * gnu/java/locale/LocaleInformation.java: Likewise.
1568 * natGregorianCalendar.cc: Removed.
1569 * Makefile.in: Rebuilt.
1570 * Makefile.am (nat_source_files): Removed
1571 natGregorianCalendar.cc.
1573 2001-05-10 Tom Tromey <tromey@redhat.com>
1575 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1577 (defaultCenturyStart): Use it.
1578 (readObject): Likewise.
1579 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1581 (parse): Copy the calendar before modifying it. Correctly handle
1584 * java/util/Calendar.java (clear): Set field value(s) to 0.
1586 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1588 * Calendar.java (get): Clear areFieldsSet if requested field
1590 (set): Unset fields that depend on new value.
1592 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1594 * java/lang/Class.h (_Jv_Self): New union type.
1595 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1596 Jeff Sturm and Fergus Henderson.
1598 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1600 * java/lang/ClassLoader.java: Remove dead code fragment.
1602 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1604 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1606 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1608 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1610 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1611 * configure.host (EXCEPTIONSPEC): New.
1612 * configure.in (EXCEPTIONSPEC): New.
1613 * configure: Rebuilt.
1615 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1617 * doc/*.texi: Remove generated documentation.
1619 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1621 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1622 (performDelete): Fix #endif placement.
1624 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1626 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1627 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1628 (_Jv_ThreadDestroyData): Use _Jv_Free.
1629 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1632 2001-04-27 Tom Tromey <tromey@redhat.com>
1634 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1636 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1638 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1640 * include/jni.h (struct JNINativeInterface): Fixed types in
1641 Get/Set*ArrayRegion declarations.
1642 (class _Jv_JNIEnv): Likewise.
1644 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1646 * configure.in: Obtain THREADS with `gcc -v'.
1647 * configure: Rebuilt.
1649 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1652 * java/io/ObjectStreamClass.java (setClass): Calculate
1653 serialVersionUID for local class and compare it against the UID
1654 from the Object Stream. Throw InvalidClassException upon mismatch.
1655 (setUID): Renamed to...
1656 (getClassUID): this. Return the calculated class UID rather than
1657 setting uid field directly.
1658 (getDefinedSUID): Removed.
1659 * java/io/ObjectInputStream.java (resolveClass): Use the
1660 three-argument Class.forName().
1661 * java/io/InvalidClassException (toString): Don't include classname in
1662 result if it is null.
1664 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1666 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1667 Wrap use of inet_pton in HAVE_INET6.
1669 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1671 java.security merge and ClassLoader compliance fixes.
1673 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1674 New protectionDomain field.
1675 (forName): Add initialize parameter. Fixes declaration to comply with
1677 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1678 variant. Honour "initialize" flag.
1679 (getProtectionDomain0): New method.
1680 * java/lang/Class.java: Fix forName() declaration.
1681 (getPackage): New method based on Classpath implementation.
1682 (getProtectionDomain0): New native method decl.
1683 (getProtectionDomain): New method.
1684 * java/lang/ClassLoader.java (getParent): Now final.
1685 (definedPackages): New field.
1687 (defineClass): New variant with protectionDomain argument.
1688 (definePackage): New.
1690 (findSystemClass): Now final.
1691 (getSystemResourceAsStream): Remove redundant "final" modifier.
1692 (getSystemResource): Remove redundant "final" modifier.
1693 (getResources): Now final.
1694 (protectionDomainPermission): New static field.
1695 (unknownProtectionDomain): Ditto.
1696 (defaultProtectionDomain): Ditto.
1697 (getSystemClassLoader): Now non-native.
1698 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1699 arguments for Class.forName().
1700 * java/lang/Package.java: New file.
1701 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1702 (instance): Static initialize singleton.
1703 (findClass): Override this, not findSystemClass.
1704 * java/lang/natClassLoader.cc (defineClass0): Set class's
1705 protectionDomain field as specified.
1706 (getSystemClassLoader): Removed.
1707 (findClass): Renamed from findSystemClass. Call the interpreter via
1708 URLClassLoader.findClass if loading class via dlopen fails.
1710 * java/security/*.java: java.security import/merge with Classpath.
1711 * java/security/acl/*.java: Likewise.
1712 * java/security/interfaces/*.java: Likewise.
1713 * java/security/spec/*.java: Likewise.
1714 * java/net/NetPermission.java: Likewise.
1715 * java/net/SocketPermission.java: Likewise.
1716 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1718 * Makefile.am: Add new classes.
1719 * Makefile.in: Rebuilt.
1720 * gcj/javaprims.h: CNI namespace rebuild.
1722 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1724 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1725 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1726 * configure: Rebuilt.
1728 2001-04-21 Tom Tromey <tromey@redhat.com>
1730 * Makefile.in: Rebuilt.
1731 * Makefile.am (awt_java_source_files): Added Line2D.java.
1732 * java/awt/geom/Line2D.java: Wrote.
1734 * java/awt/Menu.java (addNotify): Wrote.
1736 * java/awt/PopupMenu.java (addNotify): Implemented.
1739 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1740 * java/awt/List.java (addNotify): Call super.addNotify.
1741 * java/awt/Label.java (addNotify): Call super.addNotify.
1742 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1743 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1744 * java/awt/Choice.java (addNotify): Call super.addNotify.
1745 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1746 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1748 * java/awt/List.java (replaceItem): Notify peer.
1750 * java/awt/geom/Rectangle2D.java
1751 (Float.setRect(float,float,float,float)): New method.
1753 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1756 * java/awt/RenderingHints.java (Key): Class now public.
1758 * java/awt/Rectangle.java (Rectangle): Now implements
1760 (getPathIterator): Removed.
1762 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1765 * java/awt/FileDialog.java: Wrote.
1767 * java/awt/EventQueue.java (isDispatchThread): Now public.
1768 (invokeLater): Likewise.
1770 * java/awt/Component.java (setCursor): Update peer.
1771 (getFontMetrics): Use peer.
1773 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1776 2001-04-20 Tom Tromey <tromey@redhat.com>
1778 * java/awt/List.java: Wrote.
1779 * java/awt/Dialog.java: Wrote.
1781 2001-04-20 Warren Levy <warrenl@redhat.com>
1783 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1784 * java/text/SimpleDateFormat.java
1785 (indexInArray): Removed private method.
1786 (processYear): Removed private method.
1787 (parseLenient): Removed private method.
1788 (parseLeadingZeros): Removed private method.
1789 (parseStrict): Removed private method.
1790 (expect): Added new private method.
1791 (parse): Reverted to pre-Classpath merge version with minor fixes.
1792 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1795 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1797 * java/io/File.java (normalizePath): New private method.
1798 (File (String)): Use normalizePath().
1799 (File (String, String)): Likewise.
1801 * Makefile.am (libffi_files): Removed.
1802 (libgcj.la): Link libffi as a convenience library instead of
1803 refering to its object files directly.
1804 * Makefile.in: Rebuilt.
1806 2001-04-08 Per Bothner <per@bothner.com>
1808 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1809 Recalculate hash, since Utf8Const's hash is only 16 bits.
1811 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1812 bits of hash to calculate step for chaining.
1814 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1815 when 2/3 full, rather than 3/4 full.
1817 2001-04-06 Tom Tromey <tromey@redhat.com>
1819 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1820 (wrap_value<T*>): New specialization.
1821 (_Jv_JNI_PopLocalFrame): Update env->locals.
1823 2001-04-05 Tom Tromey <tromey@redhat.com>
1825 * libtool-version: Updated current.
1827 2001-04-04 Andreas Jaeger <aj@suse.de>
1829 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1830 * gcj/Makefile.in: Rebuilt.
1831 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1832 * Makefile.in: Rebuilt.
1833 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1834 * testsuite/Makefile.in: Rebuild.
1835 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1836 * include/Makefile.in: Rebuild.
1838 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1840 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1841 compiled test', not 'execution from source compiled test'.
1842 Use UNTESTED, not XFAIL, for tests which are not run because
1843 they depend on a previous test which failed.
1845 2001-04-02 Richard Henderson <rth@redhat.com>
1847 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1848 the same tree as gcc.
1849 * configure: Rebuilt.
1851 * exception.cc (_Jv_Throw): Clarify commentary.
1853 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1855 * jni.cc (wrap_value<jclass>): New specialization.
1857 2001-04-02 Tom Tromey <tromey@redhat.com>
1859 * java/io/PrintStream.java (out): Removed field. Fixes PR
1861 (write): Call flush, not out.flush, per spec.
1862 (close): Flush output stream, per spec. Handle
1863 InterruptedIOException.
1864 (checkError): Likewise.
1865 (flush, print, write): Handle InterruptedIOException per spec.
1866 (PrintStream): Don't create BufferedOutputStream.
1867 (work_bytes): New field.
1868 (writeChars): Use work_bytes. Don't assume `out' is a
1869 BufferedOutputStream.
1871 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1873 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1876 2001-03-30 Tom Tromey <tromey@redhat.com>
1878 * jni.cc (add_char): Correctly encode non-ascii characters.
1879 (add_char): Define even when INTERPRETER not defined.
1880 (mangled_name): Likewise.
1881 (_Jv_GetJNIEnvNewFrame): Likewise.
1882 (_Jv_LookupJNIMethod): Likewise.
1884 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1886 * configure.host: Enable interpreter for PPC.
1888 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1890 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1891 to "file.separator", "path.separator", and "java.io.tmpdir" property
1893 * java/io/File.java: Likewise.
1894 * java/io/natFile.cc (init_native): Likewise.
1895 * java/io/natFileWin32.cc (init_native): Likewise.
1897 2001-04-01 Per Bothner <per@bothner.com>
1899 * java/lang/natString.cc (intern): If string's data does not point to
1900 this String, make a fresh String that does.
1902 * java/lang/natString.cc (unintern): Replace by static function.
1903 * java/lang/String.java (unintern): Remove method.
1905 2001-04-01 Per Bothner <per@bothner.com>
1907 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1908 (finish): def.deflate needs to be called in a loop.
1909 (inbuf, inbufLength): New private fields.
1910 (write(int)): Use inbuf.
1911 (write(byte[],int,int): Check if pending output in inbuf.
1912 * ZipOutputStream.java: Don't use Deflater if stored.
1913 Use a Checksum object directly, not via a CheckedOutputStream.
1914 (uncompressed_size): New field,
1915 (closeEntry): Only write data_directory if needed.
1916 (write): If STORED, write directly.
1917 Always update crc, and uncompressed_size.
1918 (write_entry): Fix lots of protocol erors.
1920 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1922 1.3-Compliant Implementation of java.io.File.
1923 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1924 "path.separator", and "java.io.tmpdir" from the File class, instead
1925 of setting them explicitly.
1926 * java/io/File.java: Do not canonicalize paths for security manager
1927 checks. Call init_native() from static initializer. Do not pass path
1928 argument to native methods. New native method declarations. Some
1929 security manager checks moved to checkWrite().
1930 (equals): Check file system case sensitivity and act appropriatly.
1931 (hashCode): Likewise.
1932 (isHidden): New method implemented.
1933 (performList): Changed prototype. Now takes a class argument specifying
1934 the class of the returned array: Strings or File objects. Also added
1935 FileFilter argument.
1936 (listFiles): New variants with "File" return type implemented.
1937 (createTempFile): Use createNewFile(). Use maxPathLen.
1938 (setReadOnly): New method implemented.
1939 (listRoots): Likewise.
1940 (compareTo): Likewise.
1941 (setLastModified): Likewise.
1942 (checkWrite): New method.
1944 * java/io/natFile.cc: Various functions no longer take canonical path
1946 (stat): Handle ISHIDDEN query.
1947 (isAbsolute): Remove WIN32 cruft.
1948 (performList): New arguments. Handle returning either File[] or String[]
1949 arrays. Check with FileFilter or FilenameFilter arguments as
1950 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1951 (performSetReadOnly): New method implemented.
1952 (performListRoots): Likewise.
1953 (performSetLastModified): Likewise.
1954 (performCreate): Likewise.
1955 (init_native): New initialization function.
1956 * java/io/natFileWin32.cc: Various functions no longer take canonical
1958 (stat): Add FIXME about ISHIDDEN query.
1959 (performList): New arguments. Handle returning either File[] or String[]
1960 arrays. Check with FileFilter or FilenameFilter arguments as
1961 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1962 (performSetReadOnly): New. Stubbed.
1963 (performListRoots): Likewise.
1964 (performSetLastModified): Likewise.
1965 (performCreate): Likewise.
1966 (init_native) New initialization function.
1967 * configure.in: Check for utime() and chmod().
1968 * configure: Rebuilt.
1969 * include/config.h.in: Rebuilt.
1971 Resolves PR libgcj/1759.
1973 2001-03-28 Richard Henderson <rth@redhat.com>
1975 IA-64 ABI Exception Handling:
1976 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1977 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1978 Remove EXCEPTIONSPEC.
1979 * configure.host (libgcj_sjlj): Remove.
1980 * configure.in (EXCEPTIONSPEC): Remove.
1981 (enable-sjlj-exceptions): Detect if not specified.
1982 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1983 what header we're looking for.
1984 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1985 * Makefile.in, configure: Regenerate.
1986 * exception.cc: Don't declare libgcc2 stuff.
1987 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1988 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1989 (win32_get_restart_frame): Remove.
1990 (struct java_exception_header): New.
1991 (__gcj_exception_class): New.
1992 (get_exception_header_from_ue): New.
1993 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1994 (size_of_encoded_value, read_encoded_value): New.
1995 (read_uleb128, read_sleb128, parse_lsda_header): New.
1996 (get_ttype_entry, __gcj_personality_sj0): New.
1997 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1999 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2001 * javax/naming/InitialContext.java (init): Fix typo.
2002 (composeName): Remove unnecessary semicolon.
2003 (addToEnvironment): Remove unnecessary semicolon.
2004 (addToEnvironment): Use put() instead of add().
2006 * javax/naming/InitialContext.java (InitialContext):
2008 (destroySubcontext): Method doesn't return a result.
2009 * javax/naming/Context.java: Import java.util.Hashtable.
2010 * javax/naming/Name.java: Import java.util.Enumeration.
2012 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2014 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2015 objects in subdirectories.
2016 * Makefile.in: Rebuilt.
2018 2001-03-25 Richard Henderson <rth@redhat.com>
2020 * exception.cc (java_eh_info): Make value type jthrowable.
2021 (_Jv_type_matcher): Remove now unneeded cast.
2022 (_Jv_Throw): Make argument type jthrowable. Munge name
2023 for SJLJ_EXCEPTIONS here ...
2024 * gcj/cni.h: ... not here.
2026 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2028 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2029 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2030 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2031 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2032 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2033 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2034 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2035 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2036 java/lang/natDouble.cc, java/lang/natObject.cc,
2037 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2038 java/lang/natString.cc, java/lang/natSystem.cc,
2039 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2040 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2041 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2042 java/util/zip/natInflater.cc:
2043 Use throw, not JvThrow or _Jv_Throw.
2045 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2047 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2048 paramater, bump it to 1.
2049 * java/util/Hashtable.java (Hashtable): Likewise.
2051 2001-03-23 Per Bothner <per@bothner.com>
2053 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2054 check for errors, since we don't want to throw exception on
2055 overflow/underflow. Instead, trim whitespace, and then check that
2056 _strtod_r uses up all the rest of the string.
2058 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2059 ancestors array is invalid for interfaces, so do that *after*
2060 check that the target type is not an interface.
2062 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2064 * prims.cc (_Jv_FindClassFromSignature): Check return of
2065 recursive call. Do not abort on invalid signature; return NULL
2068 2001-03-22 Tom Tromey <tromey@redhat.com>
2070 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2071 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2073 * include/jvm.h (_Jv_ResolveField): Declare.
2074 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2075 * resolve.cc (_Jv_ResolveField): No longer conditional on
2078 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2080 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2081 for libtool hacking.
2082 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2083 to a temporary file, then invoke libtool with the -objectlist
2085 (libgcjx.la): Likewise.
2086 * Makefile.in: Rebuilt.
2088 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2090 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2092 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2094 * jni.cc (add_char): Handle `.' like `/'.
2096 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2098 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2099 initialize if exception_types is null.
2100 * java/lang/reflect/Constructor.java: Likewise.
2101 * java/lang/reflect/natConstructor.cc (getType): Initialize
2102 exception_types to an empty Object array.
2104 2001-03-21 Tom Tromey <tromey@redhat.com>
2106 * configure: Rebuilt.
2107 * configure.in (GCJFLAGS): Subst.
2108 * Makefile.in: Rebuilt.
2109 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2110 (gij_LDFLAGS): Likewise.
2111 (JC1FLAGS): Added GCJFLAGS and removed -g.
2113 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2114 read/write case. Fixes PR libgcj/2338.
2116 2001-03-20 Warren Levy <warrenl@redhat.com>
2118 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2119 and corrected SimpleTimeZone's for the timezones hash table.
2121 2001-03-19 Per Bothner <per@bothner.com>
2123 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2124 "canonicalize" "../../xxx" to "/xxx".
2126 2001-03-19 Mark Wielaard <mark@klomp.org>
2128 * java/util/ArrayList.java: Remove RCS keywords from comments
2129 * java/util/BasicMapEntry.java: idem
2130 * java/util/Dictionary.java: idem
2131 * java/util/HashSet.java: idem
2133 * java/util/EventObject.java: reindent
2134 * java/util/Properties.java: idem
2135 * java/util/SortedMap.java: idem
2137 * java/util/Enumeration.java: Merge with Classpath
2138 * java/util/EventListener.java: idem
2139 * java/util/Observable.java: idem
2140 * java/util/Observer.java: idem
2141 * java/util/Stack.java: idem
2143 2001-03-17 Tom Tromey <tromey@redhat.com>
2145 * java/lang/natString.cc (rehash): Don't bother with memset;
2146 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2148 (UNMASK_PTR): New macro.
2149 (intern): Unmask pointer before returning it. Register finalizer
2151 (unintern): Handle case where
2152 (MASK_PTR): New macro.
2153 (PTR_MAKSED): Likewise.
2154 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2156 2001-03-01 Andrew Haley <aph@redhat.com>
2158 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2159 stackTrace buffer to a correctly aligned pointer array.
2161 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2163 * java/lang/Runtime.java (_exit): Declare new package-private native.
2164 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2165 without a security manager check.
2166 (exit): Call _exit after security check.
2167 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2169 * java/lang/System.java (setSecurityManager): If a security manager
2170 is already in place, call checkPermission.
2171 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2172 throws an exception, try to deal with it gracefully.
2173 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2174 Only try to print the subordinate stack trace if "exception" is set.
2175 Print our class name first.
2177 2001-03-08 Tom Tromey <tromey@redhat.com>
2179 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2180 info for array classes.
2181 Fixes PR libgcj/1971.
2183 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2185 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2188 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2190 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2191 instead of the new JDK1.2 API. This is simpler and makes
2192 back-porting the classes to JDK1.1 trivial.
2193 (readObject): likewise.
2195 2001-03-01 Per Bothner <per@bothner.com>
2197 Changes merged from Kawa's gnu.math.
2198 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2199 (rshift(int[],int[],int,int): Removed - not needed.
2200 (gcd): Use rshift0 rather than rshift.
2201 * java/math/BigInteger.java (setShiftRight): Likewise.
2202 (divide): Simplify by using rshift0.
2203 (divide): Zero-extend results if high-order bit set.
2205 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2207 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2210 2001-02-23 Per Bothner <per@bothner.com>
2212 Change to sometimes include class name in ClassFormatError message.
2213 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2214 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2215 boolean instead of throwing ClassFormatError on failure.
2216 (throw_class_format_error): Change static function to method.
2217 (_Jv_ClassReader): New inline methods verify_identifier,
2218 two overloads of verify_classname, verify_field_signature, and
2219 verify_method_signature
2220 * include/java-interp.h: Update declarations to return bool.
2221 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2222 ClassFormatError since _Jv_VerifyClassName now returns bool.
2224 2001-02-23 Per Bothner <per@bothner.com>
2226 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2227 c++filt to select java-style output.
2229 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2231 Fix for PR java/2040:
2232 * java/util/HashMap.java (HashMap): Don't throw exception for
2233 loadFactor > 1. Add exception messages.
2234 * java/util/Hashtable.java (Hashtable): Likewise.
2236 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2238 Disable libgcjx by default.
2239 * configure.in: Add support for --enable-java-awt configure option.
2240 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2241 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2242 * Makefile.in: Rebuilt.
2243 * configure: Rebuilt.
2245 2001-02-20 Tom Tromey <tromey@redhat.com>
2247 * java/io/PipedWriter.java (flush): Throw exception if stream
2249 * java/io/OutputStreamWriter.java (write): Throw exception if
2251 (writeChars): Don't throw exception if stream closed.
2252 * java/io/CharArrayWriter.java (closed): New field.
2254 (flush): Throw exception if stream closed.
2255 (reset): Synchronize on correct lock. Allow stream to be
2257 (toCharArray, toString, writeTo): Synchronize.
2258 (write): Throwe exception if stream closed.
2259 * java/io/BufferedWriter.java (close): Clear `buffer'.
2260 (flush): Throw IOException if stream is closed.
2263 2001-02-16 Tom Tromey <tromey@cygnus.com>
2265 * java/lang/ThreadGroup.java (activeCount): Only include threads
2267 (enumerate): Likewise.
2269 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2271 * java/lang/Integer.java (getInteger): Return default argument if
2272 property is not set. Don't call decode with null argument.
2273 * java/lang/Long.java (getLong): Likewise.
2275 * java/io/CharArrayReader.java (CharArrayReader): Throw
2276 IllegalArgumentException if constructor arguments are illegal.
2277 (ready): Return false if no more characters can be read.
2278 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2280 2001-02-17 Mark Wielaard <mark@klomp.org>
2282 * java/util/TimerTask.java: New version from Classpath.
2284 2001-02-17 Mark Wielaard <mark@klomp.org>
2286 Remerge with Classpath
2287 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2288 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2289 (readByte): Use convertToByte().
2290 (readChar): Use convertToChar().
2291 (readInt): Use convertToInt().
2292 (readLong): Use convertToLong().
2293 (readShort): Use convertToShort().
2294 (readUnsignedByte): Use convertToUnsignedByte().
2295 (readUnsignedShort): Use convertToUnsignedShort().
2296 (readUTF): Use convertToUTF().
2298 (convertToBoolean): Resurrected.
2299 (convertToByte): Ditto.
2300 (convertToChar): Ditto.
2301 (convertToInt): Ditto.
2302 (convertToLong): Ditto.
2303 (convertToShort): Ditto.
2304 (convertToUnsignedByte): Ditto.
2305 (convertToUnsignedShort): Ditto.
2306 (convertToUTF): Ditto.
2308 2001-02-17 Mark Wielaard <mark@klomp.org>
2312 2001-02-17 Mark Wielaard <mark@klomp.org>
2314 * java/io/DataInputStream.java: update copyright notice
2315 * java/io/PrintWriter.java: idem
2316 * java/io/Reader.java: idem
2317 * java/io/StreamTokenizer.java: idem
2318 * java/io/StringReader.java: idem
2319 * java/lang/reflect/ReflectPermission.java: idem
2321 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2323 * java/util/TreeSet.java (clone): Made subclass safe, use
2324 super.clone(), not new.
2325 * java/util/TreeMap.java (clone): Likewise.
2327 * java/util/TreeMap.java (nil): Made non-final.
2328 (clone): Create new nil node for copy.
2330 * java/util/HashSet.java (clone): Made subclass safe, use
2331 super.clone(), not new.
2333 2001-02-14 Andrew Haley <aph@redhat.com>
2335 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2338 2001-02-15 Anthony Green <green@redhat.com>
2340 * defineclass.cc: Don't include alloca.h.
2341 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2342 * interpret.cc (run_normal): Ditto.
2344 * java/lang/natDouble.cc (parseDouble): Ditto.
2346 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2348 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2350 * java/util/Collections.java (ReverseComparator): New static class.
2351 (reverseOrder): Return static instance of ReverseComparator.
2353 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2354 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2355 Rectangle.clone(), not Object.clone().
2357 * java/util/HashSet.java (clone): Remove try/catch.
2359 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2360 * java/util/Collection.java: Likewise.
2361 * java/util/Comparator.java: Likewise.
2362 * java/util/Dictionary.java: Likewise.
2363 * java/util/Iterator.java: Likewise.
2364 * java/util/ListIterator.java: Likewise.
2365 * java/util/Map.java: Likewise.
2366 * java/util/Set.java: Likewise.
2368 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2370 * java/util/TreeMap.java: New file.
2371 * java/util/TreeSet.java: New file.
2372 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2373 * Makefile.in: Rebuilt.
2374 * java/util/HashSet.java (clone): Use constructor instead of calling
2376 * java/util/SortedSet.java: Sync with classpath.
2377 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2380 * java/lang/natClass.cc (getSignature): Don't try to dereference
2381 param_types if it is null. Instead, take this to mean "no parameters".
2382 * java/lang/TreeMap.java (TreeIterator.next): Throw
2383 NoSuchElementException in preference to ConcurrentModificationException.
2384 (TreeIterator.remove): Throw IllegalStateException in preference to
2385 ConcurrentModificationException.
2386 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2387 throw a NoSuchElementException.
2388 (SubMap.lastKey): Likewise.
2390 2001-02-13 Tom Tromey <tromey@redhat.com>
2392 * java/io/PipedReader.java (ready): Throw IOException if pipe
2394 * java/io/FilterReader.java (close): Don't clear `in'.
2395 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2397 (read, ready, reset, skip): Added exception message.
2398 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2399 Perform checkStatus check inside synchronized block.
2401 2001-02-13 Tom Tromey <tromey@redhat.com>
2403 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2405 2001-02-13 Tom Tromey <tromey@redhat.com>
2407 Fix for PR libgcj/1351:
2408 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2410 Include Thread.h and InterruptedIOException.h.
2412 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2414 * java/io/BlockDataException.java: Removed.
2415 * java/io/ObjectInputStream.java (readObject): Throw
2416 StreamCorruptedException, not BlockDataException.
2417 * Makefile.am: Remove BlockDataException.
2418 * Makefile.in: Rebuild.
2420 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2421 Tom Tromey <tromey@redhat.com>
2423 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2426 2001-02-09 Tom Tromey <tromey@redhat.com>
2428 * java/util/Timer.java: New version from Classpath.
2430 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2432 * java/lang/Double.java (doubleToRawLongBits): Now native.
2433 * java/lang/Float.java (floatToRawIntBits): Likewise.
2434 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2435 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2437 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2439 * java/io/File.java (java.net): Imported.
2440 (getAbsoluteFile): Added.
2441 (getCanonicalPath): Likewise.
2444 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2446 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2447 * java/lang/Integer.java: Likewise.
2448 * java/lang/Long.java: Likewise.
2449 * java/lang/Short.java: Likewise.
2450 * java/lang/Double.java: Likewise.
2451 (doubleToRawLongBits): New method.
2452 * java/lang/Float.java: As above.
2453 (floatToRawIntBits): New method.
2455 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2456 IOException if stream closed.
2458 2001-02-08 Tom Tromey <tromey@redhat.com>
2460 * java/lang/Float.java (parseFloat): New method.
2462 2001-02-08 Tom Tromey <tromey@redhat.com>
2464 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2465 * java/io/InputStreamReader.java (ready, read): Throw IOException
2466 if stream has been closed.
2468 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2470 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2471 Change sources.redhat.com and sourceware.cygnus.com references to
2474 2001-02-07 Tom Tromey <tromey@redhat.com>
2476 Fix for PR libgcj/1906:
2477 * java/text/MessageFormat.java (setLocale): Use named class
2480 (format(Object,StringBuffer,FieldPosition)): Special case if
2481 argument is an Object[].
2483 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2485 * java/util/Arrays.java: Removed "cmp" methods.
2486 (qsort): Don't use "cmp".
2489 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2491 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2492 sort. Fix for PR java/1895.
2494 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2496 * configure.host: Use sjlj-exceptions for Alpha.
2498 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2500 * libgcj.spec.in: Don't force static libgcc into the executable.
2501 * configure.in (FORCELIBGCCSPEC): Removed.
2502 * configure: Rebuilt.
2504 2001-01-31 Tom Tromey <tromey@redhat.com>
2506 * Makefile.in: Rebuilt.
2507 * Makefile.am (LTCXXCOMPILE): New macro.
2509 2001-01-26 Andrew Haley <aph@redhat.com>
2511 (INIT_FPE): Use a direct system call to set the handler.
2513 2001-01-27 Richard Henderson <rth@redhat.com>
2515 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2517 2001-01-27 Tom Tromey <tromey@redhat.com>
2519 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2520 native interface structure.
2522 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2524 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2526 (read (byte[], int, int)): Only call readNextBlock() if the block
2527 buffer would actually be overrun. Increment blockDataPosition.
2528 (callReadMethod): Propagate exceptions from invocation target.
2529 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2530 exceptions from invocation target.
2532 2001-01-26 Tom Tromey <tromey@redhat.com>
2534 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2535 to internal representation.
2536 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2537 _Jv_FindClassFromSignature.
2539 2001-01-26 Warren Levy <warrenl@redhat.com>
2541 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2542 and timezone if they are available on the system.
2544 2001-01-24 Tom Tromey <tromey@redhat.com>
2546 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2548 2001-01-24 Tom Tromey <tromey@redhat.com>
2550 * Makefile.in: Rebuilt.
2551 * Makefile.am (c_source_files): Added sf_fabs.c.
2552 * java/lang/sf_fabs.c: New file.
2554 2001-01-19 Warren Levy <warrenl@redhat.com>
2556 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2557 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2558 correctly. Adjust properly from 0-23 clock hour.
2560 2001-01-17 Mark Wielaard <mark@klomp.org>
2562 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2564 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2566 * java/lang/Class.h (isInterface): Move implementation from
2567 natClass.cc. Declare inline.
2568 (Class): Add default constructor.
2569 * java/lang/Object.h: Update comments.
2570 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2571 initialize superclass, saving a call if super is already initialized.
2573 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2575 * prims.cc (init_prim_class): Deleted.
2576 (DECLARE_PRIM_TYPE): Rewritten.
2577 * java/lang/Class.h (stdio.h): Include removed.
2578 (stddef.h): Included.
2579 (java/lang/reflect/Modifier.h): Likewise.
2580 (Class): Contructor now takes arguments, initializes fields.
2581 (initializePrim): Prototype deleted.
2582 * java/lang/natClass.cc (initializePrim): Deleted.
2584 2001-01-16 Warren Levy <warrenl@redhat.com>
2586 * java/math/BigInteger.java: Update Copyright year.
2588 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2590 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2593 2001-01-14 Mark Wielaard <mark@klomp.org>
2594 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2595 (decode): Merge comments with Classpath, don't throw Exception
2597 2001-01-12 Tom Tromey <tromey@redhat.com>
2599 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2603 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2604 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2605 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2606 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2607 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2609 * java/lang/natSystem.cc: Include locale.h if it exists.
2610 * configure: Rebuilt.
2611 * configure.in: Check for locale.h.
2613 2001-01-11 Tom Tromey <tromey@redhat.com>
2615 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2616 (Cursor(int), getPredefinedCursor): Throw exception if argument
2619 2001-01-03 Tom Tromey <tromey@redhat.com>
2621 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2622 (getLocationOnScreen): Wrote.
2624 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2626 * Makefile.am: Re-enable dependencies.
2627 * Makefile.in: Rebuilt.
2629 2001-01-10 Warren Levy <warrenl@redhat.com>
2631 * java/math/BigDecimal.java (divide): Fixed comment.
2633 2001-01-10 Warren Levy <warrenl@redhat.com>
2635 Fix for PR libgcj/1596:
2636 * java/math/BigDecimal.java (divide): Check newScale for validity.
2637 Ensure that BigInteger.pow() is called with a non-negative value.
2638 (setScale (int)): New public method.
2639 (setScale (int,int)): New public method.
2641 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2643 Fix for PR libgcj/1338:
2644 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2645 commentChar. Fixed typos in comments.
2647 2001-01-08 Warren Levy <warrenl@redhat.com>
2649 Fix for PR libgcj/1411:
2650 * Makefile.am: Removed java/util/natTimeZone.cc.
2651 * Makefile.in: Rebuilt.
2652 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2653 missing localized timezone names.
2654 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2655 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2656 (init_properties): Set user.timezone property.
2657 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2658 default timezone names; removed non-standard ones. Use standard
2660 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2662 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2664 (getDefaultTimeZoneId): Removed.
2666 * java/util/natTimeZone.cc: Removed.
2668 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2670 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2671 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2672 (_Jv_GetArrayClass): New inline function.
2673 (arrayclass): New field.
2674 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2675 _Jv_GetArrayElementFromElementType.
2676 (_Jv_NewPrimArray): Ditto.
2677 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2678 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2679 Set Modifier::ABSTRACT.
2680 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2681 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2682 Now synchronized. Array classes are now referenced from
2683 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2684 Set array classes' accessibility flags correctly. Optimize so that
2685 all array classes share the same IDT.
2686 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2687 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2688 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2689 in superclasses from overwriting classes own fields.
2690 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2691 Modifier::isAbstract().
2692 (null_idt): New static field.
2693 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2695 (_Jv_IndexOf): Made inline.
2696 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2698 2001-01-08 Tom Tromey <tromey@redhat.com>
2700 Fix for PR java/1586:
2701 * Makefile.in: Rebuilt.
2702 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2704 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2706 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2707 from the c++ compiler.
2708 * Makefile.in: Rebuilt.
2710 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2712 All files with updated copyright.
2713 * prims.cc (class _Jv_PrimClass): Removed.
2714 (init_prim_class): New function.
2715 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2716 `_Jv_PrimClass' in primitive type declarations. Assign to the
2717 value returned by `init_prim_class.'
2718 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2719 primitive type declarations.
2720 (JvPrimClass): Cast to `jclass' removed.
2721 * java/lang/Class.h (Class): New constructor.
2722 (Class): New copy constructor.
2723 (initializePrim): New prototype.
2724 (_Jv_PrimClass): Field removed.
2725 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2726 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2727 (class java::lang::Object): `finalize' moved up front.
2728 * java/lang/natClass.cc
2729 (isAssignableFrom): Turned outline.
2730 (isInstance): Likewise.
2731 (isInterface): Likewise, fixed indentation.
2732 (initializePrim): New function.
2734 2001-01-07 Anthony Green <green@redhat.com>
2736 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2738 * Makefile.in: Rebuilt.
2740 * scripts/TexinfoDoclet.java: New file.
2742 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2743 doc/java-awt-color.texi, doc/java-lang.texi,
2744 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2745 doc/java-awt-event.texi, doc/java-net.texi,
2746 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2747 doc/java-awt-image.texi, doc/java-security.texi,
2748 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2749 doc/java-text.texi, doc/java-beans-beancontext.texi,
2750 doc/java-util-jar.texi, doc/java-beans.texi,
2751 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2752 doc/java-lang-ref.texi: New files.
2754 2001-01-07 Anthony Green <green@redhat.com>
2756 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2757 be used for both input and output, so don't clear doInput.
2759 * java/lang/StringBuffer.java: Fix comments.
2761 2001-01-06 Anthony Green <green@redhat.com>
2763 * java/beans/PropertyDescriptor.java: Fix comment.
2764 * java/io/PushbackReader.java: Fix comment.
2765 * java/io/ObjectStreamClass.java: Fix comment.
2766 * java/io/DataInputStream.java: Fix comment.
2767 * java/io/PipedInputStream.java: Fix comments.
2768 * java/io/PipedReader.java: Fix comments.
2769 * java/sql/DatabaseMetaData.java: Fix comments.
2771 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2773 * java/io/PipedReader: Synchronize on "lock" instead of this.
2775 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2777 * java/lang/Thread.java: Update comment.
2779 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2780 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2781 * java/io/PipedReader: New implementation based on new
2783 * java/io/PipedWriter: Updated to match new PipedReader.
2785 2001-01-03 Tom Tromey <tromey@redhat.com>
2787 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2788 (getViewportSize): Insets include scrollbar size.
2789 (doLayout): Finished.
2790 (getScrollPosition): Wrote.
2791 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2793 2001-01-02 Tom Tromey <tromey@redhat.com>
2795 * java/awt/ScrollPane.java: Wrote.
2796 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2799 * java/awt/Panel.java (Panel()): Fixed.
2801 * java/awt/Component.java (isShowing): Return false if no peer
2802 exists, and true if component is visible and no parent exists.
2803 (getLocationOnScreen): Wrote.
2804 (getPreferredSize): Removed FIXME comment.
2805 (getMinimumSize): Likewise.
2806 (getAlignmentX, getAlignmentY): Wrote.
2808 (requestFocus): Wrote.
2809 (transferFocus): Wrote.
2810 (findNextFocusComponent): New method.
2811 (hasFocus()): Wrote.
2812 (checkImage): Wrote.
2813 (enableEvents): Call setEventMask on the peer.
2815 * java/awt/Container.java (list): Use super.list() to print self.
2816 (findNextFocusComponent): New method.
2817 (setLayout): Call invalidate.
2818 (findComponentAt): Wrote.
2820 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2822 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2823 the correct versions of various linuxthreads functions get linked.
2824 * Makefile.in: Rebuilt.
2825 * java/lang/natThread.cc (finalize_native): New static function. Call
2826 _Jv_ThreadDestroyData.
2827 (initialize_native): Register finalizer for "data".
2828 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2829 (_Jv_ThreadDestroyData): New prototype.
2830 * include/win32-threads.h: Ditto.
2831 * include/no-threads.h: Ditto.
2832 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2833 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2834 move mutex and condition variable destroy code from:
2835 (really_start): ...here.
2836 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2837 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2838 (_Jv_ThreadDestroyData): Implemented.
2839 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2840 (_Jv_AllocArray): Ditto.
2842 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2844 * java/sql/DriverManager.java (getConnection): Don't set user/password
2847 2000-12-27 Warren Levy <warrenl@redhat.com>
2849 Fix for PR libgcj/1358:
2850 * java/lang/System.java: Update Copyright date properly.
2851 * java/util/Calendar.java: Fix typo in comment.
2852 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2853 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2854 initialize times. Spec says to set H:M:S values to zero only if
2856 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2857 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2858 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2859 timezones and GMT offsets, being careful to account for units of
2860 milliseconds vs. seconds.
2862 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2864 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2865 not be assigned to Object.
2867 Fix for PR libgcj/1516:
2868 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2870 (can_widen): Declared inline. Remove redundant checks for void
2871 arguments and char->short conversion. Add special case for boolean
2873 (ffi_type): Declared inline.
2874 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2876 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2878 * java/sql/SQLWarning.java: Fixed typo in comment.
2880 2000-12-26 Tom Tromey <tromey@redhat.com>
2882 * java/awt/MenuItem.java (paramString): Now protected.
2884 * java/awt/MenuShortcut.java: Implements Serializable.
2886 * java/awt/MenuBar.java: Rewrote from scratch.
2888 * java/awt/MenuComponent.java (removeNotify): Wrote.
2889 Implements Serializable.
2891 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2894 * java/awt/CheckboxMenuItem.java: Wrote.
2896 2000-12-25 Tom Tromey <tromey@redhat.com>
2898 * java/awt/MenuContainer.java: Fixed typo.
2900 * Makefile.in: Rebuilt.
2901 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2902 * java/awt/SystemColor.java: New file.
2904 * java/awt/Color.java (rgba): Now package-private.
2906 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2908 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2911 * java/awt/MenuItem.java (addNotify): New method.
2912 (MenuItem(String,MenuShortcut)): New constructor.
2913 (setLabel): Notify peer of change.
2914 (setEnabled): Likewise.
2916 * java/awt/GridLayout.java (toString): New method.
2918 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2919 (FlowLayout): Check for LEADING and TRAILING.
2920 (setAlignment): Likewise.
2921 (layoutContainer): Handle component orientation.
2923 * java/awt/Component.java (orientatin): New field.
2924 (setComponentOrientation): Wrote.
2925 (getComponentOrientation): Wrote.
2927 * java/awt/Event.java (Event): Implements Serializable.
2928 (consumed): New field for serialization.
2929 * java/awt/Dimension.java (Dimension): Implements Serializable.
2930 * java/awt/Cursor.java (Cursor): Implements Serializable.
2931 * java/awt/Container.java (Container): No longer abstract.
2933 * java/awt/Choice.java: Wrote.
2934 * java/awt/Checkbox.java: Wrote.
2935 * java/awt/ItemSelectable.java: Documented.
2936 * java/awt/CheckboxGroup.java: Wrote.
2938 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2940 (getSize): Likewise.
2942 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2944 * java/io/FileDescriptor.java: Initialize fd to -1.
2945 Remove default constructor.
2947 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2949 * java/lang/mprec.h: Change C9X reference to refer to C99.
2951 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2953 * java/lang/Throwable.java (trace_enabled): New static field.
2954 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2955 trace_enabled not set.
2956 * prims.cc (main_init): Turn off trace_enabled while creating
2957 default exception objects.
2959 2000-12-21 Tom Tromey <tromey@redhat.com>
2961 * java/beans/PropertyChangeListener.java: Extends EventListener.
2962 * java/beans/VetoableChangeListener.java: Extends EventListener.
2964 * java/util/zip/Deflater.java (update, init): Now private.
2966 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2968 * java/util/BasicMapEntry.java: Re-added.
2969 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2970 (putAll): Test for BasicMapEntry.
2971 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2972 (putAll): Test for BasicMapEntry.
2973 Change references from `HashMap.Entry' to `Entry' in various places.
2974 * Makefile.am: Add BasicMapEntry.java.
2975 * Makefile.in: Rebuilt.
2977 2000-12-18 Warren Levy <warrenl@redhat.com>
2979 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2980 need to set timezone to a valid non-null value. Partial fix for
2983 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2985 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2987 * java/awt/Button.java (addNotify): Likewise.
2988 * java/awt/Label.java (addNotify): Likewise.
2989 * java/awt/Panel.java (addNotify): Likewise.
2990 * java/awt/Scrollbar.java (addNotify): Likewise.
2991 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2992 Remove redundant null checks.
2994 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2996 * COPYING: Update to current
2997 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2998 to 19yy as example year in copyright notice).
3000 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3002 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3003 end-of-stream if avail_in is 0.
3005 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3007 * java/util/ArrayList.java (data): Declare transient.
3008 (serialPersistantFields): Removed.
3009 (readObject): Use defaultReadObject(), not readFields().
3010 (writeObject): Use defaultWriteObject(), not writeFields().
3012 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3014 * java/util/Hashtable.java (put): Remove `last' variable.
3015 Link new entry to head of list.
3016 * java/util/HashMap.java (put): Ditto.
3018 2000-12-15 Tom Tromey <tromey@redhat.com>
3020 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3021 loader to Class.forName.
3023 2000-12-14 Tom Tromey <tromey@redhat.com>
3025 * java/util/ResourceBundle.java
3026 (getBundle(String,Locale,ClassLoader)): New method.
3027 (trySomeGetBundle): Added `loader' argument.
3028 (partialGetBundle): Likewise.
3030 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3031 maximumFractionDigits, maximumIntegerDigits,
3032 minimumFractionDigits, minimumIntegerDigits): Now
3035 * java/lang/Thread.java (checkAccess): Now final.
3037 * java/lang/RuntimePermission.java: Class now final.
3039 * java/io/StringWriter.java (StringWriter(int)): Now public.
3041 * java/io/SerializablePermission.java (legal_names): Now private.
3043 * java/lang/Character.java: Updated UnicodeBlock constants.
3044 * scripts/blocks.pl: Special case private use and surrogate
3047 2000-12-12 Tom Tromey <tromey@redhat.com>
3049 * Makefile.in: Rebuilt.
3050 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3052 (GCJCOMPILE): Use it.
3055 2000-12-11 Tom Tromey <tromey@redhat.com>
3057 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3058 New static final fields.
3060 * scripts/classes.pl (scan): Skip lines with leading `*'.
3061 Fix for PR libgcj/378.
3063 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3065 * configure.in: Remove check for -fuse-divide-subroutine.
3066 * configure: Rebuilt.
3068 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3070 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3072 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3074 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3075 Remove BasicMapEntry.java and Bucket.java.
3076 * Makefile.in: Rebuilt.
3077 * java/util/HashMap.java: Rewritten.
3078 * java/util/HashSet.java: Imported from classpath.
3079 * java/util/WeakHashMap.java: Imported from classpath.
3080 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3081 * java/util/Bucket.java: Deleted.
3082 * java/util/BasicMapEntry.java: Deleted.
3083 * java/util/Collections.java (search): Use a for-loop, not iterator
3085 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3086 of elements in source.
3087 (max): Use a for-loop.
3089 (reverse): Keep track of positions instead of using Iterator's
3090 nextIndex() and previousIndex().
3091 (shuffle(List)): Initialize defaultRandom if required using
3092 double-check thread safety idiom. Call two-argument shuffle method
3093 using defaultRandom.
3094 (defaultRandom): New field.
3095 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3096 using previousIndex() and nextIndex().
3097 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3098 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3099 * java/util/AbstractMap.java (toString): Use StringBuffer.
3100 * java/lang/ref/PhantomReference.java: Imported from classpath.
3101 * java/lang/ref/SoftReference.java: Ditto.
3102 * java/lang/ref/Reference.java: Ditto.
3103 * java/lang/ref/WeakReference.java: Ditto.
3104 * java/lang/ref/ReferenceQueue.java: Ditto.
3106 2000-12-10 Richard Henderson <rth@redhat.com>
3108 * configure.host: Recognize alpha*-*, not alphaev6-*.
3110 2000-12-09 Anthony Green <green@redhat.com>
3112 * configure.host: Enable interpreter for Alpha.
3114 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3116 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3117 (ZIP): Points at fastjar instead of zip.
3118 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3119 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3120 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3121 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3122 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3123 ($(x_java_source_files:.java=.class):): Likewise.
3124 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3126 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3127 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3128 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3129 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3130 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3131 gnu/gcj/runtime/VMClassLoader.h:,
3132 java/io/ObjectInputStream$$GetField.h:,
3133 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3134 (Makefile.in): Rebuilt.
3136 2000-12-08 Tom Tromey <tromey@redhat.com>
3139 * configure: Rebuilt.
3140 * configure.in: Use echo, not `:', to create .d files.
3142 2000-12-08 Warren Levy <warrenl@redhat.com>
3144 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3145 NullPointerException so proper check of offset can be done.
3147 2000-12-08 Warren Levy <warrenl@redhat.com>
3149 * java/io/FileInputStream.java (close): Check if the fd is valid.
3150 * java/io/RandomAccessFile.java (close): Ditto.
3151 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3152 * java/net/PlainSocketImpl.java (close): Ditto.
3154 2000-12-06 Tom Tromey <tromey@redhat.com>
3156 * java/awt/GridBagConstraints.java: Filled in values for static
3159 * java/util/BitSet.java: Updated copyright notice.
3161 * Makefile.in: Rebuilt.
3162 * Makefile.am (awt_java_source_files): Added new file.
3163 * java/awt/GridBagConstraints.java: New file.
3165 2000-12-05 Tom Tromey <tromey@redhat.com>
3167 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3168 Now package-private, not protected.
3169 * java/text/DateFormatSymbols.java (equals): Now private.
3170 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3171 * java/util/BitSet.java: Class no longer final.
3173 2000-12-04 Warren Levy <warrenl@redhat.com>
3175 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3176 out code dependent on compiler and library changes.
3178 2000-12-04 Warren Levy <warrenl@redhat.com>
3180 * java/io/FilePermission.java: Made class final per spec.
3181 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3182 method name to match spec (fixed typo).
3183 * java/util/LinkedList.java: Implements List.
3185 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3187 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3188 Edgar Villanueva <edgarvil@home.com>.
3190 2000-12-03 Tom Tromey <tromey@redhat.com>
3192 * java/awt/geom/Point2D.java: Added protected constructor.
3193 (equals): New method.
3194 (Float.setLocation(float,float)): New method.
3195 * java/awt/geom/Dimension2D.java: Added protected constructor.
3196 * java/awt/geom/AffineTransform.java: Made all constants public.
3197 (concatenate): Fixed typo in name.
3198 * java/awt/event/WindowAdapter.java: Class now abstract.
3199 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3200 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3203 * java/awt/AWTError.java: Extend Error, not
3204 IllegalStateException.
3206 * Makefile.in: Rebuilt.
3207 * Makefile.am (awt_java_source_files): Added new file.
3208 * java/awt/geom/RoundRectangle2D.java: New file.
3210 * Makefile.in: Rebuilt.
3211 * Makefile.am (awt_java_source_files): Added new file.
3212 * java/awt/FlowLayout.java: New file.
3214 * Makefile.in: Rebuilt.
3215 * Makefile.am (awt_java_source_files): Added new file.
3216 * java/awt/GridLayout.java: New file.
3218 2000-12-02 Tom Tromey <tromey@redhat.com>
3220 * Makefile.in: Rebuilt.
3221 * Makefile.am (awt_java_source_files): Added new files.
3222 * java/awt/CardLayout.java: New file.
3223 * java/awt/AWTPermission.java: New file.
3225 2000-12-01 Tom Tromey <tromey@redhat.com>
3227 * java/util/Vector.java (insertElementAt): Unconditionally
3228 increment elementCount.
3229 (removeRange): Clear unused slots in vector.
3231 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3233 * java/lang/natMath.cc: Declare fabsf() function.
3234 * java/lang/mprec.h: Don't include math.h.
3235 * java/lang/dtoa.c: Include string.h.
3236 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3239 From Adam Welc <welc@cs.purdue.edu>:
3240 * java/util/LinkedList.java (removeFirst): Update `first' field.
3241 Handle the last == first case.
3242 (removeLast): Update `last' field. Handle the last == first case.
3244 2000-12-01 Warren Levy <warrenl@cygnus.com>
3246 * Makefile.am: Added entries for new java.sql modules.
3247 * Makefile.in: Rebuilt.
3249 2000-12-01 Warren Levy <warrenl@cygnus.com>
3251 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3252 that aren't quite 1.2 compatible yet.
3254 2000-11-30 Warren Levy <warrenl@cygnus.com>
3256 * java/sql/Array.java: New file from classpath.
3257 * java/sql/BatchUpdateException.java: Ditto.
3258 * java/sql/Blob.java: Ditto.
3259 * java/sql/Clob.java: Ditto.
3260 * java/sql/Ref.java: Ditto.
3261 * java/sql/SQLData.java: Ditto.
3262 * java/sql/SQLInput.java: Ditto.
3263 * java/sql/SQLOutput.java: Ditto.
3264 * java/sql/Struct.java: Ditto.
3265 * java/sql/CallableStatement.java: Merged file from claspath.
3266 * java/sql/Connection.java: Ditto.
3267 * java/sql/DataTruncation.java: Ditto.
3268 * java/sql/DatabaseMetaData.java: Ditto.
3269 * java/sql/DriverManager.java: Ditto.
3270 * java/sql/PreparedStatement.java: Ditto.
3271 * java/sql/ResultSet.java: Ditto.
3272 * java/sql/ResultSetMetaData.java: Ditto.
3273 * java/sql/SQLException.java: Ditto.
3274 * java/sql/SQLWarning.java: Ditto.
3275 * java/sql/Statement.java: Ditto.
3276 * java/sql/Types.java: Ditto.
3278 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3280 * java/lang/natSystem.cc (init_properties): Set user.language and
3282 * configure.in: Check for setlocale.
3283 * configure: Rebuilt.
3284 * include/config.h.in: Rebuilt.
3286 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3287 the infate() call didn't deliver any output. Throw a ZipException if
3288 the needsDictionary() call returns true.
3289 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3290 * java/io/InputStreamReader: Use the default buffer size for the
3291 contained BufferedInputStream.
3293 2000-11-28 Warren Levy <warrenl@cygnus.com>
3295 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3296 more time zone entries.
3297 * java/text/SimpleDateFormat.java (format): Added case for
3300 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3302 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3303 directly rather than read() in all cases. Make primitive read
3304 implementations more efficient, as defined in JDK online docs.
3305 (skipBytes): Behave like the JDK's implementation.
3306 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3307 closed stream with checkStatus() whenever an IOException can be
3309 (checkStatus): New private method.
3311 2000-11-27 Warren Levy <warrenl@cygnus.com>
3313 * Makefile.am: Added natTimeZone.cc.
3314 * Makefile.in: Rebuilt.
3315 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3316 * java/text/DateFormatSymbols.java (ampms): Made package private.
3317 (eras): Made package private.
3318 (months): Made package private.
3319 (shortMonths): Made package private.
3320 (shortWeekdays): Made package private.
3321 (weekdays): Made package private.
3322 (formatPrefixes): New private field.
3323 (localPatternCharsDefault): Made private.
3324 (dateFormats): New package private field.
3325 (timeFormats): New package private field.
3326 (formatsForKey): New private method.
3327 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3328 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3329 * java/text/SimpleDateFormat.java: Merged with Classpath.
3330 * java/util/TimeZone.java: Merged with Classpath.
3331 * java/util/natTimeZone.cc: New file.
3333 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3335 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3336 (addElement): Don't increment elementCount twice. Doh.
3337 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3338 array needs to be expanded.
3340 * java/util/Collections.java (UnmodifiableCollection): Implement
3342 (UnmodifiableList): Throw UnsupportedOperationException from
3343 modification methods. Set `l' from the one-parameter constructor.
3344 (UnmodifiableMap): Implement toString().
3345 (SynchronizedCollection): Ditto.
3346 (SynchronizedList): Set `l' from the one-parameter constructor.
3347 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3348 (SynchronizedMap): Implement toString().
3350 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3352 * javax/naming/NameParser.java,
3353 javax/naming/directory/AttributeInUseException.java,
3354 javax/naming/directory/AttributeModificationException.java,
3355 javax/naming/directory/InvalidAttributeIdentifierException.java,
3356 javax/naming/directory/InvalidAttributesException.java,
3357 javax/naming/directory/InvalidAttributeValueException.java,
3358 javax/naming/directory/InvalidSearchControlsException.java,
3359 javax/naming/directory/InvalidSearchFilterException.java,
3360 javax/naming/directory/NoSuchAttributeException.java,
3361 javax/naming/directory/SchemaViolationException.java: New files.
3363 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3365 * javax/naming/InitialContext.java (rebind): Implement.
3366 (unbind): Implement.
3367 (rename): Implement.
3369 (listBindings): Implement.
3370 (destroySubcontext): Implement.
3371 (createSubcontext): Implement.
3372 (lookupLink): Implement.
3373 (getNameParser): Implement.
3374 (composeName): Implement.
3375 (addToEnvironment): Implement.
3377 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3379 * javax/naming/AuthenticationException.java,
3380 javax/naming/AuthenticationNotSupportedException.java,
3381 javax/naming/CannotProceedException.java,
3382 javax/naming/CommunicationException.java,
3383 javax/naming/ConfigurationException.java,
3384 javax/naming/ContextNotEmptyException.java,
3385 javax/naming/InsufficientResourcesException.java,
3386 javax/naming/InterruptedNamingException.java,
3387 javax/naming/InvalidNameException.java,
3388 javax/naming/LimitExceededException.java,
3389 javax/naming/LinkException.java,
3390 javax/naming/LinkLoopException.java,
3391 javax/naming/MalformedLinkException.java,
3392 javax/naming/NameAlreadyBoundException.java,
3393 javax/naming/NameNotFoundException.java,
3394 javax/naming/NamingSecurityException.java,
3395 javax/naming/NoPermissionException.java,
3396 javax/naming/NotContextException.java,
3397 javax/naming/PartialResultException.java,
3398 javax/naming/ReferralException.java,
3399 javax/naming/ServiceUnavailableException.java,
3400 javax/naming/SizeLimitExceededException.java,
3401 javax/naming/TimeLimitExceededException.java: New files.
3403 * javax/naming/Name.java (clone): New method.
3404 (compareTo): New method.
3405 (isEmpty): New method.
3406 (getAll): New method.
3407 (getPrefix): New method.
3408 (getSuffix): New method.
3409 (startsWith): New method.
3410 (endsWith): New method.
3411 (addAll): New method.
3412 (addAll): New method.
3415 (remove): New method.
3417 * javax/naming/Context.java (lookup): New method.
3418 (rebind): New method.
3419 (unbind): New method.
3420 (rename): New method.
3422 (listBindings): New method.
3423 (destroySubcontext): New method.
3424 (createSubcontext): New method.
3425 (lookupLink): New method.
3426 (getNameParser): New method.
3427 (composeName): New method.
3428 (addToEnvironment): New method.
3429 (removeFromEnvironment): New method.
3430 (getEnvironment): New method.
3431 (close): New method.
3432 (getNameInNamespace): New method.
3434 * javax/naming/InitialContext.java (lookup): New method.
3435 (rebind): New method.
3436 (unbind): New method.
3437 (rename): New method.
3439 (listBindings): New method.
3440 (destroySubcontext): New method.
3441 (createSubcontext): New method.
3442 (lookupLink): New method.
3443 (getNameParser): New method.
3444 (composeName): New method.
3445 (addToEnvironment): New method.
3446 (removeFromEnvironment): New method.
3447 (getEnvironment): New method.
3448 (close): New method.
3449 (getNameInNamespace): New method.
3451 2000-11-26 Tom Tromey <tromey@cygnus.com>
3453 * Makefile.in: Rebuilt.
3454 * Makefile.am (core_java_source_files): Added
3455 RuntimePermission.java.
3456 * java/lang/RuntimePermission.java: Imported from Classpath.
3457 * java/lang/Thread.java (getContextClassLoader): Now
3458 synchronized. Added security code.
3459 (setContextClassLoader): Likewise.
3461 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3462 length field of array.
3463 (_Jv_NewPrimArray): Likewise.
3464 * gcj/array.h (__JArray): `length' field now const. Added
3467 2000-11-26 Anthony Green <green@redhat.com>
3469 * javax/naming/spi/NamingManager.java,
3470 javax/naming/spi/ObjectFactory.java,
3471 javax/naming/spi/InitialContextFactory.java,
3472 javax/naming/spi/InitialContextFactoryBuilder.java,
3473 javax/naming/RefAddr.java, javax/naming/Reference.java,
3474 javax/naming/NamingException.java, javax/naming/Context.java,
3475 javax/naming/Referenceable.java,
3476 javax/naming/directory/InitialDirContext.java,
3477 javax/naming/directory/DirContext.java,
3478 javax/naming/directory/Attributes.java,
3479 javax/naming/directory/Attribute.java,
3480 javax/naming/StringRefAddr.java,
3481 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3482 javax/naming/InitialContext.java,
3483 javax/naming/NoInitialContextException.java: New files.
3485 2000-11-25 Anthony Green <green@redhat.com>
3487 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3488 (_Jv_NewPrimArray): Likewise.
3489 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3490 (class JArray): Removed constructor.
3492 * java/lang/Thread.java (context_class_loader): New private data.
3493 (getContextClassLoader): New method.
3494 (setContextClassLoader): New method.
3495 (Thread): Initialize context_class_loader.
3497 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3498 (getResource): Rename to findResource.
3499 (findResource): New method. Used to be getResource.
3500 (getResourceAsStream): Deleted.
3501 (jarFileize): Extracted logic from URLClassLoader constructor into
3502 this new private method.
3503 (addURL): New protected method.
3504 (URLClassLoader): Call jarFileize. Use addElement instead of
3506 (findResources): New method.
3508 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3509 (getResource): Implement correct logic.
3510 (findResource): New method.
3511 (getResources): New method.
3512 (findClass): Create a ClassNotFoundException with the name of the
3513 class rather than nothing at all.
3514 (defineClass) Only throw ClassFormatError.
3516 * java/lang/Class.java (forName): New method.
3517 * java/lang/Class.h (forName): New method.
3518 * java/lang/natClass.cc (forName): New method.
3520 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3522 * java/lang/System.java (setProperties): Only call init_properties()
3523 if properties is null.
3524 (getProperties): Ditto.
3525 (getProperty): Ditto.
3526 (setProperty): Call init_properties if properties are null.
3527 (prop_init): Remove field.
3528 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3529 method. Check for null properties after synchronizing instead of
3530 prop_init flag. Set the properties field last for thread safety.
3532 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3533 test for gcj.dumpobjects property and enable object stream dumping
3535 (dumpElement): No longer native.
3536 (dumpElementln): Ditto.
3537 (setDump): Do not define.
3538 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3539 (dumpElementln): Removed.
3542 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3544 * configure: Rebuilt.
3545 * Makefile.in: Rebuilt.
3546 * Makefile.am (built_java_source_files): Add Configuration.java.
3547 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3548 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3549 Create `gnu' directory in the build tree.
3550 * gnu/classpath/Configuration.java.in: New file.
3552 2000-11-24 Tom Tromey <tromey@cygnus.com>
3554 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3556 (_Jv_NewPrimArray): Likewise.
3558 * gcj/array.h (__JArray): `length' field now const. Added
3560 (class JArray): Added constructor.
3562 2000-11-23 Mark Wielaard <mark@klomp.org>
3564 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3567 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3569 * java/util/Vector.java: Improve exception messages.
3570 (Vector): Check initialCapacity for IllegalArgumentException.
3571 (tromToSize): Don't check for elementCount == elementData.length
3573 (toArray): Don't try to set null marker if target array is the same
3574 length as the vector.
3576 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3578 * Makefile.in: Rebuilt.
3579 * Makefile.am (core_java_source_files): Added Collections.java.
3580 * java/util/List.java: Merged from classpath.
3581 * java/util/Vector.java: Ditto.
3582 * java/util/Collections.java: From classpath.
3583 * java/util/ArrayList.java (addAll(Collection)): Call
3584 addAll(int,Collection) instead of duplicating code.
3585 (indexOf): Clean up int initialization.
3586 (clear): Set cleared array entries to null, to allow garbage
3588 * java/util/List.java: Minor formatting fixes.
3589 * java/util/SimpleTimeZone.java: ditto.
3591 2000-11-18 Tom Tromey <tromey@cygnus.com>
3593 * Makefile.in: Rebuilt.
3594 * Makefile.am (core_java_source_files): Added new files.
3595 * java/lang/reflect/ReflectPermission.java: New class.
3596 * java/io/FileFilter.java: From Classpath
3597 * java/io/FilePermission.java: From Classpath.
3599 2000-11-17 Tom Tromey <tromey@cygnus.com>
3601 * java/lang/reflect/AccessibleObject.java (isAccessible,
3602 setAccessible): Now public.
3604 * java/lang/natString.cc: Include Locale.h.
3605 (toUpperCase): Added `locale' argument. Handle locale
3607 (toLowerCase): Added `locale' argument. Handle locale
3609 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3610 CAPITAL_I): New defines.
3611 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3614 (toUpperCase, toLowerCase): New methods. Variants which accept
3617 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3620 * java/util/PropertyPermission.java: Re-merged from Classpath.
3622 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3624 * java/text/StringCharacterIterator.java: Reindented.
3625 (setText): New method.
3627 2000-11-17 Mark Wielaard <mark@klomp.org>
3629 Merge with Classpath (changes by Bryce McKinlay)
3630 * java/util/jar/*.java: Reformat all to unofficial standard coding
3631 style. No changes of substance.
3633 2000-11-17 Mark Wielaard <mark@klomp.org>
3635 * java/util/zip/*.java: Javadoc updates.
3637 2000-11-17 Tom Tromey <tromey@cygnus.com>
3639 * java/text/CollationKey.java: Implement Comparable.
3640 (compareTo(Object)): New method.
3641 * java/text/Collator.java (compare(Object,Object)): New method.
3642 Implement Comparator.
3644 * java/util/zip/InflaterInputStream.java (available): New method.
3645 (close): New method.
3646 (read, available, skip, fill): Throw exception if stream closed.
3647 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3648 getNextEntry): Throw exception if closed.
3650 2000-11-16 Tom Tromey <tromey@cygnus.com>
3652 * java/io/PushbackReader.java: Merged with Classpath.
3653 * java/util/Arrays.java: Updated from Classpath.
3655 * scripts/blocks.pl: New file.
3656 * java/lang/Character.java (Subset): New class.
3657 (UnicodeBlock): New class.
3659 * java/lang/Math.java (toDegrees, toRadians): New methods.
3661 * java/lang/Float.java: Implement Comparable.
3662 (compareTo): New methods.
3663 * java/lang/Double.java: Implement Comparable.
3664 (compareTo): New methods.
3666 2000-11-16 Warren Levy <warrenl@cygnus.com>
3668 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3670 (listeners): Made transient.
3671 (source): Renamed from 'bean'.
3672 (children): New field for serialization.
3673 (propertyChangeSupportSerializedDataVersion): Ditto.
3674 (serialVersionUID): Ditto.
3675 (writeObject): New serialization method.
3676 (readObject): New serialization method.
3677 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3679 (listeners): Made transient.
3680 (source): Renamed from 'bean'.
3681 (children): New field for serialization.
3682 (vetoableChangeSupportSerializedDataVersion): Ditto.
3683 (serialVersionUID): Ditto.
3684 (writeObject): New serialization method.
3685 (readObject): New serialization method.
3686 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3687 to allow constructor to have a return type (i.e. the class that the
3688 constructor constructs).
3690 2000-11-14 Tom Tromey <tromey@cygnus.com>
3692 * Makefile.in: Rebuilt.
3693 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3696 2000-11-02 Warren Levy <warrenl@cygnus.com>
3698 * java/io/ObjectInputStream.java (readObject): Added code to
3699 conditionally dump out the serialized data.
3700 Handle ENDBLOCKDATA case a bit more gracefully since the current
3701 behavior doesn't seem to work as expected.
3702 (readStreamHeader): Added code for serialized data dumper.
3703 (readNextBlock): Ditto.
3704 (readFields): Ditto.
3705 (dump): New private static field for turning on/off dumper.
3706 (setDump): New native method.
3707 (dumpElement): New native method.
3708 (dumpElementln): New native method.
3709 * java/io/natObjectInputStream.cc (setDump): New method.
3710 (dumpElement): New method.
3711 (dumpElementln): New method.
3713 2000-11-02 Warren Levy <warrenl@cygnus.com>
3715 * java/net/InetAddress.java (addr): Renamed from 'address'.
3716 (address): New field to match Serialized Form doc.
3717 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3718 (family): New serialization field.
3719 (serialVersionUID): New field.
3720 (readObject): New method.
3721 (writeObject): New method.
3722 (getFamily): New native method.
3723 (InetAddress): Set family.
3724 * java/net/natInetAddress.cc (getFamily): New method.
3725 (addr): Renamed from 'address'.
3726 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3727 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3728 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3730 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3732 * java/util/AbstractList.java (SubList): Make it a top-level private
3734 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3736 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3737 * Makefile.in: Rebuilt.
3739 2000-11-02 Tom Tromey <tromey@cygnus.com>
3741 * Makefile.in: Rebuilt.
3742 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3745 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3747 * java/util/AbstractList.java (remove): Comment out modCount increment
3748 to work around compiler bug.
3751 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3753 * java/util/AbstractList.java: Throw messages with
3754 IndexOutOfBoundsExceptions.
3755 (listIterator()): Call listIterator(0).
3756 (size): New field. Initialize to size().
3757 (hasNext): Test position against size, not size().
3758 (remove): Increment knownMod by one instead of resetting it from
3761 (SubList.upMod): Removed.
3762 (SubList.set): Don't call upMod() or update knownMod.
3763 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3764 (SubList.remove): Ditto.
3765 (SubList.addAll): Don't call backingList.size(). Increment size from
3767 (SubList.iterator): New method. Call listIterator(0).
3768 (SubList.listIterator): New method. Restore code to return an anonymous
3769 listIterator implementation (with some changes).
3770 * java/util/AbstractSequentialList.java: Throw messages with
3771 IndexOutOfBoundsExceptions.
3772 (addAll): Add a specnote.
3773 * java/util/ArrayList.java (removeRange): Get the math right.
3774 (addAll): Increment modCount _before_ creating iterator.
3775 * java/util/LinkedList.java: Rewritten, mostly.
3777 2000-11-01 Tom Tromey <tromey@cygnus.com>
3779 * scripts/encodings.pl: Added `ASCII' alias.
3780 * Makefile.in: Rebuilt.
3781 * Makefile.am (convert_source_files): Added new files.
3782 * gnu/gcj/convert/Input_ASCII.java: New file.
3783 * gnu/gcj/convert/Output_ASCII.java: New file.
3784 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3785 out-of-range characters.
3786 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3787 (read): Swap bytes if required. Treat `count' as character count,
3789 (write): Likewise. Also, handle case where iconv fails on a given
3791 (init): Put encoding into exception.
3792 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3793 (static): Call iconv_init. Rebuilt alias list.
3794 (iconv_init): New private method.
3796 2000-11-01 Tom Tromey <tromey@cygnus.com>
3798 * Makefile.in: Rebuilt.
3799 * Makefile.am (install-exec-hook): Only make a single symlink, and
3800 remove the destination before making the link.
3801 * configure: Rebuilt.
3802 * configure.in: Call AC_PROG_LN_S.
3804 2000-10-31 Warren Levy <warrenl@cygnus.com>
3806 * jni.cc: Added include of java/lang/ThreadGroup.h.
3807 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3808 per change of 2000-10-05.
3810 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3812 * java/util/BitSet.java: Updated @specnote.
3814 * java/io/Reader.java: Merge docs from classpath.
3815 (skip): Synchronize on `lock'.
3816 * java/io/FileReader.java: Import correct implementation from
3818 * java/io/StringReader.java: Merge docs from classpath.
3819 (ready): Throw IOException if stream is closed.
3821 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3823 * java/util/AbstractCollection.java (addAll): Use size() instead of
3824 hasNext() in iterator loop.
3826 (contains): Ditto. Simplify loop.
3827 (containsAll): Ditto.
3832 (toString): Ditto. Use string concatenation operators, not
3834 * java/util/AbstractList.java (addAll): Use size() instead of
3835 hasNext() in iterator loop.
3838 (indexOf): Ditto. Don't take null check outside of the loop.
3839 (iterator): Return an AbstractListItr instead of anonymous class.
3840 (lastIndexOf): Use a for loop bounded by size() instead of
3841 hasPrevious() in iterator loop.
3842 (listIterator): Return an AbstractListItr.
3843 (removeRange): Remove bounds checking code and docs.
3844 (AbstractListItr): New inner class. Code moved here from
3846 (SubList.iterator): Removed. Use default implementation from
3847 AbstractList instead.
3848 (SubList.listIterator): As above.
3849 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3850 instead of hasNext() in iterator loop.
3851 (containsValue): Ditto.
3857 (toString): Ditto. Use string concatenation operators, not
3859 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3860 bounded by size() instead of hasNext() in iterator loop.
3861 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3862 part of normal execution flow. Do an explicit null check instead.
3863 * java/util/ArrayList.java (_iSize): Rename to `size'.
3864 (_arData): Rename to `data'.
3865 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3868 (removeRange): Make protected. Don't check bounds.
3869 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3871 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3873 (addAll (int, Collection)): Check lower bounds. Simplify exception
3875 (clone): Clone the data array too.
3876 (indexOf): Inline doesEqual().
3877 (lastIndexOf): Ditto.
3878 (clear): Don't set array data to null.
3879 (set): Check lower bounds. Simplify exception string.
3880 (toArray): Correct comment.
3881 (trimToSize): Don't update modCount, this is not a structural change.
3884 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3886 (toString): Declare `bit' as long, not int.
3887 (data): Made package-private, not private.
3889 2000-10-27 Warren Levy <warrenl@cygnus.com>
3891 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3892 array elements to true.
3894 2000-10-27 Warren Levy <warrenl@cygnus.com>
3896 * Makefile.am: Added locale files from Classpath.
3897 * Makefile.in: Rebuilt.
3898 * gnu/java/locale/Calendar.java: New file.
3899 * gnu/java/locale/Calendar_de.java: New file.
3900 * gnu/java/locale/Calendar_en.java: New file.
3901 * gnu/java/locale/Calendar_nl.java: New file.
3902 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3903 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3904 serialization compatibility.
3905 (scale): Made private.
3906 (serialVersionUID): New field.
3907 * java/math/BigInteger.java (ival): Made transient.
3908 (words): Made transient.
3909 (bitCount): New serialization field.
3911 (firstNonzeroByteNum): Ditto.
3912 (lowestSetBit): Ditto.
3915 (serialVersionUID): New field.
3916 (readObject): New method.
3917 (writeObject): New method.
3918 * java/util/BitSet.java (serialVersionUID): New field.
3919 * java/util/Calendar.java: Replaced with Classpath file.
3920 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3921 of getDefault() for TimeZone or Locale instead of passing nulls.
3922 * java/util/Locale.java (serialVersionUID): New field.
3923 (writeObject): New method.
3924 (readObject): New method.
3925 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3927 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3929 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3930 (core_java_source_files): Put java.lang, java.io, and java.util here.
3931 (ordinary_java_source_files): Order so that core_java_source_files are
3933 (java_source_files): Reorder so that special_java_source_files are
3935 * configure.in: Don't pass -I flag to gcj.
3936 * Makefile.in: Rebuilt.
3937 * configure: Rebuilt.
3939 2000-10-25 Tom Tromey <tromey@cygnus.com>
3941 * Makefile.in: Rebuilt.
3942 * Makefile.am (install-exec-hook): New target.
3944 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3946 * java/util/EventObject.java: Merged from classpath.
3948 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3951 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3953 * java/util/AbstractSet.java (equals): Re-installed original code.
3955 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3957 * Makefile.am: Added rules for libgcjx library.
3958 * Makefile.in: Rebuilt.
3959 * configure.in: Added check for X.
3960 * configure: Rebuilt.
3961 * gnu/awt/LightweightRedirector.java: New file.
3962 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3963 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3964 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3965 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3966 * gnu/awt/j2d/MappedRaster.java: New file.
3967 * gnu/awt/xlib/XCanvasPeer.java: New file.
3968 * gnu/awt/xlib/XEventLoop.java: New file.
3969 * gnu/awt/xlib/XEventQueue.java: New file.
3970 * gnu/awt/xlib/XFontMetrics.java: New file.
3971 * gnu/awt/xlib/XFramePeer.java: New file.
3972 * gnu/awt/xlib/XGraphics.java: New file.
3973 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3974 * gnu/awt/xlib/XPanelPeer.java: New file.
3975 * gnu/awt/xlib/XToolkit.java: New file.
3976 * gnu/gcj/xlib/Clip.java: New file.
3977 * gnu/gcj/xlib/Colormap.java: New file.
3978 * gnu/gcj/xlib/Display.java: New file.
3979 * gnu/gcj/xlib/Drawable.java: New file.
3980 * gnu/gcj/xlib/Font.java: New file.
3981 * gnu/gcj/xlib/GC.java: New file.
3982 * gnu/gcj/xlib/Pixmap.java: New file.
3983 * gnu/gcj/xlib/Screen.java: New file.
3984 * gnu/gcj/xlib/Visual.java: New file.
3985 * gnu/gcj/xlib/WMSizeHints.java: New file.
3986 * gnu/gcj/xlib/Window.java: New file.
3987 * gnu/gcj/xlib/WindowAttributes.java: New file.
3988 * gnu/gcj/xlib/XAnyEvent.java: New file.
3989 * gnu/gcj/xlib/XButtonEvent.java: New file.
3990 * gnu/gcj/xlib/XColor.java: New file.
3991 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3992 * gnu/gcj/xlib/XConnectException.java: New file.
3993 * gnu/gcj/xlib/XEvent.java: New file.
3994 * gnu/gcj/xlib/XException.java: New file.
3995 * gnu/gcj/xlib/XExposeEvent.java: New file.
3996 * gnu/gcj/xlib/XID.java: New file.
3997 * gnu/gcj/xlib/XImage.java: New file.
3998 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3999 * gnu/gcj/xlib/natClip.cc: New file.
4000 * gnu/gcj/xlib/natColormap.cc: New file.
4001 * gnu/gcj/xlib/natDisplay.cc: New file.
4002 * gnu/gcj/xlib/natDrawable.cc: New file.
4003 * gnu/gcj/xlib/natFont.cc: New file.
4004 * gnu/gcj/xlib/natGC.cc: New file.
4005 * gnu/gcj/xlib/natPixmap.cc: New file.
4006 * gnu/gcj/xlib/natScreen.cc: New file.
4007 * gnu/gcj/xlib/natVisual.cc: New file.
4008 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4009 * gnu/gcj/xlib/natWindow.cc: New file.
4010 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4011 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4012 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4013 * gnu/gcj/xlib/natXColor.cc: New file.
4014 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4015 * gnu/gcj/xlib/natXException.cc: New file.
4016 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4017 * gnu/gcj/xlib/natXImage.cc: New file.
4018 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4019 * java/awt/EventDispatchThread.java: Start thead on creation.
4021 2000-10-20 Tom Tromey <tromey@cygnus.com>
4023 From Arno J. Klaassen:
4024 * interpret.cc: Include <stdlib.h> for alloca.
4025 * defineclass.cc: Include <stdlib.h> for alloca.
4027 * Makefile.in: Rebuilt.
4028 * Makefile.am: Include deps.mk.
4029 (GCJCOMPILE): Added -MD, -MT, and -MF.
4030 ($(javao_files)): Don't depend on libgcj.zip.
4031 (all-recursive): New target.
4032 (%.lo:%.cc): Do dependency tracking.
4033 ($(nat_headers)): Don't depend on libgcj.zip.
4034 * configure: Rebuilt.
4035 * configure.in: Make .d files and deps.mk.
4037 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4039 * exception.cc: Don't #include "exception".
4040 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4042 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4043 * Makefile.in: Updated.
4045 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4047 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4048 * java/awt/peer/ComponentPeer.java (disable): Removed.
4051 (minimumSize): Removed.
4052 (preferredSize): Removed.
4055 * java/awt/peer/ListPeer.java (addItem): Removed.
4057 (minimumSize): Removed.
4058 (preferredSize): Removed.
4059 (setMultipleSelections): Removed.
4060 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4061 (remove): Renamed from removeMenu.
4062 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4064 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4065 (remove): Renamed from removeItem.
4066 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4067 (getMinimumSize): Removed.
4068 (getPreferredSize): Removed.
4069 (minimumSize): Removed.
4070 (preferredSize): Removed.
4071 (replaceText): Removed.
4072 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4073 (preferredSize): Removed.
4074 (getMinimumSize): Removed.
4075 (getPreferredSize): Removed.
4076 (setEchoCharacter): Removed.
4078 2000-10-10 Warren Levy <warrenl@cygnus.com>
4080 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4081 * java/sql/Date.java (serialVersionUID): New field.
4082 * java/sql/Time.java (serialVersionUID): New field.
4083 * java/sql/Timestamp.java (serialVersionUID): New field.
4084 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4085 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4086 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4087 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4088 (readObject): New serialization method.
4089 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4090 (serialVersionOnStream): New field.
4091 (readObject): New serialization method.
4092 (getMonetaryDecimalSeparator): New method.
4093 (setMonetaryDecimalSeparator): New method.
4094 * java/text/NumberFormat.java (maxFractionDigits): New field.
4095 (maxIntegerDigits): New field.
4096 (minFractionDigits): New field.
4097 (minIntegerDigits): New field.
4098 (serialVersionOnStream): New field.
4099 (serialVersionUID): New field.
4100 (readObject): New serialization method.
4101 (writeObject): New serialization method.
4102 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4103 (serialVersionOnStream): New field.
4104 (serialVersionUID): New field.
4105 (readObject): New serialization method.
4107 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4109 * configure.in (GCJ): Avoid bogus error message when looking for
4110 (and not finding) gcj in the build tree.
4111 * configure: Rebuilt.
4113 2000-10-09 Tom Tromey <tromey@cygnus.com>
4115 * configure: Rebuilt.
4116 * configure.in: Include sys/types.h when checking for socklen_t.
4117 From Arno J. Klaassen.
4119 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4121 * include/jvm.h: Enable __builtin_expect().
4123 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4124 the main program. Fix for PR libgcj/341.
4126 2000-10-07 Tom Tromey <tromey@cygnus.com>
4128 * java/util/Properties.java: Merged with Classpath version.
4130 2000-10-05 Tom Tromey <tromey@cygnus.com>
4132 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4133 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4134 * java/lang/Class.h (Object): Added `class$' field.
4135 * java/lang/Object.h (Object): Added `class$' field.
4136 * defineclass.cc (ClassClass): Use `class$' form.
4137 (ClassObject): Likewise.
4138 * resolve.cc (ClassObject): Use `class$' form.
4139 (ObjectClass): Likewise.
4140 * interpret.cc (ClassError): Removed.
4141 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4143 (IntegerClass): Likewise.
4144 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4146 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4147 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4148 SerializableClass): Likewise.
4149 Include Serializable.h, Cloneable.h.
4150 * java/lang/natSystem.cc (SystemClass): Removed.
4151 (init_properties): Use `class$' form.
4152 * java/lang/natObject.cc (CloneableClass): Removed.
4153 (clone): Use `class$' form.
4154 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4155 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4156 ConstructorClass): Likewise.
4157 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4158 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4159 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4160 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4162 (ClassClass): Likewise.
4163 * include/jvm.h (StringClass): Use `class$' form.
4164 * prims.cc (ObjectClass): Removed.
4165 (_Jv_RunMain): Use `class$' form.
4166 (_Jv_AllocObject): Likewise.
4167 * jni.cc (ClassClass): Use `class$' form.
4168 (ThrowableClass): Likewise.
4169 (ObjectClass): Likewise.
4170 (MethodClass): Likewise.
4171 (ThreadGroupClass): Likewise.
4172 (NativeThreadClass): Likewise.
4173 * boehm.cc (ObjectClass): Removed.
4174 (ClassClass): Removed.
4175 (_Jv_MarkObj): Use `class$' form.
4176 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4179 2000-10-05 Warren Levy <warrenl@cygnus.com>
4181 * Makefile.am: Removed java/io/Replaceable.java and
4182 java/io/Resolvable.java.
4183 * Makefile.in: Rebuilt.
4184 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4186 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4188 (processResolution): Handle readResolve method via reflection with
4189 removal of Resolvable interface.
4190 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4191 method via reflection with removal of Replaceable interface.
4192 * java/io/Replaceable.java: Removed.
4193 * java/io/Resolvable.java: Removed.
4194 * java/security/Key.java (serialVersionUID): New field.
4195 * java/security/Provider.java (serialVersionUID): New field.
4196 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4198 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4200 * java/sql/DataTruncation.java (serialVersionUID): New field.
4201 * java/sql/SQLException.java (serialVersionUID): New field.
4202 * java/sql/SQLWarning.java (serialVersionUID): New field.
4203 * java/util/Date.java (serialVersionUID): New field.
4204 (millis): Made transient.
4205 (readObject): New method.
4206 (writeObject): New method.
4208 2000-10-05 Tom Tromey <tromey@cygnus.com>
4210 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4212 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4214 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4215 (JvRunMain): Set _Jv_argv and _Jv_argc.
4216 * java/awt/Component.java: Minor fixes.
4217 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4218 * java/awt/Toolkit.java (systemEventQueue): Removed.
4219 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4220 * java/awt/Window.java (getToolkit): Don't call super.
4221 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4222 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4223 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4224 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4225 * gnu/awt/gtk/GtkFramePeer.java: New file.
4226 * gnu/awt/gtk/GtkMainThread.java: New file.
4227 * gnu/awt/gtk/GtkToolkit.java: New file.
4228 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4229 * gnu/awt/gtk/gtkcommon.cc: New file.
4230 * gnu/awt/gtk/gtkcommon.h: New file.
4231 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4232 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4233 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4234 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4235 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4236 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4238 2000-09-30 Tom Tromey <tromey@cygnus.com>
4240 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4241 interrupted before modifying the cv's wait set.
4244 2000-09-30 Hans Boehm <boehm@acm.org>
4245 Bryce McKinlay <bryce@albatross.co.nz>
4247 Implement bitmap descriptor based marking for Boehm GC.
4249 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4250 * configure: Rebuilt.
4251 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4252 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4253 method get_finalizer().
4254 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4255 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4256 (_Jv_AllocObj): Add new jclass parameter.
4257 (_Jv_AllocArray): Ditto.
4258 (_Jv_BuildGCDescr): New prototype.
4259 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4260 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4261 get_finalizer() instead of direct finalizer vtable offset.
4262 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4263 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4264 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4265 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4266 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4267 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4268 (_Jv_DetermineVTableIndex): Ditto.
4269 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4270 calculations to account for new gc_descr field.
4271 * boehm.cc: #include gc_gcj.h.
4272 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4273 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4274 New commentary from HB. Mark the classes vtable.
4275 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4276 (GC_DEFAULT_DESCR): New #define.
4277 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4278 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4279 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4280 scan conservativly if size is less than min_heap_addr. Set vtable
4281 pointer of new object before returning.
4282 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4283 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4284 allocation for obj_kind_x.
4285 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4286 (_Jv_AllocObj): Set vtable on returned object.
4287 (_Jv_AllocArray): Ditto.
4288 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4289 (_Jv_NewPrimArray): Ditto.
4290 (_Jv_AllocObj): Declare as a friend.
4291 (_Jv_AllocArray): Ditto.
4292 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4293 from &ObjectClass into new array class. Remove offset-by-one
4294 adjustments from `method' size calculations to account for gc_descr
4297 2000-09-26 Tom Tromey <tromey@cygnus.com>
4299 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4300 `remove', not `add'.
4302 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4304 * java/lang/natSystem.cc (file_encoding): Added return statement.
4306 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4308 * Makefile.am: Re-work shell commands that exceeded command-line
4310 * Makefile.in: Rebuilt.
4312 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4314 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4315 * java/lang/natDouble.cc: Likewise.
4316 * java/lang/reflect/natMethod.cc: Likewise.
4317 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4319 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4321 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4323 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4324 * acinclude.m4: Arrange for automake to not bring in a new
4325 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4326 * Makefile.am: Leave it up to automake to subst GCJ.
4327 * aclocal.m4, configure, Makefile.in: Rebuilt.
4329 2000-09-13 Tom Tromey <tromey@cygnus.com>
4331 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4332 (get): Ensure Boolean class is initialized.
4333 * java/lang/reflect/natField.cc (BooleanClass): New define.
4334 (get): Ensure Boolean class is initialized.
4336 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4338 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4339 Initialize with anonymous class.
4340 (compareToIgnoreCase): New method.
4342 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4343 (uncaughtException): Set had_uncaught_exception.
4344 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4345 exit with error status if set.
4346 (_Jv_RunMain): Ditto.
4348 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4350 * configure: Rebuilt with new ../libtool.m4.
4352 2000-09-11 Tom Tromey <tromey@cygnus.com>
4354 * java/lang/reflect/Field.java (toString): Don't rely on
4357 2000-09-08 Tom Tromey <tromey@cygnus.com>
4359 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4360 default decoder use iconv.
4361 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4362 Let default encoder use iconv.
4363 * configure: Rebuilt.
4364 * configure.in: Check for nl_langinfo and <langinfo.h>.
4365 * java/lang/natSystem.cc (file_encoding): New function.
4366 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4368 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4370 * acinclude.m4: Simplify the tests for CC and CXX.
4371 * aclocal.m4, configure: Rebuilt.
4373 * acinclude.m4: Include libtool macros from the source tree.
4374 * aclocal.m4, configure: Rebuilt.
4376 2000-09-08 Warren Levy <warrenl@cygnus.com>
4378 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4379 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4380 * java/io/File.java (writeObject): Added.
4381 (readObject): Added.
4382 (serialVersionUID): Added.
4383 * java/io/ObjectOutputStream.java (writeObject): Initialized
4384 fieldsAlreadyWritten before recursion rather than after.
4385 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4386 * java/io/OptionalDataException.java (serialVersionUID): Added.
4387 (OptionalDataException): Made package private.
4388 * java/io/SyncFailedException.java (SyncFailedException): Removed
4389 default constructor to match spec.
4390 * java/lang/Boolean.java (serialVersionUID): Added.
4391 * java/lang/Byte.java (serialVersionUID): Added.
4392 * java/lang/Character.java (serialVersionUID): Added.
4393 * java/lang/Double.java (serialVersionUID): Added.
4394 * java/lang/Float.java (serialVersionUID): Added.
4395 * java/lang/Integer.java (serialVersionUID): Added.
4396 * java/lang/Long.java (serialVersionUID): Added.
4397 * java/lang/Number.java (serialVersionUID): Added.
4398 * java/lang/Short.java (serialVersionUID): Added.
4399 * java/lang/String.java (serialVersionUID): Added.
4400 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4402 * java/lang/reflect/InvocationTargetException.java
4403 (serialVersionUID): Added.
4404 * java/net/URL.java (handler): Made transient.
4405 (hashCode): Added field for serialization, per spec. and use
4406 cached value if available.
4407 (serialVersionUID): Added.
4408 (URL): Initialize hashCode.
4409 (set): Adjust hashCode.
4410 (readObject): New Method to initialize the protocol handler when
4412 (writeObject): New method.
4413 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4414 * java/text/Collator.java: Removed 'implements Serializable'.
4415 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4416 * java/util/Properties.java (serialVersionUID): Added.
4417 * java/util/Random.java (serialVersionUID): Added.
4418 (seed): Made private.
4419 (nextNextGaussian): Made private.
4420 (haveNextNextGaussian): Made private.
4421 * java/util/Stack.java (serialVersionUID): Added.
4422 * java/util/TimeZone.java (serialVersionUID): Added.
4423 * java/util/Vector.java (serialVersionUID): Added.
4425 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4427 * Makefile.am (Thread.h): Don't be friends with native threads
4429 * Makefile.in: Rebuilt.
4430 * java/lang/Thread.java (interrupt_flag): Make package-private.
4432 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4434 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4435 to avoid long long division.
4437 2000-09-06 Tom Tromey <tromey@cygnus.com>
4439 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4441 * java/lang/reflect/Method.java (toString): Use `getName' for
4444 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4445 `args' if method takes no parameters.
4447 Fix for PR java.lang/339:
4448 * java/lang/natPosixProcess.cc (fail): New function.
4449 (cleanup): New function.
4450 (startProcess): Use them. Create pipe so child can communicate
4451 exec failure back to parent.
4453 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4455 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4457 (send): Undo last patch. Remove the label only.
4459 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4461 * java/net/natInetAdress.cc: Ditto.
4463 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4465 2000-09-05 Tom Tromey <tromey@cygnus.com>
4467 * doc/cni.sgml: Updated from master copy.
4469 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4471 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4473 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4475 * java/lang/fdlibm.h: #undef __P if previously defined.
4476 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4477 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4481 2000-09-04 Tom Tromey <tromey@cygnus.com>
4483 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4486 2000-09-04 Anthony Green <green@redhat.com>
4488 Fix for PR java.io/203:
4489 * java/io/File.java (createTempFile): Obey directory argument.
4490 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4491 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4492 variable to set java.io.tmpdir on non-WIN32 systems.
4494 2000-09-04 Anthony Green <green@redhat.com>
4496 * java/io/File.java (deleteOnExit): New method.
4497 * gnu/gcj/runtime/FileDeleter.java: New class.
4498 * java/lang/natRuntime.cc (exit): Call
4499 FileDeleter.deleteOnExitNow()
4500 * Makefile.am: Add FileDeleter.java.
4501 * Makefile.in: Rebuilt.
4503 2000-09-02 Tom Tromey <tromey@cygnus.com>
4505 * Makefile.in: Rebuilt.
4506 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4507 environment variable.
4509 2000-09-01 Andrew Haley <aph@redhat.com>
4511 * java/io/StreamTokenizer.java: Don't throw a
4512 NumberFormatException if a field is numeric as far as the
4513 StreamTokenizer is concerned but not as far as Double.valueOf() is
4514 concerned: return a zero instead.
4516 2000-08-30 Tom Tromey <tromey@cygnus.com>
4518 * Makefile.in: Rebuilt.
4519 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4521 2000-08-28 Tom Tromey <tromey@cygnus.com>
4523 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4524 gnu/gcj/awt/ComponentDataBlitOp.java,
4525 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4526 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4527 java/awt/color/ICC_ColorSpace.java,
4528 java/awt/color/ICC_Profile.java,
4529 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4530 java/awt/image/ComponentColorModel.java,
4531 java/awt/image/ComponentSampleModel.java,
4532 java/awt/image/DataBuffer.java,
4533 java/awt/image/DataBufferByte.java,
4534 java/awt/image/DataBufferInt.java,
4535 java/awt/image/DataBufferUShort.java,
4536 java/awt/image/DirectColorModel.java,
4537 java/awt/image/IndexColorModel.java,
4538 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4539 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4540 java/awt/image/SinglePixelPackedSampleModel.java,
4541 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4542 Removed Latin-1 copyright symbols.
4543 * java/util/zip/ZipFile.java: Indentation fixes.
4545 2000-08-27 Mark Wielaard <mark@klomp.org>
4547 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4548 constructor, close can delete the file, finalize calls close.
4549 * java/util/jar/JarFile.java: Constructor that takes mode now
4552 2000-08-27 Anthony Green <green@redhat.com>
4554 * java/util/ArrayList.java, java/util/Timer.java,
4555 java/util/LinkedList.java, java/util/TimerTask.java,
4556 java/util/HashMap.java, java/util/AbstractMap.java,
4557 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4558 java/util/SortedSet.java: Imported from GNU Classpath.
4559 * Makefile.in: Rebuilt.
4560 * Makefile.am: Added new files.
4562 2000-08-26 Anthony Green <green@redhat.com>
4564 * Makefile.in: Rebuilt.
4565 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4568 * prims.cc: Include ClassLoader.h.
4569 (_Jv_RunMain): When executing jar files, classpath must be the jar
4570 file only. Lose our reference to the system ClassLoader in order
4571 to get a new one with the correct classpath.
4572 * java/lang/natSystem.cc (init_properties): When executing a jar
4573 file, only use the jar file for java.class.path.
4575 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4576 for bytecode archives.
4578 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4579 exists, but not Main-Class.
4581 2000-08-23 Mark Wielaard <mark@klomp.org>
4583 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4584 return -1 when fill() has no more data for the Inflater.
4586 2000-08-23 Mark Wielaard <mark@klomp.org>
4588 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4589 write(String) already does.
4591 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4593 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4594 to `alive_flag', call `init'.
4595 (init): New native method.
4596 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4599 2000-08-21 Mark Wielaard <mark@klomp.org>
4601 * Makefile.in: Rebuilt.
4602 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4604 (java/lang/reflect/Field.h): Likewise.
4605 (java/lang/reflect/Method.h): Likewise.
4606 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4609 2000-08-21 Tom Tromey <tromey@cygnus.com>
4611 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4614 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4616 * java/lang/natSystem.cc (init_properties): Change sourceware
4617 reference to sources.redhat.com.
4619 * include/java-props.h: Add _Jv_Jar_Class_Path.
4620 * prims.cc: Ditto. Set it from `gij -jar file' option.
4622 * java/lang/natSystem.cc (init_properties): Set java.class.path
4624 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4626 * java/util/PropertyPermission.java: Import from GNU Classpath.
4627 * Makefile.in: Rebuilt.
4628 * Makefile.am: Add java/util/PropertyPermission.java.
4629 * java/lang/System.java: Add setProperty method.
4631 * gij.cc (main): Add -jar option to execute jar files.
4632 (help): Describe -jar option.
4633 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4634 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4635 * gnu/gcj/runtime/FirstThread.java (main): New method.
4637 * java/util/jar/Attributes.java: Correct comment spelling.
4639 2000-08-20 Mark Wielaard <mark@klomp.org>
4641 * java/util/zip/Adler32.java: Make private variables really private
4642 * java/util/zip/CRC32.java: Make private variables really private
4643 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4645 * java/util/zip/InflaterInputStream.java: skip() could skip to
4647 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4648 * java/util/zip/ZipFile.java: size() new 1.2 method
4649 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4650 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4653 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4655 * java/util/jar/JarFile.java: Don't call
4656 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4659 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4661 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4662 Read the entire contents of the class file, not just what is
4665 * java/net/JarURLConnection.java: getEntry doesn't take any
4666 arguments. Return null if element is null.
4668 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4669 size from the archive, not the inflated size.
4671 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4672 java.util.zip.ZipFile.getEntry.
4674 * gij.cc (help): Change sourceware reference to
4677 2000-08-19 Tom Tromey <tromey@cygnus.com>
4679 * java/util/zip/ZipInputStream.java (createZipEntry):
4682 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4684 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4685 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4686 java/util/jar/JarInputStream.java,
4687 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4688 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4689 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4690 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4691 java/security/cert/Certificate.java,
4692 java/security/cert/CertificateEncodingException.java,
4693 java/security/cert/CertificateException.java,
4694 java/security/cert/CertificateExpiredException.java,
4695 java/security/cert/CertificateFactory.java,
4696 java/security/cert/CertificateFactorySpi.java,
4697 java/security/cert/CertificateNotYetValidException.java,
4698 java/security/cert/CertificateParsingException.java,
4699 java/security/cert/X509CRL.java,
4700 java/security/cert/X509CRLEntry.java,
4701 java/security/cert/X509Certificate.java,
4702 java/security/cert/X509Extension.java: Imported from Classpath.
4703 * java/util/Hashtable.java: Imported from Classpath.
4705 * java/util/zip/ZipInputStream.java: Create stub for
4708 * gcj/javaprims.h: Updated class list.
4710 * Makefile.in, gcj/Makefile.in: Rebuilt.
4711 * Makefile.am (ordinary_java_source_files): Add these new classes.
4713 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4715 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4716 * gnu/gcj/awt/GLightweightPeer.java: New file.
4717 * java/awt/BorderLayout.java: Implemented all methods.
4718 * java/awt/Button.java (actionListener, actionCommand): Renamed
4719 and modifier change.
4720 (addNotify): Call super.
4721 (dispatchEventImpl): New method.
4722 (getListeners): New method.
4723 (label): Made package-private, not private.
4724 * java/awt/Canvas.java: Implemented class body.
4725 * java/awt/Color.java (brighter): New method.
4726 (darker): New method.
4727 (hashCode): New method.
4728 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4729 (getGraphicsConfiguration): Delegate to
4730 getGraphicsConfigurationImpl().
4731 (getGraphicsConfigurationImpl): New method.
4732 (getToolkit): Only return value from peer if not null.
4733 (isDisplayable): Check with parent.
4734 (isShowing): No parent implies not showing.
4735 (getForeground): Check parent property if local is null.
4736 (getBackground): Likewise.
4737 (getFont): Likewise.
4738 (setForeground): Inform peer.
4739 (setBackground): Likewise
4740 (setLocale): Invalidate component.
4741 (getColorModel): Implemented.
4742 (setLocation): Invalidate, or ignore if no change.
4743 (setSize): Invalidate, or ignore if no change.
4744 (setBounds): Invalidate, or ignore if no change.
4745 (isOpaque): By default, heavyweight implies opaque.
4746 (isLightweight): Implemented.
4747 (getMaximumSize): Implemented.
4748 (doLayout): Implemented, NOP.
4749 (validate): Implemented, NOP.
4750 (invalidate): Only propagate to parent if parent was valid.
4751 (getGraphics): Implemented.
4752 (getFontMetrics): Implemented.
4753 (update): Implemented.
4754 (paintAll): Implemented.
4755 (repaint): Implemented all repaint methods.
4756 (print): Implemented.
4757 (printAll): Implemented.
4758 (createImage): Implemented.
4759 (dispatchEvent): Give the peer a chance to handle the event.
4760 (dispatchEventImpl): Dispatch paint events.
4761 (enableEvents): Lightweights enable events on parent component.
4762 (coalesceEvents): Coalesce paint events, and select event type
4764 (coalescePaintEvents): New method.
4765 (processEvent): Fix unfortunate ordering of statements, and call
4766 correct method for MOUSE_CLICKED.
4767 (processPaintEvent): New method.
4768 (addNotify): Allow container to notify children before event
4769 mask is set in peer.
4770 (addNotifyContainerChildren): New method.
4771 (removeNotify): Visibility should not change on removeNotify.
4772 (paramString): Implemented.
4773 (list): Implemented two of the list methods.
4774 * Container (myInsets): Removed, insets are managed by peer.
4775 (getInsets): Query peer.
4776 (addImpl): Fix reparenting, enable events for lightweights,
4777 initialize component array.
4778 (validate): Call doLayout in validateTree() instead.
4779 (validateTree): Do nothing if already valid. Call beginValidate(),
4780 endValidate() on peer. Call validateTree() instead of validate()
4781 for children that are containers. Mark valid after validation of
4783 (setFont): Partial implementation.
4784 (paint): Implemented.
4785 (visitChildren): New method.
4786 (visitChild): New method.
4787 (update): Implemented.
4788 (print): Implemented.
4789 (paintComponents): Implemented.
4790 (printComponents): Consider translation and clipping.
4791 (getComponentAt): Ignore invisible children. Return this if no
4793 (addNotify): Call super.
4794 (addNotifyContainerChildren): New method.
4795 (paramString): Implemented.
4796 (list): Implemented.
4797 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4799 (invokeLater): Likewise.
4800 (isDispatchThread): Likewise.
4801 * java/awt/FontMetrics (getLeading): Formula change.
4802 (getDescent): Consider leading also.
4803 (getMaxAscent): Default to getAscent().
4804 (getMaxDescent): Default to getDescent.
4805 (getMaxAdvance): Return value signifying unknown.
4806 (charWidth): Both methods implemented.
4807 (charsWidth): Implemented.
4808 (bytesWidth): Implemented.
4809 (getWidths): Implemented.
4810 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4812 (Frame): Rearragend constuctor chaining to disallow null being
4813 passed as a graphics configuration.
4814 (getTitle): Return empty string if null.
4816 (getIconImage): New method.
4817 (setIconImage): New method.
4818 (finalize): New method.
4819 (setMenuBar): Notify peer.
4820 (isResizable): New method.
4821 (setResizable): New method.
4822 (getState): New method.
4824 (remove): Implemented.
4825 (removeNotify): New method.
4826 (getFrames): New method.
4827 * java/awt/Graphics.java: Implemented body of class.
4828 * java/awt/Graphics2D.java: New file.
4829 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4830 * java/awt/Image.java: Implemented body of class.
4831 * java/awt/Panel.java (Panel): Call correct super constructor.
4832 (addNotify): Implemented.
4833 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4834 * java/awt/RenderingHints.java: New file.
4835 * java/awt/Toolkit.java (createComponent): Implemented.
4836 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4837 * java/awt/Window.java (Window): Two new constructors. Reordered
4838 constructor chaining.
4839 (getGraphicsConfigurationImpl): New method.
4840 (finalize): Call super.
4841 (addNotify): Call super.
4842 (pack): Do layout stuff.
4843 (show): Ensure that peer exists and that component is valid.
4844 (dispose): Dispose owned children.
4845 (getOwner): Simplify code, casting null pointers is valid.
4846 (getGraphicsConfiguration): Ask peer if local value is null.
4847 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4849 * java/awt/image/BufferedImage.java: New file.
4850 * java/awt/image/RasterOp.java: New file.
4851 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4852 More powerfull replacement for getColorModel().
4853 (getColorModel) Removed.
4854 (setEventMask) New method.
4855 * Makefile.am: Added new files.
4856 * Makefile.in: Rebuilt.
4858 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4860 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4861 (finit_leg_name): New global.
4862 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4863 `$finit$'. This is a backward compatibility hack.
4864 (java::lang::Class::_getMethods): Likewise.
4866 2000-08-15 Andrew Haley <aph@cygnus.com>
4868 * include/jvm.h (_Jv_HashCode): New hash code.
4870 2000-08-15 Tom Tromey <tromey@cygnus.com>
4872 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4874 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4876 * THANKS: More thanks.
4878 2000-08-10 Tom Tromey <tromey@cygnus.com>
4880 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4882 (connect): Likewise.
4884 (getOption): Likewise.
4885 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4886 case when errno not set.
4889 (receive): Likewise.
4890 (mcastGrp): Likewise.
4891 (setOption): Likewise.
4892 (getOption): Likewise.
4894 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4895 John Stracke <francis@ecal.com>
4897 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4898 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4900 (disconnect): Don't unset connected flag.
4901 (getHeaderField (String)): Call connect() if not connected.
4902 (getHeaderField (int)): Ditto.
4903 (getHeaderFieldKey): Ditto.
4904 (getHttpHeaders): Don't call connect().
4905 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4906 gotResponseVals): New fields.
4907 (getResponseCode): Call getResponseVals() conditionally.
4908 (getResponseMessage): Ditto.
4909 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4911 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4913 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4914 * Makefile.in: Rebuilt.
4915 * java/awt/Color.java (getTransparency): New method.
4916 * java/awt/Component.java: Various updates.
4917 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4918 after dealing with children.
4919 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4920 * java/awt/Window.java: Various new methods and updates.
4921 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4923 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4924 * java/awt/event/WindowEvent.java (paramString): Ditto.
4925 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4927 * java/awt/geom/Point2D.java (clone): Ditto.
4928 * java/awt/geom/RectangularShape.java (clone): Ditto.
4929 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4930 isAlphaPremultiplied): Make package-private, not private.
4932 2000-08-08 Tom Tromey <tromey@cygnus.com>
4934 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4935 surrogate characters.
4936 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4938 (write): Correct handling of surrogate characters.
4940 2000-08-07 Tom Tromey <tromey@cygnus.com>
4942 * java/lang/reflect/Method.java (hashCode): Use getName().
4943 (toString): Likewise.
4944 * java/lang/reflect/natMethod.cc (getType): Initialize
4947 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4949 * java/lang/reflect/Field.java (toString): Correct formatting.
4952 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4954 (receive): Streamlined.
4956 2000-08-05 Tom Tromey <tromey@cygnus.com>
4958 * java/io/PrintWriter.java: Merged comments from Classpath.
4959 (printlnUnsynchronized): Removed.
4960 (println()): Print the separator.
4961 (println): Call println(), not printlnUnsynchronized.
4962 (out): Now protected, to match spec.
4964 2000-08-04 Tom Tromey <tromey@cygnus.com>
4966 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4967 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4970 2000-08-03 Warren Levy <warrenl@cygnus.com>
4972 * java/io/ObjectInputStream.java (readFields): Turn off
4973 readDataFromBlock while reading via GetField.
4974 (GetField$1.get(String, Object)): Pass Class of default value to
4976 (getField): Allow for null default values.
4978 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4979 (PutField$1.put): Fixed calls of checkType in most of the put
4980 methods to pass the correct parameter.
4981 (PutField$1.put(String, Object)): Allow for null value arg.
4982 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4985 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4986 typo in spec'ed field name.
4987 (getSerialPersistentFields): Changed spelling of method to match
4988 the correct spelling of the spec'ed field name.
4990 2000-08-03 Tom Tromey <tromey@cygnus.com>
4992 * Makefile.in: Rebuilt.
4993 * Makefile.am (awt_java_source_files): Added new files.
4995 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4997 * Makefile.am: Add new AWT stubs.
4998 * java/awt/Canvas.java: New placeholder class.
4999 * java/awt/Checkbox.java: Ditto.
5000 * java/awt/CheckboxMenuItem.java: Ditto.
5001 * java/awt/Choice.java: Ditto.
5002 * java/awt/Dialog.java: Ditto.
5003 * java/awt/FileDialog.java: Ditto.
5004 * java/awt/List.java: Ditto.
5005 * java/awt/ScrollPane.java: Ditto.
5006 * java/awt/TextField.java: Ditto.
5007 * java/awt/datatransfer/Clipboard.java: Ditto.
5008 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5009 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5010 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5011 Some commented out. Partially implemented.
5012 * java/awt/natToolkit.cc: Removed file.
5014 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5016 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5017 Fixes "make -j" builds.
5018 * Makefile.in: Rebuild.
5020 2000-08-02 Tom Tromey <tromey@cygnus.com>
5022 * Makefile.in: Rebuilt.
5023 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5024 * java/net/natPlainSocketImpl.cc: Include posix.h.
5025 (accept): Use _Jv_select.
5026 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5027 (receive): Use _Jv_select.
5028 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5029 (available): Use _Jv_select.
5030 * java/lang/natSystem.cc: Include posix.h.
5031 (currentTimeMillis): Use _Jv_gettimeofday.
5032 * include/posix.h: New file.
5033 * posix.cc: New file.
5035 * scripts/encodings.pl: New file.
5036 * Makefile.in: Rebuilt.
5037 * Makefile.am (convert_source_files): Added IOConverter.java.
5038 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5040 (getDefaultDecodingClass): Canonicalize default encoding name.
5041 (getEncoder): Likewise.
5042 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5044 (getDefaultDecodingClass): Canonicalize default encoding name.
5045 (getDecoder): Likewise.
5046 * gnu/gcj/convert/IOConverter.java: New file.
5048 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5050 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5051 to match C declaration in ffi.h.
5052 * Makefile.am: Add java/awt/Button.java.
5053 * Makefile.in: Rebuilt.
5055 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5057 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5058 cast of the second argument to `ffi_raw_call' changed to match
5061 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5063 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5064 argument to `ffi_raw_call' changed to match prototype.
5066 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5068 * java/awt/Component.java (toString): Implemented.
5069 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5070 dispatchEvent() to dispatch the event.
5071 (removeImpl): Ditto.
5073 2000-07-30 Anthony Green <green@redhat.com>
5075 * java/awt/Component.java: Add treeLock object.
5076 (getTreeLock): Implement.
5077 (isShowing): Implement.
5079 2000-07-30 Tom Tromey <tromey@cygnus.com>
5081 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5083 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5085 * java/awt/Window.java (addNotify): Wrote.
5086 (addWindowListener): Wrote.
5088 (getWarningString): Wrote.
5089 (processEvent): Wrote.
5090 (processWindowEvent): Wrote.
5091 (removeWindowListener): Wrote.
5092 (show): Call validate(), setVisible().
5096 * java/awt/Toolkit.java (createWindow): Declare.
5098 * java/awt/Frame.java (addNotify): Use getToolkit to find
5101 * java/awt/Component.java (invalidate): Wrote.
5103 (getToolkit): Wrote.
5105 * java/awt/Container.java (addContainerListener): Removed
5107 (removeContainerListener): Likewise.
5109 (add(Component)): Use it.
5110 (add(String,Component)): Likewise.
5111 (add(Component,int)): Likewise.
5112 (add(Component,Object)): Likewise.
5113 (add(Component,Object,int)): Likewise.
5115 (getAlignmentX): Wrote.
5116 (getAlignmentY): Wrote.
5117 (getComponentAt): Wrote.
5118 (getMaximumSize): Wrote.
5119 (invalidate): Wrote.
5120 (list(PrintStream,int)): Wrote.
5121 (list(PrintWriter,int)): Wrote.
5122 (getMinimumSize): Wrote.
5123 (getPreferredSize): Wrote.
5124 (printComponents): Wrote.
5125 (processContainerEvent): Look at containerListener, not
5127 (remove): Added event processing and peer destruction.
5128 (removeAll): Use remove.
5129 (removeNotify): Wrote.
5131 (validateTree): Wrote.
5133 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5134 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5135 * java/awt/Container.java (addNotify): Don't create Container
5137 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5139 2000-07-30 Tom Tromey <tromey@cygnus.com>
5141 * java/awt/Container.java (remove(int)): Wrote.
5142 (remove(Component)): Wrote.
5143 (add(Component)): Wrote.
5144 (add(Component,int)): Wrote.
5146 (addNotify): Set our own peer.
5147 * java/awt/Scrollbar.java (listeners): Changed type.
5148 (Scrollbar): Don't initialize listeners.
5150 (setValue): Call setValues.
5151 (setMinimum): Likewise.
5152 (setMaxPriority): Likewise.
5153 (setVisibleAmount): Likewise.
5155 (setUnitIncrement): Forward to peer.
5156 (setLineIncrement): Call setUnitIncrement.
5157 (setPageIncrement): Call setBlockIncrement.
5158 (setBlockIncrement): Forward to peer.
5159 (addAdjustmentListener): Rewrote.
5160 (removeAdjustmentListener): Rewrote.
5161 (processAdjustmentEvent): Rewrote.
5162 (paramString): Wrote.
5163 * Makefile.in: Rebuilt.
5164 * Makefile.am (awt_java_source_files): Added Button.java.
5165 * java/awt/Button.java: New file.
5166 * java/awt/Toolkit.java (createLabel): Declare.
5167 (createButton): Likewise.
5168 (createScrollbar): Likewise.
5169 (createContainer): Likewise.
5170 * java/awt/Label.java (addNotify): Wrote.
5171 (setAlignment): Call setAlignment in the peer.
5172 (setText): Call setText in the peer.
5174 2000-07-28 Warren Levy <warrenl@cygnus.com>
5176 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5177 NotSerializableException with just the class name.
5179 2000-07-26 Andrew Haley <aph@cygnus.com>
5181 * interpret.cc (continue1): Insert missing break into switch.
5183 2000-07-28 Warren Levy <warrenl@cygnus.com>
5185 * java/io/ObjectStreamException.java: Made constructors protected.
5187 2000-07-27 Tom Tromey <tromey@cygnus.com>
5189 * java/io/OutputStreamWriter.java (close): Only flush if not
5192 2000-07-27 Warren Levy <warrenl@cygnus.com>
5194 * mauve-libgcj: Activated serialization tests.
5195 * gcj/field.h (getModifiers): Mask off unknown flags.
5196 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5197 spurious bits don't cause discrepancies.
5198 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5199 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5200 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5201 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5202 * java/lang/Throwable.java (serialVersionUID): New field.
5203 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5204 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5206 * java/lang/reflect/natMethod.cc: Ditto.
5207 * java/security/Key.java (serialVersionUID): Removed field for now.
5208 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5209 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5211 2000-07-22 Tom Tromey <tromey@cygnus.com>
5213 * java/awt/geom/RectangularShape.java (getPathIterator):
5216 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5218 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5219 stub libjava/java/awt/ColorModel.java which was located in the
5221 * libjava/java/awt/image/ComponentColorModel.java: New file.
5222 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5223 * libjava/java/awt/image/DataBuffer.java: New file.
5224 * libjava/java/awt/image/DataBufferByte.java: New file.
5225 * libjava/java/awt/image/DataBufferInt.java: New file.
5226 * libjava/java/awt/image/DataBufferUShort.java: New file.
5227 * libjava/java/awt/image/DirectColorModel.java: New file.
5228 * libjava/java/awt/image/PackedColorModel.java: New file.
5229 * libjava/java/awt/image/Raster.java: New file.
5230 * libjava/java/awt/image/SampleModel.java: New file.
5231 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5233 * libjava/java/awt/image/IndexColorModel.java: New file.
5234 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5235 java.awt.ColorModel stub.
5237 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5238 * gnu/gcj/util/Buffers.java: New file, utility class.
5240 * libjava/Makefile.am: Updated to include new files.
5241 * libjava/Makefile.in: Rebuilt.
5243 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5245 * java/io/StreamTokenizer.java: Merged with classpath.
5247 2000-07-20 Tom Tromey <tromey@cygnus.com>
5249 * Makefile.in: Rebuilt.
5250 * Makefile.am (awt_java_source_files): Updated for new files.
5251 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5252 * java/awt/Label.java: New file.
5253 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5254 (createIntersection, createUnion, getBounds2D): New methods.
5255 * java/awt/Scrollbar.java: New file.
5256 * java/awt/Shape.java: Updated to 1.2.
5257 * java/awt/geom/AffineTransform.java: New file.
5258 * java/awt/geom/Ellipse2D.java: New file.
5259 * java/awt/geom/NoninvertibleTransformException.java: New file.
5260 * java/awt/geom/PathIterator.java: New file.
5261 * java/awt/geom/Rectangle2D.java: New file.
5262 * java/awt/geom/RectangularShape.java: New file.
5263 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5264 * java/awt/geom/IllegalPathStateException.java: New file.
5266 * scripts/showval.java: New file.
5268 * scripts/classes.pl (scan): Print inner classes properly.
5269 * gcj/javaprims.h: Updated class list.
5271 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5272 initialize String fields for interpreted classes. Fixes bug
5273 reported by Hans Boehm.
5275 * java/io/File.java (getParentFile): New method, from Classpath
5276 via Oskar Liljeblad.
5278 * java/util/Vector.java (remove(Object)): Implemented.
5280 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5282 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5283 zero return from backtrace().
5285 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5287 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5289 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5290 before calling notifyAll().
5292 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5294 Add missing files from last check-in:
5295 * java/awt/image/ImageConsumer.java: New file.
5296 * java/awt/image/ImageProducer.java: New file.
5297 * java/awt/image/ImageObserver.java: New file.
5299 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5301 Merged implementation of java.applet from classpath:
5302 * java/applet/Applet.java: New file.
5303 * java/applet/AppletContext.java: New file.
5304 * java/applet/AppletStub.java: New file.
5305 * java/applet/AudioClip.java: New file.
5307 * Makefile.am: Added new java.applet classes.
5308 * Makefile.in: Rebuilt.
5310 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5313 * java/util/ResourceBundle.java (getLocale): stub.
5314 * Makefile.am: Added new AWT classes.
5315 * Makefile.in: Rebuilt.
5316 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5317 constructors. Fix toString() and paramString().
5318 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5319 * java/awt/CheckboxGroup.java: New class.
5320 * java/awt/ColorModel.java: New class.
5321 * java/awt/Component.java: Added stubs for most methods. Implemented
5323 * java/awt/Container.java: ditto.
5324 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5325 * java/awt/Cursor.java: ditto.
5326 * java/awt/Event.java: Fix paramString().
5327 * java/awt/EventQueue.java: New class. Implemented.
5328 * java/awt/Font.java: Added additional stub methods. Implemented
5330 * java/awt/FontMetrics.java: New class. Stubbed.
5331 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5333 * java/awt/Insets.java: New class. Implemented.
5334 * java/awt/Menu.java: Add new methods. Partially implemented.
5335 * java/awt/MenuItem.java: Add new methods and fields. Partially
5337 * java/awt/MenuShortcut.java: New class. Implemented.
5338 * java/awt/Panel.java: New class. Placeholder.
5339 * java/awt/PopupMenu.java: New class. Stubbed.
5340 * java/awt/Rectangle.java: New class. Implemented.
5341 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5342 * java/awt/event/ActionEvent.java: Implement paramString().
5343 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5344 * java/awt/event/ComponentEvent.java: Implement paramString().
5345 * java/awt/event/ContainerEvent.java: Implement paramString().
5346 * java/awt/event/FocusEvent.java: Implement paramString().
5347 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5348 * java/awt/event/HierarchyBoundsListener.java: New class.
5349 * java/awt/event/HierarchyEvent.java: New class.
5350 * java/awt/event/HierarchyListener.java: New class.
5351 * java/awt/event/InputMethodEvent.java: Implement paramString().
5352 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5353 exception if !catchExceptions.
5354 * java/awt/event/ItemEvent.java: Implement paramString().
5355 * java/awt/event/KeyEvent.java: Implement paramString().
5356 * java/awt/event/MouseEvent.java: Implement paramString().
5357 * java/awt/event/PaintEvent.java: Implement paramString().
5358 * java/awt/event/TextEvent.java: Implement paramString().
5359 * java/awt/event/WindowEvent.java: Implement paramString().
5361 AWT Peer interfaces:
5362 * java/awt/peer/ButtonPeer.java: New file.
5363 * java/awt/peer/ListPeer.java: New file.
5364 * java/awt/peer/CanvasPeer.java: New file.
5365 * java/awt/peer/MenuBarPeer.java: New file.
5366 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5367 * java/awt/peer/MenuComponentPeer.java: New file.
5368 * java/awt/peer/CheckboxPeer.java: New file.
5369 * java/awt/peer/MenuItemPeer.java: New file.
5370 * java/awt/peer/ChoicePeer.java: New file.
5371 * java/awt/peer/MenuPeer.java: New file.
5372 * java/awt/peer/ComponentPeer.java: Implemented.
5373 * java/awt/peer/PanelPeer.java: New file.
5374 * java/awt/peer/ContainerPeer.java: Implemented.
5375 * java/awt/peer/PopupMenuPeer.java: New file.
5376 * java/awt/peer/DialogPeer.java: New file.
5377 * java/awt/peer/ScrollPanePeer.java: New file.
5378 * java/awt/peer/FileDialogPeer.java: New file.
5379 * java/awt/peer/ScrollbarPeer.java: New file.
5380 * java/awt/peer/FontPeer.java: New file.
5381 * java/awt/peer/TextAreaPeer.java: New file.
5382 * java/awt/peer/FramePeer.java: Implemented.
5383 * java/awt/peer/TextComponentPeer.java: New file.
5384 * java/awt/peer/LabelPeer.java: New file.
5385 * java/awt/peer/TextFieldPeer.java: New file.
5386 * java/awt/peer/LightweightPeer.java: New file.
5387 * java/awt/peer/WindowPeer.java: Implemented.
5389 2000-07-06 Tom Tromey <tromey@cygnus.com>
5391 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5392 Initialize static final String fields.
5394 2000-07-03 Tom Tromey <tromey@cygnus.com>
5396 * java/io/PrintWriter.java (print): Call write(String), not
5397 print(String). See PR libgcj/277.
5398 (print(String)): Use write, not out.write.
5400 2000-06-30 Tom Tromey <tromey@cygnus.com>
5402 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5404 2000-06-27 Andrew Haley <aph@cygnus.com>
5406 * java/io/File.java (createTempFile): Close the FileDescriptor
5407 used to create a temp file. Fixes some of PR 203.
5408 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5409 collection if we run out of file handles.
5411 2000-06-28 Warren Levy <warrenl@cygnus.com>
5413 * gnu/java/security/provider/Gnu.java: New file.
5414 * gnu/java/security/provider/SHA.java: New file.
5415 * gnu/java/security/provider/SHA1PRNG.java: New file.
5416 * Makefile.am: Added the above files.
5417 * Makefile.in: Rebuilt.
5419 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5421 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5423 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5424 (destroyed_flag): Removed.
5425 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5426 (activeCount): Added spec note.
5428 2000-06-27 Warren Levy <warrenl@cygnus.com>
5430 * java/security/Principal.java: New file.
5431 * Makefile.am: Added Principal.java.
5432 * Makefile.in: Rebuilt.
5434 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5436 * java/awt/event/MouseEvent.java: Fixed coordinate space
5439 2000-06-27 Tom Tromey <tromey@cygnus.com>
5441 * java/io/PushbackInputStream.java (read): If there are characters
5442 in the buffer, don't also call super.read().
5443 * java/io/PushbackReader.java (read): If there are characters in
5444 the buffer, don't also call super.read().
5446 * java/lang/Double.java (valueOf): Call parseDouble().
5448 2000-06-26 Warren Levy <warrenl@cygnus.com>
5450 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5451 (newVal): Renamed to newValue.
5452 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5453 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5454 (revokeNow): Renamed to invalidateRefs.
5455 * java/io/OptionalDataException.java: Updated FIXME.
5456 (eof): New placeholder field.
5458 * java/io/WriteAbortedException.java (message): Made transient.
5459 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5460 * java/lang/Throwable.java (stackTrace): Made transient.
5461 * java/net/InetAddress.java: Made Serializable.
5462 * java/security/KeyPair.java: Made Serializable.
5463 * java/security/Provider.java: Replaced with Classpath version that
5464 implements serialization and proper methods.
5465 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5466 (limits): Renamed to choiceLimits.
5468 2000-06-24 Tom Tromey <tromey@cygnus.com>
5470 * java/lang/natDouble.cc (parseDouble): Renamed from
5472 * java/lang/Double.java (parseDouble): Renamed from
5473 doubleValueOf. Now public.
5475 2000-06-23 Andrew Haley <aph@cygnus.com>
5477 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5478 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5480 2000-06-23 Tom Tromey <tromey@cygnus.com>
5482 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5483 * java/lang/natDouble.cc: Always include <alloca.h>.
5484 Fix for PR libgcj/267.
5486 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5488 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5489 comply with classpath VM spec.
5490 (add(Group)): Rename to addGroup().
5491 * java/lang/Thread.java (Thread): Use addThread().
5492 * java/lang/natThread.cc (finish_): Use removeThread().
5494 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5496 * java/lang/ThreadGroup.java: Merged with classpath.
5497 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5498 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5500 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5501 ThreadGroup.root if Thread.currentThread is null. Honour the
5502 ThreadGroup's max priority setting.
5504 2000-06-18 Tom Tromey <tromey@cygnus.com>
5506 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5507 returned class. For PR gcj/260.
5509 2000-06-16 Tom Tromey <tromey@cygnus.com>
5511 Fix for PR libgcj/261:
5512 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5514 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5515 argument. (This is a patch from long ago that somehow went
5518 2000-06-15 Tom Tromey <tromey@cygnus.com>
5520 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5524 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5526 Fix for PR java.lang/258:
5527 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5528 JV_STATE_DONE, to prevent accidental initialization.
5529 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5530 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5531 interface or an abstract class. Remove redundant initializeClass calls.
5532 Remove duplicate if_idt test.
5533 (_Jv_InterfaceAssignableFrom): New function.
5534 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5536 2000-05-31 Tom Tromey <tromey@cygnus.com>
5538 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5539 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5540 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5541 (NUM_OBJECT_METHODS): New define.
5542 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5543 `array_vtable' parameter. Added assertion.
5544 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5547 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5549 * gcj/cni.h: Include <string.h>.
5550 * defineclass.cc: Include <alloca.h>.
5551 * interpret.cc: Ditto.
5552 * gij.cc: Include <stdlib.h>.
5554 2000-05-30 Tom Tromey <tromey@cygnus.com>
5556 * include/name-finder.h: Include <sys/wait.h>.
5557 (_Jv_name_finder::pid): Now of type `pid_t'.
5558 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5559 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5562 2000-05-24 Warren Levy <warrenl@cygnus.com>
5564 * java/io/ObjectOutputStream.java (writeObject): Use component type
5565 when writing arrays.
5568 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5570 Fix for PR libgcj/226:
5571 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5572 since this is an installed header.
5574 Fix for PR libgcj/228:
5575 * java/util/zip/ZipFile (getInputStream): Create inflater with
5578 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5579 with DataFormatException.
5581 2000-05-20 Tom Tromey <tromey@cygnus.com>
5583 * Makefile.in: Rebuilt.
5584 * Makefile.am (hack1): Removed.
5585 (awto_files): Likewise.
5586 (libgcjawt_la_SOURCES): Likewise.
5587 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5588 (libgcjawt_la_DEPENDENCIES): Likewise.
5589 (libgcjawt_la_LIBADD): Likewise.
5590 (libgcjawt_la_LDFLAGS): Likewise.
5591 (libgcjawt_la_LINK): Likewise.
5592 ($(awt_java_source_files:.java=.class)): Likewise.
5593 (libgcj.zip): Don't depend on AWT files.
5594 (MOSTLYCLEANFILES): Don't include AWT files.
5595 ($(awto_files)): Removed.
5596 (nat_headers): Removed AWT files.
5597 (cond_awt_java_source_files): Removed.
5598 (ordinary_java_source_files): Added awt_java_source_files.
5599 * libgcj.spec.in (*lib): Removed -lgcjawt.
5600 * configure: Rebuilt.
5601 * configure.in: Removed --enable-java-awt option.
5603 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5605 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5606 (ZipEntry): Copy the `name' field.
5607 (clone): Implement JDK1.2 method.
5608 (setCompressedSize): ditto.
5611 2000-05-19 Tom Tromey <tromey@cygnus.com>
5613 * java/io/BufferedWriter.java: Merged with Classpath.
5614 * java/io/BufferedOutputStream.java: Merged with Classpath.
5616 2000-05-16 Andrew Haley <aph@cygnus.com>
5618 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5619 build_ia64_frame_state.
5620 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5623 2000-05-15 Warren Levy <warrenl@cygnus.com>
5625 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5626 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5627 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5628 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5629 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5630 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5631 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5632 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5633 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5634 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5635 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5636 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5637 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5638 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5639 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5640 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5641 * gnu/gcj/io/NullOutputStream.java: Removed.
5642 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5643 * gnu/gcj/lang/ArrayHelper.java: Removed.
5644 * gnu/gcj/lang/ClassHelper.java: Removed.
5645 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5647 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5648 * gnu/java/beans/EmptyBeanInfo.java: New file.
5649 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5650 * gnu/java/beans/IntrospectionIncubator.java: New file.
5651 * gnu/java/beans/editors/ColorEditor.java: New file.
5652 * gnu/java/beans/editors/FontEditor.java: New file.
5653 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5654 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5655 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5656 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5657 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5658 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5659 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5660 * gnu/java/beans/editors/StringEditor.java: New file.
5661 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5662 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5663 * gnu/java/io/NullOutputStream.java: New file.
5664 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5665 * gnu/java/lang/ArrayHelper.java: New file.
5666 * gnu/java/lang/ClassHelper.java: New file.
5667 * gnu/java/lang/reflect/TypeSignature.java: New file.
5669 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5670 namespace back to the original Classpath gnu/java namespace.
5671 * Makefile.in: Rebuilt.
5673 * java/beans/Beans.java: Namespace change.
5674 * java/beans/EventSetDescriptor.java: Namespace change.
5675 * java/beans/Introspector.java: Namespace change.
5676 * java/beans/PropertyEditorManager.java: Namespace change.
5677 * java/io/ObjectInputStream.java: Namespace change.
5678 * java/io/ObjectOutputStream.java: Namespace change.
5679 * java/io/ObjectStreamClass.java: Namespace change.
5680 * java/io/ObjectStreamField.java: Namespace change.
5682 2000-04-21 Warren Levy <warrenl@cygnus.com>
5684 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5685 now that compiler patch is available.
5686 Removed unneeded System.loadLibrary.
5687 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5688 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5690 2000-04-19 Andrew Haley <aph@cygnus.com>
5692 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5693 and target classes have been initialized.
5695 2000-04-19 Andrew Haley <aph@cygnus.com>
5697 * java/lang/String.java: implement Serializable, Comparable.
5698 (compareTo (Object)): New method.
5700 2000-04-19 Warren Levy <warrenl@cygnus.com>
5702 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5703 instead of getField to retrieve non-public field.
5704 (getSerialPersistantFields): Ditto.
5706 2000-04-18 Warren Levy <warrenl@cygnus.com>
5708 * mauve-libgcj: Turned off object serialization tests temporarily
5709 due to compiler error.
5711 2000-04-17 Warren Levy <warrenl@cygnus.com>
5713 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5714 to avoid build problem.
5716 * mauve-libgcj: Turned on object serialization tests.
5718 2000-04-17 Tom Tromey <tromey@cygnus.com>
5720 * libgcj.spec.in (*lib): Added -lgcjawt.
5722 2000-04-17 Andrew Haley <aph@cygnus.com>
5724 * Makefile.am: Add new files:
5725 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5727 * Makefile.in: Rebuilt.
5729 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5730 interface that has no implementations.
5731 Check for an attempt to assign an abstract class to an interface.
5733 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5734 if we fail to find MessageDigest.getInstance ("SHA").
5736 * gnu/gcj/io/SimpleSHSStream.java: New file.
5737 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5738 * gnu/gcj/io/shs.cc: New file.
5739 * gnu/gcj/io/shs.h: new file.
5741 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5744 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5745 punctuation from the classname of an array element.
5747 * gcj/javaprims.h: Add SimpleDigestStream.
5749 2000-04-17 Andrew Haley <aph@cygnus.com>
5751 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5752 to getPrivateField for superclasses.
5754 2000-04-14 Andrew Haley <aph@cygnus.com>
5756 * Makefile.am: Add new files:
5757 java/io/ObjectOutputStream$PutField.h,
5758 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5759 java/io/natObjectOutputStream.cc
5760 * Makefile.in: Rebuilt.
5761 * gcj/Makefile.in: Rebuilt.
5762 * include/Makefile.in: Rebuilt.
5763 * java/lang/Class.h (getPrivateField): New method.
5764 (getPrivateMethod): Ditto.
5765 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5766 and java::io::ObjectStreamClass our friends.
5767 * java/lang/natClass.cc (getPrivateField): New method.
5768 (getPrivateMethod): Ditto.
5769 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5770 * gcj/javaprims.h: Add serialization classes.
5771 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5772 (setByteField): Ditto.
5773 (setCharField): Ditto.
5774 (setDoubleField): Ditto.
5775 (setFloatField): Ditto.
5776 (setIntField): Ditto.
5777 (setLongField): Ditto.
5778 (setShortField): Ditto.
5779 (setObjectField): Ditto.
5780 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5782 (getByteField): Ditto.
5783 (getCharField): Ditto.
5784 (getDoubleField): Ditto.
5785 (getFloatField): Ditto.
5786 (getIntField): Ditto.
5787 (getLongField): Ditto.
5788 (getShortField): Ditto.
5789 (getObjectField): Ditto.
5790 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5792 (getSerialPersistantFields): Ditto.
5793 (getDefinedSUID): Ditto.
5794 * java/io/natObjectOutputStream.cc: New file.
5795 * java/io/natObjectInputStream.cc: New file.
5797 2000-04-13 Warren Levy <warrenl@cygnus.com>
5799 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5800 problems. Revert to previous version to reproduce and when fixed.
5802 2000-04-13 Warren Levy <warrenl@cygnus.com>
5804 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5805 * gnu/gcj/io/NullOutputStream.java: New file.
5806 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5807 * java/io/BlockDataException.java: New file.
5808 * java/io/Externalizable.java: New file.
5809 * java/io/InvalidClassException.java: New file.
5810 * java/io/InvalidObjectException.java: New file.
5811 * java/io/NotActiveException.java: New file.
5812 * java/io/NotSerializableException.java: New file.
5813 * java/io/ObjectInput.java: New file.
5814 * java/io/ObjectInputStream.java: New file.
5815 * java/io/ObjectInputValidation.java: New file.
5816 * java/io/ObjectOutput.java: New file.
5817 * java/io/ObjectOutputStream.java: New file.
5818 * java/io/ObjectStreamClass.java: New file.
5819 * java/io/ObjectStreamConstants.java: New file.
5820 * java/io/ObjectStreamField.java: New file.
5821 * java/io/Replaceable.java: New file.
5822 * java/io/Resolvable.java: New file.
5823 * java/io/SerializablePermission.java: New file.
5824 * java/io/WriteAbortedException.java: New file.
5825 * java/security/BasicPermission.java: New file.
5826 * java/security/DigestOutputStream.java: New file.
5827 * java/security/Guard.java: New file.
5828 * java/security/Permission.java: New file.
5829 * java/security/PermissionCollection.java: New file.
5830 * Makefile.am: Added above files.
5831 * Makefile.in: Rebuilt.
5833 * java/beans/Beans.java (instantiate): Activated serialization code.
5834 * java/lang/SecurityManager.java (checkPermission): New method.
5836 2000-04-12 Warren Levy <warrenl@cygnus.com>
5838 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5839 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5840 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5841 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5842 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5843 * gnu/gcj/beans/editors/FontEditor.java: New file.
5844 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5845 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5846 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5847 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5848 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5849 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5850 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5851 * gnu/gcj/beans/editors/StringEditor.java: New file.
5852 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5853 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5854 * gnu/gcj/lang/ArrayHelper.java: New file.
5855 * gnu/gcj/lang/ClassHelper.java: New file.
5856 * java/beans/BeanDescriptor.java: New file.
5857 * java/beans/BeanInfo.java: New file.
5858 * java/beans/Beans.java: New file.
5859 * java/beans/Customizer.java: New file.
5860 * java/beans/DesignMode.java: New file.
5861 * java/beans/EventSetDescriptor.java: New file.
5862 * java/beans/FeatureDescriptor.java: New file.
5863 * java/beans/IndexedPropertyDescriptor.java: New file.
5864 * java/beans/IntrospectionException.java: New file.
5865 * java/beans/Introspector.java: New file.
5866 * java/beans/MethodDescriptor.java: New file.
5867 * java/beans/ParameterDescriptor.java: New file.
5868 * java/beans/PropertyChangeEvent.java: New file.
5869 * java/beans/PropertyChangeListener.java: New file.
5870 * java/beans/PropertyChangeSupport.java: New file.
5871 * java/beans/PropertyDescriptor.java: New file.
5872 * java/beans/PropertyEditor.java: New file.
5873 * java/beans/PropertyEditorManager.java: New file.
5874 * java/beans/PropertyEditorSupport.java: New file.
5875 * java/beans/PropertyVetoException.java: New file.
5876 * java/beans/SimpleBeanInfo.java: New file.
5877 * java/beans/VetoableChangeListener.java: New file.
5878 * java/beans/VetoableChangeSupport.java: New file.
5879 * java/beans/Visibility.java: New file.
5880 * java/beans/beancontext/BeanContext.java: New file.
5881 * java/beans/beancontext/BeanContextChild.java: New file.
5882 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5883 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5884 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5885 * java/beans/beancontext/BeanContextEvent.java: New file.
5886 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5887 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5888 * java/beans/beancontext/BeanContextProxy.java: New file.
5889 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5891 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5892 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5894 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5895 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5897 * java/beans/beancontext/BeanContextServices.java: New file.
5898 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5899 * java/util/AbstractCollection.java: New file.
5900 * java/util/AbstractList.java: New file.
5901 * java/util/Arrays.java: New file.
5902 * Makefile.am: Added above files.
5903 * Makefile.in: Rebuilt.
5905 2000-04-11 Warren Levy <warrenl@cygnus.com>
5907 * java/awt/AWTError.java: New file.
5908 * java/awt/AWTEvent.java: New file.
5909 * java/awt/AWTException.java: New file.
5910 * java/awt/ActiveEvent.java: New file.
5911 * java/awt/Adjustable.java: New file.
5912 * java/awt/BorderLayout.java: New file.
5913 * java/awt/Color.java: New file.
5914 * java/awt/Component.java: New file.
5915 * java/awt/Container.java: New file.
5916 * java/awt/Dimension.java: New file.
5917 * java/awt/Event.java: New file.
5918 * java/awt/Font.java: New file.
5919 * java/awt/Frame.java: New file.
5920 * java/awt/Graphics.java: New file.
5921 * java/awt/IllegalComponentStateException.java: New file.
5922 * java/awt/Image.java: New file.
5923 * java/awt/ItemSelectable.java: New file.
5924 * java/awt/LayoutManager.java: New file.
5925 * java/awt/LayoutManager2.java: New file.
5926 * java/awt/Menu.java: New file.
5927 * java/awt/MenuBar.java: New file.
5928 * java/awt/MenuComponent.java: New file.
5929 * java/awt/MenuContainer.java: New file.
5930 * java/awt/MenuItem.java: New file.
5931 * java/awt/Paint.java: New file.
5932 * java/awt/PaintContext.java: New file.
5933 * java/awt/Point.java: New file.
5934 * java/awt/Rectangle.java: New file.
5935 * java/awt/Shape.java: New file.
5936 * java/awt/TextArea.java: New file.
5937 * java/awt/TextComponent.java: New file.
5938 * java/awt/Toolkit.java: New file.
5939 * java/awt/Transparency.java: New file.
5940 * java/awt/Window.java: New file.
5941 * java/awt/natToolkit.cc: New file.
5942 * java/awt/event/AWTEventListener.java: New file.
5943 * java/awt/event/ActionEvent.java: New file.
5944 * java/awt/event/ActionListener.java: New file.
5945 * java/awt/event/AdjustmentEvent.java: New file.
5946 * java/awt/event/AdjustmentListener.java: New file.
5947 * java/awt/event/ComponentAdapter.java: New file.
5948 * java/awt/event/ComponentEvent.java: New file.
5949 * java/awt/event/ComponentListener.java: New file.
5950 * java/awt/event/ContainerAdapter.java: New file.
5951 * java/awt/event/ContainerEvent.java: New file.
5952 * java/awt/event/ContainerListener.java: New file.
5953 * java/awt/event/FocusAdapter.java: New file.
5954 * java/awt/event/FocusEvent.java: New file.
5955 * java/awt/event/FocusListener.java: New file.
5956 * java/awt/event/InputEvent.java: New file.
5957 * java/awt/event/InputMethodEvent.java: New file.
5958 * java/awt/event/InputMethodListener.java: New file.
5959 * java/awt/event/InvocationEvent.java: New file.
5960 * java/awt/event/ItemEvent.java: New file.
5961 * java/awt/event/ItemListener.java: New file.
5962 * java/awt/event/KeyAdapter.java: New file.
5963 * java/awt/event/KeyEvent.java: New file.
5964 * java/awt/event/KeyListener.java: New file.
5965 * java/awt/event/MouseAdapter.java: New file.
5966 * java/awt/event/MouseEvent.java: New file.
5967 * java/awt/event/MouseListener.java: New file.
5968 * java/awt/event/MouseMotionAdapter.java: New file.
5969 * java/awt/event/MouseMotionListener.java: New file.
5970 * java/awt/event/PaintEvent.java: New file.
5971 * java/awt/event/TextEvent.java: New file.
5972 * java/awt/event/TextListener.java: New file.
5973 * java/awt/event/WindowAdapter.java: New file.
5974 * java/awt/event/WindowEvent.java: New file.
5975 * java/awt/event/WindowListener.java: New file.
5976 * java/awt/geom/Dimension2D.java: New file.
5977 * java/awt/geom/Point2D.java: New file.
5978 * java/awt/peer/ComponentPeer.java: New file.
5979 * java/awt/peer/ContainerPeer.java: New file.
5980 * java/awt/peer/FramePeer.java: New file.
5981 * java/awt/peer/WindowPeer.java: New file.
5982 * java/util/Collection.java: New file.
5983 * java/util/Comparator.java: New file.
5984 * java/util/Iterator.java: New file.
5985 * java/util/List.java: New file.
5986 * java/util/ListIterator.java: New file.
5987 * Makefile.am: Added above files.
5988 * Makefile.in: Rebuilt.
5990 2000-04-10 Warren Levy <warrenl@cygnus.com>
5992 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5993 * java/lang/FirstThread.java: Ditto.
5994 * java/lang/StringBuffer.java: Ditto.
5995 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5997 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5998 Special case handled in java.math.BigInteger.
5999 * java/math/BigInteger.java (divide): Handle the special case when
6000 dividing by 1 and the high bit of the dividend is set.
6001 (setShiftRight): Handle case when count == 0.
6003 2000-04-05 Andrew Haley <aph@cygnus.com>
6005 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6008 2000-04-05 Andrew Haley <aph@cygnus.com>
6010 * sysdep/ia64.c (rse_address_add): Delete.
6011 (IS_NaT_COLLECTION_ADDR): Delete.
6012 (ia64_backtrace_helper): check for null unwind_info.
6014 * sysdep/ia64-frame.h: add calc_caller_bsp.
6016 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6019 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6020 (_Jv_remI): Likewise.
6021 (_Jv_divJ): Likewise.
6022 (_Jv_remJ): Likewise.
6024 * interpret.cc (continue1): Use divide subroutines to guarantee
6025 correct Java standard behaviour.
6026 Floating-point division should not abort; make it so.
6028 2000-03-29 Tom Tromey <tromey@cygnus.com>
6030 * configure: Rebuilt.
6031 * configure.in: Test against `libgcj_sjlj', not
6032 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6033 to be set even when using sjlj.
6035 2000-03-24 Andrew Haley <aph@cygnus.com>
6037 * Makefile.am: Add file addr2name.awk.
6038 * Makefile.in: Rebuilt.
6039 * addr2name.awk: New file.
6040 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6042 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6045 2000-03-22 Andrew Haley <aph@cygnus.com>
6047 * configure.host: Add -funwind-tables for IA64.
6048 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6049 * Makefile.in: Rebuilt.
6050 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6051 * sysdep/ia64.c: New file.
6052 * sysdep/ia64-frame.h: New file.
6053 * configure.in: Add sysdep/ia64.c for ia64.
6054 * configure: Rebuilt.
6056 2000-03-17 Andrew Haley <aph@cygnus.com>
6058 * java/lang/natString.cc: Remove `register' keyword.
6059 interpret.cc: ditto.
6061 2000-03-16 Andrew Haley <aph@cygnus.com>
6063 * configure.host (ia64): Enable interpreter.
6065 2000-03-14 Hans Boehm <boehm@acm.org>
6067 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6069 2000-03-14 Andrew Haley <aph@cygnus.com>
6071 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6074 2000-03-10 Andrew Haley <aph@cygnus.com>
6076 * java/lang/ieeefp.h: Import latest version from fdlibm.
6078 2000-03-14 Andrew Haley <aph@cygnus.com>
6080 * prims.cc (_Jv_ThrowSignal): New function.
6081 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6083 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6084 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6085 * include/ppc-signal.h: New file.
6087 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6089 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6090 * java/lang/natThread.java (initialize_native): Cast `data' to
6092 * gnu/gcj/RawData.java: Clarify documentation.
6094 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6095 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6096 `jarFile', not `jarFileURL'.
6098 2000-05-15 Andrew Haley <aph@cygnus.com>
6100 * include/ppc-signal.h: New file.
6102 2000-05-11 Tom Tromey <tromey@cygnus.com>
6104 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6105 file headers, don't include `size' in the skip call.
6107 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6109 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6110 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6112 (replace): Reimplemented. Fix javadoc.
6113 (reverse): Call ensureCapacity_unsynchronized().
6114 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6116 (replace): Calculate length for arraycopy() correctly.
6118 2000-05-09 Tom Tromey <tromey@cygnus.com>
6120 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6122 (insert(int,char[],int,int): New method.
6123 (delete): New method from Classpath.
6124 (deleteCharAt): Likewise.
6125 (substring): Likewise.
6126 (shared): No longer private.
6127 Added JavaDoc comments from Classpath.
6128 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6131 2000-05-07 Tom Tromey <tromey@cygnus.com>
6133 * Makefile.in: Rebuilt.
6134 * Makefile.am (LIBLINK): New macro.
6135 (libgcj_la_LINK): Use it.
6136 (libgcjawt_la_LINK): Likewise.
6138 2000-05-06 Tom Tromey <tromey@cygnus.com>
6140 * Makefile.in: Rebuilt.
6141 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6143 2000-05-05 Tom Tromey <tromey@cygnus.com>
6145 Fix for PR libgcj/220:
6146 * Makefile.in: Rebuilt.
6147 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6148 (jv_convert_LDFLAGS): Likewise.
6149 (libgcj_la_LDFLAGS): Likewise.
6150 (GCJLINK): New macro.
6151 (jv_convert_LINK): Use it.
6152 (gij_LINK): Likewise.
6153 (libgcj_la_LINK): New macro.
6154 (libgcjawt_la_LINK): Likewise.
6156 2000-05-04 Tom Tromey <tromey@cygnus.com>
6158 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6160 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6164 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6166 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6167 (_Jv_IsAssignableFrom): Ditto.
6168 (_Jv_IsInstanceOf): Ditto.
6169 (_Jv_CheckCast): Ditto.
6170 (_Jv_CheckArrayStore): Ditto.
6171 * java/lang/Class.h (_Jv_InitClass): Ditto.
6172 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6177 (_Jv_MonitorExit): Ditto.
6178 * boehm.cc (_Jv_MarkObj): Ditto.
6179 (_Jv_MarkObj): Ditto.
6180 (_Jv_MarkArray): Ditto.
6181 * prims.cc (_Jv_AllocObject): Ditto.
6182 (_Jv_NewObjectArray): Ditto.
6183 (_Jv_NewPrimArray): Ditto.
6184 (_Jv_Malloc): Ditto.
6185 (_Jv_Realloc): Ditto.
6186 (_Jv_MallocUnchecked): Ditto.
6192 2000-05-04 Tom Tromey <tromey@cygnus.com>
6194 * java/util/Locale.java (Locale): Don't explicitly check for
6196 * java/util/Hashtable.java (containsKey): Don't explicitly check
6199 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6201 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6203 * java/text/StringCharacterIterator.java
6204 (StringCharacterIterator): Don't check for null.
6205 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6207 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6208 check for null pointer.
6209 (leaveGroup): Likewise.
6210 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6212 (setData): Likewise.
6213 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6216 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6218 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6219 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6220 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6221 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6222 -rpath for in-gcc builds.
6223 * Makefile.in: Rebuilt.
6225 2000-04-28 Tom Tromey <tromey@cygnus.com>
6227 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6230 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6232 * libjava/java/lang/String.java (toString): Remove `final' hack.
6234 2000-04-05 Tom Tromey <tromey@cygnus.com>
6236 Runtime support for PR gcj/2:
6237 * prims.cc (_Jv_ThrowNullPointerException): New function.
6238 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6240 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6242 * prims.cc (_Jv_NewObjectArray): Fix typo.
6244 2000-04-26 Tom Tromey <tromey@cygnus.com>
6246 * Makefile.in: Rebuilt.
6247 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6249 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6251 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6254 2000-04-22 Anthony Green <green@cygnus.com>
6256 * include/jvm.h (__builtin_expect): Define as unused for now.
6257 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6261 (_Jv_MonitorExit): Ditto.
6262 * boehm.cc (_Jv_MarkObj): Ditto.
6263 (_Jv_MarkObj): Ditto.
6264 (_Jv_MarkArray): Ditto.
6265 (_Jv_AllocBytes): Ditto.
6266 * prims.cc (_Jv_AllocObject): Ditto.
6267 (_Jv_NewObjectArray): Ditto.
6268 (_Jv_NewPrimArray): Ditto.
6269 (_Jv_Malloc): Ditto.
6270 (_Jv_Realloc): Ditto.
6271 (_Jv_MallocUnchecked): Ditto.
6277 * include/Makefile.in: Rebuilt.
6278 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6280 2000-04-21 Tom Tromey <tromey@cygnus.com>
6282 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6283 Yet another new version from Classpath.
6285 Fix for PR libgcj/15:
6286 * java/util/natGregorianCalendar.cc (_REENTRANT,
6287 _POSIX_PTHREAD_SEMANTICS): Don't define.
6288 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6289 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6291 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6293 * configure: Rebuilt.
6294 * configure.in: If using POSIX threads, define _REENTRANT if
6295 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6296 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6298 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6299 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6300 version from Classpath.
6302 Fix for PR libgcj/213:
6303 * Makefile.in: Rebuilt.
6304 * Makefile.am (gij_SOURCES): Added gij.cc.
6305 (EXTRA_gij_SOURCES): Removed.
6306 (gij_LDADD): Removed gij.lo.
6307 (gij_DEPENDENCIES): Likewise.
6308 ($(gij_OBJECTS)): Depend on nat_headers.
6310 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6311 `setURL', not `url.set'.
6313 2000-04-20 Tom Tromey <tromey@cygnus.com>
6315 Fix for PR java.io/204:
6316 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6317 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6320 Fix for PR libgcj/212:
6321 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6322 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6323 * java/lang/Class.h (_Jv_word): Declare.
6325 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6327 2000-04-19 Tom Tromey <tromey@cygnus.com>
6329 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6330 doesn't have a loader.
6332 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6334 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6335 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6337 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6339 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6341 (available): Initialize `where' to prevent bogus compiler warning.
6343 2000-04-12 Tom Tromey <tromey@cygnus.com>
6345 * java/lang/natString.cc (intern): Temporarily disable finalizer
6348 * java/lang/natString.cc (unintern): Added `obj' argument.
6349 (intern): Register finalizer for string.
6350 * java/lang/String.java (unintern): Now static; added obj
6353 2000-04-11 Tom Tromey <tromey@cygnus.com>
6355 * java/util/Vector.java (VectorEnumeration): Now `final'.
6356 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6357 (HashtableEnumeration): Likewise.
6358 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6359 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6361 2000-04-10 Warren Levy <warrenl@cygnus.com>
6363 * java/io/ObjectStreamException.java: New file.
6364 * java/io/OptionalDataException.java: New file.
6365 * java/io/StreamCorruptedException.java: New file.
6366 * java/math/BigDecimal.java: New file.
6367 * java/sql/CallableStatement.java: New file.
6368 * java/sql/Connection.java: New file.
6369 * java/sql/DataTruncation.java: New file.
6370 * java/sql/DatabaseMetaData.java: New file.
6371 * java/sql/Date.java: New file.
6372 * java/sql/Driver.java: New file.
6373 * java/sql/DriverManager.java: New file.
6374 * java/sql/DriverPropertyInfo.java: New file.
6375 * java/sql/PreparedStatement.java: New file.
6376 * java/sql/ResultSet.java: New file.
6377 * java/sql/ResultSetMetaData.java: New file.
6378 * java/sql/SQLException.java: New file.
6379 * java/sql/SQLWarning.java: New file.
6380 * java/sql/Statement.java: New file.
6381 * java/sql/Time.java: New file.
6382 * java/sql/Timestamp.java: New file.
6383 * java/sql/Types.java: New file.
6384 * Makefile.am: Added above new files.
6385 * Makefile.in: Rebuilt.
6387 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6388 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6389 DatagramSocket constructor instead of null.
6391 2000-04-08 Anthony Green <green@cygnus.com>
6393 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6396 2000-04-08 Anthony Green <green@cygnus.com>
6398 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6399 (_Jv_MutexUnlock): Ditto.
6400 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6401 (_Jv_MutexUnlock): Ditto.
6403 2000-04-08 Anthony Green <green@cygnus.com>
6405 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6406 (ensureCapacity_unsynchronized): New private method.
6407 (append): Use ensureCapacity_unsynchronized.
6409 2000-04-08 Tom Tromey <tromey@cygnus.com>
6411 * Makefile.in: Rebuilt.
6412 * Makefile.am (awt_java_source_files): Added new files.
6413 * java/awt/IllegalComponentStateException.java: New file.
6414 * java/awt/ItemSelectable.java: New file.
6415 * java/awt/event/WindowEvent.java: Finished.
6416 * java/awt/event/TextEvent.java: Finished.
6417 * java/awt/event/ContainerEvent.java: New file.
6418 * java/awt/Component.java (getX, getY): New methods.
6419 * java/awt/event/PaintEvent.java: New file.
6420 * java/awt/event/MouseEvent.java: New file.
6421 * java/awt/ActiveEvent.java: New file.
6422 * java/awt/event/KeyEvent.java: Finished.
6423 * java/awt/event/ItemEvent.java: New file.
6424 * java/awt/Adjustable.java: New file.
6425 * java/awt/event/InputMethodEvent.java: New file.
6426 * java/awt/event/InputEvent.java: Finished.
6427 * java/awt/event/FocusEvent.java: New file.
6428 * java/awt/event/MouseMotionAdapter.java: New file.
6429 * java/awt/event/MouseAdapter.java: New file.
6430 * java/awt/event/KeyAdapter.java: New file.
6431 * java/awt/event/FocusAdapter.java: New file.
6432 * java/awt/event/ContainerAdapter.java: New file.
6433 * java/awt/event/ComponentEvent.java: Finished.
6434 * java/awt/event/AdjustmentEvent.java: New file.
6435 * java/awt/event/ComponentAdapter.java: New file.
6436 * java/awt/event/ActionEvent.java: Finished.
6437 * java/awt/event/MouseMotionListener.java: New file.
6438 * java/awt/event/MouseListener.java: New file.
6439 * java/awt/event/ItemListener.java: New file.
6440 * java/awt/event/InputMethodListener.java: New file.
6441 * java/awt/event/ContainerListener.java: New file.
6442 * java/awt/event/FocusListener.java: New file.
6443 * java/awt/event/ComponentListener.java: New file.
6444 * java/awt/event/AWTEventListener.java: New file.
6445 * java/awt/event/AdjustmentListener.java: New file.
6447 2000-04-08 Anthony Green <green@cygnus.com>
6449 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6450 check when we have to.
6452 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6455 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6458 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6459 inline hasMoreElements.
6461 2000-04-05 Tom Tromey <tromey@cygnus.com>
6463 * configure: Rebuilt.
6464 * configure.in: Recognize --enable-java-awt.
6465 (AWT): New conditional.
6466 * Makefile.in: Rebuilt.
6467 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6469 (libgcjawt_la_SOURCES): New macro.
6470 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6471 (libgcjawt_la_DEPENDENCIES): Likewise.
6472 (libgcjawt_la_LIBADD): Likewise.
6473 (libgcjawt_la_LDFLAGS): Likewise.
6474 (libgcj.zip): Depend on cond_java_awt_source_files
6475 (cond_awt_java_source_files): New macro.
6476 (MOSTLYCLEANFILES): Added awto_files.
6477 (awto_files): New macro. Use where javao_files used.
6478 (nat_headers): Use cond_awt_java_source_files.
6480 2000-04-04 Tom Tromey <tromey@cygnus.com>
6482 * Makefile.in: Rebuilt.
6483 * Makefile.am (awt_java_source_files): Added AWTException.java.
6484 * java/awt/AWTException.java: New file.
6486 2000-04-03 Tom Tromey <tromey@cygnus.com>
6488 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6489 commentary from Alex.
6491 * Makefile.in: Rebuilt.
6492 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6495 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6497 * configure: Rebuilt.
6498 * configure.in: Add --disable-jvmpi.
6499 * include/config.h.in: Rebuilt.
6500 * acconfig.h: Add ENABLE_JVMPI.
6502 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6503 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6504 (_Jv_JVMPI_Notify_THREAD_END): New define.
6505 (_Jv_JVMPI_Notify_THREAD_END): New define.
6506 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6507 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6508 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6510 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6513 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6514 (finish_): Generate JVMPI thread end events.
6515 (run_): Generate JVMPI thread start events.
6516 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6517 preloaded JNI library.
6518 Include JVMPI headers if necessary.
6519 (run): Generate JVMPI thread start events.
6521 * boehm.cc: Define GC_disable and GC_enable.
6522 (_Jv_DisableGC): New function.
6523 (_Jv_EnableGC): New function.
6524 (disable_gc_mutex): Declare.
6525 * nogc.cc (_Jv_DisableGC): New function.
6526 (_Jv_EnableGC): New function.
6528 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6529 (_Jv_JVMPI_Interface): Define.
6530 (jvmpiEnableEvent): New function.
6531 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6533 * include/jvmpi.h: New file.
6535 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6537 * Makefile.in: New #defines and friends for Thread.h.
6538 * Makefile.am: Ditto.
6539 * posix-threads.cc: (struct starter): Remove `object'.
6540 (_Jv_CondWait): Use interruptable condition variables and new
6541 recursive mutexes. New return codes on interrupt or non-ownership
6543 (_Jv_CondNotify): Ditto.
6544 (_Jv_CondNotifyAll): Ditto.
6545 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6546 the target thread by signaling its wait condition.
6547 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6548 not the starter struct. Initialize wait_mutex and wait_cond.
6549 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6551 (_Jv_MutexUnlock): Ditto.
6552 (really_start): Set info->data->thread from pthread_self() to work
6553 around a race condition. Destroy wait_mutex and wait_cond when run()
6555 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6556 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6558 startable_flag: New private field.
6559 (Thread): Initialize `startable_flag'.
6560 (toString): Check for null thread group.
6561 * java/lang/natThread.cc: (struct natThread): New fields
6562 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6563 (class locker): Removed.
6564 (initialize_native): Initialize `join_cond' and `join_mutex'.
6565 (interrupt): Now just calls _Jv_ThreadInterrupt().
6566 (join): Simplified. Just wait on the target thread's join condition.
6567 (finish_): Remove join list code. Unset thread group. Signal
6568 potential joiners by notifying the dying threads join_cond.
6569 (start): Check for illegal restarts.
6570 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6572 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6573 #defines and #ifdefs.
6574 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6575 `wait_mutex', `next'.
6576 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6577 directly mapping to pthread_cond_t.
6578 (struct _Jv_Mutex_t): New recursive implementation.
6579 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6580 _Jv_HaveCondDestroy: Never define this for posix-threads.
6581 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6582 (_Jv_CondNotifyAll): Ditto.
6583 (_Jv_MutexLock): Ditto.
6584 (_Jv_MutexUnlock): Ditto.
6585 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6586 (_Jv_MutexDestroy): Ditto.
6587 (_Jv_CondDestroy): Removed.
6588 (_Jv_PthreadGetMutex): Removed.
6589 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6590 error. Add a FIXME about this.
6591 (_Jv_CondNotifyAll): Ditto.
6592 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6593 _JV_NOT_OWNER on other errors. Add FIXME.
6595 2000-03-26 Tom Tromey <tromey@cygnus.com>
6597 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6599 (call): Don't throw exception here.
6601 2000-03-26 Tom Tromey <tromey@cygnus.com>
6603 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6604 * interpret.cc: Use SIZEOF_VOID_P.
6605 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6606 (_Jv_loadLong): Likewise.
6607 (_Jv_storeDouble): Likewise.
6608 * configure: Rebuilt.
6609 * configure.in: Check size of void*.
6611 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6613 2000-03-26 Hans Boehm <boehm@acm.org>
6615 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6616 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6618 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6619 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6620 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6621 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6623 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6624 (FFI_RAW_SIZE): Likewise.
6625 (_Jv_InterpMethod::ncode): Use them.
6626 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6627 STORED): Define differently on a 64 bit machine.
6628 (continue1): Use ffi_java_raw_call when appropriate.
6630 2000-03-24 Warren Levy <warrenl@cygnus.com>
6632 * java/math/BigInteger.java(divide): Handle the special case when
6633 dividing by 1 and the high bit of the dividend is set.
6634 (setShiftRight): Handle case when count == 0.
6636 2000-03-24 Warren Levy <warrenl@cygnus.com>
6638 * java/awt/Font.java(isBold): Fix syntax error.
6640 * java/awt/Frame.java(postEvent): ditto.
6641 * java/awt/Menu.java(postEvent): ditto.
6642 * java/awt/MenuBar.java(postEvent): ditto.
6643 * java/awt/Toolkit.java(init): Included a stub.
6645 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6647 * java/awt/Event.java: Add all the event type constants.
6648 (Event): Implemented constructors.
6649 (controlDown): Implemented.
6650 (metaDown): Implemented.
6651 (paramString): Stubbed.
6652 (shiftDown): Implemented.
6653 (toString): Implemented.
6654 (translate): Implemented.
6656 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6658 * java/lang/natClass.cc (isInstance): Initialize `this'.
6659 (isAssignableFrom): Initialize `this' and `klass'.
6660 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6661 implemented by any loaded class, so return false.
6662 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6663 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6665 2000-03-19 Warren Levy <warrenl@cygnus.com>
6667 * java/awt/Color.java: Specified java.io for Serializable.
6668 * java/awt/Toolkit.java: Imported java.net.URL.
6670 2000-03-19 Warren Levy <warrenl@cygnus.com>
6672 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6674 2000-03-16 Warren Levy <warrenl@cygnus.com>
6676 * java/awt/Color.java: New file.
6677 * java/awt/Graphics.java: New file.
6678 * java/awt/Image.java: New file.
6679 * java/awt/Paint.java: New file.
6680 * java/awt/PaintContext.java: New file.
6681 * java/awt/Transparency.java: New file.
6682 * java/util/Collection.java: New file.
6683 * java/util/Comparator.java: New file.
6684 * java/util/Iterator.java: New file.
6685 * java/util/List.java: New file.
6686 * java/util/ListIterator.java: New file.
6687 * Makefile.am: Added above new files.
6688 * Makefile.in: Rebuilt.
6690 * java/awt/Font.java (PLAIN): New field.
6692 (ITALIC): New field.
6693 (ROMAN_BASELINE): New field.
6694 (CENTER_BASELINE): New field.
6695 (HANGING_BASELINE): New field.
6699 (pointSize): New field.
6700 (Font): Implemented constructor.
6701 (isPlain): Implemented method.
6702 (isBold): Implemented method.
6703 (isItalic): Implemented method.
6704 (getName): Implemented method.
6705 (getStyle): Implemented method.
6706 (getSize): Implemented method.
6707 (getSize2D): Implemented method.
6709 * java/awt/Frame.java (getFont): Stubbed.
6710 (postEvent): Stubbed.
6712 * java/awt/Menu.java (postEvent): Stubbed.
6713 * java/awt/MenuBar.java (getFont): Stubbed.
6714 (postEvent): Stubbed.
6715 * java/awt/Toolkit.java (getImage): Added abstract method.
6717 2000-03-15 Tom Tromey <tromey@cygnus.com>
6719 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6721 * prims.cc (win32_exception_handler): Reformatted.
6723 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6724 (_Jv_HaveMutexDestroy): Likewise.
6726 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6728 * java/io/natFileDescriptorWin32.cc: New file.
6729 * java/io/natFileWin32.cc: New file.
6730 * java/net/natInetAddress.cc: Added conditional inclusion of
6731 Windows / Winsock headers.
6732 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6733 inclusion of Windows / Winsock headers.
6734 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6735 Windows / Winsock headers.
6736 * include/win32-signal.h: New file.
6737 * include/win32-threads.h: New file.
6738 * win32-threads.cc: New file.
6739 * exception.cc (win32_get_restart_frame): New function.
6740 * prims.cc (win32_exception_handler): New function.
6741 (main_init) Performs Winsock initialisation.
6742 (main_init) Installs exeception handler.
6744 2000-03-14 Tom Tromey <tromey@cygnus.com>
6746 * jni.cc (mangled_name): Fixed assertion.
6747 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6748 turned assert into actual failure.
6750 2000-03-09 Warren Levy <warrenl@cygnus.com>
6752 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6753 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6754 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6756 2000-03-09 Warren Levy <warrenl@cygnus.com>
6758 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6759 * java/security/DigestException.java: New file.
6760 * java/security/GeneralSecurityException.java: New file.
6761 * java/security/InvalidAlgorithmParameterException.java: New file.
6762 * java/security/InvalidKeyException.java: New file.
6763 * java/security/InvalidParameterException.java: New file.
6764 * java/security/Key.java: New file.
6765 * java/security/KeyException.java: New file.
6766 * java/security/KeyPair.java: New file.
6767 * java/security/KeyPairGenerator.java: New file.
6768 * java/security/KeyPairGeneratorSpi.java: New file.
6769 * java/security/NoSuchProviderException.java: New file.
6770 * java/security/PrivateKey.java: New file.
6771 * java/security/Provider.java: New file.
6772 * java/security/PublicKey.java: New file.
6773 * java/security/SecureRandom.java: New file.
6774 * java/security/Security.java: New file.
6775 * java/security/Signature.java: New file.
6776 * java/security/SignatureException.java: New file.
6777 * java/security/interfaces/DSAKey.java: New file.
6778 * java/security/interfaces/DSAParams.java: New file.
6779 * java/security/interfaces/DSAPrivateKey.java: New file.
6780 * java/security/interfaces/DSAPublicKey.java: New file.
6781 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6782 * java/security/interfaces/RSAPrivateKey.java: New file.
6783 * java/security/interfaces/RSAPublicKey.java: New file.
6784 * java/security/spec/AlgorithmParameterSpec.java: New file.
6785 * java/security/spec/InvalidKeySpecException.java: New file.
6786 * java/security/spec/InvalidParameterSpecException.java: New file.
6787 * java/security/spec/KeySpec.java: New file.
6788 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6789 * java/security/spec/RSAPrivateKeySpec.java: New file.
6790 * java/security/spec/RSAPublicKeySpec.java: New file.
6791 * Makefile.am: Added above java.security files.
6792 * Makefile.in: Rebuilt.
6794 * java/security/MessageDigest.java: Rewritten.
6795 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6797 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6801 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6803 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6804 _Jv_PrepareConstantTimeTables.
6805 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6806 classes should have an IDT, so don't return if klass is an array
6809 2000-03-08 Tom Tromey <tromey@cygnus.com>
6811 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6812 of `void' to be created.
6814 2000-03-08 Warren Levy <warrenl@cygnus.com>
6816 * java/math/BigInteger.java(signum): Handle zero properly.
6818 2000-03-07 Tom Tromey <tromey@cygnus.com>
6820 * All files: Updated copyright information.
6821 * COPYING: New file.
6822 * COPYING.LIB: Removed.
6823 * LIBGCJ_LICENSE: We now use GPL + special exception.
6825 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6827 * resolve.cc (_Jv_SearchMethodInClass): New function.
6828 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6829 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6831 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6833 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6834 (struct _Jv_ifaces): New declaration.
6835 JV_CLASS: New macro definition.
6836 (getComponentType): Relocate below isArray() for inlining.
6837 (getModifiers): Declare `inline'.
6838 (getSuperclass): Ditto.
6840 (isPrimitive): Ditto.
6841 (_Jv_IsAssignableFrom): New prototype.
6842 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6844 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6845 Check for JV_STATE_DONE before invoking initializeClass().
6846 (_Jv_PrepareConstantTimeTables): New prototype.
6847 (_Jv_GetInterfaces): Ditto.
6848 (_Jv_GenerateITable): Ditto.
6849 (_Jv_GetMethodString): Ditto.
6850 (_Jv_AppendPartialITable): Ditto.
6851 (_Jv_FindIIndex): Ditto.
6852 depth, ancestors, idt: New class fields.
6854 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6855 inline function `_Jv_IsAssignableFrom'. Use that function.
6856 (isInstance): Declare `inline'.
6857 (initializeClass): Get lock on class before checking `state'. Unlock
6858 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6860 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6861 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6862 class->depth and ancestor table.
6863 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6864 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6865 _Jv_IsAssignableFrom.
6866 (_Jv_CheckArrayStore): Ditto.
6867 (_Jv_LookupInterfaceMethodIdx): New function.
6868 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6869 (_Jv_PrepareConstantTimeTables): New function.
6870 (_Jv_IndexOf): Ditto.
6871 (_Jv_GetInterfaces): Ditto.
6872 (_Jv_GenerateITable): Ditto.
6873 (_Jv_GetMethodString): Ditto.
6874 (_Jv_AppendPartialITable): Ditto.
6875 iindex_mutex, iindex_mutex_initialized: New static fields.
6876 (_Jv_FindIIndex): New function.
6878 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6880 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6881 (_Jv_CheckArrayStore): Ditto.
6882 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6883 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6884 Moved to gcj/array.h.
6885 (_Jv_Realloc): New function.
6887 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6889 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6890 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6891 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6892 JvNewDoubleArray): Implementations moved from prims.cc and
6895 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6897 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6899 2000-03-06 Tom Tromey <tromey@cygnus.com>
6901 * jni.cc (MARK_NONE): New define.
6902 (MARK_USER): Likewise.
6903 (MARK_SYSTEM): Likewise.
6904 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6906 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6907 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6908 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6909 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6911 (call): Use MARK_SYSTEM.
6912 (_Jv_GetJNIEnvNewFrame): New function.
6913 (_Jv_LookupJNIMethod): New function.
6914 (_Jv_JNI_PopSystemFrame): New function.
6915 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6917 2000-03-05 Tom Tromey <tromey@cygnus.com>
6919 Fix for PR libgcj/43:
6920 * include/Makefile.in: Rebuilt.
6921 * include/Makefile.am (include_HEADERS): New define.
6923 2000-03-05 Anthony Green <green@redhat.com>
6925 * gcj/javaprims.h ("Java"): Remove FirstThread.
6927 * configure.host: Fix __NO_MATH_INLNES botch.
6929 * Makefile.in: Rebuilt.
6930 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6931 (gnu/gcj/runtime/FirstThread.h): Moved.
6932 (ordinary_java_source_files): Move FirstThread.java.
6933 * prims.cc: Deal with FirstThread movement.
6935 (_Jv_RunMain): Ditto.
6937 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6938 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6940 2000-03-05 Warren Levy <warrenl@cygnus.com>
6942 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6943 Handle null addresses.
6945 2000-03-04 Anthony Green <green@redhat.com>
6947 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6950 2000-03-04 Anthony Green <green@redhat.com>
6952 * configure: Rebuilt.
6953 * configure.in (ZLIBTESTSPEC): New macro.
6954 (GCTESTSPEC): New macro.
6955 (LIBGCJTESTSPEC): New macro.
6956 * libgcj-test.spec.in: New file.
6958 2000-03-02 Tom Tromey <tromey@cygnus.com>
6960 * include/java-interp.h: Don't include MethodInvocation.h.
6961 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6962 * Makefile.in: Rebuilt.
6963 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6964 (ordinary_java_source_files): Don't mention
6965 MethodInvocation.java.
6966 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6967 * interpret.cc (MethodInvocation::continue1): Removed.
6968 (run): Handle exceptions here.
6969 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6971 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6973 (defineClass2): Removed.
6975 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6977 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6979 (hack_call): Removed.
6981 * java/lang/Class.h (Class): Removed hackRunInitializers,
6983 * java/lang/natClass.cc (hackRunInitializers): Removed.
6984 (initializeClass): Catch exceptions here.
6985 Include ExceptionInInitializerError.h.
6986 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6989 * java/lang/Object.h (Object): Don't mention hack12_6.
6990 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6992 * java/lang/Object.java (hack12_6): Removed.
6994 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6995 (start): Use run_, not run__.
6996 * java/lang/Thread.java (run_): Renamed from run__; old run_
6999 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7000 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7001 (_Jv_JNI_DefineClass): Likewise.
7002 (_Jv_JNI_ThrowNew): Likewise.
7003 (_Jv_JNI_AllocObject): Likewise.
7004 (_Jv_JNI_GetAnyMethodID): Likewise.
7005 (_Jv_JNI_CallAnyMethodV): Likewise.
7006 (_Jv_JNI_CallAnyMethodA): Likewise.
7007 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7008 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7009 (_Jv_JNI_GetAnyFieldID): Likewise.
7010 (_Jv_JNI_NewString): Likewise.
7011 (_Jv_JNI_NewStringUTF): Likewise.
7012 (_Jv_JNI_GetStringUTFChars): Likewise.
7013 (_Jv_JNI_NewObjectArray): Likewise.
7014 (_Jv_JNI_NewPrimitiveArray): Likewise.
7015 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7016 (_Jv_JNI_GetStringRegion): Likewise.
7017 (_Jv_JNI_GetStringUTFRegion): Likewise.
7018 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7019 (_Jv_JNI_MonitorEnter): Likewise.
7020 (_Jv_JNI_MonitorExit): Likewise.
7021 (_Jv_JNI_ToReflectedField): Likewise.
7022 (_Jv_JNI_ToReflectedMethod): Likewise.
7023 (_Jv_JNI_RegisterNatives): Likewise.
7024 (_Jv_JNI_AttachCurrentThread): Likewise.
7025 (_Jv_JNI_DestroyJavaVM): Likewise.
7027 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7029 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7030 error caused by the incorrect casting of a long to an int.
7032 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7034 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7035 SIGSEV caused by use of the wrong instance variable.
7037 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7039 * java/io/File.java (File(String, String)): For dirPath, treat an
7040 empty String the same as `null'.
7042 2000-02-26 Anthony Green <green@cygnus.com>
7044 * gnu/gcj/io/MimeTypes.java: Test for null.
7046 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7047 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7049 * java/net/URLConnection.java: Update copyright notice.
7051 2000-02-25 Tom Tromey <tromey@cygnus.com>
7053 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7056 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7058 * java/net/URLConnection.java (initializeDateFormats): New
7060 (getHeaderFieldDate): Call initializeDateFormats if required.
7061 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7063 Fix for PR libgcj/38.
7065 2000-02-24 Warren Levy <warrenl@cygnus.com>
7067 * java/math/BigInteger.java(ival): Made private.
7071 2000-02-20 Anthony Green <green@cygnus.com>
7073 * Makefile.in: Rebuilt.
7074 * Makefile.am (ordinary_java_source_files): Add
7075 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7077 * scripts/MakeDefaultMimeTypes.java: New file.
7078 * scripts/mime.types: New file.
7079 * scripts/classes.pl: Moved from top level.
7080 * classes.pl: Moved to scripts directory.
7082 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7084 * gnu/gcj/io/MimeTypes.java: New file.
7085 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7087 2000-02-20 Tom Tromey <tromey@cygnus.com>
7089 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7091 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7093 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7096 2000-02-18 Tom Tromey <tromey@cygnus.com>
7098 * include/jvm.h (_Jv_GetJavaVM): Declare.
7099 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7100 (_Jv_MethodBase::get_method): New method.
7101 (_Jv_JNIMethod::set_function): New method.
7102 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7103 (_Jv_JNI_RegisterNatives): New function.
7104 (_Jv_JNIFunctions): Updated for new functions.
7105 (_Jv_GetJavaVM): New function.
7106 (_Jv_JNI_GetJavaVM): Use it. Now static.
7107 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7108 is already a Java thread but does not have a JNIEnv yet.
7110 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7113 2000-02-17 Tom Tromey <tromey@cygnus.com>
7115 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7118 2000-02-16 Tom Tromey <tromey@cygnus.com>
7120 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7122 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7123 (_Jv_JNI_NewObject): Likewise.
7124 (_Jv_JNI_NewObjectA): Likewise.
7125 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7126 as "return" type to _Jv_CallAnyMethodA.
7127 (_Jv_JNI_CallAnyMethodA): Likewise.
7128 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7130 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7133 2000-02-15 Tom Tromey <tromey@cygnus.com>
7135 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7137 (init_cif): Added `rtype_p' argument.
7138 * include/java-interp.h (class _Jv_MethodBase): Added
7140 (class _Jv_InterpMethod): Removed args_raw_size.
7141 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7142 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7143 class pointer as well as the ordinary arguments.
7145 * jni.cc (mangled_name): Skip leading `(' in signature.
7147 * jni.cc (add_char): Added missing `else'.
7149 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7152 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7156 * java/lang/natRuntime.cc (_load): Include library path with
7159 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7162 * java/lang/natThread.cc (dumpStack): Removed.
7163 * java/lang/Thread.java (dumpStack): Implemented.
7165 2000-02-15 Tom Tromey <tromey@cygnus.com>
7167 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7168 with `lib' for loadLibrary. Fixes PR gcj/150.
7170 2000-02-14 Warren Levy <warrenl@cygnus.com>
7172 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7174 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7178 (modPow): Rewritten to not use the naive, slow, brute force approach.
7179 (isProbablePrime): Implemented.
7180 (testBit): Implemented.
7181 (flipBit): Implemented.
7182 (getLowestSetBit): Implemented.
7184 2000-02-16 Anthony Green <green@redhat.com>
7186 * configure.host: Use the same options for i386 and i486 as we do
7189 2000-02-12 Tom Tromey <tromey@cygnus.com>
7191 * java/io/File.java (createTempFile): Use low bits from counter,
7194 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7196 * THANKS: More thanks.
7198 2000-02-11 Tom Tromey <tromey@cygnus.com>
7200 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7201 astore instruction. From Hans Boehm.
7203 2000-02-11 Warren Levy <warrenl@cygnus.com>
7205 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7206 (BigInteger(String)): New constructor.
7207 (not): Rewritten using version from Kawa's BitOps class.
7208 (valueOf): New private methods from Kawa's BitOps class.
7215 (andNot): Implemented.
7216 (clearBit): Implemented.
7217 (setBit): Implemented.
7218 (bitCount): Implemented.
7219 (toByteArray): Implemented.
7221 2000-02-11 Tom Tromey <tromey@cygnus.com>
7223 * java/io/File.java (nextValue): Now synchronized.
7225 2000-02-10 Tom Tromey <tromey@cygnus.com>
7227 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7228 * java/io/FileDescriptor.java (EXCL): New static field.
7229 * java/io/File.java (tmpdir): New static field.
7230 (createTempFile): New method.
7231 (nextValue): New method.
7232 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7235 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7236 (jboolean): Declare as an attributed int, not a bool.
7237 (_Jv_func): Declare differently for C.
7239 * gnu/gcj/jni/natNativeThread.cc: New file.
7240 * gnu/gcj/jni/NativeThread.java: New file.
7241 * java/lang/Thread.java (data): Now a RawData.
7242 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7244 * Makefile.in: Rebuilt.
7245 * Makefile.am (java/lang/Thread.h): New target.
7246 (ordinary_java_source_files): Added NativeThread.java.
7247 (nat_source_files): Added natNativeThread.cc.
7248 * java/lang/natThread.cc: Include <jni.h>
7249 (struct natThread): Added `jni_env' field.
7250 (_Jv_GetCurrentJNIEnv): New function.
7251 (_Jv_SetCurrentJNIEnv): Likewise.
7252 (initialize_native): Initialize jni_env.
7254 * jni.cc (ThreadGroupClass): New define.
7255 (_Jv_JNI_InvokeFunctions): New structure.
7256 (JNI_GetCreatedJavaVMs): New function.
7257 (the_vm): New global.
7258 (JNI_GetDefaultJavaVMInitArgs): New function.
7259 Include NativeThread.h.
7260 (NativeThreadClass): New define.
7261 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7262 (_Jv_JNI_DestroyJavaVM): New function.
7263 (_Jv_JNI_AttachCurrentThread): New function.
7264 (_Jv_JNI_DetachCurrentThread): New function.
7265 (_Jv_JNI_GetEnv): New function.
7266 (JNI_CreateJavaVM): New function.
7267 (_Jv_JNI_GetJavaVM): New function.
7268 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7269 * include/jni.h (JavaVMAttachArgs): New structure.
7270 (JNI_EDETACHED): New define.
7271 (JNI_EVERSION): Likewise.
7272 (JavaVM): Define properly.
7273 (struct JNIInvokeInterface): New structure.
7274 (class _Jv_JavaVM): New class.
7275 (JNI_OnLoad, JNI_OnUnload): Declare.
7276 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7277 JNI_GetCreatedJavaVMs): Declare.
7278 (JavaVMInitArgs): New typedef.
7279 (JavaVMOption): Likewise.
7280 (JNI_ERR): New define.
7283 2000-02-10 Andrew Haley <aph@cygnus.com>
7285 * interpret.cc: Don't include fdlibm.h.
7286 Replace #if with #ifdef throughout.
7287 Declare extern __ieee754_fmod.
7288 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7290 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7291 Search class hierarchy for superclass vtable.
7293 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7294 off the end of a pointer list.
7296 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7300 2000-02-09 Tom Tromey <tromey@cygnus.com>
7302 * java/lang/natRuntime.cc (_load): Call add_library.
7303 (loadLibraryInternal): Likewise.
7305 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7306 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7307 (Output_iconv::finalize): Likewise.
7309 2000-02-08 Tom Tromey <tromey@cygnus.com>
7311 * java/util/Properties.java (setProperty): New method.
7312 (store): New method.
7314 2000-02-07 Tom Tromey <tromey@cygnus.com>
7316 * java/lang/Runtime.java (_load): Declare.
7317 (load, loadLibrary): Wrote in terms of _load.
7318 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7320 (loadLibrary): Likewise.
7322 (_load): New method.
7323 (loadLibrary, load): Removed.
7325 * jni.cc (ThrowableClass): New define.
7326 (_Jv_JNI_Throw): Check argument.
7327 (_Jv_JNI_ThrowNew): Likewise.
7328 (wrap_value): Don't wrap object if it is NULL.
7329 (_Jv_JNI_DefineClass): Use wrap_value.
7330 (_Jv_JNI_FindClass): Likewise.
7331 (_Jv_JNI_GetSuperclass): Likewise.
7332 (_Jv_JNI_ExceptionOccurred): Likewise.
7333 (_Jv_JNI_AllocObject): Likewise.
7334 (_Jv_JNI_GetObjectClass): Likewise.
7335 (_Jv_JNI_NewString): Likewise.
7336 (_Jv_JNI_NewStringUTF): Likewise.
7337 (_Jv_JNI_NewObjectArray): Likewise.
7338 (_Jv_JNI_GetObjectArrayElement): Likewise.
7339 (_Jv_JNI_NewPrimitiveArray): Likewise.
7340 (_Jv_JNI_ToReflectedField): Likewise.
7341 (_Jv_JNI_ToReflectedMethod): Likewise.
7342 (_Jv_JNI_AllocObject): Check argument.
7343 (_Jv_JNI_NewObjectV): Likewise.
7344 (_Jv_JNI_NewObject): Likewise.
7345 (_Jv_JNI_NewObjectA): Likewise.
7346 (_Jv_JNI_GetObjectClass): Likewise.
7347 (_Jv_JNI_GetField): Likewise.
7348 (_Jv_JNI_SetField): Likewise.
7350 * interpret.cc (PUSHL): Don't use expression statement.
7355 * jni.cc (add_char): Conditional on INTERPRETER.
7356 (mangled_name): Likewise.
7358 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7360 (class _Jv_JNIMethod): Likewise.
7362 2000-02-04 Warren Levy <warrenl@cygnus.com>
7364 * Makefile.am: Added MPN.java and BigInteger.java.
7365 * Makefile.in: Rebuilt.
7366 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7368 * java/math/BigInteger.java: New file. Based primarily on
7369 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7371 2000-02-04 Tom Tromey <tromey@cygnus.com>
7373 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7375 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7376 if the method is native.
7377 * resolve.cc (ncode): Don't handle native methods.
7378 (_Jv_JNIMethod::ncode): New method.
7379 (_Jv_PrepareClass): Handle native methods.
7380 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7381 Include AbstractMethodError.h.
7382 (add_char): New function.
7383 (mangled_name): Likewise.
7384 * include/java-interp.h (class _Jv_JNIMethod): New class.
7385 (class _Jv_MethodBase): New class.
7386 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7387 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7390 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7391 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7392 libraries): New globals.
7393 (add_library): New function.
7394 (_Jv_FindSymbolInExecutable): New function.
7396 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7399 2000-02-04 Andrew Haley <aph@cygnus.com>
7401 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7402 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7403 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7404 printStackTrace to printRawStackTrace.
7406 2000-02-03 Tom Tromey <tromey@cygnus.com>
7408 * java/util/Calendar.java (toString): New method.
7409 * java/util/SimpleTimeZone.java (clone): New method.
7410 (toString): New method.
7411 * java/util/TimeZone.java (clone): New method.
7412 * java/text/SimpleDateFormat.java (clone): New method.
7413 * java/text/NumberFormat.java (clone): New method.
7414 (equals): New method.
7415 * java/text/Format.java (clone): New method.
7416 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7418 (clone): New method.
7419 * java/text/DateFormat.java (clone): New method.
7420 * java/text/Collator.java (clone): New method.
7422 2000-02-03 Tom Tromey <tromey@cygnus.com>
7424 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7427 2000-02-01 Tom Tromey <tromey@cygnus.com>
7429 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7430 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7431 constructing the closure if the function is native.
7432 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7433 a template function, #if'd out, or static.
7434 Include <java-interp.h>.
7436 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7438 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7440 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7441 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7443 (wrap_value): New function.
7444 (_Jv_JNI_CallAnyMethodV): Use it.
7445 (_Jv_JNI_CallAnyMethodA): Likewise.
7446 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7447 (_Jv_JNI_GetStaticField): Likewise.
7449 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7450 (_Jv_JNI_GetStaticField): Likewise.
7452 2000-01-31 Tom Tromey <tromey@cygnus.com>
7454 * prims.cc (_Jv_MallocUnchecked): New function.
7455 (main_init): Call _Jv_JNI_Init.
7456 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7457 (_Jv_JNI_Init): Declare.
7458 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7460 (_Jv_JNI_NewGlobalRef): New function.
7461 (_Jv_JNI_DeleteGlobalRef): New function.
7462 (_Jv_JNI_DeleteLocalRef): New function.
7463 (_Jv_JNI_conversion_call): Initialize and clear local reference
7465 (_Jv_JNI_NewLocalRef): New function.
7466 (struct _Jv_JNI_LocalFrame): New structure.
7467 (_Jv_JNI_PushLocalFrame): New function.
7468 (_Jv_JNI_EnsureLocalCapacity): New function.
7469 (FRAME_SIZE): New define.
7470 (_Jv_JNI_GetStringChars): Mark string, not characters.
7471 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7472 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7473 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7475 (_Jv_JNI_DefineClass): Make return value a local ref.
7476 (_Jv_JNI_FindClass): Likewise.
7477 (_Jv_JNI_GetSuperclass): Likewise.
7478 (_Jv_JNI_ExceptionOccurred): Likewise.
7479 (_Jv_JNI_AllocObject): Likewise.
7480 (_Jv_JNI_GetObjectClass): Likewise.
7481 (_Jv_JNI_CallAnyMethodV): Likewise.
7482 (_Jv_JNI_NewString): Likewise.
7483 (_Jv_JNI_NewStringUTF): Likewise.
7484 (_Jv_JNI_NewObjectArray): Likewise.
7485 (_Jv_JNI_GetObjectArrayElement): Likewise.
7486 (_Jv_JNI_ToReflectedField): Likewise.
7487 (_Jv_JNI_ToReflectedMethod): Likewise.
7488 (_Jv_JNIFunctions): Updated table for new functions.
7489 (_Jv_JNI_Init): New function.
7490 (mark_for_gc): Wrote.
7491 (unmark_for_gc): Wrote.
7492 * include/jni.h (struct JNINativeInterface): Removed name from
7493 PopLocalFrame parameter.
7494 (class _Jv_JNIEnv): Added `locals' field.
7496 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7498 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7501 2000-01-30 Tom Tromey <tromey@cygnus.com>
7503 * include/config.h.in: Rebuilt.
7504 * acconfig.h (HAVE_ICONV): Define.
7505 * configure: Rebuilt.
7506 * configure.in: Check for `iconv' function.
7507 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7508 no specific encoder exists.
7509 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7510 no specific encoder exists.
7511 * Makefile.in: Rebuilt.
7512 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7514 (nat_source_files): Added natIconv.cc.
7515 * gnu/gcj/convert/natIconv.cc: New file.
7516 * gnu/gcj/convert/Input_iconv.java: New file.
7517 * gnu/gcj/convert/Output_iconv.java: New file.
7519 2000-01-28 Tom Tromey <tromey@cygnus.com>
7521 * Makefile.in: Rebuilt.
7522 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7524 2000-01-26 Tom Tromey <tromey@cygnus.com>
7526 * gcj/method.h (JvNumMethods): Moved from Class.h.
7527 (JvGetFirstMethod): Likewise.
7528 * java/lang/Class.h (Object): Updated decl of
7529 _Jv_JNI_ToReflectedField.
7530 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7531 * Makefile.in: Rebuilt.
7532 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7533 argument of _Jv_JNI_ToReflectedField.
7534 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7536 (java/lang/reflect/Method.h): Likewise.
7537 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7539 (jweak): New typedef.
7540 (struct JNINativeInterface): Correctly declare remaining entries.
7541 * jni.cc: Include Class.h, ClassLoader.h.
7542 (_Jv_JNI_FindClass): New function.
7543 (_Jv_JNI_DefineClass): New function.
7544 (_Jv_JNI_conversion_call): New function.
7545 (_Jv_JNI_FindClass): Use current class loader to find class.
7546 (_Jv_JNI_ExceptionCheck): New function.
7547 (_Jv_JNI_FromReflectedField): Now static.
7548 (MethodClass): New define.
7549 (_Jv_JNI_FromReflectedMethod): New function.
7550 (_Jv_JNI_ToReflectedMethod): Likewise.
7552 (_Jv_JNI_IsAssignableFrom): Renamed.
7553 (_Jv_JNI_GetStringRegion): New function.
7554 Include StringIndexOutOfBoundsException.h.
7555 (_Jv_JNI_GetStringUTFRegion): New function.
7556 (_Jv_JNIFunctions): Updated for new functions.
7557 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7558 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7559 (_Jv_JNI_GetStringCritical): New function.
7560 (_Jv_JNI_ReleaseStringCritical): Likewise.
7561 (get_throwable): Removed.
7562 (GCJ_JV_JNIENV_FRIEND): Removed.
7563 (__GCJ_JNI_IMPL__): Define.
7566 * resolve.cc (get_ffi_type_from_signature): Handle case where
7569 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7571 * interpret.cc (run): Don't call println.
7572 Don't include PrintStream.h.
7574 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7575 nameIndex. Use "jint" as type for boffset.
7576 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7578 (Class): Likewise. Also changed type of method_count,
7579 vtable_method_count, size_in_bytes, field_count,
7580 static_field_count, interface_count.
7581 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7584 2000-01-21 Tom Tromey <tromey@cygnus.com>
7586 * java/lang/reflect/natConstructor.cc (newInstance): Use
7588 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7589 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7590 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7593 (invoke): Use _Jv_CallAnyMethodA.
7595 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7596 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7598 (struct _Jv_Method): Added getNextMethod method.
7599 (JvNumMethods): New function.
7600 (JvGetFirstMethod): Likewise.
7601 * gcj/field.h (JvGetFirstStaticField): New function.
7602 (JvNumStaticFields): Likewise.
7603 (getNextField): Renamed from getNextInstanceField.
7604 (struct _Jv_Field): New method getClass.
7605 * jni.cc: Wrote many new functions.
7606 * include/jni.h (JNI_TRUE): Define.
7607 (JNI_FALSE): Likewise.
7608 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7609 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7610 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7611 (jfieldID, jmethodID): Likewise.
7612 (JNI_COMMIT, JNI_ABORT): New defines.
7613 (JNINativeMethod): New struct.
7614 (struct JNINativeInterface): Correctly declared more entries.
7615 (class _Jv_JNIEnv): Added `ex' member.
7616 (JNI_VERSION_1_1): New define.
7617 (JNI_VERSION_1_2): Likewise.
7619 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7620 getNextInstanceField.
7622 2000-01-20 Tom Tromey <tromey@cygnus.com>
7624 * resolve.cc (StringClass): Removed.
7625 * defineclass.cc (StringClass): Removed.
7627 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7631 2000-01-19 Tom Tromey <tromey@cygnus.com>
7633 * interpret.cc (PC_REGISTER_ASM): Removed.
7635 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7636 From Bryce McKinlay.
7638 * All files: Updated copyright to reflect Cygnus purchase.
7640 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7642 * configure: Rebuilt.
7643 * configure.in: Recognize --disable-interpreter.
7645 2000-01-18 Andrew Haley <aph@cygnus.com>
7647 * name-finder.cc (lookup): Check for dladdr function.
7648 acconfig.h (HAVE_DLADDR): Add.
7649 configure.in: Check for HAVE_DLADDR
7651 include/config.h.in: Rebuilt.
7653 2000-01-17 Andrew Haley <aph@cygnus.com>
7655 * prims.cc (_Jv_RunMain): Set the name of this executable.
7657 2000-01-17 Tom Tromey <tromey@cygnus.com>
7659 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7660 when backtrace can't be computed.
7662 * configure: Rebuilt.
7663 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7665 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7666 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7667 (_Jv_FindClassInCache): Likewise.
7668 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7669 (findSystemClass): Try to load class from compiled module.
7671 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7672 (loadLibrary): Likewise.
7673 (lt_preloaded_symbols): Define.
7674 (loadLibraryInternal): New method.
7675 * include/config.h.in: Rebuilt.
7676 * acconfig.h (USE_LTDL): Added.
7677 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7678 (INCLUDES): Added $(INCLTDL).
7679 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7680 (libgcj_la_LIBADD): Likewise.
7681 * aclocal.m4, configure: Rebuilt.
7682 * configure.in: Added libltdl support.
7684 2000-01-15 Tom Tromey <tromey@cygnus.com>
7686 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7688 2000-01-14 Andrew Haley <aph@cygnus.com>
7690 * java/lang/natThrowable.cc: New file.
7692 * java/lang/Throwable.java (fillInStackTrace): Make native.
7693 (printStackTrace): Call native method to do this.
7694 (Throwable): Call fillInStackTrace.
7695 (stackTrace): New variable.
7697 * include/jvm.h: Add _Jv_ThisExecutable functions.
7699 * prims.cc: (_Jv_execName): New variable.
7700 (catch_segv): Call fillInStackTrace.
7702 (_Jv_ThisExecutable): New functions.
7703 (JvRunMain): Set the name of this executable.
7705 * Makefile.am: Add java/lang/natThrowable.cc.
7707 * Makefile.in: Rebuilt.
7709 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7711 * configure.in: Force link with __frame_state_for in
7712 FORCELIBGCCSPEC. Add new checks for backtrace.
7713 * include/config.h.in: Rebuilt.
7715 * name-finder.cc: New file.
7716 * include/name-finder.h: New file.
7718 2000-01-16 Anthony Green <green@cygnus.com>
7720 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7723 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7725 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7727 2000-01-13 Tom Tromey <tromey@cygnus.com>
7729 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7730 not system loader, as initiating loader.
7732 2000-01-11 Tom Tromey <tromey@cygnus.com>
7734 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7735 HP/UX. From David Scott Urban.
7737 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7739 * java/lang/natMath.cc (pow): Cast args to `double', not
7742 (IEEEremainder): Likewise.
7743 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7744 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7746 2000-01-09 Anthony Green <green@cygnus.com>
7748 * java/lang/natString.cc (init): Test for overflow condition
7749 during out of bounds check.
7750 (getChars): Throw StringIndexOutOfBoundsException, not
7751 ArrayIndexOutOfBoundsException.
7753 (regionMatches): Obey case option during string comparison.
7755 * configure.host (ligcj_interpreter): New variable. Enable
7756 interpreter by default on IA-32.
7757 * configure.in: Examine libgcj_interpreter.
7758 * configure: Rebuilt.
7760 2000-01-07 Tom Tromey <tromey@cygnus.com>
7762 * mauve-libgcj: Don't disable ClassTest.
7764 * java/lang/natClass.cc (getClasses): Wrote.
7766 2000-01-06 Tom Tromey <tromey@cygnus.com>
7768 * java/lang/natClass.cc (_getConstructors): Correctly check
7769 whether method name is the init name.
7770 (getMethod): Look at accflags on method in `klass', not `this'.
7772 2000-01-05 Tom Tromey <tromey@cygnus.com>
7774 * java/lang/natClass.cc (getMethod): Compute offset relative to
7775 `klass's methods table, not `this's table.
7777 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7778 In unwrapping/widening case, check whether `k' is null, not
7779 whether it is primitive. Initialize `num' from `argelts', not
7780 `paramelts'. Correct create and pass arguments to ffi_call.
7781 Don't let presence of `this' argument affect index used to look in
7783 (COPY): Set appropriate element in `values' vector.
7785 * java/lang/natClass.cc: Include <gcj/method.h>.
7787 * java/lang/Class.h (_getMethods): Correctly declare as private,
7790 * java/lang/Class.h (_getMethods): Declare.
7791 * java/lang/Class.java (_getMethods): Declare.
7792 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7793 (getDeclaredClasses): Always return empty array.
7794 (_getMethods): New method.
7795 (getMethods): Wrote.
7796 (getDeclaredMethod): Return `rmethod'.
7797 (finit_name): New global.
7798 (getDeclaredMethods): Check for finit_name.
7799 (_getMethods): Likewise.
7800 (getMethod): Only return public methods.
7802 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7803 jboolean and select correct ffi type on that basis.
7804 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7805 Constructor call always has `void' return type.
7807 2000-01-04 Tom Tromey <tromey@cygnus.com>
7809 * java/lang/Class.h (getSignature): Updated.
7810 * java/lang/Class.java (getSignature): Updated.
7811 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7813 (getConstructor): Ensure constructor is public.
7814 (_getConstructors): Check for public-ness of constructor when
7815 `declared' is false, not when it is true.
7817 2000-01-04 Warren Levy <warrenl@cygnus.com>
7819 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7821 (receive): Set the sender's address in the DatagramPacket.
7823 2000-01-04 Tom Tromey <tromey@cygnus.com>
7825 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7826 declaring class as return_type argument to
7827 _Jv_CallNonvirtualMethodA.
7828 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7829 constructor case, create object and use it as `this' argument.
7830 * java/lang/Class.h (_getConstructors): Declare.
7831 (_getFields): Declare.
7832 * java/lang/Class.java (getConstructors): Wrote.
7833 (_getConstructors): New native method.
7834 (getDeclaredConstructors): Wrote.
7835 (_getFields): Declare new native method.
7836 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7838 (getMethod): Work correctly when class is primitive.
7839 (getDeclaredMethods): Likewise. Compute offset using `method',
7841 (getDeclaredMethod): Likewise.
7842 (getConstructor): Wrote.
7843 (ConstructorClass): New define.
7844 (getDeclaredConstructor): Wrote.
7845 (_getConstructors): New method.
7846 (_getFields): New method.
7849 * Makefile.in: Rebuilt.
7850 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7852 * prims.cc: Remove `#pragma implementation'.
7853 * gcj/array.h: Remove `#pragma interface'.
7855 * prims.cc (_Jv_equaln): New function.
7856 * java/lang/Class.java (getSignature): Declare.
7857 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7858 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7860 (getSignature): New method.
7861 (getDeclaredMethod): Wrote.
7863 Include StringBuffer.h.
7864 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7865 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7867 (getSignature): Declare.
7868 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7869 (_Jv_equaln): Declare.
7870 (_Jv_CallNonvirtualMethodA): Declare.
7871 * Makefile.in: Rebuilt.
7872 * Makefile.am (nat_source_files): Added natConstructor.cc.
7873 (java/lang/reflect/Constructor.h): New target.
7874 * java/lang/reflect/natConstructor.cc: New file.
7875 * java/lang/reflect/Constructor.java (newInstance): Now native.
7876 (declaringClass): Renamed from decl_class.
7877 (offset): Renamed from index.
7878 (getType): New native method.
7879 (getModifiers): Now native.
7880 (getParameterTypes): Call getType if required.
7881 (hashCode): Include hash code from declaring class.
7882 (modifiers): Removed.
7883 (toString): Call getType if required.
7884 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7885 * java/lang/reflect/natMethod.cc (hack_call): New method.
7886 Removed `#if 0' around FFI code.
7887 Include <gnu/gcj/RawData.h>.
7888 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7889 IllegalArgumentException when argument object and class disagree.
7890 (_Jv_GetTypesFromSignature): New function.
7892 (ObjectClass): New define.
7893 (_Jv_CallNonvirtualMethodA): New function.
7894 * java/lang/reflect/Method.java (hack_trampoline): New method.
7895 (hack_call): New native method.