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