1 2001-09-03 Tom Tromey <tromey@redhat.com>
3 * java/lang/reflect/natField.cc (set): Allow for case when the
4 value is null. Fixes PR libgcj/4208.
6 * gcj/javaprims.h: Regenerated class list.
7 * java/lang/IllegalThreadStateException.java,
8 java/lang/InstantiationException.java: Minor comment tweaks to
9 satisfy libgcj `classes.pl' script.
11 2001-09-01 Tom Tromey <tromey@redhat.com>
13 * Makefile.in: Rebuilt.
14 * Makefile.am (core_java_source_files): Added
15 UnsupportedClassVersionError.
16 * java/lang/UnsupportedClassVersionError.java: New file from
19 * java/io/CharConversionException.java, java/io/EOFException.java,
20 java/io/FileNotFoundException.java, java/io/IOException.java,
21 java/io/InterruptedIOException.java,
22 java/io/ObjectStreamException.java,
23 java/io/OptionalDataException.java,
24 java/io/StreamCorruptedException.java,
25 java/io/SyncFailedException.java,
26 java/io/UTFDataFormatException.java,
27 java/io/UnsupportedEncodingException.java,
28 java/lang/AbstractMethodError.java,
29 java/lang/ArithmeticException.java,
30 java/lang/ArrayIndexOutOfBoundsException.java,
31 java/lang/ArrayStoreException.java,
32 java/lang/ClassCastException.java,
33 java/lang/ClassCircularityError.java,
34 java/lang/ClassFormatError.java,
35 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
36 java/lang/Exception.java,
37 java/lang/ExceptionInInitializerError.java,
38 java/lang/IllegalAccessError.java,
39 java/lang/IllegalAccessException.java,
40 java/lang/IllegalArgumentException.java,
41 java/lang/IllegalMonitorStateException.java,
42 java/lang/IllegalStateException.java,
43 java/lang/IllegalThreadStateException.java,
44 java/lang/IncompatibleClassChangeError.java,
45 java/lang/IndexOutOfBoundsException.java,
46 java/lang/InstantiationError.java,
47 java/lang/InstantiationException.java,
48 java/lang/InternalError.java, java/lang/InterruptedException.java,
49 java/lang/LinkageError.java,
50 java/lang/NegativeArraySizeException.java,
51 java/lang/NoClassDefFoundError.java,
52 java/lang/NoSuchFieldError.java,
53 java/lang/NoSuchFieldException.java,
54 java/lang/NoSuchMethodError.java,
55 java/lang/NoSuchMethodException.java,
56 java/lang/NullPointerException.java,
57 java/lang/NumberFormatException.java,
58 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
59 java/lang/SecurityException.java,
60 java/lang/StackOverflowError.java,
61 java/lang/StringIndexOutOfBoundsException.java,
62 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
63 java/lang/UnsatisfiedLinkError.java,
64 java/lang/UnsupportedOperationException.java,
65 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
66 java/lang/reflect/InvocationTargetException.java,
67 java/net/BindException.java, java/net/ConnectException.java,
68 java/net/MalformedURLException.java,
69 java/net/NoRouteToHostException.java,
70 java/net/ProtocolException.java, java/net/SocketException.java,
71 java/net/UnknownHostException.java,
72 java/net/UnknownServiceException.java,
73 java/text/ParseException.java: Copied from Classpath, thanks to
74 Mark Wielaard who did the merge.
76 * java/lang/System.java (getProperty): Use single argument form of
77 SecurityManager.checkPropertyAccess.
78 * Makefile.in: Rebuilt.
79 * Makefile.am (core_java_source_files): Added VMSecurityManager.
80 * java/lang/VMSecurityManager.java: New file.
81 * java/lang/SecurityManager.java: Merged with Classpath.
83 2001-08-31 Per Bothner <per@bothner.com>
85 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
86 (_Jv_RegisterClassHookDefault): Likewise.
87 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
88 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
89 (_Jv_RegisterClassHookDefault): New.function.
90 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
92 * java/lang/ClassLoader.java (system): Remove static field.
93 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
94 directly instead of using it to set the system field.
95 (loadClass): Use VMClassLoader.instance instead of system field.
96 (findSystemClass): Similar.
97 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
98 than ClassLoader::system which no longer exists.
99 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
101 2001-08-31 Tom Tromey <tromey@redhat.com>
103 * java/io/BufferedReader.java, java/io/ObjectInput.java,
104 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
105 Re-merged with Classpath.
107 Re-merge with Classpath:
108 * java/util/Comparator (equals): Added.
109 * java/io/PipedWriter.java (write): Changed argument to `int'.
111 * java/io/FileDescriptor.java (FileDescriptor()): New
113 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
115 * Makefile.in: Rebuilt.
116 * Makefile.am (ordinary_java_source_files): Removed
117 EnumerationChain, added DoubleEnumeration.
118 (nat_source_files): Added natResourceBundle.cc.
119 * java/util/natResourceBundle.cc: New file.
120 * gnu/java/util/DoubleEnumeration.java: New file.
121 * gnu/gcj/util/EnumerationChain.java: Removed.
122 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
123 * java/util/ResourceBundle.java: Merged with Classpath.
124 * java/util/StringTokenizer.java: Merged with Classpath.
125 * java/util/Locale.java: Merged with Classpath.
126 * java/util/Random.java: Merged with Classpath.
127 * java/util/PropertyResourceBundle.java: Merged with Classpath.
128 * java/util/ListResourceBundle.java: Merged with Classpath.
129 * java/util/ConcurrentModificationException.java: Re-merged with
131 * java/util/EmptyStackException.java: Likewise.
132 * java/util/MissingResourceException.java: Likewise.
133 * java/util/NoSuchElementException.java: Likewise.
134 * java/util/TooManyListenersException.java: Likewise.
136 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
137 * java/io/OptionalDataException.java: Merged with Classpath.
139 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
141 * exception.cc (PERSONALITY_FUNCTION): Simplify
144 2001-08-31 Tom Tromey <tromey@redhat.com>
146 * java/io/ByteArrayInputStream.java: Merged with Classpath.
148 2001-08-30 Tom Tromey <tromey@redhat.com>
150 * java/io/BufferedReader.java: Re-merged with Classpath.
152 2001-08-28 Per Bothner <per@bothner.com>
154 * java/math/BigInteger.java (init(int,Random)): New method.
155 Move body of constructor <init>(int,Random)) here.
156 Re-write it to avoid constructing unneeded temporaries.
157 (<init>(int,int,Random)): Use new init method to avoid constructing
158 extra temporary BigIntegers.
160 2001-08-27 Tom Tromey <tromey@redhat.com>
162 * java/rmi/activation/Activatable.java,
163 java/rmi/activation/ActivateFailedException.java,
164 java/rmi/activation/ActivationDesc.java,
165 java/rmi/activation/ActivationException.java,
166 java/rmi/activation/ActivationGroup.java,
167 java/rmi/activation/ActivationGroupDesc.java,
168 java/rmi/activation/ActivationGroupID.java,
169 java/rmi/activation/ActivationID.java,
170 java/rmi/activation/ActivationInstantiator.java,
171 java/rmi/activation/ActivationMonitor.java,
172 java/rmi/activation/ActivationSystem.java,
173 java/rmi/activation/Activator.java,
174 java/rmi/activation/UnknownGroupException.java,
175 java/rmi/activation/UnknownObjectException.java,
176 java/rmi/AccessException.java,
177 java/rmi/AlreadyBoundException.java,
178 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
179 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
180 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
181 java/rmi/NotBoundException.java,
182 java/rmi/RMISecurityException.java,
183 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
184 java/rmi/RemoteException.java, java/rmi/ServerError.java,
185 java/rmi/ServerException.java,
186 java/rmi/ServerRuntimeException.java,
187 java/rmi/StubNotFoundException.java,
188 java/rmi/UnexpectedException.java,
189 java/rmi/UnknownHostException.java,
190 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
191 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
192 java/rmi/registry/LocateRegistry.java,
193 java/rmi/registry/Registry.java,
194 java/rmi/registry/RegistryHandler.java,
195 java/rmi/server/ExportException.java,
196 java/rmi/server/LoaderHandler.java,
197 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
198 java/rmi/server/Operation.java,
199 java/rmi/server/RMIClassLoader.java,
200 java/rmi/server/RMIClientSocketFactory.java,
201 java/rmi/server/RMIFailureHandler.java,
202 java/rmi/server/RMIServerSocketFactory.java,
203 java/rmi/server/RMISocketFactory.java,
204 java/rmi/server/RemoteCall.java,
205 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
206 java/rmi/server/RemoteServer.java,
207 java/rmi/server/RemoteStub.java,
208 java/rmi/server/ServerCloneException.java,
209 java/rmi/server/ServerNotActiveException.java,
210 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
211 java/rmi/server/SkeletonMismatchException.java,
212 java/rmi/server/SkeletonNotFoundException.java,
213 java/rmi/server/SocketSecurityException.java,
214 java/rmi/server/UID.java,
215 java/rmi/server/UnicastRemoteObject.java,
216 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
217 gnu/java/rmi/dgc/DGCImpl_Skel.java,
218 gnu/java/rmi/dgc/DGCImpl_Stub.java,
219 gnu/java/rmi/registry/RegistryImpl.java,
220 gnu/java/rmi/registry/RegistryImpl_Skel.java,
221 gnu/java/rmi/registry/RegistryImpl_Stub.java,
222 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
223 gnu/java/rmi/server/ProtocolConstants.java,
224 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
225 gnu/java/rmi/server/RMIHashes.java,
226 gnu/java/rmi/server/RMIObjectInputStream.java,
227 gnu/java/rmi/server/RMIObjectOutputStream.java,
228 gnu/java/rmi/server/UnicastConnection.java,
229 gnu/java/rmi/server/UnicastConnectionManager.java,
230 gnu/java/rmi/server/UnicastRef.java,
231 gnu/java/rmi/server/UnicastRemoteCall.java,
232 gnu/java/rmi/server/UnicastRemoteStub.java,
233 gnu/java/rmi/server/UnicastServer.java,
234 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
235 Kaffe. Relabelled classes to fit into Classpath tree.
236 * Makefile.in: Rebuilt.
237 * Makefile.am (rmi_java_source_files): New macro.
238 (ordinary_java_source_files): Reference it.
239 (bin_PROGRAMS): Added rmic and rmiregistry.
240 (rmic_SOURCES): New macro.
241 (EXTRA_rmic_SOURCES): Likewise.
242 (rmic_LDFLAGS): Likewise.
243 (rmic_LINK): Likewise.
244 (rmic_LDADD): Likewise.
245 (rmic_DEPENDENCIES): Likewise.
246 (rmiregistry_SOURCES): New macro.
247 (EXTRA_rmiregistry_SOURCES): Likewise.
248 (rmiregistry_LDFLAGS): Likewise.
249 (rmiregistry_LINK): Likewise.
250 (rmiregistry_LDADD): Likewise.
251 (rmiregistry_DEPENDENCIES): Likewise.
253 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
255 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
257 * Makefile.am: New friends for java/lang/Thread.h.
258 * prims.cc (runFirst): Removed.
259 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
260 (_Jv_RunMain): Now takes either a klass or class name parameter.
261 Create a gnu.gcj.runtime.FirstThread and attach the native thread
262 to that, then run it using _Jv_ThreadRun. Remove special handling of
263 jar files, instead pass is_jar parameter through to FirstThread.
264 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
265 of _Jv_AttachCurrentThread.
266 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
267 (run): New method. Take care of looking up main class manifest
268 attribute and calling forName if neccessary. Then call call_main.
269 (call_main): New native method.
270 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
271 relocated from prims.cc. Look up and call main method.
272 * java/lang/Thread.java (run_): Removed.
273 * java/lang/natThread.cc (run_): Renamed to...
274 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
275 (_Jv_NotifyThreadStart): here. New function.
276 (countStackFrames, destroy, resume, suspend, stop): Throw
277 UnsupportedOperationExceptions rather than JvFail'ing.
278 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
279 Existing version wraps new variant.
282 2001-08-23 Tom Tromey <tromey@redhat.com>
284 * java/lang/reflect/Field.java (toString): Use
285 Method.appendClassName.
286 * java/lang/reflect/Constructor.java (toString): Use
287 Method.appendClassName.
288 * java/lang/reflect/Method.java: Reindented.
289 (appendClassName): New method.
291 * defineclass.cc (handleMethod ): Initialize `throws' field of
293 (read_one_method_attribute): Handle Exceptions attribute.
294 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
295 (ObjectClass): Removed.
296 (getType): Compute `exception_types'.
297 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
299 2001-08-21 Anthony Green <green@redhat.com>
301 * java/lang/natClassLoader.cc (findClass): Search for
302 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
304 2001-08-21 Jeff Sturm <jsturm@one-point.com>
306 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
309 2001-08-20 Tom Tromey <tromey@redhat.com>
311 * java/awt/GridBagConstraints.java: Removed comment.
313 * jni.cc (nathash, nathash_count, nathash_size): New globals.
314 (DELETED_ENTRY): New define.
315 (hash): New function.
316 (nathash_find_slot): Likewise.
317 (natrehash): Likewise.
318 (nathash_add): Likewise.
319 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
321 (nathash_find): New function.
322 (_Jv_LookupJNIMethod): Use it. Synchronize body.
323 (call): Synchronize around assignment.
325 2001-08-17 Jeff Sturm <jsturm@one-point.com>
327 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
328 starting from zero offset.
330 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
332 * boehm.cc: Include gc_local_alloc.h if appropriate.
333 (GC_GENERIC_MALLOC): Don't define.
334 (MAYBE_MARK): Redefine for GC 6.0.
335 (_Jv_MarkObj): Mark class differently.
336 (_Jv_AllocArray): Use GC_generic_malloc.
338 2001-08-17 Mark J Roberts <mjr@anarcast.net>
340 * java/math/BigInteger.java (randBytes): New method.
341 (BigInteger(int,Random)): Use randBytes.
343 2001-08-17 Tom Tromey <tromey@redhat.com>
345 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
347 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
349 * BigInteger.java: fix right shifts by nonzero multiples of 32.
351 2001-08-15 Tom Tromey <tromey@redhat.com>
353 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
354 (local_ref_table, global_ref_table): Now IdentityHashMap.
355 (_Jv_JNI_Init): Updated for new types.
356 (mark_for_gc): Likewise.
357 (unmark_for_gc): Likewise.
358 * gcj/javaprims.h: Rebuilt class list.
359 * Makefile.in: Rebuilt.
360 * Makefile.am (core_java_source_files): Added new file.
361 * java/util/IdentityHashMap.java: New file.
363 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
366 2001-08-09 Tom Tromey <tromey@redhat.com>
368 * java/awt/image/SampleModel.java (getPixel): Set correct array
369 element. From Chris Meyer.
371 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
373 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
374 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
376 2001-08-06 Tom Tromey <tromey@redhat.com>
378 * java/io/InputStreamReader.java (refill): Only call refill on
379 BufferedInputStream when appropriate constraints are met.
381 2001-08-05 Tom Tromey <tromey@redhat.com>
383 * java/io/StringWriter.java: Merged with Classpath.
384 * java/io/InputStream.java: Merged with Classpath.
385 * java/io/OutputStream.java: Merged with Classpath.
386 * java/io/PushbackInputStream.java: Merged with Classpath.
387 * java/io/CharArrayReader.java: Merged with Classpath.
388 * java/io/CharArrayWriter.java: Merged with Classpath.
390 2001-08-02 Tom Tromey <tromey@redhat.com>
392 * prims.cc (JNI_OnLoad): Don't declare.
393 (_JNI_OnLoad): Don't define.
394 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
396 2001-08-02 Tom Tromey <tromey@redhat.com>
398 * java/io/RandomAccessFile.java (seek): Let seek go past end of
400 (skipBytes): Don't fail if seeking past end of file.
401 * java/io/FileInputStream.java (skip): Don't fail if seeking past
403 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
405 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
407 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
409 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
411 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
413 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
414 to initialize global_ref_table/local_ref_table.
416 2001-08-02 Tom Tromey <tromey@redhat.com>
418 * configure: Rebuilt.
419 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
422 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
424 * include/posix.h (_POSIX_PII_SOCKET): Define.
425 * configure.in (HAVE_SOCKLEN_T): Define.
426 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
428 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
429 (java::net::PlainSocketImpl::accept): Use it.
430 Fixes PRs libgcj/3694, libgcj/3696.
432 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
433 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
434 * configure, include/config.h.in: Regenerate.
435 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
436 (mcastGrp): Likewise.
437 (java::net::PlainDatagramSocketImpl::setOption): Guard against
438 missing IPV6_MULTICAST_IF.
439 Fixes PR libgcj/3694.
441 2001-08-01 Jeff Sturm <jsturm@one-point.com>
443 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
445 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
447 * Makefile.in: Rebuilt.
448 * Makefile.am (GCJLINK): Added --tag=GCJ.
451 2001-07-30 Tom Tromey <tromey@redhat.com>
453 * java/util/Date.java: Re-merged with Classpath.
455 2001-07-30 Jeff Sturm <jsturm@one-point.com>
457 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
458 (_Jv_bind): New static function.
459 (bind): Use _Jv_bind.
460 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
461 (_Jv_bind, _Jv_connect): New static functions.
462 (bind): Use _Jv_bind.
463 (connect): Use _Jv_connect.
465 2001-07-30 Tom Tromey <tromey@redhat.com>
466 Corey Minyard <minyard@acm.org>
468 * gnu/gcj/convert/natIconv.cc (done): New methods.
469 * gnu/gcj/convert/Output_iconv.java (done): New method.
470 * gnu/gcj/convert/Input_iconv.java (done): New method.
471 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
473 (getDefaultEncodingClass): Removed.
474 (getDefaultEncoder): Use getEncoder.
476 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
478 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
480 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
482 (getDefaultDecodingClass): Removed.
483 (getDefaultDecoder): Use getDecoder.
484 (getDecoder): Look up decoder in cache.
486 * java/lang/natString.cc (init): Call `done' on converter.
487 (getBytes): Likewise.
489 2001-07-30 Tom Tromey <tromey@redhat.com>
491 * java/lang/Integer.java: Merged with Classpath.
493 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
495 * java/util/GregorianCalendar.java (GregorianCalendar): Call
496 setTimeInMillis() to set the default/current time.
498 2001-07-29 Mark Wielaard <mark@klomp.org>
500 * HACKING: add description on updating namespace
502 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
504 * java/util/Calendar.java (set): Never recompute fields here. They
505 will already be set if someone set time explicitly, and it can cause
506 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
507 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
508 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
510 * java/text/SimpleDateFormat.java (defaultCentury): New field.
511 (readObject): Call set2DigitYearStart if appropriate so that
512 defaultCentury is calculated.
513 (SimpleDateFormat): Don't bother clearing calendar here. Call
514 computeCenturyStart().
515 (set2DigitYearStart): Calculate and set defaultCentury.
516 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
518 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
519 2 numeric digits, use the 80-20 heuristic to parse the value into a
520 default century based on defaultCenturyStart.
521 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
523 2001-07-25 Tom Tromey <tromey@redhat.com>
525 * Makefile.in: Rebuilt.
526 * Makefile.am (libgcj.jar): Correctly fail when bytecode
529 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
531 * prims.cc (_JNI_OnLoad): New function.
532 (JNI_OnLoad): Use it.
533 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
535 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
537 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
538 Makefile.in: Regenerate.
540 2001-07-24 Tom Tromey <tromey@redhat.com>
542 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
545 2001-07-23 Tom Tromey <tromey@redhat.com>
547 * gcj/javaprims.h: Rebuilt class list.
548 * Makefile.in: Rebuilt.
549 * Makefile.am (core_java_source_files): Added VMClassLoader.
550 * java/lang/VMClassLoader.java: New file.
551 * java/lang/Boolean.java: Merged with Classpath.
552 * java/lang/Byte.java: Merged with Classpath.
553 * java/lang/Integer.java: Merged with Classpath.
554 * java/lang/Long.java: Merged with Classpath.
555 * java/lang/Number.java: Merged with Classpath.
556 * java/lang/Short.java: Merged with Classpath.
558 2001-07-22 Jeff Sturm <jsturm@one-point.com>
560 * configure.host: Enable hash synchronization for alpha*-*.
561 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
563 * java/lang/natObject.cc (compare_and_swap, release_set,
564 compare_and_swap_release): Added inline functions for alpha.
566 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
568 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
569 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
570 back to old RFC 2133 variants if missing.
572 2001-07-18 Tom Tromey <tromey@redhat.com>
574 * java/io/natFileWin32.cc (_access): Renamed.
576 * java/io/natFile.cc (_access): Renamed.
578 * java/io/File.java (access, stat): Add leading `_' to name.
581 2001-07-18 Tom Tromey <tromey@redhat.com>
584 * libgcj.spec.in (*lib): Added LIBICONV.
585 * configure: Rebuilt.
586 * configure.in: Call AM_ICONV. Don't check for iconv function.
587 Add parameters to JV_HASH_SYNCHRONIZATION define.
588 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
590 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
592 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
593 not by setting its size field.
595 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
597 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
600 2001-07-12 Tom Tromey <tromey@redhat.com>
601 David Brownell <david-b@pacbell.net>
603 Fix for PR libgcj/3426:
604 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
606 (read): Throw exception if character conversion fails.
607 * java/io/BufferedInputStream.java (refill): Now package-private.
608 * java/io/InputStreamReader.java (ready): Simplified.
609 (refill): New method.
612 2001-07-12 Tom Tromey <tromey@redhat.com>
614 Report from Henner Zeller:
615 * java/io/FileOutputStream.java (FileOutputStream): Throw
616 FileNotFoundException, not IOException.
618 2001-07-10 Anthony Green <green@redhat.com>
620 * Makefile.in: Rebuilt.
621 * Makefile.am: Add new files.
622 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
623 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
624 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
625 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
626 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
627 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
628 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
629 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
630 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
631 org/w3c/dom/ranges/DocumentRange.java,
632 org/w3c/dom/ranges/Range.java,
633 org/w3c/dom/ranges/RangeException.java,
634 org/w3c/dom/traversal/DocumentTraversal.java,
635 org/w3c/dom/traversal/NodeFilter.java,
636 org/w3c/dom/traversal/NodeIterator.java,
637 org/w3c/dom/traversal/TreeWalker.java,
638 org/xml/sax/ext/DeclHandler.java,
639 org/xml/sax/ext/LexicalHandler.java,
640 org/xml/sax/helpers/AttributeListImpl.java,
641 org/xml/sax/helpers/AttributesImpl.java,
642 org/xml/sax/helpers/DefaultHandler.java,
643 org/xml/sax/helpers/LocatorImpl.java,
644 org/xml/sax/helpers/NamespaceSupport.java,
645 org/xml/sax/helpers/ParserAdapter.java,
646 org/xml/sax/helpers/ParserFactory.java,
647 org/xml/sax/helpers/XMLFilterImpl.java,
648 org/xml/sax/helpers/XMLReaderAdapter.java,
649 org/xml/sax/helpers/XMLReaderFactory.java,
650 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
651 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
652 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
653 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
654 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
655 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
656 org/xml/sax/SAXNotRecognizedException.java,
657 org/xml/sax/SAXNotSupportedException.java,
658 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
659 org/xml/sax/XMLReader.java: New files.
661 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
663 * Makefile.am: Added `java/lang/ThreadLocal.java'.
664 * Makefile.in: Regenerate.
665 * java/lang/ThreadLocal.java: Initial import.
667 2001-07-07 Jeff Sturm <jsturm@one-point.com>
669 * Makefile.am (libgcj.jar): Don't recursively make
670 built_java_source_files. Avoid long command lines.
671 Don't change to $(srcdir) to invoke javac.
672 (libgcj.la, libgcjx.la); Avoid long command lines.
673 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
674 * Makefile.in: Rebuilt.
676 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
678 * include/i386-signal.h: Don't do anything with unsigned divide
679 overflow except throw an exception.
681 2001-07-05 Tom Tromey <tromey@redhat.com>
684 * java/lang/Class.h (Class(void)): Now private. Removed
685 implementation. From dmorsberger@sensysdl.com.
687 2001-07-02 Tom Tromey <tromey@redhat.com>
689 Fix for PR bootstrap/3281:
690 * aclocal.m4, configure: Rebuilt.
691 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
692 Correctly compute libgcj_basedir.
693 (mkinstalldirs): Define and subst.
695 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
698 * java/io/LineNumberReader.java (reset): Pass correct arguments to
701 2001-06-27 Tom Tromey <tromey@redhat.com>
703 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
706 2001-06-25 Tom Tromey <tromey@redhat.com>
708 * scripts/encodings.pl: Generate lower-case names. Updated URL
709 for `character-sets' file.
710 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
712 Rebuilt list of aliases.
714 2001-06-25 Tom Tromey <tromey@redhat.com>
716 * java/io/natFileDescriptorPosix.cc (open): Change error message
717 formatting. From David Brownell.
719 2001-06-21 Tom Tromey <tromey@redhat.com>
721 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
724 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
726 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
727 extraneous/malformed sign word.
729 2001-06-15 Tom Tromey <tromey@redhat.com>
731 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
733 2001-06-15 Tom Tromey <tromey@redhat.com>
735 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
736 NULL if no library on the list has the symbol.
737 (init): Call add_library on the program itself.
738 * prims.cc (JvRunMain): Initialize Runtime before searching for
740 (_Jv_RunMain): Likewise.
742 2001-06-15 Tom Tromey <tromey@redhat.com>
744 * jni.cc (ClassClass): Removed; updated all users.
745 (ObjectClass): Likewise.
746 (ThrowableClass): Likewise.
747 (MethodClass): Likewise.
748 (ThreadGroupClass): Likewise.
749 (local_ref_table): Renamed from `ref_table'.
750 (global_ref_table): New global.
751 (_Jv_JNI_Init): Initialize both ref tables.
752 (mark_for_gc): Added `ref_table' parameter.
753 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
755 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
756 (_Jv_JNI_DeleteGlobalRef): Likewise.
757 (_Jv_JNI_DeleteLocalRef): Likewise.
758 (_Jv_JNI_NewLocalRef): Likewise.
759 (_Jv_JNI_PopLocalFrame): Likewise.
760 (_Jv_JNI_GetStringChars): Likewise.
761 (_Jv_JNI_ReleaseStringChars): Likewise.
762 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
763 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
765 2001-06-14 Tom Tromey <tromey@redhat.com>
767 Fix for PR libgcj/3144:
768 * java/util/Date.java: Merged with Classpath.
770 2001-06-12 Tom Tromey <tromey@redhat.com>
772 * aclocal.m4, configure: Rebuilt.
773 * acinclude.m4: Find configure.host in srcdir.
775 2001-06-07 Tom Tromey <tromey@redhat.com>
777 Fix for PR libgcj/3059:
778 * java/lang/natSystem.cc (init_properties): Define `java.home'.
779 * Makefile.in: Rebuilt.
780 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
782 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
784 * exception.cc (cstdlib): Replaces stdlib.h.
785 (_Jv_Throw): Use std::abort().
786 (PERSONALITY_FUNCTION): Likewise.
788 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
790 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
791 nothing, as in autoconf 2.50.
792 * aclocal.m4, configure: Rebuilt.
794 2001-06-08 Tom Tromey <tromey@redhat.com>
796 * configure: Rebuilt.
797 * configure.in: Compute new aux dir using `pwd'.
799 2001-06-07 Tom Tromey <tromey@redhat.com>
801 For PR bootstrap/3075:
802 * configure, aclocal.m4, Makefile.am: Rebuilt.
803 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
804 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
805 relative to libgcj_basedir.
806 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
807 AC_CANONICAL_SYSTEM here.
808 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
810 ($(extra_headers)): New target.
812 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
813 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
815 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
816 table index is within allowed bounds. Ensure that we dont try to access
817 class itable at a negative offset. Avoid an ancestor table lookup if
818 source is a primitive type class.
819 (isInstance): Remove redundant isPrimitive() check.
821 2001-06-04 Tom Tromey <tromey@redhat.com>
823 * java/security/PublicKey.java: Extend Key.
824 * java/security/PrivateKey.java: Extend Key.
826 2001-06-02 Anthony Green <green@redhat.com>
828 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
829 alternate when USE_LTDL not defined.
831 2001-06-02 Anthony Green <green@redhat.com>
833 * configure: Rebuild.
834 * configure.in: Remove data_start hack.
835 * libgcj.spec.in: Ditto.
836 * Makefile.in: Rebuild.
837 * Makefile.am: Ditto.
838 * libgcjdata.c: Remove.
840 2001-06-02 Anthony Green <green@redhat.com>
842 * configure: Rebuild.
843 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
844 --without-libffi option. Tweak --disable-java-net processing.
845 * Makefile.in: Rebuild.
846 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
847 * include/config.h.in: Rebuild.
848 * acconfig.h (USE_LIBFFI): Define.
849 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
851 2001-06-02 Anthony Green <green@redhat.com>
853 * configure: Rebuilt.
854 * configure.in: Test for sigaction on native builds.
855 * prims.cc: Check HAVE_SIGACTION.
856 * include/config.h.in: Rebuilt.
858 2001-05-31 Jeff Sturm <jsturm@one-point.com>
860 * natFile.cc (get_entry): Removed functions.
861 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
862 Allocate enough storage for d_name if using readdir_r.
864 2001-05-31 Tom Tromey <tromey@redhat.com>
866 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
868 (write): Loop until write completes. From Corey Minyard.
870 2001-05-29 Laurent Guerby <guerby@acm.org>
872 * java/awt/geom/Rectangle2D.java: fix doc typo.
874 2001-05-31 Tom Tromey <tromey@redhat.com>
876 * java/sql/DriverManager.java (getDrivers): Handle case where
877 driver's class loader is null. From Corey Minyard.
879 2001-05-29 Tom Tromey <tromey@redhat.com>
881 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
883 * configure: Rebuilt.
884 * configure.in: Only add multilib support code if we just rebuilt
887 2001-05-29 Andrew Haley <aph@redhat.com>
889 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
890 pointer: the dwarf unwinder in libgcc will do everything that's
892 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
893 more than we absolutely need to.
894 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
895 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
897 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
899 * configure: Rebuilt.
900 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
902 (SIGNAL_HANDLER): Use siginfo style handler.
903 (INIT_SEGV): Likewise.
904 (INIT_FPE): Likewise.
905 * include/ppc-signal.h: Delete whole file.
907 2001-05-24 Tom Tromey <tromey@redhat.com>
909 * java/lang/natString.cc (init): Throw
910 ArrayIndexOutOfBoundsException.
911 (getChars): Likewise.
912 (getBytes): Likewise.
915 * configure.in: Only allow hash synchronization when POSIX threads
917 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
920 2001-05-23 Tom Tromey <tromey@redhat.com>
922 * Makefile.in: Rebuilt.
923 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
925 Revert patch of 2001-05-21:
926 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
927 (libgcj_la_LIBADD): Likewise.
928 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
929 (libgcjx_la_LIBADD): Likewise.
931 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
932 * gcj/Makefile.in: Rebuilt.
933 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
934 * gcj/javaprims.h: Include gcj/libgcj-config.h.
935 * gcj/libgcj-config.h.in: New file.
936 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
937 * configure: Rebuilt.
938 * configure.in: Enable hash synchronization by default on some
940 (HASH_SYNC_SPEC): New subst.
941 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
942 Correctly use `test -z' instead of `test -n' in a couple places.
943 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
945 * configure.host (enable_java_net_default): Initialize.
946 (enable_hash_synchronization_default): New variable.
948 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
950 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
951 synchronization in use.
952 (_Jv_MarkArray): Likewise.
953 (_Jv_AllocBytes): Don't check return result.
954 (handle_out_of_memory): New function.
955 (_Jv_InitGC): Set GC_oom_fn.
956 (trace_one_vtable): New global.
957 (_Jv_AllocTraceOne): New function.
958 * configure.in: Added --enable-hash-synchronization.
959 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
960 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
961 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
962 (_Jv_AllocArray): Likewise.
963 (_Jv_AllocBytes): Likewise.
964 (_Jv_AllocPtrFreeObject): New function.
965 (_Jv_AllocTraceOne): Likewise.
966 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
968 (self_cache): New global.
969 (_Jv_ThreadSelf_out_of_line): New function.
970 * prims.cc (_Jv_AllocBytesChecked): Removed.
971 (_Jv_ThrowNoMemory): New function.
972 (_Jv_AllocObject): Don't check for null return from allocator.
973 (_Jv_NewObjectArray): Likewise.
974 (_Jv_AllocPtrFreeObject): New function.
975 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
976 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
977 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
978 * include/boehm-gc.h (_Jv_AllocObj): Define.
979 (_Jv_AllocPtrFreeObj): Define.
980 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
981 (_Jv_ThrowNoMemory): Declare.
982 (_Jv_AllocTraceOne): Declare.
983 (_Jv_AllocBytesChecked): Removed.
984 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
985 _Jv_MutexUnlock): Handle LOCK_DEBUG.
986 (_Jv_ThreadSelf): Handle case where system pthread_self() is
988 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
990 * java/lang/Object.h (sync_info): Conditional upon presence of
991 hash synchronization.
992 * java/lang/natObject.cc: Much new code to handle thin locks and
993 hash synchronization.
994 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
997 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
999 * gij.cc (version): Update copyright year.
1001 2001-05-22 Anthony Green <green@redhat.com>
1003 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1006 2001-05-21 Per Bothner <per@bothner.com>
1008 Implement invocation interface; don't create new thread for main.
1009 * java/lang/Thread.java (gen_name): Make native.
1010 (<init>(Thread,THreadGroup,Runnable,String)): New private
1011 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1012 * java/lang/natThread.cc (gen_name): New implementation.
1013 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1014 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1015 (_Jv_CreateJavaVM): New runtime initialization procedure.
1016 (runFirst): New proecdure - mostly code from old FirstThread::run.
1017 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1018 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1019 JvDetachCurrentThread): New inline wrappers.
1020 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1021 _Jv_DetachCurrentThread): New declarations.
1022 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1023 (getMain): new static method.
1024 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1025 by runFirst in prims.cc.
1026 (java/lang/Thread.h): Update for new invocation interface.
1027 * include/posix-threads.h (_Jv_ThreadRegister,
1028 _Jv_ThreadUnRegister): New declarations.
1029 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1030 (really_start): Use new _Jv_ThreadRegister.
1031 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1032 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1033 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1034 Complain of called when _Jv_OnlyThread already set.
1035 (_Jv_ThreadStart): Always JvFail.
1036 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1037 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1038 * win32-threads.cc (struct starter): Remove objet field -
1039 we use _Jv_Thread_t's new thread_obj field instead.
1040 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1041 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1042 (really_start): Use new _Jv_ThreadRegister.
1043 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1044 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1045 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1046 Removed - no longer needed with new invocation interface.
1047 * Makefile.am: Update for removed/added files.
1049 2001-05-21 Per Bothner <per@bothner.com>
1051 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1052 (libgcj_la_LIBADD): Likewise.
1053 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1055 2001-05-21 Per Bothner <per@bothner.com>
1057 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1058 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1059 taken from old Integer.toString code.
1060 (Integer::valueOf): Use _Jv_FormatInt.
1061 * java/lang/Integer.java (toString): Just use call String.valueOf.
1062 * java/lang/Long.java (toString): Fix typo in comment.
1063 * java/lang/String.java (valueOf(int)): Make native.
1064 * java/lang/StringBuffer.java (append(int)): Make native.
1065 * java/lang/natStringBuffer.cc: New file, for append(jint).
1066 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1068 2001-05-21 Tom Tromey <tromey@redhat.com>
1070 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1072 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1074 * include/dwarf2-signal.h: New file.
1075 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1076 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1077 * configure: Rebuilt.
1079 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1081 * configure.in: Update boehm-gc include dir for new GC version.
1082 * configure: Rebuilt.
1083 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1085 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1086 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1087 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1090 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1092 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1093 (_Jv_MutexInit): Likewise.
1095 2001-05-18 Tom Tromey <tromey@redhat.com>
1097 * Makefile.in: Rebuilt.
1098 * Makefile.am (awt_java_source_files): Added Polygon.java.
1100 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1102 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1103 * gcj/javaprims.h: ... here.
1104 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1106 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1108 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1109 with length of ioffset table.
1110 (_Jv_IsAssignableFrom): Likewise.
1112 2001-05-17 Per Bothner <per@bothner.com>
1114 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1116 2001-05-16 Tom Tromey <tromey@redhat.com>
1118 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1121 2001-05-15 Tom Tromey <tromey@redhat.com>
1123 * java/util/GregorianCalendar.java (computeTime): Only call
1126 2001-05-14 Tom Tromey <tromey@redhat.com>
1128 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1129 ZONE_OFFSET just before computing the time.
1131 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1133 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1134 * Makefile.in: Regenerate (by hand).
1135 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1136 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1138 2001-05-11 Richard Henderson <rth@redhat.com>
1140 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1141 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1143 2001-05-11 Richard Henderson <rth@redhat.com>
1145 * exception.cc: Include unwind-pe.h. Remove all pointer
1148 2001-05-10 Tom Tromey <tromey@redhat.com>
1150 * Makefile.in: Rebuilt.
1151 * Makefile.am (awt_java_source_files): Added Polygon.java.
1152 * java/awt/Polygon.java: New file.
1154 * java/awt/geom/AffineTransform.java
1155 (setToRotation(double,double,double)): New method.
1156 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1157 (setToShear): Likewise.
1159 2001-05-10 Tom Tromey <tromey@redhat.com>
1161 * java/util/GregorianCalendar.java: Imported from Classpath.
1162 * gnu/java/locale/LocaleInformation_nl.java: New file from
1164 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1165 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1166 * gnu/java/locale/LocaleInformation.java: Likewise.
1167 * natGregorianCalendar.cc: Removed.
1168 * Makefile.in: Rebuilt.
1169 * Makefile.am (nat_source_files): Removed
1170 natGregorianCalendar.cc.
1172 2001-05-10 Tom Tromey <tromey@redhat.com>
1174 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1176 (defaultCenturyStart): Use it.
1177 (readObject): Likewise.
1178 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1180 (parse): Copy the calendar before modifying it. Correctly handle
1183 * java/util/Calendar.java (clear): Set field value(s) to 0.
1185 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1187 * Calendar.java (get): Clear areFieldsSet if requested field
1189 (set): Unset fields that depend on new value.
1191 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1193 * java/lang/Class.h (_Jv_Self): New union type.
1194 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1195 Jeff Sturm and Fergus Henderson.
1197 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1199 * java/lang/ClassLoader.java: Remove dead code fragment.
1201 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1203 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1205 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1207 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1209 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1210 * configure.host (EXCEPTIONSPEC): New.
1211 * configure.in (EXCEPTIONSPEC): New.
1212 * configure: Rebuilt.
1214 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1216 * doc/*.texi: Remove generated documentation.
1218 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1220 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1221 (performDelete): Fix #endif placement.
1223 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1225 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1226 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1227 (_Jv_ThreadDestroyData): Use _Jv_Free.
1228 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1231 2001-04-27 Tom Tromey <tromey@redhat.com>
1233 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1235 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1237 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1239 * include/jni.h (struct JNINativeInterface): Fixed types in
1240 Get/Set*ArrayRegion declarations.
1241 (class _Jv_JNIEnv): Likewise.
1243 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1245 * configure.in: Obtain THREADS with `gcc -v'.
1246 * configure: Rebuilt.
1248 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1251 * java/io/ObjectStreamClass.java (setClass): Calculate
1252 serialVersionUID for local class and compare it against the UID
1253 from the Object Stream. Throw InvalidClassException upon mismatch.
1254 (setUID): Renamed to...
1255 (getClassUID): this. Return the calculated class UID rather than
1256 setting uid field directly.
1257 (getDefinedSUID): Removed.
1258 * java/io/ObjectInputStream.java (resolveClass): Use the
1259 three-argument Class.forName().
1260 * java/io/InvalidClassException (toString): Don't include classname in
1261 result if it is null.
1263 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1265 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1266 Wrap use of inet_pton in HAVE_INET6.
1268 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1270 java.security merge and ClassLoader compliance fixes.
1272 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1273 New protectionDomain field.
1274 (forName): Add initialize parameter. Fixes declaration to comply with
1276 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1277 variant. Honour "initialize" flag.
1278 (getProtectionDomain0): New method.
1279 * java/lang/Class.java: Fix forName() declaration.
1280 (getPackage): New method based on Classpath implementation.
1281 (getProtectionDomain0): New native method decl.
1282 (getProtectionDomain): New method.
1283 * java/lang/ClassLoader.java (getParent): Now final.
1284 (definedPackages): New field.
1286 (defineClass): New variant with protectionDomain argument.
1287 (definePackage): New.
1289 (findSystemClass): Now final.
1290 (getSystemResourceAsStream): Remove redundant "final" modifier.
1291 (getSystemResource): Remove redundant "final" modifier.
1292 (getResources): Now final.
1293 (protectionDomainPermission): New static field.
1294 (unknownProtectionDomain): Ditto.
1295 (defaultProtectionDomain): Ditto.
1296 (getSystemClassLoader): Now non-native.
1297 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1298 arguments for Class.forName().
1299 * java/lang/Package.java: New file.
1300 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1301 (instance): Static initialize singleton.
1302 (findClass): Override this, not findSystemClass.
1303 * java/lang/natClassLoader.cc (defineClass0): Set class's
1304 protectionDomain field as specified.
1305 (getSystemClassLoader): Removed.
1306 (findClass): Renamed from findSystemClass. Call the interpreter via
1307 URLClassLoader.findClass if loading class via dlopen fails.
1309 * java/security/*.java: java.security import/merge with Classpath.
1310 * java/security/acl/*.java: Likewise.
1311 * java/security/interfaces/*.java: Likewise.
1312 * java/security/spec/*.java: Likewise.
1313 * java/net/NetPermission.java: Likewise.
1314 * java/net/SocketPermission.java: Likewise.
1315 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1317 * Makefile.am: Add new classes.
1318 * Makefile.in: Rebuilt.
1319 * gcj/javaprims.h: CNI namespace rebuild.
1321 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1323 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1324 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1325 * configure: Rebuilt.
1327 2001-04-21 Tom Tromey <tromey@redhat.com>
1329 * Makefile.in: Rebuilt.
1330 * Makefile.am (awt_java_source_files): Added Line2D.java.
1331 * java/awt/geom/Line2D.java: Wrote.
1333 * java/awt/Menu.java (addNotify): Wrote.
1335 * java/awt/PopupMenu.java (addNotify): Implemented.
1338 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1339 * java/awt/List.java (addNotify): Call super.addNotify.
1340 * java/awt/Label.java (addNotify): Call super.addNotify.
1341 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1342 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1343 * java/awt/Choice.java (addNotify): Call super.addNotify.
1344 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1345 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1347 * java/awt/List.java (replaceItem): Notify peer.
1349 * java/awt/geom/Rectangle2D.java
1350 (Float.setRect(float,float,float,float)): New method.
1352 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1355 * java/awt/RenderingHints.java (Key): Class now public.
1357 * java/awt/Rectangle.java (Rectangle): Now implements
1359 (getPathIterator): Removed.
1361 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1364 * java/awt/FileDialog.java: Wrote.
1366 * java/awt/EventQueue.java (isDispatchThread): Now public.
1367 (invokeLater): Likewise.
1369 * java/awt/Component.java (setCursor): Update peer.
1370 (getFontMetrics): Use peer.
1372 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1375 2001-04-20 Tom Tromey <tromey@redhat.com>
1377 * java/awt/List.java: Wrote.
1378 * java/awt/Dialog.java: Wrote.
1380 2001-04-20 Warren Levy <warrenl@redhat.com>
1382 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1383 * java/text/SimpleDateFormat.java
1384 (indexInArray): Removed private method.
1385 (processYear): Removed private method.
1386 (parseLenient): Removed private method.
1387 (parseLeadingZeros): Removed private method.
1388 (parseStrict): Removed private method.
1389 (expect): Added new private method.
1390 (parse): Reverted to pre-Classpath merge version with minor fixes.
1391 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1394 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1396 * java/io/File.java (normalizePath): New private method.
1397 (File (String)): Use normalizePath().
1398 (File (String, String)): Likewise.
1400 * Makefile.am (libffi_files): Removed.
1401 (libgcj.la): Link libffi as a convenience library instead of
1402 refering to its object files directly.
1403 * Makefile.in: Rebuilt.
1405 2001-04-08 Per Bothner <per@bothner.com>
1407 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1408 Recalculate hash, since Utf8Const's hash is only 16 bits.
1410 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1411 bits of hash to calculate step for chaining.
1413 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1414 when 2/3 full, rather than 3/4 full.
1416 2001-04-06 Tom Tromey <tromey@redhat.com>
1418 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1419 (wrap_value<T*>): New specialization.
1420 (_Jv_JNI_PopLocalFrame): Update env->locals.
1422 2001-04-05 Tom Tromey <tromey@redhat.com>
1424 * libtool-version: Updated current.
1426 2001-04-04 Andreas Jaeger <aj@suse.de>
1428 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1429 * gcj/Makefile.in: Rebuilt.
1430 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1431 * Makefile.in: Rebuilt.
1432 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1433 * testsuite/Makefile.in: Rebuild.
1434 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1435 * include/Makefile.in: Rebuild.
1437 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1439 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1440 compiled test', not 'execution from source compiled test'.
1441 Use UNTESTED, not XFAIL, for tests which are not run because
1442 they depend on a previous test which failed.
1444 2001-04-02 Richard Henderson <rth@redhat.com>
1446 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1447 the same tree as gcc.
1448 * configure: Rebuilt.
1450 * exception.cc (_Jv_Throw): Clarify commentary.
1452 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1454 * jni.cc (wrap_value<jclass>): New specialization.
1456 2001-04-02 Tom Tromey <tromey@redhat.com>
1458 * java/io/PrintStream.java (out): Removed field. Fixes PR
1460 (write): Call flush, not out.flush, per spec.
1461 (close): Flush output stream, per spec. Handle
1462 InterruptedIOException.
1463 (checkError): Likewise.
1464 (flush, print, write): Handle InterruptedIOException per spec.
1465 (PrintStream): Don't create BufferedOutputStream.
1466 (work_bytes): New field.
1467 (writeChars): Use work_bytes. Don't assume `out' is a
1468 BufferedOutputStream.
1470 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1472 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1475 2001-03-30 Tom Tromey <tromey@redhat.com>
1477 * jni.cc (add_char): Correctly encode non-ascii characters.
1478 (add_char): Define even when INTERPRETER not defined.
1479 (mangled_name): Likewise.
1480 (_Jv_GetJNIEnvNewFrame): Likewise.
1481 (_Jv_LookupJNIMethod): Likewise.
1483 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1485 * configure.host: Enable interpreter for PPC.
1487 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1489 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1490 to "file.separator", "path.separator", and "java.io.tmpdir" property
1492 * java/io/File.java: Likewise.
1493 * java/io/natFile.cc (init_native): Likewise.
1494 * java/io/natFileWin32.cc (init_native): Likewise.
1496 2001-04-01 Per Bothner <per@bothner.com>
1498 * java/lang/natString.cc (intern): If string's data does not point to
1499 this String, make a fresh String that does.
1501 * java/lang/natString.cc (unintern): Replace by static function.
1502 * java/lang/String.java (unintern): Remove method.
1504 2001-04-01 Per Bothner <per@bothner.com>
1506 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1507 (finish): def.deflate needs to be called in a loop.
1508 (inbuf, inbufLength): New private fields.
1509 (write(int)): Use inbuf.
1510 (write(byte[],int,int): Check if pending output in inbuf.
1511 * ZipOutputStream.java: Don't use Deflater if stored.
1512 Use a Checksum object directly, not via a CheckedOutputStream.
1513 (uncompressed_size): New field,
1514 (closeEntry): Only write data_directory if needed.
1515 (write): If STORED, write directly.
1516 Always update crc, and uncompressed_size.
1517 (write_entry): Fix lots of protocol erors.
1519 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1521 1.3-Compliant Implementation of java.io.File.
1522 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1523 "path.separator", and "java.io.tmpdir" from the File class, instead
1524 of setting them explicitly.
1525 * java/io/File.java: Do not canonicalize paths for security manager
1526 checks. Call init_native() from static initializer. Do not pass path
1527 argument to native methods. New native method declarations. Some
1528 security manager checks moved to checkWrite().
1529 (equals): Check file system case sensitivity and act appropriatly.
1530 (hashCode): Likewise.
1531 (isHidden): New method implemented.
1532 (performList): Changed prototype. Now takes a class argument specifying
1533 the class of the returned array: Strings or File objects. Also added
1534 FileFilter argument.
1535 (listFiles): New variants with "File" return type implemented.
1536 (createTempFile): Use createNewFile(). Use maxPathLen.
1537 (setReadOnly): New method implemented.
1538 (listRoots): Likewise.
1539 (compareTo): Likewise.
1540 (setLastModified): Likewise.
1541 (checkWrite): New method.
1543 * java/io/natFile.cc: Various functions no longer take canonical path
1545 (stat): Handle ISHIDDEN query.
1546 (isAbsolute): Remove WIN32 cruft.
1547 (performList): New arguments. Handle returning either File[] or String[]
1548 arrays. Check with FileFilter or FilenameFilter arguments as
1549 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1550 (performSetReadOnly): New method implemented.
1551 (performListRoots): Likewise.
1552 (performSetLastModified): Likewise.
1553 (performCreate): Likewise.
1554 (init_native): New initialization function.
1555 * java/io/natFileWin32.cc: Various functions no longer take canonical
1557 (stat): Add FIXME about ISHIDDEN query.
1558 (performList): New arguments. Handle returning either File[] or String[]
1559 arrays. Check with FileFilter or FilenameFilter arguments as
1560 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1561 (performSetReadOnly): New. Stubbed.
1562 (performListRoots): Likewise.
1563 (performSetLastModified): Likewise.
1564 (performCreate): Likewise.
1565 (init_native) New initialization function.
1566 * configure.in: Check for utime() and chmod().
1567 * configure: Rebuilt.
1568 * include/config.h.in: Rebuilt.
1570 Resolves PR libgcj/1759.
1572 2001-03-28 Richard Henderson <rth@redhat.com>
1574 IA-64 ABI Exception Handling:
1575 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1576 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1577 Remove EXCEPTIONSPEC.
1578 * configure.host (libgcj_sjlj): Remove.
1579 * configure.in (EXCEPTIONSPEC): Remove.
1580 (enable-sjlj-exceptions): Detect if not specified.
1581 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1582 what header we're looking for.
1583 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1584 * Makefile.in, configure: Regenerate.
1585 * exception.cc: Don't declare libgcc2 stuff.
1586 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1587 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1588 (win32_get_restart_frame): Remove.
1589 (struct java_exception_header): New.
1590 (__gcj_exception_class): New.
1591 (get_exception_header_from_ue): New.
1592 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1593 (size_of_encoded_value, read_encoded_value): New.
1594 (read_uleb128, read_sleb128, parse_lsda_header): New.
1595 (get_ttype_entry, __gcj_personality_sj0): New.
1596 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1598 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1600 * javax/naming/InitialContext.java (init): Fix typo.
1601 (composeName): Remove unnecessary semicolon.
1602 (addToEnvironment): Remove unnecessary semicolon.
1603 (addToEnvironment): Use put() instead of add().
1605 * javax/naming/InitialContext.java (InitialContext):
1607 (destroySubcontext): Method doesn't return a result.
1608 * javax/naming/Context.java: Import java.util.Hashtable.
1609 * javax/naming/Name.java: Import java.util.Enumeration.
1611 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1613 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1614 objects in subdirectories.
1615 * Makefile.in: Rebuilt.
1617 2001-03-25 Richard Henderson <rth@redhat.com>
1619 * exception.cc (java_eh_info): Make value type jthrowable.
1620 (_Jv_type_matcher): Remove now unneeded cast.
1621 (_Jv_Throw): Make argument type jthrowable. Munge name
1622 for SJLJ_EXCEPTIONS here ...
1623 * gcj/cni.h: ... not here.
1625 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1627 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1628 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1629 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1630 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1631 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1632 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1633 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1634 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1635 java/lang/natDouble.cc, java/lang/natObject.cc,
1636 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1637 java/lang/natString.cc, java/lang/natSystem.cc,
1638 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1639 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1640 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1641 java/util/zip/natInflater.cc:
1642 Use throw, not JvThrow or _Jv_Throw.
1644 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1646 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1647 paramater, bump it to 1.
1648 * java/util/Hashtable.java (Hashtable): Likewise.
1650 2001-03-23 Per Bothner <per@bothner.com>
1652 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1653 check for errors, since we don't want to throw exception on
1654 overflow/underflow. Instead, trim whitespace, and then check that
1655 _strtod_r uses up all the rest of the string.
1657 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1658 ancestors array is invalid for interfaces, so do that *after*
1659 check that the target type is not an interface.
1661 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1663 * prims.cc (_Jv_FindClassFromSignature): Check return of
1664 recursive call. Do not abort on invalid signature; return NULL
1667 2001-03-22 Tom Tromey <tromey@redhat.com>
1669 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1670 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1672 * include/jvm.h (_Jv_ResolveField): Declare.
1673 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1674 * resolve.cc (_Jv_ResolveField): No longer conditional on
1677 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1679 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1680 for libtool hacking.
1681 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1682 to a temporary file, then invoke libtool with the -objectlist
1684 (libgcjx.la): Likewise.
1685 * Makefile.in: Rebuilt.
1687 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1689 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1691 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1693 * jni.cc (add_char): Handle `.' like `/'.
1695 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1697 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1698 initialize if exception_types is null.
1699 * java/lang/reflect/Constructor.java: Likewise.
1700 * java/lang/reflect/natConstructor.cc (getType): Initialize
1701 exception_types to an empty Object array.
1703 2001-03-21 Tom Tromey <tromey@redhat.com>
1705 * configure: Rebuilt.
1706 * configure.in (GCJFLAGS): Subst.
1707 * Makefile.in: Rebuilt.
1708 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1709 (gij_LDFLAGS): Likewise.
1710 (JC1FLAGS): Added GCJFLAGS and removed -g.
1712 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1713 read/write case. Fixes PR libgcj/2338.
1715 2001-03-20 Warren Levy <warrenl@redhat.com>
1717 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1718 and corrected SimpleTimeZone's for the timezones hash table.
1720 2001-03-19 Per Bothner <per@bothner.com>
1722 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1723 "canonicalize" "../../xxx" to "/xxx".
1725 2001-03-19 Mark Wielaard <mark@klomp.org>
1727 * java/util/ArrayList.java: Remove RCS keywords from comments
1728 * java/util/BasicMapEntry.java: idem
1729 * java/util/Dictionary.java: idem
1730 * java/util/HashSet.java: idem
1732 * java/util/EventObject.java: reindent
1733 * java/util/Properties.java: idem
1734 * java/util/SortedMap.java: idem
1736 * java/util/Enumeration.java: Merge with Classpath
1737 * java/util/EventListener.java: idem
1738 * java/util/Observable.java: idem
1739 * java/util/Observer.java: idem
1740 * java/util/Stack.java: idem
1742 2001-03-17 Tom Tromey <tromey@redhat.com>
1744 * java/lang/natString.cc (rehash): Don't bother with memset;
1745 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1747 (UNMASK_PTR): New macro.
1748 (intern): Unmask pointer before returning it. Register finalizer
1750 (unintern): Handle case where
1751 (MASK_PTR): New macro.
1752 (PTR_MAKSED): Likewise.
1753 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1755 2001-03-01 Andrew Haley <aph@redhat.com>
1757 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1758 stackTrace buffer to a correctly aligned pointer array.
1760 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1762 * java/lang/Runtime.java (_exit): Declare new package-private native.
1763 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1764 without a security manager check.
1765 (exit): Call _exit after security check.
1766 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1768 * java/lang/System.java (setSecurityManager): If a security manager
1769 is already in place, call checkPermission.
1770 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1771 throws an exception, try to deal with it gracefully.
1772 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1773 Only try to print the subordinate stack trace if "exception" is set.
1774 Print our class name first.
1776 2001-03-08 Tom Tromey <tromey@redhat.com>
1778 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1779 info for array classes.
1780 Fixes PR libgcj/1971.
1782 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1784 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1787 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1789 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1790 instead of the new JDK1.2 API. This is simpler and makes
1791 back-porting the classes to JDK1.1 trivial.
1792 (readObject): likewise.
1794 2001-03-01 Per Bothner <per@bothner.com>
1796 Changes merged from Kawa's gnu.math.
1797 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1798 (rshift(int[],int[],int,int): Removed - not needed.
1799 (gcd): Use rshift0 rather than rshift.
1800 * java/math/BigInteger.java (setShiftRight): Likewise.
1801 (divide): Simplify by using rshift0.
1802 (divide): Zero-extend results if high-order bit set.
1804 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1806 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1809 2001-02-23 Per Bothner <per@bothner.com>
1811 Change to sometimes include class name in ClassFormatError message.
1812 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1813 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1814 boolean instead of throwing ClassFormatError on failure.
1815 (throw_class_format_error): Change static function to method.
1816 (_Jv_ClassReader): New inline methods verify_identifier,
1817 two overloads of verify_classname, verify_field_signature, and
1818 verify_method_signature
1819 * include/java-interp.h: Update declarations to return bool.
1820 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1821 ClassFormatError since _Jv_VerifyClassName now returns bool.
1823 2001-02-23 Per Bothner <per@bothner.com>
1825 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1826 c++filt to select java-style output.
1828 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1830 Fix for PR java/2040:
1831 * java/util/HashMap.java (HashMap): Don't throw exception for
1832 loadFactor > 1. Add exception messages.
1833 * java/util/Hashtable.java (Hashtable): Likewise.
1835 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1837 Disable libgcjx by default.
1838 * configure.in: Add support for --enable-java-awt configure option.
1839 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1840 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1841 * Makefile.in: Rebuilt.
1842 * configure: Rebuilt.
1844 2001-02-20 Tom Tromey <tromey@redhat.com>
1846 * java/io/PipedWriter.java (flush): Throw exception if stream
1848 * java/io/OutputStreamWriter.java (write): Throw exception if
1850 (writeChars): Don't throw exception if stream closed.
1851 * java/io/CharArrayWriter.java (closed): New field.
1853 (flush): Throw exception if stream closed.
1854 (reset): Synchronize on correct lock. Allow stream to be
1856 (toCharArray, toString, writeTo): Synchronize.
1857 (write): Throwe exception if stream closed.
1858 * java/io/BufferedWriter.java (close): Clear `buffer'.
1859 (flush): Throw IOException if stream is closed.
1862 2001-02-16 Tom Tromey <tromey@cygnus.com>
1864 * java/lang/ThreadGroup.java (activeCount): Only include threads
1866 (enumerate): Likewise.
1868 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1870 * java/lang/Integer.java (getInteger): Return default argument if
1871 property is not set. Don't call decode with null argument.
1872 * java/lang/Long.java (getLong): Likewise.
1874 * java/io/CharArrayReader.java (CharArrayReader): Throw
1875 IllegalArgumentException if constructor arguments are illegal.
1876 (ready): Return false if no more characters can be read.
1877 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1879 2001-02-17 Mark Wielaard <mark@klomp.org>
1881 * java/util/TimerTask.java: New version from Classpath.
1883 2001-02-17 Mark Wielaard <mark@klomp.org>
1885 Remerge with Classpath
1886 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1887 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1888 (readByte): Use convertToByte().
1889 (readChar): Use convertToChar().
1890 (readInt): Use convertToInt().
1891 (readLong): Use convertToLong().
1892 (readShort): Use convertToShort().
1893 (readUnsignedByte): Use convertToUnsignedByte().
1894 (readUnsignedShort): Use convertToUnsignedShort().
1895 (readUTF): Use convertToUTF().
1897 (convertToBoolean): Resurrected.
1898 (convertToByte): Ditto.
1899 (convertToChar): Ditto.
1900 (convertToInt): Ditto.
1901 (convertToLong): Ditto.
1902 (convertToShort): Ditto.
1903 (convertToUnsignedByte): Ditto.
1904 (convertToUnsignedShort): Ditto.
1905 (convertToUTF): Ditto.
1907 2001-02-17 Mark Wielaard <mark@klomp.org>
1911 2001-02-17 Mark Wielaard <mark@klomp.org>
1913 * java/io/DataInputStream.java: update copyright notice
1914 * java/io/PrintWriter.java: idem
1915 * java/io/Reader.java: idem
1916 * java/io/StreamTokenizer.java: idem
1917 * java/io/StringReader.java: idem
1918 * java/lang/reflect/ReflectPermission.java: idem
1920 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1922 * java/util/TreeSet.java (clone): Made subclass safe, use
1923 super.clone(), not new.
1924 * java/util/TreeMap.java (clone): Likewise.
1926 * java/util/TreeMap.java (nil): Made non-final.
1927 (clone): Create new nil node for copy.
1929 * java/util/HashSet.java (clone): Made subclass safe, use
1930 super.clone(), not new.
1932 2001-02-14 Andrew Haley <aph@redhat.com>
1934 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1937 2001-02-15 Anthony Green <green@redhat.com>
1939 * defineclass.cc: Don't include alloca.h.
1940 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1941 * interpret.cc (run_normal): Ditto.
1943 * java/lang/natDouble.cc (parseDouble): Ditto.
1945 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1947 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1949 * java/util/Collections.java (ReverseComparator): New static class.
1950 (reverseOrder): Return static instance of ReverseComparator.
1952 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1953 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1954 Rectangle.clone(), not Object.clone().
1956 * java/util/HashSet.java (clone): Remove try/catch.
1958 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1959 * java/util/Collection.java: Likewise.
1960 * java/util/Comparator.java: Likewise.
1961 * java/util/Dictionary.java: Likewise.
1962 * java/util/Iterator.java: Likewise.
1963 * java/util/ListIterator.java: Likewise.
1964 * java/util/Map.java: Likewise.
1965 * java/util/Set.java: Likewise.
1967 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1969 * java/util/TreeMap.java: New file.
1970 * java/util/TreeSet.java: New file.
1971 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1972 * Makefile.in: Rebuilt.
1973 * java/util/HashSet.java (clone): Use constructor instead of calling
1975 * java/util/SortedSet.java: Sync with classpath.
1976 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1979 * java/lang/natClass.cc (getSignature): Don't try to dereference
1980 param_types if it is null. Instead, take this to mean "no parameters".
1981 * java/lang/TreeMap.java (TreeIterator.next): Throw
1982 NoSuchElementException in preference to ConcurrentModificationException.
1983 (TreeIterator.remove): Throw IllegalStateException in preference to
1984 ConcurrentModificationException.
1985 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1986 throw a NoSuchElementException.
1987 (SubMap.lastKey): Likewise.
1989 2001-02-13 Tom Tromey <tromey@redhat.com>
1991 * java/io/PipedReader.java (ready): Throw IOException if pipe
1993 * java/io/FilterReader.java (close): Don't clear `in'.
1994 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1996 (read, ready, reset, skip): Added exception message.
1997 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1998 Perform checkStatus check inside synchronized block.
2000 2001-02-13 Tom Tromey <tromey@redhat.com>
2002 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2004 2001-02-13 Tom Tromey <tromey@redhat.com>
2006 Fix for PR libgcj/1351:
2007 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2009 Include Thread.h and InterruptedIOException.h.
2011 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2013 * java/io/BlockDataException.java: Removed.
2014 * java/io/ObjectInputStream.java (readObject): Throw
2015 StreamCorruptedException, not BlockDataException.
2016 * Makefile.am: Remove BlockDataException.
2017 * Makefile.in: Rebuild.
2019 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2020 Tom Tromey <tromey@redhat.com>
2022 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2025 2001-02-09 Tom Tromey <tromey@redhat.com>
2027 * java/util/Timer.java: New version from Classpath.
2029 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2031 * java/lang/Double.java (doubleToRawLongBits): Now native.
2032 * java/lang/Float.java (floatToRawIntBits): Likewise.
2033 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2034 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2036 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2038 * java/io/File.java (java.net): Imported.
2039 (getAbsoluteFile): Added.
2040 (getCanonicalPath): Likewise.
2043 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2045 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2046 * java/lang/Integer.java: Likewise.
2047 * java/lang/Long.java: Likewise.
2048 * java/lang/Short.java: Likewise.
2049 * java/lang/Double.java: Likewise.
2050 (doubleToRawLongBits): New method.
2051 * java/lang/Float.java: As above.
2052 (floatToRawIntBits): New method.
2054 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2055 IOException if stream closed.
2057 2001-02-08 Tom Tromey <tromey@redhat.com>
2059 * java/lang/Float.java (parseFloat): New method.
2061 2001-02-08 Tom Tromey <tromey@redhat.com>
2063 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2064 * java/io/InputStreamReader.java (ready, read): Throw IOException
2065 if stream has been closed.
2067 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2069 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2070 Change sources.redhat.com and sourceware.cygnus.com references to
2073 2001-02-07 Tom Tromey <tromey@redhat.com>
2075 Fix for PR libgcj/1906:
2076 * java/text/MessageFormat.java (setLocale): Use named class
2079 (format(Object,StringBuffer,FieldPosition)): Special case if
2080 argument is an Object[].
2082 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2084 * java/util/Arrays.java: Removed "cmp" methods.
2085 (qsort): Don't use "cmp".
2088 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2090 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2091 sort. Fix for PR java/1895.
2093 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2095 * configure.host: Use sjlj-exceptions for Alpha.
2097 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2099 * libgcj.spec.in: Don't force static libgcc into the executable.
2100 * configure.in (FORCELIBGCCSPEC): Removed.
2101 * configure: Rebuilt.
2103 2001-01-31 Tom Tromey <tromey@redhat.com>
2105 * Makefile.in: Rebuilt.
2106 * Makefile.am (LTCXXCOMPILE): New macro.
2108 2001-01-26 Andrew Haley <aph@redhat.com>
2110 (INIT_FPE): Use a direct system call to set the handler.
2112 2001-01-27 Richard Henderson <rth@redhat.com>
2114 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2116 2001-01-27 Tom Tromey <tromey@redhat.com>
2118 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2119 native interface structure.
2121 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2123 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2125 (read (byte[], int, int)): Only call readNextBlock() if the block
2126 buffer would actually be overrun. Increment blockDataPosition.
2127 (callReadMethod): Propagate exceptions from invocation target.
2128 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2129 exceptions from invocation target.
2131 2001-01-26 Tom Tromey <tromey@redhat.com>
2133 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2134 to internal representation.
2135 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2136 _Jv_FindClassFromSignature.
2138 2001-01-26 Warren Levy <warrenl@redhat.com>
2140 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2141 and timezone if they are available on the system.
2143 2001-01-24 Tom Tromey <tromey@redhat.com>
2145 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2147 2001-01-24 Tom Tromey <tromey@redhat.com>
2149 * Makefile.in: Rebuilt.
2150 * Makefile.am (c_source_files): Added sf_fabs.c.
2151 * java/lang/sf_fabs.c: New file.
2153 2001-01-19 Warren Levy <warrenl@redhat.com>
2155 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2156 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2157 correctly. Adjust properly from 0-23 clock hour.
2159 2001-01-17 Mark Wielaard <mark@klomp.org>
2161 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2163 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2165 * java/lang/Class.h (isInterface): Move implementation from
2166 natClass.cc. Declare inline.
2167 (Class): Add default constructor.
2168 * java/lang/Object.h: Update comments.
2169 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2170 initialize superclass, saving a call if super is already initialized.
2172 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2174 * prims.cc (init_prim_class): Deleted.
2175 (DECLARE_PRIM_TYPE): Rewritten.
2176 * java/lang/Class.h (stdio.h): Include removed.
2177 (stddef.h): Included.
2178 (java/lang/reflect/Modifier.h): Likewise.
2179 (Class): Contructor now takes arguments, initializes fields.
2180 (initializePrim): Prototype deleted.
2181 * java/lang/natClass.cc (initializePrim): Deleted.
2183 2001-01-16 Warren Levy <warrenl@redhat.com>
2185 * java/math/BigInteger.java: Update Copyright year.
2187 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2189 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2192 2001-01-14 Mark Wielaard <mark@klomp.org>
2193 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2194 (decode): Merge comments with Classpath, don't throw Exception
2196 2001-01-12 Tom Tromey <tromey@redhat.com>
2198 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2202 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2203 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2204 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2205 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2206 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2208 * java/lang/natSystem.cc: Include locale.h if it exists.
2209 * configure: Rebuilt.
2210 * configure.in: Check for locale.h.
2212 2001-01-11 Tom Tromey <tromey@redhat.com>
2214 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2215 (Cursor(int), getPredefinedCursor): Throw exception if argument
2218 2001-01-03 Tom Tromey <tromey@redhat.com>
2220 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2221 (getLocationOnScreen): Wrote.
2223 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2225 * Makefile.am: Re-enable dependencies.
2226 * Makefile.in: Rebuilt.
2228 2001-01-10 Warren Levy <warrenl@redhat.com>
2230 * java/math/BigDecimal.java (divide): Fixed comment.
2232 2001-01-10 Warren Levy <warrenl@redhat.com>
2234 Fix for PR libgcj/1596:
2235 * java/math/BigDecimal.java (divide): Check newScale for validity.
2236 Ensure that BigInteger.pow() is called with a non-negative value.
2237 (setScale (int)): New public method.
2238 (setScale (int,int)): New public method.
2240 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2242 Fix for PR libgcj/1338:
2243 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2244 commentChar. Fixed typos in comments.
2246 2001-01-08 Warren Levy <warrenl@redhat.com>
2248 Fix for PR libgcj/1411:
2249 * Makefile.am: Removed java/util/natTimeZone.cc.
2250 * Makefile.in: Rebuilt.
2251 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2252 missing localized timezone names.
2253 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2254 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2255 (init_properties): Set user.timezone property.
2256 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2257 default timezone names; removed non-standard ones. Use standard
2259 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2261 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2263 (getDefaultTimeZoneId): Removed.
2265 * java/util/natTimeZone.cc: Removed.
2267 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2269 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2270 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2271 (_Jv_GetArrayClass): New inline function.
2272 (arrayclass): New field.
2273 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2274 _Jv_GetArrayElementFromElementType.
2275 (_Jv_NewPrimArray): Ditto.
2276 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2277 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2278 Set Modifier::ABSTRACT.
2279 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2280 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2281 Now synchronized. Array classes are now referenced from
2282 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2283 Set array classes' accessibility flags correctly. Optimize so that
2284 all array classes share the same IDT.
2285 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2286 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2287 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2288 in superclasses from overwriting classes own fields.
2289 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2290 Modifier::isAbstract().
2291 (null_idt): New static field.
2292 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2294 (_Jv_IndexOf): Made inline.
2295 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2297 2001-01-08 Tom Tromey <tromey@redhat.com>
2299 Fix for PR java/1586:
2300 * Makefile.in: Rebuilt.
2301 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2303 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2305 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2306 from the c++ compiler.
2307 * Makefile.in: Rebuilt.
2309 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2311 All files with updated copyright.
2312 * prims.cc (class _Jv_PrimClass): Removed.
2313 (init_prim_class): New function.
2314 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2315 `_Jv_PrimClass' in primitive type declarations. Assign to the
2316 value returned by `init_prim_class.'
2317 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2318 primitive type declarations.
2319 (JvPrimClass): Cast to `jclass' removed.
2320 * java/lang/Class.h (Class): New constructor.
2321 (Class): New copy constructor.
2322 (initializePrim): New prototype.
2323 (_Jv_PrimClass): Field removed.
2324 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2325 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2326 (class java::lang::Object): `finalize' moved up front.
2327 * java/lang/natClass.cc
2328 (isAssignableFrom): Turned outline.
2329 (isInstance): Likewise.
2330 (isInterface): Likewise, fixed indentation.
2331 (initializePrim): New function.
2333 2001-01-07 Anthony Green <green@redhat.com>
2335 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2337 * Makefile.in: Rebuilt.
2339 * scripts/TexinfoDoclet.java: New file.
2341 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2342 doc/java-awt-color.texi, doc/java-lang.texi,
2343 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2344 doc/java-awt-event.texi, doc/java-net.texi,
2345 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2346 doc/java-awt-image.texi, doc/java-security.texi,
2347 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2348 doc/java-text.texi, doc/java-beans-beancontext.texi,
2349 doc/java-util-jar.texi, doc/java-beans.texi,
2350 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2351 doc/java-lang-ref.texi: New files.
2353 2001-01-07 Anthony Green <green@redhat.com>
2355 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2356 be used for both input and output, so don't clear doInput.
2358 * java/lang/StringBuffer.java: Fix comments.
2360 2001-01-06 Anthony Green <green@redhat.com>
2362 * java/beans/PropertyDescriptor.java: Fix comment.
2363 * java/io/PushbackReader.java: Fix comment.
2364 * java/io/ObjectStreamClass.java: Fix comment.
2365 * java/io/DataInputStream.java: Fix comment.
2366 * java/io/PipedInputStream.java: Fix comments.
2367 * java/io/PipedReader.java: Fix comments.
2368 * java/sql/DatabaseMetaData.java: Fix comments.
2370 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2372 * java/io/PipedReader: Synchronize on "lock" instead of this.
2374 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2376 * java/lang/Thread.java: Update comment.
2378 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2379 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2380 * java/io/PipedReader: New implementation based on new
2382 * java/io/PipedWriter: Updated to match new PipedReader.
2384 2001-01-03 Tom Tromey <tromey@redhat.com>
2386 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2387 (getViewportSize): Insets include scrollbar size.
2388 (doLayout): Finished.
2389 (getScrollPosition): Wrote.
2390 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2392 2001-01-02 Tom Tromey <tromey@redhat.com>
2394 * java/awt/ScrollPane.java: Wrote.
2395 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2398 * java/awt/Panel.java (Panel()): Fixed.
2400 * java/awt/Component.java (isShowing): Return false if no peer
2401 exists, and true if component is visible and no parent exists.
2402 (getLocationOnScreen): Wrote.
2403 (getPreferredSize): Removed FIXME comment.
2404 (getMinimumSize): Likewise.
2405 (getAlignmentX, getAlignmentY): Wrote.
2407 (requestFocus): Wrote.
2408 (transferFocus): Wrote.
2409 (findNextFocusComponent): New method.
2410 (hasFocus()): Wrote.
2411 (checkImage): Wrote.
2412 (enableEvents): Call setEventMask on the peer.
2414 * java/awt/Container.java (list): Use super.list() to print self.
2415 (findNextFocusComponent): New method.
2416 (setLayout): Call invalidate.
2417 (findComponentAt): Wrote.
2419 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2421 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2422 the correct versions of various linuxthreads functions get linked.
2423 * Makefile.in: Rebuilt.
2424 * java/lang/natThread.cc (finalize_native): New static function. Call
2425 _Jv_ThreadDestroyData.
2426 (initialize_native): Register finalizer for "data".
2427 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2428 (_Jv_ThreadDestroyData): New prototype.
2429 * include/win32-threads.h: Ditto.
2430 * include/no-threads.h: Ditto.
2431 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2432 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2433 move mutex and condition variable destroy code from:
2434 (really_start): ...here.
2435 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2436 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2437 (_Jv_ThreadDestroyData): Implemented.
2438 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2439 (_Jv_AllocArray): Ditto.
2441 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2443 * java/sql/DriverManager.java (getConnection): Don't set user/password
2446 2000-12-27 Warren Levy <warrenl@redhat.com>
2448 Fix for PR libgcj/1358:
2449 * java/lang/System.java: Update Copyright date properly.
2450 * java/util/Calendar.java: Fix typo in comment.
2451 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2452 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2453 initialize times. Spec says to set H:M:S values to zero only if
2455 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2456 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2457 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2458 timezones and GMT offsets, being careful to account for units of
2459 milliseconds vs. seconds.
2461 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2463 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2464 not be assigned to Object.
2466 Fix for PR libgcj/1516:
2467 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2469 (can_widen): Declared inline. Remove redundant checks for void
2470 arguments and char->short conversion. Add special case for boolean
2472 (ffi_type): Declared inline.
2473 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2475 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2477 * java/sql/SQLWarning.java: Fixed typo in comment.
2479 2000-12-26 Tom Tromey <tromey@redhat.com>
2481 * java/awt/MenuItem.java (paramString): Now protected.
2483 * java/awt/MenuShortcut.java: Implements Serializable.
2485 * java/awt/MenuBar.java: Rewrote from scratch.
2487 * java/awt/MenuComponent.java (removeNotify): Wrote.
2488 Implements Serializable.
2490 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2493 * java/awt/CheckboxMenuItem.java: Wrote.
2495 2000-12-25 Tom Tromey <tromey@redhat.com>
2497 * java/awt/MenuContainer.java: Fixed typo.
2499 * Makefile.in: Rebuilt.
2500 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2501 * java/awt/SystemColor.java: New file.
2503 * java/awt/Color.java (rgba): Now package-private.
2505 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2507 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2510 * java/awt/MenuItem.java (addNotify): New method.
2511 (MenuItem(String,MenuShortcut)): New constructor.
2512 (setLabel): Notify peer of change.
2513 (setEnabled): Likewise.
2515 * java/awt/GridLayout.java (toString): New method.
2517 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2518 (FlowLayout): Check for LEADING and TRAILING.
2519 (setAlignment): Likewise.
2520 (layoutContainer): Handle component orientation.
2522 * java/awt/Component.java (orientatin): New field.
2523 (setComponentOrientation): Wrote.
2524 (getComponentOrientation): Wrote.
2526 * java/awt/Event.java (Event): Implements Serializable.
2527 (consumed): New field for serialization.
2528 * java/awt/Dimension.java (Dimension): Implements Serializable.
2529 * java/awt/Cursor.java (Cursor): Implements Serializable.
2530 * java/awt/Container.java (Container): No longer abstract.
2532 * java/awt/Choice.java: Wrote.
2533 * java/awt/Checkbox.java: Wrote.
2534 * java/awt/ItemSelectable.java: Documented.
2535 * java/awt/CheckboxGroup.java: Wrote.
2537 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2539 (getSize): Likewise.
2541 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2543 * java/io/FileDescriptor.java: Initialize fd to -1.
2544 Remove default constructor.
2546 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2548 * java/lang/mprec.h: Change C9X reference to refer to C99.
2550 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2552 * java/lang/Throwable.java (trace_enabled): New static field.
2553 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2554 trace_enabled not set.
2555 * prims.cc (main_init): Turn off trace_enabled while creating
2556 default exception objects.
2558 2000-12-21 Tom Tromey <tromey@redhat.com>
2560 * java/beans/PropertyChangeListener.java: Extends EventListener.
2561 * java/beans/VetoableChangeListener.java: Extends EventListener.
2563 * java/util/zip/Deflater.java (update, init): Now private.
2565 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2567 * java/util/BasicMapEntry.java: Re-added.
2568 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2569 (putAll): Test for BasicMapEntry.
2570 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2571 (putAll): Test for BasicMapEntry.
2572 Change references from `HashMap.Entry' to `Entry' in various places.
2573 * Makefile.am: Add BasicMapEntry.java.
2574 * Makefile.in: Rebuilt.
2576 2000-12-18 Warren Levy <warrenl@redhat.com>
2578 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2579 need to set timezone to a valid non-null value. Partial fix for
2582 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2584 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2586 * java/awt/Button.java (addNotify): Likewise.
2587 * java/awt/Label.java (addNotify): Likewise.
2588 * java/awt/Panel.java (addNotify): Likewise.
2589 * java/awt/Scrollbar.java (addNotify): Likewise.
2590 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2591 Remove redundant null checks.
2593 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2595 * COPYING: Update to current
2596 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2597 to 19yy as example year in copyright notice).
2599 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2601 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2602 end-of-stream if avail_in is 0.
2604 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2606 * java/util/ArrayList.java (data): Declare transient.
2607 (serialPersistantFields): Removed.
2608 (readObject): Use defaultReadObject(), not readFields().
2609 (writeObject): Use defaultWriteObject(), not writeFields().
2611 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2613 * java/util/Hashtable.java (put): Remove `last' variable.
2614 Link new entry to head of list.
2615 * java/util/HashMap.java (put): Ditto.
2617 2000-12-15 Tom Tromey <tromey@redhat.com>
2619 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2620 loader to Class.forName.
2622 2000-12-14 Tom Tromey <tromey@redhat.com>
2624 * java/util/ResourceBundle.java
2625 (getBundle(String,Locale,ClassLoader)): New method.
2626 (trySomeGetBundle): Added `loader' argument.
2627 (partialGetBundle): Likewise.
2629 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2630 maximumFractionDigits, maximumIntegerDigits,
2631 minimumFractionDigits, minimumIntegerDigits): Now
2634 * java/lang/Thread.java (checkAccess): Now final.
2636 * java/lang/RuntimePermission.java: Class now final.
2638 * java/io/StringWriter.java (StringWriter(int)): Now public.
2640 * java/io/SerializablePermission.java (legal_names): Now private.
2642 * java/lang/Character.java: Updated UnicodeBlock constants.
2643 * scripts/blocks.pl: Special case private use and surrogate
2646 2000-12-12 Tom Tromey <tromey@redhat.com>
2648 * Makefile.in: Rebuilt.
2649 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2651 (GCJCOMPILE): Use it.
2654 2000-12-11 Tom Tromey <tromey@redhat.com>
2656 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2657 New static final fields.
2659 * scripts/classes.pl (scan): Skip lines with leading `*'.
2660 Fix for PR libgcj/378.
2662 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2664 * configure.in: Remove check for -fuse-divide-subroutine.
2665 * configure: Rebuilt.
2667 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2669 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2671 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2673 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2674 Remove BasicMapEntry.java and Bucket.java.
2675 * Makefile.in: Rebuilt.
2676 * java/util/HashMap.java: Rewritten.
2677 * java/util/HashSet.java: Imported from classpath.
2678 * java/util/WeakHashMap.java: Imported from classpath.
2679 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2680 * java/util/Bucket.java: Deleted.
2681 * java/util/BasicMapEntry.java: Deleted.
2682 * java/util/Collections.java (search): Use a for-loop, not iterator
2684 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2685 of elements in source.
2686 (max): Use a for-loop.
2688 (reverse): Keep track of positions instead of using Iterator's
2689 nextIndex() and previousIndex().
2690 (shuffle(List)): Initialize defaultRandom if required using
2691 double-check thread safety idiom. Call two-argument shuffle method
2692 using defaultRandom.
2693 (defaultRandom): New field.
2694 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2695 using previousIndex() and nextIndex().
2696 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2697 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2698 * java/util/AbstractMap.java (toString): Use StringBuffer.
2699 * java/lang/ref/PhantomReference.java: Imported from classpath.
2700 * java/lang/ref/SoftReference.java: Ditto.
2701 * java/lang/ref/Reference.java: Ditto.
2702 * java/lang/ref/WeakReference.java: Ditto.
2703 * java/lang/ref/ReferenceQueue.java: Ditto.
2705 2000-12-10 Richard Henderson <rth@redhat.com>
2707 * configure.host: Recognize alpha*-*, not alphaev6-*.
2709 2000-12-09 Anthony Green <green@redhat.com>
2711 * configure.host: Enable interpreter for Alpha.
2713 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2715 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2716 (ZIP): Points at fastjar instead of zip.
2717 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2718 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2719 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2720 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2721 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2722 ($(x_java_source_files:.java=.class):): Likewise.
2723 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2725 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2726 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2727 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2728 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2729 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2730 gnu/gcj/runtime/VMClassLoader.h:,
2731 java/io/ObjectInputStream$$GetField.h:,
2732 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2733 (Makefile.in): Rebuilt.
2735 2000-12-08 Tom Tromey <tromey@redhat.com>
2738 * configure: Rebuilt.
2739 * configure.in: Use echo, not `:', to create .d files.
2741 2000-12-08 Warren Levy <warrenl@redhat.com>
2743 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2744 NullPointerException so proper check of offset can be done.
2746 2000-12-08 Warren Levy <warrenl@redhat.com>
2748 * java/io/FileInputStream.java (close): Check if the fd is valid.
2749 * java/io/RandomAccessFile.java (close): Ditto.
2750 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2751 * java/net/PlainSocketImpl.java (close): Ditto.
2753 2000-12-06 Tom Tromey <tromey@redhat.com>
2755 * java/awt/GridBagConstraints.java: Filled in values for static
2758 * java/util/BitSet.java: Updated copyright notice.
2760 * Makefile.in: Rebuilt.
2761 * Makefile.am (awt_java_source_files): Added new file.
2762 * java/awt/GridBagConstraints.java: New file.
2764 2000-12-05 Tom Tromey <tromey@redhat.com>
2766 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2767 Now package-private, not protected.
2768 * java/text/DateFormatSymbols.java (equals): Now private.
2769 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2770 * java/util/BitSet.java: Class no longer final.
2772 2000-12-04 Warren Levy <warrenl@redhat.com>
2774 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2775 out code dependent on compiler and library changes.
2777 2000-12-04 Warren Levy <warrenl@redhat.com>
2779 * java/io/FilePermission.java: Made class final per spec.
2780 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2781 method name to match spec (fixed typo).
2782 * java/util/LinkedList.java: Implements List.
2784 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2786 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2787 Edgar Villanueva <edgarvil@home.com>.
2789 2000-12-03 Tom Tromey <tromey@redhat.com>
2791 * java/awt/geom/Point2D.java: Added protected constructor.
2792 (equals): New method.
2793 (Float.setLocation(float,float)): New method.
2794 * java/awt/geom/Dimension2D.java: Added protected constructor.
2795 * java/awt/geom/AffineTransform.java: Made all constants public.
2796 (concatenate): Fixed typo in name.
2797 * java/awt/event/WindowAdapter.java: Class now abstract.
2798 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2799 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2802 * java/awt/AWTError.java: Extend Error, not
2803 IllegalStateException.
2805 * Makefile.in: Rebuilt.
2806 * Makefile.am (awt_java_source_files): Added new file.
2807 * java/awt/geom/RoundRectangle2D.java: New file.
2809 * Makefile.in: Rebuilt.
2810 * Makefile.am (awt_java_source_files): Added new file.
2811 * java/awt/FlowLayout.java: New file.
2813 * Makefile.in: Rebuilt.
2814 * Makefile.am (awt_java_source_files): Added new file.
2815 * java/awt/GridLayout.java: New file.
2817 2000-12-02 Tom Tromey <tromey@redhat.com>
2819 * Makefile.in: Rebuilt.
2820 * Makefile.am (awt_java_source_files): Added new files.
2821 * java/awt/CardLayout.java: New file.
2822 * java/awt/AWTPermission.java: New file.
2824 2000-12-01 Tom Tromey <tromey@redhat.com>
2826 * java/util/Vector.java (insertElementAt): Unconditionally
2827 increment elementCount.
2828 (removeRange): Clear unused slots in vector.
2830 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2832 * java/lang/natMath.cc: Declare fabsf() function.
2833 * java/lang/mprec.h: Don't include math.h.
2834 * java/lang/dtoa.c: Include string.h.
2835 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2838 From Adam Welc <welc@cs.purdue.edu>:
2839 * java/util/LinkedList.java (removeFirst): Update `first' field.
2840 Handle the last == first case.
2841 (removeLast): Update `last' field. Handle the last == first case.
2843 2000-12-01 Warren Levy <warrenl@cygnus.com>
2845 * Makefile.am: Added entries for new java.sql modules.
2846 * Makefile.in: Rebuilt.
2848 2000-12-01 Warren Levy <warrenl@cygnus.com>
2850 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2851 that aren't quite 1.2 compatible yet.
2853 2000-11-30 Warren Levy <warrenl@cygnus.com>
2855 * java/sql/Array.java: New file from classpath.
2856 * java/sql/BatchUpdateException.java: Ditto.
2857 * java/sql/Blob.java: Ditto.
2858 * java/sql/Clob.java: Ditto.
2859 * java/sql/Ref.java: Ditto.
2860 * java/sql/SQLData.java: Ditto.
2861 * java/sql/SQLInput.java: Ditto.
2862 * java/sql/SQLOutput.java: Ditto.
2863 * java/sql/Struct.java: Ditto.
2864 * java/sql/CallableStatement.java: Merged file from claspath.
2865 * java/sql/Connection.java: Ditto.
2866 * java/sql/DataTruncation.java: Ditto.
2867 * java/sql/DatabaseMetaData.java: Ditto.
2868 * java/sql/DriverManager.java: Ditto.
2869 * java/sql/PreparedStatement.java: Ditto.
2870 * java/sql/ResultSet.java: Ditto.
2871 * java/sql/ResultSetMetaData.java: Ditto.
2872 * java/sql/SQLException.java: Ditto.
2873 * java/sql/SQLWarning.java: Ditto.
2874 * java/sql/Statement.java: Ditto.
2875 * java/sql/Types.java: Ditto.
2877 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2879 * java/lang/natSystem.cc (init_properties): Set user.language and
2881 * configure.in: Check for setlocale.
2882 * configure: Rebuilt.
2883 * include/config.h.in: Rebuilt.
2885 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2886 the infate() call didn't deliver any output. Throw a ZipException if
2887 the needsDictionary() call returns true.
2888 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2889 * java/io/InputStreamReader: Use the default buffer size for the
2890 contained BufferedInputStream.
2892 2000-11-28 Warren Levy <warrenl@cygnus.com>
2894 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2895 more time zone entries.
2896 * java/text/SimpleDateFormat.java (format): Added case for
2899 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2901 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2902 directly rather than read() in all cases. Make primitive read
2903 implementations more efficient, as defined in JDK online docs.
2904 (skipBytes): Behave like the JDK's implementation.
2905 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2906 closed stream with checkStatus() whenever an IOException can be
2908 (checkStatus): New private method.
2910 2000-11-27 Warren Levy <warrenl@cygnus.com>
2912 * Makefile.am: Added natTimeZone.cc.
2913 * Makefile.in: Rebuilt.
2914 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2915 * java/text/DateFormatSymbols.java (ampms): Made package private.
2916 (eras): Made package private.
2917 (months): Made package private.
2918 (shortMonths): Made package private.
2919 (shortWeekdays): Made package private.
2920 (weekdays): Made package private.
2921 (formatPrefixes): New private field.
2922 (localPatternCharsDefault): Made private.
2923 (dateFormats): New package private field.
2924 (timeFormats): New package private field.
2925 (formatsForKey): New private method.
2926 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2927 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2928 * java/text/SimpleDateFormat.java: Merged with Classpath.
2929 * java/util/TimeZone.java: Merged with Classpath.
2930 * java/util/natTimeZone.cc: New file.
2932 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2934 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2935 (addElement): Don't increment elementCount twice. Doh.
2936 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2937 array needs to be expanded.
2939 * java/util/Collections.java (UnmodifiableCollection): Implement
2941 (UnmodifiableList): Throw UnsupportedOperationException from
2942 modification methods. Set `l' from the one-parameter constructor.
2943 (UnmodifiableMap): Implement toString().
2944 (SynchronizedCollection): Ditto.
2945 (SynchronizedList): Set `l' from the one-parameter constructor.
2946 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2947 (SynchronizedMap): Implement toString().
2949 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2951 * javax/naming/NameParser.java,
2952 javax/naming/directory/AttributeInUseException.java,
2953 javax/naming/directory/AttributeModificationException.java,
2954 javax/naming/directory/InvalidAttributeIdentifierException.java,
2955 javax/naming/directory/InvalidAttributesException.java,
2956 javax/naming/directory/InvalidAttributeValueException.java,
2957 javax/naming/directory/InvalidSearchControlsException.java,
2958 javax/naming/directory/InvalidSearchFilterException.java,
2959 javax/naming/directory/NoSuchAttributeException.java,
2960 javax/naming/directory/SchemaViolationException.java: New files.
2962 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2964 * javax/naming/InitialContext.java (rebind): Implement.
2965 (unbind): Implement.
2966 (rename): Implement.
2968 (listBindings): Implement.
2969 (destroySubcontext): Implement.
2970 (createSubcontext): Implement.
2971 (lookupLink): Implement.
2972 (getNameParser): Implement.
2973 (composeName): Implement.
2974 (addToEnvironment): Implement.
2976 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2978 * javax/naming/AuthenticationException.java,
2979 javax/naming/AuthenticationNotSupportedException.java,
2980 javax/naming/CannotProceedException.java,
2981 javax/naming/CommunicationException.java,
2982 javax/naming/ConfigurationException.java,
2983 javax/naming/ContextNotEmptyException.java,
2984 javax/naming/InsufficientResourcesException.java,
2985 javax/naming/InterruptedNamingException.java,
2986 javax/naming/InvalidNameException.java,
2987 javax/naming/LimitExceededException.java,
2988 javax/naming/LinkException.java,
2989 javax/naming/LinkLoopException.java,
2990 javax/naming/MalformedLinkException.java,
2991 javax/naming/NameAlreadyBoundException.java,
2992 javax/naming/NameNotFoundException.java,
2993 javax/naming/NamingSecurityException.java,
2994 javax/naming/NoPermissionException.java,
2995 javax/naming/NotContextException.java,
2996 javax/naming/PartialResultException.java,
2997 javax/naming/ReferralException.java,
2998 javax/naming/ServiceUnavailableException.java,
2999 javax/naming/SizeLimitExceededException.java,
3000 javax/naming/TimeLimitExceededException.java: New files.
3002 * javax/naming/Name.java (clone): New method.
3003 (compareTo): New method.
3004 (isEmpty): New method.
3005 (getAll): New method.
3006 (getPrefix): New method.
3007 (getSuffix): New method.
3008 (startsWith): New method.
3009 (endsWith): New method.
3010 (addAll): New method.
3011 (addAll): New method.
3014 (remove): New method.
3016 * javax/naming/Context.java (lookup): New method.
3017 (rebind): New method.
3018 (unbind): New method.
3019 (rename): New method.
3021 (listBindings): New method.
3022 (destroySubcontext): New method.
3023 (createSubcontext): New method.
3024 (lookupLink): New method.
3025 (getNameParser): New method.
3026 (composeName): New method.
3027 (addToEnvironment): New method.
3028 (removeFromEnvironment): New method.
3029 (getEnvironment): New method.
3030 (close): New method.
3031 (getNameInNamespace): New method.
3033 * javax/naming/InitialContext.java (lookup): New method.
3034 (rebind): New method.
3035 (unbind): New method.
3036 (rename): New method.
3038 (listBindings): New method.
3039 (destroySubcontext): New method.
3040 (createSubcontext): New method.
3041 (lookupLink): New method.
3042 (getNameParser): New method.
3043 (composeName): New method.
3044 (addToEnvironment): New method.
3045 (removeFromEnvironment): New method.
3046 (getEnvironment): New method.
3047 (close): New method.
3048 (getNameInNamespace): New method.
3050 2000-11-26 Tom Tromey <tromey@cygnus.com>
3052 * Makefile.in: Rebuilt.
3053 * Makefile.am (core_java_source_files): Added
3054 RuntimePermission.java.
3055 * java/lang/RuntimePermission.java: Imported from Classpath.
3056 * java/lang/Thread.java (getContextClassLoader): Now
3057 synchronized. Added security code.
3058 (setContextClassLoader): Likewise.
3060 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3061 length field of array.
3062 (_Jv_NewPrimArray): Likewise.
3063 * gcj/array.h (__JArray): `length' field now const. Added
3066 2000-11-26 Anthony Green <green@redhat.com>
3068 * javax/naming/spi/NamingManager.java,
3069 javax/naming/spi/ObjectFactory.java,
3070 javax/naming/spi/InitialContextFactory.java,
3071 javax/naming/spi/InitialContextFactoryBuilder.java,
3072 javax/naming/RefAddr.java, javax/naming/Reference.java,
3073 javax/naming/NamingException.java, javax/naming/Context.java,
3074 javax/naming/Referenceable.java,
3075 javax/naming/directory/InitialDirContext.java,
3076 javax/naming/directory/DirContext.java,
3077 javax/naming/directory/Attributes.java,
3078 javax/naming/directory/Attribute.java,
3079 javax/naming/StringRefAddr.java,
3080 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3081 javax/naming/InitialContext.java,
3082 javax/naming/NoInitialContextException.java: New files.
3084 2000-11-25 Anthony Green <green@redhat.com>
3086 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3087 (_Jv_NewPrimArray): Likewise.
3088 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3089 (class JArray): Removed constructor.
3091 * java/lang/Thread.java (context_class_loader): New private data.
3092 (getContextClassLoader): New method.
3093 (setContextClassLoader): New method.
3094 (Thread): Initialize context_class_loader.
3096 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3097 (getResource): Rename to findResource.
3098 (findResource): New method. Used to be getResource.
3099 (getResourceAsStream): Deleted.
3100 (jarFileize): Extracted logic from URLClassLoader constructor into
3101 this new private method.
3102 (addURL): New protected method.
3103 (URLClassLoader): Call jarFileize. Use addElement instead of
3105 (findResources): New method.
3107 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3108 (getResource): Implement correct logic.
3109 (findResource): New method.
3110 (getResources): New method.
3111 (findClass): Create a ClassNotFoundException with the name of the
3112 class rather than nothing at all.
3113 (defineClass) Only throw ClassFormatError.
3115 * java/lang/Class.java (forName): New method.
3116 * java/lang/Class.h (forName): New method.
3117 * java/lang/natClass.cc (forName): New method.
3119 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3121 * java/lang/System.java (setProperties): Only call init_properties()
3122 if properties is null.
3123 (getProperties): Ditto.
3124 (getProperty): Ditto.
3125 (setProperty): Call init_properties if properties are null.
3126 (prop_init): Remove field.
3127 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3128 method. Check for null properties after synchronizing instead of
3129 prop_init flag. Set the properties field last for thread safety.
3131 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3132 test for gcj.dumpobjects property and enable object stream dumping
3134 (dumpElement): No longer native.
3135 (dumpElementln): Ditto.
3136 (setDump): Do not define.
3137 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3138 (dumpElementln): Removed.
3141 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3143 * configure: Rebuilt.
3144 * Makefile.in: Rebuilt.
3145 * Makefile.am (built_java_source_files): Add Configuration.java.
3146 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3147 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3148 Create `gnu' directory in the build tree.
3149 * gnu/classpath/Configuration.java.in: New file.
3151 2000-11-24 Tom Tromey <tromey@cygnus.com>
3153 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3155 (_Jv_NewPrimArray): Likewise.
3157 * gcj/array.h (__JArray): `length' field now const. Added
3159 (class JArray): Added constructor.
3161 2000-11-23 Mark Wielaard <mark@klomp.org>
3163 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3166 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3168 * java/util/Vector.java: Improve exception messages.
3169 (Vector): Check initialCapacity for IllegalArgumentException.
3170 (tromToSize): Don't check for elementCount == elementData.length
3172 (toArray): Don't try to set null marker if target array is the same
3173 length as the vector.
3175 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3177 * Makefile.in: Rebuilt.
3178 * Makefile.am (core_java_source_files): Added Collections.java.
3179 * java/util/List.java: Merged from classpath.
3180 * java/util/Vector.java: Ditto.
3181 * java/util/Collections.java: From classpath.
3182 * java/util/ArrayList.java (addAll(Collection)): Call
3183 addAll(int,Collection) instead of duplicating code.
3184 (indexOf): Clean up int initialization.
3185 (clear): Set cleared array entries to null, to allow garbage
3187 * java/util/List.java: Minor formatting fixes.
3188 * java/util/SimpleTimeZone.java: ditto.
3190 2000-11-18 Tom Tromey <tromey@cygnus.com>
3192 * Makefile.in: Rebuilt.
3193 * Makefile.am (core_java_source_files): Added new files.
3194 * java/lang/reflect/ReflectPermission.java: New class.
3195 * java/io/FileFilter.java: From Classpath
3196 * java/io/FilePermission.java: From Classpath.
3198 2000-11-17 Tom Tromey <tromey@cygnus.com>
3200 * java/lang/reflect/AccessibleObject.java (isAccessible,
3201 setAccessible): Now public.
3203 * java/lang/natString.cc: Include Locale.h.
3204 (toUpperCase): Added `locale' argument. Handle locale
3206 (toLowerCase): Added `locale' argument. Handle locale
3208 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3209 CAPITAL_I): New defines.
3210 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3213 (toUpperCase, toLowerCase): New methods. Variants which accept
3216 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3219 * java/util/PropertyPermission.java: Re-merged from Classpath.
3221 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3223 * java/text/StringCharacterIterator.java: Reindented.
3224 (setText): New method.
3226 2000-11-17 Mark Wielaard <mark@klomp.org>
3228 Merge with Classpath (changes by Bryce McKinlay)
3229 * java/util/jar/*.java: Reformat all to unofficial standard coding
3230 style. No changes of substance.
3232 2000-11-17 Mark Wielaard <mark@klomp.org>
3234 * java/util/zip/*.java: Javadoc updates.
3236 2000-11-17 Tom Tromey <tromey@cygnus.com>
3238 * java/text/CollationKey.java: Implement Comparable.
3239 (compareTo(Object)): New method.
3240 * java/text/Collator.java (compare(Object,Object)): New method.
3241 Implement Comparator.
3243 * java/util/zip/InflaterInputStream.java (available): New method.
3244 (close): New method.
3245 (read, available, skip, fill): Throw exception if stream closed.
3246 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3247 getNextEntry): Throw exception if closed.
3249 2000-11-16 Tom Tromey <tromey@cygnus.com>
3251 * java/io/PushbackReader.java: Merged with Classpath.
3252 * java/util/Arrays.java: Updated from Classpath.
3254 * scripts/blocks.pl: New file.
3255 * java/lang/Character.java (Subset): New class.
3256 (UnicodeBlock): New class.
3258 * java/lang/Math.java (toDegrees, toRadians): New methods.
3260 * java/lang/Float.java: Implement Comparable.
3261 (compareTo): New methods.
3262 * java/lang/Double.java: Implement Comparable.
3263 (compareTo): New methods.
3265 2000-11-16 Warren Levy <warrenl@cygnus.com>
3267 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3269 (listeners): Made transient.
3270 (source): Renamed from 'bean'.
3271 (children): New field for serialization.
3272 (propertyChangeSupportSerializedDataVersion): Ditto.
3273 (serialVersionUID): Ditto.
3274 (writeObject): New serialization method.
3275 (readObject): New serialization method.
3276 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3278 (listeners): Made transient.
3279 (source): Renamed from 'bean'.
3280 (children): New field for serialization.
3281 (vetoableChangeSupportSerializedDataVersion): Ditto.
3282 (serialVersionUID): Ditto.
3283 (writeObject): New serialization method.
3284 (readObject): New serialization method.
3285 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3286 to allow constructor to have a return type (i.e. the class that the
3287 constructor constructs).
3289 2000-11-14 Tom Tromey <tromey@cygnus.com>
3291 * Makefile.in: Rebuilt.
3292 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3295 2000-11-02 Warren Levy <warrenl@cygnus.com>
3297 * java/io/ObjectInputStream.java (readObject): Added code to
3298 conditionally dump out the serialized data.
3299 Handle ENDBLOCKDATA case a bit more gracefully since the current
3300 behavior doesn't seem to work as expected.
3301 (readStreamHeader): Added code for serialized data dumper.
3302 (readNextBlock): Ditto.
3303 (readFields): Ditto.
3304 (dump): New private static field for turning on/off dumper.
3305 (setDump): New native method.
3306 (dumpElement): New native method.
3307 (dumpElementln): New native method.
3308 * java/io/natObjectInputStream.cc (setDump): New method.
3309 (dumpElement): New method.
3310 (dumpElementln): New method.
3312 2000-11-02 Warren Levy <warrenl@cygnus.com>
3314 * java/net/InetAddress.java (addr): Renamed from 'address'.
3315 (address): New field to match Serialized Form doc.
3316 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3317 (family): New serialization field.
3318 (serialVersionUID): New field.
3319 (readObject): New method.
3320 (writeObject): New method.
3321 (getFamily): New native method.
3322 (InetAddress): Set family.
3323 * java/net/natInetAddress.cc (getFamily): New method.
3324 (addr): Renamed from 'address'.
3325 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3326 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3327 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3329 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3331 * java/util/AbstractList.java (SubList): Make it a top-level private
3333 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3335 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3336 * Makefile.in: Rebuilt.
3338 2000-11-02 Tom Tromey <tromey@cygnus.com>
3340 * Makefile.in: Rebuilt.
3341 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3344 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3346 * java/util/AbstractList.java (remove): Comment out modCount increment
3347 to work around compiler bug.
3350 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3352 * java/util/AbstractList.java: Throw messages with
3353 IndexOutOfBoundsExceptions.
3354 (listIterator()): Call listIterator(0).
3355 (size): New field. Initialize to size().
3356 (hasNext): Test position against size, not size().
3357 (remove): Increment knownMod by one instead of resetting it from
3360 (SubList.upMod): Removed.
3361 (SubList.set): Don't call upMod() or update knownMod.
3362 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3363 (SubList.remove): Ditto.
3364 (SubList.addAll): Don't call backingList.size(). Increment size from
3366 (SubList.iterator): New method. Call listIterator(0).
3367 (SubList.listIterator): New method. Restore code to return an anonymous
3368 listIterator implementation (with some changes).
3369 * java/util/AbstractSequentialList.java: Throw messages with
3370 IndexOutOfBoundsExceptions.
3371 (addAll): Add a specnote.
3372 * java/util/ArrayList.java (removeRange): Get the math right.
3373 (addAll): Increment modCount _before_ creating iterator.
3374 * java/util/LinkedList.java: Rewritten, mostly.
3376 2000-11-01 Tom Tromey <tromey@cygnus.com>
3378 * scripts/encodings.pl: Added `ASCII' alias.
3379 * Makefile.in: Rebuilt.
3380 * Makefile.am (convert_source_files): Added new files.
3381 * gnu/gcj/convert/Input_ASCII.java: New file.
3382 * gnu/gcj/convert/Output_ASCII.java: New file.
3383 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3384 out-of-range characters.
3385 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3386 (read): Swap bytes if required. Treat `count' as character count,
3388 (write): Likewise. Also, handle case where iconv fails on a given
3390 (init): Put encoding into exception.
3391 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3392 (static): Call iconv_init. Rebuilt alias list.
3393 (iconv_init): New private method.
3395 2000-11-01 Tom Tromey <tromey@cygnus.com>
3397 * Makefile.in: Rebuilt.
3398 * Makefile.am (install-exec-hook): Only make a single symlink, and
3399 remove the destination before making the link.
3400 * configure: Rebuilt.
3401 * configure.in: Call AC_PROG_LN_S.
3403 2000-10-31 Warren Levy <warrenl@cygnus.com>
3405 * jni.cc: Added include of java/lang/ThreadGroup.h.
3406 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3407 per change of 2000-10-05.
3409 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3411 * java/util/BitSet.java: Updated @specnote.
3413 * java/io/Reader.java: Merge docs from classpath.
3414 (skip): Synchronize on `lock'.
3415 * java/io/FileReader.java: Import correct implementation from
3417 * java/io/StringReader.java: Merge docs from classpath.
3418 (ready): Throw IOException if stream is closed.
3420 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3422 * java/util/AbstractCollection.java (addAll): Use size() instead of
3423 hasNext() in iterator loop.
3425 (contains): Ditto. Simplify loop.